Minor Changes
- 7beaf20: Rich dialog (#5445): a generic modal with no business meaning (what's new, a licence, a charter are uses of it).
useRichDialog().open(options)returns a Promise of{ action, values }, and opens are queued one at a time; the kernel and<QdadmRoot />mount the host.QdRichDialogis the same as a component.- Blocks stack in a scrolling area. Each is drawn by a content handler: native
text,markdown(marked) andhtml, both sanitised with DOMPurify and loaded on first use, or the app's own (registerDialogContent). An unknown kind is warned and skipped. - The action area holds declared buttons and controls. Controls use native
toggle(default) andcheckboxhandlers, or the app's own (registerDialogControl), and their values come back in the result. Alternatively, the app's own footer (footer/#footer) receivesread,ready,values,resolveandclose. readToEndandrequiredcontrols gate therequiresReadbuttons, with a hint linked for screen readers.dismissable: falseturns off Escape and ×.- New dependencies:
markedanddompurify. - The sidebar version can open something:
app.versionActionmakes it a button andapp.versionToa link (e.g. to the app's what's new), named and with a tooltip "What's new (v…)" (core.app.whatsNew, orapp.versionLabel). Without them it stays a plain text.
- Blocks stack in a scrolling area. Each is drawn by a content handler: native
- 83072f5: Item page actions (#5444):
itemsmakes an action a split button, its own button with a chevron zone joined on its right that opens a menu of related gestures. The menu lines up with the button (its right edge when the button sits on the right of the window), opens upwards when there is no room below, and is appended to the body. Entries takelabel,iconandtooltipas functions of the record, plusvisible/disabledfrom the action's context andseverity. Hidden entries are left out, and with none left the action is a plain button. WithoutonClick, the button only opens the menu. The chevron hasaria-haspopup/aria-expandedand a label ("More actions: Copy"), and Escape gives the focus back to it.QdActionButtonis exported.