@motifx-community/ui 0.1.0-beta.18 → 0.1.0-beta.20
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 +55 -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 +18 -6
- 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 +9 -5
- 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 +487 -110
- package/dist/index.js.map +1 -1
- package/dist/styles.css +114 -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 +33 -2
- 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 +102 -29
- 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 +485 -226
- 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.20: 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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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.20
|
|
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
|
|
|
@@ -17628,6 +17636,37 @@ export default function Links() {
|
|
|
17628
17636
|
}
|
|
17629
17637
|
```
|
|
17630
17638
|
|
|
17639
|
+
## A toolbar in the header
|
|
17640
|
+
|
|
17641
|
+
A `Toolbar` as the `action` shares the header with the title: the two take the room evenly until either has all it needs, and the title takes what is left. So a short title keeps its width and a long one at least half, and the items that do not fit move into the toolbar's “more” menu. Any other action keeps its size.
|
|
17642
|
+
|
|
17643
|
+
```tsx
|
|
17644
|
+
import { reactive } from '@motifx/core';
|
|
17645
|
+
import { Card, Slider, Stack, Toolbar } from '@motifx-community/ui';
|
|
17646
|
+
|
|
17647
|
+
/**
|
|
17648
|
+
* A toolbar as the action: drag the width. The title and the toolbar share the header, a short title keeps its width,
|
|
17649
|
+
* and the items that do not fit move into the toolbar's "more" menu.
|
|
17650
|
+
*/
|
|
17651
|
+
export default function ToolbarAction() {
|
|
17652
|
+
const s = reactive({ width: 560 });
|
|
17653
|
+
|
|
17654
|
+
return (
|
|
17655
|
+
<Stack gap="md">
|
|
17656
|
+
<Slider label="Width" x-model={() => s.width} min={240} max={640} step={10} style="inline-size: 16rem" />
|
|
17657
|
+
<Stack gap="sm" class="card-toolbar" style={() => `inline-size: ${s.width}px; max-inline-size: 100%`}>
|
|
17658
|
+
<Card title="Report definitions" subtitle="12 reports, 3 of them scheduled" action={<Toolbar items={[{ text: 'Choose from gallery' }, { text: 'Add' }]} />}>
|
|
17659
|
+
The title keeps at least half of the header, and the toolbar moves what does not fit into its menu.
|
|
17660
|
+
</Card>
|
|
17661
|
+
<Card title="People" action={<Toolbar items={[{ text: 'New' }, { text: 'Edit' }, { text: 'Delete' }, { text: 'Export' }]} />}>
|
|
17662
|
+
A short title keeps its width, and the toolbar takes the rest.
|
|
17663
|
+
</Card>
|
|
17664
|
+
</Stack>
|
|
17665
|
+
</Stack>
|
|
17666
|
+
);
|
|
17667
|
+
}
|
|
17668
|
+
```
|
|
17669
|
+
|
|
17631
17670
|
## Sizes
|
|
17632
17671
|
|
|
17633
17672
|
```tsx
|
|
@@ -17688,7 +17727,7 @@ export default function Sizes() {
|
|
|
17688
17727
|
| `title` | `Bind<string>` | `''` | The title, which also provides the accessible name of the card. |
|
|
17689
17728
|
| `subtitle` | `Bind<string>` | `''` | Text below the title. |
|
|
17690
17729
|
| `avatar` | `Bind<AvatarProps \| null>` | `null` | An avatar before the titles (its props). |
|
|
17691
|
-
| `action` | `Bind<ComponentBase \| null>` | `null` | Content at the end of the header, such as a menu button or a badge. |
|
|
17730
|
+
| `action` | `Bind<ComponentBase \| null>` | `null` | Content at the end of the header, such as a menu button or a badge. A `Toolbar` shares the header with the title (see [A toolbar in the header](#toolbar)). |
|
|
17692
17731
|
| `media` | `Bind<IconSource \| null>` | `null` | An image that extends to the card edges: an image address or a component. |
|
|
17693
17732
|
| `mediaAlt` | `Bind<string>` | `''` | Alternative text for the image when `media` is an image address. Without it, the image is decorative. |
|
|
17694
17733
|
| `content` | `Bind<ComponentBase \| null>` | `null` | The content, in addition to JSX children. |
|
|
@@ -17721,7 +17760,7 @@ Loading issues…
|
|
|
17721
17760
|
|
|
17722
17761
|
# Gallery
|
|
17723
17762
|
|
|
17724
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
17763
|
+
> Display · @motifx-community/ui 0.1.0-beta.20
|
|
17725
17764
|
|
|
17726
17765
|
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
17766
|
|
|
@@ -17973,7 +18012,7 @@ Loading issues…
|
|
|
17973
18012
|
|
|
17974
18013
|
# TileView
|
|
17975
18014
|
|
|
17976
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
18015
|
+
> Display · @motifx-community/ui 0.1.0-beta.20
|
|
17977
18016
|
|
|
17978
18017
|
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
18018
|
|
|
@@ -18187,7 +18226,7 @@ Loading issues…
|
|
|
18187
18226
|
|
|
18188
18227
|
# Timeline
|
|
18189
18228
|
|
|
18190
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
18229
|
+
> Display · @motifx-community/ui 0.1.0-beta.20
|
|
18191
18230
|
|
|
18192
18231
|
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
18232
|
|
|
@@ -18369,7 +18408,7 @@ Loading issues…
|
|
|
18369
18408
|
|
|
18370
18409
|
# Skeleton
|
|
18371
18410
|
|
|
18372
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
18411
|
+
> Display · @motifx-community/ui 0.1.0-beta.20
|
|
18373
18412
|
|
|
18374
18413
|
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
18414
|
|
|
@@ -18508,7 +18547,7 @@ Loading issues…
|
|
|
18508
18547
|
|
|
18509
18548
|
# Chat
|
|
18510
18549
|
|
|
18511
|
-
> AI chat · @motifx-community/ui 0.1.0-beta.
|
|
18550
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.20
|
|
18512
18551
|
|
|
18513
18552
|
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
18553
|
|
|
@@ -20024,7 +20063,7 @@ export function olderPage(): ChatMessage[] {
|
|
|
20024
20063
|
|
|
20025
20064
|
# Markdown
|
|
20026
20065
|
|
|
20027
|
-
> AI chat · @motifx-community/ui 0.1.0-beta.
|
|
20066
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.20
|
|
20028
20067
|
|
|
20029
20068
|
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
20069
|
|
|
@@ -20371,7 +20410,7 @@ Loading issues…
|
|
|
20371
20410
|
|
|
20372
20411
|
# Navigation
|
|
20373
20412
|
|
|
20374
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20413
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
20375
20414
|
|
|
20376
20415
|
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
20416
|
|
|
@@ -20523,7 +20562,7 @@ Loading issues…
|
|
|
20523
20562
|
|
|
20524
20563
|
# AppBar
|
|
20525
20564
|
|
|
20526
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20565
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
20527
20566
|
|
|
20528
20567
|
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
20568
|
|
|
@@ -20721,7 +20760,7 @@ Loading issues…
|
|
|
20721
20760
|
|
|
20722
20761
|
# BottomNavigation
|
|
20723
20762
|
|
|
20724
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
20763
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
20725
20764
|
|
|
20726
20765
|
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
20766
|
|
|
@@ -20983,7 +21022,7 @@ Loading issues…
|
|
|
20983
21022
|
|
|
20984
21023
|
# Tabs
|
|
20985
21024
|
|
|
20986
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21025
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
20987
21026
|
|
|
20988
21027
|
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
21028
|
|
|
@@ -21117,6 +21156,61 @@ export default function ManyTabs() {
|
|
|
21117
21156
|
}
|
|
21118
21157
|
```
|
|
21119
21158
|
|
|
21159
|
+
## Filling the panel
|
|
21160
|
+
|
|
21161
|
+
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.
|
|
21162
|
+
|
|
21163
|
+
```tsx
|
|
21164
|
+
import { DataGrid, Tab, Tabs } from '@motifx-community/ui';
|
|
21165
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
21166
|
+
|
|
21167
|
+
type Order = { id: number; customer: string; total: number };
|
|
21168
|
+
|
|
21169
|
+
const orders: Order[] = Array.from({ length: 500 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
21170
|
+
|
|
21171
|
+
const columns: GridColumn<Order>[] = [
|
|
21172
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
21173
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
21174
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
21175
|
+
];
|
|
21176
|
+
|
|
21177
|
+
const TERMS = [
|
|
21178
|
+
'Orders are shipped within two working days of payment.',
|
|
21179
|
+
'A parcel that arrives damaged is replaced at no cost when it is reported within fourteen days.',
|
|
21180
|
+
'Returns are accepted within thirty days, in the original packaging.',
|
|
21181
|
+
'Refunds go back to the card or account that paid, within five working days of the return.',
|
|
21182
|
+
'Prices include tax. Shipping is free above a total of 50 euros.',
|
|
21183
|
+
'An order can be changed or cancelled until it is shipped.',
|
|
21184
|
+
'Invoices are sent by email when the order ships.',
|
|
21185
|
+
'Questions about an order go to the support team, who answer within one working day.',
|
|
21186
|
+
'A gift card is valid for two years and can pay for part of an order.',
|
|
21187
|
+
'Items on pre-order ship together on the date shown on the product page, unless the order is split at the customer’s request.',
|
|
21188
|
+
'Personal data is used only to handle the order and is kept for as long as the law asks.',
|
|
21189
|
+
'These terms change only with thirty days’ notice, sent to the email address on the account.',
|
|
21190
|
+
];
|
|
21191
|
+
|
|
21192
|
+
/** 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. */
|
|
21193
|
+
export default function FillingPanels() {
|
|
21194
|
+
return (
|
|
21195
|
+
<Tabs label="Orders" style="block-size: 22rem">
|
|
21196
|
+
<Tab title="Orders">
|
|
21197
|
+
<DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />
|
|
21198
|
+
</Tab>
|
|
21199
|
+
<Tab title="Terms">
|
|
21200
|
+
<div>
|
|
21201
|
+
{TERMS.map((term) => (
|
|
21202
|
+
<p key={term}>{term}</p>
|
|
21203
|
+
))}
|
|
21204
|
+
</div>
|
|
21205
|
+
</Tab>
|
|
21206
|
+
<Tab title="Notes" padding="xl">
|
|
21207
|
+
<p>This panel is given a wider padding of its own.</p>
|
|
21208
|
+
</Tab>
|
|
21209
|
+
</Tabs>
|
|
21210
|
+
);
|
|
21211
|
+
}
|
|
21212
|
+
```
|
|
21213
|
+
|
|
21120
21214
|
## Placement
|
|
21121
21215
|
|
|
21122
21216
|
```tsx
|
|
@@ -21390,6 +21484,7 @@ export default function Localization() {
|
|
|
21390
21484
|
| `closable` | `Bind<boolean>` | `false` | Adds a close button to every tab. A tab's own `closable` takes precedence. |
|
|
21391
21485
|
| `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
21486
|
| `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. |
|
|
21487
|
+
| `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
21488
|
| `enabled / disabled, visible, tabStop, tabIndex` | see Control | | Properties shared by all controls. `tabStop={false}` removes the tab strip from the Tab order. |
|
|
21394
21489
|
|
|
21395
21490
|
### Tab props
|
|
@@ -21403,6 +21498,7 @@ export default function Localization() {
|
|
|
21403
21498
|
| `hint` | `Bind<string>` | `''` | The tooltip text. |
|
|
21404
21499
|
| `closable` | `Bind<boolean \| undefined>` | From Tabs | Shows a close button on this tab. |
|
|
21405
21500
|
| `lazy, keepAlive` | `Bind<boolean \| undefined>` | From Tabs | This tab's own setting. |
|
|
21501
|
+
| `padding` | `Bind<LayoutSpace \| undefined>` | From Tabs | The space inside this panel's edges, one to four values as in CSS. |
|
|
21406
21502
|
| `content` | `() => ComponentBase \| ComponentBase[]` | — | Creates the panel content when the panel is created, either instead of or after the JSX children. |
|
|
21407
21503
|
| `enabled` | `Bind<boolean>` | `true` | `false` means the tab cannot be selected and the arrow keys skip it. |
|
|
21408
21504
|
| `visible` | `Bind<boolean>` | `true` | `false` removes the tab. If it is selected, the selection moves to an adjacent tab. |
|
|
@@ -21447,7 +21543,7 @@ Loading issues…
|
|
|
21447
21543
|
|
|
21448
21544
|
# Breadcrumb
|
|
21449
21545
|
|
|
21450
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21546
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
21451
21547
|
|
|
21452
21548
|
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
21549
|
|
|
@@ -21580,7 +21676,7 @@ Loading issues…
|
|
|
21580
21676
|
|
|
21581
21677
|
# Pagination
|
|
21582
21678
|
|
|
21583
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21679
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
21584
21680
|
|
|
21585
21681
|
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
21682
|
|
|
@@ -21703,7 +21799,7 @@ Loading issues…
|
|
|
21703
21799
|
|
|
21704
21800
|
# Stepper
|
|
21705
21801
|
|
|
21706
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
21802
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
21707
21803
|
|
|
21708
21804
|
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
21805
|
|
|
@@ -21947,7 +22043,7 @@ Loading issues…
|
|
|
21947
22043
|
|
|
21948
22044
|
# Wizard
|
|
21949
22045
|
|
|
21950
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22046
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
21951
22047
|
|
|
21952
22048
|
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
22049
|
|
|
@@ -22195,7 +22291,7 @@ Loading issues…
|
|
|
22195
22291
|
|
|
22196
22292
|
# Accordion
|
|
22197
22293
|
|
|
22198
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22294
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
22199
22295
|
|
|
22200
22296
|
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
22297
|
|
|
@@ -22498,7 +22594,7 @@ Loading issues…
|
|
|
22498
22594
|
|
|
22499
22595
|
# MultiView
|
|
22500
22596
|
|
|
22501
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22597
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
22502
22598
|
|
|
22503
22599
|
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
22600
|
|
|
@@ -22708,7 +22804,7 @@ Loading issues…
|
|
|
22708
22804
|
|
|
22709
22805
|
# Window and dialog
|
|
22710
22806
|
|
|
22711
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
22807
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
22712
22808
|
|
|
22713
22809
|
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
22810
|
|
|
@@ -22912,6 +23008,49 @@ export class RenameForm extends MxForm {
|
|
|
22912
23008
|
}
|
|
22913
23009
|
```
|
|
22914
23010
|
|
|
23011
|
+
## Content that fills the window
|
|
23012
|
+
|
|
23013
|
+
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.
|
|
23014
|
+
|
|
23015
|
+
```tsx
|
|
23016
|
+
import type { Component } from '@motifx/core';
|
|
23017
|
+
import { Button, DataGrid, MxForm } from '@motifx-community/ui';
|
|
23018
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
23019
|
+
|
|
23020
|
+
type Order = { id: number; customer: string; total: number };
|
|
23021
|
+
|
|
23022
|
+
const orders: Order[] = Array.from({ length: 300 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
23023
|
+
|
|
23024
|
+
const columns: GridColumn<Order>[] = [
|
|
23025
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
23026
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
23027
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
23028
|
+
];
|
|
23029
|
+
|
|
23030
|
+
/** A window whose content is a grid: the grid fills the content area to its edges and grows with the window. */
|
|
23031
|
+
export default function GridWindow() {
|
|
23032
|
+
let host: Component<HTMLDivElement> | null = null;
|
|
23033
|
+
|
|
23034
|
+
const open = () => {
|
|
23035
|
+
const form = new MxForm({
|
|
23036
|
+
title: 'Orders',
|
|
23037
|
+
showMaximize: true,
|
|
23038
|
+
width: '34rem',
|
|
23039
|
+
height: '24rem',
|
|
23040
|
+
content: <DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />,
|
|
23041
|
+
});
|
|
23042
|
+
form.show(host!);
|
|
23043
|
+
};
|
|
23044
|
+
|
|
23045
|
+
return (
|
|
23046
|
+
<>
|
|
23047
|
+
<Button text="Open the orders" variant="outline" onclick={open} />
|
|
23048
|
+
<div ref={(c: Component<HTMLDivElement>) => (host = c)} />
|
|
23049
|
+
</>
|
|
23050
|
+
);
|
|
23051
|
+
}
|
|
23052
|
+
```
|
|
23053
|
+
|
|
22915
23054
|
## Events
|
|
22916
23055
|
|
|
22917
23056
|
`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 +23232,7 @@ export default function Localization() {
|
|
|
23093
23232
|
| `title` | `Bind<string>` | `''` | The title in the title bar, which also names the form. This is the same property as `text`. |
|
|
23094
23233
|
| `content` | `Bind<ComponentBase \| null>` | — | Content for the content area, in addition to JSX children and `view()`. |
|
|
23095
23234
|
| `footer` | `Bind<ComponentBase \| null>` | — | A non-scrolling row below the content, for buttons. |
|
|
23235
|
+
| `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
23236
|
| `icon` | `Bind<IconSource \| null>` | — | An icon at the start of the title bar. |
|
|
23097
23237
|
| `showClose` | `Bind<boolean>` | `true` | Shows the close button. |
|
|
23098
23238
|
| `showMinimize` | `Bind<boolean>` | `false` | Shows the minimize button, on modeless forms only. |
|
|
@@ -23272,7 +23412,7 @@ export default function DefaultButtons() {
|
|
|
23272
23412
|
|
|
23273
23413
|
# BottomSheet
|
|
23274
23414
|
|
|
23275
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23415
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
23276
23416
|
|
|
23277
23417
|
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
23418
|
|
|
@@ -23596,7 +23736,7 @@ Loading issues…
|
|
|
23596
23736
|
|
|
23597
23737
|
# Drawer
|
|
23598
23738
|
|
|
23599
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23739
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
23600
23740
|
|
|
23601
23741
|
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
23742
|
|
|
@@ -23833,7 +23973,7 @@ Loading issues…
|
|
|
23833
23973
|
|
|
23834
23974
|
# ActionSheet
|
|
23835
23975
|
|
|
23836
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
23976
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
23837
23977
|
|
|
23838
23978
|
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
23979
|
|
|
@@ -24051,14 +24191,14 @@ Loading issues…
|
|
|
24051
24191
|
|
|
24052
24192
|
# Layout
|
|
24053
24193
|
|
|
24054
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
24194
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
24055
24195
|
|
|
24056
24196
|
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
24197
|
|
|
24058
24198
|
## Import
|
|
24059
24199
|
|
|
24060
24200
|
```tsx
|
|
24061
|
-
import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace } from '@motifx-community/ui';
|
|
24201
|
+
import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace, type Responsive } from '@motifx-community/ui';
|
|
24062
24202
|
```
|
|
24063
24203
|
|
|
24064
24204
|
## Declarative and programmatic
|
|
@@ -24450,6 +24590,78 @@ export default function NestedSplit() {
|
|
|
24450
24590
|
}
|
|
24451
24591
|
```
|
|
24452
24592
|
|
|
24593
|
+
## Responsive layouts
|
|
24594
|
+
|
|
24595
|
+
Every layout prop of `Stack`, `Grid`, `DockPanel`, `Panel` and `GroupBox`, the `orientation`, `firstMinSize` and `secondMinSize` 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.
|
|
24596
|
+
|
|
24597
|
+
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.
|
|
24598
|
+
|
|
24599
|
+
| Breakpoint | Width | Typically |
|
|
24600
|
+
| --- | --- | --- |
|
|
24601
|
+
| `xs` | Narrower than 560 px | A phone held upright. |
|
|
24602
|
+
| `sm` | 560 px and wider | A large phone, a narrow pane. |
|
|
24603
|
+
| `md` | 768 px and wider | A tablet held upright. |
|
|
24604
|
+
| `lg` | 1024 px and wider | A tablet on its side, a small desktop. |
|
|
24605
|
+
| `xl` | 1440 px and wider | A wide desktop. |
|
|
24606
|
+
|
|
24607
|
+
```tsx
|
|
24608
|
+
import { createSignal, reactive } from '@motifx/core';
|
|
24609
|
+
import { Button, DockPanel, Grid, Panel, Slider, Stack } from '@motifx-community/ui';
|
|
24610
|
+
|
|
24611
|
+
/**
|
|
24612
|
+
* A page laid out by its own width, not the window's: drag the width (wider than the page's column, it scrolls sideways).
|
|
24613
|
+
* The folders move from the side to the top, the cards go from three columns to one, the first card spans the row in
|
|
24614
|
+
* between, and the gaps narrow.
|
|
24615
|
+
*/
|
|
24616
|
+
export default function ResponsiveLayout() {
|
|
24617
|
+
const s = reactive({ width: 1000 });
|
|
24618
|
+
const cards = createSignal<Grid | null>(null);
|
|
24619
|
+
|
|
24620
|
+
return (
|
|
24621
|
+
<>
|
|
24622
|
+
<Stack orientation="horizontal" wrap align="center" gap="md">
|
|
24623
|
+
<Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
|
|
24624
|
+
<output class="layout-breakpoint">{() => `${s.width} px, the cards at ${cards.value?.breakpoint ?? '…'}`}</output>
|
|
24625
|
+
</Stack>
|
|
24626
|
+
<Panel scrollable="horizontal" text="Responsive page" style="inline-size: 100%">
|
|
24627
|
+
<Panel variant="outline" class="layout-responsive" style={() => `inline-size: ${s.width}px`}>
|
|
24628
|
+
<DockPanel gap={{ xs: 'xs', md: 'sm' }} padding="sm">
|
|
24629
|
+
<Stack dock={{ xs: 'top', md: 'start' }} orientation={{ xs: 'horizontal', md: 'vertical' }} wrap={{ xs: true, md: false }} gap="xs" role="group" aria-label="Folders">
|
|
24630
|
+
<Button text="Inbox" size="sm" variant="outline" />
|
|
24631
|
+
<Button text="Drafts" size="sm" variant="outline" />
|
|
24632
|
+
<Button text="Sent" size="sm" variant="outline" />
|
|
24633
|
+
<Button text="Archive" size="sm" variant="outline" />
|
|
24634
|
+
</Stack>
|
|
24635
|
+
<Grid columns={{ xs: 1, sm: 2, lg: 3 }} gap={{ xs: 'xs', md: 'sm' }} ref={(grid: Grid) => (cards.value = grid)}>
|
|
24636
|
+
<Panel variant="card" padding="sm" columnSpan={{ xs: 1, sm: 2, lg: 1 }}>
|
|
24637
|
+
<strong>Orders</strong>
|
|
24638
|
+
<p>128 this week, 12 waiting to ship.</p>
|
|
24639
|
+
</Panel>
|
|
24640
|
+
<Panel variant="card" padding="sm">
|
|
24641
|
+
<strong>Returns</strong>
|
|
24642
|
+
<p>4 open, 2 of them waiting for the parcel.</p>
|
|
24643
|
+
</Panel>
|
|
24644
|
+
<Panel variant="card" padding="sm">
|
|
24645
|
+
<strong>Reviews</strong>
|
|
24646
|
+
<p>31 new, the average is 4.6 stars.</p>
|
|
24647
|
+
</Panel>
|
|
24648
|
+
<Panel variant="card" padding="sm">
|
|
24649
|
+
<strong>Stock</strong>
|
|
24650
|
+
<p>6 products are below their reorder level.</p>
|
|
24651
|
+
</Panel>
|
|
24652
|
+
<Panel variant="card" padding="sm">
|
|
24653
|
+
<strong>Support</strong>
|
|
24654
|
+
<p>9 tickets open, the oldest is 2 days old.</p>
|
|
24655
|
+
</Panel>
|
|
24656
|
+
</Grid>
|
|
24657
|
+
</DockPanel>
|
|
24658
|
+
</Panel>
|
|
24659
|
+
</Panel>
|
|
24660
|
+
</>
|
|
24661
|
+
);
|
|
24662
|
+
}
|
|
24663
|
+
```
|
|
24664
|
+
|
|
24453
24665
|
## Keyboard
|
|
24454
24666
|
|
|
24455
24667
|
| Key | Description |
|
|
@@ -24530,27 +24742,27 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24530
24742
|
|
|
24531
24743
|
| Prop | Type | Default | Description |
|
|
24532
24744
|
| --- | --- | --- | --- |
|
|
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
|
|
24745
|
+
| `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'vertical'` | `horizontal` follows the reading direction. |
|
|
24746
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The space between children. |
|
|
24747
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24748
|
+
| `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | Alignment across the direction: `start`, `center`, `end`, `stretch` or `baseline`. |
|
|
24749
|
+
| `justify` | `Bind<Responsive<StackJustify>>` | `'start'` | Alignment along the direction: `start`, `center`, `end`, `space-between`, `space-around` or `space-evenly`. |
|
|
24750
|
+
| `wrap` | `Bind<Responsive<boolean>>` | `false` | Moves children that do not fit to a new line. |
|
|
24751
|
+
| `reverse` | `Bind<Responsive<boolean>>` | `false` | Lays out children from the opposite end. The Tab order stays in document order. |
|
|
24540
24752
|
| `inline` | `Bind<boolean>` | `false` | Flows within a line of text, as wide as its children. |
|
|
24541
24753
|
|
|
24542
24754
|
### Grid props
|
|
24543
24755
|
|
|
24544
24756
|
| Prop | Type | Default | Description |
|
|
24545
24757
|
| --- | --- | --- | --- |
|
|
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
|
|
24758
|
+
| `columns, rows` | `Bind<Responsive<GridTracks>>` | One column | See Tracks. |
|
|
24759
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The gap between rows and columns. |
|
|
24760
|
+
| `rowGap, columnGap` | `Bind<Responsive<LayoutSpace>>` | `gap` | The gap in one direction only. |
|
|
24761
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24762
|
+
| `autoRows, autoColumns` | `Bind<Responsive<number \| string>>` | `'auto'` | The size of implicit tracks. A number is in pixels. |
|
|
24763
|
+
| `flow` | `Bind<Responsive<GridFlow>>` | `'row'` | How children without a position fill the grid: `row`, `column`, `row dense` or `column dense`. |
|
|
24764
|
+
| `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | The vertical alignment of children in their cells. |
|
|
24765
|
+
| `justify` | `Bind<Responsive<GridJustify>>` | `'stretch'` | The horizontal alignment of children in their cells. |
|
|
24554
24766
|
| `inline` | `Bind<boolean>` | `false` | Flows within a line of text. |
|
|
24555
24767
|
|
|
24556
24768
|
### Panel props
|
|
@@ -24558,7 +24770,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24558
24770
|
| Prop | Type | Default | Description |
|
|
24559
24771
|
| --- | --- | --- | --- |
|
|
24560
24772
|
| `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
|
|
24773
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24562
24774
|
| `variant` | `Bind<PanelVariant>` | `'plain'` | `plain`, `outline` (a border) or `card` (a card surface). |
|
|
24563
24775
|
| `text` | `Bind<string>` | `''` | Names the panel, which makes it a region landmark with that name. |
|
|
24564
24776
|
|
|
@@ -24569,25 +24781,25 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24569
24781
|
| `title` | `Bind<string>` | `''` | The legend. `&Address` makes Alt+A move focus to the first control inside. This is the same property as `text`. |
|
|
24570
24782
|
| `collapsible` | `Bind<boolean>` | `false` | Makes the title a button that shows and hides the content. |
|
|
24571
24783
|
| `collapsed` | `Bind<boolean>` | `false` | Hides the content (with `collapsible`). |
|
|
24572
|
-
| `padding` | `Bind<LayoutSpace
|
|
24573
|
-
| `gap` | `Bind<LayoutSpace
|
|
24784
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.padding` | The space inside the frame. |
|
|
24785
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.gap` | The space between children, which stack in a column. |
|
|
24574
24786
|
| `variant` | `Bind<GroupBoxVariant>` | `'outline'` | `outline` (a frame with the title on its edge) or `plain` (the title above the content). |
|
|
24575
24787
|
|
|
24576
24788
|
### DockPanel props
|
|
24577
24789
|
|
|
24578
24790
|
| Prop | Type | Default | Description |
|
|
24579
24791
|
| --- | --- | --- | --- |
|
|
24580
|
-
| `gap` | `Bind<LayoutSpace
|
|
24581
|
-
| `padding` | `Bind<LayoutSpace
|
|
24792
|
+
| `gap` | `Bind<Responsive<LayoutSpace>>` | — | The space between a docked child and the remaining area. |
|
|
24793
|
+
| `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
|
|
24582
24794
|
|
|
24583
24795
|
### SplitContainer props
|
|
24584
24796
|
|
|
24585
24797
|
| Prop | Type | Default | Description |
|
|
24586
24798
|
| --- | --- | --- | --- |
|
|
24587
|
-
| `orientation` | `Bind<'horizontal' \| 'vertical'
|
|
24799
|
+
| `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'horizontal'` | `horizontal` places the panes side by side, as in Stack, and `vertical` stacks them. |
|
|
24588
24800
|
| `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
24801
|
| `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
|
-
| `firstMinSize, secondMinSize` | `Bind<number
|
|
24802
|
+
| `firstMinSize, secondMinSize` | `Bind<Responsive<number>>` | `0` | The minimum size of each pane, in pixels. When the room cannot hold both, the panes share it in their proportion. |
|
|
24591
24803
|
| `collapsed` | `Bind<'none' \| 'first' \| 'second'>` | `'none'` | The collapsed pane. The other pane takes all the space. |
|
|
24592
24804
|
| `resizable` | `Bind<boolean>` | `true` | Lets the pointer and keyboard move the splitter. |
|
|
24593
24805
|
| `collapsible` | `Bind<boolean>` | `true` | Enter and a double-click collapse and restore the first pane. |
|
|
@@ -24598,11 +24810,11 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24598
24810
|
|
|
24599
24811
|
| Prop | Used by | Type | Description |
|
|
24600
24812
|
| --- | --- | --- | --- |
|
|
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
|
|
24813
|
+
| `grow` | Stack | `Bind<Responsive<boolean \| number>>` | Takes the free space along the direction. Numbers share it proportionally. |
|
|
24814
|
+
| `row, column` | Grid | `Bind<Responsive<number \| string>>` | The starting line, counted from 1. A string is passed to CSS as is (`-1`). |
|
|
24815
|
+
| `rowSpan, columnSpan` | Grid | `Bind<Responsive<number>>` | The number of tracks it spans. |
|
|
24816
|
+
| `dock` | DockPanel | `Bind<Responsive<Dock>>` | `top`, `bottom`, `start`, `end`, `fill` (the default) or `float`. |
|
|
24817
|
+
| `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
24818
|
|
|
24607
24819
|
### Properties
|
|
24608
24820
|
|
|
@@ -24613,6 +24825,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
24613
24825
|
| `SplitContainer.splitterPart` | read-only | The `role="separator"` part. |
|
|
24614
24826
|
| `SplitContainer.value` | read/write | Maps to `position` for `x-model`. |
|
|
24615
24827
|
| `GroupBox.legendPart` | read-only | The `<legend>` part. |
|
|
24828
|
+
| `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
24829
|
|
|
24617
24830
|
### Methods
|
|
24618
24831
|
|
|
@@ -24643,7 +24856,7 @@ Loading issues…
|
|
|
24643
24856
|
|
|
24644
24857
|
# Splitter
|
|
24645
24858
|
|
|
24646
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
24859
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
24647
24860
|
|
|
24648
24861
|
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
24862
|
|
|
@@ -24855,7 +25068,7 @@ Loading issues…
|
|
|
24855
25068
|
|
|
24856
25069
|
# Resizable
|
|
24857
25070
|
|
|
24858
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25071
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
24859
25072
|
|
|
24860
25073
|
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
25074
|
|
|
@@ -25002,7 +25215,7 @@ Loading issues…
|
|
|
25002
25215
|
|
|
25003
25216
|
# Draggable and DropTarget
|
|
25004
25217
|
|
|
25005
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25218
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
25006
25219
|
|
|
25007
25220
|
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
25221
|
|
|
@@ -25204,7 +25417,7 @@ Loading issues…
|
|
|
25204
25417
|
|
|
25205
25418
|
# ScrollView
|
|
25206
25419
|
|
|
25207
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25420
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
25208
25421
|
|
|
25209
25422
|
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
25423
|
|
|
@@ -25398,7 +25611,7 @@ Loading issues…
|
|
|
25398
25611
|
|
|
25399
25612
|
# Sortable
|
|
25400
25613
|
|
|
25401
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25614
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
25402
25615
|
|
|
25403
25616
|
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
25617
|
|
|
@@ -25616,7 +25829,7 @@ Loading issues…
|
|
|
25616
25829
|
|
|
25617
25830
|
# FormLayout
|
|
25618
25831
|
|
|
25619
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
25832
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
25620
25833
|
|
|
25621
25834
|
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
25835
|
|
|
@@ -25705,6 +25918,51 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25705
25918
|
{ group: 'Address', field: 'address', columns: 2, items: [{ field: 'city', label: 'City' }, { field: 'zip', label: 'Zip' }] }
|
|
25706
25919
|
```
|
|
25707
25920
|
|
|
25921
|
+
## Responsive forms
|
|
25922
|
+
|
|
25923
|
+
`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).
|
|
25924
|
+
|
|
25925
|
+
`minColumnWidth` lays out as many columns as fit, each at least that wide, without measuring anything: with `columns` given, never more than that many.
|
|
25926
|
+
|
|
25927
|
+
```tsx
|
|
25928
|
+
import { createSignal, reactive } from '@motifx/core';
|
|
25929
|
+
import { FormLayout, Panel, Slider, Stack, type FormItem } from '@motifx-community/ui';
|
|
25930
|
+
|
|
25931
|
+
/**
|
|
25932
|
+
* 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
|
|
25933
|
+
* one column with the labels on top to three columns with the labels beside the boxes, and the note takes the whole
|
|
25934
|
+
* row until there is room for it beside the others.
|
|
25935
|
+
*/
|
|
25936
|
+
export default function ResponsiveForm() {
|
|
25937
|
+
const s = reactive({ width: 900 });
|
|
25938
|
+
const order = reactive({ customer: 'Ada Lovelace', email: '', phone: '', city: 'İstanbul', zip: '', note: '' });
|
|
25939
|
+
const form = createSignal<FormLayout<typeof order> | null>(null);
|
|
25940
|
+
|
|
25941
|
+
const items: FormItem[] = [
|
|
25942
|
+
{ field: 'customer', label: 'Customer' },
|
|
25943
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
25944
|
+
{ field: 'phone', label: 'Phone' },
|
|
25945
|
+
{ field: 'city', label: 'City' },
|
|
25946
|
+
{ field: 'zip', label: 'Zip code' },
|
|
25947
|
+
{ field: 'note', label: 'Note', colSpan: { xs: 'all', lg: 1 } },
|
|
25948
|
+
];
|
|
25949
|
+
|
|
25950
|
+
return (
|
|
25951
|
+
<>
|
|
25952
|
+
<Stack orientation="horizontal" wrap align="center" gap="md">
|
|
25953
|
+
<Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
|
|
25954
|
+
<output class="form-breakpoint">{() => `${s.width} px, the form at ${form.value?.breakpoint ?? '…'}`}</output>
|
|
25955
|
+
</Stack>
|
|
25956
|
+
<Panel scrollable="horizontal" text="Responsive form" style="inline-size: 100%">
|
|
25957
|
+
<Panel variant="outline" padding="sm" class="form-responsive" style={() => `inline-size: ${s.width}px`}>
|
|
25958
|
+
<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)} />
|
|
25959
|
+
</Panel>
|
|
25960
|
+
</Panel>
|
|
25961
|
+
</>
|
|
25962
|
+
);
|
|
25963
|
+
}
|
|
25964
|
+
```
|
|
25965
|
+
|
|
25708
25966
|
## From a schema
|
|
25709
25967
|
|
|
25710
25968
|
`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 +25975,9 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25717
25975
|
| --- | --- | --- | --- |
|
|
25718
25976
|
| `data` | `Bind<T \| null>` | — | The object the editors display and change. |
|
|
25719
25977
|
| `items` | `Bind<readonly FormItem[]>` | `[]` | The form items. A function is tracked. |
|
|
25720
|
-
| `columns` | `Bind<number
|
|
25721
|
-
| `minColumnWidth` | `Bind<string
|
|
25722
|
-
| `labelMode` | `Bind<FieldLabelMode
|
|
25978
|
+
| `columns` | `Bind<Responsive<number>>` | `1` | The number of grid columns. See [Responsive forms](#responsive). |
|
|
25979
|
+
| `minColumnWidth` | `Bind<Responsive<string>>` | — | As many columns as fit, each at least this wide, and no more than `columns` when it is given. |
|
|
25980
|
+
| `labelMode` | `Bind<Responsive<FieldLabelMode>>` | `'top'` | Passed to every editor. |
|
|
25723
25981
|
| `readOnly` | `Bind<boolean>` | `false` | Makes every editor read-only. |
|
|
25724
25982
|
| `onValidSubmit(e) / onInvalidSubmit(e)` | | | Occurs when the form is submitted and valid (`{ data, event }`) or submitted and invalid (`{ valid, invalid }`). |
|
|
25725
25983
|
|
|
@@ -25729,8 +25987,8 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25729
25987
|
| --- | --- |
|
|
25730
25988
|
| `field, label, editor, editorProps` | The property, its label, its editor and the editor's props. |
|
|
25731
25989
|
| `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. |
|
|
25990
|
+
| `colSpan` | The number of columns it spans. Use `'all'` for the whole row. Also per breakpoint: `{ xs: 'all', md: 1 }`. |
|
|
25991
|
+
| `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
25992
|
| `button` | Button props. `submit: true` submits the form. |
|
|
25735
25993
|
| `template` | Any component created for this item. |
|
|
25736
25994
|
|
|
@@ -25743,6 +26001,7 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
25743
26001
|
| `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
26002
|
| `refreshField(field)` | Re-reads one field of the data object after it has been changed in place. |
|
|
25745
26003
|
| `validationGroup, isValid` | The validation group of the fields. |
|
|
26004
|
+
| `breakpoint` | The breakpoint of the room the form is laid out in, by which its values per breakpoint are picked. |
|
|
25746
26005
|
| `FormLayout.editors` | The editors registered by name. |
|
|
25747
26006
|
|
|
25748
26007
|
## Feedback
|
|
@@ -25754,7 +26013,7 @@ Loading issues…
|
|
|
25754
26013
|
|
|
25755
26014
|
# FormLayout: From a schema
|
|
25756
26015
|
|
|
25757
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
26016
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.20
|
|
25758
26017
|
|
|
25759
26018
|
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
26019
|
|
|
@@ -25901,7 +26160,7 @@ Loading issues…
|
|
|
25901
26160
|
|
|
25902
26161
|
# Chart
|
|
25903
26162
|
|
|
25904
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26163
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
25905
26164
|
|
|
25906
26165
|
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
26166
|
|
|
@@ -26332,7 +26591,7 @@ export default class Programmatic extends Component<HTMLDivElement> {
|
|
|
26332
26591
|
|
|
26333
26592
|
# Chart: Lines and areas
|
|
26334
26593
|
|
|
26335
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26594
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
26336
26595
|
|
|
26337
26596
|
Lines and areas show how values change along an axis: over time, or from one category to the next.
|
|
26338
26597
|
|
|
@@ -26464,7 +26723,7 @@ Loading issues…
|
|
|
26464
26723
|
|
|
26465
26724
|
# Chart: Bars
|
|
26466
26725
|
|
|
26467
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26726
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
26468
26727
|
|
|
26469
26728
|
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
26729
|
|
|
@@ -26610,7 +26869,7 @@ export const SALES = [
|
|
|
26610
26869
|
|
|
26611
26870
|
# Chart: Scatter and bubble
|
|
26612
26871
|
|
|
26613
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
26872
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
26614
26873
|
|
|
26615
26874
|
Scatter and bubble charts place each row by two numbers, to show how they relate.
|
|
26616
26875
|
|
|
@@ -26753,7 +27012,7 @@ Loading issues…
|
|
|
26753
27012
|
|
|
26754
27013
|
# Chart: Pie and donut
|
|
26755
27014
|
|
|
26756
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27015
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
26757
27016
|
|
|
26758
27017
|
A pie or a donut splits one whole into its parts, for a share seen at a glance.
|
|
26759
27018
|
|
|
@@ -26882,7 +27141,7 @@ Loading issues…
|
|
|
26882
27141
|
|
|
26883
27142
|
# Chart: Funnel
|
|
26884
27143
|
|
|
26885
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27144
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
26886
27145
|
|
|
26887
27146
|
A funnel follows a quantity through stages in order, and shows how much of it is left at each one.
|
|
26888
27147
|
|
|
@@ -27001,7 +27260,7 @@ Loading issues…
|
|
|
27001
27260
|
|
|
27002
27261
|
# Chart: Radar
|
|
27003
27262
|
|
|
27004
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27263
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27005
27264
|
|
|
27006
27265
|
A radar compares several measures at once, for one or more items.
|
|
27007
27266
|
|
|
@@ -27129,7 +27388,7 @@ Loading issues…
|
|
|
27129
27388
|
|
|
27130
27389
|
# Chart: Heat map
|
|
27131
27390
|
|
|
27132
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27391
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27133
27392
|
|
|
27134
27393
|
A heat map shows a value for each pair of two categories as a color.
|
|
27135
27394
|
|
|
@@ -27226,7 +27485,7 @@ Loading issues…
|
|
|
27226
27485
|
|
|
27227
27486
|
# Chart: Ranges
|
|
27228
27487
|
|
|
27229
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27488
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27230
27489
|
|
|
27231
27490
|
Ranges show a low and a high value for each position, as a band or as floating bars.
|
|
27232
27491
|
|
|
@@ -27357,7 +27616,7 @@ Loading issues…
|
|
|
27357
27616
|
|
|
27358
27617
|
# Chart: Candles
|
|
27359
27618
|
|
|
27360
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27619
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27361
27620
|
|
|
27362
27621
|
Candles show the first, highest, lowest and last price for each position.
|
|
27363
27622
|
|
|
@@ -27525,7 +27784,7 @@ Loading issues…
|
|
|
27525
27784
|
|
|
27526
27785
|
# Chart: Waterfall
|
|
27527
27786
|
|
|
27528
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27787
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27529
27788
|
|
|
27530
27789
|
A waterfall shows how a starting value becomes an end value through changes up and down.
|
|
27531
27790
|
|
|
@@ -27640,7 +27899,7 @@ Loading issues…
|
|
|
27640
27899
|
|
|
27641
27900
|
# Chart: Zoom and large data
|
|
27642
27901
|
|
|
27643
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
27902
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27644
27903
|
|
|
27645
27904
|
Large data stays quick: long lines are thinned to the width with their peaks kept, and the reader zooms in for detail.
|
|
27646
27905
|
|
|
@@ -27739,7 +27998,7 @@ Loading issues…
|
|
|
27739
27998
|
|
|
27740
27999
|
# Chart: Live data
|
|
27741
28000
|
|
|
27742
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
28001
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27743
28002
|
|
|
27744
28003
|
A chart follows its data: reactive values redraw it, and live data moves along with the latest values.
|
|
27745
28004
|
|
|
@@ -27805,7 +28064,7 @@ Loading issues…
|
|
|
27805
28064
|
|
|
27806
28065
|
# Chart: References and selection
|
|
27807
28066
|
|
|
27808
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
28067
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27809
28068
|
|
|
27810
28069
|
Reference lines and bands give the values a target, a limit or a period, and the reader can choose values to act on.
|
|
27811
28070
|
|
|
@@ -27935,7 +28194,7 @@ export default function Selection() {
|
|
|
27935
28194
|
|
|
27936
28195
|
# Sparkline
|
|
27937
28196
|
|
|
27938
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
28197
|
+
> Charts · @motifx-community/ui 0.1.0-beta.20
|
|
27939
28198
|
|
|
27940
28199
|
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
28200
|
|
|
@@ -28058,7 +28317,7 @@ Loading issues…
|
|
|
28058
28317
|
|
|
28059
28318
|
# Gauge
|
|
28060
28319
|
|
|
28061
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28320
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28062
28321
|
|
|
28063
28322
|
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
28323
|
|
|
@@ -28214,7 +28473,7 @@ Loading issues…
|
|
|
28214
28473
|
|
|
28215
28474
|
# Gauge: Circular
|
|
28216
28475
|
|
|
28217
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28476
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28218
28477
|
|
|
28219
28478
|
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
28479
|
|
|
@@ -28319,7 +28578,7 @@ Loading issues…
|
|
|
28319
28578
|
|
|
28320
28579
|
# Gauge: Linear
|
|
28321
28580
|
|
|
28322
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28581
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28323
28582
|
|
|
28324
28583
|
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
28584
|
|
|
@@ -28407,7 +28666,7 @@ Loading issues…
|
|
|
28407
28666
|
|
|
28408
28667
|
# Gauge: Scales
|
|
28409
28668
|
|
|
28410
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28669
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28411
28670
|
|
|
28412
28671
|
The scale tells the reader how to read the value: its ends, ticks with their values, or nothing at all.
|
|
28413
28672
|
|
|
@@ -28528,7 +28787,7 @@ Loading issues…
|
|
|
28528
28787
|
|
|
28529
28788
|
# Gauge: Ranges
|
|
28530
28789
|
|
|
28531
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28790
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28532
28791
|
|
|
28533
28792
|
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
28793
|
|
|
@@ -28665,7 +28924,7 @@ Loading issues…
|
|
|
28665
28924
|
|
|
28666
28925
|
# Gauge: Markers
|
|
28667
28926
|
|
|
28668
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
28927
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28669
28928
|
|
|
28670
28929
|
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
28930
|
|
|
@@ -28804,7 +29063,7 @@ Loading issues…
|
|
|
28804
29063
|
|
|
28805
29064
|
# Gauge: Marks
|
|
28806
29065
|
|
|
28807
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29066
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28808
29067
|
|
|
28809
29068
|
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
29069
|
|
|
@@ -28916,7 +29175,7 @@ Loading issues…
|
|
|
28916
29175
|
|
|
28917
29176
|
# Gauge: Base value
|
|
28918
29177
|
|
|
28919
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29178
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
28920
29179
|
|
|
28921
29180
|
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
29181
|
|
|
@@ -28998,7 +29257,7 @@ Loading issues…
|
|
|
28998
29257
|
|
|
28999
29258
|
# Gauge: Dashboards
|
|
29000
29259
|
|
|
29001
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29260
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
29002
29261
|
|
|
29003
29262
|
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
29263
|
|
|
@@ -29136,7 +29395,7 @@ Loading issues…
|
|
|
29136
29395
|
|
|
29137
29396
|
# BarGauge
|
|
29138
29397
|
|
|
29139
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29398
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
29140
29399
|
|
|
29141
29400
|
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
29401
|
|
|
@@ -29238,7 +29497,7 @@ Loading issues…
|
|
|
29238
29497
|
|
|
29239
29498
|
# BarGauge: Labels and legend
|
|
29240
29499
|
|
|
29241
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29500
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
29242
29501
|
|
|
29243
29502
|
Each value can be written at the end of its bar, named in a legend, and shown with its name under the pointer.
|
|
29244
29503
|
|
|
@@ -29320,7 +29579,7 @@ Loading issues…
|
|
|
29320
29579
|
|
|
29321
29580
|
# BarGauge: Data
|
|
29322
29581
|
|
|
29323
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29582
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
29324
29583
|
|
|
29325
29584
|
A bar gauge reads numbers, or rows through their fields, and follows them as they change.
|
|
29326
29585
|
|
|
@@ -29446,7 +29705,7 @@ Loading issues…
|
|
|
29446
29705
|
|
|
29447
29706
|
# BarGauge: Angles and size
|
|
29448
29707
|
|
|
29449
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
29708
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.20
|
|
29450
29709
|
|
|
29451
29710
|
How far the bars go round and which way they face fit a bar gauge to the room it has.
|
|
29452
29711
|
|
|
@@ -29537,7 +29796,7 @@ Loading issues…
|
|
|
29537
29796
|
|
|
29538
29797
|
# Data
|
|
29539
29798
|
|
|
29540
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
29799
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
29541
29800
|
|
|
29542
29801
|
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
29802
|
|
|
@@ -29668,7 +29927,7 @@ Loading issues…
|
|
|
29668
29927
|
|
|
29669
29928
|
# TreeView
|
|
29670
29929
|
|
|
29671
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
29930
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
29672
29931
|
|
|
29673
29932
|
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
29933
|
|
|
@@ -29770,7 +30029,7 @@ export interface Entry {
|
|
|
29770
30029
|
|
|
29771
30030
|
## Flat data, fields and templates
|
|
29772
30031
|
|
|
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 `
|
|
30032
|
+
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
30033
|
|
|
29775
30034
|
```tsx
|
|
29776
30035
|
/** A row of the trees on this page. */
|
|
@@ -30430,7 +30689,7 @@ export default function SizesAndLines() {
|
|
|
30430
30689
|
|
|
30431
30690
|
# ListBox
|
|
30432
30691
|
|
|
30433
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
30692
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
30434
30693
|
|
|
30435
30694
|
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
30695
|
|
|
@@ -30813,7 +31072,7 @@ export default function Validation() {
|
|
|
30813
31072
|
|
|
30814
31073
|
# TagBox
|
|
30815
31074
|
|
|
30816
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
31075
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
30817
31076
|
|
|
30818
31077
|
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
31078
|
|
|
@@ -31182,7 +31441,7 @@ export default function Localization() {
|
|
|
31182
31441
|
|
|
31183
31442
|
# FilterBuilder
|
|
31184
31443
|
|
|
31185
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
31444
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
31186
31445
|
|
|
31187
31446
|
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
31447
|
|
|
@@ -31791,7 +32050,7 @@ export default function Localization() {
|
|
|
31791
32050
|
|
|
31792
32051
|
# Expression language
|
|
31793
32052
|
|
|
31794
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
32053
|
+
> Data · @motifx-community/ui 0.1.0-beta.20
|
|
31795
32054
|
|
|
31796
32055
|
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
32056
|
|
|
@@ -32226,7 +32485,7 @@ Loading issues…
|
|
|
32226
32485
|
|
|
32227
32486
|
# RibbonMenu
|
|
32228
32487
|
|
|
32229
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32488
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32230
32489
|
|
|
32231
32490
|
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
32491
|
|
|
@@ -32465,7 +32724,7 @@ Loading issues…
|
|
|
32465
32724
|
|
|
32466
32725
|
# RibbonMenu: Commands
|
|
32467
32726
|
|
|
32468
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32727
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32469
32728
|
|
|
32470
32729
|
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
32730
|
|
|
@@ -32587,7 +32846,7 @@ Loading issues…
|
|
|
32587
32846
|
|
|
32588
32847
|
# RibbonMenu: Layouts and room
|
|
32589
32848
|
|
|
32590
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32849
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32591
32850
|
|
|
32592
32851
|
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
32852
|
|
|
@@ -32650,7 +32909,7 @@ Loading issues…
|
|
|
32650
32909
|
|
|
32651
32910
|
# RibbonMenu: Showing and keys
|
|
32652
32911
|
|
|
32653
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
32912
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32654
32913
|
|
|
32655
32914
|
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
32915
|
|
|
@@ -32750,7 +33009,7 @@ Loading issues…
|
|
|
32750
33009
|
|
|
32751
33010
|
# RibbonMenu: Customization
|
|
32752
33011
|
|
|
32753
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
33012
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32754
33013
|
|
|
32755
33014
|
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
33015
|
|
|
@@ -32848,7 +33107,7 @@ Loading issues…
|
|
|
32848
33107
|
|
|
32849
33108
|
# RibbonMenu: Programmatic changes
|
|
32850
33109
|
|
|
32851
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
33110
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32852
33111
|
|
|
32853
33112
|
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
33113
|
|
|
@@ -32943,7 +33202,7 @@ Loading issues…
|
|
|
32943
33202
|
|
|
32944
33203
|
# RibbonMenu: API reference
|
|
32945
33204
|
|
|
32946
|
-
> RibbonMenu · @motifx-community/ui 0.1.0-beta.
|
|
33205
|
+
> RibbonMenu · @motifx-community/ui 0.1.0-beta.20
|
|
32947
33206
|
|
|
32948
33207
|
Everything `RibbonMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
|
|
32949
33208
|
|
|
@@ -33078,7 +33337,7 @@ Loading issues…
|
|
|
33078
33337
|
|
|
33079
33338
|
# MenuBar and ContextMenu
|
|
33080
33339
|
|
|
33081
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33340
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33082
33341
|
|
|
33083
33342
|
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
33343
|
|
|
@@ -33242,7 +33501,7 @@ Loading issues…
|
|
|
33242
33501
|
|
|
33243
33502
|
# MenuBar: ContextMenu
|
|
33244
33503
|
|
|
33245
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33504
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33246
33505
|
|
|
33247
33506
|
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
33507
|
|
|
@@ -33373,7 +33632,7 @@ Loading issues…
|
|
|
33373
33632
|
|
|
33374
33633
|
# MenuBar: Customization
|
|
33375
33634
|
|
|
33376
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33635
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33377
33636
|
|
|
33378
33637
|
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
33638
|
|
|
@@ -33519,7 +33778,7 @@ Loading issues…
|
|
|
33519
33778
|
|
|
33520
33779
|
# MenuBar: Programmatic changes
|
|
33521
33780
|
|
|
33522
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33781
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33523
33782
|
|
|
33524
33783
|
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
33784
|
|
|
@@ -33597,7 +33856,7 @@ Loading issues…
|
|
|
33597
33856
|
|
|
33598
33857
|
# MenuBar: Merging menus
|
|
33599
33858
|
|
|
33600
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
33859
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33601
33860
|
|
|
33602
33861
|
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
33862
|
|
|
@@ -33809,7 +34068,7 @@ Loading issues…
|
|
|
33809
34068
|
|
|
33810
34069
|
# MenuBar: API reference
|
|
33811
34070
|
|
|
33812
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
34071
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.20
|
|
33813
34072
|
|
|
33814
34073
|
Every prop, property, method and event of `MenuBar` and `ContextMenu`, the fields of a menu item, and the styling hooks and tokens.
|
|
33815
34074
|
|
|
@@ -33957,7 +34216,7 @@ Loading issues…
|
|
|
33957
34216
|
|
|
33958
34217
|
# Toolbar
|
|
33959
34218
|
|
|
33960
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34219
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.20
|
|
33961
34220
|
|
|
33962
34221
|
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
34222
|
|
|
@@ -34379,7 +34638,7 @@ export default function SizeAndOrientation() {
|
|
|
34379
34638
|
|
|
34380
34639
|
# Toolbar: Customization
|
|
34381
34640
|
|
|
34382
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34641
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.20
|
|
34383
34642
|
|
|
34384
34643
|
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
34644
|
|
|
@@ -34644,7 +34903,7 @@ export default function SendToToolbar() {
|
|
|
34644
34903
|
|
|
34645
34904
|
# Toolbar: API reference
|
|
34646
34905
|
|
|
34647
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
34906
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.20
|
|
34648
34907
|
|
|
34649
34908
|
Every prop, property, method and event of `Toolbar`, and the fields of its items.
|
|
34650
34909
|
|
|
@@ -34728,7 +34987,7 @@ Loading issues…
|
|
|
34728
34987
|
|
|
34729
34988
|
# AppMenu
|
|
34730
34989
|
|
|
34731
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
34990
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.20
|
|
34732
34991
|
|
|
34733
34992
|
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
34993
|
|
|
@@ -34882,7 +35141,7 @@ Loading issues…
|
|
|
34882
35141
|
|
|
34883
35142
|
# AppMenu: Slots and search
|
|
34884
35143
|
|
|
34885
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35144
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.20
|
|
34886
35145
|
|
|
34887
35146
|
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
35147
|
|
|
@@ -34952,7 +35211,7 @@ Loading issues…
|
|
|
34952
35211
|
|
|
34953
35212
|
# AppMenu: Programmatic changes
|
|
34954
35213
|
|
|
34955
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35214
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.20
|
|
34956
35215
|
|
|
34957
35216
|
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
35217
|
|
|
@@ -35032,7 +35291,7 @@ Loading issues…
|
|
|
35032
35291
|
|
|
35033
35292
|
# AppMenu: API reference
|
|
35034
35293
|
|
|
35035
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
35294
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.20
|
|
35036
35295
|
|
|
35037
35296
|
Everything `AppMenu` takes, offers and reports. Every prop is also a settable property, and a function is followed.
|
|
35038
35297
|
|
|
@@ -35119,7 +35378,7 @@ Loading issues…
|
|
|
35119
35378
|
|
|
35120
35379
|
# TabDocumentManager
|
|
35121
35380
|
|
|
35122
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
35381
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
35123
35382
|
|
|
35124
35383
|
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
35384
|
|
|
@@ -36015,7 +36274,7 @@ export default function SaveRestore() {
|
|
|
36015
36274
|
|
|
36016
36275
|
# TabDocumentManager: Tabs
|
|
36017
36276
|
|
|
36018
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
36277
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
36019
36278
|
|
|
36020
36279
|
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
36280
|
|
|
@@ -36853,7 +37112,7 @@ export default function Duplicates() {
|
|
|
36853
37112
|
|
|
36854
37113
|
# TabDocumentManager: Menus and keys
|
|
36855
37114
|
|
|
36856
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
37115
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
36857
37116
|
|
|
36858
37117
|
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
37118
|
|
|
@@ -37550,7 +37809,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
37550
37809
|
|
|
37551
37810
|
# TabDocumentManager: Drag and drop
|
|
37552
37811
|
|
|
37553
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
37812
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
37554
37813
|
|
|
37555
37814
|
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
37815
|
|
|
@@ -38112,7 +38371,7 @@ export default function MoveWithKeys() {
|
|
|
38112
38371
|
|
|
38113
38372
|
# TabDocumentManager: Dock and floating windows
|
|
38114
38373
|
|
|
38115
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
38374
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
38116
38375
|
|
|
38117
38376
|
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
38377
|
|
|
@@ -38997,7 +39256,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
38997
39256
|
|
|
38998
39257
|
# TabDocumentManager: New windows
|
|
38999
39258
|
|
|
39000
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
39259
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
39001
39260
|
|
|
39002
39261
|
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
39262
|
|
|
@@ -39661,7 +39920,7 @@ export default function WindowLayout() {
|
|
|
39661
39920
|
|
|
39662
39921
|
# TabDocumentManager: Tablet and phone
|
|
39663
39922
|
|
|
39664
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
39923
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
39665
39924
|
|
|
39666
39925
|
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
39926
|
|
|
@@ -39946,7 +40205,7 @@ Loading issues…
|
|
|
39946
40205
|
|
|
39947
40206
|
# TabDocumentManager: A whole workspace
|
|
39948
40207
|
|
|
39949
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
40208
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.20
|
|
39950
40209
|
|
|
39951
40210
|
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
40211
|
|
|
@@ -40363,7 +40622,7 @@ export function customerCard(customer: Customer): ComponentBase {
|
|
|
40363
40622
|
|
|
40364
40623
|
# Scheduler
|
|
40365
40624
|
|
|
40366
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
40625
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
40367
40626
|
|
|
40368
40627
|
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
40628
|
|
|
@@ -40963,7 +41222,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
40963
41222
|
|
|
40964
41223
|
# Scheduler: Editing
|
|
40965
41224
|
|
|
40966
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
41225
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
40967
41226
|
|
|
40968
41227
|
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
41228
|
|
|
@@ -41516,7 +41775,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
41516
41775
|
|
|
41517
41776
|
# Scheduler: Recurrence and time zones
|
|
41518
41777
|
|
|
41519
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
41778
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
41520
41779
|
|
|
41521
41780
|
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
41781
|
|
|
@@ -41944,7 +42203,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
41944
42203
|
|
|
41945
42204
|
# Scheduler: Resources and groups
|
|
41946
42205
|
|
|
41947
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
42206
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
41948
42207
|
|
|
41949
42208
|
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
42209
|
|
|
@@ -42654,7 +42913,7 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
42654
42913
|
|
|
42655
42914
|
# Scheduler: The appointment form
|
|
42656
42915
|
|
|
42657
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
42916
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
42658
42917
|
|
|
42659
42918
|
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
42919
|
|
|
@@ -43293,7 +43552,7 @@ export default function OwnForm() {
|
|
|
43293
43552
|
|
|
43294
43553
|
# Scheduler: Timeline
|
|
43295
43554
|
|
|
43296
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
43555
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
43297
43556
|
|
|
43298
43557
|
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
43558
|
|
|
@@ -43933,7 +44192,7 @@ export default function TimelineTemplates() {
|
|
|
43933
44192
|
|
|
43934
44193
|
# Scheduler: Agenda
|
|
43935
44194
|
|
|
43936
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
44195
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
43937
44196
|
|
|
43938
44197
|
Displays upcoming days as a list, with each day's appointments in time order. Days without appointments are omitted.
|
|
43939
44198
|
|
|
@@ -44538,7 +44797,7 @@ export default function AgendaTemplates() {
|
|
|
44538
44797
|
|
|
44539
44798
|
# Scheduler: Big data
|
|
44540
44799
|
|
|
44541
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
44800
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
44542
44801
|
|
|
44543
44802
|
Handles thousands of resources and appointments. The scheduler renders only what is visible, and recalculates the layout only for what has changed.
|
|
44544
44803
|
|
|
@@ -44799,7 +45058,7 @@ export default function BigWeek() {
|
|
|
44799
45058
|
|
|
44800
45059
|
# Scheduler: Tablet and phone
|
|
44801
45060
|
|
|
44802
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
45061
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
44803
45062
|
|
|
44804
45063
|
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
45064
|
|
|
@@ -45471,7 +45730,7 @@ export default function Touch() {
|
|
|
45471
45730
|
|
|
45472
45731
|
# Scheduler: iCalendar and print
|
|
45473
45732
|
|
|
45474
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
45733
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.20
|
|
45475
45734
|
|
|
45476
45735
|
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
45736
|
|
|
@@ -46070,7 +46329,7 @@ export function sampleAppointments(): Meeting[] {
|
|
|
46070
46329
|
|
|
46071
46330
|
# DataGrid
|
|
46072
46331
|
|
|
46073
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
46332
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
46074
46333
|
|
|
46075
46334
|
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
46335
|
|
|
@@ -46440,7 +46699,7 @@ export default function Pager() {
|
|
|
46440
46699
|
|
|
46441
46700
|
# DataGrid: Editing
|
|
46442
46701
|
|
|
46443
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
46702
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
46444
46703
|
|
|
46445
46704
|
## Editing and save modes
|
|
46446
46705
|
|
|
@@ -47091,7 +47350,7 @@ export default function BarActions() {
|
|
|
47091
47350
|
|
|
47092
47351
|
# DataGrid: Edit forms and popups
|
|
47093
47352
|
|
|
47094
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
47353
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
47095
47354
|
|
|
47096
47355
|
## Edit forms and popups
|
|
47097
47356
|
|
|
@@ -47501,7 +47760,7 @@ export default function ValidationRules() {
|
|
|
47501
47760
|
|
|
47502
47761
|
# DataGrid: Filtering and search
|
|
47503
47762
|
|
|
47504
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
47763
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
47505
47764
|
|
|
47506
47765
|
## Filters
|
|
47507
47766
|
|
|
@@ -48077,7 +48336,7 @@ export function makeCustomers(n: number): Customer[] {
|
|
|
48077
48336
|
|
|
48078
48337
|
# DataGrid: Lookup columns
|
|
48079
48338
|
|
|
48080
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
48339
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
48081
48340
|
|
|
48082
48341
|
## Lookup columns
|
|
48083
48342
|
|
|
@@ -48451,7 +48710,7 @@ export default function TextFrom() {
|
|
|
48451
48710
|
|
|
48452
48711
|
# DataGrid: Grouping and summaries
|
|
48453
48712
|
|
|
48454
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
48713
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
48455
48714
|
|
|
48456
48715
|
## Grouping
|
|
48457
48716
|
|
|
@@ -48938,7 +49197,7 @@ export default function SummariesServer() {
|
|
|
48938
49197
|
|
|
48939
49198
|
# DataGrid: Master-detail
|
|
48940
49199
|
|
|
48941
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49200
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
48942
49201
|
|
|
48943
49202
|
## Master-detail
|
|
48944
49203
|
|
|
@@ -49272,7 +49531,7 @@ export default function DetailTabs() {
|
|
|
49272
49531
|
|
|
49273
49532
|
# DataGrid: Bands and adaptive columns
|
|
49274
49533
|
|
|
49275
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49534
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
49276
49535
|
|
|
49277
49536
|
## Band headers
|
|
49278
49537
|
|
|
@@ -49597,7 +49856,7 @@ export default function AdaptiveColumns() {
|
|
|
49597
49856
|
|
|
49598
49857
|
# DataGrid: Selection and export
|
|
49599
49858
|
|
|
49600
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
49859
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
49601
49860
|
|
|
49602
49861
|
## Selection
|
|
49603
49862
|
|
|
@@ -50204,7 +50463,7 @@ export default function PdfExport() {
|
|
|
50204
50463
|
|
|
50205
50464
|
# DataGrid: Row drag and drop
|
|
50206
50465
|
|
|
50207
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
50466
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
50208
50467
|
|
|
50209
50468
|
## Reorder rows
|
|
50210
50469
|
|
|
@@ -50553,7 +50812,7 @@ export default function RowDragBetween() {
|
|
|
50553
50812
|
|
|
50554
50813
|
# DataGrid: Selecting by dragging
|
|
50555
50814
|
|
|
50556
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
50815
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
50557
50816
|
|
|
50558
50817
|
## Rows
|
|
50559
50818
|
|
|
@@ -50887,7 +51146,7 @@ export default function CellRanges() {
|
|
|
50887
51146
|
|
|
50888
51147
|
# DataGrid: Scrolling
|
|
50889
51148
|
|
|
50890
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
51149
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
50891
51150
|
|
|
50892
51151
|
## Scrolling modes
|
|
50893
51152
|
|
|
@@ -51319,7 +51578,7 @@ export default function InfiniteGroups() {
|
|
|
51319
51578
|
|
|
51320
51579
|
# DataGrid: Layout and events
|
|
51321
51580
|
|
|
51322
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
51581
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
51323
51582
|
|
|
51324
51583
|
## Toolbar
|
|
51325
51584
|
|
|
@@ -51867,7 +52126,7 @@ export default function Events() {
|
|
|
51867
52126
|
|
|
51868
52127
|
# DataGrid: API reference
|
|
51869
52128
|
|
|
51870
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
52129
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.20
|
|
51871
52130
|
|
|
51872
52131
|
## Columns
|
|
51873
52132
|
|
|
@@ -52296,7 +52555,7 @@ export interface Order {
|
|
|
52296
52555
|
|
|
52297
52556
|
# PivotGrid
|
|
52298
52557
|
|
|
52299
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
52558
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
52300
52559
|
|
|
52301
52560
|
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
52561
|
|
|
@@ -52595,7 +52854,7 @@ export default function Large() {
|
|
|
52595
52854
|
|
|
52596
52855
|
# PivotGrid: Fields and areas
|
|
52597
52856
|
|
|
52598
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
52857
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
52599
52858
|
|
|
52600
52859
|
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
52860
|
|
|
@@ -52844,7 +53103,7 @@ export default function Computed() {
|
|
|
52844
53103
|
|
|
52845
53104
|
# PivotGrid: Totals and layout
|
|
52846
53105
|
|
|
52847
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
53106
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
52848
53107
|
|
|
52849
53108
|
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
53109
|
|
|
@@ -53511,7 +53770,7 @@ export default function Cells() {
|
|
|
53511
53770
|
|
|
53512
53771
|
# PivotGrid: Summaries and display
|
|
53513
53772
|
|
|
53514
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
53773
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
53515
53774
|
|
|
53516
53775
|
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
53776
|
|
|
@@ -53845,7 +54104,7 @@ export default function OwnCalculation() {
|
|
|
53845
54104
|
|
|
53846
54105
|
# PivotGrid: Field panel and chooser
|
|
53847
54106
|
|
|
53848
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54107
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
53849
54108
|
|
|
53850
54109
|
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
54110
|
|
|
@@ -54072,7 +54331,7 @@ export default function FieldChooser() {
|
|
|
54072
54331
|
|
|
54073
54332
|
# PivotGrid: Sorting and filtering
|
|
54074
54333
|
|
|
54075
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54334
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
54076
54335
|
|
|
54077
54336
|
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
54337
|
|
|
@@ -54455,7 +54714,7 @@ export default function FilterItems() {
|
|
|
54455
54714
|
|
|
54456
54715
|
# PivotGrid: State and selection
|
|
54457
54716
|
|
|
54458
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54717
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
54459
54718
|
|
|
54460
54719
|
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
54720
|
|
|
@@ -54704,7 +54963,7 @@ export default function Selection() {
|
|
|
54704
54963
|
|
|
54705
54964
|
# PivotGrid: Remote data
|
|
54706
54965
|
|
|
54707
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
54966
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
54708
54967
|
|
|
54709
54968
|
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
54969
|
|
|
@@ -55183,7 +55442,7 @@ self.onmessage = (e: MessageEvent<{ id: number; body: string }>) => {
|
|
|
55183
55442
|
|
|
55184
55443
|
# PivotGrid: Drill-down
|
|
55185
55444
|
|
|
55186
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55445
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
55187
55446
|
|
|
55188
55447
|
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
55448
|
|
|
@@ -55329,7 +55588,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55329
55588
|
|
|
55330
55589
|
# PivotGrid: Chart
|
|
55331
55590
|
|
|
55332
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55591
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
55333
55592
|
|
|
55334
55593
|
`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
55594
|
|
|
@@ -55465,7 +55724,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55465
55724
|
|
|
55466
55725
|
# PivotGrid: Export
|
|
55467
55726
|
|
|
55468
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55727
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
55469
55728
|
|
|
55470
55729
|
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
55730
|
|
|
@@ -55676,7 +55935,7 @@ export function makeSales(count: number): Sale[] {
|
|
|
55676
55935
|
|
|
55677
55936
|
# PivotGrid: Keyboard and accessibility
|
|
55678
55937
|
|
|
55679
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
55938
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
55680
55939
|
|
|
55681
55940
|
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
55941
|
|
|
@@ -55903,7 +56162,7 @@ export default function RightToLeft() {
|
|
|
55903
56162
|
|
|
55904
56163
|
# PivotGrid: API reference
|
|
55905
56164
|
|
|
55906
|
-
> PivotGrid · @motifx-community/ui 0.1.0-beta.
|
|
56165
|
+
> PivotGrid · @motifx-community/ui 0.1.0-beta.20
|
|
55907
56166
|
|
|
55908
56167
|
## Props
|
|
55909
56168
|
|
|
@@ -56087,7 +56346,7 @@ Loading issues…
|
|
|
56087
56346
|
|
|
56088
56347
|
# Diagram
|
|
56089
56348
|
|
|
56090
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56349
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
56091
56350
|
|
|
56092
56351
|
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
56352
|
|
|
@@ -56311,7 +56570,7 @@ Loading issues…
|
|
|
56311
56570
|
|
|
56312
56571
|
# Diagram: Connections
|
|
56313
56572
|
|
|
56314
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56573
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
56315
56574
|
|
|
56316
56575
|
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
56576
|
|
|
@@ -56474,7 +56733,7 @@ Loading issues…
|
|
|
56474
56733
|
|
|
56475
56734
|
# Diagram: Nodes and styles
|
|
56476
56735
|
|
|
56477
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56736
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
56478
56737
|
|
|
56479
56738
|
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
56739
|
|
|
@@ -56684,7 +56943,7 @@ Loading issues…
|
|
|
56684
56943
|
|
|
56685
56944
|
# Diagram: Custom nodes
|
|
56686
56945
|
|
|
56687
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
56946
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
56688
56947
|
|
|
56689
56948
|
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
56949
|
|
|
@@ -57013,7 +57272,7 @@ Loading issues…
|
|
|
57013
57272
|
|
|
57014
57273
|
# Diagram: Tables and classes
|
|
57015
57274
|
|
|
57016
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57275
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
57017
57276
|
|
|
57018
57277
|
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
57278
|
|
|
@@ -57229,7 +57488,7 @@ Loading issues…
|
|
|
57229
57488
|
|
|
57230
57489
|
# Diagram: Flow nodes
|
|
57231
57490
|
|
|
57232
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57491
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
57233
57492
|
|
|
57234
57493
|
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
57494
|
|
|
@@ -57407,7 +57666,7 @@ Loading issues…
|
|
|
57407
57666
|
|
|
57408
57667
|
# Diagram: Build your own flow designer
|
|
57409
57668
|
|
|
57410
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
57669
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
57411
57670
|
|
|
57412
57671
|
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
57672
|
|
|
@@ -58227,7 +58486,7 @@ export const STEPS: Record<string, StepKind> = { orders, discount, message };
|
|
|
58227
58486
|
|
|
58228
58487
|
# Diagram: Layout, map and export
|
|
58229
58488
|
|
|
58230
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
58489
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
58231
58490
|
|
|
58232
58491
|
Placing the nodes automatically, a map of the whole diagram, saving and loading, and images of the diagram.
|
|
58233
58492
|
|
|
@@ -58585,7 +58844,7 @@ Loading issues…
|
|
|
58585
58844
|
|
|
58586
58845
|
# Diagram: Moving and selecting
|
|
58587
58846
|
|
|
58588
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
58847
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
58589
58848
|
|
|
58590
58849
|
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
58850
|
|
|
@@ -58778,7 +59037,7 @@ Loading issues…
|
|
|
58778
59037
|
|
|
58779
59038
|
# Diagram: History and commands
|
|
58780
59039
|
|
|
58781
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59040
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
58782
59041
|
|
|
58783
59042
|
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
59043
|
|
|
@@ -58862,7 +59121,7 @@ Loading issues…
|
|
|
58862
59121
|
|
|
58863
59122
|
# Diagram: Keyboard and accessibility
|
|
58864
59123
|
|
|
58865
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59124
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
58866
59125
|
|
|
58867
59126
|
Everything can be done with the keys, and a screen reader hears the diagram, its nodes and what the user does.
|
|
58868
59127
|
|
|
@@ -58928,7 +59187,7 @@ Loading issues…
|
|
|
58928
59187
|
|
|
58929
59188
|
# Diagram: API reference
|
|
58930
59189
|
|
|
58931
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
59190
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.20
|
|
58932
59191
|
|
|
58933
59192
|
The props, members, events, styling hooks and design tokens of `Diagram` and `DiagramMap`.
|
|
58934
59193
|
|