@motifx-community/ui 0.1.0-beta.17 → 0.1.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/dist/components/datagrid/DataGrid.d.ts +2 -1
- package/dist/components/datagrid/grid-column.d.ts +6 -0
- package/dist/components/datagrid/model/ColumnModel.d.ts +2 -0
- package/dist/components/datagrid/model/GridModel.d.ts +4 -0
- package/dist/components/datagrid/view/ColumnStyles.d.ts +7 -3
- package/dist/components/datagrid/view/GridBody.d.ts +56 -4
- package/dist/components/form/MxForm.d.ts +3 -0
- package/dist/components/form/form-props.d.ts +7 -0
- package/dist/components/formlayout/FormLayout.d.ts +21 -6
- package/dist/components/formlayout/form-item.d.ts +4 -3
- package/dist/components/formlayout/form-layout-props.d.ts +9 -5
- package/dist/components/formlayout/form-tab.d.ts +2 -1
- package/dist/components/layout/DockPanel.d.ts +16 -6
- package/dist/components/layout/Grid.d.ts +35 -25
- package/dist/components/layout/GroupBox.d.ts +14 -4
- package/dist/components/layout/Panel.d.ts +12 -2
- package/dist/components/layout/SplitContainer.d.ts +12 -2
- package/dist/components/layout/Stack.d.ts +29 -17
- package/dist/components/layout/dock-child-props.d.ts +7 -6
- package/dist/components/layout/dock-panel-props.d.ts +3 -2
- package/dist/components/layout/grid-cell.d.ts +7 -5
- package/dist/components/layout/grid-props.d.ts +17 -12
- package/dist/components/layout/group-box-props.d.ts +3 -2
- package/dist/components/layout/panel-props.d.ts +2 -1
- package/dist/components/layout/split-container-props.d.ts +2 -1
- package/dist/components/layout/stack-child-props.d.ts +3 -2
- package/dist/components/layout/stack-props.d.ts +8 -7
- package/dist/components/tabs/Tab.d.ts +6 -0
- package/dist/components/tabs/Tabs.d.ts +5 -0
- package/dist/components/tabs/tab-props.d.ts +7 -1
- package/dist/components/tabs/tabs-props.d.ts +6 -0
- package/dist/core/responsive.d.ts +52 -0
- package/dist/excel/index.js +1 -1
- package/dist/excel/index.js.map +1 -1
- package/dist/generated/tokens.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +836 -126
- package/dist/index.js.map +1 -1
- package/dist/parts/table/RowHeights.d.ts +23 -0
- package/dist/parts/table/ScrollGeometry.d.ts +6 -1
- package/dist/parts/table/table-sheet-column.d.ts +2 -0
- package/dist/pdf/index.js +1 -1
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/pdf-export-options.d.ts +4 -1
- package/dist/styles.css +93 -5
- package/dist/tokens/index.d.ts +40 -0
- package/dist/tokens/index.js +20 -0
- package/dist/tokens/index.js.map +1 -1
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/chat.md +1 -1
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +1 -1
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +3 -2
- 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 +77 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/diagram-api.md +1 -1
- package/docs/diagram-commands.md +1 -1
- package/docs/diagram-connections.md +1 -1
- package/docs/diagram-custom-nodes.md +1 -1
- package/docs/diagram-designer.md +1 -1
- package/docs/diagram-editing.md +1 -1
- package/docs/diagram-flow.md +1 -1
- package/docs/diagram-keyboard.md +1 -1
- package/docs/diagram-layout.md +1 -1
- package/docs/diagram-nodes.md +1 -1
- package/docs/diagram-tables.md +1 -1
- package/docs/diagram.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +1 -1
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +1 -1
- package/docs/expressioneditor.md +1 -1
- package/docs/expressions.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout-schema.md +1 -1
- package/docs/formlayout.md +52 -6
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +101 -28
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.md +1 -1
- package/docs/menus-api.md +1 -1
- package/docs/menus-context.md +1 -1
- package/docs/menus-customization.md +1 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/pivotgrid-api.md +1 -1
- package/docs/pivotgrid-chart.md +1 -1
- package/docs/pivotgrid-drilldown.md +1 -1
- package/docs/pivotgrid-export.md +1 -1
- package/docs/pivotgrid-fields.md +1 -1
- package/docs/pivotgrid-keyboard.md +1 -1
- package/docs/pivotgrid-layout.md +1 -1
- package/docs/pivotgrid-panel.md +1 -1
- package/docs/pivotgrid-remote.md +1 -1
- package/docs/pivotgrid-sorting.md +1 -1
- package/docs/pivotgrid-state.md +1 -1
- package/docs/pivotgrid-summaries.md +1 -1
- package/docs/pivotgrid.md +1 -1
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +1 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +1 -1
- package/docs/ribbonmenu-display.md +1 -1
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +1 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/shortcuteditor.md +1 -1
- package/docs/showcase-flowstudio.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.md +1 -1
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +1 -1
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +58 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +1 -1
- package/docs/textbox.md +1 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +9 -1
- package/docs/toolbar-api.md +1 -1
- package/docs/toolbar-customization.md +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +2 -2
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +45 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +530 -225
- package/llms.txt +1 -1
- package/package.json +2 -2
package/docs/datagrid.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
A grid for data entry and large data sets. Rows can be in memory or come from any data layer adapter, and can be displayed in a virtual list or in pages. It supports sorting, column layout, editing with kit editors, new rows with Tab navigation, three save modes, row actions, selection, filters, a search panel, grouping, summaries, a toolbar, lookup columns from other services, copy and paste, export, and a persistent layout. Every feature can be disabled for the grid or for a single column.
|
|
6
6
|
|
package/docs/datebox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DateBox
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
An input for a date, a time or both. Users can type through a mask in the locale's order, or pick from a calendar and a list of times. `min`, `max` and `disabledDates` apply to both methods.
|
|
6
6
|
|
package/docs/daterangebox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DateRangeBox
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
A single field for a start date and an end date. Users can type through two masks, or pick from two side-by-side months and a list of presets, within the allowed dates and range length. The value is a `[start, end]` pair.
|
|
6
6
|
|
package/docs/diagram-api.md
CHANGED
package/docs/diagram-commands.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: History and commands
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Connections
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Custom nodes
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram-designer.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Build your own flow designer
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram-editing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Moving and selecting
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram-flow.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Flow nodes
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram-keyboard.md
CHANGED
package/docs/diagram-layout.md
CHANGED
package/docs/diagram-nodes.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Nodes and styles
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram-tables.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram: Tables and classes
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/diagram.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Diagram
|
|
2
2
|
|
|
3
|
-
> Diagram · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Diagram · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/display.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Display
|
|
2
2
|
|
|
3
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Display components present content: people, counts and labels, cards, pictures, tiles, events in time, codes to scan, and placeholders while content loads.
|
|
6
6
|
|
package/docs/draggable.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Draggable and DropTarget
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Makes any content movable with the pointer, touch or the arrow keys, optionally along one axis, inside a boundary, by a handle or as a copy. `DropTarget` defines areas that accept it. To reorder items in a list, see [Sortable](sortable.md).
|
|
6
6
|
|
package/docs/drawer.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Drawer
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
A panel that slides in from an edge of the page or a container, either over the content or pushing it aside. Users can swipe it in from the edge and back out, and Escape, the scrim and the browser's back action close it.
|
|
6
6
|
|
package/docs/dropdown.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DropDown
|
|
2
2
|
|
|
3
|
-
> Choice · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Choice · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Selects one item from a list. The field shows the selected item, and the list opens below it on click or from the keyboard. The list can be searched, grouped and customized, and it stays fast with thousands of items.
|
|
6
6
|
|
package/docs/editors.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Editors
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Editors take values: text, numbers, dates and times, ranges, colors, ratings, codes, files and signatures. They share one field model, so a label, help text, validation and binding work the same in all of them.
|
|
6
6
|
|
package/docs/expressioneditor.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ExpressionEditor
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/expressions.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Expression language
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/feedback.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Feedback
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Feedback components tell the reader what is happening: how far a task has come, that something is loading, what a control does, and what has just happened.
|
|
6
6
|
|
package/docs/fileuploader.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FileUploader
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Lets users select files with a button or drop them on the box. Files are listed with their size and status, and can upload automatically, on a button click or programmatically, with progress, cancel, retry and remove for each file. Files that exceed the limits are listed with the reason.
|
|
6
6
|
|
package/docs/filterbuilder.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FilterBuilder
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Lets users build a filter visually, using groups joined by And, Or, Not And or Not Or, and conditions made of a field, an operation and a value. Its value is a data layer filter expression, so it works directly with in-memory rows and every adapter. DataGrid opens it from the filter panel, and you can also use it on its own for reports or saved searches.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FormLayout: From a schema
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/formlayout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FormLayout
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Arranges the fields of a data object on a grid. Each field gets an editor, chosen by name or by the type of its value, with two-way binding to the object. Groups, column spans and buttons organize the layout, and submitting the form validates every field first.
|
|
6
6
|
|
|
@@ -89,6 +89,51 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
89
89
|
{ group: 'Address', field: 'address', columns: 2, items: [{ field: 'city', label: 'City' }, { field: 'zip', label: 'Zip' }] }
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+
## Responsive forms
|
|
93
|
+
|
|
94
|
+
`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).
|
|
95
|
+
|
|
96
|
+
`minColumnWidth` lays out as many columns as fit, each at least that wide, without measuring anything: with `columns` given, never more than that many.
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
import { createSignal, reactive } from '@motifx/core';
|
|
100
|
+
import { FormLayout, Panel, Slider, Stack, type FormItem } from '@motifx-community/ui';
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 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
|
|
104
|
+
* one column with the labels on top to three columns with the labels beside the boxes, and the note takes the whole
|
|
105
|
+
* row until there is room for it beside the others.
|
|
106
|
+
*/
|
|
107
|
+
export default function ResponsiveForm() {
|
|
108
|
+
const s = reactive({ width: 900 });
|
|
109
|
+
const order = reactive({ customer: 'Ada Lovelace', email: '', phone: '', city: 'İstanbul', zip: '', note: '' });
|
|
110
|
+
const form = createSignal<FormLayout<typeof order> | null>(null);
|
|
111
|
+
|
|
112
|
+
const items: FormItem[] = [
|
|
113
|
+
{ field: 'customer', label: 'Customer' },
|
|
114
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
115
|
+
{ field: 'phone', label: 'Phone' },
|
|
116
|
+
{ field: 'city', label: 'City' },
|
|
117
|
+
{ field: 'zip', label: 'Zip code' },
|
|
118
|
+
{ field: 'note', label: 'Note', colSpan: { xs: 'all', lg: 1 } },
|
|
119
|
+
];
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
<>
|
|
123
|
+
<Stack orientation="horizontal" wrap align="center" gap="md">
|
|
124
|
+
<Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
|
|
125
|
+
<output class="form-breakpoint">{() => `${s.width} px, the form at ${form.value?.breakpoint ?? '…'}`}</output>
|
|
126
|
+
</Stack>
|
|
127
|
+
<Panel scrollable="horizontal" text="Responsive form" style="inline-size: 100%">
|
|
128
|
+
<Panel variant="outline" padding="sm" class="form-responsive" style={() => `inline-size: ${s.width}px`}>
|
|
129
|
+
<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)} />
|
|
130
|
+
</Panel>
|
|
131
|
+
</Panel>
|
|
132
|
+
</>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
92
137
|
## From a schema
|
|
93
138
|
|
|
94
139
|
`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).
|
|
@@ -101,9 +146,9 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
101
146
|
| --- | --- | --- | --- |
|
|
102
147
|
| `data` | `Bind<T \| null>` | — | The object the editors display and change. |
|
|
103
148
|
| `items` | `Bind<readonly FormItem[]>` | `[]` | The form items. A function is tracked. |
|
|
104
|
-
| `columns` | `Bind<number
|
|
105
|
-
| `minColumnWidth` | `Bind<string
|
|
106
|
-
| `labelMode` | `Bind<FieldLabelMode
|
|
149
|
+
| `columns` | `Bind<Responsive<number>>` | `1` | The number of grid columns. See [Responsive forms](#responsive). |
|
|
150
|
+
| `minColumnWidth` | `Bind<Responsive<string>>` | — | As many columns as fit, each at least this wide, and no more than `columns` when it is given. |
|
|
151
|
+
| `labelMode` | `Bind<Responsive<FieldLabelMode>>` | `'top'` | Passed to every editor. |
|
|
107
152
|
| `readOnly` | `Bind<boolean>` | `false` | Makes every editor read-only. |
|
|
108
153
|
| `onValidSubmit(e) / onInvalidSubmit(e)` | | | Occurs when the form is submitted and valid (`{ data, event }`) or submitted and invalid (`{ valid, invalid }`). |
|
|
109
154
|
|
|
@@ -113,8 +158,8 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
113
158
|
| --- | --- |
|
|
114
159
|
| `field, label, editor, editorProps` | The property, its label, its editor and the editor's props. |
|
|
115
160
|
| `required, rules, helpText, enabled, readOnly, visible` | Passed to the editor, each as a value or a function. `visible` hides the item. |
|
|
116
|
-
| `colSpan` | The number of columns it spans. Use `'all'` for the whole row. |
|
|
117
|
-
| `group, items, columns` | A labeled group with its own columns. With a `field`, its items edit the object in that field. |
|
|
161
|
+
| `colSpan` | The number of columns it spans. Use `'all'` for the whole row. Also per breakpoint: `{ xs: 'all', md: 1 }`. |
|
|
162
|
+
| `group, items, columns` | A labeled group with its own columns, also per breakpoint. With a `field`, its items edit the object in that field. |
|
|
118
163
|
| `button` | Button props. `submit: true` submits the form. |
|
|
119
164
|
| `template` | Any component created for this item. |
|
|
120
165
|
|
|
@@ -127,6 +172,7 @@ A group with a `field` edits the object in that field of the data: its items are
|
|
|
127
172
|
| `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. |
|
|
128
173
|
| `refreshField(field)` | Re-reads one field of the data object after it has been changed in place. |
|
|
129
174
|
| `validationGroup, isValid` | The validation group of the fields. |
|
|
175
|
+
| `breakpoint` | The breakpoint of the room the form is laid out in, by which its values per breakpoint are picked. |
|
|
130
176
|
| `FormLayout.editors` | The editors registered by name. |
|
|
131
177
|
|
|
132
178
|
## Feedback
|
package/docs/foundations.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Foundations
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
The foundations are what every control of the kit shares: the Control base with its properties, keyboard and focus, and the language of the texts and formats.
|
|
6
6
|
|
package/docs/gallery.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gallery
|
|
2
2
|
|
|
3
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Displays a horizontal set of slides, one or several at a time. Users navigate with the side buttons, the indicator dots, swipe gestures or the arrow keys, and it can run as an automatic slideshow. A slide can be an image with a caption or any other content.
|
|
6
6
|
|
package/docs/gauge-base.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Base value
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
The fill starts at the start of the scale, or at a base value inside it. A scale with values on both sides of a target then fills from the target, either way.
|
|
6
6
|
|
package/docs/gauge-circular.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Circular
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
A circular gauge shows its value on an arc or a whole circle, with the value written in the middle. It reads best for one value whose scale the reader knows, such as a speed or a share.
|
|
6
6
|
|
package/docs/gauge-dashboards.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Dashboards
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Gauges of different kinds put together, all following the same values. Each gauge keeps its own scale, so readers compare values by their meaning, not by size alone.
|
|
6
6
|
|
package/docs/gauge-linear.md
CHANGED
package/docs/gauge-markers.md
CHANGED
package/docs/gauge-marks.md
CHANGED
package/docs/gauge-ranges.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Ranges
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Ranges give stretches of the scale a meaning, such as normal, high and critical. They show as a band beside the track, and the fill takes the color of the range its value is in.
|
|
6
6
|
|
package/docs/gauge-scales.md
CHANGED
package/docs/gauge.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Shows a value against its scale, as an arc, a circle or a straight bar. Ranges give stretches of the scale a meaning, markers and marks point at values, and every part takes its look from the design language.
|
|
6
6
|
|
package/docs/home.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @motifx-community/ui
|
|
2
2
|
|
|
3
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Get started · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Components for MotifJS: objects you create when you need them, show anywhere and dispose when you are done, drawn from the MotifJS design system's tokens.
|
|
6
6
|
|
package/docs/keyboard.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Keyboard and focus
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
|
|
6
6
|
|
package/docs/language.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Language
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
`uiLocale` controls the strings that controls display, the locale used for dates and numbers, and the text direction. The kit has one `uiLocale`, and each language pack is loaded on demand.
|
|
6
6
|
|