@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/accordion.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Accordion
|
|
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
|
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.
|
|
6
6
|
|
package/docs/actionsheet.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ActionSheet
|
|
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 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.
|
|
6
6
|
|
package/docs/appbar.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppBar
|
|
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
|
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.
|
|
6
6
|
|
package/docs/appmenu-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppMenu: Programmatic changes
|
|
2
2
|
|
|
3
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/appmenu-search.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppMenu: Slots and search
|
|
2
2
|
|
|
3
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/appmenu.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppMenu
|
|
2
2
|
|
|
3
|
-
> AppMenu · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> AppMenu · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
package/docs/avatar.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Avatar and AvatarGroup
|
|
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
|
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.
|
|
6
6
|
|
package/docs/badge.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Badge
|
|
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 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.
|
|
6
6
|
|
package/docs/bar-gauge-angles.md
CHANGED
package/docs/bar-gauge-data.md
CHANGED
package/docs/bar-gauge-labels.md
CHANGED
package/docs/bar-gauge.md
CHANGED
package/docs/barcode.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Barcode
|
|
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 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.
|
|
6
6
|
|
package/docs/bottomnavigation.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BottomNavigation
|
|
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
|
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.
|
|
6
6
|
|
package/docs/bottomsheet.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BottomSheet
|
|
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 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.
|
|
6
6
|
|
package/docs/breadcrumb.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Breadcrumb
|
|
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 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.
|
|
6
6
|
|
package/docs/button.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Button
|
|
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 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.
|
|
6
6
|
|
package/docs/buttongroup.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ButtonGroup
|
|
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 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.
|
|
6
6
|
|
package/docs/buttons.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Buttons
|
|
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
|
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).
|
|
6
6
|
|
package/docs/calendar.md
CHANGED
package/docs/card.md
CHANGED
package/docs/chart-bars.md
CHANGED
package/docs/chart-candles.md
CHANGED
package/docs/chart-funnel.md
CHANGED
package/docs/chart-heatmap.md
CHANGED
package/docs/chart-lines.md
CHANGED
package/docs/chart-live.md
CHANGED
package/docs/chart-pie.md
CHANGED
package/docs/chart-radar.md
CHANGED
package/docs/chart-ranges.md
CHANGED
package/docs/chart-references.md
CHANGED
package/docs/chart-scatter.md
CHANGED
package/docs/chart-waterfall.md
CHANGED
package/docs/chart-zoom.md
CHANGED
package/docs/chart.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chart
|
|
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
|
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.
|
|
6
6
|
|
package/docs/chat.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chat
|
|
2
2
|
|
|
3
|
-
> AI chat · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
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()`.
|
|
6
6
|
|
package/docs/checkbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CheckBox
|
|
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
|
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.
|
|
6
6
|
|
package/docs/chip.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chip and ChipGroup
|
|
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 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.
|
|
6
6
|
|
package/docs/choice.md
CHANGED
package/docs/colorbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ColorBox and ColorPicker
|
|
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 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.
|
|
6
6
|
|
package/docs/combobox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ComboBox and Autocomplete
|
|
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
|
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.
|
|
6
6
|
|
package/docs/commands.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Commands and shortcuts
|
|
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
|
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.
|
|
6
6
|
|
package/docs/control.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Control
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
`Control` is the base class of every control in the package. It provides the same `text`, `enabled`, `visible` and `tabStop` properties and the same focus methods, whether a control is declared in JSX and bound to state or created with `new` and changed programmatically.
|
|
6
6
|
|
package/docs/data.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Data
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.19
|
|
4
4
|
|
|
5
5
|
Data components show and pick from structured data: hierarchies, lists, sets of tags, and filters that the reader builds. Tables have their own group: see [DataGrid](datagrid.md).
|
|
6
6
|
|
package/docs/datagrid-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: API reference
|
|
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
|
## Columns
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@ Up to 0.1.0-beta.8, the root of the content that `cell`, `groupCell`, `headerCel
|
|
|
12
12
|
| `type` | `text`, `number`, `date`, `datetime`, `boolean`, `list`. Determines the alignment, format, sorting and editor (`TextBox`, `NumberBox`, `DateBox`, `CheckBox`, `DropDown`). `datetime` is a date with its time: shown with both, edited with a `DateBox` of `type: 'datetime'`, filtered to the minute, and its header filter goes down to the hour. |
|
|
13
13
|
| `width, minWidth, maxWidth, flex` | In pixels (by default, the `columnWidth` and `columnMinWidth` settings). `flex` shares the free space until the user resizes. |
|
|
14
14
|
| `sticky, hidden, align` | Pinned to an edge (a column in a band sticks with its band; one pinned to the end stands at the end edge, any room the columns leave coming before it), initially hidden, and the alignment. |
|
|
15
|
+
| `wrap` | `Bind<boolean>`: the text of the cells wraps onto more lines, and a row grows to hold its tallest cell. See [Wrapping text](datagrid-scrolling.md#wrap). |
|
|
15
16
|
| `ownerBand, hidingPriority` | The band of a column in a flat list (its `name` or position), and its position in the order columns hide to fit the width, lowest first. |
|
|
16
17
|
| `value, format, compare` | Customizes how the value is read, how it is displayed (`Intl` options for a number or date column, such as `{ style: 'currency', currency: 'EUR' }`, which an Excel export also converts to a number format, or a function that returns the text), and how it is sorted (in-memory rows). |
|
|
17
18
|
| `cell` | `(ctx) => component`: custom content, created once per pooled cell. Read `ctx.row` and `ctx.value` in getters. |
|
|
@@ -247,7 +248,7 @@ export interface Order {
|
|
|
247
248
|
|
|
248
249
|
| Method | Returns | Description |
|
|
249
250
|
| --- | --- | --- |
|
|
250
|
-
| `addRow(values?)` | `Promise<boolean>` | Opens a new row, as the “New row” button does. Returns `false` when the row being edited cannot be left. |
|
|
251
|
+
| `addRow(values?)` | `Promise<boolean>` | Opens a new row, as the “New row” button does. While the rows load, it waits for them. Returns `false` when the row being edited cannot be left. |
|
|
251
252
|
| `deleteRow(row?) / restoreRow(row)` | `Promise<boolean>` / `void` | Deletes a row (by default, the active row) according to the save mode, or undoes a batch deletion. |
|
|
252
253
|
| `deleteRows(rows)` | `Promise<boolean>` | Deletes several rows in one save (one request when the adapter saves in batches), prompting once with `confirmDelete`. Returns `false` when a row failed or the user declined. |
|
|
253
254
|
| `saveChanges() / discardChanges()` | `Promise<{ saved, failed }>` / `void` | Sends every unsaved change, or discards them all. |
|
package/docs/datagrid-bands.md
CHANGED
package/docs/datagrid-drag.md
CHANGED
package/docs/datagrid-editing.md
CHANGED
package/docs/datagrid-forms.md
CHANGED
package/docs/datagrid-layout.md
CHANGED
package/docs/datagrid-lookups.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Scrolling
|
|
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
|
## Scrolling modes
|
|
6
6
|
|
|
@@ -157,6 +157,82 @@ export default function VirtualColumns() {
|
|
|
157
157
|
| `Export, copy` | CSV, Excel and PDF write every column, including those without cells, and copying reads the values rather than the cells. |
|
|
158
158
|
| `Events` | `onCellPrepared` and `onRowPrepared` run as cells are created, so they run again after a sideways scroll. |
|
|
159
159
|
|
|
160
|
+
## Wrapping text
|
|
161
|
+
|
|
162
|
+
A column with `wrap: true` wraps the text of its cells onto more lines, and each row grows to hold its tallest cell, never shorter than the rows' height. A line break in the text starts a new line. Only the rows on the screen are measured, before they are shown, so 10,000 rows of notes scroll like rows of one height, and a grid with no such column keeps all its rows one height. `wrap` can be a function, as here, or change with `columnOption(field, 'wrap', value)`.
|
|
163
|
+
|
|
164
|
+
```tsx
|
|
165
|
+
import { reactive } from '@motifx/core';
|
|
166
|
+
import { CheckBox, DataGrid, Stack } from '@motifx-community/ui';
|
|
167
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
168
|
+
|
|
169
|
+
type Ticket = { id: number; subject: string; note: string; status: string };
|
|
170
|
+
|
|
171
|
+
const SUBJECTS = ['Invoice is missing', 'Cannot sign in', 'Order arrived damaged', 'Change of address', 'Refund request', 'App crashes on start'];
|
|
172
|
+
const SENTENCES = [
|
|
173
|
+
'The customer called twice this morning.',
|
|
174
|
+
'We asked for the order number and a photo.',
|
|
175
|
+
'A new parcel goes out with the next delivery, and the old one is picked up at the door.',
|
|
176
|
+
'Waiting for the warehouse to answer.',
|
|
177
|
+
'The same thing happened last month on another order, so the account is flagged for a call from the team lead.',
|
|
178
|
+
'Closed after the customer confirmed.',
|
|
179
|
+
];
|
|
180
|
+
const STATUSES = ['Open', 'Waiting', 'Solved'];
|
|
181
|
+
|
|
182
|
+
/** A note of one to five sentences; every seventh starts a second paragraph on a line of its own. */
|
|
183
|
+
function noteOf(i: number): string {
|
|
184
|
+
const count = (i * 7) % 5 + 1;
|
|
185
|
+
const parts = Array.from({ length: count }, (_, k) => SENTENCES[(i * 2 + k) % SENTENCES.length]);
|
|
186
|
+
if (i % 7 === 0 && count > 1) return `${parts[0]}\n${parts.slice(1).join(' ')}`;
|
|
187
|
+
return parts.join(' ');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const rows: Ticket[] = Array.from({ length: 10_000 }, (_, i) => ({
|
|
191
|
+
id: i + 1,
|
|
192
|
+
subject: SUBJECTS[i % SUBJECTS.length],
|
|
193
|
+
note: noteOf(i),
|
|
194
|
+
status: STATUSES[(i * 5) % STATUSES.length],
|
|
195
|
+
}));
|
|
196
|
+
|
|
197
|
+
/** 10,000 tickets: the notes wrap, and each row is as tall as its note. */
|
|
198
|
+
export default function WrapText() {
|
|
199
|
+
const s = reactive({ wrap: true });
|
|
200
|
+
|
|
201
|
+
const columns: GridColumn<Ticket>[] = [
|
|
202
|
+
{ field: 'id', title: 'No.', type: 'number', width: 80 },
|
|
203
|
+
{ field: 'subject', title: 'Subject', width: 190 },
|
|
204
|
+
{ field: 'note', title: 'Note', width: 120, flex: 1, wrap: () => s.wrap },
|
|
205
|
+
{ field: 'status', title: 'Status', width: 110 },
|
|
206
|
+
];
|
|
207
|
+
|
|
208
|
+
return (
|
|
209
|
+
<>
|
|
210
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
211
|
+
<CheckBox label="Wrap the notes" x-model={() => s.wrap} />
|
|
212
|
+
</Stack>
|
|
213
|
+
<DataGrid
|
|
214
|
+
class="dg-wrap"
|
|
215
|
+
style="block-size: 28rem"
|
|
216
|
+
rows={rows}
|
|
217
|
+
rowKey="id"
|
|
218
|
+
columns={columns}
|
|
219
|
+
label="Support tickets"
|
|
220
|
+
locale="en"
|
|
221
|
+
settings={{ editable: true, striped: true }}
|
|
222
|
+
/>
|
|
223
|
+
</>
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
| Topic | Behavior with wrapped text |
|
|
229
|
+
| --- | --- |
|
|
230
|
+
| `Scrolling` | Rows not measured yet count at the rows' height, so the scrollbar settles as rows are seen. The first row in view stays where it is while rows above it are measured, when a column's width changes, and when wrapping is turned on or off. A row brought into view by the keys, such as Ctrl+End, stays whole on the screen once it is measured. |
|
|
231
|
+
| `Column width` | Resizing a column, or a flexible column taking more room, wraps the text again, and the rows on the screen are measured again. |
|
|
232
|
+
| `Keyboard` | Page Up and Page Down move by the rows that fit on the screen, counted by their heights. |
|
|
233
|
+
| `Editing` | A cell edited to another text has its row measured again, and the rows after it follow. |
|
|
234
|
+
| `Export` | An Excel export sets the cells of a wrapping column to wrap their text. A PDF export wraps them too, unless `wordWrapEnabled` says otherwise. |
|
|
235
|
+
|
|
160
236
|
## Keyboard
|
|
161
237
|
|
|
162
238
|
| Key | Description |
|