@motifx-community/ui 0.1.0-beta.6 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +324 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +4 -4
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +5 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/listbox/list-rows.d.ts +2 -0
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35277 -22566
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/DataItems.d.ts +2 -0
- package/dist/parts/data/KeyedItems.d.ts +2 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +73 -17
- package/dist/parts/list/item-source.d.ts +4 -0
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +3 -3
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1904 -290
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
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
3
|
import type { WindowBox } from "../../parts/window/window-box";
|
|
4
4
|
import type { ResizeEventArgs } from "./resize-event-args";
|
|
5
|
+
import type { ResizeStart } from "./resize-start";
|
|
5
6
|
import type { ResizableProps, ResizeEdge, ResizeHandles, ResizeSize } from "./resizable-props";
|
|
6
7
|
interface Limits {
|
|
7
8
|
minW: number;
|
|
@@ -24,9 +25,14 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
24
25
|
starting: Emitter<ResizeEventArgs>;
|
|
25
26
|
resizing: Emitter<ResizeEventArgs>;
|
|
26
27
|
resized: Emitter<ResizeEventArgs>;
|
|
27
|
-
frame: HTMLDivElement
|
|
28
|
+
frame: Component<HTMLDivElement>;
|
|
29
|
+
/** The grip in the end corner, which is the Tab stop for keyboard resizing. */
|
|
28
30
|
grip: Component<HTMLDivElement>;
|
|
29
31
|
live: Component<HTMLSpanElement>;
|
|
32
|
+
/** The handle of each edge and corner. */
|
|
33
|
+
private readonly handleParts;
|
|
34
|
+
/** The edge and the event of the resize that ended, told with the size once it is laid out. */
|
|
35
|
+
private ended;
|
|
30
36
|
constructor(props?: IBaseProp<ResizableProps>);
|
|
31
37
|
get handles(): ResizeHandles;
|
|
32
38
|
set handles(value: Bind<ResizeHandles>);
|
|
@@ -38,8 +44,8 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
38
44
|
set maxWidth(value: Bind<number | null>);
|
|
39
45
|
get maxHeight(): number | null;
|
|
40
46
|
set maxHeight(value: Bind<number | null>);
|
|
41
|
-
get area(): 'parent' |
|
|
42
|
-
set area(value: Bind<'parent' |
|
|
47
|
+
get area(): 'parent' | ComponentBase | null;
|
|
48
|
+
set area(value: Bind<'parent' | ComponentBase | null>);
|
|
43
49
|
get keepAspectRatio(): boolean;
|
|
44
50
|
set keepAspectRatio(value: Bind<boolean>);
|
|
45
51
|
get step(): number;
|
|
@@ -61,24 +67,20 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
61
67
|
get onResized(): MotifEvent<ResizeEventArgs>;
|
|
62
68
|
/** The current size in pixels. */
|
|
63
69
|
get currentSize(): ResizeSize;
|
|
64
|
-
/** The grip in the end corner, which is the Tab stop for keyboard resizing. */
|
|
65
|
-
get gripElement(): HTMLDivElement;
|
|
66
70
|
length(value: number | string | null | undefined): string;
|
|
67
71
|
allowed(): Set<ResizeEdge>;
|
|
68
72
|
drawHandles(): void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
w: number;
|
|
72
|
-
h: number;
|
|
73
|
-
};
|
|
73
|
+
areaOf(): ComponentBase | null;
|
|
74
|
+
readStart(): ResizeStart;
|
|
74
75
|
limits(): Limits;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
applyBox(box: WindowBox): void;
|
|
76
|
+
physical(edge: ResizeEdge, rtl: boolean): ResizeEdge;
|
|
77
|
+
next(edge: ResizeEdge, from: ResizeStart, dx: number, dy: number): WindowBox;
|
|
78
|
+
applyBox(box: WindowBox, positioned: boolean): void;
|
|
79
79
|
args(edge: ResizeEdge, box: WindowBox, event?: Event): ResizeEventArgs;
|
|
80
|
-
pointerDown(e: PointerEvent,
|
|
80
|
+
pointerDown(e: PointerEvent, edge: ResizeEdge, handle: Component<HTMLDivElement> | null): void;
|
|
81
81
|
keyDown(e: KeyboardEvent): void;
|
|
82
|
-
finish(edge: ResizeEdge,
|
|
82
|
+
finish(edge: ResizeEdge, event?: Event): void;
|
|
83
|
+
private readonly readSize;
|
|
84
|
+
private readonly tellSize;
|
|
83
85
|
}
|
|
84
86
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Bind } from '@motifx/core';
|
|
1
|
+
import type { Bind, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { ControlProps } from '../../core/control';
|
|
3
3
|
import type { WindowEdge } from '../../parts/window/window-edge';
|
|
4
4
|
import type { ResizeEventArgs } from './resize-event-args';
|
|
@@ -21,8 +21,8 @@ export interface ResizableProps extends ControlProps {
|
|
|
21
21
|
/** The maximum width and height, in pixels. `null` means no limit. The default is `null`. */
|
|
22
22
|
maxWidth?: Bind<number | null>;
|
|
23
23
|
maxHeight?: Bind<number | null>;
|
|
24
|
-
/** The area the box stays inside: its parent, or
|
|
25
|
-
area?: Bind<'parent' |
|
|
24
|
+
/** The area the box stays inside: its parent, or a component that contains it. The default is `null`, no limit. */
|
|
25
|
+
area?: Bind<'parent' | ComponentBase | null>;
|
|
26
26
|
/** Preserves the ratio of width to height. The default is `false`. */
|
|
27
27
|
keepAspectRatio?: Bind<boolean>;
|
|
28
28
|
/** The number of pixels an arrow key changes an edge. The default is `10`. */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WindowBox } from '../../parts/window/window-box';
|
|
2
|
+
/** What a resize starts from, read once at the press or the key: the box, the room its area leaves, and how it is laid out. */
|
|
3
|
+
export interface ResizeStart {
|
|
4
|
+
box: WindowBox;
|
|
5
|
+
room: {
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
};
|
|
9
|
+
positioned: boolean;
|
|
10
|
+
rtl: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, type Signal } from "@motifx/core";
|
|
2
|
+
import { Popup } from "../../parts/popup/Popup";
|
|
3
|
+
import { Button } from "../button/Button";
|
|
4
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
5
|
+
import type { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
6
|
+
/**
|
|
7
|
+
* A `gallery` command: the first of its choices in a row, and a button that opens all of them in a grid. The chosen one
|
|
8
|
+
* is marked. Small, it is the button alone, with the command's text.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RibbonGallery extends Component<HTMLDivElement> {
|
|
11
|
+
readonly picked: (item: RibbonGalleryItem, e: Event) => void;
|
|
12
|
+
row: Component<HTMLDivElement>;
|
|
13
|
+
opener: Button;
|
|
14
|
+
popup: Popup;
|
|
15
|
+
grid: Component<HTMLDivElement>;
|
|
16
|
+
/** The chosen item's tile in the grid: focus goes there when the grid opens. */
|
|
17
|
+
chosenTile: Component<HTMLButtonElement> | null;
|
|
18
|
+
small: boolean;
|
|
19
|
+
readonly commandBox: Signal<RibbonCommand>;
|
|
20
|
+
get command(): RibbonCommand;
|
|
21
|
+
set command(command: RibbonCommand);
|
|
22
|
+
constructor(command: RibbonCommand, picked: (item: RibbonGalleryItem, e: Event) => void);
|
|
23
|
+
items(): RibbonGalleryItem[];
|
|
24
|
+
columns(): number;
|
|
25
|
+
/** The item's key (its place when it has none) is the command's value. */
|
|
26
|
+
isChosen(item: RibbonGalleryItem): boolean;
|
|
27
|
+
label(): string;
|
|
28
|
+
/** Small: the button alone, with the command's text. */
|
|
29
|
+
setSmall(on: boolean): void;
|
|
30
|
+
makeTile(item: RibbonGalleryItem, inGrid: boolean): Component<HTMLButtonElement>;
|
|
31
|
+
toggle(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Component, type ComponentBase } from "@motifx/core";
|
|
2
|
+
import { type Rect } from "../../core/measure";
|
|
3
|
+
/** Something a key hint presses: the part its letters stand on, the letters wanted, and what pressing it does. */
|
|
4
|
+
export interface KeyHint {
|
|
5
|
+
part: ComponentBase;
|
|
6
|
+
keys: string;
|
|
7
|
+
text: string;
|
|
8
|
+
press: () => void;
|
|
9
|
+
opens?: () => InnerHints;
|
|
10
|
+
}
|
|
11
|
+
/** The hints of what a hint opened, drawn in its own surface. */
|
|
12
|
+
export interface InnerHints {
|
|
13
|
+
hints: KeyHint[];
|
|
14
|
+
host: Component<HTMLElement>;
|
|
15
|
+
close: () => void;
|
|
16
|
+
}
|
|
17
|
+
interface Drawn {
|
|
18
|
+
hint: KeyHint;
|
|
19
|
+
keys: string;
|
|
20
|
+
badge: Component<HTMLSpanElement>;
|
|
21
|
+
}
|
|
22
|
+
/** The hints waiting to be drawn, and the surface their letters go in. */
|
|
23
|
+
interface Wanted {
|
|
24
|
+
hints: KeyHint[];
|
|
25
|
+
parts: ComponentBase[];
|
|
26
|
+
host: Component<HTMLElement>;
|
|
27
|
+
}
|
|
28
|
+
interface Spots {
|
|
29
|
+
wanted: Wanted;
|
|
30
|
+
root: Rect;
|
|
31
|
+
boxes: Rect[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The letters shown on the tabs and then on the commands of a menu while key hints are on: typing one presses what it
|
|
35
|
+
* stands on. Letters given are kept; the others come from the text, one letter where it is the only one starting so,
|
|
36
|
+
* a letter and a digit where several do. Escape goes back a level; any other key, a click or leaving the page ends it.
|
|
37
|
+
*/
|
|
38
|
+
export declare class RibbonKeyHints {
|
|
39
|
+
readonly owner: Component<HTMLElement>;
|
|
40
|
+
readonly tabs: () => KeyHint[];
|
|
41
|
+
readonly commands: () => KeyHint[];
|
|
42
|
+
readonly ended: () => void;
|
|
43
|
+
layer: Component<HTMLDivElement>;
|
|
44
|
+
drawn: Drawn[];
|
|
45
|
+
typed: string;
|
|
46
|
+
level: 'tabs' | 'commands' | 'inner' | null;
|
|
47
|
+
inner: InnerHints | null;
|
|
48
|
+
wanted: Wanted | null;
|
|
49
|
+
constructor(owner: Component<HTMLElement>, tabs: () => KeyHint[], commands: () => KeyHint[], ended: () => void);
|
|
50
|
+
get active(): boolean;
|
|
51
|
+
start(level: 'tabs' | 'commands'): void;
|
|
52
|
+
stop(): void;
|
|
53
|
+
key(e: KeyboardEvent): boolean;
|
|
54
|
+
draw(hints: KeyHint[], host?: Component<HTMLElement>): void;
|
|
55
|
+
readonly readSpots: () => Spots | null;
|
|
56
|
+
readonly drawBadges: (spots: Spots | null) => void;
|
|
57
|
+
closeInner(): void;
|
|
58
|
+
filter(typed: string): void;
|
|
59
|
+
clear(): void;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp, type Signal } from "@motifx/core";
|
|
2
|
+
import { Control } from "../../core/control";
|
|
3
|
+
import type { MenuItem } from "../../parts/menu/menu-item";
|
|
4
|
+
import { Popup } from "../../parts/popup/Popup";
|
|
5
|
+
import { Button } from "../button/Button";
|
|
6
|
+
import { ContextMenu } from "../contextmenu/ContextMenu";
|
|
7
|
+
import type { ContextMenuOpeningEventArgs } from "../contextmenu/context-menu-opening-event-args";
|
|
8
|
+
import { RibbonKeyHints, type InnerHints, type KeyHint } from "./RibbonKeyHints";
|
|
9
|
+
import { ItemTree } from "../../parts/item-tree/ItemTree";
|
|
10
|
+
import type { RibbonAppButtonEventArgs } from "./ribbon-app-button-event-args";
|
|
11
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
12
|
+
import type { RibbonCommandClickEventArgs } from "./ribbon-command-click-event-args";
|
|
13
|
+
import type { RibbonCommandSize } from "./ribbon-command-size";
|
|
14
|
+
import type { RibbonCommandType } from "./ribbon-command-type";
|
|
15
|
+
import type { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
16
|
+
import type { RibbonGroup } from "./ribbon-group";
|
|
17
|
+
import type { RibbonGroupMoreEventArgs } from "./ribbon-group-more-event-args";
|
|
18
|
+
import type { RibbonMenuCustomization } from "./ribbon-menu-customization";
|
|
19
|
+
import type { RibbonMenuCustomizedEventArgs } from "./ribbon-menu-customized-event-args";
|
|
20
|
+
import type { RibbonMenuCustomMenuOpeningEventArgs } from "./ribbon-menu-custom-menu-opening-event-args";
|
|
21
|
+
import type { RibbonMenuDisplay } from "./ribbon-menu-display";
|
|
22
|
+
import type { RibbonMenuDisplayChangedEventArgs } from "./ribbon-menu-display-changed-event-args";
|
|
23
|
+
import type { RibbonMenuItemsChangedEventArgs } from "./ribbon-menu-items-changed-event-args";
|
|
24
|
+
import type { RibbonMenuLayout } from "./ribbon-menu-layout";
|
|
25
|
+
import type { RibbonMenuLayoutChangedEventArgs } from "./ribbon-menu-layout-changed-event-args";
|
|
26
|
+
import type { RibbonMenuProps } from "./ribbon-menu-props";
|
|
27
|
+
import type { RibbonQuickBarPosition } from "./ribbon-quick-bar-position";
|
|
28
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
29
|
+
import type { RibbonTabSelectingEventArgs } from "./ribbon-tab-selecting-event-args";
|
|
30
|
+
import type { RibbonTabSelectionChangedEventArgs } from "./ribbon-tab-selection-changed-event-args";
|
|
31
|
+
type Key = string | number;
|
|
32
|
+
interface TabLook {
|
|
33
|
+
tab: RibbonTab;
|
|
34
|
+
key: Key;
|
|
35
|
+
text: string;
|
|
36
|
+
hint: string;
|
|
37
|
+
context: string;
|
|
38
|
+
visible: boolean;
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
}
|
|
41
|
+
interface TabPart {
|
|
42
|
+
tab: RibbonTab;
|
|
43
|
+
key: string;
|
|
44
|
+
id: string;
|
|
45
|
+
host: Component<HTMLButtonElement>;
|
|
46
|
+
caption: Component<HTMLSpanElement>;
|
|
47
|
+
accessKey: string | null;
|
|
48
|
+
}
|
|
49
|
+
interface Panel {
|
|
50
|
+
tab: RibbonTab;
|
|
51
|
+
key: string;
|
|
52
|
+
id: string;
|
|
53
|
+
raw: GroupLook[];
|
|
54
|
+
host: Component<HTMLDivElement>;
|
|
55
|
+
groups: Map<RibbonGroup, GroupPart>;
|
|
56
|
+
stop: () => void;
|
|
57
|
+
overflow: Button | null;
|
|
58
|
+
}
|
|
59
|
+
interface GroupLook {
|
|
60
|
+
group: RibbonGroup;
|
|
61
|
+
key: string;
|
|
62
|
+
fixed: boolean;
|
|
63
|
+
text: string;
|
|
64
|
+
visible: boolean;
|
|
65
|
+
more: boolean;
|
|
66
|
+
moreHint: string;
|
|
67
|
+
priority: number;
|
|
68
|
+
collapsible: boolean;
|
|
69
|
+
hiddenByUser?: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface GroupPart {
|
|
72
|
+
group: RibbonGroup;
|
|
73
|
+
divider: Component<HTMLDivElement>;
|
|
74
|
+
host: Component<HTMLDivElement>;
|
|
75
|
+
inner: Component<HTMLDivElement>;
|
|
76
|
+
commands: Component<HTMLDivElement>;
|
|
77
|
+
foot: Component<HTMLDivElement>;
|
|
78
|
+
label: Component<HTMLSpanElement>;
|
|
79
|
+
more: Button | null;
|
|
80
|
+
made: Map<RibbonCommand, Made>;
|
|
81
|
+
stop: () => void;
|
|
82
|
+
current: ComponentBase | null;
|
|
83
|
+
look: GroupLook | null;
|
|
84
|
+
wanted: Wanted[];
|
|
85
|
+
level: number;
|
|
86
|
+
out: boolean;
|
|
87
|
+
folded: boolean;
|
|
88
|
+
fold: Button | null;
|
|
89
|
+
popup: Popup | null;
|
|
90
|
+
}
|
|
91
|
+
interface Wanted {
|
|
92
|
+
command: RibbonCommand;
|
|
93
|
+
key: string;
|
|
94
|
+
fixed: boolean;
|
|
95
|
+
type: RibbonCommandType;
|
|
96
|
+
size: RibbonCommandSize;
|
|
97
|
+
visible: boolean;
|
|
98
|
+
simple: boolean;
|
|
99
|
+
}
|
|
100
|
+
interface Made {
|
|
101
|
+
control: ComponentBase;
|
|
102
|
+
type: RibbonCommandType;
|
|
103
|
+
want: Wanted;
|
|
104
|
+
command: Signal<RibbonCommand>;
|
|
105
|
+
made: Map<RibbonCommand, Made> | null;
|
|
106
|
+
stop: (() => void) | null;
|
|
107
|
+
size?: RibbonCommandSize;
|
|
108
|
+
}
|
|
109
|
+
interface Where {
|
|
110
|
+
tab: RibbonTab | null;
|
|
111
|
+
group: RibbonGroup | null;
|
|
112
|
+
}
|
|
113
|
+
interface Found {
|
|
114
|
+
command: RibbonCommand;
|
|
115
|
+
group: RibbonGroup;
|
|
116
|
+
tab: RibbonTab;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The commands of an application in tabs, each tab in named groups: large commands with the icon above the text,
|
|
120
|
+
* medium and small ones three to a column, rows of small commands, menus, split buttons and any content of the app.
|
|
121
|
+
* Tabs of a context (a picture being edited, a table chosen) are drawn in the context color while it lasts.
|
|
122
|
+
*
|
|
123
|
+
* Nothing is in it until it is given: every tab, group and command comes from `items`, each field a value or a
|
|
124
|
+
* function that is followed. A tab's groups are made the first time it is shown, and kept. The tabs are one Tab stop,
|
|
125
|
+
* moved between with the arrow keys; in the commands each group is a Tab stop and the arrow keys move between the
|
|
126
|
+
* commands, Escape goes back to the tabs. An `&` in a tab's text gives it an access key.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* <RibbonMenu x-model={() => this.tab} items={[
|
|
130
|
+
* { key: 'home', text: '&Home', groups: [
|
|
131
|
+
* { text: 'Clipboard', commands: [
|
|
132
|
+
* { text: 'Paste', glyph: 'paste', size: 'large', type: 'split', menu: pasteOptions, click: () => this.paste() },
|
|
133
|
+
* { text: 'Copy', glyph: 'copy', click: () => this.copy() }
|
|
134
|
+
* ] }
|
|
135
|
+
* ] }
|
|
136
|
+
* ]} />
|
|
137
|
+
*/
|
|
138
|
+
export declare class RibbonMenu extends Control<HTMLDivElement, RibbonMenuProps> {
|
|
139
|
+
selecting: Emitter<RibbonTabSelectingEventArgs>;
|
|
140
|
+
selectionChanged: Emitter<RibbonTabSelectionChangedEventArgs>;
|
|
141
|
+
commandClick: Emitter<RibbonCommandClickEventArgs>;
|
|
142
|
+
groupMore: Emitter<RibbonGroupMoreEventArgs>;
|
|
143
|
+
layoutChanged: Emitter<RibbonMenuLayoutChangedEventArgs>;
|
|
144
|
+
displayChanged: Emitter<RibbonMenuDisplayChangedEventArgs>;
|
|
145
|
+
customized: Emitter<RibbonMenuCustomizedEventArgs>;
|
|
146
|
+
appButtonClick: Emitter<RibbonAppButtonEventArgs>;
|
|
147
|
+
itemsChanged: Emitter<RibbonMenuItemsChangedEventArgs>;
|
|
148
|
+
customMenuOpened: Emitter<RibbonMenuCustomMenuOpeningEventArgs>;
|
|
149
|
+
tree: ItemTree<RibbonTab>;
|
|
150
|
+
reveal: Component<HTMLButtonElement>;
|
|
151
|
+
frame: Component<HTMLDivElement>;
|
|
152
|
+
bar: Component<HTMLDivElement>;
|
|
153
|
+
app: Component<HTMLButtonElement>;
|
|
154
|
+
appCaption: Component<HTMLSpanElement>;
|
|
155
|
+
appKey: string | null;
|
|
156
|
+
quickTop: Component<HTMLDivElement>;
|
|
157
|
+
quickBelow: Component<HTMLDivElement>;
|
|
158
|
+
quickHost: Component<HTMLDivElement> | null;
|
|
159
|
+
quickMade: Map<RibbonCommand, Made>;
|
|
160
|
+
stopQuick: (() => void) | null;
|
|
161
|
+
picker: Button;
|
|
162
|
+
startHost: Component<HTMLDivElement>;
|
|
163
|
+
endHost: Component<HTMLDivElement>;
|
|
164
|
+
switcher: Button;
|
|
165
|
+
tabList: Component<HTMLDivElement>;
|
|
166
|
+
body: Component<HTMLDivElement>;
|
|
167
|
+
stage: Component<HTMLDivElement>;
|
|
168
|
+
back: Button;
|
|
169
|
+
forward: Button;
|
|
170
|
+
startControl: ComponentBase | null;
|
|
171
|
+
endControl: ComponentBase | null;
|
|
172
|
+
entries: TabPart[];
|
|
173
|
+
looks: TabLook[];
|
|
174
|
+
panels: Map<RibbonTab, Panel>;
|
|
175
|
+
stopTabs: (() => void) | null;
|
|
176
|
+
rovingQueued: boolean;
|
|
177
|
+
floating: boolean;
|
|
178
|
+
compact: boolean;
|
|
179
|
+
/** What the last fit was for: the room's width, and whether something changed since (content, look, layout). */
|
|
180
|
+
fittedWidth: number;
|
|
181
|
+
fitDue: boolean;
|
|
182
|
+
/** The steps the groups of `fitPanel` gave way by at the last fit: where the next fit starts. */
|
|
183
|
+
fitCount: number;
|
|
184
|
+
fitPanel: Panel | null;
|
|
185
|
+
fitSimple: boolean;
|
|
186
|
+
/** Buttons a fit step sized, whose looks it reads together. */
|
|
187
|
+
lookDue: Button[];
|
|
188
|
+
custom: RibbonMenuCustomization;
|
|
189
|
+
hints: RibbonKeyHints;
|
|
190
|
+
customMenu: ContextMenu;
|
|
191
|
+
altDown: boolean;
|
|
192
|
+
altChord: boolean;
|
|
193
|
+
focusLeaving: boolean;
|
|
194
|
+
constructor(props?: IBaseProp<RibbonMenuProps>);
|
|
195
|
+
get items(): readonly RibbonTab[];
|
|
196
|
+
set items(value: Bind<readonly RibbonTab[]>);
|
|
197
|
+
get value(): Key | null;
|
|
198
|
+
set value(value: Bind<Key | null>);
|
|
199
|
+
get label(): string;
|
|
200
|
+
set label(value: Bind<string>);
|
|
201
|
+
get layout(): RibbonMenuLayout;
|
|
202
|
+
set layout(value: Bind<RibbonMenuLayout>);
|
|
203
|
+
get adaptive(): boolean;
|
|
204
|
+
set adaptive(value: Bind<boolean>);
|
|
205
|
+
get layoutSwitch(): boolean;
|
|
206
|
+
set layoutSwitch(value: Bind<boolean>);
|
|
207
|
+
get barStart(): ComponentBase | null;
|
|
208
|
+
set barStart(value: Bind<ComponentBase | null>);
|
|
209
|
+
get barEnd(): ComponentBase | null;
|
|
210
|
+
set barEnd(value: Bind<ComponentBase | null>);
|
|
211
|
+
get display(): RibbonMenuDisplay;
|
|
212
|
+
set display(value: Bind<RibbonMenuDisplay>);
|
|
213
|
+
get appButton(): string;
|
|
214
|
+
set appButton(value: Bind<string>);
|
|
215
|
+
get quickCommands(): readonly RibbonCommand[];
|
|
216
|
+
set quickCommands(value: Bind<readonly RibbonCommand[]>);
|
|
217
|
+
get quickBar(): RibbonQuickBarPosition;
|
|
218
|
+
set quickBar(value: Bind<RibbonQuickBarPosition>);
|
|
219
|
+
get keyHints(): boolean;
|
|
220
|
+
set keyHints(value: Bind<boolean>);
|
|
221
|
+
get customizable(): boolean;
|
|
222
|
+
set customizable(value: Bind<boolean>);
|
|
223
|
+
get customization(): RibbonMenuCustomization;
|
|
224
|
+
set customization(value: Bind<RibbonMenuCustomization | null>);
|
|
225
|
+
get onDisplayChanged(): MotifEvent<RibbonMenuDisplayChangedEventArgs>;
|
|
226
|
+
get onCustomized(): MotifEvent<RibbonMenuCustomizedEventArgs>;
|
|
227
|
+
get onItemsChanged(): MotifEvent<RibbonMenuItemsChangedEventArgs>;
|
|
228
|
+
get onAppButton(): MotifEvent<RibbonAppButtonEventArgs>;
|
|
229
|
+
/** `true` while the commands are open over the page (`display` `'tabs'` or `'auto'`). */
|
|
230
|
+
get isOpenOver(): boolean;
|
|
231
|
+
/** `true` while the menu is narrower than its compact size: a single row and a tab picker. */
|
|
232
|
+
get isCompact(): boolean;
|
|
233
|
+
get onLayoutChanged(): MotifEvent<RibbonMenuLayoutChangedEventArgs>;
|
|
234
|
+
/** Occurs before the menu of the right button opens: add commands of your own or leave some out. */
|
|
235
|
+
get onCustomMenuOpening(): MotifEvent<RibbonMenuCustomMenuOpeningEventArgs>;
|
|
236
|
+
get onSelecting(): MotifEvent<RibbonTabSelectingEventArgs>;
|
|
237
|
+
get onSelectionChanged(): MotifEvent<RibbonTabSelectionChangedEventArgs>;
|
|
238
|
+
get onCommandClick(): MotifEvent<RibbonCommandClickEventArgs>;
|
|
239
|
+
get onGroupMore(): MotifEvent<RibbonGroupMoreEventArgs>;
|
|
240
|
+
/** The key of the tab shown: `value`, else the first tab that can be chosen. */
|
|
241
|
+
get shownKey(): Key | null;
|
|
242
|
+
/** Shows the tab with `key`, as a click on it does. Returns `false` when `onSelecting` refused. */
|
|
243
|
+
select(key: Key): boolean;
|
|
244
|
+
/** The control made for a command, once its tab has been shown. */
|
|
245
|
+
controlOf(command: RibbonCommand): ComponentBase | null;
|
|
246
|
+
/** The tab with `key`, as the app gave it. */
|
|
247
|
+
findTab(key: Key): RibbonTab | null;
|
|
248
|
+
/** The group at `path` (`tab/group`, each a key or a position), as it is now. */
|
|
249
|
+
findGroup(path: string): RibbonGroup | null;
|
|
250
|
+
/** The command at `path` (`tab/group/command`, a row's command a fourth part), as it is now. */
|
|
251
|
+
findCommand(path: string): RibbonCommand | null;
|
|
252
|
+
/** Adds a tab at `index`, the end by default. Returns `false` when nothing changed. */
|
|
253
|
+
addTab(tab: RibbonTab, index?: number): boolean;
|
|
254
|
+
/** Adds a group to the tab at `tabPath`. */
|
|
255
|
+
addGroup(tabPath: string, group: RibbonGroup, index?: number): boolean;
|
|
256
|
+
/** Adds a command to the group at `parentPath` (`tab/group`), or to a row (`tab/group/row`). */
|
|
257
|
+
addCommand(parentPath: string, command: RibbonCommand, index?: number): boolean;
|
|
258
|
+
/** Removes the tab, group or command at `path`. */
|
|
259
|
+
remove(path: string): boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Moves the tab, group or command at `path` to `index` in its list, or in the list at `toParent`: another tab for a
|
|
262
|
+
* group, another group (or row) for a command.
|
|
263
|
+
*/
|
|
264
|
+
move(path: string, index: number, toParent?: string): boolean;
|
|
265
|
+
/** Changes fields of the tab, group or command at `path`; the others stay as they are. */
|
|
266
|
+
update(path: string, changes: Partial<RibbonTab> | Partial<RibbonGroup> | Partial<RibbonCommand>): boolean;
|
|
267
|
+
/** Holds the changes by path until `endUpdate()`, which applies them at once. */
|
|
268
|
+
beginUpdate(): void;
|
|
269
|
+
endUpdate(): void;
|
|
270
|
+
currentTabs(): readonly RibbonTab[];
|
|
271
|
+
changeItems(parent: string[], change: (list: readonly unknown[]) => unknown[] | null): boolean;
|
|
272
|
+
applyItems(next: RibbonTab[]): void;
|
|
273
|
+
/**
|
|
274
|
+
* Reads the tabs, groups and commands again after they were changed in place. Your items can be plain or reactive,
|
|
275
|
+
* and the menu reads them as they are.
|
|
276
|
+
*/
|
|
277
|
+
refresh(): void;
|
|
278
|
+
/** Whether a command of the tabs names a command of the app. */
|
|
279
|
+
namesCommands(): boolean;
|
|
280
|
+
/** Opens the commands over the page when the menu shows only its tabs or hides itself; `false` closes them. */
|
|
281
|
+
openOver(open: boolean): void;
|
|
282
|
+
/** Shows the key hints, as Alt or F10 does. */
|
|
283
|
+
showKeyHints(): void;
|
|
284
|
+
/** The tabs Tab and the arrows reach, in their order. */
|
|
285
|
+
get focusPart(): ComponentBase;
|
|
286
|
+
renderTabs(): void;
|
|
287
|
+
tabLookOf(tab: RibbonTab, index: number): TabLook;
|
|
288
|
+
drawTabs(): void;
|
|
289
|
+
makeTab(look: TabLook): TabPart;
|
|
290
|
+
drawNames(): void;
|
|
291
|
+
drawSelection(): void;
|
|
292
|
+
drawPicker(): void;
|
|
293
|
+
tabClick(e: MouseEvent): void;
|
|
294
|
+
tabDoubleClick(e: MouseEvent): void;
|
|
295
|
+
tabKeyDown(e: KeyboardEvent): void;
|
|
296
|
+
indexOfTab(e: Event): number;
|
|
297
|
+
/** Shows the tab of `look` unless `onSelecting` refuses. Returns `false` when it was refused. */
|
|
298
|
+
choose(look: TabLook, originalEvent: Event | null): boolean;
|
|
299
|
+
showPanel(look: TabLook): void;
|
|
300
|
+
followGroups(panel: Panel): void;
|
|
301
|
+
dropPanel(panel: Panel): void;
|
|
302
|
+
groupLookOf(group: RibbonGroup, index: number): GroupLook;
|
|
303
|
+
drawGroups(panel: Panel, looks: GroupLook[]): void;
|
|
304
|
+
makeGroup(panel: Panel, group: RibbonGroup): GroupPart;
|
|
305
|
+
followCommands(panel: Panel, part: GroupPart): void;
|
|
306
|
+
placeGroup(panel: Panel, group: GroupPart): void;
|
|
307
|
+
dropGroup(group: GroupPart): void;
|
|
308
|
+
drawMore(panel: Panel, group: GroupPart, look: GroupLook): void;
|
|
309
|
+
drawMoreHint(group: GroupPart): void;
|
|
310
|
+
morePressed(tab: RibbonTab, group: GroupPart, more: Button, e: Event): void;
|
|
311
|
+
wantedOf(list: readonly RibbonCommand[] | undefined, inRow: boolean): Wanted[];
|
|
312
|
+
placeCommands(host: Component<HTMLDivElement>, made: Map<RibbonCommand, Made>, wanted: Wanted[], where: Where | ((command: RibbonCommand) => Where), inRow: boolean): Map<RibbonCommand, Made>;
|
|
313
|
+
dropMade(made: Map<RibbonCommand, Made>): void;
|
|
314
|
+
giveCommand(m: Made, command: RibbonCommand): void;
|
|
315
|
+
makeCommand(want: Wanted, where: Where, inRow: boolean): Made;
|
|
316
|
+
makeButton(box: Signal<RibbonCommand>, type: RibbonCommandType, where: Where): Button;
|
|
317
|
+
galleryPicked(command: RibbonCommand, item: RibbonGalleryItem, where: Where, e: Event): void;
|
|
318
|
+
commandPressed(command: RibbonCommand, button: Button, where: Where, e: Event): void;
|
|
319
|
+
shownLayout(): RibbonMenuLayout;
|
|
320
|
+
drawLayout(): void;
|
|
321
|
+
switchLayout(e: Event): void;
|
|
322
|
+
changeLayout(next: RibbonMenuLayout, e: Event | null): void;
|
|
323
|
+
queueLayout(): void;
|
|
324
|
+
readonly readRoom: () => {
|
|
325
|
+
width: number;
|
|
326
|
+
compact: number;
|
|
327
|
+
};
|
|
328
|
+
readonly fit: (room: {
|
|
329
|
+
width: number;
|
|
330
|
+
compact: number;
|
|
331
|
+
}) => void;
|
|
332
|
+
finishFit(panel: Panel): void;
|
|
333
|
+
makeScroll(direction: 1 | -1): Button;
|
|
334
|
+
drawEnds(): void;
|
|
335
|
+
readonly readEnds: () => {
|
|
336
|
+
room: number;
|
|
337
|
+
needed: number;
|
|
338
|
+
at: number;
|
|
339
|
+
};
|
|
340
|
+
readonly writeEnds: ({ room, needed, at }: {
|
|
341
|
+
room: number;
|
|
342
|
+
needed: number;
|
|
343
|
+
at: number;
|
|
344
|
+
}) => void;
|
|
345
|
+
scrollPanel(direction: 1 | -1): void;
|
|
346
|
+
wheel(host: Component<HTMLDivElement>, e: WheelEvent): void;
|
|
347
|
+
placeSlot(side: 'start' | 'end'): void;
|
|
348
|
+
setLevel(group: GroupPart, level: number, simple: boolean): void;
|
|
349
|
+
sizeAt(given: RibbonCommandSize, level: number): RibbonCommandSize;
|
|
350
|
+
drawSizes(group: GroupPart, now?: boolean): void;
|
|
351
|
+
drawSize(m: Made, size: RibbonCommandSize, now?: boolean): void;
|
|
352
|
+
foldGroup(group: GroupPart): void;
|
|
353
|
+
toggleFold(group: GroupPart): void;
|
|
354
|
+
unfold(group: GroupPart): void;
|
|
355
|
+
lend(group: GroupPart, open: boolean): void;
|
|
356
|
+
drawDividers(panel: Panel): void;
|
|
357
|
+
drawOverflow(panel: Panel, simple: boolean): void;
|
|
358
|
+
menuItemsOf(made: Map<RibbonCommand, Made>, wanted: (m: Made) => boolean): MenuItem[];
|
|
359
|
+
drawDisplay(): void;
|
|
360
|
+
changeDisplay(next: RibbonMenuDisplay, e: Event | null): void;
|
|
361
|
+
setFloating(on: boolean): void;
|
|
362
|
+
ownKeyDown(e: KeyboardEvent): void;
|
|
363
|
+
focusLeft(e: FocusEvent): void;
|
|
364
|
+
focusLanded(e: FocusEvent): void;
|
|
365
|
+
pagePointerDown(e: PointerEvent): void;
|
|
366
|
+
pageKeyDown(e: KeyboardEvent): void;
|
|
367
|
+
pageKeyUp(e: KeyboardEvent): void;
|
|
368
|
+
claimsKeys(e: KeyboardEvent): boolean;
|
|
369
|
+
tabHints(): KeyHint[];
|
|
370
|
+
pressTab(look: TabLook): void;
|
|
371
|
+
commandHints(): KeyHint[];
|
|
372
|
+
foldedHints(group: GroupPart): InnerHints;
|
|
373
|
+
groupHints(group: GroupPart): KeyHint[];
|
|
374
|
+
drawApp(): void;
|
|
375
|
+
drawQuick(): void;
|
|
376
|
+
whereOf(command: RibbonCommand): Where;
|
|
377
|
+
resolve(path: string): Found | null;
|
|
378
|
+
tabKeyOf(tab: RibbonTab): string;
|
|
379
|
+
takeCustomization(): void;
|
|
380
|
+
remember(change: Partial<RibbonMenuCustomization>): void;
|
|
381
|
+
redrawCustom(): void;
|
|
382
|
+
customGroups(panel: Panel, raw: GroupLook[]): GroupLook[];
|
|
383
|
+
customCommands(panel: Panel, group: GroupPart): Wanted[];
|
|
384
|
+
hideByUser(path: string): void;
|
|
385
|
+
moveByUser(parent: string, keys: string[], key: string, step: 1 | -1): void;
|
|
386
|
+
pinByUser(path: string, on: boolean): void;
|
|
387
|
+
resetCustom(): void;
|
|
388
|
+
customMenuOpening(e: ContextMenuOpeningEventArgs): void;
|
|
389
|
+
customTarget(e: Event): {
|
|
390
|
+
item: RibbonTab | RibbonGroup | RibbonCommand | null;
|
|
391
|
+
path: string | null;
|
|
392
|
+
};
|
|
393
|
+
menuCommands(e: Event): MenuItem[];
|
|
394
|
+
placeQuick(position: RibbonQuickBarPosition): void;
|
|
395
|
+
whereOfMade(m: Made): Where;
|
|
396
|
+
hitOf(e: Event): {
|
|
397
|
+
panel: Panel;
|
|
398
|
+
group: GroupPart;
|
|
399
|
+
made: Made | null;
|
|
400
|
+
quick?: false;
|
|
401
|
+
path?: undefined;
|
|
402
|
+
} | {
|
|
403
|
+
quick: true;
|
|
404
|
+
path: string | null;
|
|
405
|
+
} | null;
|
|
406
|
+
fromContent(e: Event): boolean;
|
|
407
|
+
groupStops(group: GroupPart): ComponentBase[];
|
|
408
|
+
madeStops(made: Map<RibbonCommand, Made>, stops: ComponentBase[]): void;
|
|
409
|
+
panelStops(panel: Panel): ComponentBase[];
|
|
410
|
+
drawStops(stops: ComponentBase[], current: ComponentBase | null): void;
|
|
411
|
+
shownPanel(): Panel | null;
|
|
412
|
+
queueRoving(): void;
|
|
413
|
+
drawRoving(): void;
|
|
414
|
+
groupOf(e: Event): GroupPart | null;
|
|
415
|
+
focusCommands(): void;
|
|
416
|
+
commandFocused(e: FocusEvent): void;
|
|
417
|
+
commandKeyDown(e: KeyboardEvent): void;
|
|
418
|
+
}
|
|
419
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './RibbonMenu';
|
|
2
|
+
export type * from './ribbon-app-button-event-args';
|
|
3
|
+
export type * from './ribbon-command';
|
|
4
|
+
export type * from './ribbon-command-click-event-args';
|
|
5
|
+
export type * from './ribbon-command-size';
|
|
6
|
+
export type * from './ribbon-command-type';
|
|
7
|
+
export type * from './ribbon-gallery-item';
|
|
8
|
+
export type * from './ribbon-group';
|
|
9
|
+
export type * from './ribbon-group-more-event-args';
|
|
10
|
+
export type * from './ribbon-menu-customization';
|
|
11
|
+
export type * from './ribbon-menu-customized-event-args';
|
|
12
|
+
export type * from './ribbon-menu-custom-menu-opening-event-args';
|
|
13
|
+
export type * from './ribbon-menu-display';
|
|
14
|
+
export type * from './ribbon-menu-display-changed-event-args';
|
|
15
|
+
export type * from './ribbon-menu-items-changed-event-args';
|
|
16
|
+
export type * from './ribbon-menu-layout';
|
|
17
|
+
export type * from './ribbon-menu-layout-changed-event-args';
|
|
18
|
+
export type * from './ribbon-menu-props';
|
|
19
|
+
export type * from './ribbon-quick-bar-position';
|
|
20
|
+
export type * from './ribbon-tab';
|
|
21
|
+
export type * from './ribbon-tab-selecting-event-args';
|
|
22
|
+
export type * from './ribbon-tab-selection-changed-event-args';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
3
|
+
export interface RibbonAppButtonEventArgs {
|
|
4
|
+
/** The button's part, to place a menu by. */
|
|
5
|
+
part: ComponentBase;
|
|
6
|
+
originalEvent: Event;
|
|
7
|
+
source: RibbonMenu;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
3
|
+
import type { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
4
|
+
import type { RibbonGroup } from "./ribbon-group";
|
|
5
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
6
|
+
export interface RibbonCommandClickEventArgs {
|
|
7
|
+
command: RibbonCommand;
|
|
8
|
+
/** The group and the tab of the command; `null` for a command given only to the quick commands. */
|
|
9
|
+
group: RibbonGroup | null;
|
|
10
|
+
tab: RibbonTab | null;
|
|
11
|
+
/** The choice pressed in a `gallery`. */
|
|
12
|
+
item?: RibbonGalleryItem;
|
|
13
|
+
originalEvent: Event;
|
|
14
|
+
source: RibbonMenu;
|
|
15
|
+
}
|