@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/editors.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Editors
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Editors take values: text, numbers, dates and times, ranges, colors, ratings, codes, files and signatures. They share one field model, so a label, help text, validation and binding work the same in all of them.
|
|
6
6
|
|
package/docs/feedback.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Feedback
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Feedback components tell the reader what is happening: how far a task has come, that something is loading, what a control does, and what has just happened.
|
|
6
6
|
|
package/docs/fileuploader.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FileUploader
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Lets users select files with a button or drop them on the box. Files are listed with their size and status, and can upload automatically, on a button click or programmatically, with progress, cancel, retry and remove for each file. Files that exceed the limits are listed with the reason.
|
|
6
6
|
|
package/docs/filterbuilder.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FilterBuilder
|
|
2
2
|
|
|
3
|
-
> Data · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Data · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Lets users build a filter visually, using groups joined by And, Or, Not And or Not Or, and conditions made of a field, an operation and a value. Its value is a data layer filter expression, so it works directly with in-memory rows and every adapter. DataGrid opens it from the filter panel, and you can also use it on its own for reports or saved searches.
|
|
6
6
|
|
|
@@ -360,7 +360,7 @@ export const saleFields: FilterBuilderField[] = [
|
|
|
360
360
|
| `root` | read-only | The tree: `{ kind: 'group', operation, items, parent }` containing `{ kind: 'condition', field, operation, value, parent }` items. Change it through the methods. |
|
|
361
361
|
| `filterText` | read-only, reactive | The filter as a single line: `[City] Equals 'Ankara' And [Amount] Is greater than '100'`. |
|
|
362
362
|
| `model` | read-only | The `FilterBuilderModel`, which provides field operations, text, and conversion between expressions and the tree. |
|
|
363
|
-
| `
|
|
363
|
+
| `treePart, editingCondition` | read-only | The `role="treegrid"` part, and the condition whose editor is open. |
|
|
364
364
|
|
|
365
365
|
### Methods
|
|
366
366
|
|
package/docs/formlayout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FormLayout
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Arranges the fields of a data object on a grid. Each field gets an editor, chosen by name or by the type of its value, with two-way binding to the object. Groups, column spans and buttons organize the layout, and submitting the form validates every field first.
|
|
6
6
|
|
package/docs/foundations.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Foundations
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
The foundations are what every control of the kit shares: the Control base with its properties, keyboard and focus, and the language of the texts and formats.
|
|
6
6
|
|
package/docs/gallery.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gallery
|
|
2
2
|
|
|
3
|
-
> Display · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Display · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Displays a horizontal set of slides, one or several at a time. Users navigate with the side buttons, the indicator dots, swipe gestures or the arrow keys, and it can run as an automatic slideshow. A slide can be an image with a caption or any other content.
|
|
6
6
|
|
package/docs/gauge-base.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Base value
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
The fill starts at the start of the scale, or at a base value inside it. A scale with values on both sides of a target then fills from the target, either way.
|
|
6
6
|
|
package/docs/gauge-circular.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Circular
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
A circular gauge shows its value on an arc or a whole circle, with the value written in the middle. It reads best for one value whose scale the reader knows, such as a speed or a share.
|
|
6
6
|
|
package/docs/gauge-dashboards.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Dashboards
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Gauges of different kinds put together, all following the same values. Each gauge keeps its own scale, so readers compare values by their meaning, not by size alone.
|
|
6
6
|
|
package/docs/gauge-linear.md
CHANGED
package/docs/gauge-markers.md
CHANGED
package/docs/gauge-marks.md
CHANGED
package/docs/gauge-ranges.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge: Ranges
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Ranges give stretches of the scale a meaning, such as normal, high and critical. They show as a band beside the track, and the fill takes the color of the range its value is in.
|
|
6
6
|
|
package/docs/gauge-scales.md
CHANGED
package/docs/gauge.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gauge
|
|
2
2
|
|
|
3
|
-
> Gauges · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Gauges · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Shows a value against its scale, as an arc, a circle or a straight bar. Ranges give stretches of the scale a meaning, markers and marks point at values, and every part takes its look from the design language.
|
|
6
6
|
|
package/docs/home.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @motifx-community/ui
|
|
2
2
|
|
|
3
|
-
> Get started · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Get started · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Components for MotifJS: objects you create when you need them, show anywhere and dispose when you are done, drawn from the MotifJS design system's tokens.
|
|
6
6
|
|
package/docs/keyboard.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Keyboard and focus
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
|
|
6
6
|
|
|
@@ -59,7 +59,6 @@ A `FocusContainer` knows which child control holds focus (`activeControl`, react
|
|
|
59
59
|
<Button text="&Save" onclick={save} /> // Alt+S
|
|
60
60
|
<Button text="Save &as…" onclick={saveAs} /> // Alt+A
|
|
61
61
|
<Button text="Tom && Jerry" /> // a literal &
|
|
62
|
-
<input aria-keyshortcuts="Alt+N" /> // plain elements too
|
|
63
62
|
```
|
|
64
63
|
|
|
65
64
|
| Topic | Behavior |
|
|
@@ -72,7 +71,6 @@ A `FocusContainer` knows which child control holds focus (`activeControl`, react
|
|
|
72
71
|
| `AltGr` | AltGr (Ctrl+Alt on Windows) is ignored, because it types characters such as `@` on a Turkish keyboard. |
|
|
73
72
|
| `Underline` | Shown while Alt is held (Control + Option on Apple platforms). Tapping Alt keeps the underlines visible until Alt is tapped again, another key is pressed or the pointer is used. While the page has access keys, that tap is not passed to the browser, which would otherwise move keyboard focus to its menu bar. Set `data-mx-access-keys="always"` on `<html>` to show them all the time. |
|
|
74
73
|
| `Accessibility` | The accessible name is the plain text, and the control receives `aria-keyshortcuts="Alt+S"` (`"Control+Alt+S"` on Apple platforms). |
|
|
75
|
-
| `Plain elements` | Any element with `aria-keyshortcuts="Alt+N"` takes part. A button-like element is clicked, an input receives focus, and a `<label>` moves focus to its field. |
|
|
76
74
|
|
|
77
75
|
```tsx
|
|
78
76
|
import { reactive } from '@motifx/core';
|
|
@@ -179,7 +177,7 @@ export default function FocusGuard() {
|
|
|
179
177
|
|
|
180
178
|
| Member | Return value / type | Description |
|
|
181
179
|
| --- | --- | --- |
|
|
182
|
-
| `addShortcut(chord, handler, options?)` | `() => void` | Registers a shortcut and returns a function that removes it. `options.scope` limits it to a component, and `options.inEditable` also enables it in text fields. |
|
|
180
|
+
| `addShortcut(chord, handler, options?)` | `() => void` | Registers a shortcut and returns a function that removes it. `options.scope` limits it to a component, `options.within` further to parts of it (a component, a list of components, or a function that returns them, such as the tabs of a strip: shortcuts of different parts may share keys), and `options.inEditable` also enables it in text fields. |
|
|
183
181
|
| `control.addShortcut(chord, handler, options?)` | `() => void` | Registers a shortcut scoped to the control and removes it when the control is disposed. |
|
|
184
182
|
| `parseAccessKey(text)` | `{ text, key, index }` | Parses `&Text` for your own controls. Render the result with the `mx-access-key` class and call `setAccessKey(key)`. |
|
|
185
183
|
| `tabIndex` | prop / property | The order inside the container. The default is 0. |
|
package/docs/language.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Language
|
|
2
2
|
|
|
3
|
-
> Foundations · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Foundations · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
`uiLocale` controls the strings that controls display, the locale used for dates and numbers, and the text direction. The kit has one `uiLocale`, and each language pack is loaded on demand.
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ export default function Switch() {
|
|
|
45
45
|
|
|
46
46
|
| Rule | Details |
|
|
47
47
|
| --- | --- |
|
|
48
|
-
| `Start` | The initial language
|
|
48
|
+
| `Start` | The initial language is the browser's language (`navigator.language`), English without one. The app gives its own with `connectI18n(i18n)` or `uiLocale.use(locale)`; the page's `<html lang>` is not read. `uiLocale.ready` resolves once the initial language has loaded. |
|
|
49
49
|
| `Texts` | Every string a control displays on its own, such as a button name, a message or “No items”, comes from the active language pack. English is used for anything the pack does not include. |
|
|
50
50
|
| `Formats` | Dates, numbers, the first day of the week and the 12 or 24-hour clock follow `uiLocale.locale`. A control's own `locale` prop takes precedence for that control. |
|
|
51
51
|
| `Direction` | `uiLocale.dir` is `rtl` for Arabic, Hebrew, Persian, Urdu and similar languages. Controls lay themselves out based on `<html dir>`, which `@motifx-community/i18n` keeps in sync. |
|
package/docs/layout.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Layout
|
|
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
|
Container controls for arranging other controls: `Stack` (a row or column), `Grid` (rows and columns), `Panel` (a plain box that can scroll), `GroupBox` (a titled frame), `DockPanel` (children docked to its edges) and `SplitContainer` (two panes with a splitter). All of them are controls, so they can disable and hide their content, and they lay out children added at any time.
|
|
6
6
|
|
|
@@ -559,9 +559,9 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
|
|
|
559
559
|
| --- | --- | --- |
|
|
560
560
|
| `every prop above` | read/write, reactive | Accepts a value or a function, the same as the prop. |
|
|
561
561
|
| `SplitContainer.first, second` | read-only | The two panes, as `Panel` objects: `split.first.controls.add(…)`, `split.second.scrollable = true`. |
|
|
562
|
-
| `SplitContainer.
|
|
562
|
+
| `SplitContainer.splitterPart` | read-only | The `role="separator"` part. |
|
|
563
563
|
| `SplitContainer.value` | read/write | Maps to `position` for `x-model`. |
|
|
564
|
-
| `GroupBox.
|
|
564
|
+
| `GroupBox.legendPart` | read-only | The `<legend>` part. |
|
|
565
565
|
|
|
566
566
|
### Methods
|
|
567
567
|
|
package/docs/listbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ListBox
|
|
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
|
A list displayed directly on the page. Users select one or more items with the keyboard or pointer. Items can come from memory or a data source, can be searched and grouped, and long lists render only the visible rows.
|
|
6
6
|
|
|
@@ -34,7 +34,7 @@ export const cities = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Kon
|
|
|
34
34
|
Custom objects are read through `textField` and `valueField`. `groupField` places items under headers, `enabledField` disables specific items, and `itemTemplate` customizes how an item is drawn.
|
|
35
35
|
|
|
36
36
|
```tsx
|
|
37
|
-
import { reactive } from '@motifx/core';
|
|
37
|
+
import { reactive, type ComponentBase } from '@motifx/core';
|
|
38
38
|
import { ListBox } from '@motifx-community/ui';
|
|
39
39
|
|
|
40
40
|
interface Country {
|
|
@@ -68,8 +68,8 @@ export default function Countries() {
|
|
|
68
68
|
valueField="code"
|
|
69
69
|
groupField="region"
|
|
70
70
|
enabledField={(c: Country) => c.member !== false}
|
|
71
|
-
itemTemplate={(c: Country, host:
|
|
72
|
-
host.
|
|
71
|
+
itemTemplate={(c: Country, host: ComponentBase) => {
|
|
72
|
+
host.setText(`${c.flag} ${c.name}`);
|
|
73
73
|
}}
|
|
74
74
|
height={8}
|
|
75
75
|
x-model={() => form.country}
|
|
@@ -220,7 +220,7 @@ export default function Localization() {
|
|
|
220
220
|
| `searchMode` | `Bind<'contains' \| 'startswith'>` | `'contains'` | How the search matches in-memory items. |
|
|
221
221
|
| `searchDelay` | `Bind<number>` | `0` / `250` | The delay, in milliseconds, between the last keystroke and the search (in memory / with a data source). |
|
|
222
222
|
| `height` | `Bind<number \| string \| null>` | — | The height, in rows (`8`) or a CSS length (`"12rem"`). Without it, the list is as tall as its items, up to the `max-height` of the list (`list.container`). |
|
|
223
|
-
| `itemTemplate` | `Bind<(item, host) => cleanup \| void>` | — | Customizes how an item is drawn. |
|
|
223
|
+
| `itemTemplate` | `Bind<(item, host: ComponentBase) => cleanup \| void>` | — | Customizes how an item is drawn. |
|
|
224
224
|
| `noItemsText` | `Bind<string>` | — | The text for an empty list, which replaces the `uiLocale` “No items” string. |
|
|
225
225
|
| `label, labelMode, helpText, hint, readOnly, required, size, variant, stretch, rules, error, validateOn, validationGroup` | see TextBox | | Field props shared by all editors. |
|
|
226
226
|
|
package/docs/loadpanel.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LoadPanel
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
A loading overlay for a container or the whole page. It includes a shade, a panel with the kit spinner and a message, and a Cancel button when the operation can be stopped. The content underneath is unavailable while it is shown, and focus returns afterward.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import { LoadPanel } from '@motifx-community/ui';
|
|
|
12
12
|
|
|
13
13
|
## Covering a container
|
|
14
14
|
|
|
15
|
-
`target` specifies the component
|
|
15
|
+
`target` specifies the component to cover. `value` or `x-model` shows and hides the panel, or you can call `show()` and `hide()`. `delay` keeps it from flashing during quick operations.
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
18
|
import { reactive } from '@motifx/core';
|
|
@@ -126,7 +126,7 @@ export default function Options() {
|
|
|
126
126
|
| Topic | Details |
|
|
127
127
|
| --- | --- |
|
|
128
128
|
| `Covering a container` | The panel is placed inside the container, above its content. The container gets `aria-busy`, and the content under the panel is inert, so it cannot be clicked or focused. |
|
|
129
|
-
| `Over the page` | Without a `target`, the panel covers the viewport and the rest of the page is inert. |
|
|
129
|
+
| `Over the page` | Without a `target`, the panel covers the viewport and the rest of the page is inert. The app's root in that window (the `run()` host, an app window's host, or the body when no app runs) gets `aria-busy`. |
|
|
130
130
|
| `Focus` | Focus moves from the content underneath to the panel (to the Cancel button if there is one) and returns to its original position when the panel hides. |
|
|
131
131
|
| `Delay` | Quick operations show nothing. The panel appears after `delay`, and hiding it before then cancels it. |
|
|
132
132
|
| `Spinner.cover` | The kit spinner can cover a container with a single call (`Spinner.cover`). LoadPanel is the full component, with the panel, message, delay and button. |
|
|
@@ -162,7 +162,7 @@ export default function Options() {
|
|
|
162
162
|
|
|
163
163
|
| Prop | Type | Default | Description |
|
|
164
164
|
| --- | --- | --- | --- |
|
|
165
|
-
| `target` | `Bind<ComponentBase \|
|
|
165
|
+
| `target` | `Bind<ComponentBase \| null>` | `null` | The area to cover, a component. `null` covers the whole page. |
|
|
166
166
|
| `message` | `Bind<string>` | The kit string “Loading…” | The message below the indicator. This is the same property as `text`. |
|
|
167
167
|
| `value` | `Bind<boolean>` | `false` | Indicates whether the panel is shown. `x-model` provides two-way binding. |
|
|
168
168
|
| `delay` | `Bind<number>` | `0` | The delay in milliseconds before it appears. Hiding it before then shows nothing. |
|
package/docs/lookup.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lookup
|
|
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 row from a table-style list, typically from a data source searched on the server, such as a customer by company, contact and city. The field shows the text of the selected row, and everything else works as in DropDown.
|
|
6
6
|
|
package/docs/menus.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar and ContextMenu
|
|
2
2
|
|
|
3
|
-
> Buttons · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Buttons · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
An application menu bar (File, Edit, View) and a context menu that opens on right-click. Both use the same menu items, which support submenus, check and radio items, shortcuts and access keys.
|
|
6
6
|
|
|
@@ -114,10 +114,10 @@ An item with `items` opens a submenu at its side. Right (Left on right-to-left p
|
|
|
114
114
|
|
|
115
115
|
## ContextMenu
|
|
116
116
|
|
|
117
|
-
A `ContextMenu` opens at the pointer when its target is right-clicked, and at the focused element with the Menu key or Shift+F10. `onOpening` receives the
|
|
117
|
+
A `ContextMenu` opens at the pointer when its target is right-clicked, and at the focused element with the Menu key or Shift+F10. `onOpening` receives the component under the pointer or the focus (`e.part`) and builds the items for it, in this case for a row in a list. Setting `e.cancel = true` leaves the browser's own menu. The menu closes on Escape or a click outside. When the page scrolls, it follows the element it opened on and closes once that element is out of view.
|
|
118
118
|
|
|
119
119
|
```tsx
|
|
120
|
-
import { reactive, type Component } from '@motifx/core';
|
|
120
|
+
import { reactive, type Component, type ComponentBase } from '@motifx/core';
|
|
121
121
|
import { ContextMenu, type MenuItem } from '@motifx-community/ui';
|
|
122
122
|
|
|
123
123
|
interface FileRow {
|
|
@@ -156,9 +156,10 @@ export default function FileList() {
|
|
|
156
156
|
{ text: '&Delete', shortcut: 'Del', beginGroup: true, enabled: !row.locked, click: () => (s.files = s.files.filter((f) => f !== row)) },
|
|
157
157
|
];
|
|
158
158
|
|
|
159
|
-
const rowOf = (
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
const rowOf = (part: ComponentBase) => {
|
|
160
|
+
let id: string | null = null;
|
|
161
|
+
for (let at: ComponentBase | null = part; at && !id; at = at.parent) id = at.attr.get('data-id');
|
|
162
|
+
return s.files.find((f) => f.id === Number(id));
|
|
162
163
|
};
|
|
163
164
|
|
|
164
165
|
return (
|
|
@@ -174,7 +175,7 @@ export default function FileList() {
|
|
|
174
175
|
target={() => list}
|
|
175
176
|
label="File"
|
|
176
177
|
onOpening={(e) => {
|
|
177
|
-
const row = rowOf(e.
|
|
178
|
+
const row = rowOf(e.part);
|
|
178
179
|
if (row) e.items = rowItems(row);
|
|
179
180
|
else e.cancel = true;
|
|
180
181
|
}}
|
|
@@ -192,13 +193,13 @@ import { attachContextMenu } from '@motifx-community/ui';
|
|
|
192
193
|
const START = 'Right-click here, or focus me and press the Menu key.';
|
|
193
194
|
const BOX = 'padding: var(--mx-space-4); background: var(--mx-color-bg-card); border: var(--mx-border-width-1) solid var(--mx-color-stroke-card); border-radius: var(--mx-radius-lg)';
|
|
194
195
|
|
|
195
|
-
/** A menu given to
|
|
196
|
+
/** A menu given to a component with `attachContextMenu`, its items built from the opening. */
|
|
196
197
|
export default function AttachedMenu() {
|
|
197
198
|
const s = reactive({ zone: START });
|
|
198
199
|
|
|
199
200
|
const attach = (c: Component<HTMLDivElement>) => {
|
|
200
201
|
const remove = attachContextMenu(c, (e) => [
|
|
201
|
-
{ text: '&Say where', click: () => (s.zone = `Opened ${e.byKeyboard ? 'from the keyboard' : 'with the pointer'} on
|
|
202
|
+
{ text: '&Say where', click: () => (s.zone = `Opened ${e.byKeyboard ? 'from the keyboard' : 'with the pointer'} on ${e.part === c ? 'the zone' : 'its content'}.`) },
|
|
202
203
|
{ text: '&Reset', click: () => (s.zone = START) },
|
|
203
204
|
]);
|
|
204
205
|
c.motif.setDisposable(remove);
|
|
@@ -275,8 +276,8 @@ Menus have no strings of their own. Every label, shortcut and name comes from yo
|
|
|
275
276
|
|
|
276
277
|
| Prop | Type | Default | Description |
|
|
277
278
|
| --- | --- | --- | --- |
|
|
278
|
-
| `items` | `Bind<readonly MenuItem[]>` | `[]` | The commands. `onOpening` can provide different ones for each
|
|
279
|
-
| `target` | `Bind<
|
|
279
|
+
| `items` | `Bind<readonly MenuItem[]>` | `[]` | The commands. `onOpening` can provide different ones for each component. |
|
|
280
|
+
| `target` | `Bind<Component \| null>` | Its parent | The component the menu belongs to. If not set, this is the component the `ContextMenu` is placed in. |
|
|
280
281
|
| `label` | `Bind<string>` | `''` | The accessible name of the menu. |
|
|
281
282
|
| `keyboard` | `Bind<boolean>` | `true` | The Menu key and Shift+F10 open the menu at the focused element. |
|
|
282
283
|
| `closeOnScroll` | `Bind<boolean>` | `true` | Scrolling the element out of view closes the menu. Until then, the menu follows the element. |
|
|
@@ -289,8 +290,8 @@ Menus have no strings of their own. Every label, shortcut and name comes from yo
|
|
|
289
290
|
| --- | --- | --- |
|
|
290
291
|
| `MenuBar.openItem` | read-only, reactive | The top-level item whose menu is open. |
|
|
291
292
|
| `ContextMenu.opened` | read-only, reactive | Indicates whether it is open. |
|
|
292
|
-
| `ContextMenu.
|
|
293
|
-
| `ContextMenu.target` | read/write, reactive | The
|
|
293
|
+
| `ContextMenu.targetPart` | read-only, reactive | The component the menu was last opened on. |
|
|
294
|
+
| `ContextMenu.target` | read/write, reactive | The component the menu listens on. |
|
|
294
295
|
|
|
295
296
|
### Methods
|
|
296
297
|
|
|
@@ -298,17 +299,17 @@ Menus have no strings of their own. Every label, shortcut and name comes from yo
|
|
|
298
299
|
| --- | --- | --- |
|
|
299
300
|
| `MenuBar.open(item \| index)` | `boolean` | Opens a top-level item's menu with focus on its first item. |
|
|
300
301
|
| `MenuBar.close()` | `void` | Closes the open menu. |
|
|
301
|
-
| `ContextMenu.open(at, target?)` | `boolean` | Opens the menu programmatically, at `{ x, y }` or at
|
|
302
|
+
| `ContextMenu.open(at, target?)` | `boolean` | Opens the menu programmatically, at `{ x, y }` or at a component. |
|
|
302
303
|
| `ContextMenu.close()` | `void` | Closes it. |
|
|
303
304
|
| `MenuBar.refresh(), ContextMenu.refresh()` | `void` | Your items can be plain or reactive, and the menu reads them as they are. After changing them in place, call `refresh()`. The bar, the open menu and its submenus update. |
|
|
304
|
-
| `attachContextMenu(target, items)` | `() => void` | Attaches a menu to
|
|
305
|
+
| `attachContextMenu(target, items)` | `() => void` | Attaches a menu to a component. `items` can be a function of the opening event (`e.part`). Returns a function that removes the menu. |
|
|
305
306
|
|
|
306
307
|
### Events
|
|
307
308
|
|
|
308
309
|
| Event | When |
|
|
309
310
|
| --- | --- |
|
|
310
311
|
| `onItemClick(e)` | On both components, occurs when an item is selected, after its own `click`. |
|
|
311
|
-
| `ContextMenu.onOpening(e)` | Occurs before the menu opens. `e`: `{
|
|
312
|
+
| `ContextMenu.onOpening(e)` | Occurs before the menu opens. `e`: `{ part, items, cancel, byKeyboard, event, source }`. Set `e.items` for the component `part`, or set `e.cancel = true`. |
|
|
312
313
|
| `ContextMenu.onClosed(reason)` | `escape`, `outside`, `focus` or `code`. |
|
|
313
314
|
|
|
314
315
|
## Feedback
|
package/docs/multiview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MultiView
|
|
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
|
Displays one page at a time from a horizontal set. Users move between pages with a swipe or drag, and you can navigate with `next()`, `previous()` and `goTo()`, or with [Tabs](tabs.md), a [Stepper](stepper.md) or buttons bound to the same value. It works like the panels of a tab control without the tab strip.
|
|
6
6
|
|
package/docs/navigation.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Navigation
|
|
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
|
Navigation components move the reader around an application and lay out its screens: bars at the top and bottom, tabs, paths, steps and pages, panels that slide in, and the containers that arrange everything.
|
|
6
6
|
|
package/docs/numberbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# NumberBox
|
|
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 numeric input with arrow key support, PageUp and PageDown, spin buttons that repeat while held, min and max limits, exact decimal stepping, display formats such as currency and percent, and locale-aware input.
|
|
6
6
|
|
|
@@ -111,7 +111,7 @@ export default function SpinButtons() {
|
|
|
111
111
|
|
|
112
112
|
## Format and locale
|
|
113
113
|
|
|
114
|
-
Without focus, the value is displayed through `Intl.NumberFormat` using `format` and `locale` (the
|
|
114
|
+
Without focus, the value is displayed through `Intl.NumberFormat` using `format` and `locale` (the kit's language, `uiLocale.locale`, by default). With focus, it switches to a plain number for editing. Input is parsed in the same locale: `1.234,5` in Turkish and `1,234.5` in English. A `.` also works as the decimal point where it cannot be a group separator. A percent is edited as displayed, so 0.125 is entered as 12.5.
|
|
115
115
|
|
|
116
116
|
```tsx
|
|
117
117
|
import { reactive } from '@motifx/core';
|
|
@@ -266,7 +266,7 @@ export default function Localization() {
|
|
|
266
266
|
| `spinLayout` | `Bind<SpinLayout>` | `'stacked'` | `stacked` shows arrows on top of each other, and `inline` shows − and + side by side. |
|
|
267
267
|
| `wheel` | `Bind<boolean>` | `false` | The mouse wheel changes the value while the field has focus. |
|
|
268
268
|
| `format` | `Bind<Intl.NumberFormatOptions>` | `{}` | The display format without focus: `{ style: 'currency', currency: 'TRY' }`, `{ style: 'percent' }`, `{ minimumFractionDigits: 2 }`… |
|
|
269
|
-
| `locale` | `Bind<string>` |
|
|
269
|
+
| `locale` | `Bind<string>` | `uiLocale.locale` | The locale of the format and of the input. |
|
|
270
270
|
| `decimals` | `Bind<number \| null>` | `null` | The number of digits after the decimal point. Every value is rounded to this precision (half away from zero) regardless of its source, and displayed with exactly that many digits while the field is not being edited. |
|
|
271
271
|
| `clamp` | `Bind<boolean>` | `true` | Brings a value outside `min` and `max` into range when entered. `false` leaves it to the range validation. |
|
|
272
272
|
| `allowEmpty` | `Bind<boolean>` | `true` | An empty field is `null`. `false` replaces it with `min` (or 0) when the field loses focus. |
|
|
@@ -287,7 +287,7 @@ export default function Localization() {
|
|
|
287
287
|
| `every prop above` | read/write, reactive | Accepts a value or a function, the same as the prop. `locale` returns the locale in use. |
|
|
288
288
|
| `formattedValue` | read-only, reactive | The value as displayed without focus, or `''` when empty. |
|
|
289
289
|
| `isValid, validationMessage, validating` | read-only, reactive | The validation result. |
|
|
290
|
-
| `
|
|
290
|
+
| `inputPart` | read-only | The native `<input>`. |
|
|
291
291
|
|
|
292
292
|
### Methods
|
|
293
293
|
|
|
@@ -299,6 +299,7 @@ export default function Localization() {
|
|
|
299
299
|
| `resetValidation()` | `void` | Clears the results of previous validation. |
|
|
300
300
|
| `focus()` | `boolean` | Sets focus on the input. |
|
|
301
301
|
| `select()` | `void` | Selects all text. |
|
|
302
|
+
| `typeText(text)` | `void` | Puts `text` in the field as if the user typed it; characters a number is not written with are not taken. |
|
|
302
303
|
|
|
303
304
|
### Events
|
|
304
305
|
|
package/docs/otpinput.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OtpInput
|
|
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 one-time code in a row of boxes. Typing, pasting a whole code, the code a phone offers from a message and screen readers work as in any text box, because the boxes are drawn over one real input.
|
|
6
6
|
|
package/docs/pagination.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pagination
|
|
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
|
Navigates through pages of items, with page size options, the current position, navigation buttons and a button for each nearby page. It switches to a compact layout when it does not fit, and it looks and works like the DataGrid pager.
|
|
6
6
|
|
package/docs/popover.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Popover
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
Displays content next to a related element, such as a title, a close button, a form or a card. It opens on click or on hover, follows its target, and points to it with an arrow where the design language includes one.
|
|
6
6
|
|
|
@@ -12,17 +12,17 @@ import { Popover } from '@motifx-community/ui';
|
|
|
12
12
|
|
|
13
13
|
## Declarative and programmatic
|
|
14
14
|
|
|
15
|
-
JSX children are the content, and `target` specifies the
|
|
15
|
+
JSX children are the content, and `target` specifies the component it opens next to. Programmatically, `content` sets the content, and `open()`, `close()` and `toggle()` control it. `value` and `x-model` report whether it is open.
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
|
-
import { reactive } from '@motifx/core';
|
|
18
|
+
import { reactive, type Component } from '@motifx/core';
|
|
19
19
|
import { Button, Popover, Stack, TextBox } from '@motifx-community/ui';
|
|
20
20
|
|
|
21
|
-
/** A popover with a title, a close button and a small form, and one created programmatically for a
|
|
21
|
+
/** A popover with a title, a close button and a small form, and one created programmatically for a link. */
|
|
22
22
|
export default function Basic() {
|
|
23
23
|
const s = reactive({ open: false, name: 'Ada', saved: '' });
|
|
24
24
|
let button!: Button;
|
|
25
|
-
let link!:
|
|
25
|
+
let link!: Component<HTMLAnchorElement>;
|
|
26
26
|
const coded = new Popover({ title: 'Programmatically', content: new Button({ text: 'OK', variant: 'outline', onclick: () => coded.close() }) });
|
|
27
27
|
|
|
28
28
|
return (
|
|
@@ -38,7 +38,7 @@ export default function Basic() {
|
|
|
38
38
|
<a
|
|
39
39
|
href="#from-code"
|
|
40
40
|
class="po-link"
|
|
41
|
-
ref={(c:
|
|
41
|
+
ref={(c: Component<HTMLAnchorElement>) => (link = c)}
|
|
42
42
|
onclick={(e: Event) => {
|
|
43
43
|
e.preventDefault();
|
|
44
44
|
coded.target = link;
|
|
@@ -57,16 +57,17 @@ export default function Basic() {
|
|
|
57
57
|
`showOn: 'hover'` opens the popover after `delay` while the pointer rests on the target, and when the target has keyboard focus. The pointer can move onto the popover, which closes `hideDelay` after the pointer leaves both.
|
|
58
58
|
|
|
59
59
|
```tsx
|
|
60
|
+
import type { Component } from '@motifx/core';
|
|
60
61
|
import { Avatar, Popover, Stack } from '@motifx-community/ui';
|
|
61
62
|
|
|
62
63
|
/** A card that opens while the pointer rests on a name, or when the name has keyboard focus. */
|
|
63
64
|
export default function Hover() {
|
|
64
|
-
let name!:
|
|
65
|
+
let name!: Component<HTMLAnchorElement>;
|
|
65
66
|
return (
|
|
66
67
|
<Stack orientation="horizontal" wrap align="center">
|
|
67
68
|
<span>
|
|
68
69
|
Reviewed by{' '}
|
|
69
|
-
<a href="#ada" class="po-person" ref={(c:
|
|
70
|
+
<a href="#ada" class="po-person" ref={(c: Component<HTMLAnchorElement>) => (name = c)} onclick={(e: Event) => e.preventDefault()}>
|
|
70
71
|
Ada Lovelace
|
|
71
72
|
</a>
|
|
72
73
|
</span>
|
|
@@ -195,7 +196,7 @@ export default function Events() {
|
|
|
195
196
|
|
|
196
197
|
| Prop | Type | Default | Description |
|
|
197
198
|
| --- | --- | --- | --- |
|
|
198
|
-
| `target` | `Bind<
|
|
199
|
+
| `target` | `Bind<ComponentBase \| null>` | `null` | The component it opens next to. |
|
|
199
200
|
| `title` | `Bind<string>` | `''` | A title in the header. This is the same property as `text`. |
|
|
200
201
|
| `label` | `Bind<string>` | `''` | The accessible name when there is no title. |
|
|
201
202
|
| `content` | `Bind<ComponentBase \| null>` | `null` | Content set programmatically, shown after the JSX children. |
|
package/docs/progress.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ProgressBar and Spinner
|
|
2
2
|
|
|
3
|
-
> Feedback · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Feedback · @motifx-community/ui 0.1.0-beta.8
|
|
4
4
|
|
|
5
5
|
ProgressBar shows how far an operation has progressed, as a line or a circle, or indicates activity when the progress is unknown. Spinner shows that the system is busy. It is a rotating ring that can stand alone or cover a panel while it loads, and it can wait for a delay so that quick operations do not cause a flash.
|
|
6
6
|
|
|
@@ -252,7 +252,7 @@ export default function Delay() {
|
|
|
252
252
|
|
|
253
253
|
## Covering a panel while it loads
|
|
254
254
|
|
|
255
|
-
`Spinner.cover(target)` places a spinner over a component
|
|
255
|
+
`Spinner.cover(target)` places a spinner over a component and returns a function that removes it. The content underneath cannot be clicked or focused. If focus was inside, it moves to the spinner and returns afterward.
|
|
256
256
|
|
|
257
257
|
```tsx
|
|
258
258
|
import { reactive } from '@motifx/core';
|
|
@@ -303,7 +303,7 @@ export default function Cover() {
|
|
|
303
303
|
|
|
304
304
|
## Localization
|
|
305
305
|
|
|
306
|
-
A bar or spinner without a label is named `uiLocale.strings.loading`. The percentage uses `locale`, which defaults to the
|
|
306
|
+
A bar or spinner without a label is named `uiLocale.strings.loading`. The percentage uses `locale`, which defaults to the kit's language, `uiLocale.locale`.
|
|
307
307
|
|
|
308
308
|
```tsx
|
|
309
309
|
import { reactive } from '@motifx/core';
|
|
@@ -372,7 +372,7 @@ export default function Localization() {
|
|
|
372
372
|
| `labelPosition` | `Bind<'top' \| 'bottom' \| 'side'>` | `'top'` (`'bottom'` for a circle) | `top` places the label and value above the bar, `bottom` places them below it, and `side` places the label before it and the value after it. |
|
|
373
373
|
| `showValue` | `Bind<boolean>` | `false` | Shows the percentage, rounded down to a whole number, or `valueText`. |
|
|
374
374
|
| `valueText` | `(value, fraction) => string` | — | The text shown and announced for a value (`3 of 12 files`). Because it is a function, it is stored as is and not bound. |
|
|
375
|
-
| `locale` | `Bind<string>` |
|
|
375
|
+
| `locale` | `Bind<string>` | `uiLocale.locale` | The locale of the percentage. |
|
|
376
376
|
| `tone` | `Bind<ProgressTone>` | `'accent'` | `accent`, `neutral`, `success`, `caution`, `danger`. |
|
|
377
377
|
| `size` | `Bind<ControlSize>` | `'md'` | The thickness, and the size of a circle: `sm`, `md` or `lg`. |
|
|
378
378
|
| `stretch` | `Bind<boolean>` | `false` | Stretches to the full width of its container. |
|
|
@@ -398,7 +398,7 @@ export default function Localization() {
|
|
|
398
398
|
| `ProgressBar: fraction` | read-only, reactive | The completed share from 0 to 1, or `null` while the progress is unknown. |
|
|
399
399
|
| `Spinner: every prop` | read/write, reactive | Accepts a value or a function, the same as the prop. |
|
|
400
400
|
| `Spinner: waiting` | read-only | Indicates that it is still within its delay. |
|
|
401
|
-
| `Spinner.cover(target, props?)` | `() => void` | Covers a component
|
|
401
|
+
| `Spinner.cover(target, props?)` | `() => void` | Covers a component with a spinner. Call the returned function to remove it. See Covering a panel. |
|
|
402
402
|
|
|
403
403
|
## Feedback
|
|
404
404
|
|
package/docs/qrcode.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# QRCode
|
|
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 QR code, drawn as vectors so that it stays sharp at any size. It has no dependencies, chooses the smallest version that holds the text, and can carry a logo.
|
|
6
6
|
|