@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a command is: a button, a button that stays pressed (`toggle`), a button with its own action and a menu beside
|
|
3
|
+
* it (`split`), a button that opens a menu (`menu`), a row of small commands (`row`), any content of the app
|
|
4
|
+
* (`content`), a row of choices that opens all of them in a grid (`gallery`), or a line between commands
|
|
5
|
+
* (`separator`).
|
|
6
|
+
*/
|
|
7
|
+
export type RibbonCommandType = 'button' | 'toggle' | 'split' | 'menu' | 'row' | 'content' | 'gallery' | 'separator';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Bind, ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { IconSource } from "../../core/icon-source";
|
|
3
|
+
import type { MenuItem } from "../../parts/menu/menu-item";
|
|
4
|
+
import type { RibbonCommandClickEventArgs } from "./ribbon-command-click-event-args";
|
|
5
|
+
import type { RibbonCommandSize } from "./ribbon-command-size";
|
|
6
|
+
import type { RibbonCommandType } from "./ribbon-command-type";
|
|
7
|
+
import type { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
8
|
+
/**
|
|
9
|
+
* One command of a group. Every field except `key`, `content`, `click` and `data` accepts a value or a function, and a
|
|
10
|
+
* function is tracked.
|
|
11
|
+
*/
|
|
12
|
+
export interface RibbonCommand {
|
|
13
|
+
/** Finds the command. The default is its position. */
|
|
14
|
+
key?: string | number;
|
|
15
|
+
/** The default is `'button'`. */
|
|
16
|
+
type?: Bind<RibbonCommandType>;
|
|
17
|
+
/**
|
|
18
|
+
* The command of the app it runs (see `commands`): what it is not given, its text, glyph or icon, hint, state and
|
|
19
|
+
* action, comes from the command; a toggle is pressed as the command is `checked`.
|
|
20
|
+
*/
|
|
21
|
+
command?: string;
|
|
22
|
+
/** The text. An `&` before a letter makes that letter its access key. A small command shows it as its tooltip. */
|
|
23
|
+
text?: Bind<string>;
|
|
24
|
+
/** The name of a glyph. */
|
|
25
|
+
glyph?: Bind<string>;
|
|
26
|
+
/** An image address or a component, used instead of `glyph`; a component as a function, so the "more" menu gets its own (see `IconSource`). */
|
|
27
|
+
icon?: Bind<IconSource | null | undefined>;
|
|
28
|
+
/** A longer description, shown as a tooltip. */
|
|
29
|
+
hint?: Bind<string>;
|
|
30
|
+
/** The default is `'medium'`. The commands of a row are always small. */
|
|
31
|
+
size?: Bind<RibbonCommandSize>;
|
|
32
|
+
/** The state of a toggle. As a function, the command follows it, and `click` changes the value it reads. */
|
|
33
|
+
pressed?: Bind<boolean>;
|
|
34
|
+
/** `false` dims the command, and it cannot be pressed. The default is `true`. */
|
|
35
|
+
enabled?: Bind<boolean>;
|
|
36
|
+
/** `false` leaves it out of the simplified layout's row; it waits in the "more" menu. The default is `true`. */
|
|
37
|
+
simple?: Bind<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* The letters that press it while key hints are shown. The default comes from its access key or its text; for a
|
|
40
|
+
* `content` command with no text, from its hint.
|
|
41
|
+
*/
|
|
42
|
+
keyHint?: Bind<string>;
|
|
43
|
+
/** `true` keeps the user from hiding or moving it. The default is `false`. */
|
|
44
|
+
fixed?: Bind<boolean>;
|
|
45
|
+
/** `false` removes the command. The default is `true`. */
|
|
46
|
+
visible?: Bind<boolean>;
|
|
47
|
+
/** The commands of a `menu` or a `split` command. */
|
|
48
|
+
menu?: Bind<readonly MenuItem[]>;
|
|
49
|
+
/** The commands of a `row`. */
|
|
50
|
+
commands?: Bind<readonly RibbonCommand[]>;
|
|
51
|
+
/** The choices of a `gallery`. */
|
|
52
|
+
items?: Bind<readonly RibbonGalleryItem[]>;
|
|
53
|
+
/** The key of the choice of a `gallery` that is marked as chosen. */
|
|
54
|
+
value?: Bind<string | number | null>;
|
|
55
|
+
/** How many choices of a `gallery` stand in its row, and in each row of its grid. The default is `4`. */
|
|
56
|
+
columns?: Bind<number>;
|
|
57
|
+
/** Makes the content of a `content` command, such as a drop-down or a number box. Made once, and kept. */
|
|
58
|
+
content?: () => ComponentBase;
|
|
59
|
+
/** Occurs when the command is pressed (for a `split` command, its own part; for a `gallery`, a choice: `e.item`). */
|
|
60
|
+
click?: (e: RibbonCommandClickEventArgs) => void;
|
|
61
|
+
/** A custom application value for the command. */
|
|
62
|
+
data?: unknown;
|
|
63
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Bind } from "@motifx/core";
|
|
2
|
+
import type { IconSource } from "../../core/icon-source";
|
|
3
|
+
/** One choice of a `gallery` command. Every field except `key` and `data` accepts a value or a function. */
|
|
4
|
+
export interface RibbonGalleryItem {
|
|
5
|
+
/** Finds the item, and is the command's `value` while it is chosen. The default is its position. */
|
|
6
|
+
key?: string | number;
|
|
7
|
+
text: Bind<string>;
|
|
8
|
+
/** The name of a glyph. */
|
|
9
|
+
glyph?: Bind<string>;
|
|
10
|
+
/** An image address or a component, used instead of `glyph`; a preview of the choice. Give a component as a function: the row and the grid each build one (see `IconSource`). */
|
|
11
|
+
icon?: Bind<IconSource | null | undefined>;
|
|
12
|
+
/** A longer description, shown as a tooltip. */
|
|
13
|
+
hint?: Bind<string>;
|
|
14
|
+
/** `false` dims the item, and it cannot be chosen. The default is `true`. */
|
|
15
|
+
enabled?: Bind<boolean>;
|
|
16
|
+
/** A custom application value for the item. */
|
|
17
|
+
data?: unknown;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
3
|
+
import type { RibbonGroup } from "./ribbon-group";
|
|
4
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
5
|
+
export interface RibbonGroupMoreEventArgs {
|
|
6
|
+
group: RibbonGroup;
|
|
7
|
+
tab: RibbonTab;
|
|
8
|
+
/** The button pressed, as a component, to place a window or a popup by. */
|
|
9
|
+
part: ComponentBase;
|
|
10
|
+
originalEvent: Event;
|
|
11
|
+
source: RibbonMenu;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Bind } from "@motifx/core";
|
|
2
|
+
import type { IconSource } from "../../core/icon-source";
|
|
3
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
4
|
+
import type { RibbonGroupMoreEventArgs } from "./ribbon-group-more-event-args";
|
|
5
|
+
/** A group of commands under a name. Every field except `key`, `more` and `data` accepts a value or a function. */
|
|
6
|
+
export interface RibbonGroup {
|
|
7
|
+
/** Finds the group. The default is its position. */
|
|
8
|
+
key?: string | number;
|
|
9
|
+
/** The name under the commands. */
|
|
10
|
+
text: Bind<string>;
|
|
11
|
+
/** The commands. Nothing is there until they are given. */
|
|
12
|
+
commands: Bind<readonly RibbonCommand[]>;
|
|
13
|
+
/** The name of a glyph, for the button the group folds into when there is no room. */
|
|
14
|
+
glyph?: Bind<string>;
|
|
15
|
+
/** An image address or a component, used instead of `glyph`. */
|
|
16
|
+
icon?: Bind<IconSource | null | undefined>;
|
|
17
|
+
/** Groups with a lower priority give way first when there is no room; of equals, the last first. The default is `0`. */
|
|
18
|
+
priority?: Bind<number>;
|
|
19
|
+
/** `false` keeps the group from folding into one button (or moving into the "more" menu). The default is `true`. */
|
|
20
|
+
collapsible?: Bind<boolean>;
|
|
21
|
+
/** `true` keeps the user from hiding or moving it. The default is `false`. */
|
|
22
|
+
fixed?: Bind<boolean>;
|
|
23
|
+
/** `false` removes the group. The default is `true`. */
|
|
24
|
+
visible?: Bind<boolean>;
|
|
25
|
+
/** Adds the button beside the name that opens more options of the group, such as a window. */
|
|
26
|
+
more?: (e: RibbonGroupMoreEventArgs) => void;
|
|
27
|
+
/** The tooltip of that button. The default names the group. */
|
|
28
|
+
moreHint?: Bind<string>;
|
|
29
|
+
/** A custom application value for the group. */
|
|
30
|
+
data?: unknown;
|
|
31
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MenuItem } from "../../parts/menu/menu-item";
|
|
2
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
3
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
4
|
+
import type { RibbonGroup } from "./ribbon-group";
|
|
5
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
6
|
+
export interface RibbonMenuCustomMenuOpeningEventArgs {
|
|
7
|
+
/** The tab, group or command pressed with the right button or the menu key, as the app gave it; `null` elsewhere. */
|
|
8
|
+
item: RibbonTab | RibbonGroup | RibbonCommand | null;
|
|
9
|
+
/** Its path, such as `home/clipboard/paste`; `null` with `item`. */
|
|
10
|
+
path: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* The commands of the menu about to open: the menu's own when `customizable` is on, else none. Change the list to
|
|
13
|
+
* add your own or to leave some out. The menu does not open when it is empty.
|
|
14
|
+
*/
|
|
15
|
+
items: MenuItem[];
|
|
16
|
+
/** Set to `true` to keep the menu closed. */
|
|
17
|
+
cancel: boolean;
|
|
18
|
+
/** Whether a key opened it. */
|
|
19
|
+
byKeyboard: boolean;
|
|
20
|
+
event: Event;
|
|
21
|
+
source: RibbonMenu;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RibbonMenuDisplay } from "./ribbon-menu-display";
|
|
2
|
+
import type { RibbonMenuLayout } from "./ribbon-menu-layout";
|
|
3
|
+
import type { RibbonQuickBarPosition } from "./ribbon-quick-bar-position";
|
|
4
|
+
/**
|
|
5
|
+
* What the user changed in the menu, to save and give back later. Groups and commands are named by their keys, joined
|
|
6
|
+
* with `/`: `home/clipboard` for a group, `home/clipboard/paste` for a command (a missing key is the position).
|
|
7
|
+
*/
|
|
8
|
+
export interface RibbonMenuCustomization {
|
|
9
|
+
/** The groups and commands the user hid. */
|
|
10
|
+
hidden?: readonly string[];
|
|
11
|
+
/** The order the user gave: a tab's groups under its key, a group's commands under its path. */
|
|
12
|
+
order?: Readonly<Record<string, readonly string[]>>;
|
|
13
|
+
/** The commands the user added to the quick commands. */
|
|
14
|
+
quick?: readonly string[];
|
|
15
|
+
layout?: RibbonMenuLayout;
|
|
16
|
+
display?: RibbonMenuDisplay;
|
|
17
|
+
quickBar?: RibbonQuickBarPosition;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonMenuCustomization } from "./ribbon-menu-customization";
|
|
3
|
+
export interface RibbonMenuCustomizedEventArgs {
|
|
4
|
+
/** Everything the user changed so far, to save. */
|
|
5
|
+
customization: RibbonMenuCustomization;
|
|
6
|
+
source: RibbonMenu;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonMenuDisplay } from "./ribbon-menu-display";
|
|
3
|
+
export interface RibbonMenuDisplayChangedEventArgs {
|
|
4
|
+
display: RibbonMenuDisplay;
|
|
5
|
+
previous: RibbonMenuDisplay;
|
|
6
|
+
originalEvent: Event | null;
|
|
7
|
+
source: RibbonMenu;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
3
|
+
export interface RibbonMenuItemsChangedEventArgs {
|
|
4
|
+
/** The new list of tabs, to keep: the items along the changed path are new objects, the others the ones given. */
|
|
5
|
+
items: readonly RibbonTab[];
|
|
6
|
+
source: RibbonMenu;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonMenuLayout } from "./ribbon-menu-layout";
|
|
3
|
+
export interface RibbonMenuLayoutChangedEventArgs {
|
|
4
|
+
layout: RibbonMenuLayout;
|
|
5
|
+
previous: RibbonMenuLayout;
|
|
6
|
+
originalEvent: Event | null;
|
|
7
|
+
source: RibbonMenu;
|
|
8
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Bind, ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { ControlProps } from "../../core/control";
|
|
3
|
+
import type { RibbonAppButtonEventArgs } from "./ribbon-app-button-event-args";
|
|
4
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
5
|
+
import type { RibbonCommandClickEventArgs } from "./ribbon-command-click-event-args";
|
|
6
|
+
import type { RibbonGroupMoreEventArgs } from "./ribbon-group-more-event-args";
|
|
7
|
+
import type { RibbonMenuCustomization } from "./ribbon-menu-customization";
|
|
8
|
+
import type { RibbonMenuCustomizedEventArgs } from "./ribbon-menu-customized-event-args";
|
|
9
|
+
import type { RibbonMenuCustomMenuOpeningEventArgs } from "./ribbon-menu-custom-menu-opening-event-args";
|
|
10
|
+
import type { RibbonMenuDisplay } from "./ribbon-menu-display";
|
|
11
|
+
import type { RibbonMenuDisplayChangedEventArgs } from "./ribbon-menu-display-changed-event-args";
|
|
12
|
+
import type { RibbonMenuItemsChangedEventArgs } from "./ribbon-menu-items-changed-event-args";
|
|
13
|
+
import type { RibbonMenuLayout } from "./ribbon-menu-layout";
|
|
14
|
+
import type { RibbonMenuLayoutChangedEventArgs } from "./ribbon-menu-layout-changed-event-args";
|
|
15
|
+
import type { RibbonQuickBarPosition } from "./ribbon-quick-bar-position";
|
|
16
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
17
|
+
import type { RibbonTabSelectingEventArgs } from "./ribbon-tab-selecting-event-args";
|
|
18
|
+
import type { RibbonTabSelectionChangedEventArgs } from "./ribbon-tab-selection-changed-event-args";
|
|
19
|
+
/** Props of `RibbonMenu`, in addition to the shared `ControlProps`. Each prop is also a settable property. */
|
|
20
|
+
export interface RibbonMenuProps extends ControlProps {
|
|
21
|
+
/** The tabs. Nothing is there until they are given. */
|
|
22
|
+
items?: Bind<readonly RibbonTab[]>;
|
|
23
|
+
/** The key of the tab shown. By default, the first tab that can be chosen. `x-model` provides two-way binding. */
|
|
24
|
+
value?: Bind<string | number | null>;
|
|
25
|
+
/** Names the tabs for assistive technology. The default comes from the language pack. This is the same property as `text`. */
|
|
26
|
+
label?: Bind<string>;
|
|
27
|
+
/** The default is `'classic'`. The button at the end of the commands switches it (`layoutSwitch`). */
|
|
28
|
+
layout?: Bind<RibbonMenuLayout>;
|
|
29
|
+
/** Shows the button at the end of the commands that switches between the classic and the simplified layout. The default is `true`. */
|
|
30
|
+
layoutSwitch?: Bind<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* When the commands do not fit, groups give way one step at a time, the least important first: large commands
|
|
33
|
+
* become medium, then all become small, then a group folds into one button (in the simplified layout, it moves
|
|
34
|
+
* into the "more" menu). Each group can refuse the last step (`collapsible`). The default is `true`.
|
|
35
|
+
*/
|
|
36
|
+
adaptive?: Bind<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* The default is `'always'`. `'tabs'` shows only the tabs, a tab opening its commands over the page; `'auto'` hides the
|
|
39
|
+
* menu behind a thin strip that opens it over the page. A double-click on a tab and Ctrl+F1 switch between `'always'`
|
|
40
|
+
* and `'tabs'`; the menu's context menu offers all three.
|
|
41
|
+
*/
|
|
42
|
+
display?: Bind<RibbonMenuDisplay>;
|
|
43
|
+
/** The text of the button before the tabs, such as one that opens the app's main menu. None by default. */
|
|
44
|
+
appButton?: Bind<string>;
|
|
45
|
+
/** The quick commands, pressed from any tab; the user can add commands to them. */
|
|
46
|
+
quickCommands?: Bind<readonly RibbonCommand[]>;
|
|
47
|
+
/** The default is `'start'`. */
|
|
48
|
+
quickBar?: Bind<RibbonQuickBarPosition>;
|
|
49
|
+
/** Alt or F10 shows a letter on each tab, then on each command of the tab chosen: typing it presses it. The default is `true`. */
|
|
50
|
+
keyHints?: Bind<boolean>;
|
|
51
|
+
/** The context menu that lets the user hide and move commands and add them to the quick commands. The default is `true`. */
|
|
52
|
+
customizable?: Bind<boolean>;
|
|
53
|
+
/** What the user changed, to save and give back: the menu starts from it and reports each change with `onCustomized`. */
|
|
54
|
+
customization?: Bind<RibbonMenuCustomization | null>;
|
|
55
|
+
/** Any content of the app at the start of the row of tabs, such as a button. */
|
|
56
|
+
barStart?: Bind<ComponentBase | null>;
|
|
57
|
+
/** Any content of the app at the end of the row of tabs, such as a search field, a button or an editor. */
|
|
58
|
+
barEnd?: Bind<ComponentBase | null>;
|
|
59
|
+
/** Occurs before another tab is shown. Setting `cancel` keeps the tab shown now. */
|
|
60
|
+
onSelecting?: (e: RibbonTabSelectingEventArgs) => void;
|
|
61
|
+
/** Occurs after another tab is shown. */
|
|
62
|
+
onSelectionChanged?: (e: RibbonTabSelectionChangedEventArgs) => void;
|
|
63
|
+
/** Occurs when a command is pressed, after its own `click`. */
|
|
64
|
+
onCommandClick?: (e: RibbonCommandClickEventArgs) => void;
|
|
65
|
+
/** Occurs when the button beside a group's name is pressed, after the group's own `more`. */
|
|
66
|
+
onGroupMore?: (e: RibbonGroupMoreEventArgs) => void;
|
|
67
|
+
/** Occurs when the user shows the menu another way. */
|
|
68
|
+
onDisplayChanged?: (e: RibbonMenuDisplayChangedEventArgs) => void;
|
|
69
|
+
/** Occurs when the user hides, moves or adds a command, or resets the menu. */
|
|
70
|
+
onCustomized?: (e: RibbonMenuCustomizedEventArgs) => void;
|
|
71
|
+
/** Occurs after a change by path (`addTab`, `addGroup`, `addCommand`, `remove`, `move`, `update`), with the new list to keep. */
|
|
72
|
+
onItemsChanged?: (e: RibbonMenuItemsChangedEventArgs) => void;
|
|
73
|
+
/** Occurs when the button before the tabs is pressed. */
|
|
74
|
+
onAppButton?: (e: RibbonAppButtonEventArgs) => void;
|
|
75
|
+
/** Occurs when the user switches the layout with the button at the end of the commands. */
|
|
76
|
+
onLayoutChanged?: (e: RibbonMenuLayoutChangedEventArgs) => void;
|
|
77
|
+
/** Occurs before the menu of the right button opens, to add commands of your own or leave some out. */
|
|
78
|
+
onCustomMenuOpening?: (e: RibbonMenuCustomMenuOpeningEventArgs) => void;
|
|
79
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RibbonMenu } from "./RibbonMenu";
|
|
2
|
+
import type { RibbonTab } from "./ribbon-tab";
|
|
3
|
+
export interface RibbonTabSelectionChangedEventArgs {
|
|
4
|
+
key: string | number;
|
|
5
|
+
previous: string | number | null;
|
|
6
|
+
tab: RibbonTab;
|
|
7
|
+
previousTab: RibbonTab | null;
|
|
8
|
+
originalEvent: Event | null;
|
|
9
|
+
source: RibbonMenu;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Bind } from "@motifx/core";
|
|
2
|
+
import type { RibbonGroup } from "./ribbon-group";
|
|
3
|
+
/** A tab and its groups. Every field except `key` and `data` accepts a value or a function, and a function is tracked. */
|
|
4
|
+
export interface RibbonTab {
|
|
5
|
+
/** Finds the tab, and is the menu's `value` while it is shown. The default is its position. */
|
|
6
|
+
key?: string | number;
|
|
7
|
+
/** The text. An `&` before a letter makes that letter its access key. */
|
|
8
|
+
text: Bind<string>;
|
|
9
|
+
/** A longer description, shown as a tooltip. */
|
|
10
|
+
hint?: Bind<string>;
|
|
11
|
+
/** The groups. Nothing is there until they are given; they are made the first time the tab is shown. */
|
|
12
|
+
groups: Bind<readonly RibbonGroup[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Makes it a tab of a context, such as a picture being edited: it is drawn in the context color, and the name is
|
|
15
|
+
* told to assistive technology. Show it with `visible` while the context lasts.
|
|
16
|
+
*/
|
|
17
|
+
context?: Bind<string>;
|
|
18
|
+
/** `false` removes the tab. The default is `true`. */
|
|
19
|
+
visible?: Bind<boolean>;
|
|
20
|
+
/** `false` dims the tab, and it cannot be chosen. The default is `true`. */
|
|
21
|
+
enabled?: Bind<boolean>;
|
|
22
|
+
/** A custom application value for the tab. */
|
|
23
|
+
data?: unknown;
|
|
24
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Emitter } from '@motifx/core';
|
|
1
|
+
import { type ComponentBase, type Emitter } from '@motifx/core';
|
|
2
2
|
import type { UiStrings } from '../../core/ui-strings';
|
|
3
3
|
import type { Resources } from './model/Resources';
|
|
4
4
|
import type { SchedulerPresentationKind } from './scheduler-presentation-kind';
|
|
@@ -70,8 +70,9 @@ export interface EditorHost<T> {
|
|
|
70
70
|
text(key: keyof UiStrings, values?: Record<string, unknown>): string;
|
|
71
71
|
say(text: string): void;
|
|
72
72
|
setDraft(draft: Draft<T> | null): void;
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
/** The boxes an appointment shows in now, as the view built them. */
|
|
74
|
+
boxesOf(item: T): ComponentBase[];
|
|
75
|
+
scroller(): ComponentBase | null;
|
|
75
76
|
rtl(): boolean;
|
|
76
77
|
keys(): SchedulerKeys;
|
|
77
78
|
/** Ids of the appointments being saved. */
|
|
@@ -162,7 +163,7 @@ export declare class AppointmentEditor<T> implements DragHost<T> {
|
|
|
162
163
|
private recurrence;
|
|
163
164
|
/** The user changed a field: the form shows what follows from it (which fields show, the recurrence's start, day and clock). */
|
|
164
165
|
private formChanged;
|
|
165
|
-
showTooltip(item: T, anchor: HTMLElement): void;
|
|
166
|
+
showTooltip(item: T, anchor: ComponentBase<HTMLElement>): void;
|
|
166
167
|
/** The appointment whose tooltip shows ('' for none); its box shows it. */
|
|
167
168
|
private setOpened;
|
|
168
169
|
/**
|
|
@@ -200,9 +201,17 @@ export declare class AppointmentEditor<T> implements DragHost<T> {
|
|
|
200
201
|
private rowStep;
|
|
201
202
|
/**
|
|
202
203
|
* After a move by the keys, focus stays on the appointment: a box that moved to another row of a
|
|
203
|
-
* timeline is another
|
|
204
|
+
* timeline is another box (each row holds its own boxes), so focus goes to the new one. The view draws the move
|
|
205
|
+
* now; a box it draws later is looked for in the next frames.
|
|
204
206
|
*/
|
|
205
207
|
private keepFocus;
|
|
208
|
+
/** Focus is on one of an appointment's boxes, or goes to the first; false while it has none. */
|
|
209
|
+
private focusBoxOf;
|
|
210
|
+
/**
|
|
211
|
+
* Focus left a box of `item`: a move by the keys goes back, unless focus went to another box of the same
|
|
212
|
+
* appointment. That is decided once focus is there.
|
|
213
|
+
*/
|
|
214
|
+
blurred(item: T): void;
|
|
206
215
|
/** Takes a move by the keys back (Escape, or focus leaving it). */
|
|
207
216
|
cancelKeys(): void;
|
|
208
217
|
/**
|
|
@@ -211,8 +220,8 @@ export declare class AppointmentEditor<T> implements DragHost<T> {
|
|
|
211
220
|
* timeline month); Up / Down go to another row.
|
|
212
221
|
*/
|
|
213
222
|
private arrowStep;
|
|
214
|
-
root(): HTMLElement
|
|
215
|
-
scroller():
|
|
223
|
+
root(): ComponentBase<HTMLElement>;
|
|
224
|
+
scroller(): ComponentBase | null;
|
|
216
225
|
get model(): SchedulerModel<T>;
|
|
217
226
|
view(): ResolvedView;
|
|
218
227
|
snapMinutes(): number;
|
|
@@ -347,8 +347,8 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
347
347
|
askSeries(appointment: T, action?: SeriesAction): Promise<SeriesScope | null>;
|
|
348
348
|
/** Opens the form for an appointment, or for a new one at `cell` (the selection by default). */
|
|
349
349
|
showAppointmentForm(appointment?: T | null, cell?: SchedulerCell | null): Promise<void>;
|
|
350
|
-
/** Shows an appointment's tooltip next to `anchor` (its box by default). */
|
|
351
|
-
showTooltip(appointment: T, anchor?: HTMLElement): void;
|
|
350
|
+
/** Shows an appointment's tooltip next to the component `anchor` (its box by default). */
|
|
351
|
+
showTooltip(appointment: T, anchor?: ComponentBase<HTMLElement>): void;
|
|
352
352
|
hideTooltip(): void;
|
|
353
353
|
/**
|
|
354
354
|
* Indicates whether an appointment can be at a time, and what conflicts: the appointments it would
|
|
@@ -441,7 +441,10 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
441
441
|
/** One step (a key, `selectCells`) may move the focus more than once: the selection it ends on is told, once. */
|
|
442
442
|
private selectionSoon;
|
|
443
443
|
private watchSelection;
|
|
444
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* Focus on a cell follows the model's focused cell (it keeps its date when the days change): when the model's focus
|
|
446
|
+
* moved and focus is on the cell it left, focus goes to the cell it is on now.
|
|
447
|
+
*/
|
|
445
448
|
private followFocus;
|
|
446
449
|
private watchContent;
|
|
447
450
|
/** When a view with hours shows (not on every date), it scrolls to `scrollHour`: the work start, or now on today. */
|
|
@@ -458,7 +461,8 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
458
461
|
private watchPointer;
|
|
459
462
|
private watchSize;
|
|
460
463
|
/** What the design language says in values the code reads: the size of the phone's bar. */
|
|
461
|
-
private readLook;
|
|
464
|
+
private readonly readLook;
|
|
465
|
+
private readonly useLook;
|
|
462
466
|
/** The browser's print (and `print()`) lays it out whole for paper. */
|
|
463
467
|
private watchPrint;
|
|
464
468
|
/** On paper a big view is built whole: the view is calculated again for it, and back after. */
|
|
@@ -478,12 +482,16 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
478
482
|
private rangeText;
|
|
479
483
|
/** Today on the scheduler's clock, as a date of the browser's (what `currentDate` holds). */
|
|
480
484
|
private today;
|
|
481
|
-
private isRtl;
|
|
482
485
|
private step;
|
|
483
486
|
private changeDate;
|
|
484
487
|
private changeView;
|
|
485
488
|
private say;
|
|
486
489
|
private cellPointerDown;
|
|
490
|
+
/**
|
|
491
|
+
* The cell under a point of the screen, from the cells the view keeps, and its place: the line it is in first (a
|
|
492
|
+
* day column across, a timeline row down) by one cell of each, then the cell in that line where it shows.
|
|
493
|
+
*/
|
|
494
|
+
private cellUnder;
|
|
487
495
|
private fireCell;
|
|
488
496
|
private fireAppointment;
|
|
489
497
|
/** A click on cells (not the end of a swipe): the event; a finger's second tap on the cell opens the form. */
|
|
@@ -496,8 +504,8 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
496
504
|
private openCell;
|
|
497
505
|
/** The keys of a focused appointment: moving and resizing by the keys, Delete, Enter and Space. */
|
|
498
506
|
private appointmentKey;
|
|
499
|
-
/** The
|
|
500
|
-
private
|
|
507
|
+
/** The boxes an appointment shows in now (in the agenda, its rows), as the view built them. */
|
|
508
|
+
private boxesOf;
|
|
501
509
|
private openMore;
|
|
502
510
|
private morePopup;
|
|
503
511
|
/**
|
|
@@ -516,14 +524,20 @@ export declare class Scheduler<T = Record<string, unknown>> extends Control<HTML
|
|
|
516
524
|
* screen of rows; Shift selects. Enter and Space are a double click and a click.
|
|
517
525
|
*/
|
|
518
526
|
private lineKey;
|
|
519
|
-
/** The time rows on one screen. */
|
|
527
|
+
/** The time rows on one screen: as many as the scroll box holds of a row as high as the first time row, the focused line or agenda row. */
|
|
520
528
|
private pageRows;
|
|
529
|
+
/** A cell of a time row in the first column built (a big view builds only the columns in view), with that column. */
|
|
530
|
+
private builtCell;
|
|
521
531
|
/** Whether focus is in the view (not in the bar). */
|
|
522
532
|
private focusInView;
|
|
523
|
-
/** Moves
|
|
533
|
+
/** Moves focus to the focused cell (after the view drew it; in a big view it is scrolled into view and built first). */
|
|
524
534
|
private focusCellElement;
|
|
525
535
|
/** In a big day view: scrolls a column into view (it is then built). */
|
|
526
536
|
private revealColumn;
|
|
537
|
+
/** The day columns' scroll box and the cells of the first and the last time row in a column built, to scroll by. */
|
|
538
|
+
private readonly readGrid;
|
|
539
|
+
/** Scrolls the day columns to the time asked (down) and to the column asked (along, past the ruler of the hours). */
|
|
540
|
+
private readonly scrollGrid;
|
|
527
541
|
/** A timeline's cell along the time at a time of a day (by the day's index), as a share of cells. */
|
|
528
542
|
private tickAt;
|
|
529
543
|
/** The cell a time is in, among the days shown: in the group of `resources` (the first one by default). */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Component } from '@motifx/core';
|
|
1
|
+
import { Component, type ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { SchedulerHost } from './scheduler-host';
|
|
3
|
+
import type { ShownView } from './shown-view';
|
|
3
4
|
interface Props<T> {
|
|
4
5
|
host: SchedulerHost<T>;
|
|
5
6
|
/** The row with the keyboard's focus (the selected one), by its piece's id. */
|
|
@@ -16,7 +17,7 @@ interface Props<T> {
|
|
|
16
17
|
* It follows nothing: whatever the model tells, and when the focus moves, it draws itself again (each part only what
|
|
17
18
|
* it shows), as it does on `reState()` and when an option or a text it shows changes.
|
|
18
19
|
*/
|
|
19
|
-
export declare class AgendaView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
20
|
+
export declare class AgendaView<T> extends Component<HTMLDivElement, Props<T>> implements ShownView {
|
|
20
21
|
/** Its parts are created (in `onConfigured`): until then a draw has nothing to draw on. */
|
|
21
22
|
private made;
|
|
22
23
|
private list;
|
|
@@ -29,6 +30,10 @@ export declare class AgendaView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
|
29
30
|
onConfigured(): void;
|
|
30
31
|
onConfig(): void;
|
|
31
32
|
onDisposing(): void;
|
|
33
|
+
/** No cells: the agenda is a list of rows. */
|
|
34
|
+
cellAt(): ComponentBase | null;
|
|
35
|
+
/** The row of a piece, while its day is shown. */
|
|
36
|
+
boxOf(id: string): ComponentBase | null;
|
|
32
37
|
/** All of the list, as the model has it now. */
|
|
33
38
|
draw(): void;
|
|
34
39
|
/** The row the keys are on (selected once one is chosen); before that the first takes the focus. */
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type Point } from '../../../core/measure';
|
|
3
|
+
import type { CellPlace } from '../model/cell-place';
|
|
1
4
|
import type { Draft } from '../model/draft';
|
|
2
5
|
import type { ResolvedView } from '../model/resolved-view';
|
|
3
6
|
import type { SchedulerModel } from '../model/SchedulerModel';
|
|
@@ -5,8 +8,10 @@ import type { SchedulerModel } from '../model/SchedulerModel';
|
|
|
5
8
|
export type DragMode = 'move' | 'start' | 'end';
|
|
6
9
|
/** What the drag uses of its scheduler. */
|
|
7
10
|
export interface DragHost<T> {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
/** The scheduler: the document it is in is listened to while a drag runs. */
|
|
12
|
+
root(): ComponentBase<HTMLElement>;
|
|
13
|
+
/** The view's scroll box. Given as an element it is deprecated: give the component. */
|
|
14
|
+
scroller(): ComponentBase | HTMLElement | null;
|
|
10
15
|
model: SchedulerModel<T>;
|
|
11
16
|
view(): ResolvedView;
|
|
12
17
|
snapMinutes(): number;
|
|
@@ -20,6 +25,16 @@ export interface DragHost<T> {
|
|
|
20
25
|
/** Let go: saves it (or not); the draft goes when this settles. */
|
|
21
26
|
drop(mode: DragMode, draft: Draft<T>): Promise<void>;
|
|
22
27
|
}
|
|
28
|
+
/** What the drag reads of the view shown. */
|
|
29
|
+
export interface DragView {
|
|
30
|
+
/** The cell under a point of the screen, from the cells the view keeps, and its place. */
|
|
31
|
+
cellUnder(point: Point): {
|
|
32
|
+
place: CellPlace;
|
|
33
|
+
cell: ComponentBase;
|
|
34
|
+
} | null;
|
|
35
|
+
/** The view's scroll box: scrolled near its edges when the host gives an element. */
|
|
36
|
+
scroller(): ComponentBase | null;
|
|
37
|
+
}
|
|
23
38
|
/**
|
|
24
39
|
* Moves and resizes appointments with the pointer. It builds nothing: while a drag goes on it
|
|
25
40
|
* writes a draft (where the appointment would go) that the layout shows with the appointment's own
|
|
@@ -28,13 +43,17 @@ export interface DragHost<T> {
|
|
|
28
43
|
*/
|
|
29
44
|
export declare class AppointmentDrag<T> {
|
|
30
45
|
private readonly host;
|
|
46
|
+
private readonly shown;
|
|
31
47
|
private press;
|
|
32
48
|
private draft;
|
|
33
49
|
private last;
|
|
34
50
|
private stopScroll;
|
|
35
51
|
/** The click that ends a drag is not a click on the appointment. */
|
|
36
52
|
private endedAt;
|
|
37
|
-
|
|
53
|
+
/** After a scroll near an edge the draft follows the pointer, once the scroll is made. */
|
|
54
|
+
private readonly readPointer;
|
|
55
|
+
private readonly followPointer;
|
|
56
|
+
constructor(host: DragHost<T>, shown: DragView);
|
|
38
57
|
/** A drag is going on (a finger's then keeps the page from scrolling). */
|
|
39
58
|
get active(): boolean;
|
|
40
59
|
/** Whether a click now is the end of a drag. */
|
|
@@ -47,6 +66,8 @@ export declare class AppointmentDrag<T> {
|
|
|
47
66
|
/** Stops a drag and takes the appointment back. */
|
|
48
67
|
cancel(): void;
|
|
49
68
|
dispose(): void;
|
|
69
|
+
/** Stops listening to the document while a drag runs. */
|
|
70
|
+
private stopPage;
|
|
50
71
|
private onMove;
|
|
51
72
|
private onUp;
|
|
52
73
|
private onCancel;
|
|
@@ -63,4 +84,6 @@ export declare class AppointmentDrag<T> {
|
|
|
63
84
|
private cellAt;
|
|
64
85
|
/** Near an edge of the scroll box it scrolls, a frame at a time, and the draft follows. */
|
|
65
86
|
private scrollNearEdges;
|
|
87
|
+
/** The view's scroll box now, as a component (a host giving the deprecated element has the view's). */
|
|
88
|
+
private scrollBox;
|
|
66
89
|
}
|
|
@@ -3,6 +3,7 @@ import type { ComponentBase } from '@motifx/core';
|
|
|
3
3
|
export declare class CellAttributes {
|
|
4
4
|
private readonly c;
|
|
5
5
|
constructor(c: ComponentBase);
|
|
6
|
+
/** An attribute written as it is (an empty one too), or taken away with `null`. */
|
|
6
7
|
put(name: string, value: string | null): this;
|
|
7
8
|
flag(name: string, on: boolean): this;
|
|
8
9
|
}
|
|
@@ -11,7 +11,6 @@ export declare class CellWriter<K> {
|
|
|
11
11
|
/** Writes whether the keys are on the cell and whether it is selected. */
|
|
12
12
|
private readonly focus;
|
|
13
13
|
private readonly cells;
|
|
14
|
-
private readonly keys;
|
|
15
14
|
constructor(
|
|
16
15
|
/** Writes what the cell shows: its place, its day and time, its words. */
|
|
17
16
|
look: (key: K, cell: CellAttributes) => void,
|
|
@@ -25,11 +24,15 @@ export declare class CellWriter<K> {
|
|
|
25
24
|
delete(id: number, c: ComponentBase): void;
|
|
26
25
|
/** Every cell's key, to see which show something else now (`write` them). */
|
|
27
26
|
forEach(fn: (key: K, id: number) => void): void;
|
|
27
|
+
/** Every cell with its key, as it is now (another cell template fills the same cells again). */
|
|
28
|
+
each(fn: (key: K, c: ComponentBase) => void): void;
|
|
28
29
|
/** A cell again, all of it: its key shows something else now. */
|
|
29
30
|
write(id: number): void;
|
|
30
31
|
writeLook(): void;
|
|
31
32
|
/** The focus and the selection again: of every cell, or (`ids`) of those only. */
|
|
32
33
|
writeFocus(ids?: Iterable<number>): void;
|
|
33
|
-
/** The
|
|
34
|
-
|
|
34
|
+
/** The key of the first cell `test` picks. */
|
|
35
|
+
find(test: (cell: ComponentBase) => boolean): K | undefined;
|
|
36
|
+
/** The cell an event is on: the cell itself or what it holds. */
|
|
37
|
+
placeOf(e: Event): K | undefined;
|
|
35
38
|
}
|