@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
|
@@ -20,6 +20,8 @@ export declare class KeyedParts<I, P extends ComponentBase> {
|
|
|
20
20
|
get size(): number;
|
|
21
21
|
/** The part of a key, if it is shown. */
|
|
22
22
|
get(key: string): P | undefined;
|
|
23
|
+
/** Every part shown, in no given order. */
|
|
24
|
+
each(fn: (part: P) => void): void;
|
|
23
25
|
show(items: readonly I[]): void;
|
|
24
26
|
/** Every part draws itself again. */
|
|
25
27
|
drawAll(items: readonly I[]): void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Component } from '@motifx/core';
|
|
1
|
+
import { Component, type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { CellPlace } from '../model/cell-place';
|
|
2
3
|
import type { SchedulerHost } from './scheduler-host';
|
|
4
|
+
import type { ShownView } from './shown-view';
|
|
3
5
|
interface Props<T> {
|
|
4
6
|
host: SchedulerHost<T>;
|
|
5
7
|
}
|
|
@@ -11,13 +13,11 @@ interface Props<T> {
|
|
|
11
13
|
* It follows nothing. The month is small: whatever the model tells, the view draws itself again (each part only what
|
|
12
14
|
* it shows), as it does on `reState()` and when an option or a text it shows changes.
|
|
13
15
|
*/
|
|
14
|
-
export declare class MonthView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
16
|
+
export declare class MonthView<T> extends Component<HTMLDivElement, Props<T>> implements ShownView {
|
|
15
17
|
/** Its parts are created (in `onConfigured`): until then a draw has nothing to draw on. */
|
|
16
18
|
private made;
|
|
17
|
-
private grid;
|
|
18
19
|
private lane;
|
|
19
20
|
private date;
|
|
20
|
-
private readonly watch;
|
|
21
21
|
private parts;
|
|
22
22
|
private readonly nameDrawn;
|
|
23
23
|
/** The cells of each week row. */
|
|
@@ -27,19 +27,30 @@ export declare class MonthView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
|
27
27
|
/** The day number of each cell. */
|
|
28
28
|
private readonly numberOf;
|
|
29
29
|
private readonly layerOf;
|
|
30
|
-
/** The cell template the cells
|
|
30
|
+
/** The cell template the cells are filled with: another one fills the same cells again. */
|
|
31
31
|
private cellTemplate;
|
|
32
|
+
/** A cell's content made by the cell template. */
|
|
33
|
+
private readonly contentOf;
|
|
32
34
|
constructor(props: Props<T>);
|
|
33
35
|
private get host();
|
|
34
36
|
onConfigured(): void;
|
|
35
37
|
onMounted(): void;
|
|
38
|
+
private readonly readRoom;
|
|
36
39
|
/** How many lines of appointments fit in a week, under its day numbers. */
|
|
37
|
-
private
|
|
40
|
+
private readonly fitRoom;
|
|
41
|
+
/** The cell showing a place: in the month, its day's column. */
|
|
42
|
+
cellAt(place: CellPlace): ComponentBase | null;
|
|
43
|
+
/** The box of a piece, in the first week that shows it. */
|
|
44
|
+
boxOf(id: string): ComponentBase | null;
|
|
38
45
|
/** All of the view, as the model has it now. */
|
|
39
46
|
draw(): void;
|
|
40
47
|
private makeParts;
|
|
41
|
-
/** The weeks'
|
|
48
|
+
/** The weeks' rows, made once: a row and its cells are kept while the week stays. */
|
|
42
49
|
private makeWeeks;
|
|
50
|
+
/** Another cell template: the same cells, each filled again by it. */
|
|
51
|
+
private fillCells;
|
|
52
|
+
/** A cell's content, after its number: the cell template's, if there is one. */
|
|
53
|
+
private fillCell;
|
|
43
54
|
private makeCell;
|
|
44
55
|
private drawCell;
|
|
45
56
|
private makeName;
|
|
@@ -13,10 +13,16 @@ export declare class SchedulerTouch {
|
|
|
13
13
|
private pinch;
|
|
14
14
|
private swipedAt;
|
|
15
15
|
private finger;
|
|
16
|
+
/** The fingers that landed in the view's scroll box: only there do two fingers zoom. */
|
|
17
|
+
private readonly inScroller;
|
|
18
|
+
/** The time to keep between the fingers once the new zoom is laid out. */
|
|
19
|
+
private anchor;
|
|
20
|
+
private readonly readAnchor;
|
|
21
|
+
private readonly keepAnchor;
|
|
16
22
|
constructor(host: TouchHost);
|
|
17
23
|
/** Whether a click now is the end of a swipe. */
|
|
18
24
|
get justSwiped(): boolean;
|
|
19
|
-
/** Listens on the scheduler
|
|
25
|
+
/** Listens on the scheduler (its component); the function returned stops. */
|
|
20
26
|
attach(): () => void;
|
|
21
27
|
private onPointer;
|
|
22
28
|
private onMenu;
|
|
@@ -33,6 +39,6 @@ export declare class SchedulerTouch {
|
|
|
33
39
|
private startPinch;
|
|
34
40
|
private movePinch;
|
|
35
41
|
private stopPinch;
|
|
36
|
-
/** The view
|
|
42
|
+
/** The part holding the view when the event began in it, `null` outside it (the bar, a sheet). */
|
|
37
43
|
private inContent;
|
|
38
44
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Component } from '@motifx/core';
|
|
1
|
+
import { Component, type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { CellPlace } from '../model/cell-place';
|
|
2
3
|
import type { SchedulerHost } from './scheduler-host';
|
|
4
|
+
import type { ShownView } from './shown-view';
|
|
3
5
|
interface Props<T> {
|
|
4
6
|
host: SchedulerHost<T>;
|
|
5
7
|
}
|
|
@@ -13,13 +15,9 @@ interface Props<T> {
|
|
|
13
15
|
* It follows nothing: it draws what the model says changed (the focus its cells, the window the parts it shows, the
|
|
14
16
|
* clock the layer, anything else all of it), on `reState()` and when an option or a text it shows changes.
|
|
15
17
|
*/
|
|
16
|
-
export declare class TimeView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
18
|
+
export declare class TimeView<T> extends Component<HTMLDivElement, Props<T>> implements ShownView {
|
|
17
19
|
/** Its parts are created (in `onConfigured`): until then a draw has nothing to draw on. */
|
|
18
20
|
private made;
|
|
19
|
-
private headEl;
|
|
20
|
-
private scroller;
|
|
21
|
-
private cellsEl;
|
|
22
|
-
private stopFollow;
|
|
23
21
|
/** How many columns are built on each side of the ones in view: none at first, more each frame up to a screen. */
|
|
24
22
|
private side;
|
|
25
23
|
private stopGrow;
|
|
@@ -32,14 +30,20 @@ export declare class TimeView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
|
32
30
|
private readonly hourDrawn;
|
|
33
31
|
/** The column each "+N more" button stands for, as last drawn. */
|
|
34
32
|
private readonly moreOf;
|
|
35
|
-
/** The cell template the cells
|
|
33
|
+
/** The cell template the cells are filled with: another one fills the same cells again. */
|
|
36
34
|
private cellTemplate;
|
|
35
|
+
/** A cell's content made by the cell template. */
|
|
36
|
+
private readonly contentOf;
|
|
37
37
|
constructor(props: Props<T>);
|
|
38
38
|
private get host();
|
|
39
39
|
onConfigured(): void;
|
|
40
40
|
onMounted(): void;
|
|
41
41
|
onDisposing(): void;
|
|
42
42
|
private changed;
|
|
43
|
+
/** The cell showing a place, while it is built; slot -1 is the all-day row. */
|
|
44
|
+
cellAt(place: CellPlace): ComponentBase | null;
|
|
45
|
+
/** The box of a piece: a timed one, or one in the all-day row. */
|
|
46
|
+
boxOf(id: string): ComponentBase | null;
|
|
43
47
|
/** All of the view, as the model has it now. */
|
|
44
48
|
draw(): void;
|
|
45
49
|
/** The window moved along the columns: the places that show another column, and the parts it shows. */
|
|
@@ -50,12 +54,16 @@ export declare class TimeView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
|
50
54
|
private drawLayer;
|
|
51
55
|
/** The places of the rows' cells, as many as the columns built. */
|
|
52
56
|
private shownPlaces;
|
|
53
|
-
/** The rows
|
|
54
|
-
private
|
|
57
|
+
/** The rows of cells, made once: a cell is made when its place comes and kept while it stays. */
|
|
58
|
+
private makeRows;
|
|
55
59
|
/** The rows of cells and the cells in each, one per place. */
|
|
56
60
|
private drawCells;
|
|
57
61
|
/** A place's cell; a cell template draws into it once it is created, and follows the column shown there. */
|
|
58
62
|
private makeCell;
|
|
63
|
+
/** Another cell template: the same cells, each filled again by it. */
|
|
64
|
+
private fillCells;
|
|
65
|
+
/** A cell's content: the cell template's, if there is one. */
|
|
66
|
+
private fillCell;
|
|
59
67
|
private writeLook;
|
|
60
68
|
/** What decides the column of each place: read once for all of them. */
|
|
61
69
|
private windowNow;
|
|
@@ -70,15 +78,19 @@ export declare class TimeView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
|
70
78
|
private focused;
|
|
71
79
|
private cellTime;
|
|
72
80
|
private work;
|
|
73
|
-
/**
|
|
81
|
+
/** The window follows at the next frame (once however many scroll events come). */
|
|
74
82
|
private followSoon;
|
|
83
|
+
private readonly readView;
|
|
75
84
|
/**
|
|
76
85
|
* In a big view: builds the columns in view and a screen's worth on each side, and moves on when the view nears their
|
|
77
86
|
* edge. The first frame builds only the columns in view; the ones on each side come in the frames after it.
|
|
78
87
|
*/
|
|
79
|
-
private follow;
|
|
88
|
+
private readonly follow;
|
|
80
89
|
/** After the frame is drawn: half a screen more on each side. */
|
|
81
90
|
private growSoon;
|
|
91
|
+
/** The dates and the all-day row scroll along with the hours. */
|
|
92
|
+
private readonly readScroll;
|
|
93
|
+
private readonly scrollHead;
|
|
82
94
|
/** The parts that stay for the life of the view; the lists in them are drawn by `draw`. */
|
|
83
95
|
private makeParts;
|
|
84
96
|
private makeDate;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, type ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { CellTemplateContext } from '../cell-template-context';
|
|
3
|
+
import type { CellPlace } from '../model/cell-place';
|
|
3
4
|
import type { TimelineRow } from '../model/timeline-row';
|
|
4
5
|
import type { SchedulerHost } from './scheduler-host';
|
|
5
6
|
interface Props<T> {
|
|
@@ -37,10 +38,18 @@ export declare class TimelineLine<T> extends Component<HTMLDivElement, Props<T>>
|
|
|
37
38
|
private now;
|
|
38
39
|
/** The day each "+N more" button stands for, as last drawn. */
|
|
39
40
|
private readonly moreOf;
|
|
40
|
-
/**
|
|
41
|
-
private readonly
|
|
41
|
+
/** Each head's content and the header template it was filled with: another one (another view, another prop) fills it again. */
|
|
42
|
+
private readonly filled;
|
|
42
43
|
private row;
|
|
44
|
+
/** The cell template the cells are filled with: another one fills the same cells again (`fillCells`). */
|
|
45
|
+
private cellTemplate;
|
|
46
|
+
/** A cell's content made by the cell template. */
|
|
47
|
+
private readonly contentOf;
|
|
43
48
|
constructor(props: Props<T>);
|
|
49
|
+
/** Another cell template: the same cells, each filled again by it. */
|
|
50
|
+
fillCells(template: Props<T>['cellTemplate']): void;
|
|
51
|
+
/** A cell's content: the cell template's, if there is one. */
|
|
52
|
+
private fillCell;
|
|
44
53
|
private get host();
|
|
45
54
|
/** The key of the row it draws. */
|
|
46
55
|
get rowKey(): string;
|
|
@@ -51,6 +60,14 @@ export declare class TimelineLine<T> extends Component<HTMLDivElement, Props<T>>
|
|
|
51
60
|
onDeactivated(): void;
|
|
52
61
|
/** All of the row, as the model has it now. */
|
|
53
62
|
draw(): void;
|
|
63
|
+
/** Its cell showing a place, while it is built (only the cells in the window are). */
|
|
64
|
+
cellAt(place: CellPlace): ComponentBase | null;
|
|
65
|
+
/** Its box of a piece, while the row shows it. */
|
|
66
|
+
boxOf(id: string): ComponentBase | null;
|
|
67
|
+
/** The place of its cell that has focus, if one has. */
|
|
68
|
+
cellWithFocus(): CellPlace | null;
|
|
69
|
+
/** The piece of its box that has focus, if one has. */
|
|
70
|
+
pieceWithFocus(): string | null;
|
|
54
71
|
/** What the window shows along the time: the cells, the boxes, "+N more", the line at the time it is now. */
|
|
55
72
|
private drawWindow;
|
|
56
73
|
private drawNow;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Component } from '@motifx/core';
|
|
1
|
+
import { Component, type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { CellPlace } from '../model/cell-place';
|
|
2
3
|
import type { SchedulerHost } from './scheduler-host';
|
|
4
|
+
import type { ShownView } from './shown-view';
|
|
3
5
|
interface Props<T> {
|
|
4
6
|
host: SchedulerHost<T>;
|
|
5
7
|
}
|
|
@@ -13,12 +15,12 @@ interface Props<T> {
|
|
|
13
15
|
* It follows nothing: it draws itself when the model tells it what changed, when its sizes are measured, on
|
|
14
16
|
* `reState()` and when an option or a text it shows changes.
|
|
15
17
|
*/
|
|
16
|
-
export declare class TimelineView<T> extends Component<HTMLDivElement, Props<T>> {
|
|
18
|
+
export declare class TimelineView<T> extends Component<HTMLDivElement, Props<T>> implements ShownView {
|
|
17
19
|
/** Its parts are created (in `onConfigured`): until then a draw has nothing to draw on. */
|
|
18
20
|
private made;
|
|
19
21
|
private scroller;
|
|
20
22
|
private rows;
|
|
21
|
-
private probe;
|
|
23
|
+
private readonly probe;
|
|
22
24
|
/** A cell's width and the resource column's, in pixels (measured). */
|
|
23
25
|
private readonly size;
|
|
24
26
|
/** The rows the virtual list keeps off screen, by the row's own number. */
|
|
@@ -28,18 +30,21 @@ export declare class TimelineView<T> extends Component<HTMLDivElement, Props<T>>
|
|
|
28
30
|
/** The sizes are measured (the rows know their heights): the virtual list asks for them only then. */
|
|
29
31
|
private measured;
|
|
30
32
|
private readonly ready;
|
|
31
|
-
/** A scroll asked for
|
|
32
|
-
private
|
|
33
|
-
|
|
33
|
+
/** A scroll asked for and not made yet: made with the next reads, once the cells have their width. */
|
|
34
|
+
private wanted;
|
|
35
|
+
/** A row brought into view, checked once the scroll is made. */
|
|
36
|
+
private revealed;
|
|
34
37
|
private timeline;
|
|
35
38
|
private scale;
|
|
36
39
|
/** The rows of a timeline that is not virtual. */
|
|
37
40
|
private lines;
|
|
38
|
-
/** The rows
|
|
41
|
+
/** The rows made (virtual or not), while they live: a virtual list keeps some off the page for coming back. */
|
|
39
42
|
private readonly shownLines;
|
|
40
43
|
/** What the rows were created for: virtual or not, and the cell template. */
|
|
41
44
|
private madeFor;
|
|
42
|
-
private
|
|
45
|
+
private readonly readSizes;
|
|
46
|
+
private readonly readView;
|
|
47
|
+
private readonly readScroller;
|
|
43
48
|
constructor(props: Props<T>);
|
|
44
49
|
onConfigured(): void;
|
|
45
50
|
onMounted(): void;
|
|
@@ -48,24 +53,30 @@ export declare class TimelineView<T> extends Component<HTMLDivElement, Props<T>>
|
|
|
48
53
|
private changed;
|
|
49
54
|
/** All of the view, as the model has it now. */
|
|
50
55
|
draw(): void;
|
|
56
|
+
/** The cell showing a place, while it is built: a big timeline builds only the cells and rows in view. */
|
|
57
|
+
cellAt(place: CellPlace): ComponentBase | null;
|
|
58
|
+
/** The box of a piece, while it is built. */
|
|
59
|
+
boxOf(id: string): ComponentBase | null;
|
|
60
|
+
/** The rows on the page: a row the virtual list keeps off it for coming back, or lets go of, has no parent. */
|
|
61
|
+
private onPage;
|
|
51
62
|
/** The scroll box with the scale and the rows, virtual or not. */
|
|
52
63
|
private make;
|
|
53
|
-
/** A scroll box made after the view was on the page is watched for its size too. */
|
|
54
|
-
private observeScroller;
|
|
55
64
|
/** The virtual list is given the rows again when they or their heights changed; while an appointment is dragged its rows grow in place and are given after. */
|
|
56
65
|
private giveChanged;
|
|
57
|
-
/** Reads the sizes the design language gives (a cell, a lane, the gap, a row, the resource column) and lays the window out again. */
|
|
58
|
-
private
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/** Builds the cells in view (and a screen's worth on each side), and moves the window on when the view nears its edge. */
|
|
66
|
+
/** Reads the sizes the design language gives (a cell, a lane, the gap, a row, the resource column) with the next reads, and lays the window out again. */
|
|
67
|
+
private measureSizes;
|
|
68
|
+
private readonly takeSizes;
|
|
69
|
+
/** Builds the cells in view (and a screen's worth on each side) with the next reads, and moves the window on when the view nears its edge. */
|
|
62
70
|
private follow;
|
|
71
|
+
private readonly followView;
|
|
63
72
|
/** Gives the virtual list the rows (and their heights); focus stays on the cell or appointment it was on. */
|
|
64
73
|
private give;
|
|
65
|
-
/** Scrolls so that a cell along the time (at its start) and a row are at the start of the view. */
|
|
74
|
+
/** Scrolls so that a cell along the time (at its start) and a row are at the start of the view, once the cells have their width. */
|
|
66
75
|
private scrollTo;
|
|
67
76
|
/** Scrolls a cell (along the time) and a row into view only when they are not in it, and builds them. */
|
|
68
77
|
private reveal;
|
|
78
|
+
/** Makes the scroll asked for, from the scroll box as read; one to a place waits until the cells have their width. */
|
|
79
|
+
private readonly scrollWanted;
|
|
69
80
|
/** Where a row starts in the scroll box, under the head. */
|
|
70
81
|
private rowTop;
|
|
71
82
|
}
|
|
@@ -71,13 +71,13 @@ export interface SchedulerHost<T> {
|
|
|
71
71
|
isSaving(item: T): boolean;
|
|
72
72
|
/** The appointment's tooltip is showing. */
|
|
73
73
|
isOpen(item: T): boolean;
|
|
74
|
-
/** "+N more" of a day, in a group (its index, -1 without groups). */
|
|
75
|
-
openMore(day: Date, group: number, anchor:
|
|
74
|
+
/** "+N more" of a day, in a group (its index, -1 without groups), opened beside `anchor`, the more button. */
|
|
75
|
+
openMore(day: Date, group: number, anchor: ComponentBase): void;
|
|
76
76
|
gridKey(e: KeyboardEvent): void;
|
|
77
77
|
/** A view is on the page. */
|
|
78
78
|
viewShown(): void;
|
|
79
|
-
/** The view's scroll box, for scrolling to a time. */
|
|
80
|
-
setScroller(
|
|
79
|
+
/** The view's scroll box component, for scrolling to a time. */
|
|
80
|
+
setScroller(scroller: ComponentBase | null): void;
|
|
81
81
|
/** The timeline view's scrolling, for scrolling to a time and bringing a cell into view. */
|
|
82
82
|
setTimeline(timeline: TimelineScroll | null): void;
|
|
83
83
|
/** An appointment is being moved or resized (by the pointer or the keys): it is shown where it would go. */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { CellPlace } from '../model/cell-place';
|
|
3
|
+
/** What the scheduler asks of the view it shows: to draw itself again, and the parts it made, kept as it made them. */
|
|
4
|
+
export interface ShownView {
|
|
5
|
+
/** Draws all of the view again. */
|
|
6
|
+
draw(): void;
|
|
7
|
+
/** The cell showing a place, while it is built (a big view builds only the cells in view); `null` where there is none. */
|
|
8
|
+
cellAt(place: CellPlace): ComponentBase | null;
|
|
9
|
+
/** The box of a piece (in the agenda: its row), while it is built; `null` where there is none. */
|
|
10
|
+
boxOf(id: string): ComponentBase | null;
|
|
11
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { ViewKind } from '../model/view-kind';
|
|
2
3
|
/** What the finger gestures use of their scheduler. */
|
|
3
4
|
export interface TouchHost {
|
|
4
|
-
|
|
5
|
+
/** The scheduler: the gestures listen on it. */
|
|
6
|
+
root(): ComponentBase;
|
|
7
|
+
/** The part that holds the view, where a swipe starts. */
|
|
8
|
+
content(): ComponentBase | null;
|
|
5
9
|
/** The view's scroll box. */
|
|
6
|
-
scroller():
|
|
10
|
+
scroller(): ComponentBase | null;
|
|
7
11
|
kind(): ViewKind;
|
|
8
12
|
/** An appointment is being moved or resized. */
|
|
9
13
|
dragging(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component, Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
1
|
+
import { Component, ComponentBase, Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
-
import {
|
|
3
|
+
import { type Box } from "../../core/measure";
|
|
4
4
|
import { Spinner } from "../progress/Spinner";
|
|
5
5
|
import type { PullDownEventArgs } from "./pull-down-event-args";
|
|
6
6
|
import type { ReachBottomEventArgs } from "./reach-bottom-event-args";
|
|
@@ -12,8 +12,12 @@ interface Pull {
|
|
|
12
12
|
pointerId: number;
|
|
13
13
|
startY: number;
|
|
14
14
|
distance: number;
|
|
15
|
+
/** The pull panel's height, read when the pull starts. */
|
|
16
|
+
height: number;
|
|
15
17
|
taken: boolean;
|
|
16
18
|
}
|
|
19
|
+
/** Where a pull stands: pulled, far enough to let go, or refreshing. */
|
|
20
|
+
type PullState = 'pull' | 'release' | 'refreshing';
|
|
17
21
|
/**
|
|
18
22
|
* Content that scrolls in its own box, with scrollbars shown as set by `showScrollbar`, a pull from the top that
|
|
19
23
|
* requests new content (`pullToRefresh`, `onPullDown`), and a request for more content near the end
|
|
@@ -33,11 +37,12 @@ export declare class ScrollView extends Control<HTMLDivElement, ScrollViewProps>
|
|
|
33
37
|
bottomSpinner: Spinner;
|
|
34
38
|
bottomText: Component<HTMLSpanElement>;
|
|
35
39
|
pull: Pull | null;
|
|
40
|
+
/** Where the pull stands now, `null` while there is none. */
|
|
41
|
+
pullState: PullState | null;
|
|
36
42
|
refreshing: boolean;
|
|
37
43
|
loading: boolean;
|
|
38
44
|
ended: boolean;
|
|
39
45
|
scrollTimer: ReturnType<typeof setTimeout> | null;
|
|
40
|
-
sizes: ResizeWatch;
|
|
41
46
|
refreshCount: number;
|
|
42
47
|
pulled: Emitter<PullDownEventArgs>;
|
|
43
48
|
reached: Emitter<ReachBottomEventArgs>;
|
|
@@ -83,23 +88,37 @@ export declare class ScrollView extends Control<HTMLDivElement, ScrollViewProps>
|
|
|
83
88
|
top?: number;
|
|
84
89
|
left?: number;
|
|
85
90
|
}, smooth?: boolean): void;
|
|
86
|
-
/** Scrolls
|
|
87
|
-
scrollToElement(target:
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
/** Scrolls a part of the content into view. */
|
|
92
|
+
scrollToElement(target: ComponentBase, smooth?: boolean): void;
|
|
93
|
+
/** A left position as the page counts it (below zero right to left) as a distance from the inline start. */
|
|
94
|
+
startOf(left: number | undefined): number | undefined;
|
|
90
95
|
/** Starts a refresh as a pull would: the panel appears and `onPullDown` is raised. */
|
|
91
96
|
refresh(): void;
|
|
97
|
+
canRefresh(): boolean;
|
|
98
|
+
/** Opens the panel `height` pixels tall and raises `onPullDown`. */
|
|
99
|
+
startRefresh(height: number): void;
|
|
92
100
|
/** Ends a refresh and closes the panel. */
|
|
93
101
|
release(): void;
|
|
94
102
|
/** Requests more data now, as reaching the end would. */
|
|
95
103
|
loadMore(): boolean;
|
|
104
|
+
canLoad(): boolean;
|
|
105
|
+
/** How much of the content is still below the view. */
|
|
106
|
+
roomBelow(box: Box): number;
|
|
107
|
+
/** Shows the panel at the end and raises `onReachBottom`; `atEnd` when the view stood at the very end. */
|
|
108
|
+
startLoad(atEnd: boolean): void;
|
|
109
|
+
readonly readHeight: () => number;
|
|
110
|
+
readonly scrollToEnd: (height: number) => void;
|
|
96
111
|
/** Checks the position again after the content changes, and requests more data near the end. */
|
|
97
112
|
update(): void;
|
|
98
113
|
pullHeight(): number;
|
|
114
|
+
/** Keeps where the pull stands and writes it on the root for the styles. */
|
|
115
|
+
setPullState(state: PullState | null): void;
|
|
99
116
|
drawTexts(): void;
|
|
100
117
|
handleScroll(): void;
|
|
101
|
-
|
|
118
|
+
/** Looks at the position with the next frame, and requests more data near the end. */
|
|
102
119
|
check(): void;
|
|
120
|
+
readonly readBox: () => Box;
|
|
121
|
+
readonly checkRoom: (box: Box) => void;
|
|
103
122
|
pointerDown(e: PointerEvent): void;
|
|
104
123
|
pointerMove(e: PointerEvent): void;
|
|
105
124
|
pointerUp(e: PointerEvent): void;
|
|
@@ -50,28 +50,35 @@ export declare class BottomSheet extends OverlayPanel<BottomSheetProps> {
|
|
|
50
50
|
/** Moves to the next shorter height. Returns `false` at the lowest. */
|
|
51
51
|
collapse(): boolean;
|
|
52
52
|
protected applyProperty(name: string, value: unknown): void;
|
|
53
|
+
/** Measures what it opens over with the next frame of its window and places the panel at its height then. */
|
|
53
54
|
protected placePanel(): void;
|
|
55
|
+
private place;
|
|
54
56
|
protected panelClosed(): void;
|
|
55
57
|
private get sheet();
|
|
56
58
|
private createSheet;
|
|
57
|
-
/** The heights as they measure now, the
|
|
59
|
+
/** The heights as they measure now, read at the start of a key or a gesture; a `fit` height as last placed. */
|
|
58
60
|
private stops;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
/** The heights in `room`, the lowest first; none taller than full. */
|
|
62
|
+
private stopsIn;
|
|
63
|
+
private heightOf;
|
|
64
|
+
/** As tall as the content needs, measured with no height of its own: a fit, in the write of a placement. */
|
|
61
65
|
private fitHeight;
|
|
62
|
-
/**
|
|
63
|
-
private
|
|
66
|
+
/** What it opens over and the lengths its heights read there. */
|
|
67
|
+
private readRoom;
|
|
68
|
+
/** Makes the probes of the lengths its heights read, the top gap given now included. */
|
|
69
|
+
private probeGap;
|
|
64
70
|
/** How much of the page the on-screen keyboard covers now, in pixels (0 without one). */
|
|
65
71
|
private keyboard;
|
|
66
72
|
/** Its height and how far below it is pulled (a drag past its lowest height). */
|
|
67
73
|
private setSize;
|
|
68
74
|
private renderHandle;
|
|
69
|
-
/** Goes `by` heights up (1) or down (-1). */
|
|
75
|
+
/** Goes `by` heights up (1) or down (-1) from the height it is at, also when that is not placed yet. */
|
|
70
76
|
private step;
|
|
71
77
|
private nearest;
|
|
72
78
|
/** Moves to `detent`, asking first; it goes back where it was when the change is refused. */
|
|
73
79
|
private changeDetent;
|
|
74
80
|
private listenDrag;
|
|
81
|
+
/** Begins a drag in `room`, read when it was pressed: the moves only write. */
|
|
75
82
|
private startDrag;
|
|
76
83
|
private moveDrag;
|
|
77
84
|
private endDrag;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
|
+
import { Control } from "../../core/control";
|
|
3
|
+
import type { ShortcutInfo } from "../../core/shortcut-info";
|
|
4
|
+
import { ListBox } from "../listbox/ListBox";
|
|
5
|
+
import { TextBox } from "../textbox/TextBox";
|
|
6
|
+
import { Toolbar } from "../toolbar/Toolbar";
|
|
7
|
+
import type { ToolbarItem } from "../toolbar/toolbar-item";
|
|
8
|
+
import type { ShortcutEditorKeysChangedEventArgs } from "./shortcut-editor-keys-changed-event-args";
|
|
9
|
+
import type { ShortcutEditorProps } from "./shortcut-editor-props";
|
|
10
|
+
/** A shortcut as the list shows it: the shortcuts with one name are one row. */
|
|
11
|
+
interface ShortcutRow {
|
|
12
|
+
name: string;
|
|
13
|
+
text: string;
|
|
14
|
+
keys: string;
|
|
15
|
+
category: string;
|
|
16
|
+
changed: boolean;
|
|
17
|
+
customizable: boolean;
|
|
18
|
+
/** The places its shortcuts work in: a component, or app-wide (`null`). */
|
|
19
|
+
scopes: (ComponentBase | null)[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The keyboard shortcuts of the app (`shortcuts`), for the user to change: every shortcut with a name, grouped and
|
|
23
|
+
* searchable, with its keys. A field takes the keys pressed and says who uses them already; the toolbar gives them to
|
|
24
|
+
* the selected shortcut, takes its keys away, gives it its own again, or gives every shortcut its own again. It can be
|
|
25
|
+
* put anywhere: a settings page, a window, a tab.
|
|
26
|
+
*
|
|
27
|
+
* The keys the user gives go to `shortcuts.keymap`, one plain object; saving it is up to the app (`onKeysChanged`, or
|
|
28
|
+
* `shortcuts.onKeymapChanged`). The list follows the shortcuts as they are added and taken away.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* <ShortcutEditor height="480px" onKeysChanged={e => settings.save('keys', e.keymap)} />
|
|
32
|
+
*/
|
|
33
|
+
export declare class ShortcutEditor extends Control<HTMLDivElement, ShortcutEditorProps> {
|
|
34
|
+
keysChanged: Emitter<ShortcutEditorKeysChangedEventArgs>;
|
|
35
|
+
bar: Toolbar;
|
|
36
|
+
capture: TextBox;
|
|
37
|
+
status: Component<HTMLOutputElement>;
|
|
38
|
+
list: ListBox<ShortcutRow, string>;
|
|
39
|
+
assignItem: ToolbarItem;
|
|
40
|
+
removeItem: ToolbarItem;
|
|
41
|
+
resetItem: ToolbarItem;
|
|
42
|
+
resetAllItem: ToolbarItem;
|
|
43
|
+
resetAllSeparator: ToolbarItem;
|
|
44
|
+
/** The keys pressed in the field, as `addShortcut` reads them. */
|
|
45
|
+
pressed: string | null;
|
|
46
|
+
rows: ShortcutRow[];
|
|
47
|
+
refreshQueued: boolean;
|
|
48
|
+
constructor(props?: IBaseProp<ShortcutEditorProps>);
|
|
49
|
+
get filter(): ((shortcut: ShortcutInfo) => boolean) | null;
|
|
50
|
+
set filter(value: Bind<((shortcut: ShortcutInfo) => boolean) | null>);
|
|
51
|
+
get grouped(): boolean;
|
|
52
|
+
set grouped(value: Bind<boolean>);
|
|
53
|
+
get searchEnabled(): boolean;
|
|
54
|
+
set searchEnabled(value: Bind<boolean>);
|
|
55
|
+
get resetAllEnabled(): boolean;
|
|
56
|
+
set resetAllEnabled(value: Bind<boolean>);
|
|
57
|
+
get height(): string | null;
|
|
58
|
+
set height(value: Bind<string | null>);
|
|
59
|
+
get label(): string;
|
|
60
|
+
set label(value: Bind<string>);
|
|
61
|
+
get onKeysChanged(): MotifEvent<ShortcutEditorKeysChangedEventArgs>;
|
|
62
|
+
/** The name of the selected shortcut, or `null`. */
|
|
63
|
+
get selected(): string | null;
|
|
64
|
+
set selected(name: string | null);
|
|
65
|
+
/** Reads the shortcuts and their keys again, keeping the selected one. */
|
|
66
|
+
refresh(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Gives the selected shortcut the keys (an empty list: none), or its own again with `null`. Returns `false` when no
|
|
69
|
+
* shortcut the user can change is selected.
|
|
70
|
+
*/
|
|
71
|
+
give(keys: readonly string[] | null): boolean;
|
|
72
|
+
/** Gives every shortcut its own keys again. */
|
|
73
|
+
resetAll(): void;
|
|
74
|
+
queueRefresh(): void;
|
|
75
|
+
/** The list's template: the row's texts as parts of the row's text part. */
|
|
76
|
+
drawRow(row: ShortcutRow, holder: ComponentBase): void;
|
|
77
|
+
drawGroups(): void;
|
|
78
|
+
drawTexts(): void;
|
|
79
|
+
drawTools(): void;
|
|
80
|
+
listenKeys(): void;
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Keymap } from "../../core/keymap";
|
|
2
|
+
export interface ShortcutEditorKeysChangedEventArgs {
|
|
3
|
+
/** The name of the shortcut, or `null` when every shortcut was given its own keys again. */
|
|
4
|
+
name: string | null;
|
|
5
|
+
/** The keys of the shortcut now. Empty when `name` is `null`. */
|
|
6
|
+
keys: readonly string[];
|
|
7
|
+
/** The keys the user gave so far (`shortcuts.keymap`), to save. */
|
|
8
|
+
keymap: Keymap;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Bind } from "@motifx/core";
|
|
2
|
+
import type { ControlProps } from "../../core/control";
|
|
3
|
+
import type { ShortcutInfo } from "../../core/shortcut-info";
|
|
4
|
+
import type { ShortcutEditorKeysChangedEventArgs } from "./shortcut-editor-keys-changed-event-args";
|
|
5
|
+
/** Props of `ShortcutEditor`. Each prop is also a settable property, and a function is tracked. */
|
|
6
|
+
export interface ShortcutEditorProps extends ControlProps {
|
|
7
|
+
/** Which shortcuts are listed. By default, every one the user can change (`customizable`). */
|
|
8
|
+
filter?: Bind<((shortcut: ShortcutInfo) => boolean) | null>;
|
|
9
|
+
/** Lists the shortcuts under their categories. The default is `true`. */
|
|
10
|
+
grouped?: Bind<boolean>;
|
|
11
|
+
/** A search field above the list. The default is `true`. */
|
|
12
|
+
searchEnabled?: Bind<boolean>;
|
|
13
|
+
/** The button that gives every shortcut its own keys again. The default is `true`. */
|
|
14
|
+
resetAllEnabled?: Bind<boolean>;
|
|
15
|
+
/** The height, as a CSS length. By default, it fills the height of its parent. */
|
|
16
|
+
height?: Bind<string | null>;
|
|
17
|
+
/** The accessible name. The default is a kit string ("Keyboard shortcuts"). */
|
|
18
|
+
label?: Bind<string>;
|
|
19
|
+
/** Occurs after the user gives a shortcut other keys, takes them away or gives it its own again. */
|
|
20
|
+
onKeysChanged?: (e: ShortcutEditorKeysChangedEventArgs) => void;
|
|
21
|
+
}
|