@motifx-community/ui 0.1.0-beta.11 → 0.1.0-beta.13

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 (198) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/components/combobox/ComboBox.d.ts +5 -0
  3. package/dist/components/combobox/combo-box-props.d.ts +6 -0
  4. package/dist/components/datagrid/DataGrid.d.ts +4 -1
  5. package/dist/components/datagrid/grid-lookup.d.ts +8 -0
  6. package/dist/components/datagrid/model/FilterModel.d.ts +5 -0
  7. package/dist/components/datagrid/model/LookupTexts.d.ts +2 -0
  8. package/dist/components/datagrid/model/LookupValues.d.ts +4 -0
  9. package/dist/components/datagrid/view/ActionWidths.d.ts +13 -3
  10. package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -1
  11. package/dist/components/datagrid/view/GridRow.d.ts +1 -1
  12. package/dist/components/dropdown/DropDown.d.ts +5 -0
  13. package/dist/components/dropdown/drop-down-props.d.ts +11 -2
  14. package/dist/components/filterbuilder/filter-builder-lookup.d.ts +3 -0
  15. package/dist/components/listbox/ListBox.d.ts +5 -0
  16. package/dist/components/listbox/item-template.d.ts +4 -0
  17. package/dist/components/listbox/list-box-props.d.ts +6 -0
  18. package/dist/components/listbox/select-all-state.d.ts +1 -1
  19. package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +1 -0
  20. package/dist/components/tabdocs/DocumentTab.d.ts +0 -1
  21. package/dist/components/tabdocs/PhoneBar.d.ts +0 -1
  22. package/dist/components/tagbox/TagBox.d.ts +5 -0
  23. package/dist/components/tagbox/tag-box-props.d.ts +6 -0
  24. package/dist/components/toolbar/Toolbar.d.ts +8 -0
  25. package/dist/components/treeview/TreeView.d.ts +8 -4
  26. package/dist/components/treeview/tree-view-item-template.d.ts +4 -0
  27. package/dist/core/measure/after-frame.d.ts +7 -0
  28. package/dist/core/measure/drawn.d.ts +7 -0
  29. package/dist/core/measure/index.d.ts +1 -1
  30. package/dist/core/show-icon.d.ts +3 -3
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +652 -312
  33. package/dist/index.js.map +1 -1
  34. package/dist/parts/data/DataItems.d.ts +24 -0
  35. package/dist/parts/data/KeyedItems.d.ts +31 -5
  36. package/dist/parts/data/normalize-key.d.ts +7 -0
  37. package/dist/parts/list/OptionList.d.ts +4 -3
  38. package/dist/parts/list/option-parts.d.ts +1 -1
  39. package/dist/styles.css +74 -23
  40. package/docs/accordion.md +1 -1
  41. package/docs/actionsheet.md +1 -1
  42. package/docs/appbar.md +1 -1
  43. package/docs/appmenu-api.md +1 -1
  44. package/docs/appmenu-programmatic.md +1 -1
  45. package/docs/appmenu-search.md +1 -1
  46. package/docs/appmenu.md +1 -1
  47. package/docs/avatar.md +1 -1
  48. package/docs/badge.md +1 -1
  49. package/docs/bar-gauge-angles.md +1 -1
  50. package/docs/bar-gauge-data.md +1 -1
  51. package/docs/bar-gauge-labels.md +1 -1
  52. package/docs/bar-gauge.md +1 -1
  53. package/docs/barcode.md +1 -1
  54. package/docs/bottomnavigation.md +1 -1
  55. package/docs/bottomsheet.md +1 -1
  56. package/docs/breadcrumb.md +1 -1
  57. package/docs/button.md +1 -1
  58. package/docs/buttongroup.md +1 -1
  59. package/docs/buttons.md +1 -1
  60. package/docs/calendar.md +1 -1
  61. package/docs/card.md +1 -1
  62. package/docs/chart-bars.md +1 -1
  63. package/docs/chart-candles.md +1 -1
  64. package/docs/chart-funnel.md +1 -1
  65. package/docs/chart-heatmap.md +1 -1
  66. package/docs/chart-lines.md +1 -1
  67. package/docs/chart-live.md +1 -1
  68. package/docs/chart-pie.md +1 -1
  69. package/docs/chart-radar.md +1 -1
  70. package/docs/chart-ranges.md +1 -1
  71. package/docs/chart-references.md +1 -1
  72. package/docs/chart-scatter.md +1 -1
  73. package/docs/chart-waterfall.md +1 -1
  74. package/docs/chart-zoom.md +1 -1
  75. package/docs/chart.md +1 -1
  76. package/docs/checkbox.md +1 -1
  77. package/docs/chip.md +1 -1
  78. package/docs/choice.md +1 -1
  79. package/docs/colorbox.md +1 -1
  80. package/docs/combobox.md +2 -1
  81. package/docs/commands.md +1 -1
  82. package/docs/control.md +1 -1
  83. package/docs/data.md +1 -1
  84. package/docs/datagrid-api.md +1 -1
  85. package/docs/datagrid-bands.md +1 -1
  86. package/docs/datagrid-drag-select.md +1 -1
  87. package/docs/datagrid-drag.md +1 -1
  88. package/docs/datagrid-editing.md +1 -1
  89. package/docs/datagrid-filtering.md +1 -1
  90. package/docs/datagrid-forms.md +1 -1
  91. package/docs/datagrid-grouping.md +1 -1
  92. package/docs/datagrid-layout.md +1 -1
  93. package/docs/datagrid-lookups.md +4 -1
  94. package/docs/datagrid-master-detail.md +1 -1
  95. package/docs/datagrid-scrolling.md +1 -1
  96. package/docs/datagrid-selection.md +1 -1
  97. package/docs/datagrid.md +1 -1
  98. package/docs/datebox.md +1 -1
  99. package/docs/daterangebox.md +1 -1
  100. package/docs/display.md +1 -1
  101. package/docs/draggable.md +1 -1
  102. package/docs/drawer.md +1 -1
  103. package/docs/dropdown.md +4 -3
  104. package/docs/editors.md +1 -1
  105. package/docs/feedback.md +1 -1
  106. package/docs/fileuploader.md +1 -1
  107. package/docs/filterbuilder.md +1 -1
  108. package/docs/formlayout.md +1 -1
  109. package/docs/foundations.md +1 -1
  110. package/docs/gallery.md +1 -1
  111. package/docs/gauge-base.md +1 -1
  112. package/docs/gauge-circular.md +1 -1
  113. package/docs/gauge-dashboards.md +1 -1
  114. package/docs/gauge-linear.md +1 -1
  115. package/docs/gauge-markers.md +1 -1
  116. package/docs/gauge-marks.md +1 -1
  117. package/docs/gauge-ranges.md +1 -1
  118. package/docs/gauge-scales.md +1 -1
  119. package/docs/gauge.md +1 -1
  120. package/docs/home.md +1 -1
  121. package/docs/keyboard.md +1 -1
  122. package/docs/language.md +1 -1
  123. package/docs/layout.md +1 -1
  124. package/docs/listbox.md +4 -3
  125. package/docs/loadpanel.md +1 -1
  126. package/docs/lookup.md +1 -1
  127. package/docs/menus-api.md +1 -1
  128. package/docs/menus-context.md +1 -1
  129. package/docs/menus-customization.md +1 -1
  130. package/docs/menus-merging.md +1 -1
  131. package/docs/menus-programmatic.md +1 -1
  132. package/docs/menus.md +1 -1
  133. package/docs/multiview.md +1 -1
  134. package/docs/navigation.md +1 -1
  135. package/docs/numberbox.md +1 -1
  136. package/docs/otpinput.md +1 -1
  137. package/docs/pagination.md +1 -1
  138. package/docs/popover.md +1 -1
  139. package/docs/progress.md +1 -1
  140. package/docs/qrcode.md +1 -1
  141. package/docs/radiogroup.md +1 -1
  142. package/docs/rating.md +1 -1
  143. package/docs/resizable.md +1 -1
  144. package/docs/ribbonmenu-api.md +1 -1
  145. package/docs/ribbonmenu-commands.md +1 -1
  146. package/docs/ribbonmenu-customization.md +1 -1
  147. package/docs/ribbonmenu-display.md +3 -3
  148. package/docs/ribbonmenu-layouts.md +1 -1
  149. package/docs/ribbonmenu-programmatic.md +1 -1
  150. package/docs/ribbonmenu.md +1 -1
  151. package/docs/scheduler-agenda.md +1 -1
  152. package/docs/scheduler-big-data.md +1 -1
  153. package/docs/scheduler-editing.md +1 -1
  154. package/docs/scheduler-form.md +1 -1
  155. package/docs/scheduler-icalendar.md +1 -1
  156. package/docs/scheduler-mobile.md +1 -1
  157. package/docs/scheduler-recurrence.md +1 -1
  158. package/docs/scheduler-resources.md +1 -1
  159. package/docs/scheduler-timeline.md +1 -1
  160. package/docs/scheduler.md +1 -1
  161. package/docs/scrollview.md +1 -1
  162. package/docs/shortcuteditor.md +1 -1
  163. package/docs/showcase-home.md +1 -1
  164. package/docs/showcase.md +1 -1
  165. package/docs/signature.md +1 -1
  166. package/docs/skeleton.md +1 -1
  167. package/docs/slider.md +1 -1
  168. package/docs/sortable.md +1 -1
  169. package/docs/sparkline.md +1 -1
  170. package/docs/speeddial.md +1 -1
  171. package/docs/splitter.md +1 -1
  172. package/docs/stepper.md +1 -1
  173. package/docs/switch.md +1 -1
  174. package/docs/tabdocs-dock.md +1 -1
  175. package/docs/tabdocs-drag.md +1 -1
  176. package/docs/tabdocs-menus.md +1 -1
  177. package/docs/tabdocs-mobile.md +1 -1
  178. package/docs/tabdocs-tabs.md +1 -1
  179. package/docs/tabdocs-windows.md +1 -1
  180. package/docs/tabdocs-workspace.md +1 -1
  181. package/docs/tabdocs.md +1 -1
  182. package/docs/tabs.md +1 -1
  183. package/docs/tagbox.md +4 -3
  184. package/docs/textarea.md +1 -1
  185. package/docs/textbox.md +1 -1
  186. package/docs/tileview.md +1 -1
  187. package/docs/timeline.md +1 -1
  188. package/docs/toast.md +1 -1
  189. package/docs/tokens.md +1 -1
  190. package/docs/toolbar.md +1 -1
  191. package/docs/tooltip.md +1 -1
  192. package/docs/treeview.md +3 -3
  193. package/docs/validationsummary.md +1 -1
  194. package/docs/window.md +1 -1
  195. package/docs/wizard.md +1 -1
  196. package/llms-full.txt +174 -167
  197. package/llms.txt +1 -1
  198. package/package.json +4 -4
package/docs/tagbox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TagBox
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.10
3
+ > Data · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
@@ -124,7 +124,7 @@ export default function Customers() {
124
124
 
125
125
  ## Custom tags
126
126
 
127
- With `acceptCustomValue`, pressing Enter adds text that matches no item as a tag. `customValue` transforms or rejects it, and `tagTemplate` customizes how a tag is drawn.
127
+ With `acceptCustomValue`, pressing Enter adds text that matches no item as a tag. `customValue` transforms or rejects it, and `tagTemplate` customizes how a tag is drawn. It draws into a `host` of its own, which goes when the tag is drawn again, its value is taken out or the box goes, with everything the template added to it; a cleanup it returns runs then, for what lives outside the host.
128
128
 
129
129
  ```tsx
130
130
  import { reactive } from '@motifx/core';
@@ -217,6 +217,7 @@ export const skills = ['CSS', 'Go', 'HTML', 'Java', 'JavaScript', 'Kotlin', 'Pyt
217
217
  | `value` | `Bind<V[]>` | `[]` | The values of the selected items. `x-model` binds them, and every change writes a new array. |
218
218
  | `items / dataSource` | `Bind<readonly T[]>` / `Bind<DataSource \| null>` | — | An in-memory array, searched on the client, or a `@motifx-community/data` data source, searched on the server. |
219
219
  | `textField, valueField, iconField, groupField, enabledField` | `Bind<ItemField<T>>` | — | Same as ListBox. Groups apply to in-memory items. |
220
+ | `normalizeKey` | `Bind<NormalizeKey>` | — | Same as DropDown. |
220
221
  | `placeholder` | `Bind<string>` | `''` | Displayed when no item is selected. |
221
222
  | `searchMode, minSearchLength, searchDelay` | | `'contains'`, `0`, `0` / `250` | How and when typed text searches, as in ComboBox. |
222
223
  | `acceptCustomValue` | `Bind<boolean>` | `false` | Pressing Enter adds text that matches no item as a custom tag. |
@@ -229,7 +230,7 @@ export const skills = ['CSS', 'Go', 'HTML', 'Java', 'JavaScript', 'Kotlin', 'Pyt
229
230
  | `hideSelected` | `Bind<boolean>` | `false` | Removes selected items from the list (in-memory items only). |
230
231
  | `openOnFieldClick` | `Bind<boolean>` | `true` | Clicking the field opens the list. |
231
232
  | `showDropDownButton, clearButton` | `Bind<boolean>` | `true`, `false` | The arrow that opens all items, and the button that removes all tags. |
232
- | `itemTemplate, tagTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how a list item or a tag is drawn. |
233
+ | `itemTemplate, tagTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how a list item or a tag is drawn. What it adds to `host` goes with `host`; a cleanup it returns runs as `host` goes. |
233
234
  | `matchWidth` | `Bind<boolean>` | `true` | The list is at least as wide as the field. |
234
235
  | `label, labelMode, helpText, hint, prefix, icon, readOnly, required, size, variant, stretch, rules, error, validateOn, validationGroup` | see TextBox | | Field props shared by all editors. |
235
236
 
package/docs/textarea.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TextArea
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.10
3
+ > Editors · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/textbox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TextBox
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.10
3
+ > Editors · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/tileview.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TileView
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.10
3
+ > Display · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/timeline.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Timeline
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.10
3
+ > Display · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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).
6
6
 
package/docs/toast.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Toast
2
2
 
3
- > Feedback · @motifx-community/ui 0.1.0-beta.10
3
+ > Feedback · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/tokens.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Design tokens
2
2
 
3
- > Get started · @motifx-community/ui 0.1.0-beta.10
3
+ > Get started · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/toolbar.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Toolbar
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.10
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/tooltip.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tooltip
2
2
 
3
- > Feedback · @motifx-community/ui 0.1.0-beta.10
3
+ > Feedback · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/treeview.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TreeView
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.10
3
+ > Data · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
@@ -102,7 +102,7 @@ export interface Entry {
102
102
 
103
103
  ## Flat data, fields and templates
104
104
 
105
- Flat rows reference their parent through `parentField`, which defaults to `parentId`. Any field can be a property name or a function. `itemTemplate` customizes a row's content, and `enabledField` and `expandedField` apply per row.
105
+ Flat rows reference their parent through `parentField`, which defaults to `parentId`. Any field can be a property name or a function. `itemTemplate` customizes a row's content: what it adds to its `host` goes with the row, and a cleanup it returns, for what lives outside the row, runs as the row goes (drawn again or the tree gone; a closed row's rows stay drawn). `enabledField` and `enabledField` and `expandedField` apply per row.
106
106
 
107
107
  ```tsx
108
108
  /** A row of the trees on this page. */
@@ -252,7 +252,7 @@ export default function Localization() {
252
252
  | `size` | `Bind<ControlSize>` | `'md'` | `sm`, `md`, `lg`, from the density tokens. |
253
253
  | `label` | `Bind<string>` | `''` | The accessible name of the tree. `aria-label` and `aria-labelledby` on the tag also work. |
254
254
  | `virtualFrom` | `Bind<number>` | `500` | When more rows than this are on screen, only the visible rows are rendered. |
255
- | `itemTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes the content of a row. |
255
+ | `itemTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes the content of a row. What it adds to `host` goes with the row; a cleanup it returns runs as the row goes. |
256
256
  | `enabled / disabled, visible, tabStop, tabIndex` | see Control | | Properties shared by all controls. |
257
257
 
258
258
  ### Properties
@@ -1,6 +1,6 @@
1
1
  # ValidationSummary
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.10
3
+ > Editors · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/window.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Window and dialog
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.10
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6
 
package/docs/wizard.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Wizard
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.10
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.13
4
4
 
5
5
  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.
6
6