@motifx-community/ui 0.1.0-beta.6 → 0.1.0-beta.9
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 +324 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +4 -4
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +5 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/listbox/list-rows.d.ts +2 -0
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35277 -22566
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/DataItems.d.ts +2 -0
- package/dist/parts/data/KeyedItems.d.ts +2 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +73 -17
- package/dist/parts/list/item-source.d.ts +4 -0
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- 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 +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +3 -3
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- 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 +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- 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 +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- 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 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1904 -290
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
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.8
|
|
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
|
|
|
@@ -314,7 +314,7 @@ export default function Localization() {
|
|
|
314
314
|
| --- | --- | --- |
|
|
315
315
|
| `every prop above` | read/write, reactive | Accepts a value or a function, the same as the prop. |
|
|
316
316
|
| `isValid, validationMessage, validating` | read-only, reactive | The result of the last validation. |
|
|
317
|
-
| `
|
|
317
|
+
| `inputPart` | read-only | The native `<input type="checkbox">`. |
|
|
318
318
|
|
|
319
319
|
### Methods
|
|
320
320
|
|
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.8
|
|
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
|
|
|
@@ -41,12 +41,11 @@ import { Chip, Stack, type ChipVariant } from '@motifx-community/ui';
|
|
|
41
41
|
const VARIANTS: ChipVariant[] = ['filled', 'outline'];
|
|
42
42
|
|
|
43
43
|
// An inline star, so that the example needs no icon set.
|
|
44
|
-
const star = () =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
svg
|
|
48
|
-
|
|
49
|
-
};
|
|
44
|
+
const star = () => (
|
|
45
|
+
<svg viewBox="0 0 16 16">
|
|
46
|
+
<path d="M8 1.5l1.9 4.1 4.4.5-3.3 3 .9 4.4L8 11.3l-3.9 2.2.9-4.4-3.3-3 4.4-.5z" fill="currentColor" />
|
|
47
|
+
</svg>
|
|
48
|
+
);
|
|
50
49
|
|
|
51
50
|
/** Each appearance: at rest, selected, with an icon, with an avatar, removable and disabled. */
|
|
52
51
|
export default function Looks() {
|
|
@@ -229,7 +228,7 @@ The remove button's name is the `removeItem` kit string (“Remove {text}”) an
|
|
|
229
228
|
| --- | --- | --- | --- |
|
|
230
229
|
| `text` | `Bind<string>` | `''` | The text. |
|
|
231
230
|
| `value` | `Bind<unknown>` | Its text | The value it represents in a group. |
|
|
232
|
-
| `icon` | `Bind<IconSource \| null>` | `null` | An icon before the text: an image address
|
|
231
|
+
| `icon` | `Bind<IconSource \| null>` | `null` | An icon before the text: an image address or a component. |
|
|
233
232
|
| `avatar` | `Bind<AvatarProps \| null>` | `null` | An avatar before the text (its props; the chip sets the size). |
|
|
234
233
|
| `selectable` | `Bind<boolean>` | `false` | Pressing the chip toggles it, as a filter. In a group with selection, the group controls it. |
|
|
235
234
|
| `selected` | `Bind<boolean>` | `false` | Indicates whether the chip is on. |
|
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.8
|
|
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.8
|
|
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/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.8
|
|
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
|
|
|
@@ -170,7 +170,7 @@ class Badge extends Control<HTMLSpanElement, BadgeProps> {
|
|
|
170
170
|
| Member | Description |
|
|
171
171
|
| --- | --- |
|
|
172
172
|
| `static elementTag` | The root element. It is a `div` unless the subclass specifies another element (`button` for a button). |
|
|
173
|
-
| `
|
|
173
|
+
| `focusPart` | Getter for the part that receives focus, as a component. It is the control itself by default, or `null` when the control takes no focus. Composite controls override it, and a child control given here answers `focus`, `canFocus` and `focused`. It runs from the constructor, so derive it from parts created on demand. |
|
|
174
174
|
| `observeProperty(name, apply)` | Renders a property without an effect. `apply` runs immediately and on every change, whether the change comes from a getter prop or from code. |
|
|
175
175
|
| `getProperty(name) / setProperty(name, value)` | The storage behind the shared properties, available for your own: a tracked read, and a programmatic set that replaces any bound getter. |
|
|
176
176
|
| `bindProperty(name, prop)` | Binds one of your own props. A getter is read immediately and tracked by a binding on the control, so `reState()` reads it again. A value is stored once. Call it from your constructor. |
|
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.8
|
|
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,9 +1,11 @@
|
|
|
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.8
|
|
4
4
|
|
|
5
5
|
## Columns
|
|
6
6
|
|
|
7
|
+
> Up to 0.1.0-beta.8, the root of the content that `cell`, `groupCell`, `headerCell`, a band's `headerCell` and the detail `template` return must not carry `x-display` or `x-wait`, and must not be a conditional or a fragment: such content can leave its cell when it is shown again. Put it inside a wrapper element, for example `<span hidden={() => !ctx.row}><Button … /></span>`. For buttons on each row, use the grid's `actions` with a `visible` function per row.
|
|
8
|
+
|
|
7
9
|
| Field | Description |
|
|
8
10
|
| --- | --- |
|
|
9
11
|
| `field, title` | The value's key (a dotted path reads a nested value) and the header text (`Bind<string>`). |
|
|
@@ -14,7 +16,8 @@
|
|
|
14
16
|
| `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). |
|
|
15
17
|
| `cell` | `(ctx) => component`: custom content, created once per pooled cell. Read `ctx.row` and `ctx.value` in getters. |
|
|
16
18
|
| `editor` | `(ctx) => Field \| component`: a custom editor. A `Field` is read through its value, and any other component calls `ctx.setValue`. |
|
|
17
|
-
| `
|
|
19
|
+
| `filterEditor` | `(ctx: FilterEditorContext) => Field \| component`: a custom editor of the filter row’s value. A `Field` is bound to the filter both ways, and any other component calls `ctx.setValue` and hears `ctx.onChanged`. |
|
|
20
|
+
| `required, validate, options` | An empty value is not accepted, `(value, row, context) => message`, and the choices of a list (an array, or a function `(row, context)`, which can be async; outside a row, for the cell text, the filter row, the search, the filter builder and pasted text, it is called once with `row` `null` and returns every choice, kept until `refresh()`). `row` is the row itself, `context.values` holds the entered values, and `context.getValue(field)` returns the entered value, otherwise the row's. |
|
|
18
21
|
| `validationRules` | Validation rules (`required`, `numeric`, `range`, `stringLength`, `pattern`, `email`, `compare`, `custom`, `async`), checked after `required` and `validate`. See [Validation rules](datagrid-forms.md#rules). |
|
|
19
22
|
| `formItem` | The column in the edit form: `visible`, `colSpan`, `label`, `helpText`, `editorOptions`, `order`. |
|
|
20
23
|
| `filterOperators, filterOperator` | The conditions the filter row offers for the column, and the initial condition. |
|
|
@@ -276,8 +279,8 @@ export interface Order {
|
|
|
276
279
|
| `cancelExport()` | `void` | Stops the export shown by the load panel. Its promise rejects with an `AbortError`. |
|
|
277
280
|
| `getTotalSummaryValue(name)` | `unknown` | A totals value by the item's `name`, its position in `totalItems`, its type, its column or `type_column` (`'sum_amount'`). Reactive. |
|
|
278
281
|
| `getGroupSummaryValue(key, name)` | `unknown` | A group summary value, with the group by its key (as in `expandGroup`) and the item as above. Reactive. |
|
|
279
|
-
| `getVisibleRows()` | `GridVisibleRow[]` | The currently rendered rows: `{ rowIndex, rowType, row, key, groupKey?,
|
|
280
|
-
| `
|
|
282
|
+
| `getVisibleRows()` | `GridVisibleRow[]` | The currently rendered rows: `{ rowIndex, rowType, row, key, groupKey?, part }`. |
|
|
283
|
+
| `getRowPart(i) / getCellPart(i, field)` | `ComponentBase \| undefined` | The part of a rendered row or cell. |
|
|
281
284
|
| `getKeyByRowIndex(i) / getRowIndexByKey(key)` | `unknown` / `number` | A row's key by its index, and the index of a loaded row by its key (-1 when it is not loaded). |
|
|
282
285
|
| `byKey(key)` | `Promise<T \| undefined>` | The row with this key: loaded, previously found, or requested from the data source. |
|
|
283
286
|
| `cellValue(i, field, value?)` | `unknown` | The value displayed in a cell. With `value`, writes it as the user would (validated, and saved according to the save mode). |
|
package/docs/datagrid-bands.md
CHANGED
package/docs/datagrid-drag.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Row drag and drop
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Reorder rows
|
|
6
6
|
|
|
@@ -68,9 +68,9 @@ export interface Task {
|
|
|
68
68
|
| `handle` | `Bind<string>` | `''` | A CSS selector for the part of a row used for dragging, instead of the icon or the whole row. |
|
|
69
69
|
| `group, data` | `Bind<string>`, `Bind<unknown>` | — | Grids in the same group accept each other's rows. `data` is passed to the events as `fromData` and `toData`. |
|
|
70
70
|
| `dragDirection` | `Bind<'both' \| 'vertical' \| 'horizontal'>` | `'both'` | Where the copy of the row can go. |
|
|
71
|
-
| `boundary, container` | `Bind<string \|
|
|
71
|
+
| `boundary, container` | `Bind<string \| ComponentBase>` | None, and the grid | The component the dragged row stays inside, and the component that displays its copy, or a selector of each. |
|
|
72
72
|
| `cursorOffset` | `Bind<{ x, y } \| string>` | Where the row was grabbed | The offset of the copy from the pointer. |
|
|
73
|
-
| `dragTemplate` | `({ itemData,
|
|
73
|
+
| `dragTemplate` | `({ itemData, itemPart }) => ComponentBase \| string` | A copy of the row | Custom content under the pointer: a component or text. |
|
|
74
74
|
| `autoScroll, scrollSpeed, scrollSensitivity` | `Bind<boolean>`, `Bind<number>`, `Bind<number>` | `true`, `30`, `60` | The rows scroll while the pointer is near their top or bottom edge: the speed in pixels per frame at the edge, and the distance at which it starts. |
|
|
75
75
|
| `keyboard, moveUpKeys, moveDownKeys` | `Bind<boolean>`, `Bind<string[]>` | `true`, `['Ctrl+Shift+ArrowUp']`, `['Ctrl+Shift+ArrowDown']` | Moves the active row one position up or down with these keys (any combination, such as `Mod+Alt+Up`), with the same events as a drop. The move is announced. |
|
|
76
76
|
| `columnWidth` | `Bind<number>` | `36` | The width of the drag icon column, in pixels. |
|
|
@@ -97,7 +97,7 @@ export interface Task {
|
|
|
97
97
|
| Event field | Value |
|
|
98
98
|
| --- | --- |
|
|
99
99
|
| `component, fromComponent, toComponent` | The grid raising the event, the grid the row comes from, and the grid under the pointer (the same while reordering, or `null` when over none). |
|
|
100
|
-
| `itemData, itemKey,
|
|
100
|
+
| `itemData, itemKey, itemPart` | The dragged row, its key and its part. |
|
|
101
101
|
| `fromIndex, toIndex` | The grid's row indexes (as counted by `focusedRowIndex` and `getVisibleRows()`, also across pages): the current position, and the position after the drop. |
|
|
102
102
|
| `toItemData` | The row at `toIndex` before the drop, which is where to insert the row. It is `undefined` at the end of the other grid or on a group row. |
|
|
103
103
|
| `dropInsideItem, fromData, toData, event` | Whether it was dropped onto the row at `toIndex`, the grids' `rowDragging.data`, and the pointer or key event. |
|
package/docs/datagrid-editing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Filtering and search
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Filters
|
|
6
6
|
|
|
@@ -20,6 +20,42 @@ export interface Order {
|
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## Custom filter editors
|
|
24
|
+
|
|
25
|
+
A column's `filterEditor` replaces the filter row's editor of its type. A `Field` it returns, such as a `NumberBox` with a minimum, is bound to the column's filter both ways. Any other component receives a `FilterEditorContext`: it writes the value with `ctx.setValue` (`ctx.clear()` removes it) and hears the filter change elsewhere, such as the filters being cleared, through `ctx.onChanged`. `ctx.operator` is the condition chosen in the cell. The editor for a cell, the column's `editor`, is separate: see [Editing](datagrid-editing.md).
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
/** An order, as stored by the sample server. */
|
|
29
|
+
export interface Order {
|
|
30
|
+
id: number;
|
|
31
|
+
customer: string;
|
|
32
|
+
city: string;
|
|
33
|
+
date: string;
|
|
34
|
+
status: string;
|
|
35
|
+
paid: boolean;
|
|
36
|
+
amount: number;
|
|
37
|
+
note: string;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## List choices from a server
|
|
42
|
+
|
|
43
|
+
A list column's `options` can be a function, which can return a promise. In a cell's editor it is called with the row, so the choices can depend on it. Everywhere else (the cell text, the filter row, the search panel, the filter builder and pasted text) it is called once with `row` `null`, returns every choice, and its answer is kept until `refresh()`. Until it arrives, the cells show the values and the filter row's list says it is loading. Here the server is asked once, however many places use the choices.
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
/** An order, as stored by the sample server. */
|
|
47
|
+
export interface Order {
|
|
48
|
+
id: number;
|
|
49
|
+
customer: string;
|
|
50
|
+
city: string;
|
|
51
|
+
date: string;
|
|
52
|
+
status: string;
|
|
53
|
+
paid: boolean;
|
|
54
|
+
amount: number;
|
|
55
|
+
note: string;
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
23
59
|
## Filter panel and builder
|
|
24
60
|
|
|
25
61
|
`settings.filterPanel` adds a panel below the rows that shows the filter value as text, such as `[City] Equals 'Ankara' And [Amount] Is greater than '900.00'`, using column titles, formats and lookup text. Clicking it opens the kit's [FilterBuilder](filterbuilder.md) in a modal window with every column (`filterBuilder` disables it for a column), and with “is any of” and “is none of” for each one. OK applies the value as the filter value, and Cancel and Escape discard it. The check box turns the filter value off and on, and Clear removes it.
|
|
@@ -221,6 +257,75 @@ export interface Order {
|
|
|
221
257
|
}
|
|
222
258
|
```
|
|
223
259
|
|
|
260
|
+
`FilterEditors.tsx`
|
|
261
|
+
|
|
262
|
+
```tsx
|
|
263
|
+
import { Component } from '@motifx/core';
|
|
264
|
+
import { ButtonGroup, DataGrid, NumberBox, type FilterEditorContext, type GridColumn } from '@motifx-community/ui';
|
|
265
|
+
import type { Order } from './order';
|
|
266
|
+
import { columns, makeOrders } from './orders';
|
|
267
|
+
|
|
268
|
+
/** The status chosen from buttons, written to the filter through the context and redrawn when the filter changes. */
|
|
269
|
+
function statusButtons(ctx: FilterEditorContext<Order>) {
|
|
270
|
+
const box = new Component<HTMLDivElement>('div');
|
|
271
|
+
const buttons = new ButtonGroup({
|
|
272
|
+
label: 'Status',
|
|
273
|
+
size: 'sm',
|
|
274
|
+
selection: 'single',
|
|
275
|
+
allowEmpty: true,
|
|
276
|
+
items: [
|
|
277
|
+
{ value: 'Approved', text: 'Approved' },
|
|
278
|
+
{ value: 'Shipped', text: 'Shipped' },
|
|
279
|
+
{ value: 'Delivered', text: 'Delivered' }
|
|
280
|
+
],
|
|
281
|
+
value: ctx.value as string,
|
|
282
|
+
onValueChanged: e => e.byUser && ctx.setValue(e.value)
|
|
283
|
+
});
|
|
284
|
+
ctx.onChanged(value => (buttons.value = (value as string) ?? null));
|
|
285
|
+
box.controls.add(buttons);
|
|
286
|
+
return box;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** Each column's own filter editor: buttons for the status, a number box that takes no negative amount. */
|
|
290
|
+
export default function FilterEditors() {
|
|
291
|
+
const own: GridColumn<Order>[] = columns.map(c =>
|
|
292
|
+
c.field === 'status'
|
|
293
|
+
? { ...c, width: 260, filterEditor: statusButtons }
|
|
294
|
+
: c.field === 'amount'
|
|
295
|
+
? { ...c, filterOperators: ['>=', '<='], filterEditor: () => new NumberBox({ labelMode: 'hidden', size: 'sm', min: 0, step: 100 }) }
|
|
296
|
+
: c
|
|
297
|
+
);
|
|
298
|
+
return <DataGrid class="dg-filter-editors" style="block-size: 24rem" rows={makeOrders(200)} rowKey="id" columns={own} label="Orders with their own filter editors" settings={{ filterRow: true }} />;
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
`ServerChoices.tsx`
|
|
303
|
+
|
|
304
|
+
```tsx
|
|
305
|
+
import { reactive } from '@motifx/core';
|
|
306
|
+
import { DataGrid, type GridColumn, type ListOption } from '@motifx-community/ui';
|
|
307
|
+
import type { Order } from './order';
|
|
308
|
+
import { columns, makeOrders } from './orders';
|
|
309
|
+
|
|
310
|
+
const PLATES: Record<string, string> = { Ankara: '06', Antalya: '07', Bursa: '16', İstanbul: '34', İzmir: '35', Konya: '42', Trabzon: '61' };
|
|
311
|
+
|
|
312
|
+
/** The city choices come from a pretend server: asked once with no row, they write the cells, the filter row and the search. */
|
|
313
|
+
export default function ServerChoices() {
|
|
314
|
+
const s = reactive({ asked: 0 });
|
|
315
|
+
const cities = (): Promise<readonly ListOption[]> => {
|
|
316
|
+
s.asked++;
|
|
317
|
+
return new Promise(done => setTimeout(() => done(Object.entries(PLATES).map(([city, plate]) => ({ value: city, label: `${city} (${plate})` }))), 800));
|
|
318
|
+
};
|
|
319
|
+
const own: GridColumn<Order>[] = columns.map(c => (c.field === 'city' ? { ...c, width: 150, options: cities } : c));
|
|
320
|
+
return (
|
|
321
|
+
<>
|
|
322
|
+
<DataGrid class="dg-server-choices" style="block-size: 24rem" rows={makeOrders(200)} rowKey="id" columns={own} label="Orders with cities from a server" settings={{ filterRow: true, searchPanel: true }} />
|
|
323
|
+
<output class="dg-server-choices-asked">{() => `The server was asked ${s.asked} times`}</output>
|
|
324
|
+
</>
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
224
329
|
`FilterPanel.tsx`
|
|
225
330
|
|
|
226
331
|
```tsx
|
package/docs/datagrid-forms.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Edit forms and popups
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Edit forms and popups
|
|
6
6
|
|
|
@@ -113,7 +113,7 @@ Every rule accepts a `message` (`Bind<string>`). Without it, the text comes from
|
|
|
113
113
|
| --- | --- | --- |
|
|
114
114
|
| `onEditingStart` | `{ field, row, values, getValue, rowIndex, isNew, cancel }` | Occurs before a cell editor or a row's form (`field` `''`) opens. Set `cancel` to leave the row unchanged. `row` is the row itself (a class instance stays one), `values` holds the entered, unsaved values, and `getValue(field)` returns the entered value, otherwise the row's. |
|
|
115
115
|
| `onEditorPreparing` | `{ field, row, values, getValue, isNew, options, cancel }` | Occurs before the editor of a cell or form field is created. Change its props, or set `cancel` to omit a field from the form. |
|
|
116
|
-
| `onEditorPrepared` | `{ field, row, values, getValue, isNew, editor,
|
|
116
|
+
| `onEditorPrepared` | `{ field, row, values, getValue, isNew, editor, part, place: 'cell' \| 'form' }` | Occurs after an editor is created. |
|
|
117
117
|
| `onRowValidating` | `{ key, row, values, getValue, isNew, changed, errors, isValid, errorText, cancel }` | Occurs when a row is validated before saving, after its cells and their async rules. Add or remove messages in `errors` (by field, with `''` for the row), or set `isValid = false` with `errorText`. Occurs once per validation of the row. |
|
|
118
118
|
| `onInitNewRow, onSaving, onRowInserting, onRowUpdating, onEditCanceling …` | See [Events](datagrid-layout.md#events) | The same in every edit mode: Save in a form is a save, and Cancel is a cancel. |
|
|
119
119
|
|
package/docs/datagrid-layout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Layout and events
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Toolbar
|
|
6
6
|
|
|
@@ -180,14 +180,14 @@ export interface Order {
|
|
|
180
180
|
|
|
181
181
|
| Event | Parameters | Cancel | When |
|
|
182
182
|
| --- | --- | --- | --- |
|
|
183
|
-
| `onCellClick / onCellDblClick` | `{ field, row, rowIndex, rowType, groupKey?,
|
|
184
|
-
| `onRowClick / onRowDblClick` | `{ row, rowIndex, rowType, groupKey?,
|
|
185
|
-
| `onCellPrepared` | `{ field, row, rowIndex, value, isNew,
|
|
186
|
-
| `onRowPrepared` | `{ row, rowIndex, rowType, groupKey?, isSelected,
|
|
183
|
+
| `onCellClick / onCellDblClick` | `{ field, row, rowIndex, rowType, groupKey?, part, event }` | yes | Occurs when a cell is clicked or double-clicked (also in a group footer, `rowType: 'groupFooter'`, and in the totals row, `'totalFooter'`). Canceling prevents selection, the group toggle and the editor. |
|
|
184
|
+
| `onRowClick / onRowDblClick` | `{ row, rowIndex, rowType, groupKey?, part, event }` | yes | The same for the row, after its cell's event. |
|
|
185
|
+
| `onCellPrepared` | `{ field, row, rowIndex, value, isNew, part }` | | Occurs when a cell is rendered for a row, so that you can style it. Cells are reused while scrolling, so set and clear what you change. It has no cost when there are no listeners. |
|
|
186
|
+
| `onRowPrepared` | `{ row, rowIndex, rowType, groupKey?, isSelected, part }` | | Occurs when a data row, group row, group footer (`groupFooter`) or the totals row (`totalFooter`) is rendered. The same rule applies. |
|
|
187
187
|
| `onContentReady` | `{ total }` | | Occurs when rows have arrived and been laid out (after a load, a filter, a sort, a page change or a resize). |
|
|
188
188
|
| `onDataErrorOccurred` | `{ error, operation, row? }` | | Occurs when a load (`operation: 'load'`) or the save of a row (`'save'`, with `row`) fails. |
|
|
189
189
|
| `onEditingStart` | `{ field, row, rowIndex, isNew }` | yes | Occurs before a cell editor or a row's edit form (`field` `''`) opens. |
|
|
190
|
-
| `onEditorPreparing / onEditorPrepared` | `{ field, row, isNew, options }` / `{ field, row, isNew, editor,
|
|
190
|
+
| `onEditorPreparing / onEditorPrepared` | `{ field, row, isNew, options }` / `{ field, row, isNew, editor, part, place }` | yes / — | Occur before and after the editor of a cell or form field is created. Change its props in `options` in the first event. |
|
|
191
191
|
| `onRowValidating` | `{ key, row, isNew, changed, errors, isValid, errorText }` | yes | Occurs when a row is validated before saving, after its cells. Add messages to `errors`, or set `isValid = false` (or cancel) with `errorText`. |
|
|
192
192
|
| `onInitNewRow` | `{ data, values }` | yes | Occurs before a new row opens. `data` is its initial content, and `values` is what counts as entered. Canceling opens no row. |
|
|
193
193
|
| `onSaving / onSaved` | `{ changes }` / `{ changes, saved, failed }` | yes / — | Occur before changes are sent (leaving a row, the background queue or “Save changes”) and after the response arrives. |
|
|
@@ -518,7 +518,7 @@ export default function Events() {
|
|
|
518
518
|
settings={{ editable: true }}
|
|
519
519
|
onCellPrepared={(e) => {
|
|
520
520
|
// The cell is reused for other rows: set and clear.
|
|
521
|
-
if (e.field === 'amount') e.
|
|
521
|
+
if (e.field === 'amount') e.part.style({ 'font-weight': (e.value as number) > 900 ? 'bold' : '' });
|
|
522
522
|
}}
|
|
523
523
|
onContextMenuPreparing={(e) => {
|
|
524
524
|
if (e.target === 'row' && e.row) e.items.push({ text: `Log order ${e.row.id}`, click: () => log(`Order ${e.row!.id} from the row menu`) });
|
package/docs/datagrid-lookups.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Lookup columns
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Lookup columns
|
|
6
6
|
|
|
@@ -87,13 +87,13 @@ export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
|
87
87
|
| `searchFields` | The fields searched by the editor and text searches. By default, `textField` when it is a field. |
|
|
88
88
|
| `filter` | `(row, context) => FilterExpression`. Narrows the items for a row (for cascading lists, `context.getValue('province')` returns the entered value, otherwise the row's). `row` is `null` for filter lists. |
|
|
89
89
|
| `allowClearing` | `Bind<boolean>`. Adds a clear button to the editor. The default is `false`. |
|
|
90
|
-
| `resolve, batchSize` | `'batch'` (the default: keys in one request, `batchSize`
|
|
90
|
+
| `resolve, batchSize` | `'batch'` (the default: keys in one request, `batchSize` 20 each) or `'byKey'` (one request per key). |
|
|
91
91
|
| `sortBy` | `Bind<'key' \| 'text'>`. Sorts in-memory rows by key (the default) or by displayed text. |
|
|
92
92
|
| `editor, editorOptions` | `'dropdown'` (the default), `'combobox'` or `'lookup'`, and props for it (such as a `Lookup`'s `columns`). A column's own `editor` still takes precedence and receives the lookup in its context. |
|
|
93
93
|
| `searchLimit` | The maximum number of items containing the search panel's text that the search converts to keys. The default is 100. |
|
|
94
94
|
| `filterSearchLimit` | The same for the header filter's search box. The default is 1000. |
|
|
95
95
|
| `pageSize` | The number of items the editor's list loads per request while scrolling (with a data source). The default is 50. |
|
|
96
|
-
| `parallelRequests` |
|
|
96
|
+
| `parallelRequests` | The number of simultaneous requests: of keys with `'byKey'`, of batches with `'batch'`. The default is 6. |
|
|
97
97
|
| `pasteSearchLimit` | The number of items searched for pasted text. The default is 50. |
|
|
98
98
|
|
|
99
99
|
## Feedback
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DataGrid: Master-detail
|
|
2
2
|
|
|
3
|
-
> DataGrid · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
## Master-detail
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ export function makeCustomers(n: number): Customer[] {
|
|
|
31
31
|
| Option | Type | Default | Description |
|
|
32
32
|
| --- | --- | --- | --- |
|
|
33
33
|
| `masterDetail.enabled` | `Bind<boolean>` | `false` | The expand column, after the status and check box columns and pinned with them, lets the user open and close details. When disabled, they can be opened only programmatically. |
|
|
34
|
-
| `masterDetail.template` | `(ctx: DetailContext<T>) => unknown` | — | The content of a row's details: a component (another `DataGrid`, a `FormLayout`, `Tabs` …)
|
|
34
|
+
| `masterDetail.template` | `(ctx: DetailContext<T>) => unknown` | — | The content of a row's details: a component (another `DataGrid`, a `FormLayout`, `Tabs` …) or text. It is created the first time the details are shown. `ctx` provides `row` (the row itself) and `rowIndex`, both getters that are read again when the row shows another one and on `grid.repaint()` or `grid.repaintRows(keys)`, plus `key`, `grid` and `collapse()`. |
|
|
35
35
|
| `masterDetail.autoExpandAll` | `Bind<boolean>` | `false` | Every row starts open. Changing this setting, `enabled` or `template` opens or closes every row again. |
|
|
36
36
|
| `masterDetail.canExpand` | `Bind<boolean> \| (row) => boolean` | `true` | Whether a row has details. A row without details has no arrow, and `expandRow` leaves it closed. Unsaved new rows have no details. |
|
|
37
37
|
| `masterDetail.keepDetails` | `Bind<boolean>` | `true` | A closed row keeps the content of its details and shows it unchanged when it reopens. When disabled, closing disposes the content. |
|
|
@@ -91,7 +91,7 @@ The arrow is a button with `aria-expanded` and `aria-controls`, and the row also
|
|
|
91
91
|
| --- | --- | --- |
|
|
92
92
|
| `onRowExpanding / onRowCollapsing` | `{ kind: 'detail', key, row, cancel }` | Occurs before a row's details open or close, from the user or programmatically. Set `cancel` to keep them as they are. These are the same events as for groups (`kind: 'group'`). |
|
|
93
93
|
| `onRowExpanded / onRowCollapsed` | `{ kind: 'detail', key, row }` | Occurs after they open or close. |
|
|
94
|
-
| `onRowPrepared` | `{ rowType: 'detail', row, rowIndex,
|
|
94
|
+
| `onRowPrepared` | `{ rowType: 'detail', row, rowIndex, part }` | Occurs when a row's details have been rendered for a row. |
|
|
95
95
|
| `onOptionChanged` | `{ name: 'masterDetail.enabled', value, previous }` | Occurs when a `masterDetail` option is assigned through `grid.masterDetail`. |
|
|
96
96
|
|
|
97
97
|
| Member | Returns | Description |
|
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.8
|
|
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.8
|
|
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
|
|
|
@@ -195,7 +195,7 @@ export default function Localization() {
|
|
|
195
195
|
| `unfinished` | Indicates that the typed text is not yet a complete, valid date. |
|
|
196
196
|
| `opened, open(), close()` | The picker. |
|
|
197
197
|
| `clear()` | Clears the value. |
|
|
198
|
-
| `
|
|
198
|
+
| `inputPart` | The native `<input>`. |
|
|
199
199
|
| `onValueChanged, onOpened, onClosed, onValidated` | These work the same way as in DropDown and TextBox. |
|
|
200
200
|
|
|
201
201
|
The date helpers are shared: `datePatternOf(locale, kind)`, `dateToDigits`, `digitsToDate`.
|
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.8
|
|
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
|
|
|
@@ -185,7 +185,7 @@ export default function DateTime() {
|
|
|
185
185
|
| Member | Type | Description |
|
|
186
186
|
| --- | --- | --- |
|
|
187
187
|
| `startDate, endDate` | `Date \| null` | The start and end as separate properties. |
|
|
188
|
-
| `
|
|
188
|
+
| `inputPart, endInputPart` | read-only | The start and end inputs. |
|
|
189
189
|
| `open(), close(), opened` | `boolean` / `void` | The popup with the calendars, along with `onOpened` and `onClosed`. |
|
|
190
190
|
| `clear()` | `void` | Clears both ends. |
|
|
191
191
|
| `validate(), validationMessage, isValid` | | Works the same way as on all fields. Validation covers incomplete dates, dates outside `min`, `max` or `disabledDates`, a start after the end, and ranges shorter than `minDays` or longer than `maxDays`. |
|
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.8
|
|
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.8
|
|
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
|
|
|
@@ -12,7 +12,7 @@ import { Draggable, DropTarget } from '@motifx-community/ui';
|
|
|
12
12
|
|
|
13
13
|
## Moving content
|
|
14
14
|
|
|
15
|
-
JSX children are the movable content. `boundary` keeps it inside its parent or
|
|
15
|
+
JSX children are the movable content. `boundary` keeps it inside its parent or a component, `axis` limits it to one direction, and `handle` sets the only part that responds to the pointer and keyboard. A drag writes the position to `x-model`, `onDragEnded` reports it, and Escape returns the content to its start.
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
18
|
import { reactive } from '@motifx/core';
|
|
@@ -164,7 +164,7 @@ export default function Programmatic() {
|
|
|
164
164
|
| Prop | Type | Default | Description |
|
|
165
165
|
| --- | --- | --- | --- |
|
|
166
166
|
| `axis` | `Bind<DragAxis>` | `'both'` | `both`, `x` or `y`. |
|
|
167
|
-
| `boundary` | `Bind<'parent' \|
|
|
167
|
+
| `boundary` | `Bind<'parent' \| ComponentBase \| null>` | `null` | The area it stays inside: its parent, or a component that contains it. |
|
|
168
168
|
| `handle` | `Bind<string \| null>` | `null` | A selector inside the draggable. Only this part starts a drag, and it receives the Tab stop and keyboard input. |
|
|
169
169
|
| `clone` | `Bind<boolean>` | `false` | A copy follows the pointer and the draggable stays in place, ready to be dropped on a target. |
|
|
170
170
|
| `group` | `Bind<string \| null>` | `null` | Drop targets in the same group accept it. |
|
|
@@ -191,7 +191,7 @@ export default function Programmatic() {
|
|
|
191
191
|
| `onDragEnded` | event | Occurs when the drag ends (`x`, `y`, `target`, `dropped`). |
|
|
192
192
|
| `currentPosition` | read-only | The current position. |
|
|
193
193
|
| `isDragging` | read-only | Indicates that a drag is in progress. |
|
|
194
|
-
| `
|
|
194
|
+
| `handlePart` | read-only | The handle that `handle` names, which takes the pointer and the keyboard; `null` when the draggable itself takes them. |
|
|
195
195
|
|
|
196
196
|
## Feedback
|
|
197
197
|
|
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.8
|
|
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
|
|
|
@@ -211,7 +211,7 @@ Its default name and the close button come from `uiLocale.strings` (`drawerLabel
|
|
|
211
211
|
| `value` | `Bind<boolean>` | `false` | Indicates whether it is open. `x-model` provides two-way binding. |
|
|
212
212
|
| `side` | `Bind<'start' \| 'end' \| 'left' \| 'right' \| 'top' \| 'bottom'>` | `'start'` | The edge it slides in from. `start` and `end` follow the reading direction, and `left` and `right` do not. |
|
|
213
213
|
| `mode` | `Bind<'over' \| 'push'>` | `'over'` | Over the content, or pushing `pushTarget` aside by its size. |
|
|
214
|
-
| `pushTarget` | `Bind<
|
|
214
|
+
| `pushTarget` | `Bind<ComponentBase \| null>` | — | The component `push` moves aside. Without it, `push` behaves like `over`. |
|
|
215
215
|
| `size` | `Bind<number \| string \| null>` | `null` | Its width, or its height from the top or bottom, in pixels or as a CSS length. `null` uses `drawer.size`. It never exceeds 85% of the available space. |
|
|
216
216
|
| `edgeSwipe` | `Bind<boolean>` | `false` | A finger swiping in from the edge of the container or page opens it, and it follows the finger. |
|
|
217
217
|
| `edgeSize` | `Bind<number>` | `24` | The distance from the edge, in pixels, where that swipe can start. |
|
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.8
|
|
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
|
|
|
@@ -24,7 +24,7 @@ export const cities = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Kon
|
|
|
24
24
|
Custom objects are read through `textField` and `valueField`, each a property name or a function. `groupField` places options under headers, `enabledField` disables specific options, and a template customizes how an option is drawn.
|
|
25
25
|
|
|
26
26
|
```tsx
|
|
27
|
-
import { reactive } from '@motifx/core';
|
|
27
|
+
import { reactive, type ComponentBase } from '@motifx/core';
|
|
28
28
|
import { DropDown } from '@motifx-community/ui';
|
|
29
29
|
|
|
30
30
|
interface Country {
|
|
@@ -47,8 +47,8 @@ const countries: Country[] = [
|
|
|
47
47
|
];
|
|
48
48
|
|
|
49
49
|
/** Draws a country as its flag and its name, in the list and in the field. */
|
|
50
|
-
const drawCountry = (c: Country, host:
|
|
51
|
-
host.
|
|
50
|
+
const drawCountry = (c: Country, host: ComponentBase) => {
|
|
51
|
+
host.setText(`${c.flag} ${c.name}`);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** Objects read through textField and valueField, under group headers, one that cannot be chosen, drawn with templates. */
|
|
@@ -211,7 +211,7 @@ export default function Localization() {
|
|
|
211
211
|
| `searchEnabled` | `Bind<boolean>` | `false` | Adds a search box at the top of the list. |
|
|
212
212
|
| `searchMode` | `Bind<'contains' \| 'startswith'>` | `'contains'` | How the search matches option text. |
|
|
213
213
|
| `clearButton` | `Bind<boolean>` | `false` | Shows a button that clears the value. Escape does the same while the list is closed. |
|
|
214
|
-
| `itemTemplate / fieldTemplate` | `Bind<(item, host) => cleanup \| void>` | — | Customizes how an option or the selected item is drawn. |
|
|
214
|
+
| `itemTemplate / fieldTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an option or the selected item is drawn. |
|
|
215
215
|
| `matchWidth` | `Bind<boolean>` | `true` | The list is at least as wide as the field. |
|
|
216
216
|
| `label, labelMode, helpText, hint, prefix, icon, buttons, readOnly, required, size, variant, stretch, rules, error, validateOn, validationGroup` | see TextBox | | Field props shared by all editors. |
|
|
217
217
|
|