@motifx-community/ui 0.1.0-beta.6 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +324 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +4 -4
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +5 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/listbox/list-rows.d.ts +2 -0
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35277 -22566
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/DataItems.d.ts +2 -0
- package/dist/parts/data/KeyedItems.d.ts +2 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +73 -17
- package/dist/parts/list/item-source.d.ts +4 -0
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +3 -3
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1904 -290
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/** How `autoScroll` scrolls near the edges. */
|
|
3
|
+
export interface AutoScrollOptions {
|
|
4
|
+
/** How near an edge the pointer starts it, in pixels, or worked out from the room along that axis; 40 by default. */
|
|
5
|
+
zone?: number | ((room: number) => number);
|
|
6
|
+
/** The most it moves in a frame; 12 by default. */
|
|
7
|
+
speed?: number;
|
|
8
|
+
/** The axes it scrolls: `x`, `y` or `both` (the default). */
|
|
9
|
+
axis?: 'x' | 'y' | 'both';
|
|
10
|
+
/** Room covered at an edge by parts that do not scroll (a head, a foot, pinned columns): pixels, or the part. The zones start past it. */
|
|
11
|
+
start?: number | ComponentBase;
|
|
12
|
+
end?: number | ComponentBase;
|
|
13
|
+
top?: number | ComponentBase;
|
|
14
|
+
bottom?: number | ComponentBase;
|
|
15
|
+
/** Scrolls only while the pointer is over the scroller across the axis it scrolls (a row aimed at another grid stops it). */
|
|
16
|
+
whileOver?: boolean;
|
|
17
|
+
/** The step of one frame along one axis, for `pos` near `start` to `end`; `scrollStep` by default. */
|
|
18
|
+
step?: (pos: number, start: number, end: number, zone: number, speed: number) => number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type Point } from '../../core/measure';
|
|
3
|
+
import type { AutoScrollOptions } from './auto-scroll-options';
|
|
4
|
+
/**
|
|
5
|
+
* Scrolls a scroller while a drag's pointer stays near its edges, at every frame of `owner`'s window: read with the
|
|
6
|
+
* frame's reads, the step written after them. `scroller`: the one to scroll, or a function giving it each frame (the
|
|
7
|
+
* grid under the pointer). Whether it moved comes from the clamp and the write, never from a read-back; `moved` runs
|
|
8
|
+
* after a step. `pointer`: the last point, null for none. The loop is `owner`'s, the component dragging: it waits while
|
|
9
|
+
* `owner` is out of the page and ends with the returned function or with `owner`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function autoScroll(owner: ComponentBase, scroller: ComponentBase | (() => ComponentBase | null), pointer: () => Point | null, moved: () => void, options?: AutoScrollOptions): () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type HitCover, type Point, type Rect } from '../../core/measure';
|
|
3
|
+
/**
|
|
4
|
+
* The boxes a drag aims at, kept while it lasts: the parts of its candidates on the screen, and of what may cover them,
|
|
5
|
+
* read together the first time they are asked for (in a read, or at the press before anything is written) and again
|
|
6
|
+
* only after something moved them: a scroll or a resize in a window that holds a candidate, or a write of the drag's own
|
|
7
|
+
* (`moved`). Pointer moves answer from them.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DragBoxes {
|
|
10
|
+
private readonly owner;
|
|
11
|
+
private readonly candidates;
|
|
12
|
+
private readonly cover?;
|
|
13
|
+
private readonly rects;
|
|
14
|
+
/** For each candidate, the candidate standing for its window: one per window, watched for scrolls and resizes there. */
|
|
15
|
+
private readonly homes;
|
|
16
|
+
private readonly windows;
|
|
17
|
+
private readonly stops;
|
|
18
|
+
private fresh;
|
|
19
|
+
/**
|
|
20
|
+
* `candidates`: front first, from every window the drag may aim into. `cover`: what may lie over them in the window of
|
|
21
|
+
* a point (`stackCover`), when something can.
|
|
22
|
+
*/
|
|
23
|
+
constructor(owner: ComponentBase, candidates: () => readonly ComponentBase[], cover?: ((space: ComponentBase) => HitCover) | undefined);
|
|
24
|
+
/** The drag wrote something that moved them: they are read again when next asked for. */
|
|
25
|
+
moved(): void;
|
|
26
|
+
/** The front candidate whose part on the screen holds `point`; with `space` (a component of the window the point is in), only that window's. */
|
|
27
|
+
at(point: Point, space?: ComponentBase): ComponentBase | null;
|
|
28
|
+
/** The kept part of a candidate (or of a surface over them) on the screen, or null when none of it shows. */
|
|
29
|
+
rectOf(component: ComponentBase): Rect | null;
|
|
30
|
+
stop(): void;
|
|
31
|
+
private read;
|
|
32
|
+
private homeOf;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { HitCover } from '../../core/measure';
|
|
3
|
+
/**
|
|
4
|
+
* What may lie over a drag's candidates in the window `space` is in: the windows shown there, front first, and the
|
|
5
|
+
* modal one nearest the front, which leaves nothing behind it to aim at.
|
|
6
|
+
*/
|
|
7
|
+
export declare function stackCover(space: ComponentBase): HitCover;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { Component, ComponentBase, type Bind, type Event as MotifEvent, 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 { IconSource } from '../../core/icon-source';
|
|
@@ -60,6 +60,8 @@ export declare abstract class Field<T, TProps extends FieldProps<T> = FieldProps
|
|
|
60
60
|
set validationGroup(value: Bind<ValidationGroup | null>);
|
|
61
61
|
get onValueChanged(): MotifEvent<ValueChangedEventArgs<T>>;
|
|
62
62
|
get onValidated(): MotifEvent<ValidatedEventArgs>;
|
|
63
|
+
/** The field itself, as a `ValidationTarget`'s part: what a `ValidationSummary` and a group's order go by. */
|
|
64
|
+
get part(): ComponentBase;
|
|
63
65
|
/** `false` while a failed validation or an `error` is shown. */
|
|
64
66
|
get isValid(): boolean;
|
|
65
67
|
/** The error shown, or `''` if there is none. */
|
|
@@ -70,8 +72,8 @@ export declare abstract class Field<T, TProps extends FieldProps<T> = FieldProps
|
|
|
70
72
|
validate(): Promise<boolean>;
|
|
71
73
|
/** Clears the results of earlier validation, and drops a running one. */
|
|
72
74
|
resetValidation(): void;
|
|
73
|
-
/** The element
|
|
74
|
-
protected abstract createControl():
|
|
75
|
+
/** The component whose element holds the value and takes focus, a child of the box. Called once, before the subclass's fields exist. */
|
|
76
|
+
protected abstract createControl(): ComponentBase;
|
|
75
77
|
/** Draws the value into the control. */
|
|
76
78
|
protected abstract renderValue(value: T): void;
|
|
77
79
|
protected abstract emptyValue(): T;
|
|
@@ -91,8 +93,20 @@ export declare abstract class Field<T, TProps extends FieldProps<T> = FieldProps
|
|
|
91
93
|
* Your data can be plain or reactive, and the field reads it as it is.
|
|
92
94
|
*/
|
|
93
95
|
refresh(): void;
|
|
94
|
-
/**
|
|
95
|
-
protected
|
|
96
|
+
/** The id of the control; the label, the message, the prefix and the suffix take theirs from it. */
|
|
97
|
+
protected get controlId(): string;
|
|
98
|
+
/** The id of the message under the box (help text or error): what describes the control. */
|
|
99
|
+
protected get messageId(): string;
|
|
100
|
+
/** The component of the control (see `createControl`): its events are listened to through it (`motif.on`). */
|
|
101
|
+
protected get controlPart(): ComponentBase;
|
|
102
|
+
/** The id of the label above the box while it shows a text, else `''`: what names the control. */
|
|
103
|
+
protected get labelId(): string;
|
|
104
|
+
/** The box as a component: a subclass's own components shown in the box are added to it. */
|
|
105
|
+
protected get boxPart(): ComponentBase;
|
|
106
|
+
/** The buttons the field draws in the box: the clear button while it shows, then the buttons given. */
|
|
107
|
+
protected get boxButtons(): readonly ComponentBase[];
|
|
108
|
+
/** A place in the box for the subclass's own parts (a clear button, a drop-down arrow): a component they are added to. */
|
|
109
|
+
protected area(name: BoxArea): Component<HTMLSpanElement>;
|
|
96
110
|
/** Takes a place out of the box; `area` makes a new one when it is wanted again. */
|
|
97
111
|
protected removeArea(name: BoxArea): void;
|
|
98
112
|
/** A short text at the end of the line under the box, e.g. `12/50`; `''` removes it. */
|
|
@@ -103,29 +117,43 @@ export declare abstract class Field<T, TProps extends FieldProps<T> = FieldProps
|
|
|
103
117
|
*/
|
|
104
118
|
protected showClearButton(on: boolean, clear: (event: MouseEvent) => void, className: string): void;
|
|
105
119
|
protected renderReadOnly(on: boolean): void;
|
|
106
|
-
|
|
120
|
+
get focusPart(): ComponentBase;
|
|
107
121
|
/** Whether the role of the control carries `aria-required` and `aria-readonly`. A control with another role says no. */
|
|
108
122
|
protected get formRole(): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The tag of the element `createControl` makes (`'input'`, `'textarea'`, `'button'`, `'div'`): a native field takes the
|
|
125
|
+
* label's `for` and its own `readonly`. Read once, before the subclass's fields exist, so it returns a constant.
|
|
126
|
+
* `null`: not a native field.
|
|
127
|
+
*/
|
|
128
|
+
protected get controlTag(): string | null;
|
|
109
129
|
private get parts();
|
|
110
130
|
private createParts;
|
|
111
131
|
/** `x-model` handing back the value the field just wrote: the written value, not the model's copy. */
|
|
112
132
|
private takeEcho;
|
|
113
133
|
private valueStored;
|
|
114
134
|
private focusLeft;
|
|
135
|
+
/** Checks the field once the press in progress has ended, if focus is out of it then. */
|
|
136
|
+
private validateWhenLeft;
|
|
115
137
|
private refreshValidity;
|
|
116
138
|
private joinGroup;
|
|
117
139
|
private renderLabel;
|
|
118
140
|
private renderLook;
|
|
119
|
-
/** Re-reads what the design language sets for the field (variant, label mode, size)
|
|
120
|
-
* it is in the page, and a field placed outside the component tree receives this
|
|
141
|
+
/** Re-reads what the design language sets for the field (variant, label mode, size), with the next reads of its
|
|
142
|
+
* window. The field does this once it is in the page, and a field placed outside the component tree receives this
|
|
143
|
+
* call when it is placed. */
|
|
121
144
|
readLook(): void;
|
|
122
145
|
onMounted(): void;
|
|
123
146
|
private renderHint;
|
|
124
147
|
private renderRequired;
|
|
125
148
|
private renderAffix;
|
|
126
149
|
private renderIcon;
|
|
150
|
+
/**
|
|
151
|
+
* Gives the places the buttons now. Each place lists its buttons once (`start`, `end`): a field of a button changes
|
|
152
|
+
* only what shows it, and the list keeps the buttons it keeps. A place goes when no button is given for it.
|
|
153
|
+
*/
|
|
127
154
|
private renderButtons;
|
|
128
|
-
|
|
155
|
+
/** A given button's part, built once: each field changes only what shows it. */
|
|
156
|
+
private makeButton;
|
|
129
157
|
private renderMessage;
|
|
130
158
|
private markMessage;
|
|
131
159
|
private renderDescribedBy;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ItemLayoutOptions } from './item-layout-options';
|
|
2
|
+
import type { LayoutCustomization } from './layout-customization';
|
|
3
|
+
import type { LayoutNode } from './layout-node';
|
|
4
|
+
/** Where an item the user adds goes: after an item, before one, else at the end. */
|
|
5
|
+
interface AddAt<I> {
|
|
6
|
+
after?: LayoutNode<I> | null;
|
|
7
|
+
before?: LayoutNode<I> | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The items of a component as the user arranged them: the items given, with what the user hid, ordered, moved, renamed
|
|
11
|
+
* and added. It works on a tree (a menu bar's menus) or a flat list (a toolbar). Nothing given is changed; an item the
|
|
12
|
+
* user changed is drawn as a copy. Each change returns a new customization object, which the owner keeps.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ItemLayout<I extends object, C extends LayoutCustomization> {
|
|
15
|
+
options: ItemLayoutOptions<I, C>;
|
|
16
|
+
/** The groups and separators of the user's own, kept by id so that each stays the same object. */
|
|
17
|
+
own: Map<string, I>;
|
|
18
|
+
drawnNodes: WeakMap<I, LayoutNode<I>>;
|
|
19
|
+
constructor(options: ItemLayoutOptions<I, C>);
|
|
20
|
+
get custom(): C;
|
|
21
|
+
/** Whether the user changed nothing the layout keeps: the items are drawn as given. */
|
|
22
|
+
get untouched(): boolean;
|
|
23
|
+
/** The items of the top, or of the group `parent`, hidden ones included. */
|
|
24
|
+
childrenOf(parent: LayoutNode<I> | null): LayoutNode<I>[];
|
|
25
|
+
/** Every item, hidden ones included, from the top down. */
|
|
26
|
+
all(): LayoutNode<I>[];
|
|
27
|
+
find(id: string): LayoutNode<I> | null;
|
|
28
|
+
/** The item drawn as `item`, or given as `item`. */
|
|
29
|
+
nodeOf(item: I): LayoutNode<I> | null;
|
|
30
|
+
/** The items of the top or of a group the user can move among: the shown ones, or all when `hiddenToo`. */
|
|
31
|
+
siblingsOf(node: LayoutNode<I>, hiddenToo: boolean): LayoutNode<I>[];
|
|
32
|
+
canMove(node: LayoutNode<I>, step: 1 | -1, hiddenToo: boolean): boolean;
|
|
33
|
+
shown(node: LayoutNode<I>, on: boolean): C | null;
|
|
34
|
+
/** One place earlier or later among the siblings; the ones left out keep their places. */
|
|
35
|
+
moved(node: LayoutNode<I>, step: 1 | -1, hiddenToo: boolean): C | null;
|
|
36
|
+
/** Whether `node` can go into the group `target` (`null` for the top). */
|
|
37
|
+
canMoveInto(node: LayoutNode<I>, target: LayoutNode<I> | null): boolean;
|
|
38
|
+
movedInto(node: LayoutNode<I>, target: LayoutNode<I> | null): C | null;
|
|
39
|
+
renamed(node: LayoutNode<I>, text: string): C | null;
|
|
40
|
+
/**
|
|
41
|
+
* Adds a command (`command`), a group of the user's own (`text`, in a tree) or a separator (`separator`, when the owner
|
|
42
|
+
* draws them) to the group `target`: after `at.after`, before `at.before`, else at the end.
|
|
43
|
+
*/
|
|
44
|
+
addedTo(target: LayoutNode<I> | null, what: {
|
|
45
|
+
command?: string;
|
|
46
|
+
text?: string;
|
|
47
|
+
separator?: boolean;
|
|
48
|
+
}, at?: AddAt<I>): {
|
|
49
|
+
custom: C;
|
|
50
|
+
id: string;
|
|
51
|
+
} | null;
|
|
52
|
+
/** Takes away an item the user added, with what the user added in it; items of the app in it go back home. */
|
|
53
|
+
removed(node: LayoutNode<I>): C | null;
|
|
54
|
+
/** Undoes what the user changed on the item and inside it: it is shown, named and placed as given. */
|
|
55
|
+
reset(node: LayoutNode<I>): C;
|
|
56
|
+
private node;
|
|
57
|
+
/** An item of the app by its place in the items given. */
|
|
58
|
+
private original;
|
|
59
|
+
private addedItem;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LayoutCustomization } from './layout-customization';
|
|
2
|
+
import type { LayoutNode } from './layout-node';
|
|
3
|
+
/** What an `ItemLayout` works on. */
|
|
4
|
+
export interface ItemLayoutOptions<I extends object, C extends LayoutCustomization> {
|
|
5
|
+
/** The items given. */
|
|
6
|
+
items: () => readonly I[];
|
|
7
|
+
/** The commands the user can add, each with a `key`. */
|
|
8
|
+
commands: () => readonly I[];
|
|
9
|
+
/** What the user changed so far. */
|
|
10
|
+
custom: () => C;
|
|
11
|
+
/** The field of an item that holds its own items (a menu's `items`), or `null` for a flat list. */
|
|
12
|
+
childrenField: string | null;
|
|
13
|
+
/** Makes a separator the user added; without it, separators cannot be added. */
|
|
14
|
+
separator?: (id: string) => I;
|
|
15
|
+
/** Further changes to an item as it is drawn, from the owner's own part of the customization; `null` for none. */
|
|
16
|
+
dressed?: (node: LayoutNode<I>) => Partial<I> | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** An item the user added: a command, a group of the user's own (in a tree) or a separator (in a flat list). */
|
|
2
|
+
export interface LayoutAddedItem {
|
|
3
|
+
/** Given by the owner: `user:1`, `user:2`… */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Where it stands: the id of a group, `''` for the top. */
|
|
6
|
+
parent: string;
|
|
7
|
+
/** The key of the command. */
|
|
8
|
+
command?: string;
|
|
9
|
+
/** The name of a group of the user's own. */
|
|
10
|
+
text?: string;
|
|
11
|
+
/** A separator. */
|
|
12
|
+
separator?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LayoutAddedItem } from './layout-added-item';
|
|
2
|
+
/**
|
|
3
|
+
* What the user changed in the items of a component, as `ItemLayout` reads and writes it. An item of the app is named by
|
|
4
|
+
* its place in the items given, the keys along the way joined with `/`; an item the user added by its `id`; the top is
|
|
5
|
+
* `''`. A component's own customization type has these fields, and may have more of its own.
|
|
6
|
+
*/
|
|
7
|
+
export interface LayoutCustomization {
|
|
8
|
+
hidden?: readonly string[];
|
|
9
|
+
order?: Readonly<Record<string, readonly string[]>>;
|
|
10
|
+
moves?: Readonly<Record<string, string>>;
|
|
11
|
+
texts?: Readonly<Record<string, string>>;
|
|
12
|
+
added?: readonly LayoutAddedItem[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** An item as the user arranged it. */
|
|
2
|
+
export interface LayoutNode<I> {
|
|
3
|
+
/** Its name in the customization: its place in the items given, or the id given to an item the user added. */
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
/** Where it stands now: the keys along the way, joined with `/`. */
|
|
7
|
+
path: string;
|
|
8
|
+
/** The id of its group, `''` for the top. */
|
|
9
|
+
parent: string;
|
|
10
|
+
/** As the app gave it: an item, a command, a group of the user's own or a separator the user added. */
|
|
11
|
+
item: I;
|
|
12
|
+
/** As it is drawn: `item`, or a copy with the user's changes. */
|
|
13
|
+
drawn: I;
|
|
14
|
+
hidden: boolean;
|
|
15
|
+
/** `customizable: false`: it stays shown and in its place. */
|
|
16
|
+
fixed: boolean;
|
|
17
|
+
/** Added by the user. */
|
|
18
|
+
added: boolean;
|
|
19
|
+
/** A separator the user added. */
|
|
20
|
+
separator: boolean;
|
|
21
|
+
/** Has items of its own that others can be put in. */
|
|
22
|
+
holds: boolean;
|
|
23
|
+
children(): LayoutNode<I>[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ChildrenAt } from "./children-at";
|
|
2
|
+
/**
|
|
3
|
+
* Changes by path to a tree of items given by the app: `file/recent/clear`, each part a key or a position. What was
|
|
4
|
+
* given is never changed: each change makes a new list, the items along the changed path new objects and the others
|
|
5
|
+
* the ones given, and hands it to `apply`. Between `beginUpdate()` and `endUpdate()` the changes are held and applied
|
|
6
|
+
* at once.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemTree<T> {
|
|
9
|
+
childrenAt: ChildrenAt;
|
|
10
|
+
read: () => readonly T[];
|
|
11
|
+
apply: (next: T[]) => void;
|
|
12
|
+
batch: number;
|
|
13
|
+
pending: T[] | null;
|
|
14
|
+
constructor(childrenAt: ChildrenAt, read: () => readonly T[], apply: (next: T[]) => void);
|
|
15
|
+
/** The items as they are now, the held changes included. */
|
|
16
|
+
get current(): readonly T[];
|
|
17
|
+
/** The item at `path`, as it is now; `null` when there is none. */
|
|
18
|
+
find(path: string): unknown;
|
|
19
|
+
/** Adds an item to the list under `parentPath` (the top list when empty) at `index`, the end by default. */
|
|
20
|
+
add(parentPath: string, item: unknown, index?: number): boolean;
|
|
21
|
+
remove(path: string): boolean;
|
|
22
|
+
/** Changes fields of the item at `path`; the others stay as they are. */
|
|
23
|
+
update(path: string, changes: object): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Moves the item at `path` to `index` in its list, or in the list under `toParent` (the top list when empty). The
|
|
26
|
+
* index counts the list without the item. An item cannot move into itself.
|
|
27
|
+
*/
|
|
28
|
+
move(path: string, index: number, toParent?: string): boolean;
|
|
29
|
+
beginUpdate(): void;
|
|
30
|
+
endUpdate(): void;
|
|
31
|
+
/** Changes the list under `parent` (the parts of a path) with `change`; `false` when nothing changed. */
|
|
32
|
+
change(parent: string[], change: (list: readonly unknown[]) => unknown[] | null): boolean;
|
|
33
|
+
commit(next: T[]): boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChildrenAt } from "./children-at";
|
|
2
|
+
/** The parts of a path. */
|
|
3
|
+
export declare function partsOf(path: string): string[];
|
|
4
|
+
/** The key of an item in its list: its own, else its position. */
|
|
5
|
+
export declare function keyOf(item: unknown, index: number): string;
|
|
6
|
+
export declare function indexOfKey(list: readonly unknown[], key: string): number;
|
|
7
|
+
/** The items along a path, from the top to the last part, read in what the app gave; `null` when a part is missing. */
|
|
8
|
+
export declare function itemsAlong(list: readonly unknown[], parts: string[], childrenAt: ChildrenAt): unknown[] | null;
|
|
9
|
+
/** The positions along a path, from the top to the last part; `null` when a part is missing. */
|
|
10
|
+
export declare function positionsOf(list: readonly unknown[], parts: string[], childrenAt: ChildrenAt): number[] | null;
|
|
11
|
+
/**
|
|
12
|
+
* A new list with the list under the item at `positions` changed by `change` (the top list when `positions` is
|
|
13
|
+
* empty); the items along the way are new objects, the others the ones given. Nothing given is changed. `null` when a
|
|
14
|
+
* position is missing or `change` refuses.
|
|
15
|
+
*/
|
|
16
|
+
export declare function changedList(list: readonly unknown[], positions: number[], childrenAt: ChildrenAt, change: (list: readonly unknown[]) => unknown[] | null, depth?: number): unknown[] | null;
|
|
17
|
+
/** `list` with `item` put at `index` (the end when it is missing or past it). */
|
|
18
|
+
export declare function inserted(list: readonly unknown[], item: unknown, index?: number): unknown[];
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { Component, type Event as MotifEvent } from '@motifx/core';
|
|
1
|
+
import { Component, type ComponentBase, type Event as MotifEvent } from '@motifx/core';
|
|
2
2
|
import type { IconSource } from '../../core/icon-source';
|
|
3
3
|
import type { ItemSource } from './item-source';
|
|
4
4
|
import type { ListMove } from './list-move';
|
|
5
5
|
import type { OptionChosenEventArgs } from './option-chosen-event-args';
|
|
6
|
+
import type { OptionParts } from './option-parts';
|
|
6
7
|
/**
|
|
7
8
|
* The options of a drop-down, a combo box or a list box (`role="listbox"`). The owner provides the
|
|
8
9
|
* items and how to read them, sets which are selected, and moves the highlight from its own keys
|
|
9
10
|
* (`handleKey`). The owner's element points to the highlighted option with `aria-activedescendant`.
|
|
10
11
|
* Long lists draw only the rows in view, and with an `ItemSource` rows can load as they come into view.
|
|
12
|
+
* Each option is drawn once for its item: items given again keep the options of the items they keep, and what an
|
|
13
|
+
* option shows (text, selected, active, disabled) changes in place.
|
|
11
14
|
*/
|
|
12
15
|
export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
13
16
|
static elementTag: string;
|
|
@@ -15,8 +18,11 @@ export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
|
15
18
|
enabledOf: (item: T) => boolean;
|
|
16
19
|
iconOf: ((item: T) => IconSource | undefined) | null;
|
|
17
20
|
groupOf: ((item: T) => string | undefined) | null;
|
|
18
|
-
/**
|
|
19
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Draws an option's content instead of its text, into `host`. `option` holds the option's parts, for an owner that
|
|
23
|
+
* marks the option itself. It can return a cleanup function.
|
|
24
|
+
*/
|
|
25
|
+
draw: ((item: T, host: ComponentBase<HTMLElement>, option: OptionParts) => (() => void) | void) | null;
|
|
20
26
|
isSelected: (item: T) => boolean;
|
|
21
27
|
/** Shows check marks before the options and sets `aria-multiselectable`. */
|
|
22
28
|
multiple: boolean;
|
|
@@ -31,33 +37,60 @@ export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
|
31
37
|
private size;
|
|
32
38
|
private itemAt;
|
|
33
39
|
private ensure;
|
|
40
|
+
/** Whether a row (or, with no index, the whole list) failed to load; a press on it loads it again. */
|
|
41
|
+
private failedAt;
|
|
42
|
+
private retryFailed;
|
|
34
43
|
/** With groups: the headers between the items. Without: one row per item. */
|
|
35
44
|
private rows;
|
|
36
|
-
|
|
45
|
+
/** The highlighted option's index; each option reads it to mark itself. */
|
|
46
|
+
private readonly activeAt;
|
|
47
|
+
/** Changed when the items or their fields may have changed: the options read them again. */
|
|
48
|
+
private readonly state;
|
|
49
|
+
private stateCount;
|
|
50
|
+
/** What the list shows now, in order. */
|
|
51
|
+
private readonly entries;
|
|
52
|
+
private keys;
|
|
53
|
+
private readonly before;
|
|
54
|
+
private readonly after;
|
|
55
|
+
private readonly emptyEntry;
|
|
56
|
+
/** The options on show, in order. */
|
|
57
|
+
private shown;
|
|
58
|
+
/** The parts of each option drawn. */
|
|
59
|
+
private readonly partsOf;
|
|
37
60
|
private rowHeight;
|
|
61
|
+
/** How far the list is scrolled and the room in its view, as last read. */
|
|
62
|
+
private viewTop;
|
|
63
|
+
private viewHeight;
|
|
64
|
+
/** The option a long list brings into view with its next reads; -1 for none. */
|
|
65
|
+
private revealing;
|
|
38
66
|
private drawn;
|
|
39
|
-
private releases;
|
|
40
67
|
private typed;
|
|
41
68
|
private typedAt;
|
|
42
|
-
private frame;
|
|
43
69
|
private readonly baseId;
|
|
44
|
-
|
|
70
|
+
/** The text of an empty list, a part while the list is empty. */
|
|
71
|
+
private empty;
|
|
45
72
|
private readonly chosenEmitter;
|
|
46
73
|
readonly onChosen: MotifEvent<OptionChosenEventArgs<T>>;
|
|
47
74
|
onConfigured(): void;
|
|
75
|
+
private get active();
|
|
76
|
+
private set active(value);
|
|
77
|
+
/** The options read the items and their fields again. */
|
|
78
|
+
private restate;
|
|
48
79
|
/** Sets the items as they are now. Set them again after they change. */
|
|
49
80
|
setItems(given: readonly T[]): void;
|
|
50
81
|
/** Sets items that load as they come into view (no groups). */
|
|
51
82
|
setSource(source: ItemSource<T>): void;
|
|
52
|
-
/**
|
|
83
|
+
/** Reads the rows in view again, such as after some have loaded; the options of the same items stay. */
|
|
53
84
|
redraw(): void;
|
|
54
85
|
get count(): number;
|
|
55
86
|
get activeIndex(): number;
|
|
56
87
|
get activeItem(): T | undefined;
|
|
57
88
|
itemOf(index: number): T | undefined;
|
|
89
|
+
/** The id of the list's element, for the owner's `aria-controls`. */
|
|
90
|
+
get id(): string;
|
|
58
91
|
/** The id of an option's element, for `aria-activedescendant`. */
|
|
59
92
|
idOf(index: number): string;
|
|
60
|
-
/**
|
|
93
|
+
/** Shows the selection after it changes (and the items' fields after they change in place). */
|
|
61
94
|
refresh(): void;
|
|
62
95
|
setActive(index: number, scroll?: boolean): void;
|
|
63
96
|
/** Moves the highlight over enabled options and returns the new index. */
|
|
@@ -71,18 +104,41 @@ export declare class OptionList<T = unknown> extends Component<HTMLDivElement> {
|
|
|
71
104
|
private get windowed();
|
|
72
105
|
/** An item not loaded yet can be highlighted; it loads when it comes into view. */
|
|
73
106
|
private nextEnabled;
|
|
74
|
-
|
|
107
|
+
/** Lays out what the list shows now; the entries it keeps keep their parts. */
|
|
108
|
+
private show;
|
|
109
|
+
private commit;
|
|
110
|
+
/** The entry for `key` (its next one, for a key listed more than once): the one shown last if there was one. */
|
|
111
|
+
private keyOf;
|
|
112
|
+
/** The entry of the option at `index`: of its item, or of the index for an item not loaded yet. */
|
|
113
|
+
private optionAt;
|
|
114
|
+
/** The parts of the option at `index`, if it is drawn. */
|
|
115
|
+
private partsAt;
|
|
116
|
+
/** Reads the list's view and a row's height with the window's next reads; a long list then draws the rows in view. */
|
|
117
|
+
private readLayout;
|
|
118
|
+
private readonly readView;
|
|
119
|
+
private readonly layOut;
|
|
120
|
+
/** Draws the rows in view of a long list as last read, then reads again: what changed is drawn in the next round. */
|
|
121
|
+
private drawLong;
|
|
75
122
|
/** In a long list: two empty blocks stand for the rows out of view. */
|
|
76
123
|
private drawWindow;
|
|
77
|
-
private space;
|
|
78
|
-
private measure;
|
|
79
124
|
private rowOf;
|
|
80
125
|
private scrollTo;
|
|
81
|
-
|
|
82
|
-
private
|
|
83
|
-
|
|
84
|
-
private
|
|
126
|
+
/** Writes what `read` gives into the part each time it changes, and only then. */
|
|
127
|
+
private bind;
|
|
128
|
+
/** The part of an entry, made once: what it shows changes in place. */
|
|
129
|
+
private make;
|
|
130
|
+
private makeHeader;
|
|
131
|
+
/** An option's row with its parts in order: check, icon, text. Each changes only with what it shows. */
|
|
132
|
+
private makeOption;
|
|
133
|
+
/**
|
|
134
|
+
* Binds an option's text to `read`, read again when the items are given again or refreshed, and written in place.
|
|
135
|
+
* For a `draw` that writes the text itself; the release it gives back stops the binding.
|
|
136
|
+
*/
|
|
137
|
+
bindText(option: OptionParts, read: () => string): () => void;
|
|
138
|
+
/** The index of the option an event started in, asked of the options drawn; -1 for none. */
|
|
85
139
|
private indexOf;
|
|
140
|
+
/** "Could not load. Retry": a row or a list that failed, which a press loads again. */
|
|
141
|
+
private failedText;
|
|
142
|
+
private writeEmpty;
|
|
86
143
|
private clicked;
|
|
87
|
-
private release;
|
|
88
144
|
}
|
|
@@ -5,4 +5,8 @@ export interface ItemSource<T> {
|
|
|
5
5
|
at(index: number): T | undefined;
|
|
6
6
|
/** Loads the items from `first` up to `end`, which the view shows. */
|
|
7
7
|
ensure?(first: number, end: number): void;
|
|
8
|
+
/** Whether the item at `index` failed to load; with no index, whether the whole list failed. */
|
|
9
|
+
failedAt?(index?: number): boolean;
|
|
10
|
+
/** Loads again what failed. */
|
|
11
|
+
retryFailed?(): void;
|
|
8
12
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/** An option the list drew, by its parts: for an owner that marks an option itself, such as a "Select all" row. */
|
|
3
|
+
export interface OptionParts {
|
|
4
|
+
/** The option (`role="option"`). */
|
|
5
|
+
readonly row: ComponentBase<HTMLElement>;
|
|
6
|
+
/** Where the option's text or the owner's template goes. */
|
|
7
|
+
readonly text: ComponentBase<HTMLElement>;
|
|
8
|
+
/** In a list of several choices the check mark's glyph (`data-icon="check"`), else `null`. */
|
|
9
|
+
readonly check: ComponentBase<HTMLElement> | null;
|
|
10
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { InputMaskOptions } from './input-mask-options';
|
|
2
3
|
/**
|
|
3
4
|
* Keeps what is typed into an `<input>` in the shape of a mask. Typing, deleting and pasting
|
|
@@ -9,12 +10,19 @@ import type { InputMaskOptions } from './input-mask-options';
|
|
|
9
10
|
* phone.raw; // '5321234567'
|
|
10
11
|
*/
|
|
11
12
|
export declare class InputMask {
|
|
12
|
-
|
|
13
|
+
/** Whether typing is refused now. A field answers from its own `readOnly`; the default asks the input. */
|
|
14
|
+
readOnly: () => boolean;
|
|
13
15
|
private text;
|
|
14
16
|
private options;
|
|
15
17
|
private writing;
|
|
16
|
-
private
|
|
17
|
-
|
|
18
|
+
private caretTimer;
|
|
19
|
+
/** The input, as the component given. */
|
|
20
|
+
private readonly field;
|
|
21
|
+
/** Stops listening on the input. */
|
|
22
|
+
private readonly stop;
|
|
23
|
+
/** `input`: the `<input>` component, such as a field's input part. */
|
|
24
|
+
constructor(input: ComponentBase<HTMLInputElement>, options: InputMaskOptions);
|
|
25
|
+
get input(): HTMLInputElement;
|
|
18
26
|
/** The typed characters only: `5321234567`. */
|
|
19
27
|
get raw(): string;
|
|
20
28
|
/** With the fixed characters: `(532) 123 45 67`. */
|
|
@@ -29,7 +37,6 @@ export declare class InputMask {
|
|
|
29
37
|
update(options: InputMaskOptions): void;
|
|
30
38
|
destroy(): void;
|
|
31
39
|
private create;
|
|
32
|
-
private get hasFocus();
|
|
33
40
|
private beforeInput;
|
|
34
41
|
/** The browser changed the text by itself: autofill, an input method, undo. */
|
|
35
42
|
private afterInput;
|