@motifx-community/ui 0.1.0-beta.17 → 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 (211) hide show
  1. package/CHANGELOG.md +23 -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/excel/index.js +1 -1
  9. package/dist/excel/index.js.map +1 -1
  10. package/dist/index.js +370 -24
  11. package/dist/index.js.map +1 -1
  12. package/dist/parts/table/RowHeights.d.ts +23 -0
  13. package/dist/parts/table/ScrollGeometry.d.ts +6 -1
  14. package/dist/parts/table/table-sheet-column.d.ts +2 -0
  15. package/dist/pdf/index.js +1 -1
  16. package/dist/pdf/index.js.map +1 -1
  17. package/dist/pdf/pdf-export-options.d.ts +4 -1
  18. package/dist/styles.css +4 -0
  19. package/docs/accordion.md +1 -1
  20. package/docs/actionsheet.md +1 -1
  21. package/docs/appbar.md +1 -1
  22. package/docs/appmenu-api.md +1 -1
  23. package/docs/appmenu-programmatic.md +1 -1
  24. package/docs/appmenu-search.md +1 -1
  25. package/docs/appmenu.md +1 -1
  26. package/docs/avatar.md +1 -1
  27. package/docs/badge.md +1 -1
  28. package/docs/bar-gauge-angles.md +1 -1
  29. package/docs/bar-gauge-data.md +1 -1
  30. package/docs/bar-gauge-labels.md +1 -1
  31. package/docs/bar-gauge.md +1 -1
  32. package/docs/barcode.md +1 -1
  33. package/docs/bottomnavigation.md +1 -1
  34. package/docs/bottomsheet.md +1 -1
  35. package/docs/breadcrumb.md +1 -1
  36. package/docs/button.md +1 -1
  37. package/docs/buttongroup.md +1 -1
  38. package/docs/buttons.md +1 -1
  39. package/docs/calendar.md +1 -1
  40. package/docs/card.md +1 -1
  41. package/docs/chart-bars.md +1 -1
  42. package/docs/chart-candles.md +1 -1
  43. package/docs/chart-funnel.md +1 -1
  44. package/docs/chart-heatmap.md +1 -1
  45. package/docs/chart-lines.md +1 -1
  46. package/docs/chart-live.md +1 -1
  47. package/docs/chart-pie.md +1 -1
  48. package/docs/chart-radar.md +1 -1
  49. package/docs/chart-ranges.md +1 -1
  50. package/docs/chart-references.md +1 -1
  51. package/docs/chart-scatter.md +1 -1
  52. package/docs/chart-waterfall.md +1 -1
  53. package/docs/chart-zoom.md +1 -1
  54. package/docs/chart.md +1 -1
  55. package/docs/chat.md +1 -1
  56. package/docs/checkbox.md +1 -1
  57. package/docs/chip.md +1 -1
  58. package/docs/choice.md +1 -1
  59. package/docs/colorbox.md +1 -1
  60. package/docs/combobox.md +1 -1
  61. package/docs/commands.md +1 -1
  62. package/docs/control.md +1 -1
  63. package/docs/data.md +1 -1
  64. package/docs/datagrid-api.md +3 -2
  65. package/docs/datagrid-bands.md +1 -1
  66. package/docs/datagrid-drag-select.md +1 -1
  67. package/docs/datagrid-drag.md +1 -1
  68. package/docs/datagrid-editing.md +1 -1
  69. package/docs/datagrid-filtering.md +1 -1
  70. package/docs/datagrid-forms.md +1 -1
  71. package/docs/datagrid-grouping.md +1 -1
  72. package/docs/datagrid-layout.md +1 -1
  73. package/docs/datagrid-lookups.md +1 -1
  74. package/docs/datagrid-master-detail.md +1 -1
  75. package/docs/datagrid-scrolling.md +77 -1
  76. package/docs/datagrid-selection.md +1 -1
  77. package/docs/datagrid.md +1 -1
  78. package/docs/datebox.md +1 -1
  79. package/docs/daterangebox.md +1 -1
  80. package/docs/diagram-api.md +1 -1
  81. package/docs/diagram-commands.md +1 -1
  82. package/docs/diagram-connections.md +1 -1
  83. package/docs/diagram-custom-nodes.md +1 -1
  84. package/docs/diagram-designer.md +1 -1
  85. package/docs/diagram-editing.md +1 -1
  86. package/docs/diagram-flow.md +1 -1
  87. package/docs/diagram-keyboard.md +1 -1
  88. package/docs/diagram-layout.md +1 -1
  89. package/docs/diagram-nodes.md +1 -1
  90. package/docs/diagram-tables.md +1 -1
  91. package/docs/diagram.md +1 -1
  92. package/docs/display.md +1 -1
  93. package/docs/draggable.md +1 -1
  94. package/docs/drawer.md +1 -1
  95. package/docs/dropdown.md +1 -1
  96. package/docs/editors.md +1 -1
  97. package/docs/expressioneditor.md +1 -1
  98. package/docs/expressions.md +1 -1
  99. package/docs/feedback.md +1 -1
  100. package/docs/fileuploader.md +1 -1
  101. package/docs/filterbuilder.md +1 -1
  102. package/docs/formlayout-schema.md +1 -1
  103. package/docs/formlayout.md +1 -1
  104. package/docs/foundations.md +1 -1
  105. package/docs/gallery.md +1 -1
  106. package/docs/gauge-base.md +1 -1
  107. package/docs/gauge-circular.md +1 -1
  108. package/docs/gauge-dashboards.md +1 -1
  109. package/docs/gauge-linear.md +1 -1
  110. package/docs/gauge-markers.md +1 -1
  111. package/docs/gauge-marks.md +1 -1
  112. package/docs/gauge-ranges.md +1 -1
  113. package/docs/gauge-scales.md +1 -1
  114. package/docs/gauge.md +1 -1
  115. package/docs/home.md +1 -1
  116. package/docs/keyboard.md +1 -1
  117. package/docs/language.md +1 -1
  118. package/docs/layout.md +1 -1
  119. package/docs/listbox.md +1 -1
  120. package/docs/loadpanel.md +1 -1
  121. package/docs/lookup.md +1 -1
  122. package/docs/markdown.md +1 -1
  123. package/docs/menus-api.md +1 -1
  124. package/docs/menus-context.md +1 -1
  125. package/docs/menus-customization.md +1 -1
  126. package/docs/menus-merging.md +1 -1
  127. package/docs/menus-programmatic.md +1 -1
  128. package/docs/menus.md +1 -1
  129. package/docs/multiview.md +1 -1
  130. package/docs/navigation.md +1 -1
  131. package/docs/numberbox.md +1 -1
  132. package/docs/otpinput.md +1 -1
  133. package/docs/pagination.md +1 -1
  134. package/docs/pivotgrid-api.md +1 -1
  135. package/docs/pivotgrid-chart.md +1 -1
  136. package/docs/pivotgrid-drilldown.md +1 -1
  137. package/docs/pivotgrid-export.md +1 -1
  138. package/docs/pivotgrid-fields.md +1 -1
  139. package/docs/pivotgrid-keyboard.md +1 -1
  140. package/docs/pivotgrid-layout.md +1 -1
  141. package/docs/pivotgrid-panel.md +1 -1
  142. package/docs/pivotgrid-remote.md +1 -1
  143. package/docs/pivotgrid-sorting.md +1 -1
  144. package/docs/pivotgrid-state.md +1 -1
  145. package/docs/pivotgrid-summaries.md +1 -1
  146. package/docs/pivotgrid.md +1 -1
  147. package/docs/popover.md +1 -1
  148. package/docs/progress.md +1 -1
  149. package/docs/qrcode.md +1 -1
  150. package/docs/radiogroup.md +1 -1
  151. package/docs/rating.md +1 -1
  152. package/docs/resizable.md +1 -1
  153. package/docs/ribbonmenu-api.md +1 -1
  154. package/docs/ribbonmenu-commands.md +1 -1
  155. package/docs/ribbonmenu-customization.md +1 -1
  156. package/docs/ribbonmenu-display.md +1 -1
  157. package/docs/ribbonmenu-layouts.md +1 -1
  158. package/docs/ribbonmenu-programmatic.md +1 -1
  159. package/docs/ribbonmenu.md +1 -1
  160. package/docs/scheduler-agenda.md +1 -1
  161. package/docs/scheduler-big-data.md +1 -1
  162. package/docs/scheduler-editing.md +1 -1
  163. package/docs/scheduler-form.md +1 -1
  164. package/docs/scheduler-icalendar.md +1 -1
  165. package/docs/scheduler-mobile.md +1 -1
  166. package/docs/scheduler-recurrence.md +1 -1
  167. package/docs/scheduler-resources.md +1 -1
  168. package/docs/scheduler-timeline.md +1 -1
  169. package/docs/scheduler.md +1 -1
  170. package/docs/scrollview.md +1 -1
  171. package/docs/shortcuteditor.md +1 -1
  172. package/docs/showcase-flowstudio.md +1 -1
  173. package/docs/showcase-home.md +1 -1
  174. package/docs/showcase-mail.md +1 -1
  175. package/docs/showcase.md +1 -1
  176. package/docs/signature.md +1 -1
  177. package/docs/skeleton.md +1 -1
  178. package/docs/slider.md +1 -1
  179. package/docs/sortable.md +1 -1
  180. package/docs/sparkline.md +1 -1
  181. package/docs/speeddial.md +1 -1
  182. package/docs/splitter.md +1 -1
  183. package/docs/stepper.md +1 -1
  184. package/docs/switch.md +1 -1
  185. package/docs/tabdocs-dock.md +1 -1
  186. package/docs/tabdocs-drag.md +1 -1
  187. package/docs/tabdocs-menus.md +1 -1
  188. package/docs/tabdocs-mobile.md +1 -1
  189. package/docs/tabdocs-tabs.md +1 -1
  190. package/docs/tabdocs-windows.md +1 -1
  191. package/docs/tabdocs-workspace.md +1 -1
  192. package/docs/tabdocs.md +1 -1
  193. package/docs/tabs.md +1 -1
  194. package/docs/tagbox.md +1 -1
  195. package/docs/textarea.md +1 -1
  196. package/docs/textbox.md +1 -1
  197. package/docs/tileview.md +1 -1
  198. package/docs/timeline.md +1 -1
  199. package/docs/toast.md +1 -1
  200. package/docs/tokens.md +1 -1
  201. package/docs/toolbar-api.md +1 -1
  202. package/docs/toolbar-customization.md +1 -1
  203. package/docs/toolbar.md +1 -1
  204. package/docs/tooltip.md +1 -1
  205. package/docs/treeview.md +1 -1
  206. package/docs/validationsummary.md +1 -1
  207. package/docs/window.md +1 -1
  208. package/docs/wizard.md +1 -1
  209. package/llms-full.txt +269 -192
  210. package/llms.txt +1 -1
  211. package/package.json +1 -1
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
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.18
4
4
 
5
5
  ## Selection
6
6
 
package/docs/datagrid.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DataGrid
2
2
 
3
- > DataGrid · @motifx-community/ui 0.1.0-beta.17
3
+ > DataGrid · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/datebox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DateBox
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DateRangeBox
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: API reference
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  The props, members, events, styling hooks and design tokens of `Diagram` and `DiagramMap`.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: History and commands
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Connections
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Custom nodes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Build your own flow designer
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Moving and selecting
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Flow nodes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Keyboard and accessibility
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  Everything can be done with the keys, and a screen reader hears the diagram, its nodes and what the user does.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Layout, map and export
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  Placing the nodes automatically, a map of the whole diagram, saving and loading, and images of the diagram.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Nodes and styles
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Tables and classes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/diagram.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Diagram
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.17
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/display.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Display
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  Display components present content: people, counts and labels, cards, pictures, tiles, events in time, codes to scan, and placeholders while content loads.
6
6
 
package/docs/draggable.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Draggable and DropTarget
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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).
6
6
 
package/docs/drawer.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Drawer
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/dropdown.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DropDown
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.17
3
+ > Choice · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/editors.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Editors
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # ExpressionEditor
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Expression language
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.17
3
+ > Data · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/feedback.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Feedback
2
2
 
3
- > Feedback · @motifx-community/ui 0.1.0-beta.17
3
+ > Feedback · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FileUploader
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.17
3
+ > Editors · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FilterBuilder
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.17
3
+ > Data · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FormLayout: From a schema
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FormLayout
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.17
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Foundations
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.17
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
package/docs/gallery.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gallery
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.17
3
+ > Display · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Base value
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Circular
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Dashboards
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Linear
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Markers
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Marks
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  Marks show other values on the scale besides the gauge's own, such as a target, a limit, or the lowest and highest expected.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Ranges
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  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.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Scales
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.17
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.18
4
4
 
5
5
  The scale tells the reader how to read the value: its ends, ticks with their values, or nothing at all.
6
6