@motifx-community/ui 0.1.0-beta.12 → 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.
- package/CHANGELOG.md +35 -0
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -1
- package/dist/components/dropdown/drop-down-props.d.ts +5 -2
- package/dist/components/listbox/item-template.d.ts +4 -0
- package/dist/components/tabdocs/DocumentTab.d.ts +0 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +0 -1
- package/dist/components/treeview/TreeView.d.ts +8 -4
- package/dist/components/treeview/tree-view-item-template.d.ts +4 -0
- package/dist/core/show-icon.d.ts +3 -3
- package/dist/index.js +99 -176
- package/dist/index.js.map +1 -1
- package/dist/parts/list/OptionList.d.ts +4 -3
- package/dist/parts/list/option-parts.d.ts +1 -1
- package/dist/styles.css +43 -24
- 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 +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- 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 +2 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +1 -1
- 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 +1 -1
- package/docs/datagrid-filtering.md +1 -1
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +1 -1
- package/docs/datagrid-lookups.md +4 -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 +4 -3
- package/docs/editors.md +1 -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 +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +1 -1
- package/docs/listbox.md +4 -3
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/menus-api.md +1 -1
- package/docs/menus-context.md +1 -1
- package/docs/menus-customization.md +1 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +4 -3
- 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 +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +3 -3
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +174 -167
- package/llms.txt +1 -1
- package/package.json +4 -4
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.13
|
|
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.13
|
|
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
package/docs/datagrid-bands.md
CHANGED
package/docs/datagrid-drag.md
CHANGED
package/docs/datagrid-editing.md
CHANGED
package/docs/datagrid-forms.md
CHANGED
package/docs/datagrid-layout.md
CHANGED
package/docs/datagrid-lookups.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Lookup columns
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
## Lookup columns
|
|
6
6
|
|
|
@@ -80,10 +80,13 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
80
80
|
}
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
+
Which item a key stands for is the source's decision, as its database compares keys: one that disregards trailing spaces (a `char(n)` column) matches `'A '` to `'A'`, one that disregards case matches an ID written in capitals, and a numeric column reads `'007'` as `7`. The grid asks for the keys of a moment together; when the source returns items no key matched exactly, or items that differ from a key only in such a way, it asks for those keys one by one, and what the source returns for a key is that key's item. A key the source does not have stays a missing key, with no request more. The cell, the editor (its list marks the item), the filter row and the header filter follow the same answer; keys matched to one item are one entry in the lists, which filters by all of them. The row's value is never changed: the editor writes another value only when another item is picked. `normalizeKey` states the rule instead, for an in-memory array, or to spare those requests.
|
|
84
|
+
|
|
83
85
|
| Lookup field | Description |
|
|
84
86
|
| --- | --- |
|
|
85
87
|
| `dataSource` | `Bind<DataSource \| unknown[]>`. The items, searched and resolved on their own service, or an in-memory array. |
|
|
86
88
|
| `valueField, textField` | The field that matches the cell value (by default, the source's key, or the value itself in an array of plain values), and the displayed text as a field or `(item) => text` (by default, the value). |
|
|
89
|
+
| `normalizeKey` | `(key) => unknown`. The rule of keys a source compares its own way: keys equal once normalized are one key, such as `(k) => (typeof k === 'string' ? k.trimEnd() : k)` for codes a database pads with spaces. Without it, such keys are still matched (see above); give it to spare those requests, and for an in-memory array, where no source decides. Use one function for a source, so every use of it shares one cache. |
|
|
87
90
|
| `searchFields` | The fields searched by the editor and text searches. By default, `textField` when it is a field. |
|
|
88
91
|
| `filter` | `(row, context) => FilterExpression`. Narrows the items for a row (for cascading lists, `context.getValue('province')` returns the entered value, otherwise the row's). `row` is `null` for filter lists. |
|
|
89
92
|
| `allowClearing` | `Bind<boolean>`. Adds a clear button to the editor. The default is `false`. |
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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
|
|
|
@@ -21,7 +21,7 @@ export const cities = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Kon
|
|
|
21
21
|
|
|
22
22
|
## Objects, groups, templates
|
|
23
23
|
|
|
24
|
-
Custom objects are read through `textField` and `valueField`, each a property name or a function. `groupField` places options under headers, `enabledField` disables specific options, and a template customizes how an option is drawn.
|
|
24
|
+
Custom objects are read through `textField` and `valueField`, each a property name or a function. `groupField` places options under headers, `enabledField` disables specific options, and a template customizes how an option is drawn. A template draws into a `host` of its own, which goes when the option or the value is drawn again or the box goes, with everything the template added to it. The cleanup a template can return is for what lives outside the host, such as a subscription or a timer: it runs as the host goes, once what the host held is gone.
|
|
25
25
|
|
|
26
26
|
```tsx
|
|
27
27
|
import { reactive, type ComponentBase } from '@motifx/core';
|
|
@@ -206,12 +206,13 @@ export default function Localization() {
|
|
|
206
206
|
| `valueText` | `Bind<string>` | `''` | The display text for the value while its item is requested from `dataSource`, shown immediately instead of waiting. Use it when a record already has the name: `valueText={() => order.customerName}`. |
|
|
207
207
|
| `searchDelay` | `Bind<number>` | `250` with a data source, otherwise `0` | The delay, in milliseconds, between the last keystroke in the search box and the search. |
|
|
208
208
|
| `textField / valueField` | `Bind<ItemField<T>>` | `'text'` / `'value'` | A property name or a function `(item) => …`. Without `valueField`, an object with a `value` property uses that value, and anything else is its own value. |
|
|
209
|
+
| `normalizeKey` | `Bind<NormalizeKey>` | — | Values equal once normalized are one value, such as `(k) => k.trimEnd()` for codes padded with spaces. Without it, the item of a value a data source compares its own way (trailing spaces, case) is still found: the source is asked for it and decides, and the list marks that item. |
|
|
209
210
|
| `iconField, groupField, enabledField` | `Bind<ItemField<T>>` | — | An icon for each option. Options in the same group appear together under its name. `enabled` marks options that cannot be selected. |
|
|
210
211
|
| `placeholder` | `Bind<string>` | `''` | Displayed when no item is selected. |
|
|
211
212
|
| `searchEnabled` | `Bind<boolean>` | `false` | Adds a search box at the top of the list. |
|
|
212
213
|
| `searchMode` | `Bind<'contains' \| 'startswith'>` | `'contains'` | How the search matches option text. |
|
|
213
214
|
| `clearButton` | `Bind<boolean>` | `false` | Shows a button that clears the value. Escape does the same while the list is closed. |
|
|
214
|
-
| `itemTemplate / fieldTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an option or the selected item is drawn. |
|
|
215
|
+
| `itemTemplate / fieldTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an option or the selected item is drawn. What it adds to `host` goes with `host`; a cleanup it returns runs as `host` goes. |
|
|
215
216
|
| `matchWidth` | `Bind<boolean>` | `true` | The list is at least as wide as the field. |
|
|
216
217
|
| `label, labelMode, helpText, hint, prefix, icon, buttons, readOnly, required, size, variant, stretch, rules, error, validateOn, validationGroup` | see TextBox | | Field props shared by all editors. |
|
|
217
218
|
|
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.13
|
|
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
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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
package/docs/gauge-marks.md
CHANGED
package/docs/gauge-ranges.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Ranges
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Ranges give stretches of the scale a meaning, such as normal, high and critical. They show as a band beside the track, and the fill takes the color of the range its value is in.
|
|
6
6
|
|
package/docs/gauge-scales.md
CHANGED
package/docs/gauge.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Shows a value against its scale, as an arc, a circle or a straight bar. Ranges give stretches of the scale a meaning, markers and marks point at values, and every part takes its look from the design language.
|
|
6
6
|
|
package/docs/home.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @motifx-community/ui
|
|
2
2
|
|
|
3
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Get started · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Components for MotifJS: objects you create when you need them, show anywhere and dispose when you are done, drawn from the MotifJS design system's tokens.
|
|
6
6
|
|
package/docs/keyboard.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Keyboard and focus
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
|
|
6
6
|
|
package/docs/language.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Language
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
`uiLocale` controls the strings that controls display, the locale used for dates and numbers, and the text direction. The kit has one `uiLocale`, and each language pack is loaded on demand.
|
|
6
6
|
|
package/docs/layout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Layout
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Container controls for arranging other controls: `Stack` (a row or column), `Grid` (rows and columns), `Panel` (a plain box that can scroll), `GroupBox` (a titled frame), `DockPanel` (children docked to its edges) and `SplitContainer` (two panes with a splitter). All of them are controls, so they can disable and hide their content, and they lay out children added at any time.
|
|
6
6
|
|
package/docs/listbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ListBox
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A list displayed directly on the page. Users select one or more items with the keyboard or pointer. Items can come from memory or a data source, can be searched and grouped, and long lists render only the visible rows.
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ export const cities = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Kon
|
|
|
31
31
|
|
|
32
32
|
## Objects, groups, templates
|
|
33
33
|
|
|
34
|
-
Custom objects are read through `textField` and `valueField`. `groupField` places items under headers, `enabledField` disables specific items, and `itemTemplate` customizes how an item is drawn.
|
|
34
|
+
Custom objects are read through `textField` and `valueField`. `groupField` places items under headers, `enabledField` disables specific items, and `itemTemplate` customizes how an item is drawn. A template draws into a `host` of its own, which goes when the item is drawn again (another template, the items given again) or the list goes, with everything the template added to it. The cleanup a template can return is for what lives outside the host, such as a subscription or a timer: it runs as the host goes, once what the host held is gone.
|
|
35
35
|
|
|
36
36
|
```tsx
|
|
37
37
|
import { reactive, type ComponentBase } from '@motifx/core';
|
|
@@ -211,6 +211,7 @@ export default function Localization() {
|
|
|
211
211
|
| `value` | `Bind<V \| V[] \| null>` | `null` / `[]` | The selected value (single) or values (multiple). `x-model` binds it, and a change writes a new array. |
|
|
212
212
|
| `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. A data source takes precedence. |
|
|
213
213
|
| `textField, valueField` | `Bind<ItemField<T>>` | `'text'`, `'value'` | A property name or a function `(item) => …`. Plain values serve as their own text and value. |
|
|
214
|
+
| `normalizeKey` | `Bind<NormalizeKey>` | — | Same as DropDown. |
|
|
214
215
|
| `iconField, groupField, enabledField` | `Bind<ItemField<T>>` | — | An icon for each item, headers between groups (in-memory items), and items that cannot be selected. |
|
|
215
216
|
| `selectionMode` | `Bind<'single' \| 'multiple'>` | `'single'` | A single value, or an array of values. |
|
|
216
217
|
| `showCheckBoxes` | `Bind<boolean>` | `true` | In multiple selection, shows check boxes in front of the items. `false` draws a check mark instead, and a plain click selects only that item. |
|
|
@@ -220,7 +221,7 @@ export default function Localization() {
|
|
|
220
221
|
| `searchMode` | `Bind<'contains' \| 'startswith'>` | `'contains'` | How the search matches in-memory items. |
|
|
221
222
|
| `searchDelay` | `Bind<number>` | `0` / `250` | The delay, in milliseconds, between the last keystroke and the search (in memory / with a data source). |
|
|
222
223
|
| `height` | `Bind<number \| string \| null>` | — | The height, in rows (`8`) or a CSS length (`"12rem"`). Without it, the list is as tall as its items, up to the `max-height` of the list (`list.container`). |
|
|
223
|
-
| `itemTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an item is drawn. |
|
|
224
|
+
| `itemTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an item is drawn. What it adds to `host` goes with `host`; a cleanup it returns runs as `host` goes. |
|
|
224
225
|
| `noItemsText` | `Bind<string>` | — | The text for an empty list, which replaces the `uiLocale` “No items” string. |
|
|
225
226
|
| `label, labelMode, helpText, hint, readOnly, required, size, variant, stretch, rules, error, validateOn, validationGroup` | see TextBox | | Field props shared by all editors. |
|
|
226
227
|
|
package/docs/loadpanel.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LoadPanel
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A loading overlay for a container or the whole page. It includes a shade, a panel with the kit spinner and a message, and a Cancel button when the operation can be stopped. The content underneath is unavailable while it is shown, and focus returns afterward.
|
|
6
6
|
|
package/docs/lookup.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lookup
|
|
2
2
|
|
|
3
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Choice · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Selects one row from a table-style list, typically from a data source searched on the server, such as a customer by company, contact and city. The field shows the text of the selected row, and everything else works as in DropDown.
|
|
6
6
|
|
package/docs/menus-api.md
CHANGED
package/docs/menus-context.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: ContextMenu
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
The menu of an element: it opens on a right-click at the pointer, and with the Menu key or Shift+F10 at the focused element. Its items are the same as those of a menu bar.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Customization
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
With `customizable`, the user arranges the bar: hides and moves items, renames them, adds commands and menus, and changes keyboard shortcuts. The items you give stay as they are; what the user changed is one object for the app to save.
|
|
6
6
|
|
package/docs/menus-merging.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Merging menus
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A page can have several bars: the app’s bar, and the bars of documents, windows and tabs. The bar of the document in use shows its items in the app’s bar, so the user always finds the commands in one place.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Programmatic changes
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
The items of a bar can be changed while it runs: by path, without building the whole list again, or in place followed by `refresh()`. Items can also name app commands, which give them their text, keys, state and action.
|
|
6
6
|
|
package/docs/menus.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar and ContextMenu
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
An application menu bar (File, Edit, View) and a context menu that opens on right-click. Both use the same menu items, which support submenus, check and radio items, shortcuts and access keys. The bar can be customized by the user, changed by path and merged with the bars of documents and windows.
|
|
6
6
|
|
package/docs/multiview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MultiView
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Displays one page at a time from a horizontal set. Users move between pages with a swipe or drag, and you can navigate with `next()`, `previous()` and `goTo()`, or with [Tabs](tabs.md), a [Stepper](stepper.md) or buttons bound to the same value. It works like the panels of a tab control without the tab strip.
|
|
6
6
|
|
package/docs/navigation.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Navigation
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Navigation components move the reader around an application and lay out its screens: bars at the top and bottom, menus and toolbars, tabs, paths, steps and pages, panels that slide in, and the containers that arrange everything.
|
|
6
6
|
|
package/docs/numberbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# NumberBox
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A numeric input with arrow key support, PageUp and PageDown, spin buttons that repeat while held, min and max limits, exact decimal stepping, display formats such as currency and percent, and locale-aware input.
|
|
6
6
|
|
package/docs/otpinput.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OtpInput
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A one-time code in a row of boxes. Typing, pasting a whole code, the code a phone offers from a message and screen readers work as in any text box, because the boxes are drawn over one real input.
|
|
6
6
|
|
package/docs/pagination.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pagination
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Navigates through pages of items, with page size options, the current position, navigation buttons and a button for each nearby page. It switches to a compact layout when it does not fit, and it looks and works like the DataGrid pager.
|
|
6
6
|
|
package/docs/popover.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Popover
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
Displays content next to a related element, such as a title, a close button, a form or a card. It opens on click or on hover, follows its target, and points to it with an arrow where the design language includes one.
|
|
6
6
|
|
package/docs/progress.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ProgressBar and Spinner
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
ProgressBar shows how far an operation has progressed, as a line or a circle, or indicates activity when the progress is unknown. Spinner shows that the system is busy. It is a rotating ring that can stand alone or cover a panel while it loads, and it can wait for a delay so that quick operations do not cause a flash.
|
|
6
6
|
|
package/docs/qrcode.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# QRCode
|
|
2
2
|
|
|
3
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A QR code, drawn as vectors so that it stays sharp at any size. It has no dependencies, chooses the smallest version that holds the text, and can carry a logo.
|
|
6
6
|
|
package/docs/radiogroup.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RadioGroup
|
|
2
2
|
|
|
3
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Choice · @motifx-community/ui 0.1.0-beta.13
|
|
4
4
|
|
|
5
5
|
A set of mutually exclusive options. Options can come from plain values, custom objects or a live list, and can be arranged vertically, horizontally or in columns. Individual options can be disabled, hidden or given help text. The group is a single Tab stop, and the arrow keys move between options.
|
|
6
6
|
|