@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler: iCalendar and print
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Exports appointments to an iCalendar file (RFC 5545) and imports them back, for use with other calendar applications. The scheduler can also be printed.
|
|
6
6
|
|
package/docs/scheduler-mobile.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler: Tablet and phone
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler: Recurrence and time zones
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler: Resources and groups
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler: Timeline
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/scheduler.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scheduler
|
|
2
2
|
|
|
3
|
-
> Scheduler · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Scheduler · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/scrollview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ScrollView
|
|
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 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.
|
|
6
6
|
|
package/docs/shortcuteditor.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ShortcutEditor
|
|
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 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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Showcase: FlowStudio
|
|
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
|
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.
|
|
6
6
|
|
package/docs/showcase-home.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Showcase: a smart home
|
|
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
|
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.
|
|
6
6
|
|
package/docs/showcase-mail.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Showcase: a mail application
|
|
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
|
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.
|
|
6
6
|
|
package/docs/showcase.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Showcase: an order screen
|
|
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
|
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.
|
|
6
6
|
|
package/docs/signature.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Signature
|
|
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 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.
|
|
6
6
|
|
package/docs/skeleton.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Skeleton
|
|
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
|
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.
|
|
6
6
|
|
package/docs/slider.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Slider
|
|
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
|
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.
|
|
6
6
|
|
package/docs/sortable.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sortable
|
|
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
|
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.
|
|
6
6
|
|
package/docs/sparkline.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sparkline
|
|
2
2
|
|
|
3
|
-
> Charts · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Charts · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/speeddial.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SpeedDial
|
|
2
2
|
|
|
3
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/splitter.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Splitter
|
|
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
|
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).
|
|
6
6
|
|
package/docs/stepper.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Stepper
|
|
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
|
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.
|
|
6
6
|
|
package/docs/switch.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Switch
|
|
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
|
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.
|
|
6
6
|
|
package/docs/tabdocs-dock.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: Dock and floating windows
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs-drag.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: Drag and drop
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs-menus.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: Menus and keys
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs-mobile.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: Tablet and phone
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs-tabs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: Tabs
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs-windows.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: New windows
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager: A whole workspace
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/tabdocs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TabDocumentManager
|
|
2
2
|
|
|
3
|
-
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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).
|
|
6
6
|
|
package/docs/tabs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tabs
|
|
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
|
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.
|
|
6
6
|
|
|
@@ -134,6 +134,61 @@ export default function ManyTabs() {
|
|
|
134
134
|
}
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
+
## Filling the panel
|
|
138
|
+
|
|
139
|
+
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.
|
|
140
|
+
|
|
141
|
+
```tsx
|
|
142
|
+
import { DataGrid, Tab, Tabs } from '@motifx-community/ui';
|
|
143
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
144
|
+
|
|
145
|
+
type Order = { id: number; customer: string; total: number };
|
|
146
|
+
|
|
147
|
+
const orders: Order[] = Array.from({ length: 500 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
148
|
+
|
|
149
|
+
const columns: GridColumn<Order>[] = [
|
|
150
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
151
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
152
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
153
|
+
];
|
|
154
|
+
|
|
155
|
+
const TERMS = [
|
|
156
|
+
'Orders are shipped within two working days of payment.',
|
|
157
|
+
'A parcel that arrives damaged is replaced at no cost when it is reported within fourteen days.',
|
|
158
|
+
'Returns are accepted within thirty days, in the original packaging.',
|
|
159
|
+
'Refunds go back to the card or account that paid, within five working days of the return.',
|
|
160
|
+
'Prices include tax. Shipping is free above a total of 50 euros.',
|
|
161
|
+
'An order can be changed or cancelled until it is shipped.',
|
|
162
|
+
'Invoices are sent by email when the order ships.',
|
|
163
|
+
'Questions about an order go to the support team, who answer within one working day.',
|
|
164
|
+
'A gift card is valid for two years and can pay for part of an order.',
|
|
165
|
+
'Items on pre-order ship together on the date shown on the product page, unless the order is split at the customer’s request.',
|
|
166
|
+
'Personal data is used only to handle the order and is kept for as long as the law asks.',
|
|
167
|
+
'These terms change only with thirty days’ notice, sent to the email address on the account.',
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
/** 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. */
|
|
171
|
+
export default function FillingPanels() {
|
|
172
|
+
return (
|
|
173
|
+
<Tabs label="Orders" style="block-size: 22rem">
|
|
174
|
+
<Tab title="Orders">
|
|
175
|
+
<DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />
|
|
176
|
+
</Tab>
|
|
177
|
+
<Tab title="Terms">
|
|
178
|
+
<div>
|
|
179
|
+
{TERMS.map((term) => (
|
|
180
|
+
<p key={term}>{term}</p>
|
|
181
|
+
))}
|
|
182
|
+
</div>
|
|
183
|
+
</Tab>
|
|
184
|
+
<Tab title="Notes" padding="xl">
|
|
185
|
+
<p>This panel is given a wider padding of its own.</p>
|
|
186
|
+
</Tab>
|
|
187
|
+
</Tabs>
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
137
192
|
## Placement
|
|
138
193
|
|
|
139
194
|
```tsx
|
|
@@ -407,6 +462,7 @@ export default function Localization() {
|
|
|
407
462
|
| `closable` | `Bind<boolean>` | `false` | Adds a close button to every tab. A tab's own `closable` takes precedence. |
|
|
408
463
|
| `lazy` | `Bind<boolean>` | `true` | Creates a panel the first time it is shown and then keeps it. A tab's own `lazy` takes precedence. |
|
|
409
464
|
| `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. |
|
|
465
|
+
| `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). |
|
|
410
466
|
| `enabled / disabled, visible, tabStop, tabIndex` | see Control | | Properties shared by all controls. `tabStop={false}` removes the tab strip from the Tab order. |
|
|
411
467
|
|
|
412
468
|
### Tab props
|
|
@@ -420,6 +476,7 @@ export default function Localization() {
|
|
|
420
476
|
| `hint` | `Bind<string>` | `''` | The tooltip text. |
|
|
421
477
|
| `closable` | `Bind<boolean \| undefined>` | From Tabs | Shows a close button on this tab. |
|
|
422
478
|
| `lazy, keepAlive` | `Bind<boolean \| undefined>` | From Tabs | This tab's own setting. |
|
|
479
|
+
| `padding` | `Bind<LayoutSpace \| undefined>` | From Tabs | The space inside this panel's edges, one to four values as in CSS. |
|
|
423
480
|
| `content` | `() => ComponentBase \| ComponentBase[]` | — | Creates the panel content when the panel is created, either instead of or after the JSX children. |
|
|
424
481
|
| `enabled` | `Bind<boolean>` | `true` | `false` means the tab cannot be selected and the arrow keys skip it. |
|
|
425
482
|
| `visible` | `Bind<boolean>` | `true` | `false` removes the tab. If it is selected, the selection moves to an adjacent tab. |
|
package/docs/tagbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TagBox
|
|
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
|
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.
|
|
6
6
|
|
package/docs/textarea.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TextArea
|
|
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 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.
|
|
6
6
|
|
package/docs/textbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TextBox
|
|
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-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.
|
|
6
6
|
|
package/docs/tileview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TileView
|
|
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
|
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.
|
|
6
6
|
|
package/docs/timeline.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Timeline
|
|
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 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).
|
|
6
6
|
|
package/docs/toast.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Toast
|
|
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
|
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.
|
|
6
6
|
|
package/docs/tokens.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Design tokens
|
|
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
|
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.
|
|
6
6
|
|
|
@@ -2827,6 +2827,10 @@ Source: `tokens/schema/*.json` for names and types, and `tokens/languages/<langu
|
|
|
2827
2827
|
| `layout.space.xl` | `--mx-layout-space-xl` | `space.8` | `2rem` |
|
|
2828
2828
|
| `layout.space.xxl` | `--mx-layout-space-xxl` | `space.12` | `3rem` |
|
|
2829
2829
|
| `layout.gap` | `--mx-layout-gap` | `space.2` | `0.5rem` |
|
|
2830
|
+
| `layout.breakpoint.sm` | `--mx-layout-breakpoint-sm` | `breakpoint.sm` | `560px` |
|
|
2831
|
+
| `layout.breakpoint.md` | `--mx-layout-breakpoint-md` | `breakpoint.md` | `768px` |
|
|
2832
|
+
| `layout.breakpoint.lg` | `--mx-layout-breakpoint-lg` | `breakpoint.lg` | `1024px` |
|
|
2833
|
+
| `layout.breakpoint.xl` | `--mx-layout-breakpoint-xl` | `breakpoint.xl` | `1440px` |
|
|
2830
2834
|
| `layout.group-box.gap` | `--mx-layout-group-box-gap` | `space.3` | `0.75rem` |
|
|
2831
2835
|
| `layout.group-box.legend-float` | `--mx-layout-group-box-legend-float` | `` | `none` |
|
|
2832
2836
|
| `layout.splitter.size` | `--mx-layout-splitter-size` | `space.2` | `0.5rem` |
|
|
@@ -6183,6 +6187,10 @@ The shared palette and scales, identical in every design language. Themes and co
|
|
|
6183
6187
|
| `icon.size.lg` | dimension | `--mx-icon-size-lg` | `1.25rem` |
|
|
6184
6188
|
| `border.width.1` | dimension | `--mx-border-width-1` | `1px` |
|
|
6185
6189
|
| `border.width.2` | dimension | `--mx-border-width-2` | `2px` |
|
|
6190
|
+
| `breakpoint.sm` | dimension | `--mx-breakpoint-sm` | `560px` |
|
|
6191
|
+
| `breakpoint.md` | dimension | `--mx-breakpoint-md` | `768px` |
|
|
6192
|
+
| `breakpoint.lg` | dimension | `--mx-breakpoint-lg` | `1024px` |
|
|
6193
|
+
| `breakpoint.xl` | dimension | `--mx-breakpoint-xl` | `1440px` |
|
|
6186
6194
|
| `opacity.disabled` | number | `--mx-opacity-disabled` | `0.5` |
|
|
6187
6195
|
| `z.dropdown` | number | `--mx-z-dropdown` | `1000` |
|
|
6188
6196
|
| `z.sticky` | number | `--mx-z-sticky` | `1100` |
|
package/docs/toolbar-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Toolbar: Customization
|
|
2
2
|
|
|
3
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/toolbar.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Toolbar
|
|
2
2
|
|
|
3
|
-
> Toolbar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Toolbar · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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).
|
|
6
6
|
|
package/docs/tooltip.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tooltip
|
|
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
|
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.
|
|
6
6
|
|
package/docs/treeview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TreeView
|
|
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
|
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.
|
|
6
6
|
|
|
@@ -102,7 +102,7 @@ export interface Entry {
|
|
|
102
102
|
|
|
103
103
|
## Flat data, fields and templates
|
|
104
104
|
|
|
105
|
-
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 `
|
|
105
|
+
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.
|
|
106
106
|
|
|
107
107
|
```tsx
|
|
108
108
|
/** A row of the trees on this page. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ValidationSummary
|
|
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
|
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.
|
|
6
6
|
|
package/docs/window.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Window and dialog
|
|
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 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.
|
|
6
6
|
|
|
@@ -204,6 +204,49 @@ export class RenameForm extends MxForm {
|
|
|
204
204
|
}
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
+
## Content that fills the window
|
|
208
|
+
|
|
209
|
+
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.
|
|
210
|
+
|
|
211
|
+
```tsx
|
|
212
|
+
import type { Component } from '@motifx/core';
|
|
213
|
+
import { Button, DataGrid, MxForm } from '@motifx-community/ui';
|
|
214
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
215
|
+
|
|
216
|
+
type Order = { id: number; customer: string; total: number };
|
|
217
|
+
|
|
218
|
+
const orders: Order[] = Array.from({ length: 300 }, (_, i) => ({ id: i + 1, customer: `Customer ${(i % 40) + 1}`, total: ((i * 37) % 900) + 100 }));
|
|
219
|
+
|
|
220
|
+
const columns: GridColumn<Order>[] = [
|
|
221
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
222
|
+
{ field: 'customer', title: 'Customer', flex: 1 },
|
|
223
|
+
{ field: 'total', title: 'Total', type: 'number', format: { style: 'currency', currency: 'EUR' }, width: 130 },
|
|
224
|
+
];
|
|
225
|
+
|
|
226
|
+
/** A window whose content is a grid: the grid fills the content area to its edges and grows with the window. */
|
|
227
|
+
export default function GridWindow() {
|
|
228
|
+
let host: Component<HTMLDivElement> | null = null;
|
|
229
|
+
|
|
230
|
+
const open = () => {
|
|
231
|
+
const form = new MxForm({
|
|
232
|
+
title: 'Orders',
|
|
233
|
+
showMaximize: true,
|
|
234
|
+
width: '34rem',
|
|
235
|
+
height: '24rem',
|
|
236
|
+
content: <DataGrid rows={orders} rowKey="id" columns={columns} label="Orders" locale="en" />,
|
|
237
|
+
});
|
|
238
|
+
form.show(host!);
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
return (
|
|
242
|
+
<>
|
|
243
|
+
<Button text="Open the orders" variant="outline" onclick={open} />
|
|
244
|
+
<div ref={(c: Component<HTMLDivElement>) => (host = c)} />
|
|
245
|
+
</>
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
207
250
|
## Events
|
|
208
251
|
|
|
209
252
|
`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.
|
|
@@ -385,6 +428,7 @@ export default function Localization() {
|
|
|
385
428
|
| `title` | `Bind<string>` | `''` | The title in the title bar, which also names the form. This is the same property as `text`. |
|
|
386
429
|
| `content` | `Bind<ComponentBase \| null>` | — | Content for the content area, in addition to JSX children and `view()`. |
|
|
387
430
|
| `footer` | `Bind<ComponentBase \| null>` | — | A non-scrolling row below the content, for buttons. |
|
|
431
|
+
| `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). |
|
|
388
432
|
| `icon` | `Bind<IconSource \| null>` | — | An icon at the start of the title bar. |
|
|
389
433
|
| `showClose` | `Bind<boolean>` | `true` | Shows the close button. |
|
|
390
434
|
| `showMinimize` | `Bind<boolean>` | `false` | Shows the minimize button, on modeless forms only. |
|
package/docs/wizard.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Wizard
|
|
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
|
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.
|
|
6
6
|
|