@motifx-community/ui 0.1.0-beta.16 → 0.1.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/components/datagrid/DataGrid.d.ts +2 -1
  3. package/dist/components/datagrid/grid-column.d.ts +6 -0
  4. package/dist/components/datagrid/model/ColumnModel.d.ts +2 -0
  5. package/dist/components/datagrid/model/GridModel.d.ts +4 -0
  6. package/dist/components/datagrid/view/ColumnStyles.d.ts +7 -3
  7. package/dist/components/datagrid/view/GridBody.d.ts +56 -4
  8. package/dist/components/diagram/Diagram.d.ts +92 -0
  9. package/dist/components/diagram/DiagramEdgeView.d.ts +14 -4
  10. package/dist/components/diagram/DiagramLinks.d.ts +2 -0
  11. package/dist/components/diagram/DiagramNodeView.d.ts +19 -1
  12. package/dist/components/diagram/diagram-change.d.ts +3 -2
  13. package/dist/components/diagram/diagram-edge-click-event-args.d.ts +21 -0
  14. package/dist/components/diagram/diagram-edge-pointer-event-args.d.ts +6 -0
  15. package/dist/components/diagram/diagram-edge.d.ts +8 -0
  16. package/dist/components/diagram/diagram-links-host.d.ts +3 -0
  17. package/dist/components/diagram/diagram-node-click-event-args.d.ts +23 -0
  18. package/dist/components/diagram/diagram-node-context.d.ts +5 -0
  19. package/dist/components/diagram/diagram-node-host.d.ts +4 -0
  20. package/dist/components/diagram/diagram-node-pointer-event-args.d.ts +6 -0
  21. package/dist/components/diagram/diagram-props.d.ts +45 -0
  22. package/dist/components/diagram/diagram-text-changed-event-args.d.ts +7 -0
  23. package/dist/components/diagram/diagram-text-changing-event-args.d.ts +14 -0
  24. package/dist/components/diagram/diagram-text-editing-event-args.d.ts +11 -0
  25. package/dist/components/diagram/index.d.ts +7 -0
  26. package/dist/core/ui-strings.d.ts +5 -0
  27. package/dist/excel/index.js +1 -1
  28. package/dist/excel/index.js.map +1 -1
  29. package/dist/index.js +1644 -759
  30. package/dist/index.js.map +1 -1
  31. package/dist/locales/en.json +3 -0
  32. package/dist/locales/tr.json +3 -0
  33. package/dist/parts/table/RowHeights.d.ts +23 -0
  34. package/dist/parts/table/ScrollGeometry.d.ts +6 -1
  35. package/dist/parts/table/table-sheet-column.d.ts +2 -0
  36. package/dist/pdf/index.js +1 -1
  37. package/dist/pdf/index.js.map +1 -1
  38. package/dist/pdf/pdf-export-options.d.ts +4 -1
  39. package/dist/styles.css +58 -0
  40. package/dist/{tr-4GNbFdQh.js → tr-CMuuXBUb.js} +8 -2
  41. package/dist/{tr-4GNbFdQh.js.map → tr-CMuuXBUb.js.map} +1 -1
  42. package/docs/accordion.md +1 -1
  43. package/docs/actionsheet.md +1 -1
  44. package/docs/appbar.md +1 -1
  45. package/docs/appmenu-api.md +1 -1
  46. package/docs/appmenu-programmatic.md +1 -1
  47. package/docs/appmenu-search.md +1 -1
  48. package/docs/appmenu.md +1 -1
  49. package/docs/avatar.md +1 -1
  50. package/docs/badge.md +1 -1
  51. package/docs/bar-gauge-angles.md +1 -1
  52. package/docs/bar-gauge-data.md +1 -1
  53. package/docs/bar-gauge-labels.md +1 -1
  54. package/docs/bar-gauge.md +1 -1
  55. package/docs/barcode.md +1 -1
  56. package/docs/bottomnavigation.md +1 -1
  57. package/docs/bottomsheet.md +1 -1
  58. package/docs/breadcrumb.md +1 -1
  59. package/docs/button.md +1 -1
  60. package/docs/buttongroup.md +1 -1
  61. package/docs/buttons.md +1 -1
  62. package/docs/calendar.md +1 -1
  63. package/docs/card.md +1 -1
  64. package/docs/chart-bars.md +1 -1
  65. package/docs/chart-candles.md +1 -1
  66. package/docs/chart-funnel.md +1 -1
  67. package/docs/chart-heatmap.md +1 -1
  68. package/docs/chart-lines.md +1 -1
  69. package/docs/chart-live.md +1 -1
  70. package/docs/chart-pie.md +1 -1
  71. package/docs/chart-radar.md +1 -1
  72. package/docs/chart-ranges.md +1 -1
  73. package/docs/chart-references.md +1 -1
  74. package/docs/chart-scatter.md +1 -1
  75. package/docs/chart-waterfall.md +1 -1
  76. package/docs/chart-zoom.md +1 -1
  77. package/docs/chart.md +1 -1
  78. package/docs/chat.md +1 -1
  79. package/docs/checkbox.md +1 -1
  80. package/docs/chip.md +1 -1
  81. package/docs/choice.md +1 -1
  82. package/docs/colorbox.md +1 -1
  83. package/docs/combobox.md +1 -1
  84. package/docs/commands.md +1 -1
  85. package/docs/control.md +1 -1
  86. package/docs/data.md +1 -1
  87. package/docs/datagrid-api.md +3 -2
  88. package/docs/datagrid-bands.md +1 -1
  89. package/docs/datagrid-drag-select.md +1 -1
  90. package/docs/datagrid-drag.md +1 -1
  91. package/docs/datagrid-editing.md +1 -1
  92. package/docs/datagrid-filtering.md +1 -1
  93. package/docs/datagrid-forms.md +1 -1
  94. package/docs/datagrid-grouping.md +1 -1
  95. package/docs/datagrid-layout.md +1 -1
  96. package/docs/datagrid-lookups.md +1 -1
  97. package/docs/datagrid-master-detail.md +1 -1
  98. package/docs/datagrid-scrolling.md +77 -1
  99. package/docs/datagrid-selection.md +1 -1
  100. package/docs/datagrid.md +1 -1
  101. package/docs/datebox.md +1 -1
  102. package/docs/daterangebox.md +1 -1
  103. package/docs/diagram-api.md +19 -4
  104. package/docs/diagram-commands.md +2 -1
  105. package/docs/diagram-connections.md +8 -6
  106. package/docs/diagram-custom-nodes.md +1 -1
  107. package/docs/diagram-designer.md +1 -1
  108. package/docs/diagram-editing.md +132 -5
  109. package/docs/diagram-flow.md +21 -4
  110. package/docs/diagram-keyboard.md +5 -1
  111. package/docs/diagram-layout.md +1 -1
  112. package/docs/diagram-nodes.md +1 -1
  113. package/docs/diagram-tables.md +1 -1
  114. package/docs/diagram.md +11 -8
  115. package/docs/display.md +1 -1
  116. package/docs/draggable.md +1 -1
  117. package/docs/drawer.md +1 -1
  118. package/docs/dropdown.md +1 -1
  119. package/docs/editors.md +1 -1
  120. package/docs/expressioneditor.md +1 -1
  121. package/docs/expressions.md +1 -1
  122. package/docs/feedback.md +1 -1
  123. package/docs/fileuploader.md +1 -1
  124. package/docs/filterbuilder.md +1 -1
  125. package/docs/formlayout-schema.md +1 -1
  126. package/docs/formlayout.md +1 -1
  127. package/docs/foundations.md +1 -1
  128. package/docs/gallery.md +1 -1
  129. package/docs/gauge-base.md +1 -1
  130. package/docs/gauge-circular.md +1 -1
  131. package/docs/gauge-dashboards.md +1 -1
  132. package/docs/gauge-linear.md +1 -1
  133. package/docs/gauge-markers.md +1 -1
  134. package/docs/gauge-marks.md +1 -1
  135. package/docs/gauge-ranges.md +1 -1
  136. package/docs/gauge-scales.md +1 -1
  137. package/docs/gauge.md +1 -1
  138. package/docs/home.md +1 -1
  139. package/docs/keyboard.md +1 -1
  140. package/docs/language.md +1 -1
  141. package/docs/layout.md +1 -1
  142. package/docs/listbox.md +1 -1
  143. package/docs/loadpanel.md +1 -1
  144. package/docs/lookup.md +1 -1
  145. package/docs/markdown.md +1 -1
  146. package/docs/menus-api.md +1 -1
  147. package/docs/menus-context.md +1 -1
  148. package/docs/menus-customization.md +1 -1
  149. package/docs/menus-merging.md +1 -1
  150. package/docs/menus-programmatic.md +1 -1
  151. package/docs/menus.md +1 -1
  152. package/docs/multiview.md +1 -1
  153. package/docs/navigation.md +1 -1
  154. package/docs/numberbox.md +1 -1
  155. package/docs/otpinput.md +1 -1
  156. package/docs/pagination.md +1 -1
  157. package/docs/pivotgrid-api.md +1 -1
  158. package/docs/pivotgrid-chart.md +1 -1
  159. package/docs/pivotgrid-drilldown.md +1 -1
  160. package/docs/pivotgrid-export.md +1 -1
  161. package/docs/pivotgrid-fields.md +1 -1
  162. package/docs/pivotgrid-keyboard.md +1 -1
  163. package/docs/pivotgrid-layout.md +1 -1
  164. package/docs/pivotgrid-panel.md +1 -1
  165. package/docs/pivotgrid-remote.md +1 -1
  166. package/docs/pivotgrid-sorting.md +1 -1
  167. package/docs/pivotgrid-state.md +1 -1
  168. package/docs/pivotgrid-summaries.md +1 -1
  169. package/docs/pivotgrid.md +1 -1
  170. package/docs/popover.md +1 -1
  171. package/docs/progress.md +1 -1
  172. package/docs/qrcode.md +1 -1
  173. package/docs/radiogroup.md +1 -1
  174. package/docs/rating.md +1 -1
  175. package/docs/resizable.md +1 -1
  176. package/docs/ribbonmenu-api.md +1 -1
  177. package/docs/ribbonmenu-commands.md +1 -1
  178. package/docs/ribbonmenu-customization.md +1 -1
  179. package/docs/ribbonmenu-display.md +1 -1
  180. package/docs/ribbonmenu-layouts.md +1 -1
  181. package/docs/ribbonmenu-programmatic.md +1 -1
  182. package/docs/ribbonmenu.md +1 -1
  183. package/docs/scheduler-agenda.md +1 -1
  184. package/docs/scheduler-big-data.md +1 -1
  185. package/docs/scheduler-editing.md +1 -1
  186. package/docs/scheduler-form.md +1 -1
  187. package/docs/scheduler-icalendar.md +1 -1
  188. package/docs/scheduler-mobile.md +1 -1
  189. package/docs/scheduler-recurrence.md +1 -1
  190. package/docs/scheduler-resources.md +1 -1
  191. package/docs/scheduler-timeline.md +1 -1
  192. package/docs/scheduler.md +1 -1
  193. package/docs/scrollview.md +1 -1
  194. package/docs/shortcuteditor.md +1 -1
  195. package/docs/showcase-flowstudio.md +1 -1
  196. package/docs/showcase-home.md +1 -1
  197. package/docs/showcase-mail.md +1 -1
  198. package/docs/showcase.md +1 -1
  199. package/docs/signature.md +1 -1
  200. package/docs/skeleton.md +1 -1
  201. package/docs/slider.md +1 -1
  202. package/docs/sortable.md +1 -1
  203. package/docs/sparkline.md +1 -1
  204. package/docs/speeddial.md +1 -1
  205. package/docs/splitter.md +1 -1
  206. package/docs/stepper.md +1 -1
  207. package/docs/switch.md +1 -1
  208. package/docs/tabdocs-dock.md +1 -1
  209. package/docs/tabdocs-drag.md +1 -1
  210. package/docs/tabdocs-menus.md +1 -1
  211. package/docs/tabdocs-mobile.md +1 -1
  212. package/docs/tabdocs-tabs.md +1 -1
  213. package/docs/tabdocs-windows.md +1 -1
  214. package/docs/tabdocs-workspace.md +1 -1
  215. package/docs/tabdocs.md +1 -1
  216. package/docs/tabs.md +1 -1
  217. package/docs/tagbox.md +1 -1
  218. package/docs/textarea.md +1 -1
  219. package/docs/textbox.md +1 -1
  220. package/docs/tileview.md +1 -1
  221. package/docs/timeline.md +1 -1
  222. package/docs/toast.md +1 -1
  223. package/docs/tokens.md +1 -1
  224. package/docs/toolbar-api.md +1 -1
  225. package/docs/toolbar-customization.md +1 -1
  226. package/docs/toolbar.md +1 -1
  227. package/docs/tooltip.md +1 -1
  228. package/docs/treeview.md +1 -1
  229. package/docs/validationsummary.md +1 -1
  230. package/docs/window.md +1 -1
  231. package/docs/wizard.md +1 -1
  232. package/llms-full.txt +460 -214
  233. package/llms.txt +1 -1
  234. package/package.json +1 -1
package/llms-full.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # @motifx-community/ui
2
2
 
3
- > UI components for MotifJS (@motifx/core) on the MotifJS design system. Version 0.1.0-beta.16: a preview, its API may still change before 1.0.
3
+ > UI components for MotifJS (@motifx/core) on the MotifJS design system. Version 0.1.0-beta.18: a preview, its API may still change before 1.0.
4
4
 
5
5
  Built on MotifJS (`@motifx/core`): a component is an object, made in JSX or with `new`, whose every prop takes a value or a function (`Bind<T>`); `x-model` binds a value two-way. The look is the design system’s (`@motifx-community/design-system`): five design languages (`data-design-language`), light and dark themes, density.
6
6
 
@@ -392,7 +392,7 @@ tokens, with examples.
392
392
 
393
393
  # @motifx-community/ui
394
394
 
395
- > Get started · @motifx-community/ui 0.1.0-beta.16
395
+ > Get started · @motifx-community/ui 0.1.0-beta.18
396
396
 
397
397
  Components for MotifJS: objects you create when you need them, show anywhere and dispose when you are done, drawn from the MotifJS design system's tokens.
398
398
 
@@ -462,7 +462,7 @@ Loading issues…
462
462
 
463
463
  # Showcase: an order screen
464
464
 
465
- > Get started · @motifx-community/ui 0.1.0-beta.16
465
+ > Get started · @motifx-community/ui 0.1.0-beta.18
466
466
 
467
467
  An order entry screen built with the kit, structured the way a MotifJS application is normally built: state and operations live in a model (`OrderModel`), and the page binds to it. The customer list is a data source of 5,000 rows that responds like a server.
468
468
 
@@ -475,7 +475,7 @@ Loading issues…
475
475
 
476
476
  # Showcase: a smart home
477
477
 
478
- > Get started · @motifx-community/ui 0.1.0-beta.16
478
+ > Get started · @motifx-community/ui 0.1.0-beta.18
479
479
 
480
480
  A smart home panel for a tablet, built with the kit as a MotifJS application of its own: a rail of screens, the day and the home's state at the top, and tiles you can touch. The devices report new values every two seconds.
481
481
 
@@ -510,7 +510,7 @@ Loading issues…
510
510
 
511
511
  # Showcase: a mail application
512
512
 
513
- > Get started · @motifx-community/ui 0.1.0-beta.16
513
+ > Get started · @motifx-community/ui 0.1.0-beta.18
514
514
 
515
515
  A mail, calendar, people and tasks application built with the kit as a standalone MotifJS application. The ribbon shows the commands of the active area, the panes are resizable, and messages, events, contacts and tasks can be edited. All data is sample data.
516
516
 
@@ -553,7 +553,7 @@ Loading issues…
553
553
 
554
554
  # Showcase: FlowStudio
555
555
 
556
- > Get started · @motifx-community/ui 0.1.0-beta.16
556
+ > Get started · @motifx-community/ui 0.1.0-beta.18
557
557
 
558
558
  A studio for workflows, database tables and automations, built with the kit as a standalone MotifJS application: a ribbon whose commands work on the active document, documents with panels docked around them, a solution tree and diagrams. Workflows are checked and run, table diagrams give their SQL, and automations run in the page and give the definition a server runs. What is opened, changed and saved stays in the browser; every workflow, table and automation is made up.
559
559
 
@@ -618,7 +618,7 @@ Loading issues…
618
618
 
619
619
  # Design tokens
620
620
 
621
- > Get started · @motifx-community/ui 0.1.0-beta.16
621
+ > Get started · @motifx-community/ui 0.1.0-beta.18
622
622
 
623
623
  The token system has five layers. The first four (primitives, design language scales, semantic tokens per theme, and density) come from `@motifx-community/design-system` and are listed here for reference. The fifth layer, component tokens, belongs to this kit: each component has its own tokens, written in `@layer mx.components`, and each one references a design system token. Every design language provides its own value for each component token.
624
624
 
@@ -6827,7 +6827,7 @@ Loading issues…
6827
6827
 
6828
6828
  # Foundations
6829
6829
 
6830
- > Foundations · @motifx-community/ui 0.1.0-beta.16
6830
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
6831
6831
 
6832
6832
  The foundations are what every control of the kit shares: the Control base with its properties, keyboard and focus, and the language of the texts and formats.
6833
6833
 
@@ -6910,7 +6910,7 @@ Loading issues…
6910
6910
 
6911
6911
  # Control
6912
6912
 
6913
- > Foundations · @motifx-community/ui 0.1.0-beta.16
6913
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
6914
6914
 
6915
6915
  `Control` is the base class of every control in the package. It provides the same `text`, `enabled`, `visible` and `tabStop` properties and the same focus methods, whether a control is declared in JSX and bound to state or created with `new` and changed programmatically.
6916
6916
 
@@ -7150,7 +7150,7 @@ Loading issues…
7150
7150
 
7151
7151
  # Keyboard and focus
7152
7152
 
7153
- > Foundations · @motifx-community/ui 0.1.0-beta.16
7153
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
7154
7154
 
7155
7155
  Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
7156
7156
 
@@ -7346,7 +7346,7 @@ Loading issues…
7346
7346
 
7347
7347
  # Commands and shortcuts
7348
7348
 
7349
- > Foundations · @motifx-community/ui 0.1.0-beta.16
7349
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
7350
7350
 
7351
7351
  A command of the app is defined once: its text, icon, keys, state and action. Menus, toolbars and ribbons name it, its keys run it, and the user can give it other keys. Every shortcut of the app is in one list, so the ones that get in each other’s way are found.
7352
7352
 
@@ -7476,7 +7476,7 @@ Loading issues…
7476
7476
 
7477
7477
  # Language
7478
7478
 
7479
- > Foundations · @motifx-community/ui 0.1.0-beta.16
7479
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
7480
7480
 
7481
7481
  `uiLocale` controls the strings that controls display, the locale used for dates and numbers, and the text direction. The kit has one `uiLocale`, and each language pack is loaded on demand.
7482
7482
 
@@ -7713,7 +7713,7 @@ Loading issues…
7713
7713
 
7714
7714
  # Buttons
7715
7715
 
7716
- > Buttons · @motifx-community/ui 0.1.0-beta.16
7716
+ > Buttons · @motifx-community/ui 0.1.0-beta.18
7717
7717
 
7718
7718
  Buttons start commands. The group covers single buttons, groups of them and a floating button for the main action of a screen. Toolbars and menus, which hold the many commands of an application, are in [Navigation](navigation.md).
7719
7719
 
@@ -7884,7 +7884,7 @@ Loading issues…
7884
7884
 
7885
7885
  # Button
7886
7886
 
7887
- > Buttons · @motifx-community/ui 0.1.0-beta.16
7887
+ > Buttons · @motifx-community/ui 0.1.0-beta.18
7888
7888
 
7889
7889
  A native `<button>` styled with design tokens. It comes in three variants, three tones and three sizes, and supports an icon and an `&` access key. A button can act as a toggle, indicate that work is in progress, and open a menu or any other content, either from the whole button or from an arrow next to it with `split`, so the button keeps its own action.
7890
7890
 
@@ -8308,7 +8308,7 @@ Loading issues…
8308
8308
 
8309
8309
  # ButtonGroup
8310
8310
 
8311
- > Buttons · @motifx-community/ui 0.1.0-beta.16
8311
+ > Buttons · @motifx-community/ui 0.1.0-beta.18
8312
8312
 
8313
8313
  A set of related buttons, used as a segmented selection of one or more options or as a row of actions. The buttons are standard kit buttons and are attached by default.
8314
8314
 
@@ -8457,7 +8457,7 @@ Loading issues…
8457
8457
 
8458
8458
  # SpeedDial
8459
8459
 
8460
- > Buttons · @motifx-community/ui 0.1.0-beta.16
8460
+ > Buttons · @motifx-community/ui 0.1.0-beta.18
8461
8461
 
8462
8462
  A floating action button that opens a set of related actions. Place it in a corner, on an edge or inline. Actions appear in a line with labels, or on a full, half or quarter circle around the button with tooltips. If there is only one action, the main button performs it directly.
8463
8463
 
@@ -8755,7 +8755,7 @@ Loading issues…
8755
8755
 
8756
8756
  # Editors
8757
8757
 
8758
- > Editors · @motifx-community/ui 0.1.0-beta.16
8758
+ > Editors · @motifx-community/ui 0.1.0-beta.18
8759
8759
 
8760
8760
  Editors take values: text, numbers, dates and times, ranges, colors, ratings, codes, files and signatures. They share one field model, so a label, help text, validation and binding work the same in all of them.
8761
8761
 
@@ -8918,7 +8918,7 @@ Loading issues…
8918
8918
 
8919
8919
  # TextBox
8920
8920
 
8921
- > Editors · @motifx-community/ui 0.1.0-beta.16
8921
+ > Editors · @motifx-community/ui 0.1.0-beta.18
8922
8922
 
8923
8923
  A single-line text input with a label, help text and error display. It supports a placeholder, a prefix and suffix, buttons inside the box, a clear button, a password reveal button, a character counter, an input mask and validation, either on its own, in a group, or across all fields in a panel.
8924
8924
 
@@ -9379,7 +9379,7 @@ Loading issues…
9379
9379
 
9380
9380
  # TextArea
9381
9381
 
9382
- > Editors · @motifx-community/ui 0.1.0-beta.16
9382
+ > Editors · @motifx-community/ui 0.1.0-beta.18
9383
9383
 
9384
9384
  A multi-line text input. The box can grow with its content or be resized by the user, and it supports a character counter, a clear button and Ctrl+Enter to submit, along with the label, help text and validation common to all fields.
9385
9385
 
@@ -9695,7 +9695,7 @@ Loading issues…
9695
9695
 
9696
9696
  # ExpressionEditor
9697
9697
 
9698
- > Editors · @motifx-community/ui 0.1.0-beta.16
9698
+ > Editors · @motifx-community/ui 0.1.0-beta.18
9699
9699
 
9700
9700
  A field for an expression of the data layer, or for a template with expressions in it. The text is colored as it is typed, its problems are underlined where they are, the words that may be written at the caret come in a list, and the call the caret is in shows its parameters. It has the label, help text and validation common to all fields.
9701
9701
 
@@ -10168,7 +10168,7 @@ export default function States() {
10168
10168
 
10169
10169
  # NumberBox
10170
10170
 
10171
- > Editors · @motifx-community/ui 0.1.0-beta.16
10171
+ > Editors · @motifx-community/ui 0.1.0-beta.18
10172
10172
 
10173
10173
  A numeric input with arrow key support, PageUp and PageDown, spin buttons that repeat while held, min and max limits, exact decimal stepping, display formats such as currency and percent, and locale-aware input.
10174
10174
 
@@ -10486,7 +10486,7 @@ Loading issues…
10486
10486
 
10487
10487
  # DateBox
10488
10488
 
10489
- > Editors · @motifx-community/ui 0.1.0-beta.16
10489
+ > Editors · @motifx-community/ui 0.1.0-beta.18
10490
10490
 
10491
10491
  An input for a date, a time or both. Users can type through a mask in the locale's order, or pick from a calendar and a list of times. `min`, `max` and `disabledDates` apply to both methods.
10492
10492
 
@@ -10695,7 +10695,7 @@ Loading issues…
10695
10695
 
10696
10696
  # DateRangeBox
10697
10697
 
10698
- > Editors · @motifx-community/ui 0.1.0-beta.16
10698
+ > Editors · @motifx-community/ui 0.1.0-beta.18
10699
10699
 
10700
10700
  A single field for a start date and an end date. Users can type through two masks, or pick from two side-by-side months and a list of presets, within the allowed dates and range length. The value is a `[start, end]` pair.
10701
10701
 
@@ -10895,7 +10895,7 @@ Loading issues…
10895
10895
 
10896
10896
  # Signature
10897
10897
 
10898
- > Editors · @motifx-community/ui 0.1.0-beta.16
10898
+ > Editors · @motifx-community/ui 0.1.0-beta.18
10899
10899
 
10900
10900
  A pad to sign on with a pen, a finger or a mouse. The value is the strokes themselves, so a signature can be stored as data, drawn again at any size and exported as an image.
10901
10901
 
@@ -11107,7 +11107,7 @@ Loading issues…
11107
11107
 
11108
11108
  # OtpInput
11109
11109
 
11110
- > Editors · @motifx-community/ui 0.1.0-beta.16
11110
+ > Editors · @motifx-community/ui 0.1.0-beta.18
11111
11111
 
11112
11112
  A one-time code in a row of boxes. Typing, pasting a whole code, the code a phone offers from a message and screen readers work as in any text box, because the boxes are drawn over one real input.
11113
11113
 
@@ -11308,7 +11308,7 @@ Loading issues…
11308
11308
 
11309
11309
  # ColorBox and ColorPicker
11310
11310
 
11311
- > Editors · @motifx-community/ui 0.1.0-beta.16
11311
+ > Editors · @motifx-community/ui 0.1.0-beta.18
11312
11312
 
11313
11313
  A color field with a popup picker, or the picker on its own. The picker has a saturation and brightness area, a hue slider, an opacity slider, channel inputs and preset colors.
11314
11314
 
@@ -11469,7 +11469,7 @@ Loading issues…
11469
11469
 
11470
11470
  # Calendar
11471
11471
 
11472
- > Editors · @motifx-community/ui 0.1.0-beta.16
11472
+ > Editors · @motifx-community/ui 0.1.0-beta.18
11473
11473
 
11474
11474
  A month view for selecting a date, with year and decade views for quick navigation. It serves as the DateBox picker and can also be used on its own.
11475
11475
 
@@ -11613,7 +11613,7 @@ Loading issues…
11613
11613
 
11614
11614
  # Slider
11615
11615
 
11616
- > Editors · @motifx-community/ui 0.1.0-beta.16
11616
+ > Editors · @motifx-community/ui 0.1.0-beta.18
11617
11617
 
11618
11618
  Selects a value on a track by dragging a thumb or using the keyboard. It supports a single number or a range with two thumbs, steps, labeled tick marks, a value tooltip, a vertical orientation and number formatting, along with the label, help text and validation common to all fields.
11619
11619
 
@@ -11982,7 +11982,7 @@ Loading issues…
11982
11982
 
11983
11983
  # Rating
11984
11984
 
11985
- > Editors · @motifx-community/ui 0.1.0-beta.16
11985
+ > Editors · @motifx-community/ui 0.1.0-beta.18
11986
11986
 
11987
11987
  A row of stars for entering or displaying a score, in whole or half steps. Rating is a field, so the label, help text, rules and `x-model` work the same way as on any other field.
11988
11988
 
@@ -12114,7 +12114,7 @@ Loading issues…
12114
12114
 
12115
12115
  # ValidationSummary
12116
12116
 
12117
- > Editors · @motifx-community/ui 0.1.0-beta.16
12117
+ > Editors · @motifx-community/ui 0.1.0-beta.18
12118
12118
 
12119
12119
  Lists the invalid fields of a `ValidationGroup` under a header, with each field's label and message on its own line. Clicking a line moves focus to the field. The summary updates whenever a field in the group is validated or reset, and it is hidden when there are no errors.
12120
12120
 
@@ -12237,7 +12237,7 @@ Loading issues…
12237
12237
 
12238
12238
  # FileUploader
12239
12239
 
12240
- > Editors · @motifx-community/ui 0.1.0-beta.16
12240
+ > Editors · @motifx-community/ui 0.1.0-beta.18
12241
12241
 
12242
12242
  Lets users select files with a button or drop them on the box. Files are listed with their size and status, and can upload automatically, on a button click or programmatically, with progress, cancel, retry and remove for each file. Files that exceed the limits are listed with the reason.
12243
12243
 
@@ -12446,7 +12446,7 @@ Loading issues…
12446
12446
 
12447
12447
  # ShortcutEditor
12448
12448
 
12449
- > Editors · @motifx-community/ui 0.1.0-beta.16
12449
+ > Editors · @motifx-community/ui 0.1.0-beta.18
12450
12450
 
12451
12451
  A list of the app’s keyboard shortcuts in which the user assigns other keys. It shows the shortcuts of commands, of the app and of the kit’s components, and you can place it anywhere: a settings page, a dialog or a tab.
12452
12452
 
@@ -12698,7 +12698,7 @@ Loading issues…
12698
12698
 
12699
12699
  # Choice
12700
12700
 
12701
- > Choice · @motifx-community/ui 0.1.0-beta.16
12701
+ > Choice · @motifx-community/ui 0.1.0-beta.18
12702
12702
 
12703
12703
  Choice components let the reader pick: on or off, one of a few, several of a list, or one of many with search.
12704
12704
 
@@ -12853,7 +12853,7 @@ Loading issues…
12853
12853
 
12854
12854
  # CheckBox
12855
12855
 
12856
- > Choice · @motifx-community/ui 0.1.0-beta.16
12856
+ > Choice · @motifx-community/ui 0.1.0-beta.18
12857
12857
 
12858
12858
  A check box with a label that can be checked, unchecked or indeterminate. It supports an optional three-state cycle, read-only and required states, and validation with its group. It is a native check box styled with design tokens.
12859
12859
 
@@ -13197,7 +13197,7 @@ Loading issues…
13197
13197
 
13198
13198
  # Switch
13199
13199
 
13200
- > Choice · @motifx-community/ui 0.1.0-beta.16
13200
+ > Choice · @motifx-community/ui 0.1.0-beta.18
13201
13201
 
13202
13202
  An on/off switch with a label. It has a track with a sliding thumb, optional on/off text inside or next to the track, and read-only and required states. It is a native check box with the switch role.
13203
13203
 
@@ -13447,7 +13447,7 @@ Loading issues…
13447
13447
 
13448
13448
  # RadioGroup
13449
13449
 
13450
- > Choice · @motifx-community/ui 0.1.0-beta.16
13450
+ > Choice · @motifx-community/ui 0.1.0-beta.18
13451
13451
 
13452
13452
  A set of mutually exclusive options. Options can come from plain values, custom objects or a live list, and can be arranged vertically, horizontally or in columns. Individual options can be disabled, hidden or given help text. The group is a single Tab stop, and the arrow keys move between options.
13453
13453
 
@@ -13779,7 +13779,7 @@ Loading issues…
13779
13779
 
13780
13780
  # DropDown
13781
13781
 
13782
- > Choice · @motifx-community/ui 0.1.0-beta.16
13782
+ > Choice · @motifx-community/ui 0.1.0-beta.18
13783
13783
 
13784
13784
  Selects one item from a list. The field shows the selected item, and the list opens below it on click or from the keyboard. The list can be searched, grouped and customized, and it stays fast with thousands of items.
13785
13785
 
@@ -14111,7 +14111,7 @@ export default function Validation() {
14111
14111
 
14112
14112
  # ComboBox and Autocomplete
14113
14113
 
14114
- > Choice · @motifx-community/ui 0.1.0-beta.16
14114
+ > Choice · @motifx-community/ui 0.1.0-beta.18
14115
14115
 
14116
14116
  A text input with a list that filters as the user types. Items can come from memory or from a data layer source that is searched on the server. `Autocomplete` is the free-text variant, where the value is the text itself.
14117
14117
 
@@ -14334,7 +14334,7 @@ export default function CustomValues() {
14334
14334
 
14335
14335
  # Lookup
14336
14336
 
14337
- > Choice · @motifx-community/ui 0.1.0-beta.16
14337
+ > Choice · @motifx-community/ui 0.1.0-beta.18
14338
14338
 
14339
14339
  Selects one row from a table-style list, typically from a data source searched on the server, such as a customer by company, contact and city. The field shows the text of the selected row, and everything else works as in DropDown.
14340
14340
 
@@ -14554,7 +14554,7 @@ export default function ByKey() {
14554
14554
 
14555
14555
  # Feedback
14556
14556
 
14557
- > Feedback · @motifx-community/ui 0.1.0-beta.16
14557
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
14558
14558
 
14559
14559
  Feedback components tell the reader what is happening: how far a task has come, that something is loading, what a control does, and what has just happened.
14560
14560
 
@@ -14696,7 +14696,7 @@ Loading issues…
14696
14696
 
14697
14697
  # ProgressBar and Spinner
14698
14698
 
14699
- > Feedback · @motifx-community/ui 0.1.0-beta.16
14699
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
14700
14700
 
14701
14701
  ProgressBar shows how far an operation has progressed, as a line or a circle, or indicates activity when the progress is unknown. Spinner shows that the system is busy. It is a rotating ring that can stand alone or cover a panel while it loads, and it can wait for a delay so that quick operations do not cause a flash.
14702
14702
 
@@ -15105,7 +15105,7 @@ Loading issues…
15105
15105
 
15106
15106
  # Tooltip
15107
15107
 
15108
- > Feedback · @motifx-community/ui 0.1.0-beta.16
15108
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
15109
15109
 
15110
15110
  A short description shown next to an element when the pointer rests on it, when it receives keyboard focus, or programmatically. Users can hover over the tooltip, Escape dismisses it, and only one is open at a time on the page.
15111
15111
 
@@ -15452,7 +15452,7 @@ Loading issues…
15452
15452
 
15453
15453
  # Popover
15454
15454
 
15455
- > Feedback · @motifx-community/ui 0.1.0-beta.16
15455
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
15456
15456
 
15457
15457
  Displays content next to a related element, such as a title, a close button, a form or a card. It opens on click or on hover, follows its target, and points to it with an arrow where the design language includes one.
15458
15458
 
@@ -15682,7 +15682,7 @@ Loading issues…
15682
15682
 
15683
15683
  # LoadPanel
15684
15684
 
15685
- > Feedback · @motifx-community/ui 0.1.0-beta.16
15685
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
15686
15686
 
15687
15687
  A loading overlay for a container or the whole page. It includes a shade, a panel with the kit spinner and a message, and a Cancel button when the operation can be stopped. The content underneath is unavailable while it is shown, and focus returns afterward.
15688
15688
 
@@ -15874,7 +15874,7 @@ Loading issues…
15874
15874
 
15875
15875
  # Toast
15876
15876
 
15877
- > Feedback · @motifx-community/ui 0.1.0-beta.16
15877
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
15878
15878
 
15879
15879
  Brief notifications at the edge of the window, with four tones, an optional action such as Undo, a custom duration or none, six positions and a limit on how many appear at once. Show them programmatically, or place a custom region in JSX.
15880
15880
 
@@ -16195,7 +16195,7 @@ Loading issues…
16195
16195
 
16196
16196
  # Display
16197
16197
 
16198
- > Display · @motifx-community/ui 0.1.0-beta.16
16198
+ > Display · @motifx-community/ui 0.1.0-beta.18
16199
16199
 
16200
16200
  Display components present content: people, counts and labels, cards, pictures, tiles, events in time, codes to scan, and placeholders while content loads.
16201
16201
 
@@ -16347,7 +16347,7 @@ Loading issues…
16347
16347
 
16348
16348
  # QRCode
16349
16349
 
16350
- > Display · @motifx-community/ui 0.1.0-beta.16
16350
+ > Display · @motifx-community/ui 0.1.0-beta.18
16351
16351
 
16352
16352
  A QR code, drawn as vectors so that it stays sharp at any size. It has no dependencies, chooses the smallest version that holds the text, and can carry a logo.
16353
16353
 
@@ -16530,7 +16530,7 @@ Loading issues…
16530
16530
 
16531
16531
  # Barcode
16532
16532
 
16533
- > Display · @motifx-community/ui 0.1.0-beta.16
16533
+ > Display · @motifx-community/ui 0.1.0-beta.18
16534
16534
 
16535
16535
  A linear barcode, drawn as vectors: Code 128, Code 39, EAN-13, EAN-8, UPC-A or Interleaved 2 of 5. It has no dependencies, works out check digits and refuses a value the format cannot hold.
16536
16536
 
@@ -16727,7 +16727,7 @@ Loading issues…
16727
16727
 
16728
16728
  # Badge
16729
16729
 
16730
- > Display · @motifx-community/ui 0.1.0-beta.16
16730
+ > Display · @motifx-community/ui 0.1.0-beta.18
16731
16731
 
16732
16732
  A short text, count or dot, shown inline or on the corner of a button, avatar or icon. A count above its maximum displays as “99+”, and a count of zero is hidden.
16733
16733
 
@@ -16928,7 +16928,7 @@ Loading issues…
16928
16928
 
16929
16929
  # Avatar and AvatarGroup
16930
16930
 
16931
- > Display · @motifx-community/ui 0.1.0-beta.16
16931
+ > Display · @motifx-community/ui 0.1.0-beta.18
16932
16932
 
16933
16933
  Represents a person with a picture, initials or an icon, with an optional presence indicator on its corner. A group stacks or spreads avatars and counts the ones it does not show.
16934
16934
 
@@ -17174,7 +17174,7 @@ Loading issues…
17174
17174
 
17175
17175
  # Chip and ChipGroup
17176
17176
 
17177
- > Display · @motifx-community/ui 0.1.0-beta.16
17177
+ > Display · @motifx-community/ui 0.1.0-beta.18
17178
17178
 
17179
17179
  A compact element with short text and an optional leading icon or avatar. Use it as a filter, as a choice among a few options, or to represent a selected item that can be removed. A group handles single or multiple selection and arrow key navigation.
17180
17180
 
@@ -17459,7 +17459,7 @@ Loading issues…
17459
17459
 
17460
17460
  # Card
17461
17461
 
17462
- > Display · @motifx-community/ui 0.1.0-beta.16
17462
+ > Display · @motifx-community/ui 0.1.0-beta.18
17463
17463
 
17464
17464
  A surface for a single subject, with an optional image, a header with an avatar and titles, content and a row of actions. Empty parts are not rendered.
17465
17465
 
@@ -17721,7 +17721,7 @@ Loading issues…
17721
17721
 
17722
17722
  # Gallery
17723
17723
 
17724
- > Display · @motifx-community/ui 0.1.0-beta.16
17724
+ > Display · @motifx-community/ui 0.1.0-beta.18
17725
17725
 
17726
17726
  Displays a horizontal set of slides, one or several at a time. Users navigate with the side buttons, the indicator dots, swipe gestures or the arrow keys, and it can run as an automatic slideshow. A slide can be an image with a caption or any other content.
17727
17727
 
@@ -17973,7 +17973,7 @@ Loading issues…
17973
17973
 
17974
17974
  # TileView
17975
17975
 
17976
- > Display · @motifx-community/ui 0.1.0-beta.16
17976
+ > Display · @motifx-community/ui 0.1.0-beta.18
17977
17977
 
17978
17978
  Arranges tiles of different sizes on a grid of base cells, where each tile spans a set number of cells. Tiles fill the height in columns and scroll horizontally, or fill the width in rows. They can be selected and reordered by dragging.
17979
17979
 
@@ -18187,7 +18187,7 @@ Loading issues…
18187
18187
 
18188
18188
  # Timeline
18189
18189
 
18190
- > Display · @motifx-community/ui 0.1.0-beta.16
18190
+ > Display · @motifx-community/ui 0.1.0-beta.18
18191
18191
 
18192
18192
  Displays events in chronological order. In the vertical layout, each event is a card next to a line with a marker. In the horizontal layout, events appear along a line of dates, and selecting a date shows that event's card below the line. Dates are formatted in the kit language. For scheduling by the hour, see [Scheduler](scheduler.md).
18193
18193
 
@@ -18369,7 +18369,7 @@ Loading issues…
18369
18369
 
18370
18370
  # Skeleton
18371
18371
 
18372
- > Display · @motifx-community/ui 0.1.0-beta.16
18372
+ > Display · @motifx-community/ui 0.1.0-beta.18
18373
18373
 
18374
18374
  A placeholder that matches the shape of content that is loading, so the page keeps its layout while data arrives. If you provide content, it replaces the placeholder in the same place when loading ends.
18375
18375
 
@@ -18508,7 +18508,7 @@ Loading issues…
18508
18508
 
18509
18509
  # Chat
18510
18510
 
18511
- > AI chat · @motifx-community/ui 0.1.0-beta.16
18511
+ > AI chat · @motifx-community/ui 0.1.0-beta.18
18512
18512
 
18513
18513
  A conversation with a model, drawn by turn: the user’s question, then what the model did, in order — its thinking, text, tool calls, to-do list — each with a dot at its start. The chat draws everything, and your app talks to the model and writes the reply. There is no built-in provider: any streaming API connects through `reply()`.
18514
18514
 
@@ -20024,7 +20024,7 @@ export function olderPage(): ChatMessage[] {
20024
20024
 
20025
20025
  # Markdown
20026
20026
 
20027
- > AI chat · @motifx-community/ui 0.1.0-beta.16
20027
+ > AI chat · @motifx-community/ui 0.1.0-beta.18
20028
20028
 
20029
20029
  Shows markdown, either all at once or as it arrives from a model. Each character appears the moment it is written. A mark whose meaning is not known yet shows as text until it is, then its element is made and the text continues inside it. Nothing that has been drawn is drawn again, while the text grows or when it ends.
20030
20030
 
@@ -20371,7 +20371,7 @@ Loading issues…
20371
20371
 
20372
20372
  # Navigation
20373
20373
 
20374
- > Navigation · @motifx-community/ui 0.1.0-beta.16
20374
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
20375
20375
 
20376
20376
  Navigation components move the reader around an application and lay out its screens: bars at the top and bottom, menus and toolbars, tabs, paths, steps and pages, panels that slide in, and the containers that arrange everything.
20377
20377
 
@@ -20523,7 +20523,7 @@ Loading issues…
20523
20523
 
20524
20524
  # AppBar
20525
20525
 
20526
- > Navigation · @motifx-community/ui 0.1.0-beta.16
20526
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
20527
20527
 
20528
20528
  The top bar of an application, with a navigation button, a logo, a title, a control and commands. The commands are a `Toolbar`, so those that do not fit move into a menu.
20529
20529
 
@@ -20721,7 +20721,7 @@ Loading issues…
20721
20721
 
20722
20722
  # BottomNavigation
20723
20723
 
20724
- > Navigation · @motifx-community/ui 0.1.0-beta.16
20724
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
20725
20725
 
20726
20726
  The destinations of an application at the bottom of the screen, each an icon with a label. The bar is one Tab stop, marks the selected item for screen readers and keeps clear of the home indicator of a phone.
20727
20727
 
@@ -20983,7 +20983,7 @@ Loading issues…
20983
20983
 
20984
20984
  # Tabs
20985
20985
 
20986
- > Navigation · @motifx-community/ui 0.1.0-beta.16
20986
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
20987
20987
 
20988
20988
  Tabs display one panel at a time below a tab strip. You can define them in JSX or programmatically, and they support closable tabs, icons and badges, scroll buttons when tabs overflow, four placements, and panels that are created on first display.
20989
20989
 
@@ -21447,7 +21447,7 @@ Loading issues…
21447
21447
 
21448
21448
  # Breadcrumb
21449
21449
 
21450
- > Navigation · @motifx-community/ui 0.1.0-beta.16
21450
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
21451
21451
 
21452
21452
  Shows the path to the current page. Each step is a link or button, and the current page comes last. Steps that do not fit move into a menu after the first step.
21453
21453
 
@@ -21580,7 +21580,7 @@ Loading issues…
21580
21580
 
21581
21581
  # Pagination
21582
21582
 
21583
- > Navigation · @motifx-community/ui 0.1.0-beta.16
21583
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
21584
21584
 
21585
21585
  Navigates through pages of items, with page size options, the current position, navigation buttons and a button for each nearby page. It switches to a compact layout when it does not fit, and it looks and works like the DataGrid pager.
21586
21586
 
@@ -21703,7 +21703,7 @@ Loading issues…
21703
21703
 
21704
21704
  # Stepper
21705
21705
 
21706
- > Navigation · @motifx-community/ui 0.1.0-beta.16
21706
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
21707
21707
 
21708
21708
  Shows the steps of a longer task and the user's progress through them. Each step has an indicator and text, with a line between steps, and steps before the current one are marked complete. [Wizard](wizard.md) adds a page and navigation buttons to each step.
21709
21709
 
@@ -21947,7 +21947,7 @@ Loading issues…
21947
21947
 
21948
21948
  # Wizard
21949
21949
 
21950
- > Navigation · @motifx-community/ui 0.1.0-beta.16
21950
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
21951
21951
 
21952
21952
  Guides the user through a multi-step task. It combines a [Stepper](stepper.md) above or next to one page per step with Back and Next buttons below. Next validates the page first, and on the last step it finishes the wizard.
21953
21953
 
@@ -22195,7 +22195,7 @@ Loading issues…
22195
22195
 
22196
22196
  # Accordion
22197
22197
 
22198
- > Navigation · @motifx-community/ui 0.1.0-beta.16
22198
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
22199
22199
 
22200
22200
  An accordion expands and collapses sections under their headers. It supports one or several open sections, sections that stay open, icons, three appearances and sections that are created when first opened.
22201
22201
 
@@ -22498,7 +22498,7 @@ Loading issues…
22498
22498
 
22499
22499
  # MultiView
22500
22500
 
22501
- > Navigation · @motifx-community/ui 0.1.0-beta.16
22501
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
22502
22502
 
22503
22503
  Displays one page at a time from a horizontal set. Users move between pages with a swipe or drag, and you can navigate with `next()`, `previous()` and `goTo()`, or with [Tabs](tabs.md), a [Stepper](stepper.md) or buttons bound to the same value. It works like the panels of a tab control without the tab strip.
22504
22504
 
@@ -22708,7 +22708,7 @@ Loading issues…
22708
22708
 
22709
22709
  # Window and dialog
22710
22710
 
22711
- > Navigation · @motifx-community/ui 0.1.0-beta.16
22711
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
22712
22712
 
22713
22713
  A window or dialog built on the native `<dialog>` element. A single form can be shown as modeless or modal, depending on how you open it. It has a title bar, can be moved, resized, minimized and maximized, and Enter and Escape activate its buttons. Forms can open other forms, and `messageBox` and `confirm` cover common prompts.
22714
22714
 
@@ -23272,7 +23272,7 @@ export default function DefaultButtons() {
23272
23272
 
23273
23273
  # BottomSheet
23274
23274
 
23275
- > Navigation · @motifx-community/ui 0.1.0-beta.16
23275
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
23276
23276
 
23277
23277
  A panel that slides up from the bottom of the page or a container and stops at set heights: peek, half, full, the height of its content, or custom values. Users can drag it by its handle and title, flick it, and swipe down to close it. It can be modal or non-modal, and the back button closes it on phones.
23278
23278
 
@@ -23596,7 +23596,7 @@ Loading issues…
23596
23596
 
23597
23597
  # Drawer
23598
23598
 
23599
- > Navigation · @motifx-community/ui 0.1.0-beta.16
23599
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
23600
23600
 
23601
23601
  A panel that slides in from an edge of the page or a container, either over the content or pushing it aside. Users can swipe it in from the edge and back out, and Escape, the scrim and the browser's back action close it.
23602
23602
 
@@ -23833,7 +23833,7 @@ Loading issues…
23833
23833
 
23834
23834
  # ActionSheet
23835
23835
 
23836
- > Navigation · @motifx-community/ui 0.1.0-beta.16
23836
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
23837
23837
 
23838
23838
  A list of commands that slides up from the bottom of the screen, built from the kit's menu items and sized for touch. It supports a title, a message and a separate Cancel button. A context menu uses it on touch screens.
23839
23839
 
@@ -24051,7 +24051,7 @@ Loading issues…
24051
24051
 
24052
24052
  # Layout
24053
24053
 
24054
- > Navigation · @motifx-community/ui 0.1.0-beta.16
24054
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
24055
24055
 
24056
24056
  Container controls for arranging other controls: `Stack` (a row or column), `Grid` (rows and columns), `Panel` (a plain box that can scroll), `GroupBox` (a titled frame), `DockPanel` (children docked to its edges) and `SplitContainer` (two panes with a splitter). All of them are controls, so they can disable and hide their content, and they lay out children added at any time.
24057
24057
 
@@ -24643,7 +24643,7 @@ Loading issues…
24643
24643
 
24644
24644
  # Splitter
24645
24645
 
24646
- > Navigation · @motifx-community/ui 0.1.0-beta.16
24646
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
24647
24647
 
24648
24648
  Divides space into any number of resizable panes, arranged side by side or stacked. A handle between each pair of panes can be dragged or moved with the keyboard, and it resizes the two panes next to it. Panes can be collapsed from their handle and can contain another splitter. For two panes where one has a fixed size, see [SplitContainer](layout.md).
24649
24649
 
@@ -24855,7 +24855,7 @@ Loading issues…
24855
24855
 
24856
24856
  # Resizable
24857
24857
 
24858
- > Navigation · @motifx-community/ui 0.1.0-beta.16
24858
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
24859
24859
 
24860
24860
  A box that users can resize from its edges and corners with the pointer, or with the arrow keys on the grip in its end corner. It respects minimum and maximum sizes, can stay within an area, and can preserve its aspect ratio.
24861
24861
 
@@ -25002,7 +25002,7 @@ Loading issues…
25002
25002
 
25003
25003
  # Draggable and DropTarget
25004
25004
 
25005
- > Navigation · @motifx-community/ui 0.1.0-beta.16
25005
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
25006
25006
 
25007
25007
  Makes any content movable with the pointer, touch or the arrow keys, optionally along one axis, inside a boundary, by a handle or as a copy. `DropTarget` defines areas that accept it. To reorder items in a list, see [Sortable](sortable.md).
25008
25008
 
@@ -25204,7 +25204,7 @@ Loading issues…
25204
25204
 
25205
25205
  # ScrollView
25206
25206
 
25207
- > Navigation · @motifx-community/ui 0.1.0-beta.16
25207
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
25208
25208
 
25209
25209
  A scrollable container with configurable scrollbars, pull-to-refresh, and load-on-scroll near the end of the content. You can scroll it programmatically to a position or an element.
25210
25210
 
@@ -25398,7 +25398,7 @@ Loading issues…
25398
25398
 
25399
25399
  # Sortable
25400
25400
 
25401
- > Navigation · @motifx-community/ui 0.1.0-beta.16
25401
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
25402
25402
 
25403
25403
  Lets users reorder items by dragging them with the pointer or a finger, or with the keyboard. Lists in the same group can exchange items. A drop moves the element and reports the indexes, while your data stays under your control.
25404
25404
 
@@ -25616,7 +25616,7 @@ Loading issues…
25616
25616
 
25617
25617
  # FormLayout
25618
25618
 
25619
- > Navigation · @motifx-community/ui 0.1.0-beta.16
25619
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
25620
25620
 
25621
25621
  Arranges the fields of a data object on a grid. Each field gets an editor, chosen by name or by the type of its value, with two-way binding to the object. Groups, column spans and buttons organize the layout, and submitting the form validates every field first.
25622
25622
 
@@ -25754,7 +25754,7 @@ Loading issues…
25754
25754
 
25755
25755
  # FormLayout: From a schema
25756
25756
 
25757
- > Navigation · @motifx-community/ui 0.1.0-beta.16
25757
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
25758
25758
 
25759
25759
  A form can be made from a schema of its data object: a field for each property, with the editor its type, values and format call for, its title as the label and its description as the help text. The same schema checks the value in the form, in the application and on a server, with the data layer's `jsonSchema`, a subset of JSON Schema.
25760
25760
 
@@ -25901,7 +25901,7 @@ Loading issues…
25901
25901
 
25902
25902
  # Chart
25903
25903
 
25904
- > Charts · @motifx-community/ui 0.1.0-beta.16
25904
+ > Charts · @motifx-community/ui 0.1.0-beta.18
25905
25905
 
25906
25906
  Displays lines, areas, bars, scatter points and bubbles on a shared value axis. The chart has no dependencies, takes its appearance from the design language, and makes every value available through the keyboard and a table view.
25907
25907
 
@@ -26332,7 +26332,7 @@ export default class Programmatic extends Component<HTMLDivElement> {
26332
26332
 
26333
26333
  # Chart: Lines and areas
26334
26334
 
26335
- > Charts · @motifx-community/ui 0.1.0-beta.16
26335
+ > Charts · @motifx-community/ui 0.1.0-beta.18
26336
26336
 
26337
26337
  Lines and areas show how values change along an axis: over time, or from one category to the next.
26338
26338
 
@@ -26464,7 +26464,7 @@ Loading issues…
26464
26464
 
26465
26465
  # Chart: Bars
26466
26466
 
26467
- > Charts · @motifx-community/ui 0.1.0-beta.16
26467
+ > Charts · @motifx-community/ui 0.1.0-beta.18
26468
26468
 
26469
26469
  Bars compare amounts. They stand on a common baseline, so lengths compare exactly, side by side, stacked, or on their side for long names.
26470
26470
 
@@ -26610,7 +26610,7 @@ export const SALES = [
26610
26610
 
26611
26611
  # Chart: Scatter and bubble
26612
26612
 
26613
- > Charts · @motifx-community/ui 0.1.0-beta.16
26613
+ > Charts · @motifx-community/ui 0.1.0-beta.18
26614
26614
 
26615
26615
  Scatter and bubble charts place each row by two numbers, to show how they relate.
26616
26616
 
@@ -26753,7 +26753,7 @@ Loading issues…
26753
26753
 
26754
26754
  # Chart: Pie and donut
26755
26755
 
26756
- > Charts · @motifx-community/ui 0.1.0-beta.16
26756
+ > Charts · @motifx-community/ui 0.1.0-beta.18
26757
26757
 
26758
26758
  A pie or a donut splits one whole into its parts, for a share seen at a glance.
26759
26759
 
@@ -26882,7 +26882,7 @@ Loading issues…
26882
26882
 
26883
26883
  # Chart: Funnel
26884
26884
 
26885
- > Charts · @motifx-community/ui 0.1.0-beta.16
26885
+ > Charts · @motifx-community/ui 0.1.0-beta.18
26886
26886
 
26887
26887
  A funnel follows a quantity through stages in order, and shows how much of it is left at each one.
26888
26888
 
@@ -27001,7 +27001,7 @@ Loading issues…
27001
27001
 
27002
27002
  # Chart: Radar
27003
27003
 
27004
- > Charts · @motifx-community/ui 0.1.0-beta.16
27004
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27005
27005
 
27006
27006
  A radar compares several measures at once, for one or more items.
27007
27007
 
@@ -27129,7 +27129,7 @@ Loading issues…
27129
27129
 
27130
27130
  # Chart: Heat map
27131
27131
 
27132
- > Charts · @motifx-community/ui 0.1.0-beta.16
27132
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27133
27133
 
27134
27134
  A heat map shows a value for each pair of two categories as a color.
27135
27135
 
@@ -27226,7 +27226,7 @@ Loading issues…
27226
27226
 
27227
27227
  # Chart: Ranges
27228
27228
 
27229
- > Charts · @motifx-community/ui 0.1.0-beta.16
27229
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27230
27230
 
27231
27231
  Ranges show a low and a high value for each position, as a band or as floating bars.
27232
27232
 
@@ -27357,7 +27357,7 @@ Loading issues…
27357
27357
 
27358
27358
  # Chart: Candles
27359
27359
 
27360
- > Charts · @motifx-community/ui 0.1.0-beta.16
27360
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27361
27361
 
27362
27362
  Candles show the first, highest, lowest and last price for each position.
27363
27363
 
@@ -27525,7 +27525,7 @@ Loading issues…
27525
27525
 
27526
27526
  # Chart: Waterfall
27527
27527
 
27528
- > Charts · @motifx-community/ui 0.1.0-beta.16
27528
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27529
27529
 
27530
27530
  A waterfall shows how a starting value becomes an end value through changes up and down.
27531
27531
 
@@ -27640,7 +27640,7 @@ Loading issues…
27640
27640
 
27641
27641
  # Chart: Zoom and large data
27642
27642
 
27643
- > Charts · @motifx-community/ui 0.1.0-beta.16
27643
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27644
27644
 
27645
27645
  Large data stays quick: long lines are thinned to the width with their peaks kept, and the reader zooms in for detail.
27646
27646
 
@@ -27739,7 +27739,7 @@ Loading issues…
27739
27739
 
27740
27740
  # Chart: Live data
27741
27741
 
27742
- > Charts · @motifx-community/ui 0.1.0-beta.16
27742
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27743
27743
 
27744
27744
  A chart follows its data: reactive values redraw it, and live data moves along with the latest values.
27745
27745
 
@@ -27805,7 +27805,7 @@ Loading issues…
27805
27805
 
27806
27806
  # Chart: References and selection
27807
27807
 
27808
- > Charts · @motifx-community/ui 0.1.0-beta.16
27808
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27809
27809
 
27810
27810
  Reference lines and bands give the values a target, a limit or a period, and the reader can choose values to act on.
27811
27811
 
@@ -27935,7 +27935,7 @@ export default function Selection() {
27935
27935
 
27936
27936
  # Sparkline
27937
27937
 
27938
- > Charts · @motifx-community/ui 0.1.0-beta.16
27938
+ > Charts · @motifx-community/ui 0.1.0-beta.18
27939
27939
 
27940
27940
  A chart the size of a word, for a trend beside a number, in a sentence or in a row of a table. It draws a line, an area, bars, or wins and losses, and marks the values that matter.
27941
27941
 
@@ -28058,7 +28058,7 @@ Loading issues…
28058
28058
 
28059
28059
  # Gauge
28060
28060
 
28061
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28061
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28062
28062
 
28063
28063
  Shows a value against its scale, as an arc, a circle or a straight bar. Ranges give stretches of the scale a meaning, markers and marks point at values, and every part takes its look from the design language.
28064
28064
 
@@ -28214,7 +28214,7 @@ Loading issues…
28214
28214
 
28215
28215
  # Gauge: Circular
28216
28216
 
28217
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28217
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28218
28218
 
28219
28219
  A circular gauge shows its value on an arc or a whole circle, with the value written in the middle. It reads best for one value whose scale the reader knows, such as a speed or a share.
28220
28220
 
@@ -28319,7 +28319,7 @@ Loading issues…
28319
28319
 
28320
28320
  # Gauge: Linear
28321
28321
 
28322
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28322
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28323
28323
 
28324
28324
  A linear gauge shows its value on a straight bar, across or upright. Bars fit in narrow places, line up in lists, and compare well side by side.
28325
28325
 
@@ -28407,7 +28407,7 @@ Loading issues…
28407
28407
 
28408
28408
  # Gauge: Scales
28409
28409
 
28410
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28410
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28411
28411
 
28412
28412
  The scale tells the reader how to read the value: its ends, ticks with their values, or nothing at all.
28413
28413
 
@@ -28528,7 +28528,7 @@ Loading issues…
28528
28528
 
28529
28529
  # Gauge: Ranges
28530
28530
 
28531
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28531
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28532
28532
 
28533
28533
  Ranges give stretches of the scale a meaning, such as normal, high and critical. They show as a band beside the track, and the fill takes the color of the range its value is in.
28534
28534
 
@@ -28665,7 +28665,7 @@ Loading issues…
28665
28665
 
28666
28666
  # Gauge: Markers
28667
28667
 
28668
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28668
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28669
28669
 
28670
28670
  A marker points at the value: a needle from the middle of an arc, a shape on or beside the track, or a callout that writes the value.
28671
28671
 
@@ -28804,7 +28804,7 @@ Loading issues…
28804
28804
 
28805
28805
  # Gauge: Marks
28806
28806
 
28807
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28807
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28808
28808
 
28809
28809
  Marks show other values on the scale besides the gauge's own, such as a target, a limit, or the lowest and highest expected.
28810
28810
 
@@ -28916,7 +28916,7 @@ Loading issues…
28916
28916
 
28917
28917
  # Gauge: Base value
28918
28918
 
28919
- > Gauges · @motifx-community/ui 0.1.0-beta.16
28919
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
28920
28920
 
28921
28921
  The fill starts at the start of the scale, or at a base value inside it. A scale with values on both sides of a target then fills from the target, either way.
28922
28922
 
@@ -28998,7 +28998,7 @@ Loading issues…
28998
28998
 
28999
28999
  # Gauge: Dashboards
29000
29000
 
29001
- > Gauges · @motifx-community/ui 0.1.0-beta.16
29001
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
29002
29002
 
29003
29003
  Gauges of different kinds put together, all following the same values. Each gauge keeps its own scale, so readers compare values by their meaning, not by size alone.
29004
29004
 
@@ -29136,7 +29136,7 @@ Loading issues…
29136
29136
 
29137
29137
  # BarGauge
29138
29138
 
29139
- > Gauges · @motifx-community/ui 0.1.0-beta.16
29139
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
29140
29140
 
29141
29141
  Shows several values side by side as bars bent round one middle, each against the same scale. It compares a few values at a glance, in little room.
29142
29142
 
@@ -29238,7 +29238,7 @@ Loading issues…
29238
29238
 
29239
29239
  # BarGauge: Labels and legend
29240
29240
 
29241
- > Gauges · @motifx-community/ui 0.1.0-beta.16
29241
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
29242
29242
 
29243
29243
  Each value can be written at the end of its bar, named in a legend, and shown with its name under the pointer.
29244
29244
 
@@ -29320,7 +29320,7 @@ Loading issues…
29320
29320
 
29321
29321
  # BarGauge: Data
29322
29322
 
29323
- > Gauges · @motifx-community/ui 0.1.0-beta.16
29323
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
29324
29324
 
29325
29325
  A bar gauge reads numbers, or rows through their fields, and follows them as they change.
29326
29326
 
@@ -29446,7 +29446,7 @@ Loading issues…
29446
29446
 
29447
29447
  # BarGauge: Angles and size
29448
29448
 
29449
- > Gauges · @motifx-community/ui 0.1.0-beta.16
29449
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
29450
29450
 
29451
29451
  How far the bars go round and which way they face fit a bar gauge to the room it has.
29452
29452
 
@@ -29537,7 +29537,7 @@ Loading issues…
29537
29537
 
29538
29538
  # Data
29539
29539
 
29540
- > Data · @motifx-community/ui 0.1.0-beta.16
29540
+ > Data · @motifx-community/ui 0.1.0-beta.18
29541
29541
 
29542
29542
  Data components show and pick from structured data: hierarchies, lists, sets of tags, and filters that the reader builds. Tables have their own group: see [DataGrid](datagrid.md).
29543
29543
 
@@ -29668,7 +29668,7 @@ Loading issues…
29668
29668
 
29669
29669
  # TreeView
29670
29670
 
29671
- > Data · @motifx-community/ui 0.1.0-beta.16
29671
+ > Data · @motifx-community/ui 0.1.0-beta.18
29672
29672
 
29673
29673
  Displays items in a hierarchy. Rows can be expanded and collapsed, selected individually or in groups, and searched. Check boxes can roll up to parent rows, and children can load on demand when a row is first expanded. Large trees render only the visible rows.
29674
29674
 
@@ -30430,7 +30430,7 @@ export default function SizesAndLines() {
30430
30430
 
30431
30431
  # ListBox
30432
30432
 
30433
- > Data · @motifx-community/ui 0.1.0-beta.16
30433
+ > Data · @motifx-community/ui 0.1.0-beta.18
30434
30434
 
30435
30435
  A list displayed directly on the page. Users select one or more items with the keyboard or pointer. Items can come from memory or a data source, can be searched and grouped, and long lists render only the visible rows.
30436
30436
 
@@ -30813,7 +30813,7 @@ export default function Validation() {
30813
30813
 
30814
30814
  # TagBox
30815
30815
 
30816
- > Data · @motifx-community/ui 0.1.0-beta.16
30816
+ > Data · @motifx-community/ui 0.1.0-beta.18
30817
30817
 
30818
30818
  Selects multiple items. Selected items appear as tags in the field, followed by a text input that searches the list. Items can come from memory or from a data source, and typed text can become a custom tag.
30819
30819
 
@@ -31182,7 +31182,7 @@ export default function Localization() {
31182
31182
 
31183
31183
  # FilterBuilder
31184
31184
 
31185
- > Data · @motifx-community/ui 0.1.0-beta.16
31185
+ > Data · @motifx-community/ui 0.1.0-beta.18
31186
31186
 
31187
31187
  Lets users build a filter visually, using groups joined by And, Or, Not And or Not Or, and conditions made of a field, an operation and a value. Its value is a data layer filter expression, so it works directly with in-memory rows and every adapter. DataGrid opens it from the filter panel, and you can also use it on its own for reports or saved searches.
31188
31188
 
@@ -31791,7 +31791,7 @@ export default function Localization() {
31791
31791
 
31792
31792
  # Expression language
31793
31793
 
31794
- > Data · @motifx-community/ui 0.1.0-beta.16
31794
+ > Data · @motifx-community/ui 0.1.0-beta.18
31795
31795
 
31796
31796
  The data package carries a small expression language for the conditions, values and texts an application computes from data: the condition of a rule, the value a flow writes into a step, the body of a message. An expression changes nothing and reaches nothing by itself — it reads only the names it is given and their own fields, the moment and the time zone come from the evaluation, and limits stop runaway work — so the same expression with the same values always gives the same result, in the browser and on a server. It is checked against a schema as it is written, and it travels as text with a plain JSON tree.
31797
31797
 
@@ -32226,7 +32226,7 @@ Loading issues…
32226
32226
 
32227
32227
  # RibbonMenu
32228
32228
 
32229
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32229
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32230
32230
 
32231
32231
  The commands of an application in tabs, each tab in named groups of large, medium and small commands. It adapts to the room it has, can show only its tabs or hide itself, and lets users arrange it to their liking. The menu holds nothing of its own: the tabs, the groups and the commands are given by the application.
32232
32232
 
@@ -32465,7 +32465,7 @@ Loading issues…
32465
32465
 
32466
32466
  # RibbonMenu: Commands
32467
32467
 
32468
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32468
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32469
32469
 
32470
32470
  A group holds commands of three sizes and eight types. Every field of a command is a value or a function the menu follows, so the commands change with the application’s state.
32471
32471
 
@@ -32587,7 +32587,7 @@ Loading issues…
32587
32587
 
32588
32588
  # RibbonMenu: Layouts and room
32589
32589
 
32590
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32590
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32591
32591
 
32592
32592
  The menu has two layouts, and gives way step by step when its room shrinks: commands become smaller, groups fold, and what is left scrolls. Narrow enough, it turns compact.
32593
32593
 
@@ -32650,7 +32650,7 @@ Loading issues…
32650
32650
 
32651
32651
  # RibbonMenu: Showing and keys
32652
32652
 
32653
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32653
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32654
32654
 
32655
32655
  The menu can show only its tabs or hide itself to leave the page more room. A button before the tabs opens the app’s main menu, quick commands are at hand from every tab, and key hints let the keyboard reach any command in a few letters.
32656
32656
 
@@ -32750,7 +32750,7 @@ Loading issues…
32750
32750
 
32751
32751
  # RibbonMenu: Customization
32752
32752
 
32753
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32753
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32754
32754
 
32755
32755
  Users arrange the menu from its context menu: they hide what they never use, move what they use most, and add commands to the quick commands. Everything they change is one plain object, to save and give back.
32756
32756
 
@@ -32848,7 +32848,7 @@ Loading issues…
32848
32848
 
32849
32849
  # RibbonMenu: Programmatic changes
32850
32850
 
32851
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32851
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32852
32852
 
32853
32853
  Tabs, groups and commands can be added, removed, moved and changed at any time, by their paths. The menu redraws only what changed: groups and commands that stay keep their buttons, their state and their place.
32854
32854
 
@@ -32943,7 +32943,7 @@ Loading issues…
32943
32943
 
32944
32944
  # RibbonMenu: API reference
32945
32945
 
32946
- > RibbonMenu · @motifx-community/ui 0.1.0-beta.16
32946
+ > RibbonMenu · @motifx-community/ui 0.1.0-beta.18
32947
32947
 
32948
32948
  Everything `RibbonMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
32949
32949
 
@@ -33078,7 +33078,7 @@ Loading issues…
33078
33078
 
33079
33079
  # MenuBar and ContextMenu
33080
33080
 
33081
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33081
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33082
33082
 
33083
33083
  An application menu bar (File, Edit, View) and a context menu that opens on right-click. Both use the same menu items, which support submenus, check and radio items, shortcuts and access keys. The bar can be customized by the user, changed by path and merged with the bars of documents and windows.
33084
33084
 
@@ -33242,7 +33242,7 @@ Loading issues…
33242
33242
 
33243
33243
  # MenuBar: ContextMenu
33244
33244
 
33245
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33245
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33246
33246
 
33247
33247
  The menu of an element: it opens on a right-click at the pointer, and with the Menu key or Shift+F10 at the focused element. Its items are the same as those of a menu bar.
33248
33248
 
@@ -33373,7 +33373,7 @@ Loading issues…
33373
33373
 
33374
33374
  # MenuBar: Customization
33375
33375
 
33376
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33376
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33377
33377
 
33378
33378
  With `customizable`, the user arranges the bar: hides and moves items, renames them, adds commands and menus, and changes keyboard shortcuts. The items you give stay as they are; what the user changed is one object for the app to save.
33379
33379
 
@@ -33519,7 +33519,7 @@ Loading issues…
33519
33519
 
33520
33520
  # MenuBar: Programmatic changes
33521
33521
 
33522
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33522
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33523
33523
 
33524
33524
  The items of a bar can be changed while it runs: by path, without building the whole list again, or in place followed by `refresh()`. Items can also name app commands, which give them their text, keys, state and action.
33525
33525
 
@@ -33597,7 +33597,7 @@ Loading issues…
33597
33597
 
33598
33598
  # MenuBar: Merging menus
33599
33599
 
33600
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33600
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33601
33601
 
33602
33602
  A page can have several bars: the app’s bar, and the bars of documents, windows and tabs. The bar of the document in use shows its items in the app’s bar, so the user always finds the commands in one place.
33603
33603
 
@@ -33809,7 +33809,7 @@ Loading issues…
33809
33809
 
33810
33810
  # MenuBar: API reference
33811
33811
 
33812
- > MenuBar · @motifx-community/ui 0.1.0-beta.16
33812
+ > MenuBar · @motifx-community/ui 0.1.0-beta.18
33813
33813
 
33814
33814
  Every prop, property, method and event of `MenuBar` and `ContextMenu`, the fields of a menu item, and the styling hooks and tokens.
33815
33815
 
@@ -33957,7 +33957,7 @@ Loading issues…
33957
33957
 
33958
33958
  # Toolbar
33959
33959
 
33960
- > Toolbar · @motifx-community/ui 0.1.0-beta.16
33960
+ > Toolbar · @motifx-community/ui 0.1.0-beta.18
33961
33961
 
33962
33962
  A command bar that holds buttons, toggle buttons, menus and fields, organized in groups with separators. The toolbar is a single Tab stop, and the arrow keys move between its controls. Items that do not fit move into an overflow menu at the end. You can define items as data, as JSX children, or both. The user can arrange a toolbar and send commands to it from the menus of the page ([Customization](toolbar-customization.md)); every prop, method and event is in the [API reference](toolbar-api.md).
33963
33963
 
@@ -34379,7 +34379,7 @@ export default function SizeAndOrientation() {
34379
34379
 
34380
34380
  # Toolbar: Customization
34381
34381
 
34382
- > Toolbar · @motifx-community/ui 0.1.0-beta.16
34382
+ > Toolbar · @motifx-community/ui 0.1.0-beta.18
34383
34383
 
34384
34384
  With `customizable`, the user arranges a toolbar: hides, moves and renames its items, adds commands and separators, chooses what a button shows, sends commands to it from the menus of the page, and changes keyboard shortcuts. The items you give stay as they are; what the user changed is one object for the app to save.
34385
34385
 
@@ -34644,7 +34644,7 @@ export default function SendToToolbar() {
34644
34644
 
34645
34645
  # Toolbar: API reference
34646
34646
 
34647
- > Toolbar · @motifx-community/ui 0.1.0-beta.16
34647
+ > Toolbar · @motifx-community/ui 0.1.0-beta.18
34648
34648
 
34649
34649
  Every prop, property, method and event of `Toolbar`, and the fields of its items.
34650
34650
 
@@ -34728,7 +34728,7 @@ Loading issues…
34728
34728
 
34729
34729
  # AppMenu
34730
34730
 
34731
- > AppMenu · @motifx-community/ui 0.1.0-beta.16
34731
+ > AppMenu · @motifx-community/ui 0.1.0-beta.18
34732
34732
 
34733
34733
  The main menu of an application. It slides in from the start edge with a list of items, and each item shows its own page beside the list or runs a command. The menu holds nothing of its own: the items, the pages and the commands are given by the application.
34734
34734
 
@@ -34882,7 +34882,7 @@ Loading issues…
34882
34882
 
34883
34883
  # AppMenu: Slots and search
34884
34884
 
34885
- > AppMenu · @motifx-community/ui 0.1.0-beta.16
34885
+ > AppMenu · @motifx-community/ui 0.1.0-beta.18
34886
34886
 
34887
34887
  The list can hold the app’s own content above and under its items, such as the user’s name or the version, and a search that narrows a long list as the user types.
34888
34888
 
@@ -34952,7 +34952,7 @@ Loading issues…
34952
34952
 
34953
34953
  # AppMenu: Programmatic changes
34954
34954
 
34955
- > AppMenu · @motifx-community/ui 0.1.0-beta.16
34955
+ > AppMenu · @motifx-community/ui 0.1.0-beta.18
34956
34956
 
34957
34957
  Items can be added, removed, moved and changed at any time, by their keys. Items that stay keep their place, and pages that were opened keep their state.
34958
34958
 
@@ -35032,7 +35032,7 @@ Loading issues…
35032
35032
 
35033
35033
  # AppMenu: API reference
35034
35034
 
35035
- > AppMenu · @motifx-community/ui 0.1.0-beta.16
35035
+ > AppMenu · @motifx-community/ui 0.1.0-beta.18
35036
35036
 
35037
35037
  Everything `AppMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
35038
35038
 
@@ -35119,7 +35119,7 @@ Loading issues…
35119
35119
 
35120
35120
  # TabDocumentManager
35121
35121
 
35122
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
35122
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
35123
35123
 
35124
35124
  A document manager that arranges content the way code editors arrange files: documents in tabs, tabs in groups, and groups split side by side or one above the other. A document's content can be any component, such as a form, a grid or plain text, and it is moved rather than recreated when its tab goes to another group. Every user action is also a method, with a cancelable event before it and a notification after it, and the whole layout can be saved to JSON and restored. Preview and pinned tabs, sizes and copies are covered in [Tabs](tabdocs-tabs.md), and context menus, lists and keyboard shortcuts in [Menus and keys](tabdocs-menus.md).
35125
35125
 
@@ -36015,7 +36015,7 @@ export default function SaveRestore() {
36015
36015
 
36016
36016
  # TabDocumentManager: Tabs
36017
36017
 
36018
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
36018
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
36019
36019
 
36020
36020
  Tabs that behave as they do in code editors: preview tabs replaced by the next preview, pinned tabs that stay at the start, tabs that shrink, wrap or scroll, counts and colors, and the same document open in two groups.
36021
36021
 
@@ -36853,7 +36853,7 @@ export default function Duplicates() {
36853
36853
 
36854
36854
  # TabDocumentManager: Menus and keys
36855
36855
 
36856
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
36856
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
36857
36857
 
36858
36858
  The commands around tabs: context menus on tabs and on the empty strip, a searchable list of a group's documents, application toolbar buttons, the recently used list, back and forward, reopening closed documents, locked groups, and keyboard shortcuts for all of them.
36859
36859
 
@@ -37550,7 +37550,7 @@ export function customerCard(customer: Customer): ComponentBase {
37550
37550
 
37551
37551
  # TabDocumentManager: Drag and drop
37552
37552
 
37553
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
37553
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
37554
37554
 
37555
37555
  Drag tabs and whole groups as you would in a code editor: along a strip, to another group, beside a group, along an edge of the layout, or between two managers. The same moves are available from the keyboard, and every drop goes through the methods and events of the action it performs.
37556
37556
 
@@ -38112,7 +38112,7 @@ export default function MoveWithKeys() {
38112
38112
 
38113
38113
  # TabDocumentManager: Dock and floating windows
38114
38114
 
38115
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
38115
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
38116
38116
 
38117
38117
  Documents and whole groups can float in their own windows within the page, and dock again into document groups or into dock areas around them, which can collapse to the edge of the manager. The mouse, the keyboard and the API all perform the same actions through the same events.
38118
38118
 
@@ -38997,7 +38997,7 @@ export function customerCard(customer: Customer): ComponentBase {
38997
38997
 
38998
38998
  # TabDocumentManager: New windows
38999
38999
 
39000
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
39000
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
39001
39001
 
39002
39002
  A document, a group or a floating window can move into its own browser window and back. Its content moves with it without being recreated, and the new window is part of the same manager, so its tabs, menus, keys and dragging work the same way.
39003
39003
 
@@ -39661,7 +39661,7 @@ export default function WindowLayout() {
39661
39661
 
39662
39662
  # TabDocumentManager: Tablet and phone
39663
39663
 
39664
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
39664
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
39665
39665
 
39666
39666
  On tablets and phones, a layout of groups, splits and dock areas does not fit as designed. The manager keeps the layout and changes how it is presented: the documents, groups, areas and saved JSON stay the same, and content is moved rather than recreated. The presentation depends on the manager's own width rather than the device, and on touch screens its tabs and buttons are larger.
39667
39667
 
@@ -39946,7 +39946,7 @@ Loading issues…
39946
39946
 
39947
39947
  # TabDocumentManager: A whole workspace
39948
39948
 
39949
- > TabDocumentManager · @motifx-community/ui 0.1.0-beta.16
39949
+ > TabDocumentManager · @motifx-community/ui 0.1.0-beta.18
39950
39950
 
39951
39951
  A complete screen built from kit components: a menu bar, the manager, a DataGrid with every feature enabled, forms, and a tool docked at the bottom. Each part is the same component documented on its own page, and the manager simply hosts them.
39952
39952
 
@@ -40363,7 +40363,7 @@ export function customerCard(customer: Customer): ComponentBase {
40363
40363
 
40364
40364
  # Scheduler
40365
40365
 
40366
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
40366
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
40367
40367
 
40368
40368
  A full-featured calendar for appointments across days and hours. It provides day, week, work week and month views, all-day and multi-day bars, side-by-side display of overlapping appointments, and a "+N more" link when a day is full. Appointments can come from an array or a data source, and every setting can change at runtime.
40369
40369
 
@@ -40963,7 +40963,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
40963
40963
 
40964
40964
  # Scheduler: Editing
40965
40965
 
40966
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
40966
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
40967
40967
 
40968
40968
  Users can add, move, resize, copy and delete appointments with the pointer and the keyboard, and you can do the same programmatically. Every change raises its event first, can wait for a server, and is reverted if saving fails.
40969
40969
 
@@ -41516,7 +41516,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
41516
41516
 
41517
41517
  # Scheduler: Recurrence and time zones
41518
41518
 
41519
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
41519
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
41520
41520
 
41521
41521
  Recurring appointments based on RFC 5545 rules, with exceptions and individually edited occurrences, a prompt that asks what a change should apply to, a recurrence editor, and time zone support that handles daylight saving time.
41522
41522
 
@@ -41944,7 +41944,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
41944
41944
 
41945
41945
  # Scheduler: Resources and groups
41946
41946
 
41947
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
41947
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
41948
41948
 
41949
41949
  Resources such as rooms, people and equipment can color appointments, divide columns into groups (nested or under each date), and define when each resource is available and when time is blocked.
41950
41950
 
@@ -42654,7 +42654,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
42654
42654
 
42655
42655
  # Scheduler: The appointment form
42656
42656
 
42657
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
42657
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
42658
42658
 
42659
42659
  Configure the appointment form without handling events. You can choose its fields and their order, arrange them in groups and tabs, use custom editors, add validation per field, and show or lock fields for specific appointments. You can also replace the form with your own.
42660
42660
 
@@ -43293,7 +43293,7 @@ export default function OwnForm() {
43293
43293
 
43294
43294
  # Scheduler: Timeline
43295
43295
 
43296
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
43296
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
43297
43297
 
43298
43298
  Displays one row per resource, with time running along the row, for a day, a week, a work week or a month. Appointments at the same time stack within a row, and the row grows to fit them.
43299
43299
 
@@ -43933,7 +43933,7 @@ export default function TimelineTemplates() {
43933
43933
 
43934
43934
  # Scheduler: Agenda
43935
43935
 
43936
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
43936
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
43937
43937
 
43938
43938
  Displays upcoming days as a list, with each day's appointments in time order. Days without appointments are omitted.
43939
43939
 
@@ -44538,7 +44538,7 @@ export default function AgendaTemplates() {
44538
44538
 
44539
44539
  # Scheduler: Big data
44540
44540
 
44541
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
44541
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
44542
44542
 
44543
44543
  Handles thousands of resources and appointments. The scheduler renders only what is visible, and recalculates the layout only for what has changed.
44544
44544
 
@@ -44799,7 +44799,7 @@ export default function BigWeek() {
44799
44799
 
44800
44800
  # Scheduler: Tablet and phone
44801
44801
 
44802
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
44802
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
44803
44803
 
44804
44804
  On tablets and phones, the scheduler keeps its appointments, views and date, and changes how it presents them. On a phone, it shows the agenda, a compact toolbar and bottom sheets. Touch gestures can lift and resize appointments, swipe between days, and pinch to zoom.
44805
44805
 
@@ -45471,7 +45471,7 @@ export default function Touch() {
45471
45471
 
45472
45472
  # Scheduler: iCalendar and print
45473
45473
 
45474
- > Scheduler · @motifx-community/ui 0.1.0-beta.16
45474
+ > Scheduler · @motifx-community/ui 0.1.0-beta.18
45475
45475
 
45476
45476
  Exports appointments to an iCalendar file (RFC 5545) and imports them back, for use with other calendar applications. The scheduler can also be printed.
45477
45477
 
@@ -46070,7 +46070,7 @@ export function sampleAppointments(): Meeting[] {
46070
46070
 
46071
46071
  # DataGrid
46072
46072
 
46073
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
46073
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
46074
46074
 
46075
46075
  A grid for data entry and large data sets. Rows can be in memory or come from any data layer adapter, and can be displayed in a virtual list or in pages. It supports sorting, column layout, editing with kit editors, new rows with Tab navigation, three save modes, row actions, selection, filters, a search panel, grouping, summaries, a toolbar, lookup columns from other services, copy and paste, export, and a persistent layout. Every feature can be disabled for the grid or for a single column.
46076
46076
 
@@ -46440,7 +46440,7 @@ export default function Pager() {
46440
46440
 
46441
46441
  # DataGrid: Editing
46442
46442
 
46443
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
46443
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
46444
46444
 
46445
46445
  ## Editing and save modes
46446
46446
 
@@ -47091,7 +47091,7 @@ export default function BarActions() {
47091
47091
 
47092
47092
  # DataGrid: Edit forms and popups
47093
47093
 
47094
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
47094
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
47095
47095
 
47096
47096
  ## Edit forms and popups
47097
47097
 
@@ -47501,7 +47501,7 @@ export default function ValidationRules() {
47501
47501
 
47502
47502
  # DataGrid: Filtering and search
47503
47503
 
47504
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
47504
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
47505
47505
 
47506
47506
  ## Filters
47507
47507
 
@@ -48077,7 +48077,7 @@ export function makeCustomers(n: number): Customer[] {
48077
48077
 
48078
48078
  # DataGrid: Lookup columns
48079
48079
 
48080
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
48080
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
48081
48081
 
48082
48082
  ## Lookup columns
48083
48083
 
@@ -48451,7 +48451,7 @@ export default function TextFrom() {
48451
48451
 
48452
48452
  # DataGrid: Grouping and summaries
48453
48453
 
48454
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
48454
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
48455
48455
 
48456
48456
  ## Grouping
48457
48457
 
@@ -48938,7 +48938,7 @@ export default function SummariesServer() {
48938
48938
 
48939
48939
  # DataGrid: Master-detail
48940
48940
 
48941
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
48941
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
48942
48942
 
48943
48943
  ## Master-detail
48944
48944
 
@@ -49272,7 +49272,7 @@ export default function DetailTabs() {
49272
49272
 
49273
49273
  # DataGrid: Bands and adaptive columns
49274
49274
 
49275
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
49275
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
49276
49276
 
49277
49277
  ## Band headers
49278
49278
 
@@ -49597,7 +49597,7 @@ export default function AdaptiveColumns() {
49597
49597
 
49598
49598
  # DataGrid: Selection and export
49599
49599
 
49600
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
49600
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
49601
49601
 
49602
49602
  ## Selection
49603
49603
 
@@ -50204,7 +50204,7 @@ export default function PdfExport() {
50204
50204
 
50205
50205
  # DataGrid: Row drag and drop
50206
50206
 
50207
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
50207
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
50208
50208
 
50209
50209
  ## Reorder rows
50210
50210
 
@@ -50553,7 +50553,7 @@ export default function RowDragBetween() {
50553
50553
 
50554
50554
  # DataGrid: Selecting by dragging
50555
50555
 
50556
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
50556
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
50557
50557
 
50558
50558
  ## Rows
50559
50559
 
@@ -50887,7 +50887,7 @@ export default function CellRanges() {
50887
50887
 
50888
50888
  # DataGrid: Scrolling
50889
50889
 
50890
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
50890
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
50891
50891
 
50892
50892
  ## Scrolling modes
50893
50893
 
@@ -51044,6 +51044,82 @@ export default function VirtualColumns() {
51044
51044
  | `Export, copy` | CSV, Excel and PDF write every column, including those without cells, and copying reads the values rather than the cells. |
51045
51045
  | `Events` | `onCellPrepared` and `onRowPrepared` run as cells are created, so they run again after a sideways scroll. |
51046
51046
 
51047
+ ## Wrapping text
51048
+
51049
+ A column with `wrap: true` wraps the text of its cells onto more lines, and each row grows to hold its tallest cell, never shorter than the rows' height. A line break in the text starts a new line. Only the rows on the screen are measured, before they are shown, so 10,000 rows of notes scroll like rows of one height, and a grid with no such column keeps all its rows one height. `wrap` can be a function, as here, or change with `columnOption(field, 'wrap', value)`.
51050
+
51051
+ ```tsx
51052
+ import { reactive } from '@motifx/core';
51053
+ import { CheckBox, DataGrid, Stack } from '@motifx-community/ui';
51054
+ import type { GridColumn } from '@motifx-community/ui';
51055
+
51056
+ type Ticket = { id: number; subject: string; note: string; status: string };
51057
+
51058
+ const SUBJECTS = ['Invoice is missing', 'Cannot sign in', 'Order arrived damaged', 'Change of address', 'Refund request', 'App crashes on start'];
51059
+ const SENTENCES = [
51060
+ 'The customer called twice this morning.',
51061
+ 'We asked for the order number and a photo.',
51062
+ 'A new parcel goes out with the next delivery, and the old one is picked up at the door.',
51063
+ 'Waiting for the warehouse to answer.',
51064
+ 'The same thing happened last month on another order, so the account is flagged for a call from the team lead.',
51065
+ 'Closed after the customer confirmed.',
51066
+ ];
51067
+ const STATUSES = ['Open', 'Waiting', 'Solved'];
51068
+
51069
+ /** A note of one to five sentences; every seventh starts a second paragraph on a line of its own. */
51070
+ function noteOf(i: number): string {
51071
+ const count = (i * 7) % 5 + 1;
51072
+ const parts = Array.from({ length: count }, (_, k) => SENTENCES[(i * 2 + k) % SENTENCES.length]);
51073
+ if (i % 7 === 0 && count > 1) return `${parts[0]}\n${parts.slice(1).join(' ')}`;
51074
+ return parts.join(' ');
51075
+ }
51076
+
51077
+ const rows: Ticket[] = Array.from({ length: 10_000 }, (_, i) => ({
51078
+ id: i + 1,
51079
+ subject: SUBJECTS[i % SUBJECTS.length],
51080
+ note: noteOf(i),
51081
+ status: STATUSES[(i * 5) % STATUSES.length],
51082
+ }));
51083
+
51084
+ /** 10,000 tickets: the notes wrap, and each row is as tall as its note. */
51085
+ export default function WrapText() {
51086
+ const s = reactive({ wrap: true });
51087
+
51088
+ const columns: GridColumn<Ticket>[] = [
51089
+ { field: 'id', title: 'No.', type: 'number', width: 80 },
51090
+ { field: 'subject', title: 'Subject', width: 190 },
51091
+ { field: 'note', title: 'Note', width: 120, flex: 1, wrap: () => s.wrap },
51092
+ { field: 'status', title: 'Status', width: 110 },
51093
+ ];
51094
+
51095
+ return (
51096
+ <>
51097
+ <Stack orientation="horizontal" wrap align="center">
51098
+ <CheckBox label="Wrap the notes" x-model={() => s.wrap} />
51099
+ </Stack>
51100
+ <DataGrid
51101
+ class="dg-wrap"
51102
+ style="block-size: 28rem"
51103
+ rows={rows}
51104
+ rowKey="id"
51105
+ columns={columns}
51106
+ label="Support tickets"
51107
+ locale="en"
51108
+ settings={{ editable: true, striped: true }}
51109
+ />
51110
+ </>
51111
+ );
51112
+ }
51113
+ ```
51114
+
51115
+ | Topic | Behavior with wrapped text |
51116
+ | --- | --- |
51117
+ | `Scrolling` | Rows not measured yet count at the rows' height, so the scrollbar settles as rows are seen. The first row in view stays where it is while rows above it are measured, when a column's width changes, and when wrapping is turned on or off. A row brought into view by the keys, such as Ctrl+End, stays whole on the screen once it is measured. |
51118
+ | `Column width` | Resizing a column, or a flexible column taking more room, wraps the text again, and the rows on the screen are measured again. |
51119
+ | `Keyboard` | Page Up and Page Down move by the rows that fit on the screen, counted by their heights. |
51120
+ | `Editing` | A cell edited to another text has its row measured again, and the rows after it follow. |
51121
+ | `Export` | An Excel export sets the cells of a wrapping column to wrap their text. A PDF export wraps them too, unless `wordWrapEnabled` says otherwise. |
51122
+
51047
51123
  ## Keyboard
51048
51124
 
51049
51125
  | Key | Description |
@@ -51243,7 +51319,7 @@ export default function InfiniteGroups() {
51243
51319
 
51244
51320
  # DataGrid: Layout and events
51245
51321
 
51246
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
51322
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
51247
51323
 
51248
51324
  ## Toolbar
51249
51325
 
@@ -51791,7 +51867,7 @@ export default function Events() {
51791
51867
 
51792
51868
  # DataGrid: API reference
51793
51869
 
51794
- > DataGrid · @motifx-community/ui 0.1.0-beta.16
51870
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
51795
51871
 
51796
51872
  ## Columns
51797
51873
 
@@ -51803,6 +51879,7 @@ Up to 0.1.0-beta.8, the root of the content that `cell`, `groupCell`, `headerCel
51803
51879
  | `type` | `text`, `number`, `date`, `datetime`, `boolean`, `list`. Determines the alignment, format, sorting and editor (`TextBox`, `NumberBox`, `DateBox`, `CheckBox`, `DropDown`). `datetime` is a date with its time: shown with both, edited with a `DateBox` of `type: 'datetime'`, filtered to the minute, and its header filter goes down to the hour. |
51804
51880
  | `width, minWidth, maxWidth, flex` | In pixels (by default, the `columnWidth` and `columnMinWidth` settings). `flex` shares the free space until the user resizes. |
51805
51881
  | `sticky, hidden, align` | Pinned to an edge (a column in a band sticks with its band; one pinned to the end stands at the end edge, any room the columns leave coming before it), initially hidden, and the alignment. |
51882
+ | `wrap` | `Bind<boolean>`: the text of the cells wraps onto more lines, and a row grows to hold its tallest cell. See [Wrapping text](datagrid-scrolling.md#wrap). |
51806
51883
  | `ownerBand, hidingPriority` | The band of a column in a flat list (its `name` or position), and its position in the order columns hide to fit the width, lowest first. |
51807
51884
  | `value, format, compare` | Customizes how the value is read, how it is displayed (`Intl` options for a number or date column, such as `{ style: 'currency', currency: 'EUR' }`, which an Excel export also converts to a number format, or a function that returns the text), and how it is sorted (in-memory rows). |
51808
51885
  | `cell` | `(ctx) => component`: custom content, created once per pooled cell. Read `ctx.row` and `ctx.value` in getters. |
@@ -52038,7 +52115,7 @@ export interface Order {
52038
52115
 
52039
52116
  | Method | Returns | Description |
52040
52117
  | --- | --- | --- |
52041
- | `addRow(values?)` | `Promise<boolean>` | Opens a new row, as the “New row” button does. Returns `false` when the row being edited cannot be left. |
52118
+ | `addRow(values?)` | `Promise<boolean>` | Opens a new row, as the “New row” button does. While the rows load, it waits for them. Returns `false` when the row being edited cannot be left. |
52042
52119
  | `deleteRow(row?) / restoreRow(row)` | `Promise<boolean>` / `void` | Deletes a row (by default, the active row) according to the save mode, or undoes a batch deletion. |
52043
52120
  | `deleteRows(rows)` | `Promise<boolean>` | Deletes several rows in one save (one request when the adapter saves in batches), prompting once with `confirmDelete`. Returns `false` when a row failed or the user declined. |
52044
52121
  | `saveChanges() / discardChanges()` | `Promise<{ saved, failed }>` / `void` | Sends every unsaved change, or discards them all. |
@@ -52219,7 +52296,7 @@ export interface Order {
52219
52296
 
52220
52297
  # PivotGrid
52221
52298
 
52222
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
52299
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
52223
52300
 
52224
52301
  A pivot table: rows summed up by row fields down the side and column fields across the top, with a value of every data field where they cross and totals for every member. The data layer computes it (`loadPivot`), in the browser for rows in memory or on the server where the adapter can. Members open and close, and the table draws only the rows and columns in view.
52225
52302
 
@@ -52518,7 +52595,7 @@ export default function Large() {
52518
52595
 
52519
52596
  # PivotGrid: Fields and areas
52520
52597
 
52521
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
52598
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
52522
52599
 
52523
52600
  A field is a value of the rows placed in an area. Its place, its levels, the order and filter of its members, and how a data field sums up its rows are all set on the field; the summaries and what a data field shows of them are on [Summaries and display](pivotgrid-summaries.md).
52524
52601
 
@@ -52767,7 +52844,7 @@ export default function Computed() {
52767
52844
 
52768
52845
  # PivotGrid: Totals and layout
52769
52846
 
52770
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
52847
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
52771
52848
 
52772
52849
  How the result is laid out: the totals and where they stand, the empty rows and columns, the row headers as a tree or in columns, where several data fields run, which members are open, the menu of the headers and cells, and what a data cell shows. Changing these settings lays the last result out again without loading it.
52773
52850
 
@@ -53434,7 +53511,7 @@ export default function Cells() {
53434
53511
 
53435
53512
  # PivotGrid: Summaries and display
53436
53513
 
53437
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
53514
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
53438
53515
 
53439
53516
  A data field sums up the rows of each cell. It shows that value as it is, or as a share of a total or of its parent, a change from the member before, a running total, or a calculation of your own.
53440
53517
 
@@ -53768,7 +53845,7 @@ export default function OwnCalculation() {
53768
53845
 
53769
53846
  # PivotGrid: Field panel and chooser
53770
53847
 
53771
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
53848
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
53772
53849
 
53773
53850
  The user arranges the fields: in the field panel over the table, where each kind of field has an area of chips. What the user changes is laid over `fields`; `arrangedFields` reads it, `fieldOption` reads and writes it from code, and `onFieldsChanged` tells every change.
53774
53851
 
@@ -53995,7 +54072,7 @@ export default function FieldChooser() {
53995
54072
 
53996
54073
  # PivotGrid: Sorting and filtering
53997
54074
 
53998
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
54075
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
53999
54076
 
54000
54077
  Members stand in the order of their values, their texts, a function of the app's or a data field's totals, and a pivot sums up only the rows its fields keep: given from code, or chosen by the user in a field's header filter.
54001
54078
 
@@ -54378,7 +54455,7 @@ export default function FilterItems() {
54378
54455
 
54379
54456
  # PivotGrid: State and selection
54380
54457
 
54381
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
54458
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
54382
54459
 
54383
54460
  What the user arranges and opens, kept in the browser or saved and given back from code, and the cells the user selects and copies to a spreadsheet.
54384
54461
 
@@ -54627,7 +54704,7 @@ export default function Selection() {
54627
54704
 
54628
54705
  # PivotGrid: Remote data
54629
54706
 
54630
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
54707
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
54631
54708
 
54632
54709
  A pivot a server computes is read from it: the members open, or, where the server computes the parts of pivots too, only what the view reaches as it scrolls, so a large result never comes whole.
54633
54710
 
@@ -55106,7 +55183,7 @@ self.onmessage = (e: MessageEvent<{ id: number; body: string }>) => {
55106
55183
 
55107
55184
  # PivotGrid: Drill-down
55108
55185
 
55109
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
55186
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
55110
55187
 
55111
55188
  A cell sums up rows. `drillDown` gives them as a filter and as a data source: for a `DataGrid` in a window, a report, or rows to export.
55112
55189
 
@@ -55252,7 +55329,7 @@ export function makeSales(count: number): Sale[] {
55252
55329
 
55253
55330
  # PivotGrid: Chart
55254
55331
 
55255
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
55332
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
55256
55333
 
55257
55334
  `chartData` gives the kit's `Chart` what a pivot shows: its rows and series follow the pivot as it loads, as a member opens or closes, and as it is arranged anew. The chart knows nothing of the pivot.
55258
55335
 
@@ -55388,7 +55465,7 @@ export function makeSales(count: number): Sale[] {
55388
55465
 
55389
55466
  # PivotGrid: Export
55390
55467
 
55391
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
55468
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
55392
55469
 
55393
55470
  A pivot exports what it shows, whole: the line of every open member, read in full where the pivot is read in parts. It writes CSV itself; Excel and PDF are written by the kit's `excel` and `pdf` entries, with the ExcelJS and jsPDF your application brings.
55394
55471
 
@@ -55599,7 +55676,7 @@ export function makeSales(count: number): Sale[] {
55599
55676
 
55600
55677
  # PivotGrid: Keyboard and accessibility
55601
55678
 
55602
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
55679
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
55603
55680
 
55604
55681
  The pivot is one Tab stop; the arrow keys move between its cells and headers, and Enter opens a member. Each cell has a name a screen reader reads in full, and every string comes from the kit's language.
55605
55682
 
@@ -55826,7 +55903,7 @@ export default function RightToLeft() {
55826
55903
 
55827
55904
  # PivotGrid: API reference
55828
55905
 
55829
- > PivotGrid · @motifx-community/ui 0.1.0-beta.16
55906
+ > PivotGrid · @motifx-community/ui 0.1.0-beta.18
55830
55907
 
55831
55908
  ## Props
55832
55909
 
@@ -56010,7 +56087,7 @@ Loading issues…
56010
56087
 
56011
56088
  # Diagram
56012
56089
 
56013
- > Diagram · @motifx-community/ui 0.1.0-beta.16
56090
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
56014
56091
 
56015
56092
  Nodes and the connections between them on a surface that the user pans and zooms. The user draws connections between the ports of nodes and moves their ends. The diagram is only the surface: toolbars and menus belong to the app, which uses the diagram’s methods.
56016
56093
 
@@ -56027,7 +56104,8 @@ Each node has an `id` and a position in diagram units. A node without a size tak
56027
56104
  ```tsx
56028
56105
  import { Diagram, type DiagramEdge, type DiagramNode } from '@motifx-community/ui';
56029
56106
 
56030
- const NODES: DiagramNode[] = [
56107
+ /** The nodes and connections each time the example is shown: the diagram changes the arrays it is given. */
56108
+ const nodes = (): DiagramNode[] => [
56031
56109
  { id: 'order', x: 0, y: 90, text: 'Order received' },
56032
56110
  { id: 'stock', x: 220, y: 0, text: 'Check the stock' },
56033
56111
  { id: 'payment', x: 220, y: 180, text: 'Take the payment' },
@@ -56035,7 +56113,7 @@ const NODES: DiagramNode[] = [
56035
56113
  { id: 'notify', x: 680, y: 70, width: 170, text: 'Send the tracking number to the customer' },
56036
56114
  ];
56037
56115
 
56038
- const EDGES: DiagramEdge[] = [
56116
+ const edges = (): DiagramEdge[] => [
56039
56117
  { id: 'e1', source: 'order', target: 'stock' },
56040
56118
  { id: 'e2', source: 'order', target: 'payment' },
56041
56119
  { id: 'e3', source: 'stock', target: 'ship', label: 'In stock' },
@@ -56045,7 +56123,7 @@ const EDGES: DiagramEdge[] = [
56045
56123
 
56046
56124
  /** Nodes and the connections between them, fitted into view once they are laid out. */
56047
56125
  export default function Basic() {
56048
- return <Diagram class="diagram-basic" label="Order flow" autoFit nodes={NODES} edges={EDGES} />;
56126
+ return <Diagram class="diagram-basic" label="Order flow" autoFit nodes={nodes()} edges={edges()} />;
56049
56127
  }
56050
56128
  ```
56051
56129
 
@@ -56057,7 +56135,8 @@ export default function Basic() {
56057
56135
  import { reactive } from '@motifx/core';
56058
56136
  import { Button, ButtonGroup, Diagram, Stack, type DiagramBackground, type DiagramNode, type DiagramViewport } from '@motifx-community/ui';
56059
56137
 
56060
- const NODES: DiagramNode[] = Array.from({ length: 12 }, (_, i) => ({ id: `step-${i + 1}`, x: (i % 4) * 220, y: Math.floor(i / 4) * 140, text: `Step ${i + 1}` }));
56138
+ /** The nodes each time the example is shown: the diagram changes the array it is given. */
56139
+ const nodes = (): DiagramNode[] => Array.from({ length: 12 }, (_, i) => ({ id: `step-${i + 1}`, x: (i % 4) * 220, y: Math.floor(i / 4) * 140, text: `Step ${i + 1}` }));
56061
56140
 
56062
56141
  /** The view moved from code: zoom, fit and center on a node, each gliding there; the marks of the surface. */
56063
56142
  export default function View() {
@@ -56077,7 +56156,7 @@ export default function View() {
56077
56156
  ref={(d: Diagram) => (diagram = d)}
56078
56157
  label="Steps"
56079
56158
  autoFit
56080
- nodes={NODES}
56159
+ nodes={nodes()}
56081
56160
  background={() => s.background as DiagramBackground}
56082
56161
  onViewportChanged={(e) => (s.viewport = e.viewport)}
56083
56162
  />
@@ -56094,7 +56173,8 @@ export default function View() {
56094
56173
  ```tsx
56095
56174
  import { Diagram, type DiagramNode } from '@motifx-community/ui';
56096
56175
 
56097
- const NODES: DiagramNode[] = [
56176
+ /** The nodes each time the example is shown: the diagram changes the array it is given. */
56177
+ const nodes = (): DiagramNode[] => [
56098
56178
  { id: 'north', x: 160, y: 0, text: 'North' },
56099
56179
  { id: 'west', x: 0, y: 120, text: 'West' },
56100
56180
  { id: 'east', x: 320, y: 120, text: 'East' },
@@ -56103,7 +56183,7 @@ const NODES: DiagramNode[] = [
56103
56183
 
56104
56184
  /** The view stays over the nodes' area, between half and twice the actual size. */
56105
56185
  export default function Limits() {
56106
- return <Diagram class="diagram-limits" label="Compass" autoFit nodes={NODES} minZoom={0.5} maxZoom={2} bounds={{ x: -80, y: -80, width: 600, height: 440 }} background="lines" />;
56186
+ return <Diagram class="diagram-limits" label="Compass" autoFit nodes={nodes()} minZoom={0.5} maxZoom={2} bounds={{ x: -80, y: -80, width: 600, height: 440 }} background="lines" />;
56107
56187
  }
56108
56188
  ```
56109
56189
 
@@ -56231,7 +56311,7 @@ Loading issues…
56231
56311
 
56232
56312
  # Diagram: Connections
56233
56313
 
56234
- > Diagram · @motifx-community/ui 0.1.0-beta.16
56314
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
56235
56315
 
56236
56316
  Connections run from an output of a node to an input of another. The user draws them from the ports and moves their ends, and the diagram holds every connection to its rules.
56237
56317
 
@@ -56243,7 +56323,8 @@ Connections run from an output of a node to an input of another. The user draws
56243
56323
  import { reactive } from '@motifx/core';
56244
56324
  import { ButtonGroup, Diagram, Stack, type DiagramEdge, type DiagramEdgePath, type DiagramNode } from '@motifx-community/ui';
56245
56325
 
56246
- const NODES: DiagramNode[] = [
56326
+ /** The nodes and connections each time the example is shown: the diagram changes the arrays it is given. */
56327
+ const nodes = (): DiagramNode[] => [
56247
56328
  { id: 'a', x: 0, y: 0, text: 'Arrow' },
56248
56329
  { id: 'b', x: 260, y: 90, text: 'Open arrow' },
56249
56330
  { id: 'c', x: 0, y: 200, text: 'Circle' },
@@ -56252,7 +56333,7 @@ const NODES: DiagramNode[] = [
56252
56333
  { id: 'f', x: 520, y: 290, text: 'No marks' },
56253
56334
  ];
56254
56335
 
56255
- const EDGES: DiagramEdge[] = [
56336
+ const edges = (): DiagramEdge[] => [
56256
56337
  { id: 'ab', source: 'a', target: 'b', label: 'arrow' },
56257
56338
  { id: 'cb', source: 'c', target: 'b', targetMarker: 'arrow-open', label: 'arrow-open' },
56258
56339
  { id: 'cd', source: 'c', target: 'd', sourceMarker: 'circle', targetMarker: 'circle', label: 'circle' },
@@ -56267,7 +56348,7 @@ export default function Connections() {
56267
56348
  return (
56268
56349
  <Stack gap="md" style="inline-size: 100%">
56269
56350
  <ButtonGroup label="Shape" items={['straight', 'curve', 'step', 'rounded-step']} x-model={() => s.path} />
56270
- <Diagram class="diagram-connections" label="Shapes and marks" autoFit nodes={NODES} edges={EDGES} edgePath={() => s.path as DiagramEdgePath} background="lines" />
56351
+ <Diagram class="diagram-connections" label="Shapes and marks" autoFit nodes={nodes()} edges={edges()} edgePath={() => s.path as DiagramEdgePath} background="lines" />
56271
56352
  </Stack>
56272
56353
  );
56273
56354
  }
@@ -56281,7 +56362,8 @@ The ports show over a node; outputs are filled and inputs are hollow. Drag from
56281
56362
  import { reactive } from '@motifx/core';
56282
56363
  import { Diagram, Stack, type DiagramConnection, type DiagramEdge, type DiagramNode } from '@motifx-community/ui';
56283
56364
 
56284
- const NODES: DiagramNode[] = [
56365
+ /** The nodes each time the example is shown: the diagram changes the array it is given. */
56366
+ const nodes = (): DiagramNode[] => [
56285
56367
  { id: 'orders', x: 0, y: 40, text: 'Orders', ports: [{ id: 'out', side: 'right', direction: 'source', type: 'data' }] },
56286
56368
  { id: 'clicks', x: 0, y: 200, text: 'Clicks', ports: [{ id: 'out', side: 'right', direction: 'source', type: 'event' }] },
56287
56369
  {
@@ -56312,7 +56394,7 @@ export default function Connecting() {
56312
56394
  class="diagram-connecting"
56313
56395
  label="Data flow"
56314
56396
  autoFit
56315
- nodes={NODES}
56397
+ nodes={nodes()}
56316
56398
  edges={edges}
56317
56399
  edgePath="rounded-step"
56318
56400
  canConnect={(c: DiagramConnection) => c.source !== c.target}
@@ -56392,7 +56474,7 @@ Loading issues…
56392
56474
 
56393
56475
  # Diagram: Nodes and styles
56394
56476
 
56395
- > Diagram · @motifx-community/ui 0.1.0-beta.16
56477
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
56396
56478
 
56397
56479
  What a node holds and how it looks: kinds of node of the app’s own with any control of the kit inside, groups, lanes and notes, resizing, and the app’s own classes and styles on top of the design tokens.
56398
56480
 
@@ -56602,7 +56684,7 @@ Loading issues…
56602
56684
 
56603
56685
  # Diagram: Custom nodes
56604
56686
 
56605
- > Diagram · @motifx-community/ui 0.1.0-beta.16
56687
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
56606
56688
 
56607
56689
  A node of the app’s own is a node kind: the node names it in `kind`, and the diagram’s `kinds` says what the nodes of that kind hold, which ports they have, how they look and how large they are. These recipes build kinds step by step, from a card that shows data to nodes with controls, ports of their own and content made without JSX.
56608
56690
 
@@ -56931,7 +57013,7 @@ Loading issues…
56931
57013
 
56932
57014
  # Diagram: Tables and classes
56933
57015
 
56934
- > Diagram · @motifx-community/ui 0.1.0-beta.16
57016
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
56935
57017
 
56936
57018
  Table (entity relationship) and class diagrams with the built-in `table` and `class` kinds, the marks their connections end with, and texts at the ends of a connection.
56937
57019
 
@@ -57147,7 +57229,7 @@ Loading issues…
57147
57229
 
57148
57230
  # Diagram: Flow nodes
57149
57231
 
57150
- > Diagram · @motifx-community/ui 0.1.0-beta.16
57232
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
57151
57233
 
57152
57234
  The pieces of a flow designer: the card, a kind of node to start one’s own from, ports with labels, the status a run shows on each node, and the connections of a node and the nodes at their other ends, for an app that walks the flow.
57153
57235
 
@@ -57155,6 +57237,8 @@ The pieces of a flow designer: the card, a kind of node to start one’s own fro
57155
57237
 
57156
57238
  The steps are cards. Run walks the flow: each step is `running`, then `done`, and the next steps are the nodes its connections go to (`nodesOf`); a decision goes out by the port of its answer, and the way it does not take is `skipped`.
57157
57239
 
57240
+ The connection the run takes shows a status of its own: `setEdgeStatus`, the twin of `setNodeStatus`, paints its line and its marks in the status’s color, unless the connection has a `color` of its own, moves the line while it is `running`, dashes it while `waiting` and fades it when `skipped`. `statusText` stands in the line’s tip, such as how many rows went along, and a screen reader hears the status with the connection’s two nodes.
57241
+
57158
57242
  ```tsx
57159
57243
  import { reactive } from '@motifx/core';
57160
57244
  import { Button, Diagram, Stack, cardKind, type DiagramCardNode, type DiagramEdge, type DiagramNodeKind } from '@motifx-community/ui';
@@ -57162,7 +57246,7 @@ import { Button, Diagram, Stack, cardKind, type DiagramCardNode, type DiagramEdg
57162
57246
  /** A glyph of the kit, drawn by the design language in use. */
57163
57247
  const glyph = (name: string) => <span class="mx-glyph" data-icon={name} aria-hidden="true" />;
57164
57248
 
57165
- /** A run through a flow of cards: each step shows its status, and the next steps are the nodes its connections go to. */
57249
+ /** A run through a flow of cards: each step and the connection the run takes show their statuses, and the next steps are the nodes its connections go to. */
57166
57250
  export default function FlowRun() {
57167
57251
  const s = reactive({ said: 'Run the flow to see each step take its status.', running: false, answer: 'yes' as 'yes' | 'no' });
57168
57252
 
@@ -57203,6 +57287,7 @@ export default function FlowRun() {
57203
57287
  const run = async () => {
57204
57288
  s.running = true;
57205
57289
  for (const node of nodes) diagram.setNodeStatus(node.id, 'waiting');
57290
+ for (const edge of edges) diagram.setEdgeStatus(edge.id, 'waiting');
57206
57291
  let at: DiagramCardNode | undefined = nodes[0];
57207
57292
  while (at) {
57208
57293
  diagram.setNodeStatus(at.id, 'running');
@@ -57211,8 +57296,20 @@ export default function FlowRun() {
57211
57296
  diagram.setNodeStatus(at.id, 'done', at.id === 'query' ? '3 rows' : undefined);
57212
57297
  // A decision goes out by the port of its answer, and the ways it does not take are skipped.
57213
57298
  const decision = at.kind === 'decision';
57214
- const next = diagram.nodesOf(at.id, { direction: 'out', port: decision ? s.answer : undefined });
57215
- if (decision) for (const other of diagram.nodesOf(at.id, { direction: 'out' })) if (!next.includes(other)) diagram.setNodeStatus(other.id, 'skipped');
57299
+ const port = decision ? s.answer : undefined;
57300
+ const next = diagram.nodesOf(at.id, { direction: 'out', port });
57301
+ if (decision) {
57302
+ for (const other of diagram.nodesOf(at.id, { direction: 'out' })) if (!next.includes(other)) diagram.setNodeStatus(other.id, 'skipped');
57303
+ for (const edge of diagram.edgesOf(at.id, { direction: 'out' })) if (edge.sourcePort !== port) diagram.setEdgeStatus(edge.id, 'skipped');
57304
+ }
57305
+ // The connection the run takes moves while it carries the step's result, then it is done too.
57306
+ const taken = next.length ? diagram.edgesOf(at.id, { direction: 'out', port }).find((edge) => edge.target === next[0].id) : undefined;
57307
+ if (taken) {
57308
+ const carried = at.id === 'query' ? '3 rows' : undefined;
57309
+ diagram.setEdgeStatus(taken.id, 'running', carried);
57310
+ await wait(400);
57311
+ diagram.setEdgeStatus(taken.id, 'done', carried);
57312
+ }
57216
57313
  at = next[0];
57217
57314
  }
57218
57315
  s.said = 'The run reached the end.';
@@ -57230,6 +57327,7 @@ export default function FlowRun() {
57230
57327
  disabled={() => s.running}
57231
57328
  onclick={() => {
57232
57329
  for (const node of nodes) diagram.setNodeStatus(node.id, null);
57330
+ for (const edge of edges) diagram.setEdgeStatus(edge.id, null);
57233
57331
  s.said = 'Run the flow to see each step take its status.';
57234
57332
  }}
57235
57333
  />
@@ -57295,6 +57393,7 @@ const next = diagram.nodesOf('check', { direction: 'out', port: 'yes' });
57295
57393
  | Member | Returns | Description |
57296
57394
  | --- | --- | --- |
57297
57395
  | `setNodeStatus(id, status, text?)` | `boolean` | Shows what a node is doing; `null` takes the status away. A screen reader hears it with the node’s name. Not a step of the history. Returns whether it changed. |
57396
+ | `setEdgeStatus(id, status, text?)` | `boolean` | Shows what a connection is doing; `null` takes the status away. A screen reader hears it with the connection’s two nodes. Not a step of the history. Returns whether it changed. |
57298
57397
  | `edgesOf(id, options?)` | `DiagramEdge[]` | The connections of a node: `direction` `'in'`, `'out'` or `'both'`, and `port`, a port of the node. Followed in a getter. |
57299
57398
  | `nodesOf(id, options?)` | `DiagramNode[]` | The nodes at the other ends of those connections, each once. Followed in a getter. |
57300
57399
  | `cardKind(options?)` | `DiagramNodeKind` | A kind of node made from the card: a header with an icon, a title and a line under it, a body of its own, and a row for each labeled port. |
@@ -57308,7 +57407,7 @@ Loading issues…
57308
57407
 
57309
57408
  # Diagram: Build your own flow designer
57310
57409
 
57311
- > Diagram · @motifx-community/ui 0.1.0-beta.16
57410
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
57312
57411
 
57313
57412
  A small flow designer, from a kind of step to a run of the flow: its card, the form of its settings, the data it reads from the steps before it, the checks, the definition a server reads, and the run. The designer is on this page with its code, and each section below takes one piece of it.
57314
57413
 
@@ -58128,7 +58227,7 @@ export const STEPS: Record<string, StepKind> = { orders, discount, message };
58128
58227
 
58129
58228
  # Diagram: Layout, map and export
58130
58229
 
58131
- > Diagram · @motifx-community/ui 0.1.0-beta.16
58230
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
58132
58231
 
58133
58232
  Placing the nodes automatically, a map of the whole diagram, saving and loading, and images of the diagram.
58134
58233
 
@@ -58486,7 +58585,7 @@ Loading issues…
58486
58585
 
58487
58586
  # Diagram: Moving and selecting
58488
58587
 
58489
- > Diagram · @motifx-community/ui 0.1.0-beta.16
58588
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
58490
58589
 
58491
58590
  The user moves, selects and deletes nodes and connections with the pointer and the keys, and the diagram writes every change to the app’s objects.
58492
58591
 
@@ -58498,14 +58597,15 @@ Drag a node to move it with the other selected nodes; its `x` and `y` are writte
58498
58597
  import { reactive } from '@motifx/core';
58499
58598
  import { Button, Diagram, Stack, Switch, type DiagramEdge, type DiagramNode } from '@motifx-community/ui';
58500
58599
 
58501
- const NODES: DiagramNode[] = [
58600
+ /** The nodes and connections each time the example is shown: the diagram changes the arrays it is given. */
58601
+ const nodes = (): DiagramNode[] => [
58502
58602
  { id: 'start', x: 0, y: 100, text: 'Start' },
58503
58603
  { id: 'review', x: 220, y: 20, text: 'Review the request' },
58504
58604
  { id: 'approve', x: 220, y: 180, text: 'Approve' },
58505
58605
  { id: 'archive', x: 480, y: 100, text: 'Archive (fixed in place)', draggable: false },
58506
58606
  ];
58507
58607
 
58508
- const EDGES: DiagramEdge[] = [
58608
+ const edges = (): DiagramEdge[] => [
58509
58609
  { id: 'e1', source: 'start', target: 'review' },
58510
58610
  { id: 'e2', source: 'review', target: 'approve' },
58511
58611
  { id: 'e3', source: 'approve', target: 'archive' },
@@ -58530,8 +58630,8 @@ export default function Editing() {
58530
58630
  ref={(d: Diagram) => (diagram = d)}
58531
58631
  label="Approval flow"
58532
58632
  autoFit
58533
- nodes={NODES}
58534
- edges={EDGES}
58633
+ nodes={nodes()}
58634
+ edges={edges()}
58535
58635
  edgePath="rounded-step"
58536
58636
  snapToGrid={() => s.snap}
58537
58637
  onSelectionChanged={(e) => (s.told = e.nodes.length || e.edges.length ? `Selected: ${[...e.nodes.map((n) => n.text), ...e.edges.map((edge) => edge.id)].join(', ')}.` : 'Nothing selected.')}
@@ -58543,6 +58643,132 @@ export default function Editing() {
58543
58643
  }
58544
58644
  ```
58545
58645
 
58646
+ ## Clicks, menus and hovering
58647
+
58648
+ A press selects a node, and `onNodeClick` tells the click, with where it was on the page (`at`); `onEdgeClick` comes before the connection is selected, and `cancel` leaves the selection as it is. A right click on a node or a connection, or the Menu key or Shift+F10 on the one under the keys, asks for the app’s menu: open a `ContextMenu` at `e.at`, and the browser’s own menu stays closed, unless `cancel`. A double click, or Alt+Enter, is `onNodeDblClick` or `onEdgeDblClick`, and `onNodePointerEnter` and `onNodePointerLeave` follow the pointer. Here the menu renames a node (`editText`) or deletes it, a double click marks a node or a connection done, and the line under the diagram names the node under the pointer.
58649
+
58650
+ ```tsx
58651
+ import { reactive } from '@motifx/core';
58652
+ import { ContextMenu, Diagram, Stack, type DiagramEdge, type DiagramNode, type MenuItem } from '@motifx-community/ui';
58653
+
58654
+ /** The nodes and connections each time the example is shown: the diagram changes the arrays it is given. */
58655
+ const nodes = (): DiagramNode[] => [
58656
+ { id: 'draft', x: 0, y: 80, text: 'Draft' },
58657
+ { id: 'review', x: 240, y: 0, text: 'Review' },
58658
+ { id: 'check', x: 240, y: 160, text: 'Check the sources' },
58659
+ { id: 'publish', x: 480, y: 80, text: 'Publish' },
58660
+ ];
58661
+
58662
+ const edges = (): DiagramEdge[] => [
58663
+ { id: 'e1', source: 'draft', target: 'review' },
58664
+ { id: 'e2', source: 'draft', target: 'check' },
58665
+ { id: 'e3', source: 'review', target: 'publish' },
58666
+ { id: 'e4', source: 'check', target: 'publish' },
58667
+ ];
58668
+
58669
+ /**
58670
+ * A right click on a node, or the Menu key on the node under the keys, opens the app's menu at `e.at`: Rename opens the
58671
+ * text editor (`editText`), Delete takes the node away. A double click marks a node or a connection done, and the line
58672
+ * under the diagram names the node under the pointer.
58673
+ */
58674
+ export default function ItemEvents() {
58675
+ const s = reactive({ over: '', did: 'Right-click a node for its menu.' });
58676
+ let diagram!: Diagram;
58677
+ let menu!: ContextMenu;
58678
+ let target: DiagramNode | null = null;
58679
+
58680
+ const items: MenuItem[] = [
58681
+ { text: '&Rename', click: () => target && diagram.editText(target.id) },
58682
+ {
58683
+ text: '&Delete',
58684
+ beginGroup: true,
58685
+ click: () => {
58686
+ if (!target) return;
58687
+ diagram.select({ nodes: [target.id] });
58688
+ if (diagram.deleteSelection()) s.did = `Deleted ${target.text}.`;
58689
+ },
58690
+ },
58691
+ ];
58692
+
58693
+ return (
58694
+ <Stack gap="md" class="docs-wide">
58695
+ <Diagram
58696
+ ref={(d: Diagram) => (diagram = d)}
58697
+ label="Publishing steps"
58698
+ autoFit
58699
+ nodes={nodes()}
58700
+ edges={edges()}
58701
+ edgePath="rounded-step"
58702
+ onNodeContextMenu={(e) => {
58703
+ target = e.node;
58704
+ menu.open(e.at, diagram);
58705
+ }}
58706
+ onNodeDblClick={(e) => {
58707
+ const done = e.node.status !== 'done';
58708
+ diagram.setNodeStatus(e.node.id, done ? 'done' : null);
58709
+ s.did = done ? `Marked ${e.node.text} done.` : `Cleared the mark of ${e.node.text}.`;
58710
+ }}
58711
+ onEdgeDblClick={(e) => {
58712
+ const done = e.edge.status !== 'done';
58713
+ diagram.setEdgeStatus(e.edge.id, done ? 'done' : null);
58714
+ s.did = done ? `Marked the connection ${e.edge.id} done.` : `Cleared the mark of ${e.edge.id}.`;
58715
+ }}
58716
+ onNodePointerEnter={(e) => (s.over = e.node.text ?? e.node.id)}
58717
+ onNodePointerLeave={() => (s.over = '')}
58718
+ />
58719
+ <ContextMenu ref={(m: ContextMenu) => (menu = m)} target={null} label="Node" items={items} />
58720
+ <output>{() => (s.over ? `Over ${s.over}. ` : '') + s.did}</output>
58721
+ </Stack>
58722
+ );
58723
+ }
58724
+ ```
58725
+
58726
+ ## Editing text in place
58727
+
58728
+ With `textEditable`, a double click on a node’s text, F2 or Alt+Enter on the node under the keys opens an editor over it: Enter or leaving it writes the text as a step of the history, and Escape keeps the old one. `editText(id)` opens it in code, and in a kind of one’s own `context.textPart(part)` names the part the editor covers. `onTextEditing` comes before the editor opens, `onTextChanging` when an edit ends with a new text, and `onTextChanged` after it was written. Here `onTextChanging` trims the text and refuses an empty one, and the line under the diagram tells the last change.
58729
+
58730
+ ```tsx
58731
+ import { reactive } from '@motifx/core';
58732
+ import { Diagram, Stack, type DiagramEdge, type DiagramNode } from '@motifx-community/ui';
58733
+
58734
+ /** The nodes and connections each time the example is shown: the diagram changes the arrays it is given. */
58735
+ const nodes = (): DiagramNode[] => [
58736
+ { id: 'plan', x: 0, y: 80, text: 'Plan' },
58737
+ { id: 'write', x: 220, y: 0, text: 'Write' },
58738
+ { id: 'send', x: 220, y: 160, text: 'Send' },
58739
+ ];
58740
+
58741
+ const edges = (): DiagramEdge[] => [
58742
+ { id: 'e1', source: 'plan', target: 'write' },
58743
+ { id: 'e2', source: 'plan', target: 'send' },
58744
+ ];
58745
+
58746
+ /**
58747
+ * Double-click a node's text, or press F2 on the node under the keys, to edit it in place; Enter or leaving the editor
58748
+ * writes the text, Escape keeps the old one. `onTextChanging` trims the text and refuses an empty one.
58749
+ */
58750
+ export default function EditText() {
58751
+ const s = reactive({ last: 'No text changed yet.' });
58752
+ return (
58753
+ <Stack gap="md" class="docs-wide">
58754
+ <Diagram
58755
+ label="Steps"
58756
+ autoFit
58757
+ nodes={nodes()}
58758
+ edges={edges()}
58759
+ textEditable
58760
+ onTextChanging={(e) => {
58761
+ e.text = e.text.trim();
58762
+ if (!e.text) e.cancel = true;
58763
+ }}
58764
+ onTextChanged={(e) => (s.last = `${e.previous} is now ${e.text}.`)}
58765
+ />
58766
+ <output>{() => s.last}</output>
58767
+ </Stack>
58768
+ );
58769
+ }
58770
+ ```
58771
+
58546
58772
  ## Feedback
58547
58773
 
58548
58774
  Loading issues…
@@ -58552,7 +58778,7 @@ Loading issues…
58552
58778
 
58553
58779
  # Diagram: History and commands
58554
58780
 
58555
- > Diagram · @motifx-community/ui 0.1.0-beta.16
58781
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
58556
58782
 
58557
58783
  Undo and redo, the clipboard and alignment, as commands that the app’s toolbars and menus name and the user runs with keys of their choice.
58558
58784
 
@@ -58622,6 +58848,7 @@ export default class Commands extends Component<HTMLDivElement> {
58622
58848
  | `duplicate` | Ctrl+D | Copies the selected nodes next to them. |
58623
58849
  | `delete` | Delete, Backspace | Deletes the selection. |
58624
58850
  | `selectAll` | Ctrl+A | Selects everything. |
58851
+ | `rename` | F2 | Edits the text of the node under the keys, or of the only selected node, in place (`textEditable`). |
58625
58852
  | `alignLeft, alignCenter, alignRight, alignTop, alignMiddle, alignBottom` | | Line the selected nodes up. |
58626
58853
  | `zoomIn, zoomOut, zoomToFit` | Plus, Minus | Zoom in, zoom out, fit the nodes into view. |
58627
58854
  | `layout` | | Places the nodes as `layoutOptions` says, gliding. |
@@ -58635,7 +58862,7 @@ Loading issues…
58635
58862
 
58636
58863
  # Diagram: Keyboard and accessibility
58637
58864
 
58638
- > Diagram · @motifx-community/ui 0.1.0-beta.16
58865
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
58639
58866
 
58640
58867
  Everything can be done with the keys, and a screen reader hears the diagram, its nodes and what the user does.
58641
58868
 
@@ -58649,6 +58876,10 @@ Everything can be done with the keys, and a screen reader hears the diagram, its
58649
58876
  | `Arrow keys` | Move from node to node once a node is selected, to the nearest node within 45 degrees of the direction of the key, and pan the view otherwise. With Shift, the view pans four times further. |
58650
58877
  | `Ctrl + arrow keys` | Move the selected nodes by one step of the grid, or the point under the keys; a run of a right-angled connection moves sideways. With Shift, by one unit. |
58651
58878
  | `Alt + arrow keys` | Resize the node under the keys, if it can be resized, by one step of the grid. With Shift, by one unit. |
58879
+ | `Alt + Enter` | A double click on the node or the connection under the keys: the app hears `onNodeDblClick` or `onEdgeDblClick`, and with `textEditable` the node’s text is edited. |
58880
+ | `Menu key, Shift + F10` | The context menu of the node or the connection under the keys: the app opens its menu at the middle of it (`onNodeContextMenu`, `onEdgeContextMenu`). |
58881
+ | `F2` | Edits the text of the node under the keys, else the only one selected, in place (`textEditable`): an editor opens over the text. |
58882
+ | `Enter, Escape (in the text editor)` | Enter writes the text as a step of the history, as leaving the editor does; Escape keeps the old one. |
58652
58883
  | `Ctrl + Z, Ctrl + Shift + Z, Ctrl + Y` | Undo and redo. |
58653
58884
  | `Ctrl + C, Ctrl + X, Ctrl + V, Ctrl + D` | Copy, cut, paste and duplicate. |
58654
58885
  | `Ctrl + A` | Selects every node and connection. |
@@ -58697,7 +58928,7 @@ Loading issues…
58697
58928
 
58698
58929
  # Diagram: API reference
58699
58930
 
58700
- > Diagram · @motifx-community/ui 0.1.0-beta.16
58931
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
58701
58932
 
58702
58933
  The props, members, events, styling hooks and design tokens of `Diagram` and `DiagramMap`.
58703
58934
 
@@ -58720,6 +58951,7 @@ The props, members, events, styling hooks and design tokens of `Diagram` and `Di
58720
58951
  | `snapToGrid` | `Bind<boolean>` | `false` | Snaps dragged nodes to the grid of `gridSize`. |
58721
58952
  | `guides` | `Bind<boolean>` | `true` | Lines a dragged node up with the edges and middles of the other nodes, and shows guides while it does. |
58722
58953
  | `history` | `Bind<boolean>` | `true` | Keeps the user’s steps to undo and redo. `false` clears the history. |
58954
+ | `textEditable` | `Bind<boolean>` | `false` | Whether the user edits a node’s `text` in place: a double click on the text, F2 or the `rename` command on the node under the keys opens an editor over it; Enter or leaving it writes the text as a step of the history, Escape keeps the old one. `editText()` opens it in code. |
58723
58955
  | `commandScope` | `Bind<ComponentBase \| null>` | The diagram | The component the diagram’s commands are held to. Their keys work while focus is inside it, and the toolbars and menus inside it run this diagram’s commands. Give the editor that holds the diagram and its toolbar. |
58724
58956
  | `viewport` | `Bind<DiagramViewport>` | `{ x: 0, y: 0, zoom: 1 }` | The position of the view. Panning and zooming change it, and `onViewportChanged` reports each change. |
58725
58957
  | `minZoom, maxZoom` | `Bind<number>` | `0.1`, `4` | The smallest and the largest zoom. |
@@ -58752,6 +58984,8 @@ The props, members, events, styling hooks and design tokens of `Diagram` and `Di
58752
58984
  | `deleteSelection()` | `boolean` | Deletes the selected nodes with their connections and the selected connections, except those that cannot be deleted, after `onDeleting`. A group goes with the nodes inside it. Returns whether anything was deleted. |
58753
58985
  | `setCollapsed(id, collapsed)` | `boolean` | Collapses a node to its header or opens it, as the button in its header does: a group, a lane, a table or a class. Returns whether it changed. |
58754
58986
  | `setNodeStatus(id, status, text?)` | `boolean` | Shows what a node is doing as a run goes through it, or takes it away with `null`: a mark on its corner and a ring, and a screen reader hears it with the node’s name. Not a step of the history. Returns whether it changed. |
58987
+ | `setEdgeStatus(id, status, text?)` | `boolean` | Shows what a connection is doing as a run goes along it, or takes it away with `null`: the status’s color on its line and its marks, unless the connection has a `color` of its own, a line that moves while it runs, and `text` in the line’s tip. A screen reader hears it with the connection’s two nodes. Not a step of the history. Returns whether it changed. |
58988
+ | `editText(id)` | `boolean` | Edits a node’s text in place, as a double click on it does with `textEditable`: an editor opens over the text, and Enter or leaving it writes the new text as a step of the history, Escape keeps the old one. Returns whether the editor opened: not in a read-only diagram, not for a node off the page, and not when `onTextEditing` cancels. |
58755
58989
  | `edgesOf(id, options?), nodesOf(id, options?)` | `DiagramEdge[]`, `DiagramNode[]` | The connections of a node, by `direction` (`'in'`, `'out'`, `'both'`) and `port`, and the nodes at their other ends. Read in a getter, they follow the connections. |
58756
58990
  | `setColumnChecked(id, column, checked)` | `boolean` | Ticks or clears the box of a column of a table that shows one, as the user does: a step of the history. Returns whether it changed. |
58757
58991
  | `undo(), redo()` | `boolean` | Undoes the last step, or makes the last undone step again: a move, a resize, a node collapsed or opened, a connection made or moved, its line reshaped, a deletion, a paste, an alignment, a layout or a change the app recorded. Returns whether there was a step. |
@@ -58789,15 +59023,15 @@ The props, members, events, styling hooks and design tokens of `Diagram` and `Di
58789
59023
  | --- | --- | --- |
58790
59024
  | `DiagramNode` | `{ id, x, y, width?, height?, text?, kind?, parent?, collapsed?, resizable?, ports?, cssClass?, style?, draggable?, selectable?, connectable?, deletable?, status?, statusText? }` | A node. `status` (`running`, `done`, `error`, `waiting`, `skipped`) and `statusText` show what it is doing as a run goes through it. `x` and `y` are its top left corner in diagram units; dragging writes them. Without `width` and `height` the node takes the size of its content. `kind` names its kind, `parent` the group it is in, and `collapsed` keeps a group, a table or a class collapsed to its header. Without `ports` it has a port in the middle of each side, named `top`, `right`, `bottom` and `left`. `cssClass` and `style` add classes and CSS properties to its element. The object is kept as it is given, so it can carry the app’s own fields. |
58791
59025
  | `DiagramNodeKind` | `{ content?, update?, ports?, cssClass?, resizable?, minWidth?, minHeight?, group?, collapsible?, collapse? }` | A kind of node. `content(context)` makes the content of each node once and returns a component or a text, or adds to `context.host`; `update(context)` writes what changed when the node is drawn again. `ports` may be a function that makes the ports from the node. `group` makes its nodes hold others, `collapsible` makes them collapse to their header, and `collapse` says whether a collapsed one keeps its width (`'vertical'`) or its height (`'horizontal'`). |
58792
- | `DiagramNodeContext` | `{ node, host, diagram, selected, dragHandle(part), anchor(id, part), label(read) }` | What `content` and `update` receive: the node, the part its content goes into, the diagram, whether the node is selected, `dragHandle`, which makes one part the only place that drags the node, `anchor`, which stands a port beside a part of the content, such as a row, and `label`, which names the node with a function the node follows as the reactive data it reads changes. |
59026
+ | `DiagramNodeContext` | `{ node, host, diagram, selected, dragHandle(part), anchor(id, part), label(read), textPart(part) }` | What `content` and `update` receive: the node, the part its content goes into, the diagram, whether the node is selected, `dragHandle`, which makes one part the only place that drags the node, `anchor`, which stands a port beside a part of the content, such as a row, `label`, which names the node with a function the node follows as the reactive data it reads changes, and `textPart`, which makes one part the place that shows the node’s `text`: the editor of an edit in place opens over it, and a double click on it starts one. The built-in kinds name theirs. |
58793
59027
  | `DiagramTableNode, DiagramTableColumn` | `{ …DiagramNode, columns, checkable? }`, `{ name, type?, primaryKey?, foreignKey?, unique?, checked? }` | A node of the `table` kind: its `text` is its name, and each column has a port named by it beside its row, on the left and on the right. `checkable` shows a box before each column, which the user ticks and clears, as columns are chosen for a query; the column’s `checked` holds it. |
58794
59028
  | `DiagramClassNode, DiagramClassMember` | `{ …DiagramNode, stereotype?, abstract?, attributes?, methods? }`, `{ name, type?, visibility?, static?, abstract? }` | A node of the `class` kind: its `text` is its name. `visibility` is `'public'`, `'private'`, `'protected'` or `'package'`. |
58795
59029
  | `DiagramCardNode` | `{ …DiagramNode, icon?, subtitle? }` | A node of the `card` kind: its icon and `text` in its header with the `subtitle` under them. `cardKind(options)` makes a kind of one’s own from it. |
58796
59030
  | `DiagramPort` | `{ id, side, offset?, direction?, type?, maxConnections?, label? }` | A port on a side of a node, or on several: a connection then takes the one that faces its other end. `offset` places it along the side, from `0` at the left or top end to `1`; the default is the middle, and a port the content anchors stands beside its part. `direction` is `'source'` for an output, `'target'` for an input, or `'both'`, the default for ports of the app’s own. |
58797
- | `DiagramEdge` | `{ id, source, target, sourcePort?, targetPort?, path?, points?, label?, sourceLabel?, targetLabel?, sourceMarker?, targetMarker?, dashed?, animated?, reconnectable?, color?, width?, cssClass?, style?, selectable?, deletable? }` | A connection. Without a port, an end takes the output or input that faces the other node. The markers are `none`, `arrow`, `arrow-open`, `circle`, `triangle-open`, `diamond`, `diamond-open` and the crow’s feet `one`, `many`, `zero-or-one`, `one-or-many` and `zero-or-many`; the default is an arrow at the target. `sourceLabel` and `targetLabel` write a text at each end. `color` and `width` set its line, and `cssClass` and `style` add classes and CSS properties to its element. `points` are the points the line passes through, which the user adds, moves and takes away. `path` can also be a function that receives the ends and the points and returns an SVG path and the position of the label. `reconnectable: false` keeps its ends and its points. |
59031
+ | `DiagramEdge` | `{ id, source, target, sourcePort?, targetPort?, path?, points?, label?, sourceLabel?, targetLabel?, sourceMarker?, targetMarker?, dashed?, animated?, reconnectable?, color?, width?, cssClass?, style?, selectable?, deletable?, status?, statusText? }` | A connection. Without a port, an end takes the output or input that faces the other node. The markers are `none`, `arrow`, `arrow-open`, `circle`, `triangle-open`, `diamond`, `diamond-open` and the crow’s feet `one`, `many`, `zero-or-one`, `one-or-many` and `zero-or-many`; the default is an arrow at the target. `sourceLabel` and `targetLabel` write a text at each end. `color` and `width` set its line, and `cssClass` and `style` add classes and CSS properties to its element. `points` are the points the line passes through, which the user adds, moves and takes away. `path` can also be a function that receives the ends and the points and returns an SVG path and the position of the label. `reconnectable: false` keeps its ends and its points. `status` and `statusText` show what it is doing as a run goes along it, as `setEdgeStatus` writes them. |
58798
59032
  | `DiagramNodeMove` | `{ node, from, to, fromParent?, toParent? }` | A node the user moved, with its position before and after, and the groups it left and joined when the drop took it into a group or out of one. |
58799
59033
  | `DiagramEdit` | `{ undo(), redo(), nodes?, edges? }` | A change the app made, for `record`: `undo` puts it back, `redo` makes it again, and `nodes` and `edges` say what it changed. |
58800
- | `DiagramChange` | `{ kind, nodes, edges }` | What a step of the history did: `kind` is `'move'`, `'resize'`, `'collapse'`, `'connect'`, `'reconnect'`, `'reshape'`, `'delete'`, `'paste'`, `'layout'` or `'edit'` (a change the app recorded). |
59034
+ | `DiagramChange` | `{ kind, nodes, edges }` | What a step of the history did: `kind` is `'move'`, `'resize'`, `'collapse'`, `'connect'`, `'reconnect'`, `'reshape'`, `'delete'`, `'paste'`, `'layout'`, `'text'` (a node’s text edited in place) or `'edit'` (a change the app recorded). |
58801
59035
  | `DiagramData` | `{ version?, nodes, edges?, viewport? }` | What `save` gives and `load` takes: copies of the nodes and connections, and the view. |
58802
59036
  | `DiagramDrawnNode` | `{ node, rect, group }` | A node on the surface, as `drawnNodes` gives it. |
58803
59037
  | `DiagramConnection` | `{ source, sourcePort?, target, targetPort? }` | The two ends of a connection. |
@@ -58827,6 +59061,17 @@ The props, members, events, styling hooks and design tokens of `Diagram` and `Di
58827
59061
  | `onPasting` | `{ nodes, edges, cancel }` | Occurs before copies are added by a paste or a duplicate. They are new objects with new ids; change their fields, such as an id of the app’s own, or set `cancel`. |
58828
59062
  | `onPasted` | `{ nodes, edges }` | Occurs after copies were added to `nodes` and `edges`. They are the selection. |
58829
59063
  | `onHistoryChanged` | `{ reason, change, canUndo, canRedo }` | Occurs whenever the history changes. `reason` is `'add'`, `'undo'`, `'redo'` or `'clear'`. After an undo or a redo, `nodes`, `edges` and their objects already match the diagram, so this is the event to save the diagram on. |
59064
+ | `onNodeClick` | `{ node, event, byKeyboard, at, cancel }` | Occurs when the user clicks a node; a press selects it before the click, so `cancel` has nothing to keep. Not after a drag, and not from the ports, the resize handles or the text editor. `at` is where it was on the page, in pixels. |
59065
+ | `onNodeDblClick` | `{ node, event, byKeyboard, at, cancel }` | Occurs when the user double-clicks a node, or presses Alt+Enter on the node under the keys (`byKeyboard`). `cancel` keeps its text from being edited (`textEditable`). |
59066
+ | `onNodeContextMenu` | `{ node, event, byKeyboard, at, cancel }` | Occurs when the user right-clicks a node, or presses the Menu key or Shift+F10 on the node under the keys: open a menu at `at`, the pointer or the middle of the node, with `menu.open(e.at, diagram)`. While the app listens, the browser’s own menu stays closed, unless `cancel`. |
59067
+ | `onNodePointerEnter, onNodePointerLeave` | `{ node, event }` | Occur when the pointer comes over a node and when it leaves it: its content, its ports and its frame alike. |
59068
+ | `onEdgeClick` | `{ edge, event, byKeyboard, at, cancel }` | Occurs when the user clicks a connection, before it is selected; `cancel` leaves the selection as it is. |
59069
+ | `onEdgeDblClick` | `{ edge, event, byKeyboard, at, cancel }` | Occurs when the user double-clicks a connection, or presses Alt+Enter on the connection under the keys; `at` is then the middle between its ends. |
59070
+ | `onEdgeContextMenu` | `{ edge, event, byKeyboard, at, cancel }` | Occurs when the user right-clicks a connection, or presses the Menu key or Shift+F10 on the connection under the keys: open a menu at `at`. While the app listens, the browser’s own menu stays closed, unless `cancel`. |
59071
+ | `onEdgePointerEnter, onEdgePointerLeave` | `{ edge, event }` | Occur when the pointer comes over a connection and when it leaves it: its line, its marks and its labels alike. |
59072
+ | `onTextEditing` | `{ node, text, byKeyboard, cancel }` | Occurs before the editor of a node’s text opens (`textEditable`): change `text`, the text the editor starts with, or set `cancel` to keep it closed. |
59073
+ | `onTextChanging` | `{ node, text, previous, cancel }` | Occurs when an edit of a node’s text ends with a new text, before it is written: change `text`, or set `cancel` to keep the old one, such as for a name already taken. The editor closes either way. |
59074
+ | `onTextChanged` | `{ node, text, previous }` | Occurs after an edit wrote a node’s new text, as a step of the history. |
58830
59075
  | `onContentChanged` | `void` | Occurs at most once a frame after nodes moved or changed their size, came, went, were hidden in a group or shown again, or the surface changed its size. A map follows the diagram with it. |
58831
59076
 
58832
59077
  ### DiagramMap
@@ -58845,6 +59090,7 @@ The props, members, events, styling hooks and design tokens of `Diagram` and `Di
58845
59090
  | `duplicate` | Ctrl+D | Copies the selected nodes next to them. |
58846
59091
  | `delete` | Delete, Backspace | Deletes the selection. |
58847
59092
  | `selectAll` | Ctrl+A | Selects everything. |
59093
+ | `rename` | F2 | Edits the text of the node under the keys, else the only one selected, in place (`textEditable`). |
58848
59094
  | `alignLeft, alignCenter, alignRight, alignTop, alignMiddle, alignBottom` | | Line the selected nodes up. |
58849
59095
  | `zoomIn, zoomOut, zoomToFit` | Plus, Minus | Zoom in, zoom out, fit the nodes into view. |
58850
59096
  | `layout` | | Places the nodes as `layoutOptions` says, gliding. |