@motifx-community/ui 0.1.0-beta.10 → 0.1.0-beta.12

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 (189) hide show
  1. package/CHANGELOG.md +59 -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/GridRow.d.ts +1 -1
  11. package/dist/components/dropdown/DropDown.d.ts +5 -0
  12. package/dist/components/dropdown/drop-down-props.d.ts +6 -0
  13. package/dist/components/filterbuilder/filter-builder-lookup.d.ts +3 -0
  14. package/dist/components/listbox/ListBox.d.ts +5 -0
  15. package/dist/components/listbox/list-box-props.d.ts +6 -0
  16. package/dist/components/listbox/select-all-state.d.ts +1 -1
  17. package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +1 -0
  18. package/dist/components/tagbox/TagBox.d.ts +5 -0
  19. package/dist/components/tagbox/tag-box-props.d.ts +6 -0
  20. package/dist/components/toolbar/Toolbar.d.ts +10 -2
  21. package/dist/core/measure/after-frame.d.ts +7 -0
  22. package/dist/core/measure/drawn.d.ts +7 -0
  23. package/dist/core/measure/index.d.ts +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +571 -139
  26. package/dist/index.js.map +1 -1
  27. package/dist/parts/data/DataItems.d.ts +24 -0
  28. package/dist/parts/data/KeyedItems.d.ts +31 -5
  29. package/dist/parts/data/normalize-key.d.ts +7 -0
  30. package/dist/styles.css +32 -0
  31. package/docs/accordion.md +1 -1
  32. package/docs/actionsheet.md +1 -1
  33. package/docs/appbar.md +1 -1
  34. package/docs/appmenu-api.md +1 -1
  35. package/docs/appmenu-programmatic.md +1 -1
  36. package/docs/appmenu-search.md +1 -1
  37. package/docs/appmenu.md +1 -1
  38. package/docs/avatar.md +1 -1
  39. package/docs/badge.md +1 -1
  40. package/docs/bar-gauge-angles.md +1 -1
  41. package/docs/bar-gauge-data.md +1 -1
  42. package/docs/bar-gauge-labels.md +1 -1
  43. package/docs/bar-gauge.md +1 -1
  44. package/docs/barcode.md +1 -1
  45. package/docs/bottomnavigation.md +1 -1
  46. package/docs/bottomsheet.md +1 -1
  47. package/docs/breadcrumb.md +1 -1
  48. package/docs/button.md +2 -2
  49. package/docs/buttongroup.md +1 -1
  50. package/docs/buttons.md +3 -5
  51. package/docs/calendar.md +1 -1
  52. package/docs/card.md +1 -1
  53. package/docs/chart-bars.md +1 -1
  54. package/docs/chart-candles.md +1 -1
  55. package/docs/chart-funnel.md +1 -1
  56. package/docs/chart-heatmap.md +1 -1
  57. package/docs/chart-lines.md +1 -1
  58. package/docs/chart-live.md +1 -1
  59. package/docs/chart-pie.md +1 -1
  60. package/docs/chart-radar.md +1 -1
  61. package/docs/chart-ranges.md +1 -1
  62. package/docs/chart-references.md +1 -1
  63. package/docs/chart-scatter.md +1 -1
  64. package/docs/chart-waterfall.md +1 -1
  65. package/docs/chart-zoom.md +1 -1
  66. package/docs/chart.md +1 -1
  67. package/docs/checkbox.md +1 -1
  68. package/docs/chip.md +1 -1
  69. package/docs/choice.md +1 -1
  70. package/docs/colorbox.md +1 -1
  71. package/docs/combobox.md +1 -1
  72. package/docs/commands.md +126 -0
  73. package/docs/control.md +1 -1
  74. package/docs/data.md +1 -1
  75. package/docs/datagrid-api.md +3 -3
  76. package/docs/datagrid-bands.md +1 -1
  77. package/docs/datagrid-drag-select.md +1 -1
  78. package/docs/datagrid-drag.md +1 -1
  79. package/docs/datagrid-editing.md +107 -1
  80. package/docs/datagrid-filtering.md +11 -3
  81. package/docs/datagrid-forms.md +1 -1
  82. package/docs/datagrid-grouping.md +1 -1
  83. package/docs/datagrid-layout.md +2 -2
  84. package/docs/datagrid-lookups.md +1 -1
  85. package/docs/datagrid-master-detail.md +1 -1
  86. package/docs/datagrid-scrolling.md +1 -1
  87. package/docs/datagrid-selection.md +1 -1
  88. package/docs/datagrid.md +1 -1
  89. package/docs/datebox.md +1 -1
  90. package/docs/daterangebox.md +1 -1
  91. package/docs/display.md +1 -1
  92. package/docs/draggable.md +1 -1
  93. package/docs/drawer.md +1 -1
  94. package/docs/dropdown.md +1 -1
  95. package/docs/editors.md +3 -1
  96. package/docs/feedback.md +1 -1
  97. package/docs/fileuploader.md +1 -1
  98. package/docs/filterbuilder.md +1 -1
  99. package/docs/formlayout.md +1 -1
  100. package/docs/foundations.md +1 -1
  101. package/docs/gallery.md +1 -1
  102. package/docs/gauge-base.md +1 -1
  103. package/docs/gauge-circular.md +1 -1
  104. package/docs/gauge-dashboards.md +1 -1
  105. package/docs/gauge-linear.md +1 -1
  106. package/docs/gauge-markers.md +1 -1
  107. package/docs/gauge-marks.md +1 -1
  108. package/docs/gauge-ranges.md +1 -1
  109. package/docs/gauge-scales.md +1 -1
  110. package/docs/gauge.md +1 -1
  111. package/docs/home.md +2 -2
  112. package/docs/keyboard.md +5 -3
  113. package/docs/language.md +2 -2
  114. package/docs/layout.md +1 -1
  115. package/docs/listbox.md +1 -1
  116. package/docs/loadpanel.md +2 -2
  117. package/docs/lookup.md +1 -1
  118. package/docs/menus-api.md +142 -0
  119. package/docs/menus-context.md +126 -0
  120. package/docs/menus-customization.md +138 -0
  121. package/docs/menus-merging.md +208 -0
  122. package/docs/menus-programmatic.md +74 -0
  123. package/docs/menus.md +22 -179
  124. package/docs/multiview.md +1 -1
  125. package/docs/navigation.md +7 -2
  126. package/docs/numberbox.md +3 -3
  127. package/docs/otpinput.md +1 -1
  128. package/docs/pagination.md +1 -1
  129. package/docs/popover.md +1 -1
  130. package/docs/progress.md +3 -3
  131. package/docs/qrcode.md +1 -1
  132. package/docs/radiogroup.md +1 -1
  133. package/docs/rating.md +1 -1
  134. package/docs/resizable.md +1 -1
  135. package/docs/ribbonmenu-api.md +1 -1
  136. package/docs/ribbonmenu-commands.md +1 -1
  137. package/docs/ribbonmenu-customization.md +1 -1
  138. package/docs/ribbonmenu-display.md +1 -1
  139. package/docs/ribbonmenu-layouts.md +1 -1
  140. package/docs/ribbonmenu-programmatic.md +1 -1
  141. package/docs/ribbonmenu.md +1 -1
  142. package/docs/scheduler-agenda.md +1 -1
  143. package/docs/scheduler-big-data.md +1 -1
  144. package/docs/scheduler-editing.md +1 -1
  145. package/docs/scheduler-form.md +1 -1
  146. package/docs/scheduler-icalendar.md +1 -1
  147. package/docs/scheduler-mobile.md +1 -1
  148. package/docs/scheduler-recurrence.md +1 -1
  149. package/docs/scheduler-resources.md +1 -1
  150. package/docs/scheduler-timeline.md +1 -1
  151. package/docs/scheduler.md +1 -1
  152. package/docs/scrollview.md +1 -1
  153. package/docs/shortcuteditor.md +248 -0
  154. package/docs/showcase-home.md +1 -1
  155. package/docs/showcase.md +1 -1
  156. package/docs/signature.md +1 -1
  157. package/docs/skeleton.md +1 -1
  158. package/docs/slider.md +3 -3
  159. package/docs/sortable.md +1 -1
  160. package/docs/sparkline.md +1 -1
  161. package/docs/speeddial.md +1 -1
  162. package/docs/splitter.md +1 -1
  163. package/docs/stepper.md +1 -1
  164. package/docs/switch.md +1 -1
  165. package/docs/tabdocs-dock.md +1 -1
  166. package/docs/tabdocs-drag.md +1 -1
  167. package/docs/tabdocs-menus.md +1 -1
  168. package/docs/tabdocs-mobile.md +1 -1
  169. package/docs/tabdocs-tabs.md +1 -1
  170. package/docs/tabdocs-windows.md +1 -1
  171. package/docs/tabdocs-workspace.md +1 -1
  172. package/docs/tabdocs.md +1 -1
  173. package/docs/tabs.md +1 -1
  174. package/docs/tagbox.md +1 -1
  175. package/docs/textarea.md +1 -1
  176. package/docs/textbox.md +1 -1
  177. package/docs/tileview.md +1 -1
  178. package/docs/timeline.md +1 -1
  179. package/docs/toast.md +1 -1
  180. package/docs/tokens.md +13 -1
  181. package/docs/toolbar.md +1 -1
  182. package/docs/tooltip.md +1 -1
  183. package/docs/treeview.md +1 -1
  184. package/docs/validationsummary.md +1 -1
  185. package/docs/window.md +1 -1
  186. package/docs/wizard.md +1 -1
  187. package/llms-full.txt +3774 -2692
  188. package/llms.txt +16 -6
  189. package/package.json +4 -4
@@ -19,6 +19,11 @@ export declare class DataItems<T> implements ItemSource<T>, IDisposable {
19
19
  textOf: (item: T) => string;
20
20
  /** The field of an item that holds its value, when it is not the source's key. It is used to request unloaded values. */
21
21
  valueField: string | undefined;
22
+ /**
23
+ * Values equal once normalized are one value (`KeyedItems.normalizeKey`): the rule of keys a source compares its own
24
+ * way, for items in memory and to spare the source the requests that find it out.
25
+ */
26
+ normalizeKey: ((key: unknown) => unknown) | undefined;
22
27
  searchMode: 'contains' | 'startswith';
23
28
  readonly onChanged: MotifEvent<void>;
24
29
  /** Sets items in memory, read as they are now. The search runs over them here. Call it again after they change. */
@@ -45,10 +50,29 @@ export declare class DataItems<T> implements ItemSource<T>, IDisposable {
45
50
  */
46
51
  find(value: unknown, valueOf: (item: T) => unknown, same?: (a: unknown, b: unknown) => boolean): Promise<T | undefined>;
47
52
  findLoaded(value: unknown, valueOf: (item: T) => unknown, same?: (a: unknown, b: unknown) => boolean): T | undefined;
53
+ /**
54
+ * Whether `item` is the item of `value`: its value is the same, the same once normalized (`normalizeKey`), or the
55
+ * data source matched `value` to it (a key it compares its own way, such as `'A '` for `'A'`).
56
+ */
57
+ holds(item: T, value: unknown, valueOf: (item: T) => unknown, same?: (a: unknown, b: unknown) => boolean): boolean;
58
+ /** The test of `holds` for one value, with what is known of it read once: for many items. */
59
+ matcher(value: unknown, valueOf: (item: T) => unknown, same?: (a: unknown, b: unknown) => boolean): (item: T) => boolean;
60
+ /**
61
+ * Whether two values stand for the same item: they are the same, the same once normalized (`normalizeKey`), or the
62
+ * data source matched them to one item (`'A '` and `'A'` where it disregards trailing spaces).
63
+ */
64
+ sameItem(a: unknown, b: unknown): boolean;
65
+ /** Of `values` (the chosen ones), the one that stands for the same item as `value` (`sameItem`); `null` when none does. */
66
+ heldIn(values: ReadonlySet<unknown>, value: unknown): {
67
+ value: unknown;
68
+ } | null;
48
69
  /** What is known of the item `find` requested from the data source: loading, found, or not in the source. */
49
70
  known(value: unknown): KeyedItem<T> | undefined;
50
71
  /** Requests the item of `value` from the data source again after its request failed. */
51
72
  retry(value: unknown): Promise<T | undefined>;
73
+ /** The cache of the data source, shared by every list and grid that reads it with the same value field and rule. */
74
+ private keyed;
75
+ private keyStringOf;
52
76
  reload(): Promise<void>;
53
77
  dispose(): void;
54
78
  private detach;
@@ -8,10 +8,17 @@ type Source = data.DataSource<any, any> | readonly unknown[];
8
8
  * drop-down's field or a filter list needs to turn a key into its item. Keys are requested when they
9
9
  * are needed and only once. Keys requested at the same moment go out together, in one request
10
10
  * per `batchSize` keys (`valueField in [...]`), or in one request per key for a service that only returns
11
- * one item by key (`resolve: 'byKey'`). There is one cache per source and value field, shared by
12
- * every grid, column and list that uses it (`KeyedItems.of`). Requests go through the source's
11
+ * one item by key (`resolve: 'byKey'`). There is one cache per source, value field and `normalizeKey`,
12
+ * shared by every grid, column and list that uses it (`KeyedItems.of`). Requests go through the source's
13
13
  * adapter, so the source's own query (filter, page, search) never changes.
14
14
  *
15
+ * Which item a key stands for is the source's decision: a source may compare keys its own way (a
16
+ * database that disregards trailing spaces, case or accents, or reads `'007'` as `7`). The items of a
17
+ * batch are matched to the keys asked for; when keys are left over while the source returned items no
18
+ * key matched here, or items that differ from a key only in such a way, those keys are asked for one
19
+ * by one, and what the source returns for a key is that key's item. `normalizeKey` tells the cache the
20
+ * rule itself: keys equal once normalized are one key, also in an array, where no source decides.
21
+ *
15
22
  * @example
16
23
  * const customers = KeyedItems.of(customerSource, 'id');
17
24
  * customers.onResolved(() => redraw());
@@ -21,6 +28,8 @@ type Source = data.DataSource<any, any> | readonly unknown[];
21
28
  export declare class KeyedItems<T = unknown> {
22
29
  private readonly source;
23
30
  readonly valueField?: string | undefined;
31
+ /** Keys equal once normalized are one key (`(k) => typeof k === 'string' ? k.trimEnd() : k`). */
32
+ readonly normalizeKey?: ((key: unknown) => unknown) | undefined;
24
33
  /**
25
34
  * `'batch'` sends the keys of a moment in one request per `batchSize`, and `'byKey'` sends one request per key.
26
35
  * The default is `'batch'` when the service filters, otherwise `'byKey'`.
@@ -44,14 +53,26 @@ export declare class KeyedItems<T = unknown> {
44
53
  readonly onResolved: MotifEvent<readonly string[] | null>;
45
54
  /** The same string for equal keys, as the cache stores them (`1` and `'1'` are one key). */
46
55
  static keyString(key: unknown): string;
47
- /** The shared cache of a source and value field. Every data source over the same adapter shares it. */
48
- static of<T = unknown>(source: data.DataSource<any, any> | readonly T[], valueField?: string): KeyedItems<T>;
49
- constructor(source: Source, valueField?: string | undefined);
56
+ /**
57
+ * The shared cache of a source, value field and `normalizeKey`. Every data source over the same adapter shares it; give
58
+ * the same `normalizeKey` function wherever the source is used, so they share one cache.
59
+ */
60
+ static of<T = unknown>(source: data.DataSource<any, any> | readonly T[], valueField?: string, normalizeKey?: ((key: unknown) => unknown) | null): KeyedItems<T>;
61
+ constructor(source: Source, valueField?: string | undefined,
62
+ /** Keys equal once normalized are one key (`(k) => typeof k === 'string' ? k.trimEnd() : k`). */
63
+ normalizeKey?: ((key: unknown) => unknown) | undefined);
50
64
  /** Indicates whether the items are an array in memory, where every key is known immediately. */
51
65
  get inMemory(): boolean;
52
66
  /** The value of an item: its `valueField`, otherwise the adapter's key (for an array, `item.value` or the item itself). */
53
67
  valueOf(item: T): unknown;
68
+ /** The string the cache keeps a key under: equal for keys it counts as one (`normalizeKey`). */
69
+ keyStringOf(key: unknown): string;
54
70
  sameKey(a: unknown, b: unknown): boolean;
71
+ /**
72
+ * The item a key stands for, as a string: equal for keys the source matched to the same item (`'A'` and `'A '`
73
+ * where it disregards trailing spaces). A key not found yet stands for itself.
74
+ */
75
+ itemKeyOf(key: unknown): string;
55
76
  /** What is known of a key now, or `undefined` if it was never requested (an array knows every key). */
56
77
  get(key: unknown): KeyedItem<T> | undefined;
57
78
  /** Requests the keys that are not known yet, and resolves once each one is found or missing. */
@@ -86,7 +107,12 @@ export declare class KeyedItems<T = unknown> {
86
107
  /** The field a batch filters on: `valueField`, else the adapter's key when it is one field. */
87
108
  private batchField;
88
109
  private flush;
110
+ /** Runs the jobs `parallelRequests` at a time. */
111
+ private inTurns;
89
112
  private loadMany;
113
+ /** Whether an item differs from one of `keys` only in what databases often disregard (`looseKey`). */
114
+ private looselyIn;
115
+ /** One key asked for alone: by the adapter's key, or by `field` when the value is not the key. What comes is that key's. */
90
116
  private loadOne;
91
117
  /** Items a search brought: their keys are known from now on. */
92
118
  private keep;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Turns a key into the form in which keys are compared: keys equal once normalized are one key. For keys a source
3
+ * compares its own way, said here so that items in memory follow the same rule and the source is spared the requests
4
+ * that find it out: `(k) => (typeof k === 'string' ? k.trimEnd() : k)` for codes padded with spaces, `toLowerCase()` for
5
+ * ids written in either case. Give one function wherever the same source is read, so they share one cache.
6
+ */
7
+ export type NormalizeKey = (key: unknown) => unknown;
package/dist/styles.css CHANGED
@@ -16741,10 +16741,16 @@
16741
16741
  min-inline-size: 0;
16742
16742
  }
16743
16743
 
16744
+ /* The actions keep to the end: room the bar holds for its parts in the "more" menu stays before them. */
16744
16745
  .mx-app-bar__actions > .mx-toolbar {
16746
+ justify-content: flex-end;
16745
16747
  min-inline-size: 0;
16746
16748
  }
16747
16749
 
16750
+ .mx-app-bar__actions > .mx-toolbar > .mx-toolbar__more {
16751
+ margin-inline-start: 0;
16752
+ }
16753
+
16748
16754
  /* A back arrow points to where the page came from. */
16749
16755
  .mx-app-bar__navigation[data-back]:dir(rtl) .mx-glyph {
16750
16756
  scale: -1 1;
@@ -20458,6 +20464,27 @@
20458
20464
  margin-inline-start: auto;
20459
20465
  }
20460
20466
 
20467
+ /* Holds the room of the parts in the "more" menu in the bar's own size (Toolbar.keepRoom): as long as they are, yet
20468
+ grows by a millionth of the room to spare from nothing, so it takes no room on the bar; its margin takes back the
20469
+ gap before it. */
20470
+ .mx-toolbar > .mx-toolbar__reserve {
20471
+ flex: 0.000001 0 0;
20472
+ min-inline-size: 0;
20473
+ min-block-size: 0;
20474
+ inline-size: var(--_reserve, 0);
20475
+ block-size: 0;
20476
+ margin-inline-start: calc(-1 * var(--_reserve-gap, 0px));
20477
+ visibility: hidden;
20478
+ pointer-events: none;
20479
+ }
20480
+
20481
+ .mx-toolbar[data-orientation='vertical'] > .mx-toolbar__reserve {
20482
+ inline-size: 0;
20483
+ block-size: var(--_reserve, 0);
20484
+ margin-inline-start: 0;
20485
+ margin-block-start: calc(-1 * var(--_reserve-gap, 0px));
20486
+ }
20487
+
20461
20488
  .mx-toolbar[data-orientation='vertical'] > .mx-toolbar__more {
20462
20489
  margin-inline-start: 0;
20463
20490
  margin-block-start: auto;
@@ -23139,6 +23166,11 @@
23139
23166
  flex: none;
23140
23167
  }
23141
23168
 
23169
+ /* The buttons wait out of sight, in their place, until their widths are measured (a frame after the rows show). */
23170
+ .mx-data-grid[data-measuring-actions] .mx-data-grid__row > .mx-data-grid__actions > * {
23171
+ visibility: hidden;
23172
+ }
23173
+
23142
23174
  /* Hidden cell where the action buttons are measured once. */
23143
23175
  .mx-data-grid__measure {
23144
23176
  position: absolute;
package/docs/accordion.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Accordion
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > AppMenu · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Display · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Display · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Display · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.11
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
 
@@ -300,7 +300,7 @@ export default function DropDown() {
300
300
 
301
301
  ## Localization
302
302
 
303
- The only string a button displays on its own is the name of a split button's arrow. It comes from `uiLocale.strings`, which follows the kit's language, `uiLocale.locale` (English and Turkish are included) and can be set to any `UiStrings`. Every button updates immediately. The set is used as provided, so to change one string, assign a new set: `uiLocale.strings = { ...uiLocale.strings, moreOptions: 'Mehr' }`. Changing a string inside the existing set has no effect.
303
+ The only string a button displays on its own is the name of a split button's arrow. It comes from `uiLocale.strings`, which starts from the page's `lang` (English and Turkish are included) and can be set to any `UiStrings`. Every button updates immediately. The set is used as provided, so to change one string, assign a new set: `uiLocale.strings = { ...uiLocale.strings, moreOptions: 'Mehr' }`. Changing a string inside the existing set has no effect.
304
304
 
305
305
  ```tsx
306
306
  import { reactive } from '@motifx/core';
@@ -1,6 +1,6 @@
1
1
  # ButtonGroup
2
2
 
3
- > Buttons · @motifx-community/ui 0.1.0-beta.8
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.11
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,8 +1,8 @@
1
1
  # Buttons
2
2
 
3
- > Buttons · @motifx-community/ui 0.1.0-beta.8
3
+ > Buttons · @motifx-community/ui 0.1.0-beta.11
4
4
 
5
- Buttons start commands. The group covers single buttons, groups of them, toolbars that keep commands in reach at any width, application and context menus, and a floating button for the main action of a screen.
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
 
7
7
  ## Commands of an editor
8
8
 
@@ -131,9 +131,7 @@ Each component has its own page with its examples and its full API.
131
131
  | --- | --- |
132
132
  | `[Button](button.md)` | One command, with an icon, a menu or a split part; a toggle; a busy state while the command runs. |
133
133
  | `[ButtonGroup](buttongroup.md)` | A few related buttons side by side: one or several pressed, or plain actions. |
134
- | `[Toolbar](toolbar.md)` | A row of commands that moves what does not fit into a menu. |
135
134
  | `[SpeedDial](speeddial.md)` | A floating button for the main action, opening related actions in a line or a circle. |
136
- | `[MenuBar and ContextMenu](menus.md)` | The menus of an application and the menu of an element, with shortcuts, check items and access keys. |
137
135
 
138
136
  ## Choosing a component
139
137
 
@@ -145,7 +143,7 @@ Several components can do the same job; this table points to the one that reads
145
143
  | `Show a choice of a few options at once` | [ButtonGroup](buttongroup.md), or [RadioGroup](radiogroup.md) in a form |
146
144
  | `Keep many commands in one bar at any width` | [Toolbar](toolbar.md) |
147
145
  | `Offer the commands of a whole application` | [MenuBar](menus.md) |
148
- | `Act on what is under the pointer` | [ContextMenu](menus.md) |
146
+ | `Act on what is under the pointer` | [ContextMenu](menus-context.md) |
149
147
  | `Give a screen one main action, on a phone too` | [SpeedDial](speeddial.md) |
150
148
 
151
149
  ## What they share
package/docs/calendar.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Calendar
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.8
3
+ > Editors · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Display · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Charts · @motifx-community/ui 0.1.0-beta.11
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/checkbox.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CheckBox
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.8
3
+ > Choice · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Display · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Choice · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Editors · @motifx-community/ui 0.1.0-beta.11
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.8
3
+ > Choice · @motifx-community/ui 0.1.0-beta.11
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