@motifx-community/ui 0.1.0-beta.7 → 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 +310 -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 +1 -1
- 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 +3 -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/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 +35219 -22569
- 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/KeyedItems.d.ts +1 -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 +67 -17
- 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 +2 -2
- 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 +1903 -289
- 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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an item of a menu bar merged into another does there: joins the item with its key (`auto`, for an item with a
|
|
3
|
+
* menu; otherwise it is added), is added beside it (`add`), takes its place (`replace`), hides it (`remove`), or stays
|
|
4
|
+
* out (`none`).
|
|
5
|
+
*/
|
|
6
|
+
export type MenuItemMerge = 'auto' | 'add' | 'replace' | 'remove' | 'none';
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import type { Bind } from '@motifx/core';
|
|
2
2
|
import type { IconSource } from '../../core/icon-source';
|
|
3
3
|
import type { MenuItemClickEventArgs } from './menu-item-click-event-args';
|
|
4
|
+
import type { MenuItemMerge } from './menu-item-merge';
|
|
5
|
+
import type { MenuItemMergeAt } from './menu-item-merge-at';
|
|
4
6
|
/**
|
|
5
7
|
* One command of a menu. Every field except `click` and `data` is a value or a function. A function
|
|
6
8
|
* is tracked, so the item changes in the open menu when what it reads changes.
|
|
7
9
|
*/
|
|
8
10
|
export interface MenuItem {
|
|
11
|
+
/** Finds the item in paths such as `file/recent` (a `MenuBar`'s changes by path). The default is its position. */
|
|
12
|
+
key?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* The command of the app the item runs (see `commands`): what the item is not given, its text, icon, hint, keys,
|
|
15
|
+
* state and action, comes from the command.
|
|
16
|
+
*/
|
|
17
|
+
command?: string;
|
|
9
18
|
/** The label. `&` marks the key that selects it while the menu is open (`&Copy`), and `&&` is a literal `&`. */
|
|
10
|
-
text
|
|
11
|
-
/** An image address
|
|
19
|
+
text?: Bind<string>;
|
|
20
|
+
/** An image address or a component. A function is called each time the item is drawn. */
|
|
12
21
|
icon?: Bind<IconSource | null | undefined>;
|
|
13
22
|
/** The text shown as a tooltip. */
|
|
14
23
|
hint?: Bind<string>;
|
|
@@ -32,6 +41,12 @@ export interface MenuItem {
|
|
|
32
41
|
beginGroup?: Bind<boolean>;
|
|
33
42
|
/** Runs when the item is selected, after the menu closes. */
|
|
34
43
|
click?: (e: MenuItemClickEventArgs) => void;
|
|
44
|
+
/** In a `MenuBar` the user can change: `false` keeps the item where it is and shown. The default is `true`. */
|
|
45
|
+
customizable?: Bind<boolean>;
|
|
46
|
+
/** In a `MenuBar` merged into another: what the item does there. The default is `'auto'`. */
|
|
47
|
+
merge?: Bind<MenuItemMerge>;
|
|
48
|
+
/** In a `MenuBar` merged into another: where the item stands there. The default is the end. */
|
|
49
|
+
mergeAt?: Bind<MenuItemMergeAt>;
|
|
35
50
|
/** Custom data for the item. */
|
|
36
51
|
data?: unknown;
|
|
37
52
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { FocusContainer } from '../../core/container';
|
|
3
|
-
import type { Control } from '../../core/control';
|
|
4
3
|
import type { FormHost } from '../../components/form/form-host';
|
|
5
4
|
import type { OverlayClosedEventArgs } from './overlay-closed-event-args';
|
|
6
5
|
import type { OverlayCloseReason } from './overlay-close-reason';
|
|
@@ -60,10 +59,10 @@ export declare class OverlayPanel<TProps extends OverlayPanelProps = OverlayPane
|
|
|
60
59
|
set disposeOnClose(value: Bind<boolean>);
|
|
61
60
|
/** Indicates whether it is open. Reactive. */
|
|
62
61
|
get isOpen(): boolean;
|
|
63
|
-
/** The surface that slides in
|
|
64
|
-
get
|
|
65
|
-
/** The content area, for code that places
|
|
66
|
-
get
|
|
62
|
+
/** The surface that slides in (`role="dialog"`) as a component: a control of an area of a derived panel is added to it. */
|
|
63
|
+
get panelPart(): ComponentBase;
|
|
64
|
+
/** The content area as a component, for code that places components itself: they are added to its controls. */
|
|
65
|
+
get contentPart(): ComponentBase;
|
|
67
66
|
get onOpening(): MotifEvent<OverlayOpeningEventArgs>;
|
|
68
67
|
get onOpened(): MotifEvent<OverlayEventArgs>;
|
|
69
68
|
get onClosing(): MotifEvent<OverlayClosingEventArgs>;
|
|
@@ -78,15 +77,21 @@ export declare class OverlayPanel<TProps extends OverlayPanelProps = OverlayPane
|
|
|
78
77
|
toggle(): boolean;
|
|
79
78
|
/** Adds it to `host` (a component or the application) if needed and opens it. It is disposed when it closes. */
|
|
80
79
|
show(host: FormHost, disposeRef?: ComponentBase): boolean;
|
|
80
|
+
/** Goes when `life` goes, though it is not its child. */
|
|
81
|
+
private liveWith;
|
|
81
82
|
/** A panel is a root: the controls around it do not disable it, and it handles Tab itself while modal. */
|
|
82
|
-
get
|
|
83
|
+
get isWindow(): boolean;
|
|
83
84
|
restoreFocus(): boolean;
|
|
84
85
|
onMounted(): void;
|
|
85
86
|
protected get cyclesTab(): boolean;
|
|
86
|
-
/** The panel's header (title and close button), for a subclass that adds to it. */
|
|
87
|
-
protected get
|
|
88
|
-
/**
|
|
89
|
-
protected
|
|
87
|
+
/** The panel's header (title and close button) as a component, for a subclass that adds to it. */
|
|
88
|
+
protected get headerPart(): ComponentBase;
|
|
89
|
+
/** What it opens over now, as a component: its container, else the root of the app in its window. */
|
|
90
|
+
protected overPart(): ComponentBase | null;
|
|
91
|
+
/** Indicates whether it opens over the page now, not over a container. */
|
|
92
|
+
protected get overPage(): boolean;
|
|
93
|
+
/** The container, also before it opens: the one given; `null` for the page. */
|
|
94
|
+
protected get containerPart(): ComponentBase | null;
|
|
90
95
|
/** Before it slides in: the subclass places and sizes its panel. */
|
|
91
96
|
protected placePanel(): void;
|
|
92
97
|
/** After it has slid out. */
|
|
@@ -107,14 +112,18 @@ export declare class OverlayPanel<TProps extends OverlayPanelProps = OverlayPane
|
|
|
107
112
|
private closeFromBack;
|
|
108
113
|
/** Puts it where it opens: in its container (positioned), or in the page's top layer. */
|
|
109
114
|
private host;
|
|
115
|
+
/** Into the page's top layer when it opens there. The browser's own call, made at once: what follows measures and focuses it there. */
|
|
116
|
+
private showInTopLayer;
|
|
117
|
+
/** Out of the page's top layer when it is there. */
|
|
118
|
+
private hideFromTopLayer;
|
|
110
119
|
private renderMode;
|
|
111
120
|
private renderTitle;
|
|
112
121
|
private renderHeader;
|
|
113
122
|
private renderClose;
|
|
114
123
|
/** Children core put at the root (JSX children, `controls.add`) go into the content area. */
|
|
115
124
|
private placeStrays;
|
|
116
|
-
/** Adds a control of its own to one of its areas, where it
|
|
117
|
-
protected placeIn(control: ComponentBase, area:
|
|
125
|
+
/** Adds a control of its own to one of its areas (a component), where core places it. */
|
|
126
|
+
protected placeIn(control: ComponentBase, area: ComponentBase): void;
|
|
118
127
|
private unplace;
|
|
119
128
|
private placeContent;
|
|
120
129
|
private placeFooter;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
1
2
|
/**
|
|
2
|
-
* Makes
|
|
3
|
-
*
|
|
3
|
+
* Makes the components around `part` inert, up to and inside `scope`: those beside `part` and beside each component
|
|
4
|
+
* above it, below `scope`. With no scope it is the page, where the app's own content and what stands above the page
|
|
5
|
+
* are around it too. Elements that are not components stay as they are. Held, not written: each gets its own value
|
|
6
|
+
* back with the undo returned.
|
|
4
7
|
*/
|
|
5
|
-
export declare function inertAround(
|
|
8
|
+
export declare function inertAround(part: ComponentBase, scope: ComponentBase | null): () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
|
-
/** What an overlay opens over:
|
|
3
|
-
export type OverlayContainer =
|
|
2
|
+
/** What an overlay opens over: a component, or `null` for the whole page. */
|
|
3
|
+
export type OverlayContainer = ComponentBase | null;
|
|
@@ -18,8 +18,8 @@ export interface OverlayPanelProps extends ControlProps {
|
|
|
18
18
|
/** Shows a dimmed layer behind it. By default, this applies when modal. */
|
|
19
19
|
scrim?: Bind<boolean>;
|
|
20
20
|
/**
|
|
21
|
-
* Opens over this
|
|
22
|
-
* over the page. The default is `null`.
|
|
21
|
+
* Opens over this component, whose element must be positioned (a static one is made relative while open). `null`
|
|
22
|
+
* opens over the page. The default is `null`.
|
|
23
23
|
*/
|
|
24
24
|
container?: Bind<OverlayContainer>;
|
|
25
25
|
/** Its content, in addition to JSX children. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type Event as MotifEvent } from '@motifx/core';
|
|
1
|
+
import { Component, ComponentBase, type Event as MotifEvent } from '@motifx/core';
|
|
2
2
|
import type { PopupCloseReason } from './popup-close-reason';
|
|
3
3
|
import type { PopupOpenOptions } from './popup-open-options';
|
|
4
4
|
import type { PopupPlacement } from './popup-placement';
|
|
@@ -18,20 +18,35 @@ export declare class Popup extends Component<HTMLDivElement> {
|
|
|
18
18
|
private anchor;
|
|
19
19
|
/** The document it follows its anchor in while it is open. */
|
|
20
20
|
private watched;
|
|
21
|
+
/** Stops listening to the page while it is open. */
|
|
22
|
+
private stopPage;
|
|
21
23
|
private toggle;
|
|
22
24
|
private returnFocus;
|
|
25
|
+
/** Where it belongs while it shows in another document's layer: it goes back there when it closes. */
|
|
26
|
+
private home;
|
|
27
|
+
/** It is in the browser's top layer (`showPopover`). */
|
|
28
|
+
private inTopLayer;
|
|
23
29
|
private frame;
|
|
24
30
|
private readonly closedEmitter;
|
|
25
31
|
readonly onClosed: MotifEvent<PopupCloseReason>;
|
|
32
|
+
/** Whether an event came from inside a popup that is open now, whoever opened it. */
|
|
33
|
+
static isEventFromAnyOpen(e: Event): boolean;
|
|
26
34
|
onConfigured(): void;
|
|
27
35
|
get isOpen(): boolean;
|
|
28
36
|
/** Opens next to `anchor`, or moves there when it is open. */
|
|
29
|
-
open(anchor:
|
|
37
|
+
open(anchor: ComponentBase, options?: PopupOpenOptions): void;
|
|
30
38
|
close(reason?: PopupCloseReason): void;
|
|
31
39
|
/** Aligns the popup with its anchor again, such as after its content changes size. */
|
|
32
40
|
place(): void;
|
|
33
41
|
private stopFollowing;
|
|
42
|
+
/**
|
|
43
|
+
* Into the browser's top layer, or shown where popovers are missing. The browser's own call, made at once: it is
|
|
44
|
+
* placed and measured right after.
|
|
45
|
+
*/
|
|
46
|
+
private showSurface;
|
|
34
47
|
private hideSurface;
|
|
48
|
+
/** Back to its owner from another document's layer. */
|
|
49
|
+
private goHome;
|
|
35
50
|
private stopListening;
|
|
36
51
|
private readonly schedule;
|
|
37
52
|
private readonly onScroll;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { PlaceOptions } from './place-options';
|
|
3
|
+
import type { PopupAnchor } from './popup-anchor';
|
|
4
|
+
/**
|
|
5
|
+
* Places a fixed `popup` next to `anchor`: on the side asked for, or the other side when that has more room; inside the
|
|
6
|
+
* viewport of its window, scrolling inside when taller. The gap is its CSS margin on the side it opens on (`data-side`).
|
|
7
|
+
* Its last place is taken away in one round, it is measured in the next with every popup of the frame and placed after
|
|
8
|
+
* those reads; nothing is drawn in between. Returns what takes it back.
|
|
9
|
+
*/
|
|
10
|
+
export declare function placeNear(popup: ComponentBase, anchor: PopupAnchor, options: PlaceOptions): () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Placed } from './placed';
|
|
2
|
+
import type { PopupPlacement } from './popup-placement';
|
|
3
|
+
/** How `placeNear` places a popup. */
|
|
4
|
+
export interface PlaceOptions {
|
|
5
|
+
placement: PopupPlacement;
|
|
6
|
+
/** At least as wide as the anchor, above or below it. */
|
|
7
|
+
matchWidth?: boolean;
|
|
8
|
+
/** Called in the write with where it went: an arrow is drawn from it with no read. */
|
|
9
|
+
placed?: (where: Placed) => void;
|
|
10
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { PopupPlacement } from './popup-placement';
|
|
2
3
|
/**
|
|
3
4
|
* Places a fixed `popup` next to `anchor`: on the side the placement requests, or on the other side
|
|
4
5
|
* when that has more room. It stays inside the viewport and scrolls inside when it is taller. The gap
|
|
5
6
|
* is the popup's CSS margin on the side it opens on (`data-side`).
|
|
6
7
|
*/
|
|
7
|
-
export declare function placePopup(popup:
|
|
8
|
+
export declare function placePopup(popup: ComponentBase, anchor: ComponentBase, placement: PopupPlacement, matchWidth: boolean): void;
|
|
9
|
+
/** Places the fixed popup `part` next to `anchorPart` (what `placePopup` does). */
|
|
10
|
+
export declare function placeBeside(part: ComponentBase, anchorPart: ComponentBase, placement: PopupPlacement, matchWidth: boolean): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Rect } from '../../core/measure';
|
|
2
|
+
/** Where `placeNear` put a popup: the side it opened on, the anchor's box (a point is a box of no size) and its own. */
|
|
3
|
+
export interface Placed {
|
|
4
|
+
readonly side: 'top' | 'bottom' | 'start' | 'end';
|
|
5
|
+
readonly anchor: Rect;
|
|
6
|
+
readonly rect: Rect;
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Point } from '../../core/measure';
|
|
3
|
+
/** What a popup stands next to: a component, a point of the viewport, or a function giving one (read with the frame's reads, so a point can follow a part). */
|
|
4
|
+
export type PopupAnchor = ComponentBase | Point | (() => Point | null);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { FocusMark } from '../../core/focus-mark';
|
|
1
3
|
/** The options of `Popup.open`, besides the anchor. */
|
|
2
4
|
export interface PopupOpenOptions {
|
|
3
|
-
/**
|
|
4
|
-
toggle?:
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/** What opens and closes the popup (a press on it is not "outside"). The default is the anchor. */
|
|
6
|
+
toggle?: ComponentBase;
|
|
7
|
+
/**
|
|
8
|
+
* Where focus goes when the popup closes with focus inside: a component (a control takes it on its focus part), or a
|
|
9
|
+
* place remembered with `rememberFocus`. The default is the toggle.
|
|
10
|
+
*/
|
|
11
|
+
returnFocus?: ComponentBase | FocusMark;
|
|
7
12
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from "@motifx/core";
|
|
1
2
|
/** What a slide track asks of the component it moves: the panes, the one in view, and where a swipe lands. */
|
|
2
3
|
export interface SlideTrackHost {
|
|
3
4
|
/** How many panes stand in the track. */
|
|
@@ -8,8 +9,8 @@ export interface SlideTrackHost {
|
|
|
8
9
|
perView(): number;
|
|
9
10
|
/** After the last pane comes the first. */
|
|
10
11
|
loop(): boolean;
|
|
11
|
-
/** The
|
|
12
|
-
|
|
12
|
+
/** The component of the pane at `index`. */
|
|
13
|
+
panePart(index: number): ComponentBase | null;
|
|
13
14
|
/** A finger or a pointer may drag the track now. */
|
|
14
15
|
canDrag(): boolean;
|
|
15
16
|
/** A swipe asks for a pane: the host selects it, or not, and the track is laid out again either way. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from "@motifx/core";
|
|
1
2
|
import { SwipeTracker } from "../overlay/swipe-tracker";
|
|
2
3
|
import type { SlideTrackHost } from "./slide-track-host";
|
|
3
4
|
interface Drag {
|
|
@@ -17,15 +18,20 @@ interface Drag {
|
|
|
17
18
|
* children, each `1 / perView` of its width with `--_gap` between them.
|
|
18
19
|
*/
|
|
19
20
|
export declare class SlideTrack {
|
|
20
|
-
viewport: HTMLElement
|
|
21
|
-
track: HTMLElement
|
|
21
|
+
viewport: ComponentBase<HTMLElement>;
|
|
22
|
+
track: ComponentBase<HTMLElement>;
|
|
22
23
|
host: SlideTrackHost;
|
|
23
24
|
drag: Drag | null;
|
|
24
|
-
wrapped:
|
|
25
|
+
wrapped: ComponentBase | null;
|
|
26
|
+
/** Takes back the wait for the jump's styles; set while the motion is still off after a move around the ends. */
|
|
27
|
+
restoring: (() => void) | null;
|
|
28
|
+
/** A slide asked for while the motion is still off, made once it is back. */
|
|
29
|
+
queued: (() => void) | null;
|
|
25
30
|
settleTimer: number;
|
|
26
31
|
swallowClick: boolean;
|
|
27
32
|
stop: () => void;
|
|
28
|
-
|
|
33
|
+
/** `viewport` and `track`: the components of the owner's viewport and of the track in it. */
|
|
34
|
+
constructor(viewport: ComponentBase, track: ComponentBase, host: SlideTrackHost);
|
|
29
35
|
/** Puts the pane in view where it stands now, without a drag. */
|
|
30
36
|
layout(): void;
|
|
31
37
|
/** Slides from one pane to another; around the ends the far pane is brought next to the one leaving. */
|
|
@@ -3,8 +3,12 @@ import type { ValidationResult } from './validation-result';
|
|
|
3
3
|
import type { ValidationTarget } from './validation-target';
|
|
4
4
|
/** Put on the root element of every control that can be checked. */
|
|
5
5
|
export declare const VALIDATES = "data-mx-validates";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The fields inside `root`, in the order of the component tree. What is not in the page is left out: a part hidden
|
|
8
|
+
* (`motif.hide()`, `x-display`) or not built yet, and everything inside it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fieldsWithin(root: ComponentBase): ValidationTarget[];
|
|
7
11
|
/** Validates every field inside `root` (a panel, a dialog, a page) without a group. */
|
|
8
|
-
export declare function validateFields(root: ComponentBase
|
|
12
|
+
export declare function validateFields(root: ComponentBase, options?: {
|
|
9
13
|
focus?: boolean;
|
|
10
14
|
}): Promise<ValidationResult>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
/** Anything a `ValidationGroup` can validate. */
|
|
2
3
|
export interface ValidationTarget {
|
|
3
4
|
validate(): Promise<boolean>;
|
|
4
5
|
resetValidation(): void;
|
|
5
6
|
readonly isValid: boolean;
|
|
6
7
|
focus(): boolean;
|
|
7
|
-
|
|
8
|
+
/** The component that stands for the target: its place in the tree orders the failed ones, its `aria-label` names one with no `label`. A field is its own. */
|
|
9
|
+
readonly part: ComponentBase;
|
|
8
10
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
/**
|
|
2
3
|
* Follows the pointer pressed in `e` on `on` until it is let go: `move` gets how far it went from
|
|
3
4
|
* the press, `end` runs once at the end.
|
|
4
5
|
*/
|
|
5
|
-
export declare function followPointer(on:
|
|
6
|
+
export declare function followPointer(on: ComponentBase, e: PointerEvent, move: (dx: number, dy: number) => void, end: () => void): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import type { WindowEdge } from './window-edge';
|
|
3
|
+
/** A window's resize frame with its handles, each kept by the side or corner it resizes. */
|
|
4
|
+
export interface ResizeFrameParts {
|
|
5
|
+
frame: Component<HTMLDivElement>;
|
|
6
|
+
handles: ReadonlyMap<WindowEdge, Component<HTMLDivElement>>;
|
|
7
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ResizeFrameParts } from './resize-frame-parts';
|
|
2
|
+
/** The frame of a window's resize handles, not placed yet: one handle part per side and corner, each with its `data-edge` for the styles and kept by its edge for the caller. */
|
|
3
|
+
export declare function resizeFrame(frameClass: string, handleClass: string): ResizeFrameParts;
|