@motifx-community/ui 0.1.0-beta.18 → 0.1.0-beta.19
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 +34 -0
- package/dist/components/form/MxForm.d.ts +3 -0
- package/dist/components/form/form-props.d.ts +7 -0
- package/dist/components/formlayout/FormLayout.d.ts +21 -6
- package/dist/components/formlayout/form-item.d.ts +4 -3
- package/dist/components/formlayout/form-layout-props.d.ts +9 -5
- package/dist/components/formlayout/form-tab.d.ts +2 -1
- package/dist/components/layout/DockPanel.d.ts +16 -6
- package/dist/components/layout/Grid.d.ts +35 -25
- package/dist/components/layout/GroupBox.d.ts +14 -4
- package/dist/components/layout/Panel.d.ts +12 -2
- package/dist/components/layout/SplitContainer.d.ts +12 -2
- package/dist/components/layout/Stack.d.ts +29 -17
- package/dist/components/layout/dock-child-props.d.ts +7 -6
- package/dist/components/layout/dock-panel-props.d.ts +3 -2
- package/dist/components/layout/grid-cell.d.ts +7 -5
- package/dist/components/layout/grid-props.d.ts +17 -12
- package/dist/components/layout/group-box-props.d.ts +3 -2
- package/dist/components/layout/panel-props.d.ts +2 -1
- package/dist/components/layout/split-container-props.d.ts +2 -1
- package/dist/components/layout/stack-child-props.d.ts +3 -2
- package/dist/components/layout/stack-props.d.ts +8 -7
- package/dist/components/tabs/Tab.d.ts +6 -0
- package/dist/components/tabs/Tabs.d.ts +5 -0
- package/dist/components/tabs/tab-props.d.ts +7 -1
- package/dist/components/tabs/tabs-props.d.ts +6 -0
- package/dist/core/responsive.d.ts +52 -0
- package/dist/generated/tokens.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +466 -102
- package/dist/index.js.map +1 -1
- package/dist/styles.css +89 -5
- package/dist/tokens/index.d.ts +40 -0
- package/dist/tokens/index.js +20 -0
- package/dist/tokens/index.js.map +1 -1
- 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/chat.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 +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 +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/diagram-api.md +1 -1
- package/docs/diagram-commands.md +1 -1
- package/docs/diagram-connections.md +1 -1
- package/docs/diagram-custom-nodes.md +1 -1
- package/docs/diagram-designer.md +1 -1
- package/docs/diagram-editing.md +1 -1
- package/docs/diagram-flow.md +1 -1
- package/docs/diagram-keyboard.md +1 -1
- package/docs/diagram-layout.md +1 -1
- package/docs/diagram-nodes.md +1 -1
- package/docs/diagram-tables.md +1 -1
- package/docs/diagram.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 +1 -1
- package/docs/expressioneditor.md +1 -1
- package/docs/expressions.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout-schema.md +1 -1
- package/docs/formlayout.md +52 -6
- 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 +101 -28
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.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/pivotgrid-api.md +1 -1
- package/docs/pivotgrid-chart.md +1 -1
- package/docs/pivotgrid-drilldown.md +1 -1
- package/docs/pivotgrid-export.md +1 -1
- package/docs/pivotgrid-fields.md +1 -1
- package/docs/pivotgrid-keyboard.md +1 -1
- package/docs/pivotgrid-layout.md +1 -1
- package/docs/pivotgrid-panel.md +1 -1
- package/docs/pivotgrid-remote.md +1 -1
- package/docs/pivotgrid-sorting.md +1 -1
- package/docs/pivotgrid-state.md +1 -1
- package/docs/pivotgrid-summaries.md +1 -1
- package/docs/pivotgrid.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 +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 +1 -1
- package/docs/showcase-flowstudio.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.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 +58 -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 +9 -1
- package/docs/toolbar-api.md +1 -1
- package/docs/toolbar-customization.md +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +2 -2
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +45 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +452 -224
- package/llms.txt +1 -1
- package/package.json +2 -2
package/llms-full.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @motifx-community/ui
|
|
2
2
|
|
|
3
|
-
> UI components for MotifJS (@motifx/core) on the MotifJS design system. Version 0.1.0-beta.
|
|
3
|
+
> UI components for MotifJS (@motifx/core) on the MotifJS design system. Version 0.1.0-beta.19: a preview, its API may still change before 1.0.
|
|
4
4
|
|
|
5
5
|
Built on MotifJS (`@motifx/core`): a component is an object, made in JSX or with `new`, whose every prop takes a value or a function (`Bind<T>`); `x-model` binds a value two-way. The look is the design system’s (`@motifx-community/design-system`): five design languages (`data-design-language`), light and dark themes, density.
|
|
6
6
|
|
|
@@ -392,7 +392,7 @@ tokens, with examples.
|
|
|
392
392
|
|
|
393
393
|
# @motifx-community/ui
|
|
394
394
|
|
|
395
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
395
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
396
396
|
|
|
397
397
|
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.
|
|
398
398
|
|
|
@@ -462,7 +462,7 @@ Loading issues…
|
|
|
462
462
|
|
|
463
463
|
# Showcase: an order screen
|
|
464
464
|
|
|
465
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
465
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
466
466
|
|
|
467
467
|
An order entry screen built with the kit, structured the way a MotifJS application is normally built: state and operations live in a model (`OrderModel`), and the page binds to it. The customer list is a data source of 5,000 rows that responds like a server.
|
|
468
468
|
|
|
@@ -475,7 +475,7 @@ Loading issues…
|
|
|
475
475
|
|
|
476
476
|
# Showcase: a smart home
|
|
477
477
|
|
|
478
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
478
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
479
479
|
|
|
480
480
|
A smart home panel for a tablet, built with the kit as a MotifJS application of its own: a rail of screens, the day and the home's state at the top, and tiles you can touch. The devices report new values every two seconds.
|
|
481
481
|
|
|
@@ -510,7 +510,7 @@ Loading issues…
|
|
|
510
510
|
|
|
511
511
|
# Showcase: a mail application
|
|
512
512
|
|
|
513
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
513
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
514
514
|
|
|
515
515
|
A mail, calendar, people and tasks application built with the kit as a standalone MotifJS application. The ribbon shows the commands of the active area, the panes are resizable, and messages, events, contacts and tasks can be edited. All data is sample data.
|
|
516
516
|
|
|
@@ -553,7 +553,7 @@ Loading issues…
|
|
|
553
553
|
|
|
554
554
|
# Showcase: FlowStudio
|
|
555
555
|
|
|
556
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
556
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
557
557
|
|
|
558
558
|
A studio for workflows, database tables and automations, built with the kit as a standalone MotifJS application: a ribbon whose commands work on the active document, documents with panels docked around them, a solution tree and diagrams. Workflows are checked and run, table diagrams give their SQL, and automations run in the page and give the definition a server runs. What is opened, changed and saved stays in the browser; every workflow, table and automation is made up.
|
|
559
559
|
|
|
@@ -618,7 +618,7 @@ Loading issues…
|
|
|
618
618
|
|
|
619
619
|
# Design tokens
|
|
620
620
|
|
|
621
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
621
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
622
622
|
|
|
623
623
|
The token system has five layers. The first four (primitives, design language scales, semantic tokens per theme, and density) come from `@motifx-community/design-system` and are listed here for reference. The fifth layer, component tokens, belongs to this kit: each component has its own tokens, written in `@layer mx.components`, and each one references a design system token. Every design language provides its own value for each component token.
|
|
624
624
|
|
|
@@ -3445,6 +3445,10 @@ Source: `tokens/schema/*.json` for names and types, and `tokens/languages/<langu
|
|
|
3445
3445
|
| `layout.space.xl` | `--mx-layout-space-xl` | `space.8` | `2rem` |
|
|
3446
3446
|
| `layout.space.xxl` | `--mx-layout-space-xxl` | `space.12` | `3rem` |
|
|
3447
3447
|
| `layout.gap` | `--mx-layout-gap` | `space.2` | `0.5rem` |
|
|
3448
|
+
| `layout.breakpoint.sm` | `--mx-layout-breakpoint-sm` | `breakpoint.sm` | `560px` |
|
|
3449
|
+
| `layout.breakpoint.md` | `--mx-layout-breakpoint-md` | `breakpoint.md` | `768px` |
|
|
3450
|
+
| `layout.breakpoint.lg` | `--mx-layout-breakpoint-lg` | `breakpoint.lg` | `1024px` |
|
|
3451
|
+
| `layout.breakpoint.xl` | `--mx-layout-breakpoint-xl` | `breakpoint.xl` | `1440px` |
|
|
3448
3452
|
| `layout.group-box.gap` | `--mx-layout-group-box-gap` | `space.3` | `0.75rem` |
|
|
3449
3453
|
| `layout.group-box.legend-float` | `--mx-layout-group-box-legend-float` | `` | `none` |
|
|
3450
3454
|
| `layout.splitter.size` | `--mx-layout-splitter-size` | `space.2` | `0.5rem` |
|
|
@@ -6801,6 +6805,10 @@ The shared palette and scales, identical in every design language. Themes and co
|
|
|
6801
6805
|
| `icon.size.lg` | dimension | `--mx-icon-size-lg` | `1.25rem` |
|
|
6802
6806
|
| `border.width.1` | dimension | `--mx-border-width-1` | `1px` |
|
|
6803
6807
|
| `border.width.2` | dimension | `--mx-border-width-2` | `2px` |
|
|
6808
|
+
| `breakpoint.sm` | dimension | `--mx-breakpoint-sm` | `560px` |
|
|
6809
|
+
| `breakpoint.md` | dimension | `--mx-breakpoint-md` | `768px` |
|
|
6810
|
+
| `breakpoint.lg` | dimension | `--mx-breakpoint-lg` | `1024px` |
|
|
6811
|
+
| `breakpoint.xl` | dimension | `--mx-breakpoint-xl` | `1440px` |
|
|
6804
6812
|
| `opacity.disabled` | number | `--mx-opacity-disabled` | `0.5` |
|
|
6805
6813
|
| `z.dropdown` | number | `--mx-z-dropdown` | `1000` |
|
|
6806
6814
|
| `z.sticky` | number | `--mx-z-sticky` | `1100` |
|
|
@@ -6827,7 +6835,7 @@ Loading issues…
|
|
|
6827
6835
|
|
|
6828
6836
|
# Foundations
|
|
6829
6837
|
|
|
6830
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
6838
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
6831
6839
|
|
|
6832
6840
|
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.
|
|
6833
6841
|
|
|
@@ -6910,7 +6918,7 @@ Loading issues…
|
|
|
6910
6918
|
|
|
6911
6919
|
# Control
|
|
6912
6920
|
|
|
6913
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
6921
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
6914
6922
|
|
|
6915
6923
|
`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.
|
|
6916
6924
|
|
|
@@ -7150,7 +7158,7 @@ Loading issues…
|
|
|
7150
7158
|
|
|
7151
7159
|
# Keyboard and focus
|
|
7152
7160
|
|
|
7153
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
7161
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
7154
7162
|
|
|
7155
7163
|
Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
|
|
7156
7164
|
|
|
@@ -7346,7 +7354,7 @@ Loading issues…
|
|
|
7346
7354
|
|
|
7347
7355
|
# Commands and shortcuts
|
|
7348
7356
|
|
|
7349
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
7357
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
7350
7358
|
|
|
7351
7359
|
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.
|
|
7352
7360
|
|
|
@@ -7476,7 +7484,7 @@ Loading issues…
|
|
|
7476
7484
|
|
|
7477
7485
|
# Language
|
|
7478
7486
|
|
|
7479
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
7487
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
7480
7488
|
|
|
7481
7489
|
`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.
|
|
7482
7490
|
|
|
@@ -7713,7 +7721,7 @@ Loading issues…
|
|
|
7713
7721
|
|
|
7714
7722
|
# Buttons
|
|
7715
7723
|
|
|
7716
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
7724
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.19
|
|
7717
7725
|
|
|
7718
7726
|
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).
|
|
7719
7727
|
|
|
@@ -7884,7 +7892,7 @@ Loading issues…
|
|
|
7884
7892
|
|
|
7885
7893
|
# Button
|
|
7886
7894
|
|
|
7887
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
7895
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.19
|
|
7888
7896
|
|
|
7889
7897
|
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.
|
|
7890
7898
|
|
|
@@ -8308,7 +8316,7 @@ Loading issues…
|
|
|
8308
8316
|
|
|
8309
8317
|
# ButtonGroup
|
|
8310
8318
|
|
|
8311
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
8319
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.19
|
|
8312
8320
|
|
|
8313
8321
|
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.
|
|
8314
8322
|
|
|
@@ -8457,7 +8465,7 @@ Loading issues…
|
|
|
8457
8465
|
|
|
8458
8466
|
# SpeedDial
|
|
8459
8467
|
|
|
8460
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
8468
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.19
|
|
8461
8469
|
|
|
8462
8470
|
A floating action button that opens a set of related actions. Place it in a corner, on an edge or inline. Actions appear in a line with labels, or on a full, half or quarter circle around the button with tooltips. If there is only one action, the main button performs it directly.
|
|
8463
8471
|
|
|
@@ -8755,7 +8763,7 @@ Loading issues…
|
|
|
8755
8763
|
|
|
8756
8764
|
# Editors
|
|
8757
8765
|
|
|
8758
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
8766
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
8759
8767
|
|
|
8760
8768
|
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.
|
|
8761
8769
|
|
|
@@ -8918,7 +8926,7 @@ Loading issues…
|
|
|
8918
8926
|
|
|
8919
8927
|
# TextBox
|
|
8920
8928
|
|
|
8921
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
8929
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
8922
8930
|
|
|
8923
8931
|
A single-line text input with a label, help text and error display. It supports a placeholder, a prefix and suffix, buttons inside the box, a clear button, a password reveal button, a character counter, an input mask and validation, either on its own, in a group, or across all fields in a panel.
|
|
8924
8932
|
|
|
@@ -9379,7 +9387,7 @@ Loading issues…
|
|
|
9379
9387
|
|
|
9380
9388
|
# TextArea
|
|
9381
9389
|
|
|
9382
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
9390
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
9383
9391
|
|
|
9384
9392
|
A multi-line text input. The box can grow with its content or be resized by the user, and it supports a character counter, a clear button and Ctrl+Enter to submit, along with the label, help text and validation common to all fields.
|
|
9385
9393
|
|
|
@@ -9695,7 +9703,7 @@ Loading issues…
|
|
|
9695
9703
|
|
|
9696
9704
|
# ExpressionEditor
|
|
9697
9705
|
|
|
9698
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
9706
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
9699
9707
|
|
|
9700
9708
|
A field for an expression of the data layer, or for a template with expressions in it. The text is colored as it is typed, its problems are underlined where they are, the words that may be written at the caret come in a list, and the call the caret is in shows its parameters. It has the label, help text and validation common to all fields.
|
|
9701
9709
|
|
|
@@ -10168,7 +10176,7 @@ export default function States() {
|
|
|
10168
10176
|
|
|
10169
10177
|
# NumberBox
|
|
10170
10178
|
|
|
10171
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
10179
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
10172
10180
|
|
|
10173
10181
|
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.
|
|
10174
10182
|
|
|
@@ -10486,7 +10494,7 @@ Loading issues…
|
|
|
10486
10494
|
|
|
10487
10495
|
# DateBox
|
|
10488
10496
|
|
|
10489
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
10497
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
10490
10498
|
|
|
10491
10499
|
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.
|
|
10492
10500
|
|
|
@@ -10695,7 +10703,7 @@ Loading issues…
|
|
|
10695
10703
|
|
|
10696
10704
|
# DateRangeBox
|
|
10697
10705
|
|
|
10698
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
10706
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
10699
10707
|
|
|
10700
10708
|
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.
|
|
10701
10709
|
|
|
@@ -10895,7 +10903,7 @@ Loading issues…
|
|
|
10895
10903
|
|
|
10896
10904
|
# Signature
|
|
10897
10905
|
|
|
10898
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
10906
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
10899
10907
|
|
|
10900
10908
|
A pad to sign on with a pen, a finger or a mouse. The value is the strokes themselves, so a signature can be stored as data, drawn again at any size and exported as an image.
|
|
10901
10909
|
|
|
@@ -11107,7 +11115,7 @@ Loading issues…
|
|
|
11107
11115
|
|
|
11108
11116
|
# OtpInput
|
|
11109
11117
|
|
|
11110
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
11118
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
11111
11119
|
|
|
11112
11120
|
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.
|
|
11113
11121
|
|
|
@@ -11308,7 +11316,7 @@ Loading issues…
|
|
|
11308
11316
|
|
|
11309
11317
|
# ColorBox and ColorPicker
|
|
11310
11318
|
|
|
11311
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
11319
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
11312
11320
|
|
|
11313
11321
|
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.
|
|
11314
11322
|
|
|
@@ -11469,7 +11477,7 @@ Loading issues…
|
|
|
11469
11477
|
|
|
11470
11478
|
# Calendar
|
|
11471
11479
|
|
|
11472
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
11480
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
11473
11481
|
|
|
11474
11482
|
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.
|
|
11475
11483
|
|
|
@@ -11613,7 +11621,7 @@ Loading issues…
|
|
|
11613
11621
|
|
|
11614
11622
|
# Slider
|
|
11615
11623
|
|
|
11616
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
11624
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
11617
11625
|
|
|
11618
11626
|
Selects a value on a track by dragging a thumb or using the keyboard. It supports a single number or a range with two thumbs, steps, labeled tick marks, a value tooltip, a vertical orientation and number formatting, along with the label, help text and validation common to all fields.
|
|
11619
11627
|
|
|
@@ -11982,7 +11990,7 @@ Loading issues…
|
|
|
11982
11990
|
|
|
11983
11991
|
# Rating
|
|
11984
11992
|
|
|
11985
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
11993
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
11986
11994
|
|
|
11987
11995
|
A row of stars for entering or displaying a score, in whole or half steps. Rating is a field, so the label, help text, rules and `x-model` work the same way as on any other field.
|
|
11988
11996
|
|
|
@@ -12114,7 +12122,7 @@ Loading issues…
|
|
|
12114
12122
|
|
|
12115
12123
|
# ValidationSummary
|
|
12116
12124
|
|
|
12117
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
12125
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
12118
12126
|
|
|
12119
12127
|
Lists the invalid fields of a `ValidationGroup` under a header, with each field's label and message on its own line. Clicking a line moves focus to the field. The summary updates whenever a field in the group is validated or reset, and it is hidden when there are no errors.
|
|
12120
12128
|
|
|
@@ -12237,7 +12245,7 @@ Loading issues…
|
|
|
12237
12245
|
|
|
12238
12246
|
# FileUploader
|
|
12239
12247
|
|
|
12240
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
12248
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
12241
12249
|
|
|
12242
12250
|
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.
|
|
12243
12251
|
|
|
@@ -12446,7 +12454,7 @@ Loading issues…
|
|
|
12446
12454
|
|
|
12447
12455
|
# ShortcutEditor
|
|
12448
12456
|
|
|
12449
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
12457
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
12450
12458
|
|
|
12451
12459
|
A list of the app’s keyboard shortcuts in which the user assigns other keys. It shows the shortcuts of commands, of the app and of the kit’s components, and you can place it anywhere: a settings page, a dialog or a tab.
|
|
12452
12460
|
|
|
@@ -12698,7 +12706,7 @@ Loading issues…
|
|
|
12698
12706
|
|
|
12699
12707
|
# Choice
|
|
12700
12708
|
|
|
12701
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
12709
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
12702
12710
|
|
|
12703
12711
|
Choice components let the reader pick: on or off, one of a few, several of a list, or one of many with search.
|
|
12704
12712
|
|
|
@@ -12853,7 +12861,7 @@ Loading issues…
|
|
|
12853
12861
|
|
|
12854
12862
|
# CheckBox
|
|
12855
12863
|
|
|
12856
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
12864
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
12857
12865
|
|
|
12858
12866
|
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.
|
|
12859
12867
|
|
|
@@ -13197,7 +13205,7 @@ Loading issues…
|
|
|
13197
13205
|
|
|
13198
13206
|
# Switch
|
|
13199
13207
|
|
|
13200
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
13208
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
13201
13209
|
|
|
13202
13210
|
An on/off switch with a label. It has a track with a sliding thumb, optional on/off text inside or next to the track, and read-only and required states. It is a native check box with the switch role.
|
|
13203
13211
|
|
|
@@ -13447,7 +13455,7 @@ Loading issues…
|
|
|
13447
13455
|
|
|
13448
13456
|
# RadioGroup
|
|
13449
13457
|
|
|
13450
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
13458
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
13451
13459
|
|
|
13452
13460
|
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.
|
|
13453
13461
|
|
|
@@ -13779,7 +13787,7 @@ Loading issues…
|
|
|
13779
13787
|
|
|
13780
13788
|
# DropDown
|
|
13781
13789
|
|
|
13782
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
13790
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
13783
13791
|
|
|
13784
13792
|
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.
|
|
13785
13793
|
|
|
@@ -14111,7 +14119,7 @@ export default function Validation() {
|
|
|
14111
14119
|
|
|
14112
14120
|
# ComboBox and Autocomplete
|
|
14113
14121
|
|
|
14114
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
14122
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
14115
14123
|
|
|
14116
14124
|
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.
|
|
14117
14125
|
|
|
@@ -14334,7 +14342,7 @@ export default function CustomValues() {
|
|
|
14334
14342
|
|
|
14335
14343
|
# Lookup
|
|
14336
14344
|
|
|
14337
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
14345
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
14338
14346
|
|
|
14339
14347
|
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.
|
|
14340
14348
|
|
|
@@ -14554,7 +14562,7 @@ export default function ByKey() {
|
|
|
14554
14562
|
|
|
14555
14563
|
# Feedback
|
|
14556
14564
|
|
|
14557
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
14565
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
14558
14566
|
|
|
14559
14567
|
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.
|
|
14560
14568
|
|
|
@@ -14696,7 +14704,7 @@ Loading issues…
|
|
|
14696
14704
|
|
|
14697
14705
|
# ProgressBar and Spinner
|
|
14698
14706
|
|
|
14699
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
14707
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
14700
14708
|
|
|
14701
14709
|
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.
|
|
14702
14710
|
|
|
@@ -15105,7 +15113,7 @@ Loading issues…
|
|
|
15105
15113
|
|
|
15106
15114
|
# Tooltip
|
|
15107
15115
|
|
|
15108
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
15116
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
15109
15117
|
|
|
15110
15118
|
A short description shown next to an element when the pointer rests on it, when it receives keyboard focus, or programmatically. Users can hover over the tooltip, Escape dismisses it, and only one is open at a time on the page.
|
|
15111
15119
|
|
|
@@ -15452,7 +15460,7 @@ Loading issues…
|
|
|
15452
15460
|
|
|
15453
15461
|
# Popover
|
|
15454
15462
|
|
|
15455
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
15463
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
15456
15464
|
|
|
15457
15465
|
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.
|
|
15458
15466
|
|
|
@@ -15682,7 +15690,7 @@ Loading issues…
|
|
|
15682
15690
|
|
|
15683
15691
|
# LoadPanel
|
|
15684
15692
|
|
|
15685
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
15693
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
15686
15694
|
|
|
15687
15695
|
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.
|
|
15688
15696
|
|
|
@@ -15874,7 +15882,7 @@ Loading issues…
|
|
|
15874
15882
|
|
|
15875
15883
|
# Toast
|
|
15876
15884
|
|
|
15877
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
15885
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
15878
15886
|
|
|
15879
15887
|
Brief notifications at the edge of the window, with four tones, an optional action such as Undo, a custom duration or none, six positions and a limit on how many appear at once. Show them programmatically, or place a custom region in JSX.
|
|
15880
15888
|
|
|
@@ -16195,7 +16203,7 @@ Loading issues…
|
|
|
16195
16203
|
|
|
16196
16204
|
# Display
|
|
16197
16205
|
|
|
16198
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
16206
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
16199
16207
|
|
|
16200
16208
|
Display components present content: people, counts and labels, cards, pictures, tiles, events in time, codes to scan, and placeholders while content loads.
|
|
16201
16209
|
|
|
@@ -16347,7 +16355,7 @@ Loading issues…
|
|
|
16347
16355
|
|
|
16348
16356
|
# QRCode
|
|
16349
16357
|
|
|
16350
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
16358
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
16351
16359
|
|
|
16352
16360
|
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.
|
|
16353
16361
|
|
|
@@ -16530,7 +16538,7 @@ Loading issues…
|
|
|
16530
16538
|
|
|
16531
16539
|
# Barcode
|
|
16532
16540
|
|
|
16533
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
16541
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
16534
16542
|
|
|
16535
16543
|
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.
|
|
16536
16544
|
|
|
@@ -16727,7 +16735,7 @@ Loading issues…
|
|
|
16727
16735
|
|
|
16728
16736
|
# Badge
|
|
16729
16737
|
|
|
16730
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
16738
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
16731
16739
|
|
|
16732
16740
|
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.
|
|
16733
16741
|
|
|
@@ -16928,7 +16936,7 @@ Loading issues…
|
|
|
16928
16936
|
|
|
16929
16937
|
# Avatar and AvatarGroup
|
|
16930
16938
|
|
|
16931
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
16939
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
16932
16940
|
|
|
16933
16941
|
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.
|
|
16934
16942
|
|
|
@@ -17174,7 +17182,7 @@ Loading issues…
|
|
|
17174
17182
|
|
|
17175
17183
|
# Chip and ChipGroup
|
|
17176
17184
|
|
|
17177
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
17185
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
17178
17186
|
|
|
17179
17187
|
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.
|
|
17180
17188
|
|
|
@@ -17459,7 +17467,7 @@ Loading issues…
|
|
|
17459
17467
|
|
|
17460
17468
|
# Card
|
|
17461
17469
|
|
|
17462
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
17470
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
17463
17471
|
|
|
17464
17472
|
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.
|
|
17465
17473
|
|
|
@@ -17721,7 +17729,7 @@ Loading issues…
|
|
|
17721
17729
|
|
|
17722
17730
|
# Gallery
|
|
17723
17731
|
|
|
17724
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
17732
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
17725
17733
|
|
|
17726
17734
|
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.
|
|
17727
17735
|
|
|
@@ -17973,7 +17981,7 @@ Loading issues…
|
|
|
17973
17981
|
|
|
17974
17982
|
# TileView
|
|
17975
17983
|
|
|
17976
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
17984
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
17977
17985
|
|
|
17978
17986
|
Arranges tiles of different sizes on a grid of base cells, where each tile spans a set number of cells. Tiles fill the height in columns and scroll horizontally, or fill the width in rows. They can be selected and reordered by dragging.
|
|
17979
17987
|
|
|
@@ -18187,7 +18195,7 @@ Loading issues…
|
|
|
18187
18195
|
|
|
18188
18196
|
# Timeline
|
|
18189
18197
|
|
|
18190
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
18198
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
18191
18199
|
|
|
18192
18200
|
Displays events in chronological order. In the vertical layout, each event is a card next to a line with a marker. In the horizontal layout, events appear along a line of dates, and selecting a date shows that event's card below the line. Dates are formatted in the kit language. For scheduling by the hour, see [Scheduler](scheduler.md).
|
|
18193
18201
|
|
|
@@ -18369,7 +18377,7 @@ Loading issues…
|
|
|
18369
18377
|
|
|
18370
18378
|
# Skeleton
|
|
18371
18379
|
|
|
18372
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
18380
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
18373
18381
|
|
|
18374
18382
|
A placeholder that matches the shape of content that is loading, so the page keeps its layout while data arrives. If you provide content, it replaces the placeholder in the same place when loading ends.
|
|
18375
18383
|
|
|
@@ -18508,7 +18516,7 @@ Loading issues…
|
|
|
18508
18516
|
|
|
18509
18517
|
# Chat
|
|
18510
18518
|
|
|
18511
|
-
> AI chat · @motifx-community/ui 0.1.0-beta.
|
|
18519
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.19
|
|
18512
18520
|
|
|
18513
18521
|
A conversation with a model, drawn by turn: the user’s question, then what the model did, in order — its thinking, text, tool calls, to-do list — each with a dot at its start. The chat draws everything, and your app talks to the model and writes the reply. There is no built-in provider: any streaming API connects through `reply()`.
|
|
18514
18522
|
|
|
@@ -20024,7 +20032,7 @@ export function olderPage(): ChatMessage[] {
|
|
|
20024
20032
|
|
|
20025
20033
|
# Markdown
|
|
20026
20034
|
|
|
20027
|
-
> AI chat · @motifx-community/ui 0.1.0-beta.
|
|
20035
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.19
|
|
20028
20036
|
|
|
20029
20037
|
Shows markdown, either all at once or as it arrives from a model. Each character appears the moment it is written. A mark whose meaning is not known yet shows as text until it is, then its element is made and the text continues inside it. Nothing that has been drawn is drawn again, while the text grows or when it ends.
|
|
20030
20038
|
|
|
@@ -20371,7 +20379,7 @@ Loading issues…
|
|
|
20371
20379
|
|
|
20372
20380
|
# Navigation
|
|
20373
20381
|
|
|
20374
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20382
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
20375
20383
|
|
|
20376
20384
|
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.
|
|
20377
20385
|
|
|
@@ -20523,7 +20531,7 @@ Loading issues…
|
|
|
20523
20531
|
|
|
20524
20532
|
# AppBar
|
|
20525
20533
|
|
|
20526
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20534
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
20527
20535
|
|
|
20528
20536
|
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.
|
|
20529
20537
|
|
|
@@ -20721,7 +20729,7 @@ Loading issues…
|
|
|
20721
20729
|
|
|
20722
20730
|
# BottomNavigation
|
|
20723
20731
|
|
|
20724
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20732
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
20725
20733
|
|
|
20726
20734
|
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.
|
|
20727
20735
|
|
|
@@ -20983,7 +20991,7 @@ Loading issues…
|
|
|
20983
20991
|
|
|
20984
20992
|
# Tabs
|
|
20985
20993
|
|
|
20986
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20994
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
20987
20995
|
|
|
20988
20996
|
Tabs display one panel at a time below a tab strip. You can define them in JSX or programmatically, and they support closable tabs, icons and badges, scroll buttons when tabs overflow, four placements, and panels that are created on first display.
|
|
20989
20997
|
|
|
@@ -21117,6 +21125,61 @@ export default function ManyTabs() {
|
|
|
21117
21125
|
}
|
|
21118
21126
|
```
|
|
21119
21127
|
|
|
21128
|
+
## Filling the panel
|
|
21129
|
+
|
|
21130
|
+
In tabs given a height, the shown panel fills the room under the strip, and content longer than the panel scrolls inside it, so the scroll bar stands at the panel's edge. A panel that holds only a part that scrolls by itself (`DataGrid`, `PivotGrid`, `TreeView`, `ScrollView`, `Scheduler`, `Chat`, `Diagram`, `TabDocumentManager`, `SplitContainer`, `DockPanel`, `TileView` or a scrolling `Panel`) drops its padding and gives the part all its room, so the part's own scroll bar is at the edge too. `padding` on the tabs or on a tab sets the space for any content and takes precedence.
|
|
21131
|
+
|
|
21132
|
+
```tsx
|
|
21133
|
+
import { DataGrid, Tab, Tabs } from '@motifx-community/ui';
|
|
21134
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
21135
|
+
|
|
21136
|
+
type Order = { id: number; customer: string; total: number };
|
|
21137
|
+
|
|
21138
|
+
const orders: Order[] = Array.from({ length: 500 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
21139
|
+
|
|
21140
|
+
const columns: GridColumn<Order>[] = [
|
|
21141
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
21142
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
21143
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
21144
|
+
];
|
|
21145
|
+
|
|
21146
|
+
const TERMS = [
|
|
21147
|
+
'Orders are shipped within two working days of payment.',
|
|
21148
|
+
'A parcel that arrives damaged is replaced at no cost when it is reported within fourteen days.',
|
|
21149
|
+
'Returns are accepted within thirty days, in the original packaging.',
|
|
21150
|
+
'Refunds go back to the card or account that paid, within five working days of the return.',
|
|
21151
|
+
'Prices include tax. Shipping is free above a total of 50 euros.',
|
|
21152
|
+
'An order can be changed or cancelled until it is shipped.',
|
|
21153
|
+
'Invoices are sent by email when the order ships.',
|
|
21154
|
+
'Questions about an order go to the support team, who answer within one working day.',
|
|
21155
|
+
'A gift card is valid for two years and can pay for part of an order.',
|
|
21156
|
+
'Items on pre-order ship together on the date shown on the product page, unless the order is split at the customer’s request.',
|
|
21157
|
+
'Personal data is used only to handle the order and is kept for as long as the law asks.',
|
|
21158
|
+
'These terms change only with thirty days’ notice, sent to the email address on the account.',
|
|
21159
|
+
];
|
|
21160
|
+
|
|
21161
|
+
/** Tabs given a height: the grid fills its panel to the edges, the long text scrolls in its panel, and the last panel keeps the padding it is given. */
|
|
21162
|
+
export default function FillingPanels() {
|
|
21163
|
+
return (
|
|
21164
|
+
<Tabs label="Orders" style="block-size: 22rem">
|
|
21165
|
+
<Tab title="Orders">
|
|
21166
|
+
<DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />
|
|
21167
|
+
</Tab>
|
|
21168
|
+
<Tab title="Terms">
|
|
21169
|
+
<div>
|
|
21170
|
+
{TERMS.map((term) => (
|
|
21171
|
+
<p key={term}>{term}</p>
|
|
21172
|
+
))}
|
|
21173
|
+
</div>
|
|
21174
|
+
</Tab>
|
|
21175
|
+
<Tab title="Notes" padding="xl">
|
|
21176
|
+
<p>This panel is given a wider padding of its own.</p>
|
|
21177
|
+
</Tab>
|
|
21178
|
+
</Tabs>
|
|
21179
|
+
);
|
|
21180
|
+
}
|
|
21181
|
+
```
|
|
21182
|
+
|
|
21120
21183
|
## Placement
|
|
21121
21184
|
|
|
21122
21185
|
```tsx
|
|
@@ -21390,6 +21453,7 @@ export default function Localization() {
|
|
|
21390
21453
|
| `closable` | `Bind<boolean>` | `false` | Adds a close button to every tab. A tab's own `closable` takes precedence. |
|
|
21391
21454
|
| `lazy` | `Bind<boolean>` | `true` | Creates a panel the first time it is shown and then keeps it. A tab's own `lazy` takes precedence. |
|
|
21392
21455
|
| `keepAlive` | `Bind<boolean>` | `true` | With `false`, content created by a tab's `content` is disposed while hidden and recreated when shown. A tab's own `keepAlive` takes precedence. |
|
|
21456
|
+
| `padding` | `Bind<LayoutSpace>` | The theme's | The space inside every panel's edges, one to four values as in CSS. A tab's own `padding` takes precedence. See [Filling the panel](#fill). |
|
|
21393
21457
|
| `enabled / disabled, visible, tabStop, tabIndex` | see Control | | Properties shared by all controls. `tabStop={false}` removes the tab strip from the Tab order. |
|
|
21394
21458
|
|
|
21395
21459
|
### Tab props
|
|
@@ -21403,6 +21467,7 @@ export default function Localization() {
|
|
|
21403
21467
|
| `hint` | `Bind<string>` | `''` | The tooltip text. |
|
|
21404
21468
|
| `closable` | `Bind<boolean \| undefined>` | From Tabs | Shows a close button on this tab. |
|
|
21405
21469
|
| `lazy, keepAlive` | `Bind<boolean \| undefined>` | From Tabs | This tab's own setting. |
|
|
21470
|
+
| `padding` | `Bind<LayoutSpace \| undefined>` | From Tabs | The space inside this panel's edges, one to four values as in CSS. |
|
|
21406
21471
|
| `content` | `() => ComponentBase \| ComponentBase[]` | — | Creates the panel content when the panel is created, either instead of or after the JSX children. |
|
|
21407
21472
|
| `enabled` | `Bind<boolean>` | `true` | `false` means the tab cannot be selected and the arrow keys skip it. |
|
|
21408
21473
|
| `visible` | `Bind<boolean>` | `true` | `false` removes the tab. If it is selected, the selection moves to an adjacent tab. |
|
|
@@ -21447,7 +21512,7 @@ Loading issues…
|
|
|
21447
21512
|
|
|
21448
21513
|
# Breadcrumb
|
|
21449
21514
|
|
|
21450
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21515
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
21451
21516
|
|
|
21452
21517
|
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.
|
|
21453
21518
|
|
|
@@ -21580,7 +21645,7 @@ Loading issues…
|
|
|
21580
21645
|
|
|
21581
21646
|
# Pagination
|
|
21582
21647
|
|
|
21583
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21648
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
21584
21649
|
|
|
21585
21650
|
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.
|
|
21586
21651
|
|
|
@@ -21703,7 +21768,7 @@ Loading issues…
|
|
|
21703
21768
|
|
|
21704
21769
|
# Stepper
|
|
21705
21770
|
|
|
21706
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21771
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
21707
21772
|
|
|
21708
21773
|
Shows the steps of a longer task and the user's progress through them. Each step has an indicator and text, with a line between steps, and steps before the current one are marked complete. [Wizard](wizard.md) adds a page and navigation buttons to each step.
|
|
21709
21774
|
|
|
@@ -21947,7 +22012,7 @@ Loading issues…
|
|
|
21947
22012
|
|
|
21948
22013
|
# Wizard
|
|
21949
22014
|
|
|
21950
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22015
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
21951
22016
|
|
|
21952
22017
|
Guides the user through a multi-step task. It combines a [Stepper](stepper.md) above or next to one page per step with Back and Next buttons below. Next validates the page first, and on the last step it finishes the wizard.
|
|
21953
22018
|
|
|
@@ -22195,7 +22260,7 @@ Loading issues…
|
|
|
22195
22260
|
|
|
22196
22261
|
# Accordion
|
|
22197
22262
|
|
|
22198
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22263
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
22199
22264
|
|
|
22200
22265
|
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.
|
|
22201
22266
|
|
|
@@ -22498,7 +22563,7 @@ Loading issues…
|
|
|
22498
22563
|
|
|
22499
22564
|
# MultiView
|
|
22500
22565
|
|
|
22501
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22566
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
22502
22567
|
|
|
22503
22568
|
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.
|
|
22504
22569
|
|
|
@@ -22708,7 +22773,7 @@ Loading issues…
|
|
|
22708
22773
|
|
|
22709
22774
|
# Window and dialog
|
|
22710
22775
|
|
|
22711
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22776
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
22712
22777
|
|
|
22713
22778
|
A window or dialog built on the native `<dialog>` element. A single form can be shown as modeless or modal, depending on how you open it. It has a title bar, can be moved, resized, minimized and maximized, and Enter and Escape activate its buttons. Forms can open other forms, and `messageBox` and `confirm` cover common prompts.
|
|
22714
22779
|
|
|
@@ -22912,6 +22977,49 @@ export class RenameForm extends MxForm {
|
|
|
22912
22977
|
}
|
|
22913
22978
|
```
|
|
22914
22979
|
|
|
22980
|
+
## Content that fills the window
|
|
22981
|
+
|
|
22982
|
+
Content taller than the window scrolls in the content area, its padding scrolling with it. Content that is only a part that scrolls by itself (`DataGrid`, `PivotGrid`, `TreeView`, `ScrollView`, `Scheduler`, `Chat`, `Diagram`, `TabDocumentManager`, `SplitContainer`, `DockPanel`, `TileView` or a scrolling `Panel`) has no padding around it: the part fills the content area, grows with the window, and its scroll bar stands at the window's edge. `padding` sets the space for any content and takes precedence.
|
|
22983
|
+
|
|
22984
|
+
```tsx
|
|
22985
|
+
import type { Component } from '@motifx/core';
|
|
22986
|
+
import { Button, DataGrid, MxForm } from '@motifx-community/ui';
|
|
22987
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
22988
|
+
|
|
22989
|
+
type Order = { id: number; customer: string; total: number };
|
|
22990
|
+
|
|
22991
|
+
const orders: Order[] = Array.from({ length: 300 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
22992
|
+
|
|
22993
|
+
const columns: GridColumn<Order>[] = [
|
|
22994
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
22995
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
22996
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
22997
|
+
];
|
|
22998
|
+
|
|
22999
|
+
/** A window whose content is a grid: the grid fills the content area to its edges and grows with the window. */
|
|
23000
|
+
export default function GridWindow() {
|
|
23001
|
+
let host: Component<HTMLDivElement> | null = null;
|
|
23002
|
+
|
|
23003
|
+
const open = () => {
|
|
23004
|
+
const form = new MxForm({
|
|
23005
|
+
title: 'Orders',
|
|
23006
|
+
showMaximize: true,
|
|
23007
|
+
width: '34rem',
|
|
23008
|
+
height: '24rem',
|
|
23009
|
+
content: <DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />,
|
|
23010
|
+
});
|
|
23011
|
+
form.show(host!);
|
|
23012
|
+
};
|
|
23013
|
+
|
|
23014
|
+
return (
|
|
23015
|
+
<>
|
|
23016
|
+
<Button text="Open the orders" variant="outline" onclick={open} />
|
|
23017
|
+
<div ref={(c: Component<HTMLDivElement>) => (host = c)} />
|
|
23018
|
+
</>
|
|
23019
|
+
);
|
|
23020
|
+
}
|
|
23021
|
+
```
|
|
23022
|
+
|
|
22915
23023
|
## Events
|
|
22916
23024
|
|
|
22917
23025
|
`onClosing` can keep the form open, in this case while it has unsaved changes. `reason` distinguishes a user action (close button, Escape) from a programmatic close and from the owner being disposed.
|
|
@@ -23093,6 +23201,7 @@ export default function Localization() {
|
|
|
23093
23201
|
| `title` | `Bind<string>` | `''` | The title in the title bar, which also names the form. This is the same property as `text`. |
|
|
23094
23202
|
| `content` | `Bind<ComponentBase \| null>` | — | Content for the content area, in addition to JSX children and `view()`. |
|
|
23095
23203
|
| `footer` | `Bind<ComponentBase \| null>` | — | A non-scrolling row below the content, for buttons. |
|
|
23204
|
+
| `padding` | `Bind<LayoutSpace>` | The theme's | The space inside the content area's edges, one to four values as in CSS. See [Content that fills the window](#fill). |
|
|
23096
23205
|
| `icon` | `Bind<IconSource \| null>` | — | An icon at the start of the title bar. |
|
|
23097
23206
|
| `showClose` | `Bind<boolean>` | `true` | Shows the close button. |
|
|
23098
23207
|
| `showMinimize` | `Bind<boolean>` | `false` | Shows the minimize button, on modeless forms only. |
|
|
@@ -23272,7 +23381,7 @@ export default function DefaultButtons() {
|
|
|
23272
23381
|
|
|
23273
23382
|
# BottomSheet
|
|
23274
23383
|
|
|
23275
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23384
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
23276
23385
|
|
|
23277
23386
|
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.
|
|
23278
23387
|
|
|
@@ -23596,7 +23705,7 @@ Loading issues…
|
|
|
23596
23705
|
|
|
23597
23706
|
# Drawer
|
|
23598
23707
|
|
|
23599
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23708
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
23600
23709
|
|
|
23601
23710
|
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.
|
|
23602
23711
|
|
|
@@ -23833,7 +23942,7 @@ Loading issues…
|
|
|
23833
23942
|
|
|
23834
23943
|
# ActionSheet
|
|
23835
23944
|
|
|
23836
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23945
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
23837
23946
|
|
|
23838
23947
|
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.
|
|
23839
23948
|
|
|
@@ -24051,14 +24160,14 @@ Loading issues…
|
|
|
24051
24160
|
|
|
24052
24161
|
# Layout
|
|
24053
24162
|
|
|
24054
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
24163
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
24055
24164
|
|
|
24056
24165
|
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.
|
|
24057
24166
|
|
|
24058
24167
|
## Import
|
|
24059
24168
|
|
|
24060
24169
|
```tsx
|
|
24061
|
-
import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace } from '@motifx-community/ui';
|
|
24170
|
+
import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace, type Responsive } from '@motifx-community/ui';
|
|
24062
24171
|
```
|
|
24063
24172
|
|
|
24064
24173
|
## Declarative and programmatic
|
|
@@ -24450,6 +24559,78 @@ export default function NestedSplit() {
|
|
|
24450
24559
|
}
|
|
24451
24560
|
```
|
|
24452
24561
|
|
|
24562
|
+
## Responsive layouts
|
|
24563
|
+
|
|
24564
|
+
Every layout prop of `Stack`, `Grid`, `DockPanel`, `Panel` and `GroupBox`, the `orientation` of `SplitContainer`, and the children's `grow`, cells, `dock` and anchors also take values per breakpoint: `columns={{ xs: 1, md: 2, xl: 4 }}`. A value holds from its breakpoint up to the next one given, and below the narrowest one given the default applies. A plain value works as before.
|
|
24565
|
+
|
|
24566
|
+
The breakpoint is that of the room the container is laid out in, its parent's content box, not the window: a layout in a narrow pane, a split or a window changes even on a wide screen, and a sidebar docked at the side of a wide page still counts as wide. The widths are the design system's `breakpoint` scale, through the `layout.breakpoint.sm`, `md`, `lg` and `xl` tokens, which a theme can change. Only a container given a value per breakpoint follows its width, with the size observer; its first frame already uses the window's width, and `breakpoint` tells the one it is at.
|
|
24567
|
+
|
|
24568
|
+
| Breakpoint | Width | Typically |
|
|
24569
|
+
| --- | --- | --- |
|
|
24570
|
+
| `xs` | Narrower than 560 px | A phone held upright. |
|
|
24571
|
+
| `sm` | 560 px and wider | A large phone, a narrow pane. |
|
|
24572
|
+
| `md` | 768 px and wider | A tablet held upright. |
|
|
24573
|
+
| `lg` | 1024 px and wider | A tablet on its side, a small desktop. |
|
|
24574
|
+
| `xl` | 1440 px and wider | A wide desktop. |
|
|
24575
|
+
|
|
24576
|
+
```tsx
|
|
24577
|
+
import { createSignal, reactive } from '@motifx/core';
|
|
24578
|
+
import { Button, DockPanel, Grid, Panel, Slider, Stack } from '@motifx-community/ui';
|
|
24579
|
+
|
|
24580
|
+
/**
|
|
24581
|
+
* A page laid out by its own width, not the window's: drag the width (wider than the page's column, it scrolls sideways).
|
|
24582
|
+
* The folders move from the side to the top, the cards go from three columns to one, the first card spans the row in
|
|
24583
|
+
* between, and the gaps narrow.
|
|
24584
|
+
*/
|
|
24585
|
+
export default function ResponsiveLayout() {
|
|
24586
|
+
const s = reactive({ width: 1000 });
|
|
24587
|
+
const cards = createSignal<Grid | null>(null);
|
|
24588
|
+
|
|
24589
|
+
return (
|
|
24590
|
+
<>
|
|
24591
|
+
<Stack orientation="horizontal" wrap align="center" gap="md">
|
|
24592
|
+
<Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
|
|
24593
|
+
<output class="layout-breakpoint">{() => `${s.width} px, the cards at ${cards.value?.breakpoint ?? '…'}`}</output>
|
|
24594
|
+
</Stack>
|
|
24595
|
+
<Panel scrollable="horizontal" text="Responsive page" style="inline-size: 100%">
|
|
24596
|
+
<Panel variant="outline" class="layout-responsive" style={() => `inline-size: ${s.width}px`}>
|
|
24597
|
+
<DockPanel gap={{ xs: 'xs', md: 'sm' }} padding="sm">
|
|
24598
|
+
<Stack dock={{ xs: 'top', md: 'start' }} orientation={{ xs: 'horizontal', md: 'vertical' }} wrap={{ xs: true, md: false }} gap="xs" role="group" aria-label="Folders">
|
|
24599
|
+
<Button text="Inbox" size="sm" variant="outline" />
|
|
24600
|
+
<Button text="Drafts" size="sm" variant="outline" />
|
|
24601
|
+
<Button text="Sent" size="sm" variant="outline" />
|
|
24602
|
+
<Button text="Archive" size="sm" variant="outline" />
|
|
24603
|
+
</Stack>
|
|
24604
|
+
<Grid columns={{ xs: 1, sm: 2, lg: 3 }} gap={{ xs: 'xs', md: 'sm' }} ref={(grid: Grid) => (cards.value = grid)}>
|
|
24605
|
+
<Panel variant="card" padding="sm" columnSpan={{ xs: 1, sm: 2, lg: 1 }}>
|
|
24606
|
+
<strong>Orders</strong>
|
|
24607
|
+
<p>128 this week, 12 waiting to ship.</p>
|
|
24608
|
+
</Panel>
|
|
24609
|
+
<Panel variant="card" padding="sm">
|
|
24610
|
+
<strong>Returns</strong>
|
|
24611
|
+
<p>4 open, 2 of them waiting for the parcel.</p>
|
|
24612
|
+
</Panel>
|
|
24613
|
+
<Panel variant="card" padding="sm">
|
|
24614
|
+
<strong>Reviews</strong>
|
|
24615
|
+
<p>31 new, the average is 4.6 stars.</p>
|
|
24616
|
+
</Panel>
|
|
24617
|
+
<Panel variant="card" padding="sm">
|
|
24618
|
+
<strong>Stock</strong>
|
|
24619
|
+
<p>6 products are below their reorder level.</p>
|
|
24620
|
+
</Panel>
|
|
24621
|
+
<Panel variant="card" padding="sm">
|
|
24622
|
+
<strong>Support</strong>
|
|
24623
|
+
<p>9 tickets open, the oldest is 2 days old.</p>
|
|
24624
|
+
</Panel>
|
|
24625
|
+
</Grid>
|
|
24626
|
+
</DockPanel>
|
|
24627
|
+
</Panel>
|
|
24628
|
+
</Panel>
|
|
24629
|
+
</>
|
|
24630
|
+
);
|
|
24631
|
+
}
|
|
24632
|
+
```
|
|
24633
|
+
|
|
24453
24634
|
## Keyboard
|
|
24454
24635
|
|
|
24455
24636
|
| Key | Description |
|
|
@@ -24530,27 +24711,27 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24530
24711
|
|
|
24531
24712
|
| Prop | Type | Default | Description |
|
|
24532
24713
|
| --- | --- | --- | --- |
|
|
24533
|
-
| `orientation` | `Bind<'horizontal' \| 'vertical'
|
|
24534
|
-
| `gap` | `Bind<LayoutSpace
|
|
24535
|
-
| `padding` | `Bind<LayoutSpace
|
|
24536
|
-
| `align` | `Bind<LayoutAlign
|
|
24537
|
-
| `justify` | `Bind<StackJustify
|
|
24538
|
-
| `wrap` | `Bind<boolean
|
|
24539
|
-
| `reverse` | `Bind<boolean
|
|
24714
|
+
| `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'vertical'` | `horizontal` follows the reading direction. |
|
|
24715
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The space between children. |
|
|
24716
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24717
|
+
| `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | Alignment across the direction: `start`, `center`, `end`, `stretch` or `baseline`. |
|
|
24718
|
+
| `justify` | `Bind<Responsive<StackJustify>>` | `'start'` | Alignment along the direction: `start`, `center`, `end`, `space-between`, `space-around` or `space-evenly`. |
|
|
24719
|
+
| `wrap` | `Bind<Responsive<boolean>>` | `false` | Moves children that do not fit to a new line. |
|
|
24720
|
+
| `reverse` | `Bind<Responsive<boolean>>` | `false` | Lays out children from the opposite end. The Tab order stays in document order. |
|
|
24540
24721
|
| `inline` | `Bind<boolean>` | `false` | Flows within a line of text, as wide as its children. |
|
|
24541
24722
|
|
|
24542
24723
|
### Grid props
|
|
24543
24724
|
|
|
24544
24725
|
| Prop | Type | Default | Description |
|
|
24545
24726
|
| --- | --- | --- | --- |
|
|
24546
|
-
| `columns, rows` | `Bind<GridTracks
|
|
24547
|
-
| `gap` | `Bind<LayoutSpace
|
|
24548
|
-
| `rowGap, columnGap` | `Bind<LayoutSpace
|
|
24549
|
-
| `padding` | `Bind<LayoutSpace
|
|
24550
|
-
| `autoRows, autoColumns` | `Bind<number \| string
|
|
24551
|
-
| `flow` | `Bind<GridFlow
|
|
24552
|
-
| `align` | `Bind<LayoutAlign
|
|
24553
|
-
| `justify` | `Bind<GridJustify
|
|
24727
|
+
| `columns, rows` | `Bind<Responsive<GridTracks>>` | One column | See Tracks. |
|
|
24728
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The gap between rows and columns. |
|
|
24729
|
+
| `rowGap, columnGap` | `Bind<Responsive<LayoutSpace>>` | `gap` | The gap in one direction only. |
|
|
24730
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24731
|
+
| `autoRows, autoColumns` | `Bind<Responsive<number \| string>>` | `'auto'` | The size of implicit tracks. A number is in pixels. |
|
|
24732
|
+
| `flow` | `Bind<Responsive<GridFlow>>` | `'row'` | How children without a position fill the grid: `row`, `column`, `row dense` or `column dense`. |
|
|
24733
|
+
| `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | The vertical alignment of children in their cells. |
|
|
24734
|
+
| `justify` | `Bind<Responsive<GridJustify>>` | `'stretch'` | The horizontal alignment of children in their cells. |
|
|
24554
24735
|
| `inline` | `Bind<boolean>` | `false` | Flows within a line of text. |
|
|
24555
24736
|
|
|
24556
24737
|
### Panel props
|
|
@@ -24558,7 +24739,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24558
24739
|
| Prop | Type | Default | Description |
|
|
24559
24740
|
| --- | --- | --- | --- |
|
|
24560
24741
|
| `scrollable` | `Bind<boolean \| 'vertical' \| 'horizontal' \| 'both'>` | `false` | Scrolls its content. It then becomes a Tab stop, so the keyboard can scroll it. |
|
|
24561
|
-
| `padding` | `Bind<LayoutSpace
|
|
24742
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24562
24743
|
| `variant` | `Bind<PanelVariant>` | `'plain'` | `plain`, `outline` (a border) or `card` (a card surface). |
|
|
24563
24744
|
| `text` | `Bind<string>` | `''` | Names the panel, which makes it a region landmark with that name. |
|
|
24564
24745
|
|
|
@@ -24569,22 +24750,22 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24569
24750
|
| `title` | `Bind<string>` | `''` | The legend. `&Address` makes Alt+A move focus to the first control inside. This is the same property as `text`. |
|
|
24570
24751
|
| `collapsible` | `Bind<boolean>` | `false` | Makes the title a button that shows and hides the content. |
|
|
24571
24752
|
| `collapsed` | `Bind<boolean>` | `false` | Hides the content (with `collapsible`). |
|
|
24572
|
-
| `padding` | `Bind<LayoutSpace
|
|
24573
|
-
| `gap` | `Bind<LayoutSpace
|
|
24753
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.padding` | The space inside the frame. |
|
|
24754
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.gap` | The space between children, which stack in a column. |
|
|
24574
24755
|
| `variant` | `Bind<GroupBoxVariant>` | `'outline'` | `outline` (a frame with the title on its edge) or `plain` (the title above the content). |
|
|
24575
24756
|
|
|
24576
24757
|
### DockPanel props
|
|
24577
24758
|
|
|
24578
24759
|
| Prop | Type | Default | Description |
|
|
24579
24760
|
| --- | --- | --- | --- |
|
|
24580
|
-
| `gap` | `Bind<LayoutSpace
|
|
24581
|
-
| `padding` | `Bind<LayoutSpace
|
|
24761
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | — | The space between a docked child and the remaining area. |
|
|
24762
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24582
24763
|
|
|
24583
24764
|
### SplitContainer props
|
|
24584
24765
|
|
|
24585
24766
|
| Prop | Type | Default | Description |
|
|
24586
24767
|
| --- | --- | --- | --- |
|
|
24587
|
-
| `orientation` | `Bind<'horizontal' \| 'vertical'
|
|
24768
|
+
| `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'horizontal'` | `horizontal` places the panes side by side, as in Stack, and `vertical` stacks them. |
|
|
24588
24769
|
| `position` | `Bind<SplitPosition>` | `'50%'` | The size of the pane that keeps its size (the first pane with `fixedPanel="none"`), in pixels, as a share, or as a CSS length. `x-model` binds it. |
|
|
24589
24770
|
| `fixedPanel` | `Bind<'none' \| 'first' \| 'second'>` | `'none'` | The pane that keeps its size when the container is resized. With `none`, both grow and the position is kept as a share. |
|
|
24590
24771
|
| `firstMinSize, secondMinSize` | `Bind<number>` | `0` | The minimum size of each pane, in pixels. |
|
|
@@ -24598,11 +24779,11 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24598
24779
|
|
|
24599
24780
|
| Prop | Used by | Type | Description |
|
|
24600
24781
|
| --- | --- | --- | --- |
|
|
24601
|
-
| `grow` | Stack | `Bind<boolean \| number
|
|
24602
|
-
| `row, column` | Grid | `Bind<number \| string
|
|
24603
|
-
| `rowSpan, columnSpan` | Grid | `Bind<number
|
|
24604
|
-
| `dock` | DockPanel | `Bind<Dock
|
|
24605
|
-
| `left, top, right, bottom` | DockPanel | `Bind<number \| string
|
|
24782
|
+
| `grow` | Stack | `Bind<Responsive<boolean \| number>>` | Takes the free space along the direction. Numbers share it proportionally. |
|
|
24783
|
+
| `row, column` | Grid | `Bind<Responsive<number \| string>>` | The starting line, counted from 1. A string is passed to CSS as is (`-1`). |
|
|
24784
|
+
| `rowSpan, columnSpan` | Grid | `Bind<Responsive<number>>` | The number of tracks it spans. |
|
|
24785
|
+
| `dock` | DockPanel | `Bind<Responsive<Dock>>` | `top`, `bottom`, `start`, `end`, `fill` (the default) or `float`. |
|
|
24786
|
+
| `left, top, right, bottom` | DockPanel | `Bind<Responsive<number \| string>>` | The anchors of a `float` child. A number is in pixels, and `left` plus `right` stretches it. |
|
|
24606
24787
|
|
|
24607
24788
|
### Properties
|
|
24608
24789
|
|
|
@@ -24613,6 +24794,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24613
24794
|
| `SplitContainer.splitterPart` | read-only | The `role="separator"` part. |
|
|
24614
24795
|
| `SplitContainer.value` | read/write | Maps to `position` for `x-model`. |
|
|
24615
24796
|
| `GroupBox.legendPart` | read-only | The `<legend>` part. |
|
|
24797
|
+
| `breakpoint` | read-only | The breakpoint of the room the container is laid out in (`xs`, `sm`, `md`, `lg` or `xl`), by which its values per breakpoint are picked. See [Responsive layouts](#responsive). |
|
|
24616
24798
|
|
|
24617
24799
|
### Methods
|
|
24618
24800
|
|
|
@@ -24643,7 +24825,7 @@ Loading issues…
|
|
|
24643
24825
|
|
|
24644
24826
|
# Splitter
|
|
24645
24827
|
|
|
24646
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
24828
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
24647
24829
|
|
|
24648
24830
|
Divides space into any number of resizable panes, arranged side by side or stacked. A handle between each pair of panes can be dragged or moved with the keyboard, and it resizes the two panes next to it. Panes can be collapsed from their handle and can contain another splitter. For two panes where one has a fixed size, see [SplitContainer](layout.md).
|
|
24649
24831
|
|
|
@@ -24855,7 +25037,7 @@ Loading issues…
|
|
|
24855
25037
|
|
|
24856
25038
|
# Resizable
|
|
24857
25039
|
|
|
24858
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25040
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
24859
25041
|
|
|
24860
25042
|
A box that users can resize from its edges and corners with the pointer, or with the arrow keys on the grip in its end corner. It respects minimum and maximum sizes, can stay within an area, and can preserve its aspect ratio.
|
|
24861
25043
|
|
|
@@ -25002,7 +25184,7 @@ Loading issues…
|
|
|
25002
25184
|
|
|
25003
25185
|
# Draggable and DropTarget
|
|
25004
25186
|
|
|
25005
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25187
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
25006
25188
|
|
|
25007
25189
|
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).
|
|
25008
25190
|
|
|
@@ -25204,7 +25386,7 @@ Loading issues…
|
|
|
25204
25386
|
|
|
25205
25387
|
# ScrollView
|
|
25206
25388
|
|
|
25207
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25389
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
25208
25390
|
|
|
25209
25391
|
A scrollable container with configurable scrollbars, pull-to-refresh, and load-on-scroll near the end of the content. You can scroll it programmatically to a position or an element.
|
|
25210
25392
|
|
|
@@ -25398,7 +25580,7 @@ Loading issues…
|
|
|
25398
25580
|
|
|
25399
25581
|
# Sortable
|
|
25400
25582
|
|
|
25401
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25583
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
25402
25584
|
|
|
25403
25585
|
Lets users reorder items by dragging them with the pointer or a finger, or with the keyboard. Lists in the same group can exchange items. A drop moves the element and reports the indexes, while your data stays under your control.
|
|
25404
25586
|
|
|
@@ -25616,7 +25798,7 @@ Loading issues…
|
|
|
25616
25798
|
|
|
25617
25799
|
# FormLayout
|
|
25618
25800
|
|
|
25619
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25801
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
25620
25802
|
|
|
25621
25803
|
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.
|
|
25622
25804
|
|
|
@@ -25705,6 +25887,51 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25705
25887
|
{ group: 'Address', field: 'address', columns: 2, items: [{ field: 'city', label: 'City' }, { field: 'zip', label: 'Zip' }] }
|
|
25706
25888
|
```
|
|
25707
25889
|
|
|
25890
|
+
## Responsive forms
|
|
25891
|
+
|
|
25892
|
+
`columns`, `minColumnWidth`, `labelMode`, an item's `colSpan` and a group's or a tab's `columns` also take values per breakpoint of the room the form is laid out in: `columns={{ xs: 1, md: 2, lg: 3 }}`, `labelMode={{ xs: 'top', lg: 'side' }}`. A value holds from its breakpoint up to the next one given. The breakpoints and how they are measured are those of the [layout containers](layout.md#responsive).
|
|
25893
|
+
|
|
25894
|
+
`minColumnWidth` lays out as many columns as fit, each at least that wide, without measuring anything: with `columns` given, never more than that many.
|
|
25895
|
+
|
|
25896
|
+
```tsx
|
|
25897
|
+
import { createSignal, reactive } from '@motifx/core';
|
|
25898
|
+
import { FormLayout, Panel, Slider, Stack, type FormItem } from '@motifx-community/ui';
|
|
25899
|
+
|
|
25900
|
+
/**
|
|
25901
|
+
* A form laid out by the room it is in: drag the width (wider than the page's column, it scrolls sideways). It goes from
|
|
25902
|
+
* one column with the labels on top to three columns with the labels beside the boxes, and the note takes the whole
|
|
25903
|
+
* row until there is room for it beside the others.
|
|
25904
|
+
*/
|
|
25905
|
+
export default function ResponsiveForm() {
|
|
25906
|
+
const s = reactive({ width: 900 });
|
|
25907
|
+
const order = reactive({ customer: 'Ada Lovelace', email: '', phone: '', city: 'İstanbul', zip: '', note: '' });
|
|
25908
|
+
const form = createSignal<FormLayout<typeof order> | null>(null);
|
|
25909
|
+
|
|
25910
|
+
const items: FormItem[] = [
|
|
25911
|
+
{ field: 'customer', label: 'Customer' },
|
|
25912
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
25913
|
+
{ field: 'phone', label: 'Phone' },
|
|
25914
|
+
{ field: 'city', label: 'City' },
|
|
25915
|
+
{ field: 'zip', label: 'Zip code' },
|
|
25916
|
+
{ field: 'note', label: 'Note', colSpan: { xs: 'all', lg: 1 } },
|
|
25917
|
+
];
|
|
25918
|
+
|
|
25919
|
+
return (
|
|
25920
|
+
<>
|
|
25921
|
+
<Stack orientation="horizontal" wrap align="center" gap="md">
|
|
25922
|
+
<Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
|
|
25923
|
+
<output class="form-breakpoint">{() => `${s.width} px, the form at ${form.value?.breakpoint ?? '…'}`}</output>
|
|
25924
|
+
</Stack>
|
|
25925
|
+
<Panel scrollable="horizontal" text="Responsive form" style="inline-size: 100%">
|
|
25926
|
+
<Panel variant="outline" padding="sm" class="form-responsive" style={() => `inline-size: ${s.width}px`}>
|
|
25927
|
+
<FormLayout data={order} items={items} columns={{ xs: 1, md: 2, lg: 3 }} labelMode={{ xs: 'top', lg: 'side' }} ref={(f: FormLayout<typeof order>) => (form.value = f)} />
|
|
25928
|
+
</Panel>
|
|
25929
|
+
</Panel>
|
|
25930
|
+
</>
|
|
25931
|
+
);
|
|
25932
|
+
}
|
|
25933
|
+
```
|
|
25934
|
+
|
|
25708
25935
|
## From a schema
|
|
25709
25936
|
|
|
25710
25937
|
`schemaItems` makes the items from a schema of the data object, and the same schema checks the value: see [FormLayout: From a schema](formlayout-schema.md).
|
|
@@ -25717,9 +25944,9 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25717
25944
|
| --- | --- | --- | --- |
|
|
25718
25945
|
| `data` | `Bind<T \| null>` | — | The object the editors display and change. |
|
|
25719
25946
|
| `items` | `Bind<readonly FormItem[]>` | `[]` | The form items. A function is tracked. |
|
|
25720
|
-
| `columns` | `Bind<number
|
|
25721
|
-
| `minColumnWidth` | `Bind<string
|
|
25722
|
-
| `labelMode` | `Bind<FieldLabelMode
|
|
25947
|
+
| `columns` | `Bind<Responsive<number>>` | `1` | The number of grid columns. See [Responsive forms](#responsive). |
|
|
25948
|
+
| `minColumnWidth` | `Bind<Responsive<string>>` | — | As many columns as fit, each at least this wide, and no more than `columns` when it is given. |
|
|
25949
|
+
| `labelMode` | `Bind<Responsive<FieldLabelMode>>` | `'top'` | Passed to every editor. |
|
|
25723
25950
|
| `readOnly` | `Bind<boolean>` | `false` | Makes every editor read-only. |
|
|
25724
25951
|
| `onValidSubmit(e) / onInvalidSubmit(e)` | | | Occurs when the form is submitted and valid (`{ data, event }`) or submitted and invalid (`{ valid, invalid }`). |
|
|
25725
25952
|
|
|
@@ -25729,8 +25956,8 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25729
25956
|
| --- | --- |
|
|
25730
25957
|
| `field, label, editor, editorProps` | The property, its label, its editor and the editor's props. |
|
|
25731
25958
|
| `required, rules, helpText, enabled, readOnly, visible` | Passed to the editor, each as a value or a function. `visible` hides the item. |
|
|
25732
|
-
| `colSpan` | The number of columns it spans. Use `'all'` for the whole row. |
|
|
25733
|
-
| `group, items, columns` | A labeled group with its own columns. With a `field`, its items edit the object in that field. |
|
|
25959
|
+
| `colSpan` | The number of columns it spans. Use `'all'` for the whole row. Also per breakpoint: `{ xs: 'all', md: 1 }`. |
|
|
25960
|
+
| `group, items, columns` | A labeled group with its own columns, also per breakpoint. With a `field`, its items edit the object in that field. |
|
|
25734
25961
|
| `button` | Button props. `submit: true` submits the form. |
|
|
25735
25962
|
| `template` | Any component created for this item. |
|
|
25736
25963
|
|
|
@@ -25743,6 +25970,7 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25743
25970
|
| `refresh()` | Your data object and items can be plain or reactive, and the form reads them as they are. After changing them in place, call `refresh()`. Every editor re-reads its value, items re-read their text and states, and added or removed items redraw the form. |
|
|
25744
25971
|
| `refreshField(field)` | Re-reads one field of the data object after it has been changed in place. |
|
|
25745
25972
|
| `validationGroup, isValid` | The validation group of the fields. |
|
|
25973
|
+
| `breakpoint` | The breakpoint of the room the form is laid out in, by which its values per breakpoint are picked. |
|
|
25746
25974
|
| `FormLayout.editors` | The editors registered by name. |
|
|
25747
25975
|
|
|
25748
25976
|
## Feedback
|
|
@@ -25754,7 +25982,7 @@ Loading issues…
|
|
|
25754
25982
|
|
|
25755
25983
|
# FormLayout: From a schema
|
|
25756
25984
|
|
|
25757
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25985
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
25758
25986
|
|
|
25759
25987
|
A form can be made from a schema of its data object: a field for each property, with the editor its type, values and format call for, its title as the label and its description as the help text. The same schema checks the value in the form, in the application and on a server, with the data layer's `jsonSchema`, a subset of JSON Schema.
|
|
25760
25988
|
|
|
@@ -25901,7 +26129,7 @@ Loading issues…
|
|
|
25901
26129
|
|
|
25902
26130
|
# Chart
|
|
25903
26131
|
|
|
25904
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26132
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
25905
26133
|
|
|
25906
26134
|
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.
|
|
25907
26135
|
|
|
@@ -26332,7 +26560,7 @@ export default class Programmatic extends Component<HTMLDivElement> {
|
|
|
26332
26560
|
|
|
26333
26561
|
# Chart: Lines and areas
|
|
26334
26562
|
|
|
26335
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26563
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
26336
26564
|
|
|
26337
26565
|
Lines and areas show how values change along an axis: over time, or from one category to the next.
|
|
26338
26566
|
|
|
@@ -26464,7 +26692,7 @@ Loading issues…
|
|
|
26464
26692
|
|
|
26465
26693
|
# Chart: Bars
|
|
26466
26694
|
|
|
26467
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26695
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
26468
26696
|
|
|
26469
26697
|
Bars compare amounts. They stand on a common baseline, so lengths compare exactly, side by side, stacked, or on their side for long names.
|
|
26470
26698
|
|
|
@@ -26610,7 +26838,7 @@ export const SALES = [
|
|
|
26610
26838
|
|
|
26611
26839
|
# Chart: Scatter and bubble
|
|
26612
26840
|
|
|
26613
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26841
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
26614
26842
|
|
|
26615
26843
|
Scatter and bubble charts place each row by two numbers, to show how they relate.
|
|
26616
26844
|
|
|
@@ -26753,7 +26981,7 @@ Loading issues…
|
|
|
26753
26981
|
|
|
26754
26982
|
# Chart: Pie and donut
|
|
26755
26983
|
|
|
26756
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26984
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
26757
26985
|
|
|
26758
26986
|
A pie or a donut splits one whole into its parts, for a share seen at a glance.
|
|
26759
26987
|
|
|
@@ -26882,7 +27110,7 @@ Loading issues…
|
|
|
26882
27110
|
|
|
26883
27111
|
# Chart: Funnel
|
|
26884
27112
|
|
|
26885
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27113
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
26886
27114
|
|
|
26887
27115
|
A funnel follows a quantity through stages in order, and shows how much of it is left at each one.
|
|
26888
27116
|
|
|
@@ -27001,7 +27229,7 @@ Loading issues…
|
|
|
27001
27229
|
|
|
27002
27230
|
# Chart: Radar
|
|
27003
27231
|
|
|
27004
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27232
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27005
27233
|
|
|
27006
27234
|
A radar compares several measures at once, for one or more items.
|
|
27007
27235
|
|
|
@@ -27129,7 +27357,7 @@ Loading issues…
|
|
|
27129
27357
|
|
|
27130
27358
|
# Chart: Heat map
|
|
27131
27359
|
|
|
27132
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27360
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27133
27361
|
|
|
27134
27362
|
A heat map shows a value for each pair of two categories as a color.
|
|
27135
27363
|
|
|
@@ -27226,7 +27454,7 @@ Loading issues…
|
|
|
27226
27454
|
|
|
27227
27455
|
# Chart: Ranges
|
|
27228
27456
|
|
|
27229
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27457
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27230
27458
|
|
|
27231
27459
|
Ranges show a low and a high value for each position, as a band or as floating bars.
|
|
27232
27460
|
|
|
@@ -27357,7 +27585,7 @@ Loading issues…
|
|
|
27357
27585
|
|
|
27358
27586
|
# Chart: Candles
|
|
27359
27587
|
|
|
27360
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27588
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27361
27589
|
|
|
27362
27590
|
Candles show the first, highest, lowest and last price for each position.
|
|
27363
27591
|
|
|
@@ -27525,7 +27753,7 @@ Loading issues…
|
|
|
27525
27753
|
|
|
27526
27754
|
# Chart: Waterfall
|
|
27527
27755
|
|
|
27528
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27756
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27529
27757
|
|
|
27530
27758
|
A waterfall shows how a starting value becomes an end value through changes up and down.
|
|
27531
27759
|
|
|
@@ -27640,7 +27868,7 @@ Loading issues…
|
|
|
27640
27868
|
|
|
27641
27869
|
# Chart: Zoom and large data
|
|
27642
27870
|
|
|
27643
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27871
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27644
27872
|
|
|
27645
27873
|
Large data stays quick: long lines are thinned to the width with their peaks kept, and the reader zooms in for detail.
|
|
27646
27874
|
|
|
@@ -27739,7 +27967,7 @@ Loading issues…
|
|
|
27739
27967
|
|
|
27740
27968
|
# Chart: Live data
|
|
27741
27969
|
|
|
27742
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27970
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27743
27971
|
|
|
27744
27972
|
A chart follows its data: reactive values redraw it, and live data moves along with the latest values.
|
|
27745
27973
|
|
|
@@ -27805,7 +28033,7 @@ Loading issues…
|
|
|
27805
28033
|
|
|
27806
28034
|
# Chart: References and selection
|
|
27807
28035
|
|
|
27808
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
28036
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27809
28037
|
|
|
27810
28038
|
Reference lines and bands give the values a target, a limit or a period, and the reader can choose values to act on.
|
|
27811
28039
|
|
|
@@ -27935,7 +28163,7 @@ export default function Selection() {
|
|
|
27935
28163
|
|
|
27936
28164
|
# Sparkline
|
|
27937
28165
|
|
|
27938
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
28166
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
27939
28167
|
|
|
27940
28168
|
A chart the size of a word, for a trend beside a number, in a sentence or in a row of a table. It draws a line, an area, bars, or wins and losses, and marks the values that matter.
|
|
27941
28169
|
|
|
@@ -28058,7 +28286,7 @@ Loading issues…
|
|
|
28058
28286
|
|
|
28059
28287
|
# Gauge
|
|
28060
28288
|
|
|
28061
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28289
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28062
28290
|
|
|
28063
28291
|
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.
|
|
28064
28292
|
|
|
@@ -28214,7 +28442,7 @@ Loading issues…
|
|
|
28214
28442
|
|
|
28215
28443
|
# Gauge: Circular
|
|
28216
28444
|
|
|
28217
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28445
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28218
28446
|
|
|
28219
28447
|
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.
|
|
28220
28448
|
|
|
@@ -28319,7 +28547,7 @@ Loading issues…
|
|
|
28319
28547
|
|
|
28320
28548
|
# Gauge: Linear
|
|
28321
28549
|
|
|
28322
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28550
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28323
28551
|
|
|
28324
28552
|
A linear gauge shows its value on a straight bar, across or upright. Bars fit in narrow places, line up in lists, and compare well side by side.
|
|
28325
28553
|
|
|
@@ -28407,7 +28635,7 @@ Loading issues…
|
|
|
28407
28635
|
|
|
28408
28636
|
# Gauge: Scales
|
|
28409
28637
|
|
|
28410
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28638
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28411
28639
|
|
|
28412
28640
|
The scale tells the reader how to read the value: its ends, ticks with their values, or nothing at all.
|
|
28413
28641
|
|
|
@@ -28528,7 +28756,7 @@ Loading issues…
|
|
|
28528
28756
|
|
|
28529
28757
|
# Gauge: Ranges
|
|
28530
28758
|
|
|
28531
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28759
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28532
28760
|
|
|
28533
28761
|
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.
|
|
28534
28762
|
|
|
@@ -28665,7 +28893,7 @@ Loading issues…
|
|
|
28665
28893
|
|
|
28666
28894
|
# Gauge: Markers
|
|
28667
28895
|
|
|
28668
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28896
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28669
28897
|
|
|
28670
28898
|
A marker points at the value: a needle from the middle of an arc, a shape on or beside the track, or a callout that writes the value.
|
|
28671
28899
|
|
|
@@ -28804,7 +29032,7 @@ Loading issues…
|
|
|
28804
29032
|
|
|
28805
29033
|
# Gauge: Marks
|
|
28806
29034
|
|
|
28807
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29035
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28808
29036
|
|
|
28809
29037
|
Marks show other values on the scale besides the gauge's own, such as a target, a limit, or the lowest and highest expected.
|
|
28810
29038
|
|
|
@@ -28916,7 +29144,7 @@ Loading issues…
|
|
|
28916
29144
|
|
|
28917
29145
|
# Gauge: Base value
|
|
28918
29146
|
|
|
28919
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29147
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
28920
29148
|
|
|
28921
29149
|
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.
|
|
28922
29150
|
|
|
@@ -28998,7 +29226,7 @@ Loading issues…
|
|
|
28998
29226
|
|
|
28999
29227
|
# Gauge: Dashboards
|
|
29000
29228
|
|
|
29001
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29229
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
29002
29230
|
|
|
29003
29231
|
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.
|
|
29004
29232
|
|
|
@@ -29136,7 +29364,7 @@ Loading issues…
|
|
|
29136
29364
|
|
|
29137
29365
|
# BarGauge
|
|
29138
29366
|
|
|
29139
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29367
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
29140
29368
|
|
|
29141
29369
|
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.
|
|
29142
29370
|
|
|
@@ -29238,7 +29466,7 @@ Loading issues…
|
|
|
29238
29466
|
|
|
29239
29467
|
# BarGauge: Labels and legend
|
|
29240
29468
|
|
|
29241
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29469
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
29242
29470
|
|
|
29243
29471
|
Each value can be written at the end of its bar, named in a legend, and shown with its name under the pointer.
|
|
29244
29472
|
|
|
@@ -29320,7 +29548,7 @@ Loading issues…
|
|
|
29320
29548
|
|
|
29321
29549
|
# BarGauge: Data
|
|
29322
29550
|
|
|
29323
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29551
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
29324
29552
|
|
|
29325
29553
|
A bar gauge reads numbers, or rows through their fields, and follows them as they change.
|
|
29326
29554
|
|
|
@@ -29446,7 +29674,7 @@ Loading issues…
|
|
|
29446
29674
|
|
|
29447
29675
|
# BarGauge: Angles and size
|
|
29448
29676
|
|
|
29449
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29677
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
29450
29678
|
|
|
29451
29679
|
How far the bars go round and which way they face fit a bar gauge to the room it has.
|
|
29452
29680
|
|
|
@@ -29537,7 +29765,7 @@ Loading issues…
|
|
|
29537
29765
|
|
|
29538
29766
|
# Data
|
|
29539
29767
|
|
|
29540
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
29768
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
29541
29769
|
|
|
29542
29770
|
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).
|
|
29543
29771
|
|
|
@@ -29668,7 +29896,7 @@ Loading issues…
|
|
|
29668
29896
|
|
|
29669
29897
|
# TreeView
|
|
29670
29898
|
|
|
29671
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
29899
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
29672
29900
|
|
|
29673
29901
|
Displays items in a hierarchy. Rows can be expanded and collapsed, selected individually or in groups, and searched. Check boxes can roll up to parent rows, and children can load on demand when a row is first expanded. Large trees render only the visible rows.
|
|
29674
29902
|
|
|
@@ -29770,7 +29998,7 @@ export interface Entry {
|
|
|
29770
29998
|
|
|
29771
29999
|
## Flat data, fields and templates
|
|
29772
30000
|
|
|
29773
|
-
Flat rows reference their parent through `parentField`, which defaults to `parentId`. Any field can be a property name or a function. `itemTemplate` customizes a row's content: what it adds to its `host` goes with the row, and a cleanup it returns, for what lives outside the row, runs as the row goes (drawn again or the tree gone; a closed row's rows stay drawn). `enabledField` and `
|
|
30001
|
+
Flat rows reference their parent through `parentField`, which defaults to `parentId`. Any field can be a property name or a function. `itemTemplate` customizes a row's content: what it adds to its `host` goes with the row, and a cleanup it returns, for what lives outside the row, runs as the row goes (drawn again or the tree gone; a closed row's rows stay drawn). `enabledField` and `expandedField` apply per row.
|
|
29774
30002
|
|
|
29775
30003
|
```tsx
|
|
29776
30004
|
/** A row of the trees on this page. */
|
|
@@ -30430,7 +30658,7 @@ export default function SizesAndLines() {
|
|
|
30430
30658
|
|
|
30431
30659
|
# ListBox
|
|
30432
30660
|
|
|
30433
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
30661
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
30434
30662
|
|
|
30435
30663
|
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.
|
|
30436
30664
|
|
|
@@ -30813,7 +31041,7 @@ export default function Validation() {
|
|
|
30813
31041
|
|
|
30814
31042
|
# TagBox
|
|
30815
31043
|
|
|
30816
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
31044
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
30817
31045
|
|
|
30818
31046
|
Selects multiple items. Selected items appear as tags in the field, followed by a text input that searches the list. Items can come from memory or from a data source, and typed text can become a custom tag.
|
|
30819
31047
|
|
|
@@ -31182,7 +31410,7 @@ export default function Localization() {
|
|
|
31182
31410
|
|
|
31183
31411
|
# FilterBuilder
|
|
31184
31412
|
|
|
31185
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
31413
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
31186
31414
|
|
|
31187
31415
|
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.
|
|
31188
31416
|
|
|
@@ -31791,7 +32019,7 @@ export default function Localization() {
|
|
|
31791
32019
|
|
|
31792
32020
|
# Expression language
|
|
31793
32021
|
|
|
31794
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
32022
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
31795
32023
|
|
|
31796
32024
|
The data package carries a small expression language for the conditions, values and texts an application computes from data: the condition of a rule, the value a flow writes into a step, the body of a message. An expression changes nothing and reaches nothing by itself — it reads only the names it is given and their own fields, the moment and the time zone come from the evaluation, and limits stop runaway work — so the same expression with the same values always gives the same result, in the browser and on a server. It is checked against a schema as it is written, and it travels as text with a plain JSON tree.
|
|
31797
32025
|
|
|
@@ -32226,7 +32454,7 @@ Loading issues…
|
|
|
32226
32454
|
|
|
32227
32455
|
# RibbonMenu
|
|
32228
32456
|
|
|
32229
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32457
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32230
32458
|
|
|
32231
32459
|
The commands of an application in tabs, each tab in named groups of large, medium and small commands. It adapts to the room it has, can show only its tabs or hide itself, and lets users arrange it to their liking. The menu holds nothing of its own: the tabs, the groups and the commands are given by the application.
|
|
32232
32460
|
|
|
@@ -32465,7 +32693,7 @@ Loading issues…
|
|
|
32465
32693
|
|
|
32466
32694
|
# RibbonMenu: Commands
|
|
32467
32695
|
|
|
32468
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32696
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32469
32697
|
|
|
32470
32698
|
A group holds commands of three sizes and eight types. Every field of a command is a value or a function the menu follows, so the commands change with the application’s state.
|
|
32471
32699
|
|
|
@@ -32587,7 +32815,7 @@ Loading issues…
|
|
|
32587
32815
|
|
|
32588
32816
|
# RibbonMenu: Layouts and room
|
|
32589
32817
|
|
|
32590
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32818
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32591
32819
|
|
|
32592
32820
|
The menu has two layouts, and gives way step by step when its room shrinks: commands become smaller, groups fold, and what is left scrolls. Narrow enough, it turns compact.
|
|
32593
32821
|
|
|
@@ -32650,7 +32878,7 @@ Loading issues…
|
|
|
32650
32878
|
|
|
32651
32879
|
# RibbonMenu: Showing and keys
|
|
32652
32880
|
|
|
32653
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32881
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32654
32882
|
|
|
32655
32883
|
The menu can show only its tabs or hide itself to leave the page more room. A button before the tabs opens the app’s main menu, quick commands are at hand from every tab, and key hints let the keyboard reach any command in a few letters.
|
|
32656
32884
|
|
|
@@ -32750,7 +32978,7 @@ Loading issues…
|
|
|
32750
32978
|
|
|
32751
32979
|
# RibbonMenu: Customization
|
|
32752
32980
|
|
|
32753
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32981
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32754
32982
|
|
|
32755
32983
|
Users arrange the menu from its context menu: they hide what they never use, move what they use most, and add commands to the quick commands. Everything they change is one plain object, to save and give back.
|
|
32756
32984
|
|
|
@@ -32848,7 +33076,7 @@ Loading issues…
|
|
|
32848
33076
|
|
|
32849
33077
|
# RibbonMenu: Programmatic changes
|
|
32850
33078
|
|
|
32851
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
33079
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32852
33080
|
|
|
32853
33081
|
Tabs, groups and commands can be added, removed, moved and changed at any time, by their paths. The menu redraws only what changed: groups and commands that stay keep their buttons, their state and their place.
|
|
32854
33082
|
|
|
@@ -32943,7 +33171,7 @@ Loading issues…
|
|
|
32943
33171
|
|
|
32944
33172
|
# RibbonMenu: API reference
|
|
32945
33173
|
|
|
32946
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
33174
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.19
|
|
32947
33175
|
|
|
32948
33176
|
Everything `RibbonMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
|
|
32949
33177
|
|
|
@@ -33078,7 +33306,7 @@ Loading issues…
|
|
|
33078
33306
|
|
|
33079
33307
|
# MenuBar and ContextMenu
|
|
33080
33308
|
|
|
33081
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33309
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33082
33310
|
|
|
33083
33311
|
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.
|
|
33084
33312
|
|
|
@@ -33242,7 +33470,7 @@ Loading issues…
|
|
|
33242
33470
|
|
|
33243
33471
|
# MenuBar: ContextMenu
|
|
33244
33472
|
|
|
33245
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33473
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33246
33474
|
|
|
33247
33475
|
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.
|
|
33248
33476
|
|
|
@@ -33373,7 +33601,7 @@ Loading issues…
|
|
|
33373
33601
|
|
|
33374
33602
|
# MenuBar: Customization
|
|
33375
33603
|
|
|
33376
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33604
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33377
33605
|
|
|
33378
33606
|
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.
|
|
33379
33607
|
|
|
@@ -33519,7 +33747,7 @@ Loading issues…
|
|
|
33519
33747
|
|
|
33520
33748
|
# MenuBar: Programmatic changes
|
|
33521
33749
|
|
|
33522
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33750
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33523
33751
|
|
|
33524
33752
|
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.
|
|
33525
33753
|
|
|
@@ -33597,7 +33825,7 @@ Loading issues…
|
|
|
33597
33825
|
|
|
33598
33826
|
# MenuBar: Merging menus
|
|
33599
33827
|
|
|
33600
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33828
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33601
33829
|
|
|
33602
33830
|
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.
|
|
33603
33831
|
|
|
@@ -33809,7 +34037,7 @@ Loading issues…
|
|
|
33809
34037
|
|
|
33810
34038
|
# MenuBar: API reference
|
|
33811
34039
|
|
|
33812
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
34040
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.19
|
|
33813
34041
|
|
|
33814
34042
|
Every prop, property, method and event of `MenuBar` and `ContextMenu`, the fields of a menu item, and the styling hooks and tokens.
|
|
33815
34043
|
|
|
@@ -33957,7 +34185,7 @@ Loading issues…
|
|
|
33957
34185
|
|
|
33958
34186
|
# Toolbar
|
|
33959
34187
|
|
|
33960
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34188
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.19
|
|
33961
34189
|
|
|
33962
34190
|
A command bar that holds buttons, toggle buttons, menus and fields, organized in groups with separators. The toolbar is a single Tab stop, and the arrow keys move between its controls. Items that do not fit move into an overflow menu at the end. You can define items as data, as JSX children, or both. The user can arrange a toolbar and send commands to it from the menus of the page ([Customization](toolbar-customization.md)); every prop, method and event is in the [API reference](toolbar-api.md).
|
|
33963
34191
|
|
|
@@ -34379,7 +34607,7 @@ export default function SizeAndOrientation() {
|
|
|
34379
34607
|
|
|
34380
34608
|
# Toolbar: Customization
|
|
34381
34609
|
|
|
34382
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34610
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.19
|
|
34383
34611
|
|
|
34384
34612
|
With `customizable`, the user arranges a toolbar: hides, moves and renames its items, adds commands and separators, chooses what a button shows, sends commands to it from the menus of the page, and changes keyboard shortcuts. The items you give stay as they are; what the user changed is one object for the app to save.
|
|
34385
34613
|
|
|
@@ -34644,7 +34872,7 @@ export default function SendToToolbar() {
|
|
|
34644
34872
|
|
|
34645
34873
|
# Toolbar: API reference
|
|
34646
34874
|
|
|
34647
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34875
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.19
|
|
34648
34876
|
|
|
34649
34877
|
Every prop, property, method and event of `Toolbar`, and the fields of its items.
|
|
34650
34878
|
|
|
@@ -34728,7 +34956,7 @@ Loading issues…
|
|
|
34728
34956
|
|
|
34729
34957
|
# AppMenu
|
|
34730
34958
|
|
|
34731
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
34959
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
34732
34960
|
|
|
34733
34961
|
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.
|
|
34734
34962
|
|
|
@@ -34882,7 +35110,7 @@ Loading issues…
|
|
|
34882
35110
|
|
|
34883
35111
|
# AppMenu: Slots and search
|
|
34884
35112
|
|
|
34885
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35113
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
34886
35114
|
|
|
34887
35115
|
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.
|
|
34888
35116
|
|
|
@@ -34952,7 +35180,7 @@ Loading issues…
|
|
|
34952
35180
|
|
|
34953
35181
|
# AppMenu: Programmatic changes
|
|
34954
35182
|
|
|
34955
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35183
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
34956
35184
|
|
|
34957
35185
|
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.
|
|
34958
35186
|
|
|
@@ -35032,7 +35260,7 @@ Loading issues…
|
|
|
35032
35260
|
|
|
35033
35261
|
# AppMenu: API reference
|
|
35034
35262
|
|
|
35035
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35263
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
35036
35264
|
|
|
35037
35265
|
Everything `AppMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
|
|
35038
35266
|
|
|
@@ -35119,7 +35347,7 @@ Loading issues…
|
|
|
35119
35347
|
|
|
35120
35348
|
# TabDocumentManager
|
|
35121
35349
|
|
|
35122
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
35350
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
35123
35351
|
|
|
35124
35352
|
A document manager that arranges content the way code editors arrange files: documents in tabs, tabs in groups, and groups split side by side or one above the other. A document's content can be any component, such as a form, a grid or plain text, and it is moved rather than recreated when its tab goes to another group. Every user action is also a method, with a cancelable event before it and a notification after it, and the whole layout can be saved to JSON and restored. Preview and pinned tabs, sizes and copies are covered in [Tabs](tabdocs-tabs.md), and context menus, lists and keyboard shortcuts in [Menus and keys](tabdocs-menus.md).
|
|
35125
35353
|
|
|
@@ -36015,7 +36243,7 @@ export default function SaveRestore() {
|
|
|
36015
36243
|
|
|
36016
36244
|
# TabDocumentManager: Tabs
|
|
36017
36245
|
|
|
36018
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
36246
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
36019
36247
|
|
|
36020
36248
|
Tabs that behave as they do in code editors: preview tabs replaced by the next preview, pinned tabs that stay at the start, tabs that shrink, wrap or scroll, counts and colors, and the same document open in two groups.
|
|
36021
36249
|
|
|
@@ -36853,7 +37081,7 @@ export default function Duplicates() {
|
|
|
36853
37081
|
|
|
36854
37082
|
# TabDocumentManager: Menus and keys
|
|
36855
37083
|
|
|
36856
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
37084
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
36857
37085
|
|
|
36858
37086
|
The commands around tabs: context menus on tabs and on the empty strip, a searchable list of a group's documents, application toolbar buttons, the recently used list, back and forward, reopening closed documents, locked groups, and keyboard shortcuts for all of them.
|
|
36859
37087
|
|
|
@@ -37550,7 +37778,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
37550
37778
|
|
|
37551
37779
|
# TabDocumentManager: Drag and drop
|
|
37552
37780
|
|
|
37553
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
37781
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
37554
37782
|
|
|
37555
37783
|
Drag tabs and whole groups as you would in a code editor: along a strip, to another group, beside a group, along an edge of the layout, or between two managers. The same moves are available from the keyboard, and every drop goes through the methods and events of the action it performs.
|
|
37556
37784
|
|
|
@@ -38112,7 +38340,7 @@ export default function MoveWithKeys() {
|
|
|
38112
38340
|
|
|
38113
38341
|
# TabDocumentManager: Dock and floating windows
|
|
38114
38342
|
|
|
38115
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
38343
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
38116
38344
|
|
|
38117
38345
|
Documents and whole groups can float in their own windows within the page, and dock again into document groups or into dock areas around them, which can collapse to the edge of the manager. The mouse, the keyboard and the API all perform the same actions through the same events.
|
|
38118
38346
|
|
|
@@ -38997,7 +39225,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
38997
39225
|
|
|
38998
39226
|
# TabDocumentManager: New windows
|
|
38999
39227
|
|
|
39000
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
39228
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
39001
39229
|
|
|
39002
39230
|
A document, a group or a floating window can move into its own browser window and back. Its content moves with it without being recreated, and the new window is part of the same manager, so its tabs, menus, keys and dragging work the same way.
|
|
39003
39231
|
|
|
@@ -39661,7 +39889,7 @@ export default function WindowLayout() {
|
|
|
39661
39889
|
|
|
39662
39890
|
# TabDocumentManager: Tablet and phone
|
|
39663
39891
|
|
|
39664
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
39892
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
39665
39893
|
|
|
39666
39894
|
On tablets and phones, a layout of groups, splits and dock areas does not fit as designed. The manager keeps the layout and changes how it is presented: the documents, groups, areas and saved JSON stay the same, and content is moved rather than recreated. The presentation depends on the manager's own width rather than the device, and on touch screens its tabs and buttons are larger.
|
|
39667
39895
|
|
|
@@ -39946,7 +40174,7 @@ Loading issues…
|
|
|
39946
40174
|
|
|
39947
40175
|
# TabDocumentManager: A whole workspace
|
|
39948
40176
|
|
|
39949
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
40177
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
39950
40178
|
|
|
39951
40179
|
A complete screen built from kit components: a menu bar, the manager, a DataGrid with every feature enabled, forms, and a tool docked at the bottom. Each part is the same component documented on its own page, and the manager simply hosts them.
|
|
39952
40180
|
|
|
@@ -40363,7 +40591,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
40363
40591
|
|
|
40364
40592
|
# Scheduler
|
|
40365
40593
|
|
|
40366
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
40594
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
40367
40595
|
|
|
40368
40596
|
A full-featured calendar for appointments across days and hours. It provides day, week, work week and month views, all-day and multi-day bars, side-by-side display of overlapping appointments, and a "+N more" link when a day is full. Appointments can come from an array or a data source, and every setting can change at runtime.
|
|
40369
40597
|
|
|
@@ -40963,7 +41191,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
40963
41191
|
|
|
40964
41192
|
# Scheduler: Editing
|
|
40965
41193
|
|
|
40966
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
41194
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
40967
41195
|
|
|
40968
41196
|
Users can add, move, resize, copy and delete appointments with the pointer and the keyboard, and you can do the same programmatically. Every change raises its event first, can wait for a server, and is reverted if saving fails.
|
|
40969
41197
|
|
|
@@ -41516,7 +41744,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
41516
41744
|
|
|
41517
41745
|
# Scheduler: Recurrence and time zones
|
|
41518
41746
|
|
|
41519
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
41747
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
41520
41748
|
|
|
41521
41749
|
Recurring appointments based on RFC 5545 rules, with exceptions and individually edited occurrences, a prompt that asks what a change should apply to, a recurrence editor, and time zone support that handles daylight saving time.
|
|
41522
41750
|
|
|
@@ -41944,7 +42172,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
41944
42172
|
|
|
41945
42173
|
# Scheduler: Resources and groups
|
|
41946
42174
|
|
|
41947
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
42175
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
41948
42176
|
|
|
41949
42177
|
Resources such as rooms, people and equipment can color appointments, divide columns into groups (nested or under each date), and define when each resource is available and when time is blocked.
|
|
41950
42178
|
|
|
@@ -42654,7 +42882,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
42654
42882
|
|
|
42655
42883
|
# Scheduler: The appointment form
|
|
42656
42884
|
|
|
42657
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
42885
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
42658
42886
|
|
|
42659
42887
|
Configure the appointment form without handling events. You can choose its fields and their order, arrange them in groups and tabs, use custom editors, add validation per field, and show or lock fields for specific appointments. You can also replace the form with your own.
|
|
42660
42888
|
|
|
@@ -43293,7 +43521,7 @@ export default function OwnForm() {
|
|
|
43293
43521
|
|
|
43294
43522
|
# Scheduler: Timeline
|
|
43295
43523
|
|
|
43296
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
43524
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
43297
43525
|
|
|
43298
43526
|
Displays one row per resource, with time running along the row, for a day, a week, a work week or a month. Appointments at the same time stack within a row, and the row grows to fit them.
|
|
43299
43527
|
|
|
@@ -43933,7 +44161,7 @@ export default function TimelineTemplates() {
|
|
|
43933
44161
|
|
|
43934
44162
|
# Scheduler: Agenda
|
|
43935
44163
|
|
|
43936
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
44164
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
43937
44165
|
|
|
43938
44166
|
Displays upcoming days as a list, with each day's appointments in time order. Days without appointments are omitted.
|
|
43939
44167
|
|
|
@@ -44538,7 +44766,7 @@ export default function AgendaTemplates() {
|
|
|
44538
44766
|
|
|
44539
44767
|
# Scheduler: Big data
|
|
44540
44768
|
|
|
44541
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
44769
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
44542
44770
|
|
|
44543
44771
|
Handles thousands of resources and appointments. The scheduler renders only what is visible, and recalculates the layout only for what has changed.
|
|
44544
44772
|
|
|
@@ -44799,7 +45027,7 @@ export default function BigWeek() {
|
|
|
44799
45027
|
|
|
44800
45028
|
# Scheduler: Tablet and phone
|
|
44801
45029
|
|
|
44802
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
45030
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
44803
45031
|
|
|
44804
45032
|
On tablets and phones, the scheduler keeps its appointments, views and date, and changes how it presents them. On a phone, it shows the agenda, a compact toolbar and bottom sheets. Touch gestures can lift and resize appointments, swipe between days, and pinch to zoom.
|
|
44805
45033
|
|
|
@@ -45471,7 +45699,7 @@ export default function Touch() {
|
|
|
45471
45699
|
|
|
45472
45700
|
# Scheduler: iCalendar and print
|
|
45473
45701
|
|
|
45474
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
45702
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
45475
45703
|
|
|
45476
45704
|
Exports appointments to an iCalendar file (RFC 5545) and imports them back, for use with other calendar applications. The scheduler can also be printed.
|
|
45477
45705
|
|
|
@@ -46070,7 +46298,7 @@ export function sampleAppointments(): Meeting[] {
|
|
|
46070
46298
|
|
|
46071
46299
|
# DataGrid
|
|
46072
46300
|
|
|
46073
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
46301
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
46074
46302
|
|
|
46075
46303
|
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.
|
|
46076
46304
|
|
|
@@ -46440,7 +46668,7 @@ export default function Pager() {
|
|
|
46440
46668
|
|
|
46441
46669
|
# DataGrid: Editing
|
|
46442
46670
|
|
|
46443
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
46671
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
46444
46672
|
|
|
46445
46673
|
## Editing and save modes
|
|
46446
46674
|
|
|
@@ -47091,7 +47319,7 @@ export default function BarActions() {
|
|
|
47091
47319
|
|
|
47092
47320
|
# DataGrid: Edit forms and popups
|
|
47093
47321
|
|
|
47094
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
47322
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
47095
47323
|
|
|
47096
47324
|
## Edit forms and popups
|
|
47097
47325
|
|
|
@@ -47501,7 +47729,7 @@ export default function ValidationRules() {
|
|
|
47501
47729
|
|
|
47502
47730
|
# DataGrid: Filtering and search
|
|
47503
47731
|
|
|
47504
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
47732
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
47505
47733
|
|
|
47506
47734
|
## Filters
|
|
47507
47735
|
|
|
@@ -48077,7 +48305,7 @@ export function makeCustomers(n: number): Customer[] {
|
|
|
48077
48305
|
|
|
48078
48306
|
# DataGrid: Lookup columns
|
|
48079
48307
|
|
|
48080
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
48308
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
48081
48309
|
|
|
48082
48310
|
## Lookup columns
|
|
48083
48311
|
|
|
@@ -48451,7 +48679,7 @@ export default function TextFrom() {
|
|
|
48451
48679
|
|
|
48452
48680
|
# DataGrid: Grouping and summaries
|
|
48453
48681
|
|
|
48454
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
48682
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
48455
48683
|
|
|
48456
48684
|
## Grouping
|
|
48457
48685
|
|
|
@@ -48938,7 +49166,7 @@ export default function SummariesServer() {
|
|
|
48938
49166
|
|
|
48939
49167
|
# DataGrid: Master-detail
|
|
48940
49168
|
|
|
48941
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49169
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
48942
49170
|
|
|
48943
49171
|
## Master-detail
|
|
48944
49172
|
|
|
@@ -49272,7 +49500,7 @@ export default function DetailTabs() {
|
|
|
49272
49500
|
|
|
49273
49501
|
# DataGrid: Bands and adaptive columns
|
|
49274
49502
|
|
|
49275
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49503
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
49276
49504
|
|
|
49277
49505
|
## Band headers
|
|
49278
49506
|
|
|
@@ -49597,7 +49825,7 @@ export default function AdaptiveColumns() {
|
|
|
49597
49825
|
|
|
49598
49826
|
# DataGrid: Selection and export
|
|
49599
49827
|
|
|
49600
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49828
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
49601
49829
|
|
|
49602
49830
|
## Selection
|
|
49603
49831
|
|
|
@@ -50204,7 +50432,7 @@ export default function PdfExport() {
|
|
|
50204
50432
|
|
|
50205
50433
|
# DataGrid: Row drag and drop
|
|
50206
50434
|
|
|
50207
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
50435
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
50208
50436
|
|
|
50209
50437
|
## Reorder rows
|
|
50210
50438
|
|
|
@@ -50553,7 +50781,7 @@ export default function RowDragBetween() {
|
|
|
50553
50781
|
|
|
50554
50782
|
# DataGrid: Selecting by dragging
|
|
50555
50783
|
|
|
50556
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
50784
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
50557
50785
|
|
|
50558
50786
|
## Rows
|
|
50559
50787
|
|
|
@@ -50887,7 +51115,7 @@ export default function CellRanges() {
|
|
|
50887
51115
|
|
|
50888
51116
|
# DataGrid: Scrolling
|
|
50889
51117
|
|
|
50890
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
51118
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
50891
51119
|
|
|
50892
51120
|
## Scrolling modes
|
|
50893
51121
|
|
|
@@ -51319,7 +51547,7 @@ export default function InfiniteGroups() {
|
|
|
51319
51547
|
|
|
51320
51548
|
# DataGrid: Layout and events
|
|
51321
51549
|
|
|
51322
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
51550
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
51323
51551
|
|
|
51324
51552
|
## Toolbar
|
|
51325
51553
|
|
|
@@ -51867,7 +52095,7 @@ export default function Events() {
|
|
|
51867
52095
|
|
|
51868
52096
|
# DataGrid: API reference
|
|
51869
52097
|
|
|
51870
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
52098
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
51871
52099
|
|
|
51872
52100
|
## Columns
|
|
51873
52101
|
|
|
@@ -52296,7 +52524,7 @@ export interface Order {
|
|
|
52296
52524
|
|
|
52297
52525
|
# PivotGrid
|
|
52298
52526
|
|
|
52299
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
52527
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
52300
52528
|
|
|
52301
52529
|
A pivot table: rows summed up by row fields down the side and column fields across the top, with a value of every data field where they cross and totals for every member. The data layer computes it (`loadPivot`), in the browser for rows in memory or on the server where the adapter can. Members open and close, and the table draws only the rows and columns in view.
|
|
52302
52530
|
|
|
@@ -52595,7 +52823,7 @@ export default function Large() {
|
|
|
52595
52823
|
|
|
52596
52824
|
# PivotGrid: Fields and areas
|
|
52597
52825
|
|
|
52598
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
52826
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
52599
52827
|
|
|
52600
52828
|
A field is a value of the rows placed in an area. Its place, its levels, the order and filter of its members, and how a data field sums up its rows are all set on the field; the summaries and what a data field shows of them are on [Summaries and display](pivotgrid-summaries.md).
|
|
52601
52829
|
|
|
@@ -52844,7 +53072,7 @@ export default function Computed() {
|
|
|
52844
53072
|
|
|
52845
53073
|
# PivotGrid: Totals and layout
|
|
52846
53074
|
|
|
52847
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
53075
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
52848
53076
|
|
|
52849
53077
|
How the result is laid out: the totals and where they stand, the empty rows and columns, the row headers as a tree or in columns, where several data fields run, which members are open, the menu of the headers and cells, and what a data cell shows. Changing these settings lays the last result out again without loading it.
|
|
52850
53078
|
|
|
@@ -53511,7 +53739,7 @@ export default function Cells() {
|
|
|
53511
53739
|
|
|
53512
53740
|
# PivotGrid: Summaries and display
|
|
53513
53741
|
|
|
53514
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
53742
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
53515
53743
|
|
|
53516
53744
|
A data field sums up the rows of each cell. It shows that value as it is, or as a share of a total or of its parent, a change from the member before, a running total, or a calculation of your own.
|
|
53517
53745
|
|
|
@@ -53845,7 +54073,7 @@ export default function OwnCalculation() {
|
|
|
53845
54073
|
|
|
53846
54074
|
# PivotGrid: Field panel and chooser
|
|
53847
54075
|
|
|
53848
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54076
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
53849
54077
|
|
|
53850
54078
|
The user arranges the fields: in the field panel over the table, where each kind of field has an area of chips. What the user changes is laid over `fields`; `arrangedFields` reads it, `fieldOption` reads and writes it from code, and `onFieldsChanged` tells every change.
|
|
53851
54079
|
|
|
@@ -54072,7 +54300,7 @@ export default function FieldChooser() {
|
|
|
54072
54300
|
|
|
54073
54301
|
# PivotGrid: Sorting and filtering
|
|
54074
54302
|
|
|
54075
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54303
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
54076
54304
|
|
|
54077
54305
|
Members stand in the order of their values, their texts, a function of the app's or a data field's totals, and a pivot sums up only the rows its fields keep: given from code, or chosen by the user in a field's header filter.
|
|
54078
54306
|
|
|
@@ -54455,7 +54683,7 @@ export default function FilterItems() {
|
|
|
54455
54683
|
|
|
54456
54684
|
# PivotGrid: State and selection
|
|
54457
54685
|
|
|
54458
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54686
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
54459
54687
|
|
|
54460
54688
|
What the user arranges and opens, kept in the browser or saved and given back from code, and the cells the user selects and copies to a spreadsheet.
|
|
54461
54689
|
|
|
@@ -54704,7 +54932,7 @@ export default function Selection() {
|
|
|
54704
54932
|
|
|
54705
54933
|
# PivotGrid: Remote data
|
|
54706
54934
|
|
|
54707
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54935
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
54708
54936
|
|
|
54709
54937
|
A pivot a server computes is read from it: the members open, or, where the server computes the parts of pivots too, only what the view reaches as it scrolls, so a large result never comes whole.
|
|
54710
54938
|
|
|
@@ -55183,7 +55411,7 @@ self.onmessage = (e: MessageEvent<{ id: number; body: string }>) => {
|
|
|
55183
55411
|
|
|
55184
55412
|
# PivotGrid: Drill-down
|
|
55185
55413
|
|
|
55186
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55414
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
55187
55415
|
|
|
55188
55416
|
A cell sums up rows. `drillDown` gives them as a filter and as a data source: for a `DataGrid` in a window, a report, or rows to export.
|
|
55189
55417
|
|
|
@@ -55329,7 +55557,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55329
55557
|
|
|
55330
55558
|
# PivotGrid: Chart
|
|
55331
55559
|
|
|
55332
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55560
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
55333
55561
|
|
|
55334
55562
|
`chartData` gives the kit's `Chart` what a pivot shows: its rows and series follow the pivot as it loads, as a member opens or closes, and as it is arranged anew. The chart knows nothing of the pivot.
|
|
55335
55563
|
|
|
@@ -55465,7 +55693,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55465
55693
|
|
|
55466
55694
|
# PivotGrid: Export
|
|
55467
55695
|
|
|
55468
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55696
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
55469
55697
|
|
|
55470
55698
|
A pivot exports what it shows, whole: the line of every open member, read in full where the pivot is read in parts. It writes CSV itself; Excel and PDF are written by the kit's `excel` and `pdf` entries, with the ExcelJS and jsPDF your application brings.
|
|
55471
55699
|
|
|
@@ -55676,7 +55904,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55676
55904
|
|
|
55677
55905
|
# PivotGrid: Keyboard and accessibility
|
|
55678
55906
|
|
|
55679
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55907
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
55680
55908
|
|
|
55681
55909
|
The pivot is one Tab stop; the arrow keys move between its cells and headers, and Enter opens a member. Each cell has a name a screen reader reads in full, and every string comes from the kit's language.
|
|
55682
55910
|
|
|
@@ -55903,7 +56131,7 @@ export default function RightToLeft() {
|
|
|
55903
56131
|
|
|
55904
56132
|
# PivotGrid: API reference
|
|
55905
56133
|
|
|
55906
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
56134
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.19
|
|
55907
56135
|
|
|
55908
56136
|
## Props
|
|
55909
56137
|
|
|
@@ -56087,7 +56315,7 @@ Loading issues…
|
|
|
56087
56315
|
|
|
56088
56316
|
# Diagram
|
|
56089
56317
|
|
|
56090
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56318
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
56091
56319
|
|
|
56092
56320
|
Nodes and the connections between them on a surface that the user pans and zooms. The user draws connections between the ports of nodes and moves their ends. The diagram is only the surface: toolbars and menus belong to the app, which uses the diagram’s methods.
|
|
56093
56321
|
|
|
@@ -56311,7 +56539,7 @@ Loading issues…
|
|
|
56311
56539
|
|
|
56312
56540
|
# Diagram: Connections
|
|
56313
56541
|
|
|
56314
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56542
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
56315
56543
|
|
|
56316
56544
|
Connections run from an output of a node to an input of another. The user draws them from the ports and moves their ends, and the diagram holds every connection to its rules.
|
|
56317
56545
|
|
|
@@ -56474,7 +56702,7 @@ Loading issues…
|
|
|
56474
56702
|
|
|
56475
56703
|
# Diagram: Nodes and styles
|
|
56476
56704
|
|
|
56477
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56705
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
56478
56706
|
|
|
56479
56707
|
What a node holds and how it looks: kinds of node of the app’s own with any control of the kit inside, groups, lanes and notes, resizing, and the app’s own classes and styles on top of the design tokens.
|
|
56480
56708
|
|
|
@@ -56684,7 +56912,7 @@ Loading issues…
|
|
|
56684
56912
|
|
|
56685
56913
|
# Diagram: Custom nodes
|
|
56686
56914
|
|
|
56687
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56915
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
56688
56916
|
|
|
56689
56917
|
A node of the app’s own is a node kind: the node names it in `kind`, and the diagram’s `kinds` says what the nodes of that kind hold, which ports they have, how they look and how large they are. These recipes build kinds step by step, from a card that shows data to nodes with controls, ports of their own and content made without JSX.
|
|
56690
56918
|
|
|
@@ -57013,7 +57241,7 @@ Loading issues…
|
|
|
57013
57241
|
|
|
57014
57242
|
# Diagram: Tables and classes
|
|
57015
57243
|
|
|
57016
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57244
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
57017
57245
|
|
|
57018
57246
|
Table (entity relationship) and class diagrams with the built-in `table` and `class` kinds, the marks their connections end with, and texts at the ends of a connection.
|
|
57019
57247
|
|
|
@@ -57229,7 +57457,7 @@ Loading issues…
|
|
|
57229
57457
|
|
|
57230
57458
|
# Diagram: Flow nodes
|
|
57231
57459
|
|
|
57232
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57460
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
57233
57461
|
|
|
57234
57462
|
The pieces of a flow designer: the card, a kind of node to start one’s own from, ports with labels, the status a run shows on each node, and the connections of a node and the nodes at their other ends, for an app that walks the flow.
|
|
57235
57463
|
|
|
@@ -57407,7 +57635,7 @@ Loading issues…
|
|
|
57407
57635
|
|
|
57408
57636
|
# Diagram: Build your own flow designer
|
|
57409
57637
|
|
|
57410
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57638
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
57411
57639
|
|
|
57412
57640
|
A small flow designer, from a kind of step to a run of the flow: its card, the form of its settings, the data it reads from the steps before it, the checks, the definition a server reads, and the run. The designer is on this page with its code, and each section below takes one piece of it.
|
|
57413
57641
|
|
|
@@ -58227,7 +58455,7 @@ export const STEPS: Record<string, StepKind> = { orders, discount, message };
|
|
|
58227
58455
|
|
|
58228
58456
|
# Diagram: Layout, map and export
|
|
58229
58457
|
|
|
58230
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
58458
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
58231
58459
|
|
|
58232
58460
|
Placing the nodes automatically, a map of the whole diagram, saving and loading, and images of the diagram.
|
|
58233
58461
|
|
|
@@ -58585,7 +58813,7 @@ Loading issues…
|
|
|
58585
58813
|
|
|
58586
58814
|
# Diagram: Moving and selecting
|
|
58587
58815
|
|
|
58588
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
58816
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
58589
58817
|
|
|
58590
58818
|
The user moves, selects and deletes nodes and connections with the pointer and the keys, and the diagram writes every change to the app’s objects.
|
|
58591
58819
|
|
|
@@ -58778,7 +59006,7 @@ Loading issues…
|
|
|
58778
59006
|
|
|
58779
59007
|
# Diagram: History and commands
|
|
58780
59008
|
|
|
58781
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59009
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
58782
59010
|
|
|
58783
59011
|
Undo and redo, the clipboard and alignment, as commands that the app’s toolbars and menus name and the user runs with keys of their choice.
|
|
58784
59012
|
|
|
@@ -58862,7 +59090,7 @@ Loading issues…
|
|
|
58862
59090
|
|
|
58863
59091
|
# Diagram: Keyboard and accessibility
|
|
58864
59092
|
|
|
58865
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59093
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
58866
59094
|
|
|
58867
59095
|
Everything can be done with the keys, and a screen reader hears the diagram, its nodes and what the user does.
|
|
58868
59096
|
|
|
@@ -58928,7 +59156,7 @@ Loading issues…
|
|
|
58928
59156
|
|
|
58929
59157
|
# Diagram: API reference
|
|
58930
59158
|
|
|
58931
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59159
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
58932
59160
|
|
|
58933
59161
|
The props, members, events, styling hooks and design tokens of `Diagram` and `DiagramMap`.
|
|
58934
59162
|
|