@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,6 +1,13 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/** @internal Marks a component as a part of the layout; `item`: a group or a split. */
|
|
3
|
+
export declare function layoutPart(part: ComponentBase, item?: boolean): void;
|
|
1
4
|
/**
|
|
2
|
-
* Puts `
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
+
* Puts `part` into `holder`, before the first other layout component among the holder's controls from `before` on
|
|
6
|
+
* (at the end when there is none), and core places it; what scrolled inside it keeps its place. `kept`: its scroll as
|
|
7
|
+
* `keepScroll` noted it in a measure's read, for a move made where reading lays the page out (a notice, a write).
|
|
5
8
|
*/
|
|
6
|
-
export declare function
|
|
9
|
+
export declare function placePart(holder: ComponentBase, part: ComponentBase, before: ComponentBase | null, kept?: () => void): void;
|
|
10
|
+
/** Takes a part of the layout out of the page; the groups and splits in it stay alive for the manager to place again or dispose. */
|
|
11
|
+
export declare function dropPart(part: ComponentBase): void;
|
|
12
|
+
/** Takes out of `holder` the layout components that are not `wanted`, without disposing them. */
|
|
13
|
+
export declare function detachOthers(holder: ComponentBase, wanted: readonly ComponentBase[]): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A group's tab row as read for its scroll buttons, its thin scrollbar and the count of tabs out of sight. */
|
|
2
|
+
export interface StripRoom {
|
|
3
|
+
/** The width of all the tabs that scroll, and the room they have. */
|
|
4
|
+
needed: number;
|
|
5
|
+
room: number;
|
|
6
|
+
/** How far the row is scrolled from its start. */
|
|
7
|
+
position: number;
|
|
8
|
+
/** The tabs not fully in sight. */
|
|
9
|
+
hidden: number;
|
|
10
|
+
/** Where the row starts in the strip, from its inline start, and how wide it is. */
|
|
11
|
+
trackStart: number;
|
|
12
|
+
trackSize: number;
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type Component, type ComponentBase, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { IconSource } from '../../core/icon-source';
|
|
4
4
|
import type { TabProps } from './tab-props';
|
|
@@ -43,13 +43,13 @@ export declare class Tab extends Control<HTMLDivElement, TabProps> {
|
|
|
43
43
|
get isSelected(): boolean;
|
|
44
44
|
/** Indicates whether its panel content has been created (see `lazy`). */
|
|
45
45
|
get contentBuilt(): boolean;
|
|
46
|
-
/** The tab's button in the strip (`role="tab"`). The tab's own element is its panel. */
|
|
47
|
-
get
|
|
46
|
+
/** The tab's button in the strip (`role="tab"`) as a component. The tab's own element is its panel. */
|
|
47
|
+
get headerPart(): Component<HTMLButtonElement>;
|
|
48
48
|
/** Selects the tab. Returns `false` if it is hidden or not in a `Tabs`. */
|
|
49
49
|
select(): boolean;
|
|
50
50
|
/** Closes the tab as its close button does, so `onClose` can cancel it. */
|
|
51
51
|
close(): boolean;
|
|
52
|
-
|
|
52
|
+
get focusPart(): ComponentBase;
|
|
53
53
|
/** The access key selects the tab and sets focus on it. */
|
|
54
54
|
onAccessKey(): boolean;
|
|
55
55
|
protected applyProperty(name: string, value: unknown): void;
|
|
@@ -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 { Control } from '../../core/control';
|
|
3
3
|
import type { ControlSize } from '../../core/control-size';
|
|
4
4
|
import { Tab } from './Tab';
|
|
@@ -72,9 +72,10 @@ export declare class Tabs extends Control<HTMLDivElement, TabsProps> {
|
|
|
72
72
|
select(tab: Tab | number): boolean;
|
|
73
73
|
/** Closes a tab as its close button does, so `onClose` can cancel it. */
|
|
74
74
|
close(tab: Tab, byUser?: boolean, event?: Event): boolean;
|
|
75
|
+
onMounted(): void;
|
|
75
76
|
onDisposing(): void;
|
|
76
77
|
/** Focuses the selected tab (the one Tab reaches). */
|
|
77
|
-
|
|
78
|
+
get focusPart(): ComponentBase;
|
|
78
79
|
protected applyProperty(name: string, value: unknown): void;
|
|
79
80
|
/** @internal `closable` without tracking it. */
|
|
80
81
|
peekClosable(): boolean;
|
|
@@ -107,17 +108,21 @@ export declare class Tabs extends Control<HTMLDivElement, TabsProps> {
|
|
|
107
108
|
/** The tab Tab reaches: the selected one, else the first usable one. */
|
|
108
109
|
private stopTab;
|
|
109
110
|
private renderRoving;
|
|
111
|
+
/** The tab whose button an event came from. */
|
|
110
112
|
private tabOf;
|
|
111
113
|
private get vertical();
|
|
112
114
|
private listen;
|
|
113
115
|
private onKeyDown;
|
|
116
|
+
/** Checks in the next frame whether the tabs fit the strip. */
|
|
114
117
|
private queueOverflow;
|
|
115
|
-
private
|
|
118
|
+
private readonly readOverflow;
|
|
119
|
+
private readonly drawOverflow;
|
|
120
|
+
private readonly readEnds;
|
|
116
121
|
/** Dims a scroll button that has nowhere to go. */
|
|
117
|
-
private
|
|
118
|
-
private
|
|
122
|
+
private readonly drawEnds;
|
|
123
|
+
private scrollStrip;
|
|
119
124
|
/** Scrolls the strip, not the page, so that a tab is in sight. */
|
|
120
|
-
private
|
|
125
|
+
private scrollToTab;
|
|
121
126
|
private get parts();
|
|
122
127
|
private createParts;
|
|
123
128
|
private renderLook;
|
|
@@ -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 { data } from '@motifx-community/data';
|
|
3
3
|
import { DataItems } from '../../parts/data/DataItems';
|
|
4
4
|
import { Field } from '../../parts/field/Field';
|
|
@@ -67,7 +67,8 @@ export declare class TagBox<T = unknown, V = unknown> extends Field<V[], TagBoxP
|
|
|
67
67
|
set tagTemplate(value: Bind<ItemTemplate<T> | null>);
|
|
68
68
|
get matchWidth(): boolean;
|
|
69
69
|
set matchWidth(value: Bind<boolean>);
|
|
70
|
-
|
|
70
|
+
/** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
71
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
71
72
|
/** The known items for the selected values. Reactive. */
|
|
72
73
|
get selectedItems(): T[];
|
|
73
74
|
/** The items shown in the list, which are the results of the last search. */
|
|
@@ -88,7 +89,8 @@ export declare class TagBox<T = unknown, V = unknown> extends Field<V[], TagBoxP
|
|
|
88
89
|
clear(): void;
|
|
89
90
|
/** Selects every item the list shows, up to `maxSelected` (with a data source, after they load). */
|
|
90
91
|
selectAllItems(): Promise<void>;
|
|
91
|
-
protected
|
|
92
|
+
protected get controlTag(): string;
|
|
93
|
+
protected createControl(): ComponentBase;
|
|
92
94
|
protected emptyValue(): V[];
|
|
93
95
|
protected normalizeValue(value: V[]): V[];
|
|
94
96
|
protected sameValue(a: V[], b: V[]): boolean;
|
|
@@ -106,15 +108,24 @@ export declare class TagBox<T = unknown, V = unknown> extends Field<V[], TagBoxP
|
|
|
106
108
|
private renderSource;
|
|
107
109
|
private renderTags;
|
|
108
110
|
private tagText;
|
|
109
|
-
private
|
|
110
|
-
|
|
111
|
-
private
|
|
111
|
+
private makeTag;
|
|
112
|
+
/** Writes what the tag shows of `value`; its label is drawn again only when its item or the template changes. */
|
|
113
|
+
private writeTag;
|
|
114
|
+
/** A new label for a template to draw in, the one drawn before taken out. */
|
|
115
|
+
private freshLabel;
|
|
112
116
|
private removeAt;
|
|
113
117
|
private createPopup;
|
|
114
118
|
/** `all`: the rows' look may have changed too, not only which rows there are. */
|
|
115
119
|
private drawList;
|
|
120
|
+
/** Draws a row's content when the list leaves it to the box: with a template, or with a "Select all" row, kept to be marked. */
|
|
121
|
+
private drawRow;
|
|
116
122
|
private listChanged;
|
|
117
123
|
private itemsChanged;
|
|
124
|
+
/** Keeps a "Select all" row the list drew, to mark it again when the selection changes. */
|
|
125
|
+
private keepSelectAllRow;
|
|
126
|
+
/** Marks the "Select all" rows drawn, letting go of those the list took away. */
|
|
127
|
+
private markSelectAll;
|
|
128
|
+
/** The "Select all" row is chosen when every item is, and shows a dash when some are. */
|
|
118
129
|
private markSelectAllRow;
|
|
119
130
|
/** While typing, the first match is highlighted so Enter takes it. */
|
|
120
131
|
private highlight;
|
|
@@ -125,9 +136,16 @@ export declare class TagBox<T = unknown, V = unknown> extends Field<V[], TagBoxP
|
|
|
125
136
|
private toggle;
|
|
126
137
|
/** After a choice: the text and the search start again; the list stays open unless `closeOnSelect`. */
|
|
127
138
|
private chosenDone;
|
|
139
|
+
/** Empties the input, and the search with it. */
|
|
140
|
+
private clearText;
|
|
128
141
|
private addCustom;
|
|
129
142
|
private chooseAll;
|
|
130
143
|
private listen;
|
|
144
|
+
/**
|
|
145
|
+
* Whether an event came from a button in the box (the arrow, the clear button, the buttons given): a part outside the
|
|
146
|
+
* input and the tags that takes focus itself.
|
|
147
|
+
*/
|
|
148
|
+
private fromButton;
|
|
131
149
|
private typed;
|
|
132
150
|
/** Opens with every item, as the arrow does. */
|
|
133
151
|
private openAll;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } 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';
|
|
@@ -50,13 +50,15 @@ export declare class TextArea extends Field<string, TextAreaProps> {
|
|
|
50
50
|
set name(value: Bind<string>);
|
|
51
51
|
get autocomplete(): string;
|
|
52
52
|
set autocomplete(value: Bind<string>);
|
|
53
|
-
|
|
53
|
+
/** The `<textarea>` as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
54
|
+
get textAreaPart(): ComponentBase<HTMLTextAreaElement>;
|
|
54
55
|
get onEnter(): MotifEvent<EnterKeyEventArgs<string>>;
|
|
55
|
-
/** Selects all text. */
|
|
56
|
+
/** Selects all text. The selection is made a moment later, not before the call returns. */
|
|
56
57
|
select(): void;
|
|
57
58
|
/** Clears the field, as the clear button does. */
|
|
58
59
|
clear(): void;
|
|
59
|
-
protected
|
|
60
|
+
protected get controlTag(): string;
|
|
61
|
+
protected createControl(): ComponentBase;
|
|
60
62
|
protected emptyValue(): string;
|
|
61
63
|
protected normalizeValue(value: string): string;
|
|
62
64
|
protected renderValue(value: string): void;
|
|
@@ -70,7 +72,9 @@ export declare class TextArea extends Field<string, TextAreaProps> {
|
|
|
70
72
|
private renderMaxLength;
|
|
71
73
|
private renderCounter;
|
|
72
74
|
private renderSizing;
|
|
73
|
-
/** With `autoGrow`, sizes the box to the text, between `minRows` and `maxRows` lines. */
|
|
75
|
+
/** With `autoGrow`, sizes the box to the text, between `minRows` and `maxRows` lines, in the window's next frame. */
|
|
74
76
|
private fit;
|
|
77
|
+
/** Tries the box at its own height and measures what the text needs. */
|
|
78
|
+
private drawFit;
|
|
75
79
|
private renderClear;
|
|
76
80
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { InputMode } from '../../core/input-mode';
|
|
3
3
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
4
4
|
import { Field } from '../../parts/field/Field';
|
|
@@ -60,13 +60,20 @@ export declare class TextBox extends Field<string, TextBoxProps> {
|
|
|
60
60
|
set showMask(value: Bind<'always' | 'focus'>);
|
|
61
61
|
/** Indicates that every position of the mask is filled. This is `true` without a mask. */
|
|
62
62
|
get maskComplete(): boolean;
|
|
63
|
-
|
|
63
|
+
/** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
64
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
64
65
|
get onEnter(): MotifEvent<EnterKeyEventArgs<string>>;
|
|
65
|
-
/** Selects all text. */
|
|
66
|
+
/** Selects all text. The selection is made a moment later, not before the call returns. */
|
|
66
67
|
select(): void;
|
|
67
68
|
/** Clears the field, as the clear button does. */
|
|
68
69
|
clear(): void;
|
|
69
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Puts `text` in the field as if the user typed it in place of what was there: the input shows it (in the shape of the
|
|
72
|
+
* mask, if there is one), the caret goes to its end, and the value follows as typing commits it (`updateOn`).
|
|
73
|
+
*/
|
|
74
|
+
typeText(text: string): void;
|
|
75
|
+
protected get controlTag(): string;
|
|
76
|
+
protected createControl(): ComponentBase;
|
|
70
77
|
protected emptyValue(): string;
|
|
71
78
|
protected normalizeValue(value: string): string;
|
|
72
79
|
protected renderValue(value: string): void;
|
|
@@ -74,6 +81,8 @@ export declare class TextBox extends Field<string, TextBoxProps> {
|
|
|
74
81
|
private get textParts();
|
|
75
82
|
/** What the input holds, as the value. */
|
|
76
83
|
private readInput;
|
|
84
|
+
/** What the user typed is in the input: the counter follows, and the value too unless it waits for `change`. */
|
|
85
|
+
private inputChanged;
|
|
77
86
|
private listen;
|
|
78
87
|
private keyDown;
|
|
79
88
|
private gotFocus;
|
|
@@ -1,5 +1,6 @@
|
|
|
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 { DragBoxes } from "../../parts/drag/drag-boxes";
|
|
3
4
|
import { DragGhost } from "../../parts/drag/DragGhost";
|
|
4
5
|
import type { TileClickEventArgs } from "./tile-click-event-args";
|
|
5
6
|
import type { TileReorderEventArgs } from "./tile-reorder-event-args";
|
|
@@ -29,11 +30,18 @@ interface Session {
|
|
|
29
30
|
x: number;
|
|
30
31
|
y: number;
|
|
31
32
|
fromIndex: number;
|
|
32
|
-
|
|
33
|
+
tile: Component<HTMLDivElement>;
|
|
33
34
|
started: boolean;
|
|
34
35
|
toIndex: number;
|
|
35
36
|
timer: ReturnType<typeof setTimeout> | null;
|
|
36
|
-
|
|
37
|
+
boxes: DragBoxes | null;
|
|
38
|
+
stopEdge: (() => void) | null;
|
|
39
|
+
}
|
|
40
|
+
interface Aim {
|
|
41
|
+
session: Session;
|
|
42
|
+
over: ComponentBase | null;
|
|
43
|
+
to: number;
|
|
44
|
+
side: 'before' | 'after' | null;
|
|
37
45
|
}
|
|
38
46
|
/**
|
|
39
47
|
* Tiles of different sizes packed on a grid of base cells, where a tile spans `widthRatio` × `heightRatio` cells. They
|
|
@@ -108,7 +116,9 @@ export declare class TileView extends Control<HTMLDivElement, TileViewProps> {
|
|
|
108
116
|
lookOf(item: unknown): Look;
|
|
109
117
|
drawTiles(): void;
|
|
110
118
|
makeTile(look: Look): Tile;
|
|
111
|
-
|
|
119
|
+
tileParts(): Component<HTMLDivElement>[];
|
|
120
|
+
startedOn(tile: ComponentBase, selector: string, e: Event): boolean;
|
|
121
|
+
onInnerTile(root: ComponentBase, e: Event): boolean;
|
|
112
122
|
drawRole(): void;
|
|
113
123
|
drawStates(): void;
|
|
114
124
|
drawStops(): void;
|
|
@@ -121,8 +131,8 @@ export declare class TileView extends Control<HTMLDivElement, TileViewProps> {
|
|
|
121
131
|
pointerMove(e: PointerEvent): void;
|
|
122
132
|
pointerUp(e: PointerEvent): void;
|
|
123
133
|
start(e: PointerEvent): boolean;
|
|
124
|
-
|
|
125
|
-
|
|
134
|
+
readonly readAim: () => Aim | null;
|
|
135
|
+
readonly paint: (aim: Aim | null) => void;
|
|
126
136
|
end(e: Event | null, drop: boolean): void;
|
|
127
137
|
}
|
|
128
138
|
export {};
|
|
@@ -1,6 +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
3
|
import type { IconSource } from "../../core/icon-source";
|
|
4
|
+
import { type Box } from "../../core/measure";
|
|
4
5
|
import type { TimelineItem, TimelineTone } from "./timeline-item";
|
|
5
6
|
import type { TimelineItemClickEventArgs } from "./timeline-item-click-event-args";
|
|
6
7
|
import type { TimelineDateFormat, TimelineOrientation, TimelineProps } from "./timeline-props";
|
|
@@ -18,11 +19,14 @@ interface Look {
|
|
|
18
19
|
}
|
|
19
20
|
interface Entry {
|
|
20
21
|
item: unknown;
|
|
22
|
+
as: TimelineOrientation;
|
|
21
23
|
li: Component<HTMLLIElement>;
|
|
22
24
|
dot: Component<HTMLSpanElement>;
|
|
23
25
|
dotGlyph: Component<HTMLSpanElement>;
|
|
24
26
|
dotIcon: ComponentBase | null;
|
|
25
27
|
face: Component<HTMLElement>;
|
|
28
|
+
pressable: boolean;
|
|
29
|
+
faceId: string | null;
|
|
26
30
|
date: Component<HTMLTimeElement>;
|
|
27
31
|
title: Component<HTMLSpanElement>;
|
|
28
32
|
description: Component<HTMLDivElement> | null;
|
|
@@ -45,15 +49,19 @@ export declare class Timeline extends Control<HTMLDivElement, TimelineProps> {
|
|
|
45
49
|
previousButton: Component<HTMLButtonElement>;
|
|
46
50
|
nextButton: Component<HTMLButtonElement>;
|
|
47
51
|
detail: Component<HTMLDivElement>;
|
|
52
|
+
detailId: string;
|
|
48
53
|
detailDate: Component<HTMLTimeElement>;
|
|
49
54
|
detailTitle: Component<HTMLSpanElement>;
|
|
50
55
|
detailDescription: Component<HTMLDivElement>;
|
|
51
56
|
detailContent: Component<HTMLDivElement>;
|
|
52
57
|
entries: Entry[];
|
|
58
|
+
placed: import("@motifx/core").Signal<number>;
|
|
53
59
|
looks: Look[];
|
|
54
60
|
expanded: Set<unknown>;
|
|
55
61
|
stopItems: (() => void) | null;
|
|
56
62
|
drawnAs: TimelineOrientation | null;
|
|
63
|
+
previousDisabled: boolean;
|
|
64
|
+
nextDisabled: boolean;
|
|
57
65
|
previousIndex: number;
|
|
58
66
|
byUser: boolean;
|
|
59
67
|
ready: boolean;
|
|
@@ -104,8 +112,11 @@ export declare class Timeline extends Control<HTMLDivElement, TimelineProps> {
|
|
|
104
112
|
drawStates(): void;
|
|
105
113
|
drawDetail(index: number): void;
|
|
106
114
|
drawNav(): void;
|
|
115
|
+
readTrack: () => Box;
|
|
116
|
+
writeNav: (track: Box) => void;
|
|
107
117
|
makeNav(direction: 'previous' | 'next'): Component<HTMLButtonElement>;
|
|
108
118
|
select(index: number, byUser: boolean, event?: Event): boolean;
|
|
119
|
+
onInnerFace(root: ComponentBase, e: Event): boolean;
|
|
109
120
|
click(e: MouseEvent): void;
|
|
110
121
|
keyDown(e: KeyboardEvent): void;
|
|
111
122
|
}
|
|
@@ -44,7 +44,7 @@ export declare class Toaster extends Control<HTMLElement, ToasterProps> {
|
|
|
44
44
|
danger(text: Bind<string>, options?: ToastProps): Toast;
|
|
45
45
|
/** Closes every toast, including the waiting ones. */
|
|
46
46
|
closeAll(): void;
|
|
47
|
-
/** Moves focus to the newest toast. Returns `false` if there is none. */
|
|
47
|
+
/** Moves focus to the newest toast. Returns `false` if there is none or it cannot take focus. */
|
|
48
48
|
focusNewest(): boolean;
|
|
49
49
|
/** @internal Whether `toast` is on the screen here. */
|
|
50
50
|
isShowing(toast: Toast): boolean;
|
|
@@ -62,7 +62,14 @@ export declare class Toaster extends Control<HTMLElement, ToasterProps> {
|
|
|
62
62
|
/** Shows waiting toasts while there is room. */
|
|
63
63
|
private fill;
|
|
64
64
|
private updatePause;
|
|
65
|
+
/** From the first toast on, follows where focus lands on the page, so focus brought in by Tab, a press, the hotkey or code can go back. */
|
|
66
|
+
private followFocus;
|
|
67
|
+
/** Where focus lands outside the toasts is where it goes back to once it comes into them. */
|
|
68
|
+
private focusLanded;
|
|
65
69
|
private renderHotkey;
|
|
66
|
-
|
|
70
|
+
/** Joins `toaster` to the toasters of `hotkey`, the first one adding its shortcut; returns what takes it out (the last one removes it). */
|
|
71
|
+
private static holdHotkey;
|
|
72
|
+
/** In a toast, focus goes back where it was; elsewhere, to the newest toast of these toasters. */
|
|
73
|
+
private static hotkeyPressed;
|
|
67
74
|
private keyDown;
|
|
68
75
|
}
|
|
@@ -53,8 +53,7 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
53
53
|
* can be plain or reactive, and the toolbar reads them as they are.
|
|
54
54
|
*/
|
|
55
55
|
refresh(): void;
|
|
56
|
-
|
|
57
|
-
protected get focusElement(): HTMLElement;
|
|
56
|
+
get focusPart(): Control | null;
|
|
58
57
|
protected applyProperty(name: string, value: unknown): void;
|
|
59
58
|
private get parts();
|
|
60
59
|
private createParts;
|
|
@@ -75,15 +74,29 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
75
74
|
/** The button variant the toolbar is given; none: its buttons' place decides. */
|
|
76
75
|
private givenButtonVariant;
|
|
77
76
|
private kids;
|
|
78
|
-
/** The
|
|
77
|
+
/** The parts in the bar in order, without the "more" button. For a list or a condition, the parts it holds. */
|
|
78
|
+
private barContent;
|
|
79
|
+
/** The controls the arrow keys visit, in order; the "more" button last. Read from the controls, not from the page. */
|
|
79
80
|
private stops;
|
|
81
|
+
/** Neither the part nor a list or condition holding it in the bar is hidden or waiting (`x-wait`, `x-display`, `motif.hide`). */
|
|
82
|
+
private shownInBar;
|
|
83
|
+
private childrenChanged;
|
|
84
|
+
protected childEnabledChanged(): void;
|
|
80
85
|
private queueRestyle;
|
|
81
86
|
private restyle;
|
|
82
87
|
private renderRoving;
|
|
83
88
|
private renderLook;
|
|
84
|
-
|
|
85
|
-
/** Puts back every item, then moves into the "more" menu what does not fit (and what always goes there). */
|
|
89
|
+
/** Puts back every item, then has the overflow read with the window's next frame (`menu` mode only). */
|
|
86
90
|
private layout;
|
|
91
|
+
private menuMode;
|
|
92
|
+
private readonly readBar;
|
|
93
|
+
/** Moves into the "more" menu what does not fit (and what always goes there). */
|
|
94
|
+
private readonly fit;
|
|
95
|
+
private showOverflow;
|
|
96
|
+
/**
|
|
97
|
+
* Runs in the fit's write: when something has to go, the "more" button is shown, and measured there the first time
|
|
98
|
+
* (and after a change of look); later fits take the size measured then.
|
|
99
|
+
*/
|
|
87
100
|
private findOverflow;
|
|
88
101
|
private moreButton;
|
|
89
102
|
/** The "more" menu: each moved button as a menu item, the separators as group lines. */
|
|
@@ -12,6 +12,11 @@ import type { ToolbarItemType } from './toolbar-item-type';
|
|
|
12
12
|
export interface ToolbarItem {
|
|
13
13
|
/** The default is `'button'`. */
|
|
14
14
|
type?: Bind<ToolbarItemType>;
|
|
15
|
+
/**
|
|
16
|
+
* The command of the app the item runs (see `commands`): what the item is not given, its text, icon, hint, state and
|
|
17
|
+
* action, comes from the command; a toggle is pressed as the command is `checked`.
|
|
18
|
+
*/
|
|
19
|
+
command?: string;
|
|
15
20
|
/** The caption. `&Bold` makes Alt+B click it. */
|
|
16
21
|
text?: Bind<string>;
|
|
17
22
|
icon?: Bind<IconSource | null | undefined>;
|
|
@@ -48,13 +48,21 @@ export declare class Tooltip extends Control<HTMLDivElement, TooltipProps> {
|
|
|
48
48
|
close(): void;
|
|
49
49
|
/** Repositions it relative to its target, for example after the target moves. */
|
|
50
50
|
place(): void;
|
|
51
|
-
/**
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @internal Called by the shared listeners: puts it on the screen next to `anchor`. `described` is the part of the
|
|
53
|
+
* target focus went to, when focus opened it.
|
|
54
|
+
*/
|
|
55
|
+
present(anchor: ComponentBase, described?: ComponentBase): void;
|
|
53
56
|
/** @internal Called by the shared listeners: takes it off the screen. */
|
|
54
57
|
dismiss(): void;
|
|
55
58
|
protected applyProperty(name: string, value: unknown): void;
|
|
56
59
|
private get parts();
|
|
60
|
+
/** The target given, when it has an element to describe (a fragment has none). */
|
|
61
|
+
private takeIn;
|
|
57
62
|
private attach;
|
|
63
|
+
/** The tooltips that go with `target`, which is watched once however many tooltips it is given. */
|
|
64
|
+
private static goWith;
|
|
65
|
+
private leaveWith;
|
|
58
66
|
private renderText;
|
|
59
67
|
private renderContent;
|
|
60
68
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { TooltipProps } from './tooltip-props';
|
|
2
2
|
import type { TooltipTarget } from './tooltip-target';
|
|
3
3
|
/**
|
|
4
|
-
* Adds a tooltip to `target`, created on first use, so it is efficient for many
|
|
5
|
-
* Returns a function that removes it.
|
|
4
|
+
* Adds a tooltip to the component `target`, created on first use, so it is efficient for many components.
|
|
5
|
+
* Returns a function that removes it. It is also removed along with the component.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* for (const cell of row.cells) addTooltip(cell, cell.title);
|
|
9
9
|
* const remove = addTooltip(this.help, { text: 'Opens the guide', placement: 'end' });
|
|
10
10
|
*/
|
|
11
|
-
export declare function addTooltip(
|
|
11
|
+
export declare function addTooltip(anchor: TooltipTarget, options: string | Omit<TooltipProps, 'target'>): () => void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { Tooltip } from './Tooltip';
|
|
2
3
|
type Source = Tooltip | (() => Tooltip);
|
|
3
4
|
type Cause = 'pointer' | 'focus' | 'code';
|
|
4
5
|
export declare const tooltipTiming: {
|
|
5
6
|
skipDelay: number;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
export declare function
|
|
8
|
+
/** Links a target to its tooltip, or to a function that makes it on first use. */
|
|
9
|
+
export declare function linkTooltip(anchor: ComponentBase, source: Source): void;
|
|
10
|
+
export declare function unlinkTooltip(anchor: ComponentBase, source: Source): void;
|
|
9
11
|
export declare function isTooltipShown(tooltip: Tooltip): boolean;
|
|
10
|
-
export declare function showTooltip(tooltip: Tooltip, anchor:
|
|
12
|
+
export declare function showTooltip(tooltip: Tooltip, anchor: ComponentBase, cause: Cause, described?: ComponentBase): void;
|
|
11
13
|
export declare function hideTooltip(tooltip: Tooltip): void;
|
|
12
14
|
export {};
|
|
@@ -8,7 +8,7 @@ import type { TooltipTarget } from './tooltip-target';
|
|
|
8
8
|
* is also a settable, reactive property.
|
|
9
9
|
*/
|
|
10
10
|
export interface TooltipProps extends ControlProps {
|
|
11
|
-
/** The
|
|
11
|
+
/** The component it describes. */
|
|
12
12
|
target?: Bind<TooltipTarget | null | undefined>;
|
|
13
13
|
/** Any content after `text`. Do not include interactive content, because a tooltip never takes focus. */
|
|
14
14
|
content?: Bind<ComponentBase | null | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
|
-
/** The
|
|
3
|
-
export type TooltipTarget =
|
|
2
|
+
/** The component a tooltip describes. */
|
|
3
|
+
export type TooltipTarget = ComponentBase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { Component, type Bind, type ComponentBase, 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 { ItemField } from '../../parts/list/item-field';
|
|
@@ -84,8 +84,8 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
84
84
|
set label(value: Bind<string>);
|
|
85
85
|
get virtualFrom(): number;
|
|
86
86
|
set virtualFrom(value: Bind<number>);
|
|
87
|
-
/** The
|
|
88
|
-
get
|
|
87
|
+
/** The part with `role="tree"`. */
|
|
88
|
+
get treePart(): Component<HTMLDivElement>;
|
|
89
89
|
/** Occurs before a branch expands. Set `e.cancel = true` to keep it collapsed. */
|
|
90
90
|
get onExpanding(): MotifEvent<TreeViewExpandingEventArgs<T>>;
|
|
91
91
|
/** Occurs before a branch collapses. Set `e.cancel = true` to keep it expanded. */
|
|
@@ -132,7 +132,7 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
132
132
|
/** Reloads a row's children, or all loaded children when no key is given, and re-reads the items. */
|
|
133
133
|
reload(key?: unknown): void;
|
|
134
134
|
/** Focuses the row Tab reaches. */
|
|
135
|
-
|
|
135
|
+
get focusPart(): ComponentBase;
|
|
136
136
|
protected applyProperty(name: string, value: unknown): void;
|
|
137
137
|
private get parts();
|
|
138
138
|
private fields;
|
|
@@ -184,16 +184,38 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
184
184
|
private redraw;
|
|
185
185
|
private computeRows;
|
|
186
186
|
private get windowFrom();
|
|
187
|
+
/** Draws the rows: a row whose key and look stay is kept, its text and states written in place. */
|
|
187
188
|
private drawAll;
|
|
188
|
-
/**
|
|
189
|
+
/**
|
|
190
|
+
* Builds the rows from `from` on that sit at `level`, their open children nested in groups. With `old`, the rows
|
|
191
|
+
* drawn before: where `keep` says the host stayed, a row kept for its key stays in place, its group with it.
|
|
192
|
+
*/
|
|
189
193
|
private buildBranch;
|
|
190
|
-
/**
|
|
194
|
+
/** Takes the rows drawn so far out of the tree's keeping, by key: `keepRow` gives those that stay back. */
|
|
195
|
+
private takeRows;
|
|
196
|
+
/** The row drawn before for `row`'s key, kept for its new node when what it was drawn with stays; null otherwise. */
|
|
197
|
+
private keepRow;
|
|
198
|
+
/** Lets go of the rows drawn before that were not kept. */
|
|
199
|
+
private dropRows;
|
|
200
|
+
private addGroup;
|
|
201
|
+
/**
|
|
202
|
+
* The rows inside `group`, taken out of `rows`, or without it out of the tree's keeping: `keepRow` gives back those
|
|
203
|
+
* that stay.
|
|
204
|
+
*/
|
|
205
|
+
private takeWithin;
|
|
206
|
+
/** A group opens again: the rows hidden with it join `rows` for keeping, and it shows. */
|
|
207
|
+
private openGroup;
|
|
208
|
+
/** A row closes: its group hides with its rows in it, kept for when it opens again; a row left without children lets them go. */
|
|
209
|
+
private closeGroup;
|
|
210
|
+
/** A row opened or closed: its group is built on the first open, then shown and hidden; its rows kept by key. */
|
|
191
211
|
private drawBranch;
|
|
192
212
|
/** In a long tree: the rows in view (and the one Tab reaches), two empty blocks for the rest. */
|
|
193
213
|
private drawWindow;
|
|
194
214
|
private space;
|
|
195
215
|
private measure;
|
|
196
|
-
private
|
|
216
|
+
private itemPart;
|
|
217
|
+
/** The parts of a row, not kept by the tree yet; what takes its icon and template away again goes to `releases`. */
|
|
218
|
+
private rowParts;
|
|
197
219
|
/** A row's states: level and place, open, selected, checked, enabled, loading. */
|
|
198
220
|
private renderItem;
|
|
199
221
|
private renderError;
|
|
@@ -205,13 +227,16 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
205
227
|
private renderRoving;
|
|
206
228
|
private renderLook;
|
|
207
229
|
private renderSearch;
|
|
208
|
-
/**
|
|
209
|
-
private placeSearch;
|
|
230
|
+
/** Lets go of the row drawn for `node`: what its icon and template hold is released, and the tree keeps it no longer. */
|
|
210
231
|
private forget;
|
|
211
232
|
private releaseAll;
|
|
212
233
|
private scrollToRow;
|
|
213
234
|
private focusRow;
|
|
214
235
|
private listen;
|
|
236
|
+
/** The scrolled rows are drawn once a frame, however many scroll events came. */
|
|
237
|
+
private readScroll;
|
|
238
|
+
private writeScroll;
|
|
239
|
+
/** The node of the drawn row an event came from: the innermost one, as a row holds the rows of its open children. */
|
|
215
240
|
private nodeOf;
|
|
216
241
|
private clicked;
|
|
217
242
|
private doubleClicked;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
/** The parts of a drawn row: the item, its line with the expander and check box, the group of its open children and its load error. */
|
|
3
|
+
export interface TreeRowParts {
|
|
4
|
+
item: Component<HTMLDivElement>;
|
|
5
|
+
line: Component<HTMLDivElement>;
|
|
6
|
+
expander: Component<HTMLSpanElement>;
|
|
7
|
+
/** Drawn while check boxes show. */
|
|
8
|
+
check: Component<HTMLSpanElement> | null;
|
|
9
|
+
group: Component<HTMLDivElement> | null;
|
|
10
|
+
error: Component<HTMLSpanElement> | null;
|
|
11
|
+
/** The load error's retry button. */
|
|
12
|
+
retry: Component<HTMLButtonElement> | null;
|
|
13
|
+
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Draws the content of a row instead of its text. It can return a cleanup function.
|
|
4
|
+
*
|
|
5
|
+
* @param host The place the content goes in: add your components to its `controls`, or give it a text.
|
|
6
|
+
*/
|
|
7
|
+
export type TreeViewItemTemplate<T> = (item: T, host: ComponentBase<HTMLElement>) => (() => void) | void;
|