@motifx-community/ui 0.1.0-beta.7 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +310 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +1 -1
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +3 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35219 -22569
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/KeyedItems.d.ts +1 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +67 -17
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +2 -2
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1903 -289
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import type { Bind } from '@motifx/core';
|
|
1
|
+
import type { Bind, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { ControlProps } from '../../core/control';
|
|
3
3
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
4
4
|
import type { MenuItemClickEventArgs } from '../../parts/menu/menu-item-click-event-args';
|
|
5
|
+
import type { MenuBarItemsChangedEventArgs } from './menu-bar-items-changed-event-args';
|
|
6
|
+
import type { MenuBarMergeWhen } from './menu-bar-merge-when';
|
|
7
|
+
import type { MenuBarMergedEventArgs } from './menu-bar-merged-event-args';
|
|
8
|
+
import type { MenuBar } from './MenuBar';
|
|
9
|
+
import type { MenuBarCustomization } from './menu-bar-customization';
|
|
10
|
+
import type { MenuBarCustomizedEventArgs } from './menu-bar-customized-event-args';
|
|
11
|
+
import type { MenuBarCustomMenuOpeningEventArgs } from './menu-bar-custom-menu-opening-event-args';
|
|
5
12
|
/** Props of `MenuBar`, in addition to the shared `ControlProps`. Each prop is also a settable, reactive property. */
|
|
6
13
|
export interface MenuBarProps extends ControlProps {
|
|
7
14
|
/** The accessible name of the bar. This is the same property as `text`. */
|
|
@@ -15,6 +22,41 @@ export interface MenuBarProps extends ControlProps {
|
|
|
15
22
|
* The default is `true`.
|
|
16
23
|
*/
|
|
17
24
|
openOnHover?: Bind<boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* The user can hide and move the items from the menu of the right button or the menu key (Shift+F10). Each item can
|
|
27
|
+
* say otherwise (`customizable`). The default is `false`.
|
|
28
|
+
*/
|
|
29
|
+
customizable?: Bind<boolean>;
|
|
30
|
+
/** What the user changed, as `onCustomized` reported it, to give back. */
|
|
31
|
+
customization?: Bind<MenuBarCustomization | null>;
|
|
32
|
+
/** Commands the user can add in the customizer, each with a `key`. Without it, the app's commands (`commands`). */
|
|
33
|
+
commands?: Bind<readonly MenuItem[]>;
|
|
34
|
+
/** The customizer has a keyboard page (`ShortcutEditor`), to give the app's shortcuts other keys. The default is `true`. */
|
|
35
|
+
customizerKeyboard?: Bind<boolean>;
|
|
36
|
+
/** The menu of the right button offers the customizer when `customizable` is on. The default is `true`. */
|
|
37
|
+
customizer?: Bind<boolean>;
|
|
38
|
+
/** The main bar of the page: other bars merge their items into it (`mergeInto`). The default is `false`. */
|
|
39
|
+
mergeHost?: Bind<boolean>;
|
|
40
|
+
/** The name of the main bar, when there are several. The default is `'main'`. */
|
|
41
|
+
mergeName?: Bind<string>;
|
|
42
|
+
/** The main bar to merge into: its name or the bar itself. Merged, this bar's items are shown there. */
|
|
43
|
+
mergeInto?: Bind<string | MenuBar | null>;
|
|
44
|
+
/** When the bar merges. The default is `'shown'`. */
|
|
45
|
+
mergeWhen?: Bind<MenuBarMergeWhen>;
|
|
46
|
+
/** The place whose being shown or focused merges the bar. The default is the component the bar is in. */
|
|
47
|
+
mergeScope?: Bind<ComponentBase | null>;
|
|
48
|
+
/** The bar is hidden while it is merged. The default is `true`. */
|
|
49
|
+
hideWhenMerged?: Bind<boolean>;
|
|
50
|
+
/** On the main bar: occurs when a bar merged into it. */
|
|
51
|
+
onMerged?: (e: MenuBarMergedEventArgs) => void;
|
|
52
|
+
/** On the main bar: occurs when a bar left it. */
|
|
53
|
+
onUnmerged?: (e: MenuBarMergedEventArgs) => void;
|
|
18
54
|
/** Occurs when an item is selected, after the item's own `click`. */
|
|
19
55
|
onItemClick?: (e: MenuItemClickEventArgs) => void;
|
|
56
|
+
/** Occurs when the user changed the bar, with everything changed so far, to save. */
|
|
57
|
+
onCustomized?: (e: MenuBarCustomizedEventArgs) => void;
|
|
58
|
+
/** Occurs before the menu of the right button opens, to add commands of your own or leave some out. */
|
|
59
|
+
onCustomMenuOpening?: (e: MenuBarCustomMenuOpeningEventArgs) => void;
|
|
60
|
+
/** Occurs after a change by path (`addItem`, `removeItem`, `moveItem`, `updateItem`), with the new list to keep. */
|
|
61
|
+
onItemsChanged?: (e: MenuBarItemsChangedEventArgs) => void;
|
|
20
62
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { MenuBar } from './MenuBar';
|
|
3
|
+
import type { MenuNode } from './menu-node';
|
|
4
|
+
import type { MergedItem } from './merged-item';
|
|
5
|
+
/** The merged item each drawn item stands for, so that a click or the user's change reaches the bar it comes from. */
|
|
6
|
+
export declare const mergedOf: WeakMap<MenuItem, MergedItem>;
|
|
7
|
+
/** An item of a bar as merged, with its shown children; `prefix` names the item after its bar. */
|
|
8
|
+
export declare function mergedFrom(node: MenuNode, owner: MenuBar, prefix?: string): MergedItem;
|
|
9
|
+
/** One level: the main bar's items, then the items of each merged bar in turn, each by its `merge` and `mergeAt`. */
|
|
10
|
+
export declare function mergedLevel(base: readonly MergedItem[], adds: readonly (readonly MergedItem[])[]): MergedItem[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MenuBar } from './MenuBar';
|
|
2
|
+
export declare const mergeHosts: {
|
|
3
|
+
get(name: string): MenuBar | null;
|
|
4
|
+
/** Makes `bar` the main bar of `name`; the bars waiting for it merge now. */
|
|
5
|
+
add(name: string, bar: MenuBar): void;
|
|
6
|
+
remove(name: string, bar: MenuBar): void;
|
|
7
|
+
wait(bar: MenuBar): void;
|
|
8
|
+
stopWaiting(bar: MenuBar): void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { MenuBar } from './MenuBar';
|
|
3
|
+
import type { MenuNode } from './menu-node';
|
|
4
|
+
/** An item as the main bar draws it while other bars are merged into it. */
|
|
5
|
+
export interface MergedItem {
|
|
6
|
+
/** Its key in its own bar. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Unique among the items of the main bar: an item of a merged bar is named after that bar too. */
|
|
9
|
+
key: string;
|
|
10
|
+
/** As its bar was given it. */
|
|
11
|
+
item: MenuItem;
|
|
12
|
+
drawn: MenuItem;
|
|
13
|
+
/** The bar it comes from: its clicks and the user's changes go there. */
|
|
14
|
+
owner: MenuBar;
|
|
15
|
+
node: MenuNode;
|
|
16
|
+
holds: boolean;
|
|
17
|
+
children(): MergedItem[];
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
3
3
|
import { Field } from '../../parts/field/Field';
|
|
4
4
|
import type { ValidationRule } from '../../parts/validation/validation-rule';
|
|
@@ -60,15 +60,24 @@ export declare class NumberBox extends Field<number | null, NumberBoxProps> {
|
|
|
60
60
|
set autocomplete(value: Bind<string>);
|
|
61
61
|
/** The value as displayed without focus, or `''` when empty. Reactive. */
|
|
62
62
|
get formattedValue(): string;
|
|
63
|
-
|
|
63
|
+
/** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
64
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
65
|
+
/** The text in the field now: what the user typed, or the value as it is shown. */
|
|
66
|
+
get inputText(): string;
|
|
64
67
|
get onEnter(): MotifEvent<EnterKeyEventArgs<number | null>>;
|
|
65
68
|
/** Adds `step` × `times`, kept within `min` / `max`, as the up arrow does. */
|
|
66
69
|
stepUp(times?: number): void;
|
|
67
70
|
/** Subtracts `step` × `times`, as the down arrow does. */
|
|
68
71
|
stepDown(times?: number): void;
|
|
69
|
-
/** Selects all text. */
|
|
72
|
+
/** Selects all text, soon after the call: core runs it at its own time. */
|
|
70
73
|
select(): void;
|
|
71
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Puts `text` in the field as if the user typed it in place of what was there: what a number is not written with is
|
|
76
|
+
* not taken, the caret goes to its end, and the value follows as typing commits it (`updateOn`).
|
|
77
|
+
*/
|
|
78
|
+
typeText(text: string): void;
|
|
79
|
+
protected get controlTag(): string;
|
|
80
|
+
protected createControl(): ComponentBase;
|
|
72
81
|
protected emptyValue(): number | null;
|
|
73
82
|
protected normalizeValue(value: number | null): number | null;
|
|
74
83
|
/** `decimals` changed: the value takes it, and `x-model` gets the rounded value. */
|
|
@@ -18,7 +18,7 @@ export interface NumberBoxProps extends FieldProps<number | null> {
|
|
|
18
18
|
wheel?: Bind<boolean>;
|
|
19
19
|
/** The display format without focus: currency, percent, digits… */
|
|
20
20
|
format?: Bind<Intl.NumberFormatOptions>;
|
|
21
|
-
/** The locale of the format and of the input. The default is the
|
|
21
|
+
/** The locale of the format and of the input. The default is the kit's language (`uiLocale.locale`). */
|
|
22
22
|
locale?: Bind<string>;
|
|
23
23
|
/**
|
|
24
24
|
* The number of digits after the decimal point. Every value is rounded to this precision (entered, provided or set
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
1
|
+
import { Emitter, type Bind, type Component, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Field } from "../../parts/field/Field";
|
|
3
3
|
import type { ValidationRule } from "../../parts/validation/validation-rule";
|
|
4
4
|
import type { OtpCharset } from "./otp-charset";
|
|
5
5
|
import type { OtpCompletedEventArgs } from "./otp-completed-event-args";
|
|
6
6
|
import type { OtpInputProps } from "./otp-input-props";
|
|
7
7
|
interface Cell {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
boxPart: Component<HTMLSpanElement>;
|
|
9
|
+
charPart: Component<HTMLSpanElement>;
|
|
10
|
+
caretPart: Component<HTMLSpanElement>;
|
|
11
|
+
/** The separator after the box, in the page only at the end of a group. */
|
|
12
|
+
separatorPart: Component<HTMLSpanElement>;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* A one-time code in a row of boxes. It is one real input under the boxes, so typing, pasting a whole code, the code a
|
|
@@ -23,9 +25,15 @@ interface Cell {
|
|
|
23
25
|
export declare class OtpInput extends Field<string, OtpInputProps> {
|
|
24
26
|
completed: Emitter<OtpCompletedEventArgs>;
|
|
25
27
|
cells: Cell[];
|
|
26
|
-
|
|
28
|
+
rowPart: Component<HTMLDivElement>;
|
|
27
29
|
/** The complete value told last, so that it is told once. */
|
|
28
30
|
told: string | null;
|
|
31
|
+
/** A character typed into a filled box, from its `beforeinput` to its `input`: it takes the place of the next one. */
|
|
32
|
+
replacing: {
|
|
33
|
+
at: number;
|
|
34
|
+
data: string;
|
|
35
|
+
before: string;
|
|
36
|
+
} | null;
|
|
29
37
|
constructor(props?: IBaseProp<OtpInputProps>);
|
|
30
38
|
get length(): number;
|
|
31
39
|
set length(value: Bind<number>);
|
|
@@ -52,20 +60,23 @@ export declare class OtpInput extends Field<string, OtpInputProps> {
|
|
|
52
60
|
get isComplete(): boolean;
|
|
53
61
|
/** Empties the boxes and puts the caret in the first one. */
|
|
54
62
|
clear(): void;
|
|
55
|
-
protected
|
|
63
|
+
protected get controlTag(): string;
|
|
64
|
+
protected createControl(): ComponentBase;
|
|
56
65
|
protected emptyValue(): string;
|
|
57
66
|
protected normalizeValue(value: string): string;
|
|
58
67
|
protected builtInRules(): ValidationRule<string>[];
|
|
59
68
|
protected renderValue(value: string): void;
|
|
60
|
-
|
|
69
|
+
/** The hidden input that takes the keys, as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
70
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
61
71
|
/** The characters of `value` the field takes, at most `length` of them. */
|
|
62
72
|
accepted(value: string): string;
|
|
63
73
|
renderInput(): void;
|
|
64
74
|
renderRules(): void;
|
|
65
75
|
fitValue(): void;
|
|
66
76
|
renderCells(): void;
|
|
67
|
-
drawCells(): void;
|
|
77
|
+
drawCells(caret?: number): void;
|
|
68
78
|
beforeInput(e: InputEvent): void;
|
|
79
|
+
withoutPushed(text: string, e: InputEvent): string;
|
|
69
80
|
typed(e: Event): void;
|
|
70
81
|
placeCaret(): void;
|
|
71
82
|
pressed(e: PointerEvent): void;
|
|
@@ -31,7 +31,9 @@ export declare class Pagination extends Control<HTMLElement, PaginationProps> {
|
|
|
31
31
|
/** The full look does not fit (adaptive), and the room it did not fit in. */
|
|
32
32
|
private narrow;
|
|
33
33
|
private narrowRoom;
|
|
34
|
-
|
|
34
|
+
/** What holds it: the room it has decides the adaptive look. */
|
|
35
|
+
private holder;
|
|
36
|
+
private stopRoom;
|
|
35
37
|
private ready;
|
|
36
38
|
constructor(props?: IBaseProp<PaginationProps>);
|
|
37
39
|
get page(): number;
|
|
@@ -76,11 +78,14 @@ export declare class Pagination extends Control<HTMLElement, PaginationProps> {
|
|
|
76
78
|
private userMoved;
|
|
77
79
|
/** Another page size: the first item of the page stays on the page shown. */
|
|
78
80
|
private setSize;
|
|
81
|
+
/** The adaptive look: compact while the full one is wider than the room it has. Seen in the next frame. */
|
|
82
|
+
private fit;
|
|
83
|
+
private readonly readFit;
|
|
79
84
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
85
|
+
* Compact already, the full look is drawn and measured in the same write (nothing is painted in between), so its
|
|
86
|
+
* width is the one it has now.
|
|
82
87
|
*/
|
|
83
|
-
private
|
|
88
|
+
private readonly drawFit;
|
|
84
89
|
/** Draws it as it is now; `fit` again afterwards unless the drawing is the fit's own. */
|
|
85
90
|
private draw;
|
|
86
91
|
/** A button per page size, kept while the size stays, the one in use pressed. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
+
import { type Box } from "../../core/measure";
|
|
4
|
+
import type { Placed } from "../../parts/popup/placed";
|
|
3
5
|
import type { PopupPlacement } from "../../parts/popup/popup-placement";
|
|
4
6
|
import { Button } from "../button/Button";
|
|
5
7
|
import type { TooltipTarget } from "../tooltip/tooltip-target";
|
|
@@ -21,20 +23,30 @@ import type { PopoverShowOn } from "./popover-show-on";
|
|
|
21
23
|
* </Popover>
|
|
22
24
|
*/
|
|
23
25
|
export declare class Popover extends Control<HTMLDivElement, PopoverProps> {
|
|
26
|
+
/** The ids of the popover and its title, for the attributes that point at them. */
|
|
27
|
+
popoverId: string;
|
|
28
|
+
titleId: string;
|
|
24
29
|
arrowPart: Component<HTMLSpanElement>;
|
|
25
30
|
header: Component<HTMLDivElement>;
|
|
26
31
|
titlePart: Component<HTMLDivElement>;
|
|
27
32
|
closeButton: Button;
|
|
28
33
|
body: Component<HTMLDivElement>;
|
|
29
34
|
contentPart: ComponentBase | null;
|
|
30
|
-
|
|
35
|
+
/** The target it opens next to. */
|
|
36
|
+
anchor: ComponentBase | null;
|
|
31
37
|
opened: boolean;
|
|
32
38
|
placedItself: boolean;
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
/** Stops listening to the page while it is open. */
|
|
40
|
+
stopPage: (() => void)[];
|
|
41
|
+
/** Takes back the placing asked for last. */
|
|
42
|
+
stopPlace: (() => void) | null;
|
|
43
|
+
/** The arrow as read with the last placing: its length along the edge decides how near a corner it may go. */
|
|
44
|
+
arrowBox: Box | null;
|
|
35
45
|
showTimer: ReturnType<typeof setTimeout> | null;
|
|
36
46
|
hideTimer: ReturnType<typeof setTimeout> | null;
|
|
37
47
|
unlink: (() => void) | null;
|
|
48
|
+
/** Focus is leaving the target (`hover`) or the popover: where it lands decides whether it closes. */
|
|
49
|
+
leaving: 'target' | 'popover' | null;
|
|
38
50
|
telling: boolean;
|
|
39
51
|
openedEmitter: Emitter<void>;
|
|
40
52
|
closing: Emitter<PopoverClosingEventArgs>;
|
|
@@ -83,18 +95,23 @@ export declare class Popover extends Control<HTMLDivElement, PopoverProps> {
|
|
|
83
95
|
toggle(): void;
|
|
84
96
|
/** Repositions it relative to its target, for example after its content changes size. */
|
|
85
97
|
place(): void;
|
|
98
|
+
readArrow: () => Box;
|
|
99
|
+
keepArrow: (arrow: Box) => void;
|
|
100
|
+
drawArrow: (where: Placed) => void;
|
|
101
|
+
moveFocusIn(): void;
|
|
86
102
|
tell(open: boolean): void;
|
|
87
103
|
drawHeader(): void;
|
|
88
104
|
drawContent(): void;
|
|
89
|
-
|
|
105
|
+
/** The target given, when it has an element to open next to (a fragment has none). */
|
|
106
|
+
takeIn(target: TooltipTarget | null | undefined): ComponentBase | null;
|
|
107
|
+
attach(anchor: ComponentBase | null, again?: boolean): void;
|
|
90
108
|
pointerIn(): void;
|
|
91
109
|
pointerOut(): void;
|
|
92
110
|
clearTimers(): void;
|
|
93
|
-
listen(
|
|
111
|
+
listen(anchor: ComponentBase): void;
|
|
94
112
|
stopListening(): void;
|
|
95
|
-
schedule: () => void;
|
|
96
|
-
onScroll: (e: Event) => void;
|
|
97
113
|
onPointerDown: (e: PointerEvent) => void;
|
|
114
|
+
onFocusIn: (e: FocusEvent) => void;
|
|
98
115
|
keyDown(e: KeyboardEvent): void;
|
|
99
116
|
focusOut(e: FocusEvent): void;
|
|
100
117
|
protected applyProperty(name: string, value: unknown): void;
|
|
@@ -6,7 +6,7 @@ import type { PopoverClosingEventArgs } from './popover-closing-event-args';
|
|
|
6
6
|
import type { PopoverShowOn } from './popover-show-on';
|
|
7
7
|
/** Props of `Popover`. Each prop is also a settable property, and a function is tracked. */
|
|
8
8
|
export interface PopoverProps extends ControlProps {
|
|
9
|
-
/** The
|
|
9
|
+
/** The component it opens next to. */
|
|
10
10
|
target?: Bind<TooltipTarget | null | undefined>;
|
|
11
11
|
/** A title in the header. This is the same property as `text`. */
|
|
12
12
|
title?: Bind<string>;
|
|
@@ -54,6 +54,7 @@ export declare class ProgressBar extends Control<HTMLDivElement, ProgressBarProp
|
|
|
54
54
|
onMounted(): void;
|
|
55
55
|
private get parts();
|
|
56
56
|
private buildParts;
|
|
57
|
+
/** The ring, right after the track; made the first time it is needed. */
|
|
57
58
|
private buildCircle;
|
|
58
59
|
private renderLabel;
|
|
59
60
|
private renderValue;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
1
2
|
/** What the design language gives a wave: lengths in px, times in ms, the shares of the work as 0 to 1. */
|
|
2
3
|
export interface WaveLook {
|
|
3
4
|
amplitude: number;
|
|
@@ -20,34 +21,34 @@ export interface WaveLook {
|
|
|
20
21
|
*/
|
|
21
22
|
export declare class ProgressWave {
|
|
22
23
|
private readonly host;
|
|
24
|
+
private readonly holder;
|
|
23
25
|
readonly shape: 'line' | 'circle';
|
|
24
26
|
private readonly path;
|
|
25
|
-
/** The line's own drawing; the arc's path goes into the circle. */
|
|
27
|
+
/** The line's own drawing; the arc's path goes into the circle (`holder`). */
|
|
26
28
|
private readonly svg;
|
|
27
|
-
private readonly
|
|
28
|
-
private readonly
|
|
29
|
-
|
|
29
|
+
private readonly stopSize;
|
|
30
|
+
private readonly stopSight;
|
|
31
|
+
/** Reduced motion asked for in the bar's window. */
|
|
32
|
+
private calm;
|
|
33
|
+
private readonly stopCalm;
|
|
30
34
|
private look;
|
|
31
35
|
private target;
|
|
32
36
|
private swingFrom;
|
|
33
37
|
private swingTo;
|
|
34
38
|
private swingSince;
|
|
35
39
|
private phase;
|
|
36
|
-
private
|
|
40
|
+
private stopFrames;
|
|
37
41
|
private last;
|
|
38
42
|
private seen;
|
|
39
|
-
|
|
40
|
-
private height;
|
|
41
|
-
private thickness;
|
|
42
|
-
constructor(host: HTMLElement, holder: Element, shape: 'line' | 'circle', look: WaveLook);
|
|
43
|
+
constructor(host: Component<HTMLElement>, holder: ComponentBase, shape: 'line' | 'circle', look: WaveLook);
|
|
43
44
|
/** The language's wave and the share of the work done now (0 to 1). */
|
|
44
45
|
update(look: WaveLook, target: number): void;
|
|
45
|
-
/** Reads the size of the drawing and the thickness of its line again. */
|
|
46
|
-
measure(): void;
|
|
47
46
|
dispose(): void;
|
|
47
|
+
/** Draws at every frame of the bar's window until nothing moves. */
|
|
48
48
|
private kick;
|
|
49
49
|
private stop;
|
|
50
|
-
private readonly
|
|
50
|
+
private readonly readFrame;
|
|
51
|
+
private readonly drawFrame;
|
|
51
52
|
private swingAt;
|
|
52
53
|
private draw;
|
|
53
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Bind, type ComponentBase, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { ControlSize } from '../../core/control-size';
|
|
4
4
|
import type { ProgressTone } from './progress-tone';
|
|
@@ -19,12 +19,12 @@ import type { SpinnerProps } from './spinner-props';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class Spinner extends Control<HTMLDivElement, SpinnerProps> {
|
|
21
21
|
/**
|
|
22
|
-
* Covers a container with a spinner until the returned function is called. The
|
|
23
|
-
* cannot be clicked or focused (
|
|
24
|
-
* inside moves to the spinner and returns afterward. A static container becomes
|
|
22
|
+
* Covers a container with a spinner until the returned function is called. The components the
|
|
23
|
+
* container holds cannot be clicked or focused (they are `inert`), the container is `aria-busy`, and
|
|
24
|
+
* focus that was inside moves to the spinner and returns afterward. A static container becomes
|
|
25
25
|
* `position: relative` in the meantime.
|
|
26
26
|
*/
|
|
27
|
-
static cover(
|
|
27
|
+
static cover(host: ComponentBase, props?: SpinnerProps): () => void;
|
|
28
28
|
constructor(props?: IBaseProp<SpinnerProps>);
|
|
29
29
|
get label(): string;
|
|
30
30
|
set label(value: Bind<string>);
|
|
@@ -20,7 +20,7 @@ export interface ProgressBarProps extends ControlProps {
|
|
|
20
20
|
labelPosition?: Bind<ProgressLabelPosition>;
|
|
21
21
|
/** Shows the percentage next to the label. */
|
|
22
22
|
showValue?: Bind<boolean>;
|
|
23
|
-
/** The default is the
|
|
23
|
+
/** The default is the kit's language (`uiLocale.locale`). */
|
|
24
24
|
locale?: Bind<string>;
|
|
25
25
|
/** The default is `'accent'`. */
|
|
26
26
|
tone?: Bind<ProgressTone>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
1
|
+
import { Emitter, type Bind, type Component, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
3
|
import { type CodeImage } from "../../parts/code/code-image";
|
|
4
4
|
import { type QrLevel, type QrMatrix } from "../../parts/code/qr-encode";
|
|
@@ -17,10 +17,14 @@ import type { QRCodeProps } from "./qr-code-props";
|
|
|
17
17
|
export declare class QRCode extends Control<HTMLDivElement, QRCodeProps> {
|
|
18
18
|
encodeFailed: Emitter<QRCodeFailedEventArgs>;
|
|
19
19
|
svg: SVGSVGElement;
|
|
20
|
+
svgPart: Component<SVGSVGElement>;
|
|
20
21
|
path: SVGPathElement;
|
|
22
|
+
pathPart: Component<SVGPathElement>;
|
|
21
23
|
logoImage: HTMLImageElement;
|
|
24
|
+
logoPart: Component<HTMLImageElement>;
|
|
22
25
|
matrix: QrMatrix | null;
|
|
23
26
|
image: CodeImage | null;
|
|
27
|
+
invalid: boolean;
|
|
24
28
|
constructor(props?: IBaseProp<QRCodeProps>);
|
|
25
29
|
get value(): string;
|
|
26
30
|
set value(value: Bind<string>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Field } from '../../parts/field/Field';
|
|
3
3
|
import type { ItemField } from '../../parts/list/item-field';
|
|
4
4
|
import type { RadioGroupOrientation } from './radio-group-orientation';
|
|
@@ -35,21 +35,21 @@ export declare class RadioGroup<T = unknown> extends Field<T | null, RadioGroupP
|
|
|
35
35
|
set columns(value: Bind<number>);
|
|
36
36
|
get name(): string;
|
|
37
37
|
set name(value: Bind<string>);
|
|
38
|
-
/** The
|
|
39
|
-
get
|
|
38
|
+
/** The part with `role="radiogroup"`. */
|
|
39
|
+
get listPart(): ComponentBase;
|
|
40
40
|
/**
|
|
41
41
|
* Re-reads the items after they have been changed in place, including their text, values and states. Your items can
|
|
42
42
|
* be plain or reactive, and the group reads them as they are.
|
|
43
43
|
*/
|
|
44
44
|
refresh(): void;
|
|
45
|
-
/** The native radios, in item order. */
|
|
46
|
-
get
|
|
45
|
+
/** The native radios as components, in item order. */
|
|
46
|
+
get inputParts(): readonly ComponentBase<HTMLInputElement>[];
|
|
47
47
|
onMounted(): void;
|
|
48
48
|
get canFocus(): boolean;
|
|
49
49
|
get focused(): boolean;
|
|
50
50
|
/** Sets focus on the selected option, or on the first available one. */
|
|
51
51
|
focus(): boolean;
|
|
52
|
-
protected createControl():
|
|
52
|
+
protected createControl(): ComponentBase;
|
|
53
53
|
protected emptyValue(): T | null;
|
|
54
54
|
protected renderValue(): void;
|
|
55
55
|
protected applyProperty(name: string, value: unknown): void;
|
|
@@ -57,6 +57,7 @@ export declare class RadioGroup<T = unknown> extends Field<T | null, RadioGroupP
|
|
|
57
57
|
private renderItems;
|
|
58
58
|
private lookOf;
|
|
59
59
|
private drawItems;
|
|
60
|
+
/** A row at the end of the list: a label with its radio and text. */
|
|
60
61
|
private createRow;
|
|
61
62
|
/** The help line sits outside the label: it describes the option, it does not name it. */
|
|
62
63
|
private renderHelp;
|
|
@@ -66,6 +67,7 @@ export declare class RadioGroup<T = unknown> extends Field<T | null, RadioGroupP
|
|
|
66
67
|
/** One Tab stop: the chosen option, or the first one that can be chosen. */
|
|
67
68
|
private renderStops;
|
|
68
69
|
private stopRow;
|
|
70
|
+
/** The row whose radio an event came from. */
|
|
69
71
|
private rowOf;
|
|
70
72
|
private keyDown;
|
|
71
73
|
/** Arrow keys choose the option they move to; read-only, they only move. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Bind, IBaseProp } from '@motifx/core';
|
|
1
|
+
import type { Bind, ComponentBase, IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Field } from '../../parts/field/Field';
|
|
3
3
|
import type { RatingProps } from './rating-props';
|
|
4
4
|
import type { RatingTone } from './rating-tone';
|
|
@@ -34,7 +34,7 @@ export declare class Rating extends Field<number | null, RatingProps> {
|
|
|
34
34
|
get filledIcon(): string | null;
|
|
35
35
|
set filledIcon(value: Bind<string | null>);
|
|
36
36
|
onMounted(): void;
|
|
37
|
-
protected createControl():
|
|
37
|
+
protected createControl(): ComponentBase;
|
|
38
38
|
protected emptyValue(): number | null;
|
|
39
39
|
protected normalizeValue(value: number | null): number | null;
|
|
40
40
|
/** Draws the value, or what the pointer points at, and says it. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Component, Emitter, type Bind, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
1
|
+
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
3
|
import type { WindowBox } from "../../parts/window/window-box";
|
|
4
4
|
import type { ResizeEventArgs } from "./resize-event-args";
|
|
5
|
+
import type { ResizeStart } from "./resize-start";
|
|
5
6
|
import type { ResizableProps, ResizeEdge, ResizeHandles, ResizeSize } from "./resizable-props";
|
|
6
7
|
interface Limits {
|
|
7
8
|
minW: number;
|
|
@@ -24,9 +25,14 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
24
25
|
starting: Emitter<ResizeEventArgs>;
|
|
25
26
|
resizing: Emitter<ResizeEventArgs>;
|
|
26
27
|
resized: Emitter<ResizeEventArgs>;
|
|
27
|
-
frame: HTMLDivElement
|
|
28
|
+
frame: Component<HTMLDivElement>;
|
|
29
|
+
/** The grip in the end corner, which is the Tab stop for keyboard resizing. */
|
|
28
30
|
grip: Component<HTMLDivElement>;
|
|
29
31
|
live: Component<HTMLSpanElement>;
|
|
32
|
+
/** The handle of each edge and corner. */
|
|
33
|
+
private readonly handleParts;
|
|
34
|
+
/** The edge and the event of the resize that ended, told with the size once it is laid out. */
|
|
35
|
+
private ended;
|
|
30
36
|
constructor(props?: IBaseProp<ResizableProps>);
|
|
31
37
|
get handles(): ResizeHandles;
|
|
32
38
|
set handles(value: Bind<ResizeHandles>);
|
|
@@ -38,8 +44,8 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
38
44
|
set maxWidth(value: Bind<number | null>);
|
|
39
45
|
get maxHeight(): number | null;
|
|
40
46
|
set maxHeight(value: Bind<number | null>);
|
|
41
|
-
get area(): 'parent' |
|
|
42
|
-
set area(value: Bind<'parent' |
|
|
47
|
+
get area(): 'parent' | ComponentBase | null;
|
|
48
|
+
set area(value: Bind<'parent' | ComponentBase | null>);
|
|
43
49
|
get keepAspectRatio(): boolean;
|
|
44
50
|
set keepAspectRatio(value: Bind<boolean>);
|
|
45
51
|
get step(): number;
|
|
@@ -61,24 +67,20 @@ export declare class Resizable extends Control<HTMLDivElement, ResizableProps> {
|
|
|
61
67
|
get onResized(): MotifEvent<ResizeEventArgs>;
|
|
62
68
|
/** The current size in pixels. */
|
|
63
69
|
get currentSize(): ResizeSize;
|
|
64
|
-
/** The grip in the end corner, which is the Tab stop for keyboard resizing. */
|
|
65
|
-
get gripElement(): HTMLDivElement;
|
|
66
70
|
length(value: number | string | null | undefined): string;
|
|
67
71
|
allowed(): Set<ResizeEdge>;
|
|
68
72
|
drawHandles(): void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
w: number;
|
|
72
|
-
h: number;
|
|
73
|
-
};
|
|
73
|
+
areaOf(): ComponentBase | null;
|
|
74
|
+
readStart(): ResizeStart;
|
|
74
75
|
limits(): Limits;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
applyBox(box: WindowBox): void;
|
|
76
|
+
physical(edge: ResizeEdge, rtl: boolean): ResizeEdge;
|
|
77
|
+
next(edge: ResizeEdge, from: ResizeStart, dx: number, dy: number): WindowBox;
|
|
78
|
+
applyBox(box: WindowBox, positioned: boolean): void;
|
|
79
79
|
args(edge: ResizeEdge, box: WindowBox, event?: Event): ResizeEventArgs;
|
|
80
|
-
pointerDown(e: PointerEvent,
|
|
80
|
+
pointerDown(e: PointerEvent, edge: ResizeEdge, handle: Component<HTMLDivElement> | null): void;
|
|
81
81
|
keyDown(e: KeyboardEvent): void;
|
|
82
|
-
finish(edge: ResizeEdge,
|
|
82
|
+
finish(edge: ResizeEdge, event?: Event): void;
|
|
83
|
+
private readonly readSize;
|
|
84
|
+
private readonly tellSize;
|
|
83
85
|
}
|
|
84
86
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Bind } from '@motifx/core';
|
|
1
|
+
import type { Bind, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { ControlProps } from '../../core/control';
|
|
3
3
|
import type { WindowEdge } from '../../parts/window/window-edge';
|
|
4
4
|
import type { ResizeEventArgs } from './resize-event-args';
|
|
@@ -21,8 +21,8 @@ export interface ResizableProps extends ControlProps {
|
|
|
21
21
|
/** The maximum width and height, in pixels. `null` means no limit. The default is `null`. */
|
|
22
22
|
maxWidth?: Bind<number | null>;
|
|
23
23
|
maxHeight?: Bind<number | null>;
|
|
24
|
-
/** The area the box stays inside: its parent, or
|
|
25
|
-
area?: Bind<'parent' |
|
|
24
|
+
/** The area the box stays inside: its parent, or a component that contains it. The default is `null`, no limit. */
|
|
25
|
+
area?: Bind<'parent' | ComponentBase | null>;
|
|
26
26
|
/** Preserves the ratio of width to height. The default is `false`. */
|
|
27
27
|
keepAspectRatio?: Bind<boolean>;
|
|
28
28
|
/** The number of pixels an arrow key changes an edge. The default is `10`. */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WindowBox } from '../../parts/window/window-box';
|
|
2
|
+
/** What a resize starts from, read once at the press or the key: the box, the room its area leaves, and how it is laid out. */
|
|
3
|
+
export interface ResizeStart {
|
|
4
|
+
box: WindowBox;
|
|
5
|
+
room: {
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
};
|
|
9
|
+
positioned: boolean;
|
|
10
|
+
rtl: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, type Signal } from "@motifx/core";
|
|
2
|
+
import { Popup } from "../../parts/popup/Popup";
|
|
3
|
+
import { Button } from "../button/Button";
|
|
4
|
+
import type { RibbonCommand } from "./ribbon-command";
|
|
5
|
+
import type { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
6
|
+
/**
|
|
7
|
+
* A `gallery` command: the first of its choices in a row, and a button that opens all of them in a grid. The chosen one
|
|
8
|
+
* is marked. Small, it is the button alone, with the command's text.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RibbonGallery extends Component<HTMLDivElement> {
|
|
11
|
+
readonly picked: (item: RibbonGalleryItem, e: Event) => void;
|
|
12
|
+
row: Component<HTMLDivElement>;
|
|
13
|
+
opener: Button;
|
|
14
|
+
popup: Popup;
|
|
15
|
+
grid: Component<HTMLDivElement>;
|
|
16
|
+
/** The chosen item's tile in the grid: focus goes there when the grid opens. */
|
|
17
|
+
chosenTile: Component<HTMLButtonElement> | null;
|
|
18
|
+
small: boolean;
|
|
19
|
+
readonly commandBox: Signal<RibbonCommand>;
|
|
20
|
+
get command(): RibbonCommand;
|
|
21
|
+
set command(command: RibbonCommand);
|
|
22
|
+
constructor(command: RibbonCommand, picked: (item: RibbonGalleryItem, e: Event) => void);
|
|
23
|
+
items(): RibbonGalleryItem[];
|
|
24
|
+
columns(): number;
|
|
25
|
+
/** The item's key (its place when it has none) is the command's value. */
|
|
26
|
+
isChosen(item: RibbonGalleryItem): boolean;
|
|
27
|
+
label(): string;
|
|
28
|
+
/** Small: the button alone, with the command's text. */
|
|
29
|
+
setSmall(on: boolean): void;
|
|
30
|
+
makeTile(item: RibbonGalleryItem, inGrid: boolean): Component<HTMLButtonElement>;
|
|
31
|
+
toggle(): void;
|
|
32
|
+
}
|