@motifx-community/ui 0.1.0-beta.17 → 0.1.0-beta.19

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 (242) hide show
  1. package/CHANGELOG.md +57 -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/form/MxForm.d.ts +3 -0
  9. package/dist/components/form/form-props.d.ts +7 -0
  10. package/dist/components/formlayout/FormLayout.d.ts +21 -6
  11. package/dist/components/formlayout/form-item.d.ts +4 -3
  12. package/dist/components/formlayout/form-layout-props.d.ts +9 -5
  13. package/dist/components/formlayout/form-tab.d.ts +2 -1
  14. package/dist/components/layout/DockPanel.d.ts +16 -6
  15. package/dist/components/layout/Grid.d.ts +35 -25
  16. package/dist/components/layout/GroupBox.d.ts +14 -4
  17. package/dist/components/layout/Panel.d.ts +12 -2
  18. package/dist/components/layout/SplitContainer.d.ts +12 -2
  19. package/dist/components/layout/Stack.d.ts +29 -17
  20. package/dist/components/layout/dock-child-props.d.ts +7 -6
  21. package/dist/components/layout/dock-panel-props.d.ts +3 -2
  22. package/dist/components/layout/grid-cell.d.ts +7 -5
  23. package/dist/components/layout/grid-props.d.ts +17 -12
  24. package/dist/components/layout/group-box-props.d.ts +3 -2
  25. package/dist/components/layout/panel-props.d.ts +2 -1
  26. package/dist/components/layout/split-container-props.d.ts +2 -1
  27. package/dist/components/layout/stack-child-props.d.ts +3 -2
  28. package/dist/components/layout/stack-props.d.ts +8 -7
  29. package/dist/components/tabs/Tab.d.ts +6 -0
  30. package/dist/components/tabs/Tabs.d.ts +5 -0
  31. package/dist/components/tabs/tab-props.d.ts +7 -1
  32. package/dist/components/tabs/tabs-props.d.ts +6 -0
  33. package/dist/core/responsive.d.ts +52 -0
  34. package/dist/excel/index.js +1 -1
  35. package/dist/excel/index.js.map +1 -1
  36. package/dist/generated/tokens.d.ts +20 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +836 -126
  39. package/dist/index.js.map +1 -1
  40. package/dist/parts/table/RowHeights.d.ts +23 -0
  41. package/dist/parts/table/ScrollGeometry.d.ts +6 -1
  42. package/dist/parts/table/table-sheet-column.d.ts +2 -0
  43. package/dist/pdf/index.js +1 -1
  44. package/dist/pdf/index.js.map +1 -1
  45. package/dist/pdf/pdf-export-options.d.ts +4 -1
  46. package/dist/styles.css +93 -5
  47. package/dist/tokens/index.d.ts +40 -0
  48. package/dist/tokens/index.js +20 -0
  49. package/dist/tokens/index.js.map +1 -1
  50. package/docs/accordion.md +1 -1
  51. package/docs/actionsheet.md +1 -1
  52. package/docs/appbar.md +1 -1
  53. package/docs/appmenu-api.md +1 -1
  54. package/docs/appmenu-programmatic.md +1 -1
  55. package/docs/appmenu-search.md +1 -1
  56. package/docs/appmenu.md +1 -1
  57. package/docs/avatar.md +1 -1
  58. package/docs/badge.md +1 -1
  59. package/docs/bar-gauge-angles.md +1 -1
  60. package/docs/bar-gauge-data.md +1 -1
  61. package/docs/bar-gauge-labels.md +1 -1
  62. package/docs/bar-gauge.md +1 -1
  63. package/docs/barcode.md +1 -1
  64. package/docs/bottomnavigation.md +1 -1
  65. package/docs/bottomsheet.md +1 -1
  66. package/docs/breadcrumb.md +1 -1
  67. package/docs/button.md +1 -1
  68. package/docs/buttongroup.md +1 -1
  69. package/docs/buttons.md +1 -1
  70. package/docs/calendar.md +1 -1
  71. package/docs/card.md +1 -1
  72. package/docs/chart-bars.md +1 -1
  73. package/docs/chart-candles.md +1 -1
  74. package/docs/chart-funnel.md +1 -1
  75. package/docs/chart-heatmap.md +1 -1
  76. package/docs/chart-lines.md +1 -1
  77. package/docs/chart-live.md +1 -1
  78. package/docs/chart-pie.md +1 -1
  79. package/docs/chart-radar.md +1 -1
  80. package/docs/chart-ranges.md +1 -1
  81. package/docs/chart-references.md +1 -1
  82. package/docs/chart-scatter.md +1 -1
  83. package/docs/chart-waterfall.md +1 -1
  84. package/docs/chart-zoom.md +1 -1
  85. package/docs/chart.md +1 -1
  86. package/docs/chat.md +1 -1
  87. package/docs/checkbox.md +1 -1
  88. package/docs/chip.md +1 -1
  89. package/docs/choice.md +1 -1
  90. package/docs/colorbox.md +1 -1
  91. package/docs/combobox.md +1 -1
  92. package/docs/commands.md +1 -1
  93. package/docs/control.md +1 -1
  94. package/docs/data.md +1 -1
  95. package/docs/datagrid-api.md +3 -2
  96. package/docs/datagrid-bands.md +1 -1
  97. package/docs/datagrid-drag-select.md +1 -1
  98. package/docs/datagrid-drag.md +1 -1
  99. package/docs/datagrid-editing.md +1 -1
  100. package/docs/datagrid-filtering.md +1 -1
  101. package/docs/datagrid-forms.md +1 -1
  102. package/docs/datagrid-grouping.md +1 -1
  103. package/docs/datagrid-layout.md +1 -1
  104. package/docs/datagrid-lookups.md +1 -1
  105. package/docs/datagrid-master-detail.md +1 -1
  106. package/docs/datagrid-scrolling.md +77 -1
  107. package/docs/datagrid-selection.md +1 -1
  108. package/docs/datagrid.md +1 -1
  109. package/docs/datebox.md +1 -1
  110. package/docs/daterangebox.md +1 -1
  111. package/docs/diagram-api.md +1 -1
  112. package/docs/diagram-commands.md +1 -1
  113. package/docs/diagram-connections.md +1 -1
  114. package/docs/diagram-custom-nodes.md +1 -1
  115. package/docs/diagram-designer.md +1 -1
  116. package/docs/diagram-editing.md +1 -1
  117. package/docs/diagram-flow.md +1 -1
  118. package/docs/diagram-keyboard.md +1 -1
  119. package/docs/diagram-layout.md +1 -1
  120. package/docs/diagram-nodes.md +1 -1
  121. package/docs/diagram-tables.md +1 -1
  122. package/docs/diagram.md +1 -1
  123. package/docs/display.md +1 -1
  124. package/docs/draggable.md +1 -1
  125. package/docs/drawer.md +1 -1
  126. package/docs/dropdown.md +1 -1
  127. package/docs/editors.md +1 -1
  128. package/docs/expressioneditor.md +1 -1
  129. package/docs/expressions.md +1 -1
  130. package/docs/feedback.md +1 -1
  131. package/docs/fileuploader.md +1 -1
  132. package/docs/filterbuilder.md +1 -1
  133. package/docs/formlayout-schema.md +1 -1
  134. package/docs/formlayout.md +52 -6
  135. package/docs/foundations.md +1 -1
  136. package/docs/gallery.md +1 -1
  137. package/docs/gauge-base.md +1 -1
  138. package/docs/gauge-circular.md +1 -1
  139. package/docs/gauge-dashboards.md +1 -1
  140. package/docs/gauge-linear.md +1 -1
  141. package/docs/gauge-markers.md +1 -1
  142. package/docs/gauge-marks.md +1 -1
  143. package/docs/gauge-ranges.md +1 -1
  144. package/docs/gauge-scales.md +1 -1
  145. package/docs/gauge.md +1 -1
  146. package/docs/home.md +1 -1
  147. package/docs/keyboard.md +1 -1
  148. package/docs/language.md +1 -1
  149. package/docs/layout.md +101 -28
  150. package/docs/listbox.md +1 -1
  151. package/docs/loadpanel.md +1 -1
  152. package/docs/lookup.md +1 -1
  153. package/docs/markdown.md +1 -1
  154. package/docs/menus-api.md +1 -1
  155. package/docs/menus-context.md +1 -1
  156. package/docs/menus-customization.md +1 -1
  157. package/docs/menus-merging.md +1 -1
  158. package/docs/menus-programmatic.md +1 -1
  159. package/docs/menus.md +1 -1
  160. package/docs/multiview.md +1 -1
  161. package/docs/navigation.md +1 -1
  162. package/docs/numberbox.md +1 -1
  163. package/docs/otpinput.md +1 -1
  164. package/docs/pagination.md +1 -1
  165. package/docs/pivotgrid-api.md +1 -1
  166. package/docs/pivotgrid-chart.md +1 -1
  167. package/docs/pivotgrid-drilldown.md +1 -1
  168. package/docs/pivotgrid-export.md +1 -1
  169. package/docs/pivotgrid-fields.md +1 -1
  170. package/docs/pivotgrid-keyboard.md +1 -1
  171. package/docs/pivotgrid-layout.md +1 -1
  172. package/docs/pivotgrid-panel.md +1 -1
  173. package/docs/pivotgrid-remote.md +1 -1
  174. package/docs/pivotgrid-sorting.md +1 -1
  175. package/docs/pivotgrid-state.md +1 -1
  176. package/docs/pivotgrid-summaries.md +1 -1
  177. package/docs/pivotgrid.md +1 -1
  178. package/docs/popover.md +1 -1
  179. package/docs/progress.md +1 -1
  180. package/docs/qrcode.md +1 -1
  181. package/docs/radiogroup.md +1 -1
  182. package/docs/rating.md +1 -1
  183. package/docs/resizable.md +1 -1
  184. package/docs/ribbonmenu-api.md +1 -1
  185. package/docs/ribbonmenu-commands.md +1 -1
  186. package/docs/ribbonmenu-customization.md +1 -1
  187. package/docs/ribbonmenu-display.md +1 -1
  188. package/docs/ribbonmenu-layouts.md +1 -1
  189. package/docs/ribbonmenu-programmatic.md +1 -1
  190. package/docs/ribbonmenu.md +1 -1
  191. package/docs/scheduler-agenda.md +1 -1
  192. package/docs/scheduler-big-data.md +1 -1
  193. package/docs/scheduler-editing.md +1 -1
  194. package/docs/scheduler-form.md +1 -1
  195. package/docs/scheduler-icalendar.md +1 -1
  196. package/docs/scheduler-mobile.md +1 -1
  197. package/docs/scheduler-recurrence.md +1 -1
  198. package/docs/scheduler-resources.md +1 -1
  199. package/docs/scheduler-timeline.md +1 -1
  200. package/docs/scheduler.md +1 -1
  201. package/docs/scrollview.md +1 -1
  202. package/docs/shortcuteditor.md +1 -1
  203. package/docs/showcase-flowstudio.md +1 -1
  204. package/docs/showcase-home.md +1 -1
  205. package/docs/showcase-mail.md +1 -1
  206. package/docs/showcase.md +1 -1
  207. package/docs/signature.md +1 -1
  208. package/docs/skeleton.md +1 -1
  209. package/docs/slider.md +1 -1
  210. package/docs/sortable.md +1 -1
  211. package/docs/sparkline.md +1 -1
  212. package/docs/speeddial.md +1 -1
  213. package/docs/splitter.md +1 -1
  214. package/docs/stepper.md +1 -1
  215. package/docs/switch.md +1 -1
  216. package/docs/tabdocs-dock.md +1 -1
  217. package/docs/tabdocs-drag.md +1 -1
  218. package/docs/tabdocs-menus.md +1 -1
  219. package/docs/tabdocs-mobile.md +1 -1
  220. package/docs/tabdocs-tabs.md +1 -1
  221. package/docs/tabdocs-windows.md +1 -1
  222. package/docs/tabdocs-workspace.md +1 -1
  223. package/docs/tabdocs.md +1 -1
  224. package/docs/tabs.md +58 -1
  225. package/docs/tagbox.md +1 -1
  226. package/docs/textarea.md +1 -1
  227. package/docs/textbox.md +1 -1
  228. package/docs/tileview.md +1 -1
  229. package/docs/timeline.md +1 -1
  230. package/docs/toast.md +1 -1
  231. package/docs/tokens.md +9 -1
  232. package/docs/toolbar-api.md +1 -1
  233. package/docs/toolbar-customization.md +1 -1
  234. package/docs/toolbar.md +1 -1
  235. package/docs/tooltip.md +1 -1
  236. package/docs/treeview.md +2 -2
  237. package/docs/validationsummary.md +1 -1
  238. package/docs/window.md +45 -1
  239. package/docs/wizard.md +1 -1
  240. package/llms-full.txt +530 -225
  241. package/llms.txt +1 -1
  242. package/package.json +2 -2
package/docs/accordion.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Accordion
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # ActionSheet
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/appbar.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AppBar
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # AppMenu: API reference
2
2
 
3
- > AppMenu · @motifx-community/ui 0.1.0-beta.17
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Everything `AppMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # AppMenu: Programmatic changes
2
2
 
3
- > AppMenu · @motifx-community/ui 0.1.0-beta.17
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # AppMenu: Slots and search
2
2
 
3
- > AppMenu · @motifx-community/ui 0.1.0-beta.17
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/appmenu.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AppMenu
2
2
 
3
- > AppMenu · @motifx-community/ui 0.1.0-beta.17
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/avatar.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Avatar and AvatarGroup
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/badge.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Badge
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # BarGauge: Angles and size
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  How far the bars go round and which way they face fit a bar gauge to the room it has.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # BarGauge: Data
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A bar gauge reads numbers, or rows through their fields, and follows them as they change.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # BarGauge: Labels and legend
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Each value can be written at the end of its bar, named in a legend, and shown with its name under the pointer.
6
6
 
package/docs/bar-gauge.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BarGauge
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/barcode.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Barcode
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # BottomNavigation
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # BottomSheet
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Breadcrumb
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/button.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Button
2
2
 
3
- > Buttons · @motifx-community/ui 0.1.0-beta.17
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # ButtonGroup
2
2
 
3
- > Buttons · @motifx-community/ui 0.1.0-beta.17
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/buttons.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Buttons
2
2
 
3
- > Buttons · @motifx-community/ui 0.1.0-beta.17
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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).
6
6
 
package/docs/calendar.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Calendar
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/card.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Card
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Bars
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Bars compare amounts. They stand on a common baseline, so lengths compare exactly, side by side, stacked, or on their side for long names.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Candles
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Candles show the first, highest, lowest and last price for each position.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Funnel
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A funnel follows a quantity through stages in order, and shows how much of it is left at each one.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Heat map
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A heat map shows a value for each pair of two categories as a color.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Lines and areas
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Lines and areas show how values change along an axis: over time, or from one category to the next.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Live data
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A chart follows its data: reactive values redraw it, and live data moves along with the latest values.
6
6
 
package/docs/chart-pie.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chart: Pie and donut
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A pie or a donut splits one whole into its parts, for a share seen at a glance.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Radar
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A radar compares several measures at once, for one or more items.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Ranges
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Ranges show a low and a high value for each position, as a band or as floating bars.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: References and selection
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Reference lines and bands give the values a target, a limit or a period, and the reader can choose values to act on.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Scatter and bubble
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Scatter and bubble charts place each row by two numbers, to show how they relate.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Waterfall
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  A waterfall shows how a starting value becomes an end value through changes up and down.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Chart: Zoom and large data
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Large data stays quick: long lines are thinned to the width with their peaks kept, and the reader zooms in for detail.
6
6
 
package/docs/chart.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chart
2
2
 
3
- > Charts · @motifx-community/ui 0.1.0-beta.17
3
+ > Charts · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/chat.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chat
2
2
 
3
- > AI chat · @motifx-community/ui 0.1.0-beta.17
3
+ > AI chat · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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()`.
6
6
 
package/docs/checkbox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CheckBox
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.17
3
+ > Choice · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/chip.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chip and ChipGroup
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/choice.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Choice
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.17
3
+ > Choice · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  Choice components let the reader pick: on or off, one of a few, several of a list, or one of many with search.
6
6
 
package/docs/colorbox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ColorBox and ColorPicker
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/combobox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ComboBox and Autocomplete
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.17
3
+ > Choice · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/commands.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Commands and shortcuts
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.17
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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.
6
6
 
package/docs/control.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Control
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.17
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  `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.
6
6
 
package/docs/data.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Data
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.17
3
+ > Data · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  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).
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: API reference
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Columns
6
6
 
@@ -12,6 +12,7 @@ Up to 0.1.0-beta.8, the root of the content that `cell`, `groupCell`, `headerCel
12
12
  | `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. |
13
13
  | `width, minWidth, maxWidth, flex` | In pixels (by default, the `columnWidth` and `columnMinWidth` settings). `flex` shares the free space until the user resizes. |
14
14
  | `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. |
15
+ | `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). |
15
16
  | `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. |
16
17
  | `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). |
17
18
  | `cell` | `(ctx) => component`: custom content, created once per pooled cell. Read `ctx.row` and `ctx.value` in getters. |
@@ -247,7 +248,7 @@ export interface Order {
247
248
 
248
249
  | Method | Returns | Description |
249
250
  | --- | --- | --- |
250
- | `addRow(values?)` | `Promise<boolean>` | Opens a new row, as the “New row” button does. Returns `false` when the row being edited cannot be left. |
251
+ | `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. |
251
252
  | `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. |
252
253
  | `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. |
253
254
  | `saveChanges() / discardChanges()` | `Promise<{ saved, failed }>` / `void` | Sends every unsaved change, or discards them all. |
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Bands and adaptive columns
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Band headers
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Selecting by dragging
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Rows
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Row drag and drop
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Reorder rows
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Editing
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Editing and save modes
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Filtering and search
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Filters
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Edit forms and popups
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Edit forms and popups
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Grouping and summaries
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Grouping
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Layout and events
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Toolbar
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Lookup columns
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Lookup columns
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Master-detail
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Master-detail
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Scrolling
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Scrolling modes
6
6
 
@@ -157,6 +157,82 @@ export default function VirtualColumns() {
157
157
  | `Export, copy` | CSV, Excel and PDF write every column, including those without cells, and copying reads the values rather than the cells. |
158
158
  | `Events` | `onCellPrepared` and `onRowPrepared` run as cells are created, so they run again after a sideways scroll. |
159
159
 
160
+ ## Wrapping text
161
+
162
+ 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)`.
163
+
164
+ ```tsx
165
+ import { reactive } from '@motifx/core';
166
+ import { CheckBox, DataGrid, Stack } from '@motifx-community/ui';
167
+ import type { GridColumn } from '@motifx-community/ui';
168
+
169
+ type Ticket = { id: number; subject: string; note: string; status: string };
170
+
171
+ const SUBJECTS = ['Invoice is missing', 'Cannot sign in', 'Order arrived damaged', 'Change of address', 'Refund request', 'App crashes on start'];
172
+ const SENTENCES = [
173
+ 'The customer called twice this morning.',
174
+ 'We asked for the order number and a photo.',
175
+ 'A new parcel goes out with the next delivery, and the old one is picked up at the door.',
176
+ 'Waiting for the warehouse to answer.',
177
+ 'The same thing happened last month on another order, so the account is flagged for a call from the team lead.',
178
+ 'Closed after the customer confirmed.',
179
+ ];
180
+ const STATUSES = ['Open', 'Waiting', 'Solved'];
181
+
182
+ /** A note of one to five sentences; every seventh starts a second paragraph on a line of its own. */
183
+ function noteOf(i: number): string {
184
+ const count = (i * 7) % 5 + 1;
185
+ const parts = Array.from({ length: count }, (_, k) => SENTENCES[(i * 2 + k) % SENTENCES.length]);
186
+ if (i % 7 === 0 && count > 1) return `${parts[0]}\n${parts.slice(1).join(' ')}`;
187
+ return parts.join(' ');
188
+ }
189
+
190
+ const rows: Ticket[] = Array.from({ length: 10_000 }, (_, i) => ({
191
+ id: i + 1,
192
+ subject: SUBJECTS[i % SUBJECTS.length],
193
+ note: noteOf(i),
194
+ status: STATUSES[(i * 5) % STATUSES.length],
195
+ }));
196
+
197
+ /** 10,000 tickets: the notes wrap, and each row is as tall as its note. */
198
+ export default function WrapText() {
199
+ const s = reactive({ wrap: true });
200
+
201
+ const columns: GridColumn<Ticket>[] = [
202
+ { field: 'id', title: 'No.', type: 'number', width: 80 },
203
+ { field: 'subject', title: 'Subject', width: 190 },
204
+ { field: 'note', title: 'Note', width: 120, flex: 1, wrap: () => s.wrap },
205
+ { field: 'status', title: 'Status', width: 110 },
206
+ ];
207
+
208
+ return (
209
+ <>
210
+ <Stack orientation="horizontal" wrap align="center">
211
+ <CheckBox label="Wrap the notes" x-model={() => s.wrap} />
212
+ </Stack>
213
+ <DataGrid
214
+ class="dg-wrap"
215
+ style="block-size: 28rem"
216
+ rows={rows}
217
+ rowKey="id"
218
+ columns={columns}
219
+ label="Support tickets"
220
+ locale="en"
221
+ settings={{ editable: true, striped: true }}
222
+ />
223
+ </>
224
+ );
225
+ }
226
+ ```
227
+
228
+ | Topic | Behavior with wrapped text |
229
+ | --- | --- |
230
+ | `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. |
231
+ | `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. |
232
+ | `Keyboard` | Page Up and Page Down move by the rows that fit on the screen, counted by their heights. |
233
+ | `Editing` | A cell edited to another text has its row measured again, and the rows after it follow. |
234
+ | `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. |
235
+
160
236
  ## Keyboard
161
237
 
162
238
  | Key | Description |
@@ -1,6 +1,6 @@
1
1
  # DataGrid: Selection and export
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.19
4
4
 
5
5
  ## Selection
6
6