@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.
- package/CHANGELOG.md +59 -0
- package/dist/components/combobox/ComboBox.d.ts +5 -0
- package/dist/components/combobox/combo-box-props.d.ts +6 -0
- package/dist/components/datagrid/DataGrid.d.ts +4 -1
- package/dist/components/datagrid/grid-lookup.d.ts +8 -0
- package/dist/components/datagrid/model/FilterModel.d.ts +5 -0
- package/dist/components/datagrid/model/LookupTexts.d.ts +2 -0
- package/dist/components/datagrid/model/LookupValues.d.ts +4 -0
- package/dist/components/datagrid/view/ActionWidths.d.ts +13 -3
- package/dist/components/datagrid/view/GridRow.d.ts +1 -1
- package/dist/components/dropdown/DropDown.d.ts +5 -0
- package/dist/components/dropdown/drop-down-props.d.ts +6 -0
- package/dist/components/filterbuilder/filter-builder-lookup.d.ts +3 -0
- package/dist/components/listbox/ListBox.d.ts +5 -0
- package/dist/components/listbox/list-box-props.d.ts +6 -0
- package/dist/components/listbox/select-all-state.d.ts +1 -1
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +1 -0
- package/dist/components/tagbox/TagBox.d.ts +5 -0
- package/dist/components/tagbox/tag-box-props.d.ts +6 -0
- package/dist/components/toolbar/Toolbar.d.ts +10 -2
- package/dist/core/measure/after-frame.d.ts +7 -0
- package/dist/core/measure/drawn.d.ts +7 -0
- package/dist/core/measure/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +571 -139
- package/dist/index.js.map +1 -1
- package/dist/parts/data/DataItems.d.ts +24 -0
- package/dist/parts/data/KeyedItems.d.ts +31 -5
- package/dist/parts/data/normalize-key.d.ts +7 -0
- package/dist/styles.css +32 -0
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +2 -2
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +3 -5
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +1 -1
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/commands.md +126 -0
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +3 -3
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +107 -1
- package/docs/datagrid-filtering.md +11 -3
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +2 -2
- package/docs/datagrid-lookups.md +1 -1
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +1 -1
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +3 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +2 -2
- package/docs/keyboard.md +5 -3
- package/docs/language.md +2 -2
- package/docs/layout.md +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +2 -2
- package/docs/lookup.md +1 -1
- package/docs/menus-api.md +142 -0
- package/docs/menus-context.md +126 -0
- package/docs/menus-customization.md +138 -0
- package/docs/menus-merging.md +208 -0
- package/docs/menus-programmatic.md +74 -0
- package/docs/menus.md +22 -179
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +7 -2
- package/docs/numberbox.md +3 -3
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +1 -1
- package/docs/progress.md +3 -3
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +1 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +1 -1
- package/docs/ribbonmenu-display.md +1 -1
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +1 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/shortcuteditor.md +248 -0
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +3 -3
- package/docs/sortable.md +1 -1
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +1 -1
- package/docs/textbox.md +1 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +13 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +1 -1
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +3774 -2692
- package/llms.txt +16 -6
- package/package.json +4 -4
package/docs/commands.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Commands and shortcuts
|
|
2
|
+
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.11
|
|
4
|
+
|
|
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
|
+
|
|
7
|
+
## Defining commands
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { commands } from '@motifx-community/ui';
|
|
11
|
+
|
|
12
|
+
commands.add({ key: 'save', text: '&Save', shortcut: 'Mod+S', category: 'File', enabled: () => doc.dirty, run: () => doc.save() });
|
|
13
|
+
commands.add({ key: 'bold', text: '&Bold', shortcut: 'Mod+B', scope: editor, checked: () => editor.bold, run: () => editor.toggleBold() });
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`commands.add` adds a command and returns what takes it away. Without `scope` it is app-wide; with a component as `scope` it holds, and its keys work, while focus is inside that component, and it goes away when the component is disposed. Each document can add its own `save`; the one that holds is the one of the item’s place, else of the place that holds focus.
|
|
17
|
+
|
|
18
|
+
## Items that name commands
|
|
19
|
+
|
|
20
|
+
An item says `command: 'save'`, and what it is not given comes from the command: its text, icon, hint, the keys shown at the end of a menu item, its state and its action. The item’s own value wins, so an item can show another text for the same command.
|
|
21
|
+
|
|
22
|
+
| Item | In | From the command |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `MenuItem` | `MenuBar`, `ContextMenu`, the menu of a `Button`, `ActionSheet` | Text, icon, hint, keys at the end, enabled, checked, visible, and the action. |
|
|
25
|
+
| `ToolbarItem` | `Toolbar` | Text, icon, hint, enabled, visible, the action; a toggle is pressed as the command is checked. |
|
|
26
|
+
| `RibbonCommand` | `RibbonMenu` | Text, glyph or icon, hint, enabled, visible, the action; a toggle is pressed as the command is checked. |
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { reactive } from '@motifx/core';
|
|
30
|
+
import { MenuBar, Stack, Toolbar, commands, shortcuts, type Keymap } from '@motifx-community/ui';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Commands defined once, limited to this example: the menu bar and the toolbar name them, their keys run them, and the
|
|
34
|
+
* customizer's keyboard page gives them other keys.
|
|
35
|
+
*/
|
|
36
|
+
export default function SharedCommands() {
|
|
37
|
+
const s = reactive({ told: 'Nothing yet.', bold: false, keymap: {} as Keymap });
|
|
38
|
+
const run = (what: string) => () => (s.told = what);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Stack
|
|
42
|
+
gap="md"
|
|
43
|
+
ref={(host: Stack) => {
|
|
44
|
+
// Limited to this example (`scope`), and taken away with it.
|
|
45
|
+
commands.add({ key: 'new', text: '&New', shortcut: 'Alt+N', category: 'File', scope: host, run: run('New') });
|
|
46
|
+
commands.add({ key: 'save', text: '&Save', shortcut: 'Mod+S', category: 'File', scope: host, run: run('Save') });
|
|
47
|
+
commands.add({ key: 'print', text: '&Print', shortcut: 'Mod+P', category: 'File', scope: host, run: run('Print') });
|
|
48
|
+
commands.add({ key: 'bold', text: '&Bold', shortcut: 'Mod+B', category: 'Format', scope: host, checked: () => s.bold, run: () => (s.bold = !s.bold) });
|
|
49
|
+
const listening = shortcuts.onKeymapChanged((e) => (s.keymap = e.keymap));
|
|
50
|
+
host.motif.setDisposable(() => listening.dispose());
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<MenuBar
|
|
54
|
+
label="Editor"
|
|
55
|
+
customizable
|
|
56
|
+
items={[
|
|
57
|
+
{ key: 'file', text: '&File', items: [{ command: 'new' }, { command: 'save' }, { command: 'print', beginGroup: true }] },
|
|
58
|
+
{ key: 'format', text: 'F&ormat', items: [{ command: 'bold' }] },
|
|
59
|
+
]}
|
|
60
|
+
/>
|
|
61
|
+
<Toolbar label="Commands" items={[{ command: 'save' }, { command: 'print' }, { type: 'separator' }, { type: 'toggle', command: 'bold' }]} />
|
|
62
|
+
<p tabIndex={0} class="cmd-page">Click here, then press the keys: they work while focus is in this example.</p>
|
|
63
|
+
<output class="cmd-told">{() => `${s.told}${s.bold ? ' · bold' : ''}`}</output>
|
|
64
|
+
<pre class="cmd-keymap">{() => JSON.stringify(s.keymap)}</pre>
|
|
65
|
+
</Stack>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Keys
|
|
71
|
+
|
|
72
|
+
A command’s `shortcut` runs it, by the rules of [shortcuts](keyboard.md#shortcuts). The keys shown in a menu read as they do on the platform: `Mod+Shift+S` shows Ctrl+Shift+S, and ⇧⌘S on Apple platforms (`shortcutText`). A menu item’s own `shortcut` only changes the text shown.
|
|
73
|
+
|
|
74
|
+
## The user’s keys
|
|
75
|
+
|
|
76
|
+
`shortcuts.keymap` holds the keys the user assigned, by the name of the shortcut: the key of a command, or the name given to `addShortcut`. They replace the shortcut’s own keys, and an empty list leaves it without keys. It is one plain object: `onKeymapChanged` reports it to save, and assigning it back restores the keys. How it is saved is up to the app.
|
|
77
|
+
|
|
78
|
+
[ShortcutEditor](shortcuteditor.md) is the list in which the user changes them: it shows every shortcut with a name, says which shortcut already uses the keys pressed, and assigns them. The customizer of a `MenuBar` shows it on its Keyboard page.
|
|
79
|
+
|
|
80
|
+
## Conflicts
|
|
81
|
+
|
|
82
|
+
Every shortcut is in `shortcuts.list()`: the commands’ keys, the app’s own (`addShortcut` with `name`) and those of the kit’s components, such as the keys of `TabDocumentManager`. A shortcut that takes keys already taken in the same place is said on the console and by `onConflict`; the first one added runs, and the innermost scope still comes first. `conflicts()` also finds keys that start longer keys and Alt shortcuts that take an access key of the page.
|
|
83
|
+
|
|
84
|
+
## API reference
|
|
85
|
+
|
|
86
|
+
### Command
|
|
87
|
+
|
|
88
|
+
| Field | Type | Description |
|
|
89
|
+
| --- | --- | --- |
|
|
90
|
+
| `key` | `string` | Names the command. Several commands may share a key in different scopes, such as `save` in each document. |
|
|
91
|
+
| `text, hint` | `Bind<string>` | The text (`&` marks the access key) and a tooltip. |
|
|
92
|
+
| `icon, glyph` | `Bind<IconSource>`, `Bind<string>` | An image address or a component (as a function, so that a copy in a menu builds its own), or the name of a glyph for the items that take one. |
|
|
93
|
+
| `shortcut` | `string \| string[]` | The keys that run it, as `addShortcut` reads them: `Mod+S`, or several. |
|
|
94
|
+
| `enabled, checked, visible` | `Bind<boolean>` | The state of the items that name it. Off, its keys do nothing. |
|
|
95
|
+
| `category` | `Bind<string>` | A heading lists group commands under, such as `File`. |
|
|
96
|
+
| `scope` | `ComponentBase \| null` | Limits the command and its keys to times when focus is inside this component. Without it, it is app-wide. |
|
|
97
|
+
| `inEditable` | `boolean` | Its keys work in text fields too. |
|
|
98
|
+
| `run` | `(e: CommandRunEventArgs) => void` | Runs it, with the item that named it, its component and the click or the key press. |
|
|
99
|
+
|
|
100
|
+
### commands
|
|
101
|
+
|
|
102
|
+
| Member | Returns | Description |
|
|
103
|
+
| --- | --- | --- |
|
|
104
|
+
| `add(command)` | `() => void` | Adds a command with its keys; returns what takes it away. |
|
|
105
|
+
| `get(key, from?)` | `Command \| null` | The command that holds at `from` (a component, such as the menu or toolbar of the item): of the scope that holds it, else of the one that holds focus, else the app-wide one. |
|
|
106
|
+
| `run(key, from?, event?)` | `boolean` | Runs it; `false` when there is none or it is off. |
|
|
107
|
+
| `keysOf(command)` | `string[]` | Its keys: the ones the user assigned to its key, else its own `shortcut`. |
|
|
108
|
+
| `list(), has(key)` | | Every command, in the order they came. |
|
|
109
|
+
| `onChanged` | `CommandsChangedEventArgs` | A command was added or taken away. |
|
|
110
|
+
|
|
111
|
+
### shortcuts
|
|
112
|
+
|
|
113
|
+
| Member | Returns | Description |
|
|
114
|
+
| --- | --- | --- |
|
|
115
|
+
| `list()` | `ShortcutInfo[]` | Every shortcut working now: the commands’ keys, the app’s own (`addShortcut`) and those of the kit’s components, each with its keys, its own keys, name, text, category, scope and whether the user can change it. |
|
|
116
|
+
| `conflicts()` | `ShortcutConflict[]` | The shortcuts in each other’s way: `same` keys in the same place, keys that `prefix` longer keys, an Alt shortcut that takes an `accessKey` of the page. |
|
|
117
|
+
| `takenBy(keys, scope?)` | `ShortcutInfo[]` | The shortcuts that keys would get in the way of. |
|
|
118
|
+
| `keymap` | `Keymap` | The keys the user assigned, by the name of the shortcut: a plain object to save and restore; `null` clears them. |
|
|
119
|
+
| `assign(name, keys)` | `void` | Assigns the user’s keys to the shortcuts with the name (an empty list removes their keys), or restores their own keys with `null`. |
|
|
120
|
+
| `keysOf(name, defaults?), isAssigned(name)` | | The keys of the shortcuts with the name, and whether the user assigned them. |
|
|
121
|
+
| `warnings` | `boolean` | Says on the console when a shortcut added gets in another’s way. The default is `true`. |
|
|
122
|
+
| `onChanged, onConflict, onKeymapChanged` | | A shortcut was added or removed, or its keys changed; one added gets in the way of another; the user’s keys changed. |
|
|
123
|
+
|
|
124
|
+
## Feedback
|
|
125
|
+
|
|
126
|
+
Loading issues…
|
package/docs/control.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Control
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/datagrid-api.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# DataGrid: API reference
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.11
|
|
4
4
|
|
|
5
5
|
## Columns
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Up to 0.1.0-beta.8, the root of the content that `cell`, `groupCell`, `headerCell`, a band's `headerCell` and the detail `template` return must not carry `x-display` or `x-wait`, and must not be a conditional or a fragment: such content can leave its cell when it is shown again. Put it inside a wrapper element, for example `<span hidden={() => !ctx.row}><Button … /></span>`. For buttons on each row, use the grid's `actions` with a `visible` function per row.
|
|
8
8
|
|
|
9
9
|
| Field | Description |
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| `field, title` | The value's key (a dotted path reads a nested value) and the header text (`Bind<string>`). |
|
|
12
|
-
| `type` | `text`, `number`, `date`, `boolean`, `list`. Determines the alignment, format, sorting and editor (`TextBox`, `NumberBox`, `DateBox`, `CheckBox`, `DropDown`). |
|
|
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), initially hidden, and the alignment. |
|
|
15
15
|
| `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. |
|
package/docs/datagrid-bands.md
CHANGED
package/docs/datagrid-drag.md
CHANGED
package/docs/datagrid-editing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Editing
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.11
|
|
4
4
|
|
|
5
5
|
## Editing and save modes
|
|
6
6
|
|
|
@@ -66,6 +66,34 @@ export interface Order {
|
|
|
66
66
|
}
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
## Columns with several values
|
|
70
|
+
|
|
71
|
+
With `multiple: true`, a cell holds a list of values (an array) of the column's `type`: `list` choices, `lookup` keys, numbers or texts. It shows their texts joined the way the locale writes lists (“Red, Navy”) and is edited with a `TagBox`. A pick adds or removes a value and leaves the list open, and a text or number column takes typed texts as values. Enter on the empty input, Tab or leaving the cell keeps the values; Escape closes the list, then clears the typed text, then cancels the edit. An empty list is no value, so `required` asks for at least one.
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
/** A customer, as stored by a second sample service. */
|
|
75
|
+
export interface Customer {
|
|
76
|
+
id: number;
|
|
77
|
+
name: string;
|
|
78
|
+
city: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const FIRST = ['Ada', 'Grace', 'Alan', 'Cahit', 'Katherine', 'Edsger', 'Barbara', 'Donald', 'İlhan', 'Margaret', 'Feza', 'Ali Nesin'];
|
|
82
|
+
const LAST = ['Lovelace', 'Hopper', 'Turing', 'Arf', 'Johnson', 'Dijkstra', 'Liskov', 'Knuth', 'Koman', 'Hamilton', 'Gürsey', 'Yılmaz'];
|
|
83
|
+
const CITIES = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Konya', 'Trabzon'];
|
|
84
|
+
|
|
85
|
+
/** `n` sample customers, the same ones every time. */
|
|
86
|
+
export function makeCustomers(n: number): Customer[] {
|
|
87
|
+
return Array.from({ length: n }, (_, i) => ({
|
|
88
|
+
id: i + 1,
|
|
89
|
+
name: `${FIRST[i % FIRST.length]} ${LAST[Math.floor(i / FIRST.length) % LAST.length]} ${Math.floor(i / (FIRST.length * LAST.length)) + 1}`,
|
|
90
|
+
city: CITIES[(i * 5) % CITIES.length],
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
A filter condition holds when one of the values passes it, and with `<>` when none of them does. The header filter lists the values one by one, a row counted once for each, and the search finds the text of any value. Rows sort and group by the joined texts, copying and exporting write them, and pasted text is split at the locale's separator. With an `ODataAdapter`, name the fields in its `collections` option so that their conditions are written with `any()`.
|
|
96
|
+
|
|
69
97
|
## Row actions
|
|
70
98
|
|
|
71
99
|
`actions` defines the buttons for each row, as a list or as a function of the row and its state (`isNew`, `isEditing`, `isDirty`, `isSaving`, `hasError`, `isRemoved`, `isSelected`). When a value read by the function changes, the row's buttons update. Built-in actions are referenced by name. Buttons that do not fit in the column move to the “more” menu, and those listed first stay visible. The column can be at the start or the end, pinned to its edge or scrolling with the rows.
|
|
@@ -399,6 +427,84 @@ export default function NewRows() {
|
|
|
399
427
|
}
|
|
400
428
|
```
|
|
401
429
|
|
|
430
|
+
`MultipleValues.tsx`
|
|
431
|
+
|
|
432
|
+
```tsx
|
|
433
|
+
import { DataGrid, type GridColumn } from '@motifx-community/ui';
|
|
434
|
+
import { makeCustomers } from './customers';
|
|
435
|
+
|
|
436
|
+
type Product = { id: number; name: string; colors: string[]; tags: string[]; sizes: number[]; buyers: number[] };
|
|
437
|
+
|
|
438
|
+
const COLORS: { value: string; label: string }[] = [
|
|
439
|
+
{ value: 'black', label: 'Black' },
|
|
440
|
+
{ value: 'white', label: 'White' },
|
|
441
|
+
{ value: 'red', label: 'Red' },
|
|
442
|
+
{ value: 'navy', label: 'Navy' },
|
|
443
|
+
{ value: 'olive', label: 'Olive' },
|
|
444
|
+
];
|
|
445
|
+
const TAGS = ['new', 'sale', 'organic', 'limited', 'bestseller'];
|
|
446
|
+
const NAMES = ['T-shirt', 'Hoodie', 'Jacket', 'Sneakers', 'Cap', 'Scarf', 'Jeans', 'Shirt', 'Socks', 'Coat'];
|
|
447
|
+
|
|
448
|
+
/** Products whose cells hold several values: colors from a list, free tags, sizes, and buyers from another source. */
|
|
449
|
+
export default function MultipleValues() {
|
|
450
|
+
const buyers = makeCustomers(40);
|
|
451
|
+
const products: Product[] = Array.from({ length: 60 }, (_, i) => ({
|
|
452
|
+
id: i + 1,
|
|
453
|
+
name: `${NAMES[i % NAMES.length]} ${Math.floor(i / NAMES.length) + 1}`,
|
|
454
|
+
colors: COLORS.filter((_, c) => (i + c) % 3 === 0).map((o) => o.value),
|
|
455
|
+
tags: TAGS.filter((_, t) => (i * 7 + t) % 4 === 0),
|
|
456
|
+
sizes: i % 5 === 0 ? [] : [36 + (i % 3) * 2, 42 + (i % 4) * 2],
|
|
457
|
+
// None, one or two buyers.
|
|
458
|
+
buyers: [((i * 7) % 40) + 1, ((i * 13) % 40) + 1].slice(0, i % 3),
|
|
459
|
+
}));
|
|
460
|
+
const columns: GridColumn<Product>[] = [
|
|
461
|
+
{ field: 'id', title: 'No', type: 'number', width: 70, editable: false },
|
|
462
|
+
{ field: 'name', title: 'Product', width: 140 },
|
|
463
|
+
{ field: 'colors', title: 'Colors', type: 'list', options: COLORS, multiple: true, width: 180, required: true },
|
|
464
|
+
{ field: 'tags', title: 'Tags', multiple: true, width: 180 },
|
|
465
|
+
{ field: 'sizes', title: 'Sizes', type: 'number', multiple: true, width: 120 },
|
|
466
|
+
{ field: 'buyers', title: 'Buyers', multiple: true, flex: 1, width: 240, lookup: { dataSource: buyers, valueField: 'id', textField: 'name' } },
|
|
467
|
+
];
|
|
468
|
+
|
|
469
|
+
return (
|
|
470
|
+
<DataGrid
|
|
471
|
+
style="block-size: 28rem"
|
|
472
|
+
rows={products}
|
|
473
|
+
rowKey="id"
|
|
474
|
+
columns={columns}
|
|
475
|
+
label="Products with several values in a cell"
|
|
476
|
+
locale="en"
|
|
477
|
+
saveMode="batch"
|
|
478
|
+
settings={{ editable: true, filterRow: true, headerFilter: true, searchPanel: true, filterDelay: 200 }}
|
|
479
|
+
/>
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
`customers.ts`
|
|
485
|
+
|
|
486
|
+
```tsx
|
|
487
|
+
/** A customer, as stored by a second sample service. */
|
|
488
|
+
export interface Customer {
|
|
489
|
+
id: number;
|
|
490
|
+
name: string;
|
|
491
|
+
city: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
const FIRST = ['Ada', 'Grace', 'Alan', 'Cahit', 'Katherine', 'Edsger', 'Barbara', 'Donald', 'İlhan', 'Margaret', 'Feza', 'Ali Nesin'];
|
|
495
|
+
const LAST = ['Lovelace', 'Hopper', 'Turing', 'Arf', 'Johnson', 'Dijkstra', 'Liskov', 'Knuth', 'Koman', 'Hamilton', 'Gürsey', 'Yılmaz'];
|
|
496
|
+
const CITIES = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Konya', 'Trabzon'];
|
|
497
|
+
|
|
498
|
+
/** `n` sample customers, the same ones every time. */
|
|
499
|
+
export function makeCustomers(n: number): Customer[] {
|
|
500
|
+
return Array.from({ length: n }, (_, i) => ({
|
|
501
|
+
id: i + 1,
|
|
502
|
+
name: `${FIRST[i % FIRST.length]} ${LAST[Math.floor(i / FIRST.length) % LAST.length]} ${Math.floor(i / (FIRST.length * LAST.length)) + 1}`,
|
|
503
|
+
city: CITIES[(i * 5) % CITIES.length],
|
|
504
|
+
}));
|
|
505
|
+
}
|
|
506
|
+
```
|
|
507
|
+
|
|
402
508
|
`RowActions.tsx`
|
|
403
509
|
|
|
404
510
|
```tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Filtering and search
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.11
|
|
4
4
|
|
|
5
5
|
## Filters
|
|
6
6
|
|
|
@@ -96,7 +96,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
96
96
|
|
|
97
97
|
## Ranges, dates and custom entries
|
|
98
98
|
|
|
99
|
-
A column's `headerFilterInterval` groups its header filter. A number column uses ranges of that size (“0 – 250”, “250 – 500”), and several sizes such as `[1000, 100]` create a tree. A date column uses a tree of years, months and days, down to the part it names (`'year'`, `'quarter'`, `'month'`, `'day'`, `'hour'`, `'minute'`, `'second'`), and `null` lists individual dates. Dates are a tree by default, down to the day (`headerFilterDateInterval`). The tree is the kit's `TreeView` with check boxes and “Select all”. A checked month is stored as `'2026/3'` and a year as `2026`, and each filters with `>=` its first moment and `<` the next one's, so a server can run it too. Counts are calculated in the browser from the column's distinct values, whether counted in memory, grouped by an adapter that supports grouping, or from `loadValues`.
|
|
99
|
+
A column's `headerFilterInterval` groups its header filter. A number column uses ranges of that size (“0 – 250”, “250 – 500”), and several sizes such as `[1000, 100]` create a tree. A date column uses a tree of years, months and days, down to the part it names (`'year'`, `'quarter'`, `'month'`, `'day'`, `'hour'`, `'minute'`, `'second'`), and `null` lists individual dates. Dates are a tree by default, down to the day (`headerFilterDateInterval`). The tree is the kit's `TreeView` with check boxes and “Select all”. A checked month is stored as `'2026/3'` and a year as `2026`, and each filters with `>=` its first moment and `<` the next one's, so a server can run it too. Counts are calculated in the browser from the column's distinct values, whether counted in memory, grouped by an adapter that supports grouping, or from `loadValues`. A `datetime` column's tree goes down to the hour by default, and its filter row compares to the minute; a `date` column's compares by the day.
|
|
100
100
|
|
|
101
101
|
`headerFilterItems` provides custom header filter entries, as `{ text, value }`, where a value is a value or a filter expression (`data.where('city', 'in', […])`). A function receives the other filters and `values()`, the entries it would list, so that you can add to them. `filterValues` and `filterType` (both can be tracked functions) set the contents of the header filter. `'exclude'` leaves those values out, so values added later appear. In the list, selecting every value and then deselecting some leaves those out in the same way.
|
|
102
102
|
|
|
@@ -418,6 +418,12 @@ import { columns, makeOrders } from './orders';
|
|
|
418
418
|
|
|
419
419
|
const COAST = ['Antalya', 'İstanbul', 'İzmir', 'Trabzon'];
|
|
420
420
|
|
|
421
|
+
/** An order with the moment it was placed: its day and a time of that day. */
|
|
422
|
+
type Placed = Order & { placed: string };
|
|
423
|
+
|
|
424
|
+
const pad = (n: number) => String(n).padStart(2, '0');
|
|
425
|
+
const withTimes = (orders: Order[]): Placed[] => orders.map((o) => ({ ...o, placed: `${o.date}T${pad(8 + ((o.id * 7) % 10))}:${pad((o.id * 13) % 60)}:00` }));
|
|
426
|
+
|
|
421
427
|
/** The order columns with header filters: amounts in ranges, dates in a tree, cities with custom entries, and excluded statuses. */
|
|
422
428
|
const intervalColumns: GridColumn<Order>[] = columns.map((c) => {
|
|
423
429
|
switch (c.field) {
|
|
@@ -444,6 +450,8 @@ const intervalColumns: GridColumn<Order>[] = columns.map((c) => {
|
|
|
444
450
|
return c;
|
|
445
451
|
}
|
|
446
452
|
});
|
|
453
|
+
// A date and time: shown with its time, its header filter down to the hour, its filter row to the minute.
|
|
454
|
+
intervalColumns.splice(intervalColumns.findIndex((c) => c.field === 'date') + 1, 0, { field: 'placed', title: 'Placed', type: 'datetime', width: 160, headerFilter: true, filterRow: true });
|
|
447
455
|
|
|
448
456
|
/** The header filter with ranges of amounts, a tree of dates, custom entries and excluded values. */
|
|
449
457
|
export default function HeaderFilterIntervals() {
|
|
@@ -460,7 +468,7 @@ export default function HeaderFilterIntervals() {
|
|
|
460
468
|
<DataGrid
|
|
461
469
|
class="dg-intervals"
|
|
462
470
|
style="block-size: 30rem"
|
|
463
|
-
rows={makeOrders(300)}
|
|
471
|
+
rows={withTimes(makeOrders(300))}
|
|
464
472
|
rowKey="id"
|
|
465
473
|
columns={intervalColumns}
|
|
466
474
|
label="Orders filtered by ranges and dates"
|
package/docs/datagrid-forms.md
CHANGED
package/docs/datagrid-layout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Layout and events
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.11
|
|
4
4
|
|
|
5
5
|
## Toolbar
|
|
6
6
|
|
|
@@ -151,7 +151,7 @@ export interface Order {
|
|
|
151
151
|
| `pageSizeSelector, allowedPageSizes` | `false`, `'auto'` | The page sizes in the pager, and the sizes it offers (numbers and `all`, where `auto` is half, once and twice the page size). |
|
|
152
152
|
| `pageKeys` | `'page'` | In paged mode, PageUp and PageDown move to the previous and next page, or move a screen of rows (`rows`). |
|
|
153
153
|
| `headerFilterPageSize, headerFilterRows` | `100`, `8` | The values the header filter loads per request, and the height of its list or tree in rows. |
|
|
154
|
-
| `headerFilterDateInterval` | `'day'` | The deepest level of the year → month → day tree in a date column's header filter. `null` lists every date. A column's `headerFilterInterval` takes precedence. |
|
|
154
|
+
| `headerFilterDateInterval` | `'day'` | The deepest level of the year → month → day tree in a date column's header filter. `null` lists every date. A column's `headerFilterInterval` takes precedence. A `datetime` column goes down to the hour at least. |
|
|
155
155
|
| `exportPageSize` | `1000` | The rows an export requests from a server per request. `exportCsv({ pageSize })` takes precedence. |
|
|
156
156
|
| `trueTexts, falseTexts` | `['true', '1', 'x', '✓', '✔']`, `['false', '0', '']` | Pasted text read as yes and as no in a yes/no column, in addition to the `yes` and `no` strings. A column can set its own values. |
|
|
157
157
|
| `editKeys, clearKeys` | `['Enter', 'F2']`, `['Delete']` | The keys that open the active cell's editor, and the keys that clear it (`KeyboardEvent.key` values). |
|
package/docs/datagrid-lookups.md
CHANGED
package/docs/datagrid.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/daterangebox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DateRangeBox
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/display.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Display
|
|
2
2
|
|
|
3
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Choice · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
|
@@ -119,6 +119,7 @@ Each component has its own page with its examples and its full API.
|
|
|
119
119
|
| `[Rating](rating.md)` | A score in stars or other marks. |
|
|
120
120
|
| `[ValidationSummary](validationsummary.md)` | The invalid fields of a group, with links to them. |
|
|
121
121
|
| `[FileUploader](fileuploader.md)` | Files dropped or chosen, with limits, progress and uploading in chunks. |
|
|
122
|
+
| `[ShortcutEditor](shortcuteditor.md)` | The app’s keyboard shortcuts, for the user to assign other keys. |
|
|
122
123
|
|
|
123
124
|
## Choosing a component
|
|
124
125
|
|
|
@@ -135,6 +136,7 @@ Several components can do the same job; this table points to the one that reads
|
|
|
135
136
|
| `Show a month all the time` | [Calendar](calendar.md) |
|
|
136
137
|
| `Take a code sent by message` | [OtpInput](otpinput.md) |
|
|
137
138
|
| `Take files` | [FileUploader](fileuploader.md) |
|
|
139
|
+
| `Let the user change keyboard shortcuts` | [ShortcutEditor](shortcuteditor.md) |
|
|
138
140
|
|
|
139
141
|
## What they share
|
|
140
142
|
|
package/docs/feedback.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Feedback
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/fileuploader.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FileUploader
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/filterbuilder.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FilterBuilder
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/formlayout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FormLayout
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/foundations.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Foundations
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.11
|
|
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.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/gauge-base.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Base value
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/gauge-circular.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Circular
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/gauge-dashboards.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Dashboards
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.11
|
|
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
|
|
package/docs/gauge-linear.md
CHANGED
package/docs/gauge-markers.md
CHANGED