@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
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { Bind, IBaseProp } from "@motifx/core";
|
|
1
|
+
import type { Bind, Component, IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
-
import { ResizeWatch } from "../../core/resize-watch";
|
|
4
3
|
import type { Place } from "../../parts/chart/chart-paths";
|
|
5
|
-
import { type ChartFormat } from "../../parts/chart/chart-text";
|
|
4
|
+
import { DrawnTexts, type ChartFormat } from "../../parts/chart/chart-text";
|
|
6
5
|
import { TextPool } from "../../parts/chart/svg-parts";
|
|
7
|
-
import { TokenLengths } from "../../parts/chart/token-lengths";
|
|
8
6
|
import { ValueMotion } from "../../parts/chart/value-motion";
|
|
9
7
|
import type { GaugeMark } from "./gauge-mark";
|
|
10
8
|
import type { GaugeMarker } from "./gauge-marker";
|
|
@@ -15,6 +13,7 @@ import type { GaugeRange } from "./gauge-range";
|
|
|
15
13
|
import type { GaugeScale } from "./gauge-scale";
|
|
16
14
|
import { GaugeShape } from "./gauge-shape";
|
|
17
15
|
import type { GaugeType } from "./gauge-type";
|
|
16
|
+
declare const FONT: readonly ['font', 'font-size', 'font-family', 'line-height'];
|
|
18
17
|
interface Look {
|
|
19
18
|
size: number;
|
|
20
19
|
length: number;
|
|
@@ -33,7 +32,7 @@ interface Drawn {
|
|
|
33
32
|
bandOut: number;
|
|
34
33
|
markFrom: number;
|
|
35
34
|
lineHeight: number;
|
|
36
|
-
|
|
35
|
+
widthOf: (text: string) => number;
|
|
37
36
|
box: {
|
|
38
37
|
x: number;
|
|
39
38
|
y: number;
|
|
@@ -41,6 +40,19 @@ interface Drawn {
|
|
|
41
40
|
height: number;
|
|
42
41
|
};
|
|
43
42
|
}
|
|
43
|
+
/** What a draw reads of the page before it writes. */
|
|
44
|
+
interface Measured {
|
|
45
|
+
look: Look;
|
|
46
|
+
font: Record<(typeof FONT)[number], string>;
|
|
47
|
+
width: number;
|
|
48
|
+
valueHeight: number;
|
|
49
|
+
}
|
|
50
|
+
/** The parts of a mark of the scale: its shape, and the text of a callout. */
|
|
51
|
+
interface MarkParts {
|
|
52
|
+
group: Component<SVGGElement>;
|
|
53
|
+
path: Component<SVGPathElement>;
|
|
54
|
+
label: Component<SVGTextElement>;
|
|
55
|
+
}
|
|
44
56
|
/**
|
|
45
57
|
* A value against its scale: an arc, a circle or a straight bar, across or upright. The scale shows its ends or ticks
|
|
46
58
|
* with their values; ranges give stretches of it a meaning, and the fill takes the tone of the range its value is in. The
|
|
@@ -53,35 +65,35 @@ interface Drawn {
|
|
|
53
65
|
* ranges={[{ from: 0, to: 70, tone: 'good' }, { from: 70, to: 90, tone: 'warning' }, { from: 90, to: 100, tone: 'danger' }]} />
|
|
54
66
|
*/
|
|
55
67
|
export declare class Gauge extends Control<HTMLDivElement, GaugeProps> {
|
|
56
|
-
svg: SVGSVGElement
|
|
57
|
-
track: SVGPathElement
|
|
58
|
-
bands: SVGGElement
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
svg: Component<SVGSVGElement>;
|
|
69
|
+
track: Component<SVGPathElement>;
|
|
70
|
+
bands: Component<SVGGElement>;
|
|
71
|
+
bandPaths: Component<SVGPathElement>[];
|
|
72
|
+
fillPath: Component<SVGPathElement>;
|
|
73
|
+
minorPath: Component<SVGPathElement>;
|
|
74
|
+
tickPath: Component<SVGPathElement>;
|
|
75
|
+
tickLabels: Component<SVGGElement>;
|
|
76
|
+
/** The texts of the scale, measured in its font and numbers. */
|
|
77
|
+
texts: DrawnTexts;
|
|
64
78
|
labelPool: TextPool;
|
|
65
|
-
markGroup: SVGGElement
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
labelText: HTMLDivElement
|
|
75
|
-
tip: HTMLSpanElement
|
|
79
|
+
markGroup: Component<SVGGElement>;
|
|
80
|
+
markParts: MarkParts[];
|
|
81
|
+
markerPath: Component<SVGPathElement>;
|
|
82
|
+
calloutGroup: Component<SVGGElement>;
|
|
83
|
+
calloutPath: Component<SVGPathElement>;
|
|
84
|
+
calloutText: Component<SVGTextElement>;
|
|
85
|
+
needlePath: Component<SVGPathElement>;
|
|
86
|
+
needleTip: Component<SVGPathElement>;
|
|
87
|
+
valueText: Component<HTMLDivElement>;
|
|
88
|
+
labelText: Component<HTMLDivElement>;
|
|
89
|
+
tip: Component<HTMLSpanElement>;
|
|
76
90
|
shape: GaugeShape;
|
|
77
91
|
motion: ValueMotion;
|
|
78
|
-
tokens: TokenLengths;
|
|
79
92
|
drawn: Drawn | null;
|
|
80
93
|
placed: boolean;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
stopFonts: (() => void) | null;
|
|
94
|
+
stopRoom: (() => void) | null;
|
|
95
|
+
readDraw: () => Measured;
|
|
96
|
+
drawMeasured: (measured: Measured) => void;
|
|
85
97
|
constructor(props?: IBaseProp<GaugeProps>);
|
|
86
98
|
onMounted(): void;
|
|
87
99
|
get value(): number | null;
|
|
@@ -136,6 +148,10 @@ export declare class Gauge extends Control<HTMLDivElement, GaugeProps> {
|
|
|
136
148
|
/** The color of a range: its own, its tone's, or the next chart color for a range with neither. */
|
|
137
149
|
toneOf(range: GaugeRange | null): string;
|
|
138
150
|
number(value: number): string;
|
|
151
|
+
/**
|
|
152
|
+
* Writes what the drawing is measured with now, and draws with the next reads of the window. A straight gauge first
|
|
153
|
+
* measures the room its value keeps.
|
|
154
|
+
*/
|
|
139
155
|
again(): void;
|
|
140
156
|
moveTo(): void;
|
|
141
157
|
lengths(): Look;
|
|
@@ -144,14 +160,11 @@ export declare class Gauge extends Control<HTMLDivElement, GaugeProps> {
|
|
|
144
160
|
majors: number[];
|
|
145
161
|
minors: number[];
|
|
146
162
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
};
|
|
153
|
-
/** The width of the widest value the gauge can show: the ends of the scale, or a value past them. */
|
|
154
|
-
valueRoom(min: number, max: number, value: number | null): number;
|
|
163
|
+
/** The type, the name, the value and the label: what the drawing is laid out and measured with. */
|
|
164
|
+
drawText(): void;
|
|
165
|
+
draw(measured: Measured): void;
|
|
166
|
+
/** The values the gauge keeps room for: the ends of the scale, or a value past them. */
|
|
167
|
+
roomValues(): string[];
|
|
155
168
|
markerKind(): GaugeMarker | null;
|
|
156
169
|
shapeOf(m: GaugeMark): GaugeMarker;
|
|
157
170
|
drawTicks(majors: number[], minors: number[], share: (v: number) => number, from: number, length: number, side: 1 | -1, on: boolean): void;
|
|
@@ -161,6 +174,7 @@ export declare class Gauge extends Control<HTMLDivElement, GaugeProps> {
|
|
|
161
174
|
anchor: 'start' | 'middle' | 'end';
|
|
162
175
|
}[]): void;
|
|
163
176
|
drawMarks(marks: readonly GaugeMark[], share: (v: number) => number): void;
|
|
177
|
+
makeMark(): MarkParts;
|
|
164
178
|
/** The path of a marker or a mark, and its text for a callout. */
|
|
165
179
|
shapePath(kind: GaugeMarker, at: number, drawn: Drawn, value: string): {
|
|
166
180
|
d: string;
|
|
@@ -2,9 +2,9 @@ import type { Bind, ComponentBase } from '@motifx/core';
|
|
|
2
2
|
/** What a container does with its children's settings. */
|
|
3
3
|
interface ChildSettingsHandler {
|
|
4
4
|
/** A child arrived or one of its settings changed. */
|
|
5
|
-
changed(child: ComponentBase
|
|
5
|
+
changed(child: ComponentBase): void;
|
|
6
6
|
/** A child left (moved elsewhere or disposed): undo what `changed` wrote on it. */
|
|
7
|
-
left(child: ComponentBase
|
|
7
|
+
left(child: ComponentBase): void;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* The settings a layout container reads from its children (`dock`, `row`, `grow`…). A child
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type Component, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { GroupBoxProps } from './group-box-props';
|
|
4
4
|
import type { GroupBoxToggledEventArgs } from './group-box-toggled-event-args';
|
|
@@ -36,8 +36,8 @@ export declare class GroupBox extends Control<HTMLFieldSetElement, GroupBoxProps
|
|
|
36
36
|
set variant(value: Bind<GroupBoxVariant>);
|
|
37
37
|
/** Occurs when the content is shown or hidden, by the user or by code (`e.byUser`). */
|
|
38
38
|
get onToggled(): MotifEvent<GroupBoxToggledEventArgs>;
|
|
39
|
-
/** The `<legend>`
|
|
40
|
-
get
|
|
39
|
+
/** The `<legend>` part that holds the title. */
|
|
40
|
+
get legendPart(): Component<HTMLLegendElement>;
|
|
41
41
|
get canFocus(): boolean;
|
|
42
42
|
/** Sets focus on the first control inside, expanding the content first if it is collapsed. */
|
|
43
43
|
focus(): boolean;
|
|
@@ -45,8 +45,10 @@ export declare class GroupBox extends Control<HTMLFieldSetElement, GroupBoxProps
|
|
|
45
45
|
private get isCollapsed();
|
|
46
46
|
private get parts();
|
|
47
47
|
private createParts;
|
|
48
|
-
/**
|
|
49
|
-
private
|
|
48
|
+
/** Moves focus to the first Tab stop among `items` and inside them, in order, leaving out the legend and any window. */
|
|
49
|
+
private focusFirstStop;
|
|
50
|
+
/** Moves focus to `item` when it takes focus itself, else to the first Tab stop inside it. */
|
|
51
|
+
private focusStop;
|
|
50
52
|
private change;
|
|
51
53
|
private renderTitle;
|
|
52
54
|
private renderToggle;
|
|
@@ -22,6 +22,7 @@ export declare class Panel extends Control<HTMLDivElement, PanelProps> {
|
|
|
22
22
|
set padding(value: Bind<LayoutSpace | undefined>);
|
|
23
23
|
get variant(): PanelVariant;
|
|
24
24
|
set variant(value: Bind<PanelVariant>);
|
|
25
|
+
get focusPart(): Control | null;
|
|
25
26
|
protected applyProperty(name: string, value: unknown): void;
|
|
26
27
|
private renderName;
|
|
27
28
|
private renderScroll;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { Component, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { FocusContainer } from '../../core/container';
|
|
3
3
|
import type { LayoutOrientation } from './layout-orientation';
|
|
4
4
|
import { Panel } from './Panel';
|
|
@@ -30,8 +30,8 @@ export declare class SplitContainer extends FocusContainer<HTMLDivElement, Split
|
|
|
30
30
|
get first(): Panel;
|
|
31
31
|
/** The second pane (end or bottom), as a `Panel`. */
|
|
32
32
|
get second(): Panel;
|
|
33
|
-
/** The splitter
|
|
34
|
-
get
|
|
33
|
+
/** The splitter part (`role="separator"`). */
|
|
34
|
+
get splitterPart(): Component<HTMLDivElement>;
|
|
35
35
|
get orientation(): LayoutOrientation;
|
|
36
36
|
set orientation(value: Bind<LayoutOrientation>);
|
|
37
37
|
get position(): SplitPosition;
|
|
@@ -61,7 +61,7 @@ export declare class SplitContainer extends FocusContainer<HTMLDivElement, Split
|
|
|
61
61
|
collapse(pane?: 'first' | 'second'): void;
|
|
62
62
|
/** Shows both panes again, with the splitter at its previous position. */
|
|
63
63
|
restore(): void;
|
|
64
|
-
|
|
64
|
+
get focusPart(): ComponentBase;
|
|
65
65
|
protected applyProperty(name: string, value: unknown): void;
|
|
66
66
|
private get parts();
|
|
67
67
|
private createParts;
|
|
@@ -69,12 +69,12 @@ export declare class SplitContainer extends FocusContainer<HTMLDivElement, Split
|
|
|
69
69
|
private route;
|
|
70
70
|
private renderLayout;
|
|
71
71
|
private tracks;
|
|
72
|
-
/** `aria-valuenow`: the first pane's share of the room, 0 to 100. */
|
|
72
|
+
/** `aria-valuenow`: the first pane's share of the room, 0 to 100; with both panes shown, from their sizes at the next frame. */
|
|
73
73
|
private renderValue;
|
|
74
|
+
private readonly drawValue;
|
|
74
75
|
private renderSplitter;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/** Puts the splitter so the first pane is `size` pixels, within the minimum sizes. */
|
|
76
|
+
private readonly readSizes;
|
|
77
|
+
/** Puts the splitter so the first pane is `size` pixels of `room`, within the minimum sizes. */
|
|
78
78
|
private moveTo;
|
|
79
79
|
private userChange;
|
|
80
80
|
private toggleCollapsed;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { LayoutSpace } from './layout-space';
|
|
2
3
|
/**
|
|
3
4
|
* Writes a padding the way CSS reads one to four values (block-start, inline-end, block-end,
|
|
4
5
|
* inline-start), on the logical sides, so it follows the reading direction.
|
|
5
6
|
*/
|
|
6
|
-
export declare function setPadding(
|
|
7
|
+
export declare function setPadding(part: ComponentBase, value: LayoutSpace | null | undefined): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { LayoutSpace } from './layout-space';
|
|
2
3
|
/** Writes a space to a custom property of the element the CSS reads (`--_gap`), or removes it. */
|
|
3
|
-
export declare function setSpace(
|
|
4
|
+
export declare function setSpace(part: ComponentBase, variable: string, value: LayoutSpace | null | undefined): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import type { data } from '@motifx-community/data';
|
|
3
3
|
import { DataItems } from '../../parts/data/DataItems';
|
|
4
4
|
import { Field } from '../../parts/field/Field';
|
|
@@ -71,7 +71,7 @@ export declare class ListBox<T = unknown, V = unknown> extends Field<V | V[] | n
|
|
|
71
71
|
refresh(): void;
|
|
72
72
|
/** Scrolls an item into view and highlights it. */
|
|
73
73
|
scrollToItem(item: T): void;
|
|
74
|
-
protected createControl():
|
|
74
|
+
protected createControl(): ComponentBase;
|
|
75
75
|
protected emptyValue(): V | V[] | null;
|
|
76
76
|
protected sameValue(a: V | V[] | null, b: V | V[] | null): boolean;
|
|
77
77
|
protected renderValue(value: V | V[] | null): void;
|
|
@@ -79,6 +79,8 @@ export declare class ListBox<T = unknown, V = unknown> extends Field<V | V[] | n
|
|
|
79
79
|
protected itemValue(item: T): unknown;
|
|
80
80
|
private get listParts();
|
|
81
81
|
private setUpList;
|
|
82
|
+
/** Gives the list a drawing for the template now, made anew only when the template changes. */
|
|
83
|
+
private drawWithTemplate;
|
|
82
84
|
private isMultiple;
|
|
83
85
|
private valuesOf;
|
|
84
86
|
private canChoose;
|
|
@@ -87,12 +89,13 @@ export declare class ListBox<T = unknown, V = unknown> extends Field<V | V[] | n
|
|
|
87
89
|
private renderSource;
|
|
88
90
|
private renderHeight;
|
|
89
91
|
private renderSearch;
|
|
90
|
-
/** Above the list, in the box; the build places controls at the end. */
|
|
91
|
-
private placeSearch;
|
|
92
92
|
private searchFor;
|
|
93
93
|
/** `all`: the rows' look may have changed too, not only which rows there are. */
|
|
94
94
|
private drawList;
|
|
95
|
+
/** Marks the "Select all" rows drawn, letting go of those the list took away. */
|
|
95
96
|
private markSelectAll;
|
|
97
|
+
/** Keeps a "Select all" row the list drew, to mark it again when the selection changes. */
|
|
98
|
+
private keepSelectAllRow;
|
|
96
99
|
/** The "Select all" row is chosen when every item is, and shows a dash when some are. */
|
|
97
100
|
private markSelectAllRow;
|
|
98
101
|
private pointAt;
|
|
@@ -101,7 +104,6 @@ export declare class ListBox<T = unknown, V = unknown> extends Field<V | V[] | n
|
|
|
101
104
|
private keyDown;
|
|
102
105
|
/** The highlight moved with a key: the item follows it in a single list; Shift chooses in a multiple one. */
|
|
103
106
|
private moved;
|
|
104
|
-
private pageRows;
|
|
105
107
|
private chosen;
|
|
106
108
|
/** `add` chooses the item (the only one in a single list), `toggle` flips it, `only` makes it the only one. */
|
|
107
109
|
private chooseAt;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Draws an item instead of its text. It can return a cleanup function.
|
|
4
|
+
*
|
|
5
|
+
* @param host The place the item goes in: add your components to its `controls`, or give it a text.
|
|
6
|
+
*/
|
|
7
|
+
export type ItemTemplate<T> = (item: T, host: ComponentBase<HTMLElement>) => (() => void) | void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Component, Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
1
|
+
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
+
import type { FocusMark } from "../../core/focus-mark";
|
|
3
4
|
import { Button } from "../button/Button";
|
|
4
5
|
import { Spinner } from "../progress/Spinner";
|
|
5
6
|
import type { LoadPanelProps } from "./load-panel-props";
|
|
@@ -23,9 +24,10 @@ export declare class LoadPanel extends Control<HTMLDivElement, LoadPanelProps> {
|
|
|
23
24
|
cancelButton: Button;
|
|
24
25
|
shownNow: boolean;
|
|
25
26
|
timer: ReturnType<typeof setTimeout> | null;
|
|
26
|
-
|
|
27
|
+
targetPart: ComponentBase | null;
|
|
28
|
+
host: ComponentBase | null;
|
|
27
29
|
undo: (() => void) | null;
|
|
28
|
-
returnTo:
|
|
30
|
+
returnTo: FocusMark | null;
|
|
29
31
|
telling: boolean;
|
|
30
32
|
shownEmitter: Emitter<void>;
|
|
31
33
|
hiddenEmitter: Emitter<void>;
|
|
@@ -65,6 +67,8 @@ export declare class LoadPanel extends Control<HTMLDivElement, LoadPanelProps> {
|
|
|
65
67
|
/** The action of the Cancel button: raises `onCancel`, and then hides the panel. */
|
|
66
68
|
cancel(): void;
|
|
67
69
|
mount(): void;
|
|
70
|
+
/** Keeps the target, the component it covers (`null` for the page). */
|
|
71
|
+
takeTarget(target: LoadPanelTarget): void;
|
|
68
72
|
tell(value: boolean): void;
|
|
69
73
|
drawTexts(): void;
|
|
70
74
|
}
|
|
@@ -3,7 +3,7 @@ import type { ControlProps } from '../../core/control';
|
|
|
3
3
|
import type { LoadPanelTarget } from './load-panel-target';
|
|
4
4
|
/** Props of `LoadPanel`. Each prop is also a settable property, and a function is tracked. */
|
|
5
5
|
export interface LoadPanelProps extends ControlProps {
|
|
6
|
-
/** The area to cover, a component
|
|
6
|
+
/** The area to cover, a component. The default, `null`, covers the whole page. */
|
|
7
7
|
target?: Bind<LoadPanelTarget | undefined>;
|
|
8
8
|
/**
|
|
9
9
|
* The message below the indicator. This is the same property as `text`. The default is the kit's "Loading…"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
|
-
/** The area a load panel covers: a component,
|
|
3
|
-
export type LoadPanelTarget = ComponentBase |
|
|
2
|
+
/** The area a load panel covers: a component, or the whole page (`null`). */
|
|
3
|
+
export type LoadPanelTarget = ComponentBase | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Bind, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import type { OptionList } from '../../parts/list/OptionList';
|
|
3
3
|
import type { Popup } from '../../parts/popup/Popup';
|
|
4
4
|
import { DropDown } from '../dropdown/DropDown';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
4
4
|
import type { MenuItemClickEventArgs } from '../../parts/menu/menu-item-click-event-args';
|
|
5
|
+
import type { MenuBarMergeWhen } from './menu-bar-merge-when';
|
|
6
|
+
import type { MenuBarMergedEventArgs } from './menu-bar-merged-event-args';
|
|
7
|
+
import type { MenuBarCustomization } from './menu-bar-customization';
|
|
8
|
+
import type { MenuBarCustomizedEventArgs } from './menu-bar-customized-event-args';
|
|
9
|
+
import type { MenuBarCustomMenuOpeningEventArgs } from './menu-bar-custom-menu-opening-event-args';
|
|
10
|
+
import type { MenuBarItemsChangedEventArgs } from './menu-bar-items-changed-event-args';
|
|
5
11
|
import type { MenuBarProps } from './menu-bar-props';
|
|
6
12
|
/**
|
|
7
13
|
* A bar of menus (`role="menubar"`), as at the top of an application: File, Edit, View. Left and Right
|
|
@@ -16,6 +22,8 @@ import type { MenuBarProps } from './menu-bar-props';
|
|
|
16
22
|
* bar.onItemClick((e) => console.log(e.item.text));
|
|
17
23
|
*/
|
|
18
24
|
export declare class MenuBar extends Control<HTMLDivElement, MenuBarProps> {
|
|
25
|
+
/** The items made for the app's commands in the customizer, kept by key. */
|
|
26
|
+
private registryItems;
|
|
19
27
|
constructor(props?: IBaseProp<MenuBarProps>);
|
|
20
28
|
get label(): string;
|
|
21
29
|
set label(value: Bind<string>);
|
|
@@ -25,6 +33,35 @@ export declare class MenuBar extends Control<HTMLDivElement, MenuBarProps> {
|
|
|
25
33
|
set focusOnF10(value: Bind<boolean>);
|
|
26
34
|
get openOnHover(): boolean;
|
|
27
35
|
set openOnHover(value: Bind<boolean>);
|
|
36
|
+
get customizable(): boolean;
|
|
37
|
+
set customizable(value: Bind<boolean>);
|
|
38
|
+
/** What the user changed so far: a copy, to save. Give it back to restore the bar as the user left it. */
|
|
39
|
+
get customization(): MenuBarCustomization;
|
|
40
|
+
set customization(value: Bind<MenuBarCustomization | null>);
|
|
41
|
+
get commands(): readonly MenuItem[];
|
|
42
|
+
set commands(value: Bind<readonly MenuItem[]>);
|
|
43
|
+
get customizerKeyboard(): boolean;
|
|
44
|
+
set customizerKeyboard(value: Bind<boolean>);
|
|
45
|
+
get customizer(): boolean;
|
|
46
|
+
set customizer(value: Bind<boolean>);
|
|
47
|
+
get mergeHost(): boolean;
|
|
48
|
+
set mergeHost(value: Bind<boolean>);
|
|
49
|
+
get mergeName(): string;
|
|
50
|
+
set mergeName(value: Bind<string>);
|
|
51
|
+
get mergeInto(): string | MenuBar | null;
|
|
52
|
+
set mergeInto(value: Bind<string | MenuBar | null>);
|
|
53
|
+
get mergeWhen(): MenuBarMergeWhen;
|
|
54
|
+
set mergeWhen(value: Bind<MenuBarMergeWhen>);
|
|
55
|
+
get mergeScope(): ComponentBase | null;
|
|
56
|
+
set mergeScope(value: Bind<ComponentBase | null>);
|
|
57
|
+
get hideWhenMerged(): boolean;
|
|
58
|
+
set hideWhenMerged(value: Bind<boolean>);
|
|
59
|
+
/** As a main bar: the bars merged into it, in the order they came. */
|
|
60
|
+
get mergedBars(): readonly MenuBar[];
|
|
61
|
+
/** As a bar that merges: the main bar it is merged into, or `null`. */
|
|
62
|
+
get mergedInto(): MenuBar | null;
|
|
63
|
+
/** The top items as drawn now, the merged bars' included. */
|
|
64
|
+
get mergedItems(): readonly MenuItem[];
|
|
28
65
|
/** The top-level item whose menu is open, or `null` if there is none. Reactive. */
|
|
29
66
|
get openItem(): MenuItem | null;
|
|
30
67
|
/**
|
|
@@ -32,34 +69,107 @@ export declare class MenuBar extends Control<HTMLDivElement, MenuBarProps> {
|
|
|
32
69
|
* `click`.
|
|
33
70
|
*/
|
|
34
71
|
get onItemClick(): MotifEvent<MenuItemClickEventArgs>;
|
|
72
|
+
/** On the main bar: occurs when a bar merged into it. */
|
|
73
|
+
get onMerged(): MotifEvent<MenuBarMergedEventArgs>;
|
|
74
|
+
/** On the main bar: occurs when a bar left it. */
|
|
75
|
+
get onUnmerged(): MotifEvent<MenuBarMergedEventArgs>;
|
|
76
|
+
/** Occurs when the user changed the bar, with everything changed so far. */
|
|
77
|
+
get onCustomized(): MotifEvent<MenuBarCustomizedEventArgs>;
|
|
78
|
+
/** Occurs before the menu of the right button opens: add commands of your own or leave some out. */
|
|
79
|
+
get onCustomMenuOpening(): MotifEvent<MenuBarCustomMenuOpeningEventArgs>;
|
|
80
|
+
/** Occurs after a change by path, with the new list of items to keep. */
|
|
81
|
+
get onItemsChanged(): MotifEvent<MenuBarItemsChangedEventArgs>;
|
|
35
82
|
/**
|
|
36
|
-
* Opens the menu of a top-level item
|
|
37
|
-
* none or cannot be used.
|
|
83
|
+
* Opens the menu of a top-level item: the item itself, its index among the items shown, or its key. Focus goes to its
|
|
84
|
+
* first item. Returns `false` if it has none or cannot be used.
|
|
38
85
|
*/
|
|
39
|
-
open(item: MenuItem | number): boolean;
|
|
86
|
+
open(item: MenuItem | number | string): boolean;
|
|
40
87
|
close(): void;
|
|
41
88
|
/**
|
|
42
89
|
* Re-reads the items after they have been changed in place, and updates the bar, the open menu and its submenus.
|
|
43
90
|
* Your items can be plain or reactive, and the bar reads them as they are.
|
|
44
91
|
*/
|
|
45
92
|
refresh(): void;
|
|
93
|
+
/** The item at `path`, as it is now; `null` when there is none. */
|
|
94
|
+
findItem(path: string): MenuItem | null;
|
|
95
|
+
/** Adds an item to the menu at `parentPath` (the bar when empty) at `index`, the end by default. */
|
|
96
|
+
addItem(parentPath: string, item: MenuItem, index?: number): boolean;
|
|
97
|
+
/** Removes the item at `path`, with its menu. */
|
|
98
|
+
removeItem(path: string): boolean;
|
|
99
|
+
/** Moves the item at `path` to `index` in its menu, or in the menu at `toParent` (the bar when empty). */
|
|
100
|
+
moveItem(path: string, index: number, toParent?: string): boolean;
|
|
101
|
+
/** Changes fields of the item at `path`; the others stay as they are. */
|
|
102
|
+
updateItem(path: string, changes: Partial<MenuItem>): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Opens the customizer: every item of the bar in a tree, to show and hide, move, rename, and add commands of
|
|
105
|
+
* `commands` and menus of the user's own. Returns `false` when it is already open.
|
|
106
|
+
*/
|
|
107
|
+
openCustomizer(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Merges the bar into its main bar (`mergeInto`): its items are shown there by their `merge` and `mergeAt`, and the
|
|
110
|
+
* bar is hidden (`hideWhenMerged`). With the main bar not there yet, it merges when the main bar comes. `mergeWhen`
|
|
111
|
+
* calls it by itself, except `'manual'`.
|
|
112
|
+
*/
|
|
113
|
+
merge(): boolean;
|
|
114
|
+
/** Takes the bar's items back from its main bar, and shows the bar again. */
|
|
115
|
+
unmerge(): boolean;
|
|
116
|
+
/** Leaves the main bar that is going away or stops being one; the bar merges again when a main bar comes. */
|
|
117
|
+
release(): void;
|
|
118
|
+
/** `show`: the bar is shown in its place again; not while its place is hidden and a main bar may take it back. */
|
|
119
|
+
private leave;
|
|
120
|
+
onBuilt(): void;
|
|
121
|
+
onMounted(): void;
|
|
122
|
+
private hostToMerge;
|
|
123
|
+
private registerHost;
|
|
124
|
+
/** Follows what `mergeWhen` merges on: the bar's place shown, or focus in it. */
|
|
125
|
+
private watchMerge;
|
|
126
|
+
/** The place `mergeWhen` follows: `mergeScope`, else the component the bar is in (past a fragment, which has no element). */
|
|
127
|
+
private mergePlace;
|
|
128
|
+
/** Holds the changes by path until `endUpdate()`, which applies them at once. */
|
|
129
|
+
beginUpdate(): void;
|
|
130
|
+
endUpdate(): void;
|
|
46
131
|
/** The top item Tab reaches. */
|
|
47
|
-
|
|
132
|
+
get focusPart(): ComponentBase;
|
|
48
133
|
protected applyProperty(name: string, value: unknown): void;
|
|
49
134
|
private get parts();
|
|
50
135
|
private createParts;
|
|
136
|
+
private applyItems;
|
|
51
137
|
/** Draws the items again whenever a function in one of them reads something that changes, or on `reState()`. */
|
|
52
138
|
private followItems;
|
|
139
|
+
private lookOf;
|
|
140
|
+
/** The top items with the merged bars' items: the main bar's first, then each bar's by its rules. */
|
|
141
|
+
private mergedTop;
|
|
53
142
|
private draw;
|
|
143
|
+
/** Lets go of the parts kept for `bar`'s items: the bar is going away, or its items changed while it was away. */
|
|
144
|
+
private dropStash;
|
|
145
|
+
/** The part of the top item of `key`: the one kept, else a new one. */
|
|
146
|
+
private slotOf;
|
|
147
|
+
/** The item's icon, drawn again only when its source changes. */
|
|
148
|
+
private drawIcon;
|
|
54
149
|
/** The item Tab reaches: the last one focused, else the first. */
|
|
55
150
|
private stop;
|
|
56
151
|
private renderRoving;
|
|
57
152
|
private renderF10;
|
|
58
153
|
private openMenu;
|
|
59
154
|
private createPopup;
|
|
155
|
+
/** The items of the menu of `node`: as given while the user changed nothing, so that its functions stay followed. */
|
|
156
|
+
/** The commands the user can add: `commands` when given, else those of the app (`commands` registry) with a text. */
|
|
157
|
+
private catalog;
|
|
158
|
+
private menuOf;
|
|
159
|
+
private takeCustomization;
|
|
160
|
+
private remember;
|
|
161
|
+
private customMenuOpening;
|
|
162
|
+
private customCommands;
|
|
163
|
+
/** Applies a change made from the menu, and puts focus back on its item, else on the first item of the open menu. */
|
|
164
|
+
private changeByUser;
|
|
165
|
+
/** The customizer's view of the bar: its tree, and each change applied as the user's. */
|
|
166
|
+
private customizerSource;
|
|
60
167
|
private chosen;
|
|
168
|
+
/** The top item an event started on. */
|
|
61
169
|
private entryOf;
|
|
62
170
|
private listen;
|
|
171
|
+
/** An item's access key: its menu opens at once, focus on its first item; an item without a menu is clicked. */
|
|
172
|
+
private pressAccessKey;
|
|
63
173
|
private onClick;
|
|
64
174
|
private onKeyDown;
|
|
65
175
|
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export { MenuBar } from './MenuBar';
|
|
2
2
|
export type { MenuBarProps } from './menu-bar-props';
|
|
3
|
+
export type { MenuBarItemsChangedEventArgs } from './menu-bar-items-changed-event-args';
|
|
4
|
+
export type { MenuBarCustomization } from './menu-bar-customization';
|
|
5
|
+
export type { MenuBarCustomizedEventArgs } from './menu-bar-customized-event-args';
|
|
6
|
+
export type { MenuBarCustomMenuOpeningEventArgs } from './menu-bar-custom-menu-opening-event-args';
|
|
7
|
+
export type { MenuBarAddedItem } from './menu-bar-added-item';
|
|
8
|
+
export type { MenuBarMergeWhen } from './menu-bar-merge-when';
|
|
9
|
+
export type { MenuBarMergedEventArgs } from './menu-bar-merged-event-args';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** An item the user added in the customizer: a command of the bar's `commands`, or a menu of the user's own. */
|
|
2
|
+
export interface MenuBarAddedItem {
|
|
3
|
+
/** Given by the bar: `user:1`, `user:2`… */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Where it stands: the id of a menu, `''` for the bar. */
|
|
6
|
+
parent: string;
|
|
7
|
+
/** The key of the command in `commands`. */
|
|
8
|
+
command?: string;
|
|
9
|
+
/** The name of a menu of the user's own. */
|
|
10
|
+
text?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { MenuBar } from './MenuBar';
|
|
3
|
+
export interface MenuBarCustomMenuOpeningEventArgs {
|
|
4
|
+
/** The item pressed with the right button or the menu key, as the app gave it; `null` on the bar outside the items. */
|
|
5
|
+
item: MenuItem | null;
|
|
6
|
+
/** Its path, such as `file/recent`; `null` with `item`. */
|
|
7
|
+
path: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* The commands of the menu about to open: the bar's own when `customizable` is on, else none. Change the list to add
|
|
10
|
+
* your own or to leave some out. The menu does not open when it is empty.
|
|
11
|
+
*/
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
/** Set to `true` to keep the menu closed. */
|
|
14
|
+
cancel: boolean;
|
|
15
|
+
/** Whether a key opened it. */
|
|
16
|
+
byKeyboard: boolean;
|
|
17
|
+
event: Event;
|
|
18
|
+
source: MenuBar;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MenuBarAddedItem } from './menu-bar-added-item';
|
|
2
|
+
/**
|
|
3
|
+
* What the user changed in the bar, to save and give back later. An item of the app is named by its place in the
|
|
4
|
+
* items given, the keys along the way joined with `/` (`file/recent`; a missing key is the position), and keeps that
|
|
5
|
+
* name wherever the user moves it; an item the user added is named by its `id`. The bar is `''`.
|
|
6
|
+
*/
|
|
7
|
+
export interface MenuBarCustomization {
|
|
8
|
+
/** The items the user hid. */
|
|
9
|
+
hidden?: readonly string[];
|
|
10
|
+
/** The order the user gave, by key: the bar's items under `''`, a menu's items under the name of the menu. */
|
|
11
|
+
order?: Readonly<Record<string, readonly string[]>>;
|
|
12
|
+
/** The items the user moved to another menu: the name of the item, and the name of the menu. */
|
|
13
|
+
moves?: Readonly<Record<string, string>>;
|
|
14
|
+
/** The names the user gave to items. */
|
|
15
|
+
texts?: Readonly<Record<string, string>>;
|
|
16
|
+
/** The commands and menus the user added. */
|
|
17
|
+
added?: readonly MenuBarAddedItem[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MenuBar } from './MenuBar';
|
|
2
|
+
import type { MenuBarCustomization } from './menu-bar-customization';
|
|
3
|
+
export interface MenuBarCustomizedEventArgs {
|
|
4
|
+
/** Everything the user changed so far, to save. */
|
|
5
|
+
customization: MenuBarCustomization;
|
|
6
|
+
source: MenuBar;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { MenuBar } from './MenuBar';
|
|
3
|
+
export interface MenuBarItemsChangedEventArgs {
|
|
4
|
+
/** The new list of items, to keep: the items along the changed path are new objects, the others the ones given. */
|
|
5
|
+
items: readonly MenuItem[];
|
|
6
|
+
source: MenuBar;
|
|
7
|
+
}
|