@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,11 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Calls `heard` after each change of the look (a design language, a theme, a density, fonts that finished loading) and when a length `component` reads
|
|
4
|
+
* came out another size. Nothing is followed per component: `heard` runs while it is out of the page too, so read through
|
|
5
|
+
* `measure` and leave out what is not laid out. Returns what stops it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function onLookChange(component: ComponentBase, heard: () => void): () => void;
|
|
8
|
+
/** Tells the look listeners of `component` alone: a length it reads came out another size. */
|
|
9
|
+
export declare function tellLook(component: ComponentBase): void;
|
|
10
|
+
/** Counts the changes of the look: a length read under another count is read again. */
|
|
11
|
+
export declare function lookVersion(): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Job } from './job';
|
|
3
|
+
import type { View } from './view';
|
|
4
|
+
/** Work for every frame of the window its owner is in. */
|
|
5
|
+
export interface Loop {
|
|
6
|
+
readonly owner: ComponentBase;
|
|
7
|
+
readonly job: Job;
|
|
8
|
+
/** The window it runs in now; none while its owner is out of the page. */
|
|
9
|
+
view: View | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/** Whether `query` matches in the window `component` is in: `mediaOf(this, '(pointer: coarse)')`. */
|
|
3
|
+
export declare function mediaOf(component: ComponentBase, query: string): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Calls `changed` with the new answer each time `query` starts or stops matching in the window `component` is in
|
|
6
|
+
* (the window it is in now). Returns what stops it; nothing is told where the window has no `matchMedia`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function onMedia(component: ComponentBase, query: string, changed: (matches: boolean) => void): () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Runs `write` once the styles written so far are worked out, so a transition starts from them or an animation starts
|
|
4
|
+
* over: one style read in the next read, shared by every component asking that frame, and no layout.
|
|
5
|
+
*/
|
|
6
|
+
export declare function afterStyle(owner: ComponentBase, write: () => void): () => void;
|
|
7
|
+
/** Whether motion is welcome where `component` is: the design system's durations are 0 under reduced motion. */
|
|
8
|
+
export declare function hasMotion(component: ComponentBase): boolean;
|
|
9
|
+
/** The longest transition of `component`, its delay counted, in milliseconds; 0 without motion. */
|
|
10
|
+
export declare function transitionTime(component: ComponentBase): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Size } from './size';
|
|
3
|
+
import type { SizeBox } from './size-box';
|
|
4
|
+
/**
|
|
5
|
+
* Reports the size of `target` on every change the browser lays out, in the window it is in now; a target observed there
|
|
6
|
+
* already gives its last size at once. Nothing where the window has no size observer (a test document). Returns what stops it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function observe(target: ComponentBase, box: SizeBox, report: (size: Size) => void): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Reports whether `target` is in sight in the viewport of the window it is in now, at once and on every change. Where the
|
|
11
|
+
* window has no sight observer (a test document), it is in sight. Returns what stops it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function observeSight(target: ComponentBase, report: (seen: boolean) => void): () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { LayoutOptions } from './layout-options';
|
|
3
|
+
import type { Size } from './size';
|
|
4
|
+
/**
|
|
5
|
+
* Calls `changed` when `change` happens to `target`, and once when it is first in a page:
|
|
6
|
+
* - `size`: its size changed; the size comes with the call. The first one is read by the layer in the first run after
|
|
7
|
+
* this call (and after it is shown again or moved); later ones come from the size observer, a frame after the browser
|
|
8
|
+
* laid them out. A size within half a pixel of the last one told is not told again.
|
|
9
|
+
* - `look`: the design language, theme or density changed, fonts finished loading, a length it reads came out another size, or it moved into
|
|
10
|
+
* another window.
|
|
11
|
+
* - `page`: its window changed size. `scroll`: something scrolled in the page of its window, but inside `except`.
|
|
12
|
+
* - `sight`: it came into the viewport of its window or left it; whether it is in sight comes with the call.
|
|
13
|
+
* - `viewport`: the part of its window in sight (`viewportOf`) changed: a pinch zoom, an on-screen keyboard, or where
|
|
14
|
+
* the browser has no visual viewport, the window's size.
|
|
15
|
+
* `changed` runs at the start of the next round of that window, before the reads: it may write a state to measure and
|
|
16
|
+
* ask for reads (`measure`), and reads nothing itself. The watch follows `target` from window to window, waits while it
|
|
17
|
+
* is out of the page, and ends with `target`, with `owner` when given, or when the returned function is called.
|
|
18
|
+
* Notices wait until core reports `target` mounted: a component placed outside the component tree never hears them.
|
|
19
|
+
* A target with no element of its own (a list, a branch) is watched for `size` and `sight` through `holderOf(target)`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function onLayout(target: ComponentBase, change: 'size', changed: (size: Size) => void, options?: LayoutOptions): () => void;
|
|
22
|
+
export declare function onLayout(target: ComponentBase, change: 'sight', changed: (seen: boolean) => void, options?: LayoutOptions): () => void;
|
|
23
|
+
export declare function onLayout(target: ComponentBase, change: 'look' | 'page' | 'scroll' | 'viewport', changed: () => void, options?: LayoutOptions): () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Calls `heard` when the window `component` is in changes size, or when anything in its page scrolls (the page too),
|
|
4
|
+
* except a scroll that starts inside `except`. Returns what stops it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function listenPage(component: ComponentBase, kind: 'resize' | 'scroll', heard: () => void, except?: ComponentBase): () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The page of a window: its viewport without the scroll bars, how far it is scrolled and its direction. */
|
|
2
|
+
export interface Page {
|
|
3
|
+
readonly width: number;
|
|
4
|
+
readonly height: number;
|
|
5
|
+
readonly scrollWidth: number;
|
|
6
|
+
readonly scrollHeight: number;
|
|
7
|
+
/** From the inline start (never negative, right to left too) and from the top. */
|
|
8
|
+
readonly scrollStart: number;
|
|
9
|
+
readonly scrollTop: number;
|
|
10
|
+
readonly rtl: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A scroll written through a component and not made yet: where each axis goes, and how far it moves on from there. */
|
|
2
|
+
export interface PendingScroll {
|
|
3
|
+
start?: number;
|
|
4
|
+
top?: number;
|
|
5
|
+
byStart: number;
|
|
6
|
+
byTop: number;
|
|
7
|
+
/** Counts the writes: only the last one's turn forgets it. */
|
|
8
|
+
writes: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { PendingScroll } from './pending-scroll';
|
|
3
|
+
import type { ScrollPlace } from './scroll-place';
|
|
4
|
+
/** Notes a scroll written to `component` (`by`: a move on from where it is) until core has made it: reads in between count it. */
|
|
5
|
+
export declare function notePending(component: ComponentBase, place: ScrollPlace, by?: boolean): void;
|
|
6
|
+
/** The scroll written to `component` and not made yet. */
|
|
7
|
+
export declare function pendingScroll(component: ComponentBase): PendingScroll | undefined;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { WindowBound } from './window-bound';
|
|
3
|
+
/** How a length is known in a probe set: its axis and itself. */
|
|
4
|
+
export declare function lengthKey(length: string, block: boolean): string;
|
|
5
|
+
/** The hidden probes of one owner: parts sized by a length, read as that length in pixels. */
|
|
6
|
+
export declare class ProbeSet implements WindowBound {
|
|
7
|
+
private readonly owner;
|
|
8
|
+
/** By key: the length, its axis, its probe once made, what it was read as, whether it was laid out then, and the look it was read under (-1: read again). */
|
|
9
|
+
readonly lengths: Map<string, {
|
|
10
|
+
length: string;
|
|
11
|
+
block: boolean;
|
|
12
|
+
probe: Component<HTMLSpanElement> | null;
|
|
13
|
+
px: number;
|
|
14
|
+
laidOut: boolean;
|
|
15
|
+
version: number;
|
|
16
|
+
}>;
|
|
17
|
+
private box;
|
|
18
|
+
private readonly undo;
|
|
19
|
+
private attached;
|
|
20
|
+
private stopped;
|
|
21
|
+
constructor(owner: ComponentBase);
|
|
22
|
+
get isStopped(): boolean;
|
|
23
|
+
/** Notes `length` under `key` the first time; its probe is made with `make`. */
|
|
24
|
+
note(key: string, length: string, block: boolean): void;
|
|
25
|
+
/** Makes the probe of `key`: a token (`--name`) or any CSS length. */
|
|
26
|
+
make(key: string): void;
|
|
27
|
+
attach(): void;
|
|
28
|
+
detach(): void;
|
|
29
|
+
arrived(): void;
|
|
30
|
+
stop(): void;
|
|
31
|
+
private makeBox;
|
|
32
|
+
private watch;
|
|
33
|
+
/** A probe came out another size (a stylesheet that came late, another language): it is read again, and the owner's look watches hear it. */
|
|
34
|
+
private resized;
|
|
35
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Box } from './box';
|
|
3
|
+
import type { Page } from './page';
|
|
4
|
+
import type { Rect } from './rect';
|
|
5
|
+
import type { Size } from './size';
|
|
6
|
+
import type { SizeBox } from './size-box';
|
|
7
|
+
/**
|
|
8
|
+
* `component`'s box now: for a fragment (a list, a branch, a function component), the box around what it lays out, which
|
|
9
|
+
* scrolls nothing; empty for what is not laid out. In a read phase each component is read once, whoever asks; outside
|
|
10
|
+
* one it is read fresh, so read first and write after.
|
|
11
|
+
*/
|
|
12
|
+
export declare function boxOf(component: ComponentBase): Box;
|
|
13
|
+
/** Only where `component` is on the screen (a fragment: around what it lays out): one read, for hit tests and pointer math. */
|
|
14
|
+
export declare function rectOf(component: ComponentBase): Rect;
|
|
15
|
+
/** The page of the window `component` is in: its viewport without scroll bars, its scroll and its direction. */
|
|
16
|
+
export declare function pageOf(component: ComponentBase): Page;
|
|
17
|
+
/** The background the page of `component`'s window shows behind everything: its body's, else its root's, else the canvas color. */
|
|
18
|
+
export declare function pageBackgroundOf(component: ComponentBase): string;
|
|
19
|
+
/** Computed values of `component`'s element by their CSS names (custom properties too), trimmed; '' where there is none, and for a fragment. */
|
|
20
|
+
export declare function styleOf<K extends string>(component: ComponentBase, names: readonly K[]): Record<K, string>;
|
|
21
|
+
/** Whether `component` is written right to left (a fragment as what holds it): read once in a run, fresh outside one. */
|
|
22
|
+
export declare function isRtl(component: ComponentBase): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether `component` is drawn: it and every component above it shown, and laid out with a box and visible (no
|
|
25
|
+
* `display: none` here or above, no `visibility: hidden`, no `content-visibility: hidden` above it). Where the window lays
|
|
26
|
+
* nothing out (a test document), the component tree decides alone.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isRendered(component: ComponentBase): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether `component` stands in a document now: its element, or for a fragment the element of the component holding it,
|
|
31
|
+
* is in a page. A component built and kept aside, or taken out, is not.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isInPage(component: ComponentBase): boolean;
|
|
34
|
+
/** Whether the window `component` is in lays pages out: a browser does; a test document does not, and every box is empty there. */
|
|
35
|
+
export declare function canMeasure(component: ComponentBase): boolean;
|
|
36
|
+
/** Whether two components are in the same window. */
|
|
37
|
+
export declare function sameWindow(a: ComponentBase, b: ComponentBase): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The component that holds `component` in the page's layout: itself when it has an element of its own, else the nearest
|
|
40
|
+
* one above it that has one (past a list, a branch, a function component); null when none does.
|
|
41
|
+
*/
|
|
42
|
+
export declare function holderOf(component: ComponentBase): ComponentBase | null;
|
|
43
|
+
/**
|
|
44
|
+
* The size a size watch reports, read now: the border box, the content box, or the content box in the screen's own
|
|
45
|
+
* pixels. As laid out, as the size observer reports it: a transform (a part scaling in) does not count.
|
|
46
|
+
*/
|
|
47
|
+
export declare function sizeOf(component: ComponentBase, box: SizeBox): Size;
|
|
48
|
+
/** Whether `component` has a box in a page: `display: none` here or above, or being out of the page, leaves none. */
|
|
49
|
+
export declare function isLaidOut(component: ComponentBase): boolean;
|
|
50
|
+
/** How far `component` is scrolled, from its inline start and from its top, counting a scroll written and not made yet. */
|
|
51
|
+
export declare function scrollOf(component: ComponentBase): {
|
|
52
|
+
start: number;
|
|
53
|
+
top: number;
|
|
54
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Where a part is on the screen: pixels from the top left corner of the viewport of its own window. */
|
|
2
|
+
export interface Rect {
|
|
3
|
+
readonly left: number;
|
|
4
|
+
readonly top: number;
|
|
5
|
+
readonly right: number;
|
|
6
|
+
readonly bottom: number;
|
|
7
|
+
readonly width: number;
|
|
8
|
+
readonly height: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ScrollMotion } from './scroll-motion';
|
|
3
|
+
/** How `reveal` brings something into view. */
|
|
4
|
+
export interface RevealOptions {
|
|
5
|
+
/** The axis it may scroll: `x`, `y`, or `both` (the default). */
|
|
6
|
+
axis?: 'x' | 'y' | 'both';
|
|
7
|
+
/** Where it comes to rest when it has to move: the nearer edge (the default), the start, the middle or the end. */
|
|
8
|
+
align?: 'nearest' | 'start' | 'center' | 'end';
|
|
9
|
+
/** Room covered at an edge by parts that do not scroll (a sticky head, pinned columns): pixels, or the part. */
|
|
10
|
+
cover?: {
|
|
11
|
+
start?: number | ComponentBase;
|
|
12
|
+
end?: number | ComponentBase;
|
|
13
|
+
top?: number | ComponentBase;
|
|
14
|
+
bottom?: number | ComponentBase;
|
|
15
|
+
};
|
|
16
|
+
/** How it moves; at once by default. */
|
|
17
|
+
motion?: ScrollMotion;
|
|
18
|
+
/** Runs in the write of the round after, once the scroll is made: a virtual list draws the rows now in view. */
|
|
19
|
+
then?: () => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Box } from './box';
|
|
3
|
+
import type { Page } from './page';
|
|
4
|
+
import type { Rect } from './rect';
|
|
5
|
+
/** What the read phase going on has read, by component: each box, rect, style and page once, whoever asks. Emptied when it ends. */
|
|
6
|
+
export declare const roundReads: {
|
|
7
|
+
boxes: Map<ComponentBase<any, any>, Box>;
|
|
8
|
+
rects: Map<ComponentBase<any, any>, Rect>;
|
|
9
|
+
styles: Map<ComponentBase<any, any>, CSSStyleDeclaration>;
|
|
10
|
+
laidOut: Map<ComponentBase<any, any>, boolean>;
|
|
11
|
+
pages: Map<ComponentBase<any, any>, Page>;
|
|
12
|
+
};
|
|
13
|
+
/** Forgets what was read: a write may have changed it. */
|
|
14
|
+
export declare function forgetReads(): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Loop } from './loop';
|
|
3
|
+
/**
|
|
4
|
+
* Reads with the next round of `owner`'s window, with every other read of it, then hands what was read to `write` after
|
|
5
|
+
* all of them. Asked for again before it runs (the same `read` and `write`), it runs once; asked for in a write, it runs
|
|
6
|
+
* in the next round of the same frame. Nothing runs for an owner disposed by then. Returns what takes it back.
|
|
7
|
+
*/
|
|
8
|
+
export declare function measure<T>(owner: ComponentBase, read: () => T, write: (value: T) => void): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Runs the work waiting in `owner`'s window now, round after round, for what needs an answer at once: a test, a print,
|
|
11
|
+
* an export. The rounds after the first run before core makes the scrolls written in them: a box counts them, the parts
|
|
12
|
+
* inside it do not yet. Inside a round of any window it does nothing, and development hears of it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function measureNow(owner: ComponentBase): void;
|
|
15
|
+
/** Resolves once the next run of `owner`'s window is over: what was asked before it is measured and written. */
|
|
16
|
+
export declare function whenMeasured(owner: ComponentBase): Promise<void>;
|
|
17
|
+
/** Whether work waits in `owner`'s window: asked for and not run yet, or a run going on. A test waits for it to be over. */
|
|
18
|
+
export declare function isMeasurePending(owner: ComponentBase): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Reads in the middle of a write, after what it wrote: the one layout on purpose, for a fit that tries a layout and
|
|
21
|
+
* measures it. Development hears of it outside a write, and of a run that does it more than MOST_TRIES times.
|
|
22
|
+
*/
|
|
23
|
+
export declare function readAgain<T>(read: () => T): T;
|
|
24
|
+
/** Calls `notice` at the start of the next round of `component`'s window, before its reads; one per `key`, the last wins. */
|
|
25
|
+
export declare function queueNotice(component: ComponentBase, key: object, notice: () => void): void;
|
|
26
|
+
export declare function addLoop(loop: Loop): void;
|
|
27
|
+
export declare function removeLoop(loop: Loop): void;
|
|
28
|
+
/** Runs `make` once the reads going on are over (at once outside them): a part made while reading would change the page under them. */
|
|
29
|
+
export declare function afterReads(make: () => void): void;
|
|
30
|
+
export declare function isReading(): boolean;
|
|
31
|
+
/** The run a round going on belongs to, to keep what is read in it (a direction); -1 outside rounds. */
|
|
32
|
+
export declare function runNumber(): number;
|
|
33
|
+
/** A layout read hit the page: development hears of one in a write or a notice, where it lays the page out again. */
|
|
34
|
+
export declare function noteRead(): void;
|
|
35
|
+
/** Tells development once about a call the layer took another way. */
|
|
36
|
+
export declare function warnOnce(kind: string, message: string): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { RevealOptions } from './reveal-options';
|
|
3
|
+
import type { RevealRange } from './reveal-range';
|
|
4
|
+
import type { ScrollMotion } from './scroll-motion';
|
|
5
|
+
import type { ScrollPlace } from './scroll-place';
|
|
6
|
+
/**
|
|
7
|
+
* Scrolls `component` to `place` through its own `scrollTo`, which core calls a microtask later; reads in between count
|
|
8
|
+
* an instant one. Returns whether it wrote: where the element cannot scroll (a test document without scroll methods),
|
|
9
|
+
* nothing is written.
|
|
10
|
+
*/
|
|
11
|
+
export declare function scrollTo(component: ComponentBase, place: ScrollPlace, motion?: ScrollMotion): boolean;
|
|
12
|
+
/** Scrolls `component` on by `by` (`start` along the inline axis, right to left too) through its own `scrollBy`. Returns whether it wrote. */
|
|
13
|
+
export declare function scrollBy(component: ComponentBase, by: ScrollPlace, motion?: ScrollMotion): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Brings `target` into view through its own `scrollIntoView`: every scroller around it moves, the page too, where
|
|
16
|
+
* `reveal` moves one. Returns whether it wrote.
|
|
17
|
+
*/
|
|
18
|
+
export declare function scrollIntoView(target: ComponentBase, options?: {
|
|
19
|
+
block?: ScrollLogicalPosition;
|
|
20
|
+
inline?: ScrollLogicalPosition;
|
|
21
|
+
motion?: ScrollMotion;
|
|
22
|
+
}): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Scrolls `scroller`, and nothing else, only as far as it takes to bring `target` into view: one of its parts, or a
|
|
25
|
+
* stretch of its content placed by the model. Read in the next round, written after it. Returns what takes it back.
|
|
26
|
+
*/
|
|
27
|
+
export declare function reveal(scroller: ComponentBase, target: ComponentBase | RevealRange, options?: RevealOptions): () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Notes how far `root` and every component under it are scrolled, before a change that loses it (a move to another
|
|
30
|
+
* parent or window, a part hidden, a drag that may be canceled). The function returned scrolls them back in the next
|
|
31
|
+
* round of the windows they are in then. Only components are kept: content that is no component scrolls back on its own
|
|
32
|
+
* or not at all.
|
|
33
|
+
*/
|
|
34
|
+
export declare function keepScroll(root: ComponentBase): () => void;
|
|
35
|
+
/** `component`, or the nearest component it sits in, that scrolls along `axis`; null for the page. */
|
|
36
|
+
export declare function scrollerOf(component: ComponentBase, axis?: 'x' | 'y'): ComponentBase | null;
|
|
37
|
+
/**
|
|
38
|
+
* The innermost component, `within` or under it, that the event started in and that can still scroll along `axis`; null
|
|
39
|
+
* when none can. Found down the component tree with `motif.isEventFrom`, never from the event's element.
|
|
40
|
+
*/
|
|
41
|
+
export declare function scrollerUnder(e: Event, within: ComponentBase, axis: 'x' | 'y'): ComponentBase | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Size } from './size';
|
|
3
|
+
/** The hidden text probes of one part: a text written once and read once, its size kept until the look changes. */
|
|
4
|
+
export declare class TextProbes {
|
|
5
|
+
private readonly host;
|
|
6
|
+
private readonly className;
|
|
7
|
+
private readonly sizes;
|
|
8
|
+
private readonly probes;
|
|
9
|
+
private box;
|
|
10
|
+
private version;
|
|
11
|
+
constructor(host: ComponentBase, className: string);
|
|
12
|
+
/** Writes the texts not known yet into probes, read in the next read phase. */
|
|
13
|
+
write(texts: readonly string[]): void;
|
|
14
|
+
/** The sizes of `texts` (the height of a line of the font): the known ones as kept, the others read from their probes. */
|
|
15
|
+
read(texts: readonly string[]): Size[];
|
|
16
|
+
/** Keeps the sizes read (a text that came out at no width is read again next time) and takes the probes away. */
|
|
17
|
+
keep(texts: readonly string[], sizes: readonly Size[]): void;
|
|
18
|
+
private makeBox;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Size } from './size';
|
|
3
|
+
/**
|
|
4
|
+
* Measures how wide `texts` come out in `host`'s font (an HTML part whose children are its own parts): writes the ones
|
|
5
|
+
* not known yet into hidden probes of `host`, reads them all with the next reads of its window, and hands the widths to
|
|
6
|
+
* `write` in the same order. `className`: a class for the probes' box, for kit CSS that gives it the font of the texts
|
|
7
|
+
* (a chart's labels). A width is kept per text until the look changes. Returns what takes it back.
|
|
8
|
+
*/
|
|
9
|
+
export declare function textWidths(host: ComponentBase, texts: readonly string[], write: (widths: number[]) => void, className?: string): () => void;
|
|
10
|
+
/**
|
|
11
|
+
* `textWidths` with the height of each text too: the height of a line of the font it comes out in, as a drawing that
|
|
12
|
+
* writes the texts itself (an SVG label) lays them out with.
|
|
13
|
+
*/
|
|
14
|
+
export declare function textSizes(host: ComponentBase, texts: readonly string[], write: (sizes: Size[]) => void, className?: string): () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Rect } from './rect';
|
|
2
|
+
/**
|
|
3
|
+
* The part of a window in sight (`viewportOf`): pixels from the top left corner of the window's layout viewport, with
|
|
4
|
+
* the size of the whole window (`innerWidth`, `innerHeight`). What the window has below `bottom` is covered, by an
|
|
5
|
+
* on-screen keyboard for one.
|
|
6
|
+
*/
|
|
7
|
+
export interface Viewport extends Rect {
|
|
8
|
+
readonly windowWidth: number;
|
|
9
|
+
readonly windowHeight: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Viewport } from './viewport-rect';
|
|
3
|
+
/**
|
|
4
|
+
* The part of the window `component` is in that is in sight now: the visual viewport where the browser has one (a
|
|
5
|
+
* pinch zoom or an on-screen keyboard makes it smaller than the window), else the whole window.
|
|
6
|
+
*/
|
|
7
|
+
export declare function viewportOf(component: ComponentBase): Viewport;
|
|
8
|
+
/**
|
|
9
|
+
* Calls `heard` when the part of the window in sight changes (`onLayout(…, 'viewport')`): the visual viewport's resize
|
|
10
|
+
* and scroll where the browser has one, else the window's resize. Returns what stops it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function listenViewport(component: ComponentBase, heard: () => void): () => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { LayoutChange } from './layout-change';
|
|
3
|
+
import type { SizeBox } from './size-box';
|
|
4
|
+
import type { Watcher } from './watcher';
|
|
5
|
+
import type { WindowBound } from './window-bound';
|
|
6
|
+
/** One `onLayout`: what it listens to in the target's window, and the callback it tells. */
|
|
7
|
+
export declare class Watch implements WindowBound {
|
|
8
|
+
private readonly target;
|
|
9
|
+
private readonly watchers;
|
|
10
|
+
private readonly change;
|
|
11
|
+
private readonly box;
|
|
12
|
+
private readonly changed;
|
|
13
|
+
private readonly except;
|
|
14
|
+
private undo;
|
|
15
|
+
private stopped;
|
|
16
|
+
private told;
|
|
17
|
+
private missed;
|
|
18
|
+
/** For `size`: the last size told. */
|
|
19
|
+
private size;
|
|
20
|
+
/** For `sight`: whether it was in sight when last told. */
|
|
21
|
+
private seen;
|
|
22
|
+
private readonly stopHearing;
|
|
23
|
+
/** The size the layer reads itself: the first one, and the one after each arrival. */
|
|
24
|
+
private readonly readSize;
|
|
25
|
+
private readonly takeSize;
|
|
26
|
+
constructor(target: ComponentBase, watchers: readonly Watcher[], change: LayoutChange, box: SizeBox, changed: (value: unknown) => void, except: ComponentBase | undefined);
|
|
27
|
+
attach(): void;
|
|
28
|
+
detach(): void;
|
|
29
|
+
arrived(moved: boolean): void;
|
|
30
|
+
stop(): void;
|
|
31
|
+
private heard;
|
|
32
|
+
private resized;
|
|
33
|
+
private sighted;
|
|
34
|
+
private tell;
|
|
35
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ComponentBase, IDisposable } from '@motifx/core';
|
|
2
|
+
import type { WindowBound } from './window-bound';
|
|
3
|
+
/**
|
|
4
|
+
* What the layer keeps for one component: the window it is in, whether it is in the page, what is held for it there and
|
|
5
|
+
* what ends with it. Made once and registered with the component once, however many watches come and go.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Watcher implements IDisposable {
|
|
8
|
+
private readonly component;
|
|
9
|
+
private static readonly made;
|
|
10
|
+
/** Held in the window the component is in: attached there, detached when it leaves. */
|
|
11
|
+
private readonly bound;
|
|
12
|
+
/** Held elsewhere, ending with the component: watches it owns on other components. */
|
|
13
|
+
private readonly owned;
|
|
14
|
+
private view;
|
|
15
|
+
private active;
|
|
16
|
+
private attached;
|
|
17
|
+
private leaving;
|
|
18
|
+
private placed;
|
|
19
|
+
private listening;
|
|
20
|
+
private disposed;
|
|
21
|
+
private constructor();
|
|
22
|
+
static of(component: ComponentBase): Watcher;
|
|
23
|
+
/** In the page now: not hidden, not taken out. */
|
|
24
|
+
get isActive(): boolean;
|
|
25
|
+
/** Core reported it mounted: look, page and scroll notices wait for it. */
|
|
26
|
+
get isPlaced(): boolean;
|
|
27
|
+
/** Holds `item` in the window the component is in, from its mount and after every move; it ends with the component. */
|
|
28
|
+
hold(item: WindowBound): void;
|
|
29
|
+
/** Ends `item` with the component too. */
|
|
30
|
+
own(item: WindowBound): void;
|
|
31
|
+
release(item: WindowBound): void;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
private listen;
|
|
34
|
+
/** In a page again: shown, put back, or moved into another window, where what is held starts again. */
|
|
35
|
+
private arrive;
|
|
36
|
+
/**
|
|
37
|
+
* Out of the page. Taken out to be put in again at once (a move to another parent, another window) it keeps what it
|
|
38
|
+
* holds: only what is still out at the end of the task stops.
|
|
39
|
+
*/
|
|
40
|
+
private leave;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** What the layer holds for a component in the window it is in now: an observation, a listener, a frame loop. */
|
|
2
|
+
export interface WindowBound {
|
|
3
|
+
/** Starts in the window the component is in now. */
|
|
4
|
+
attach(): void;
|
|
5
|
+
/** Stops what `attach` started: the component left the page or the window. */
|
|
6
|
+
detach(): void;
|
|
7
|
+
/** The component is in a page: mounted, shown again, or moved (`moved`: into another window). */
|
|
8
|
+
arrived(moved: boolean): void;
|
|
9
|
+
/** Ends it for good. */
|
|
10
|
+
stop(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { Job } from './job';
|
|
3
|
+
import type { View } from './view';
|
|
4
|
+
/** The measuring work of one window. */
|
|
5
|
+
export interface WindowFrame {
|
|
6
|
+
readonly view: View;
|
|
7
|
+
/** For the next round. */
|
|
8
|
+
jobs: Job[];
|
|
9
|
+
/** What onLayout was told, for the next round: one per watch, the last one told wins. */
|
|
10
|
+
notices: Map<object, {
|
|
11
|
+
component: ComponentBase;
|
|
12
|
+
notice: () => void;
|
|
13
|
+
}>;
|
|
14
|
+
/** Stops the frame or the timer waited for. */
|
|
15
|
+
waiting: (() => void) | null;
|
|
16
|
+
running: boolean;
|
|
17
|
+
run: number;
|
|
18
|
+
rounds: number;
|
|
19
|
+
/** Reads after writes in this run (`readAgain`). */
|
|
20
|
+
tries: number;
|
|
21
|
+
/** What development already heard of in this run. */
|
|
22
|
+
warned: Set<string>;
|
|
23
|
+
/** Told when the run is over. */
|
|
24
|
+
done: (() => void)[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Puts `desired` first among the controls of `parent`, in that order, moving as few as possible and never the one that
|
|
4
|
+
* holds keyboard focus: moving a focused element blurs it. A desired control not in `parent` yet is inserted at its
|
|
5
|
+
* place. Other controls keep their order after the desired ones.
|
|
6
|
+
*/
|
|
7
|
+
export declare function orderControls(parent: ComponentBase, desired: readonly ComponentBase[]): void;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
1
2
|
type Setup = (doc: Document) => () => void;
|
|
2
3
|
/** The page's own document first, then the connected ones. */
|
|
3
4
|
export declare function pageDocuments(): Document[];
|
|
5
|
+
/** The page's own browser window; `null` outside a browser. */
|
|
6
|
+
export declare function pageWindow(): Window | null;
|
|
7
|
+
/**
|
|
8
|
+
* The browser window `part` is in, found from the component tree: the window whose root it stands under, one of the
|
|
9
|
+
* app's (`app.windows`) or one the kit noted (`noteWindowRoot`), else the page's own.
|
|
10
|
+
*/
|
|
11
|
+
export declare function windowOf(part: ComponentBase): Window | null;
|
|
12
|
+
/**
|
|
13
|
+
* @internal Notes that `root` holds what the kit placed in `view`, a window the page opened, so `windowOf` finds that
|
|
14
|
+
* window for everything under it. Returns what forgets it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function noteWindowRoot(root: ComponentBase, view: Window): () => void;
|
|
4
17
|
/** The document of the page focus went to last, while others are connected; `null` when none are. */
|
|
5
18
|
export declare function lastFocusedDocument(): Document | null;
|
|
6
19
|
/** Whether a document is the page's own or a connected one. */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentBase } from '@motifx/core';
|
|
2
|
+
/**
|
|
3
|
+
* Puts `component` above the page of `near`: a document, or the one a component is in (its window found from the
|
|
4
|
+
* component tree). In the app's layer for that document (`layerOf`) while an app runs, else as a child of the component
|
|
5
|
+
* standing for that document's body. Core places it; nothing is appended by hand.
|
|
6
|
+
*/
|
|
7
|
+
export declare function placeOnPage(near: Document | ComponentBase, component: ComponentBase): void;
|
|
8
|
+
/**
|
|
9
|
+
* The component that wraps the app in the window `part` is in, where a mark for the whole page goes (printing one
|
|
10
|
+
* control, a page kept busy): the host of an app window (`app.windows`), the app's shell (the `run()` host) in the
|
|
11
|
+
* page, else, with no app running there, the component standing for that window's body.
|
|
12
|
+
*/
|
|
13
|
+
export declare function appRootOf(part: ComponentBase): ComponentBase;
|
|
14
|
+
/**
|
|
15
|
+
* The component standing for the body of `doc`, taken in once and shared by all who need the page without an app.
|
|
16
|
+
* It is never disposed: the body is the page's.
|
|
17
|
+
*/
|
|
18
|
+
export declare function pageBody(doc: Document): ComponentBase;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A control text with its access key: `&Dosya` → text `Dosya`, key `D` at index 0. */
|
|
2
|
+
export interface ParsedAccessKey {
|
|
3
|
+
/** The text without the marker (`&&` becomes `&`). */
|
|
4
|
+
text: string;
|
|
5
|
+
/** The access key as written (`D`), or `null` when the text has none. */
|
|
6
|
+
key: string | null;
|
|
7
|
+
/** The index of the access key in `text`, or -1 if there is none. */
|
|
8
|
+
index: number;
|
|
9
|
+
}
|