@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentBase } from '@motifx/core';
|
|
1
|
+
import { Component, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { DetailContext } from '../detail-context';
|
|
3
3
|
import type { GridModel } from '../model/GridModel';
|
|
4
4
|
import type { DetailHost } from './detail-host';
|
|
@@ -8,7 +8,8 @@ import type { DetailHost } from './detail-host';
|
|
|
8
8
|
* row, is created the first time the details show and is kept while the row is open, also out of view
|
|
9
9
|
* (parked: laid out but not drawn, so the content keeps its scroll positions), until it is disposed.
|
|
10
10
|
* A row's adaptive detail (`kind: 'adaptive'`, the values of the columns the width hides) is one too,
|
|
11
|
-
* with content of its own (`make`).
|
|
11
|
+
* with content of its own (`make`). The row, its cell and the box are components: the content is a
|
|
12
|
+
* child of the box.
|
|
12
13
|
*/
|
|
13
14
|
export declare class DetailRow<T> {
|
|
14
15
|
private readonly model;
|
|
@@ -20,10 +21,13 @@ export declare class DetailRow<T> {
|
|
|
20
21
|
readonly kind: 'detail' | 'adaptive';
|
|
21
22
|
/** Makes the content instead of `masterDetail.template`. */
|
|
22
23
|
private readonly make;
|
|
24
|
+
/** The row's component, a child of the body. */
|
|
25
|
+
readonly part: Component<HTMLDivElement>;
|
|
23
26
|
readonly element: HTMLDivElement;
|
|
24
|
-
|
|
27
|
+
/** The one cell, across the grid. */
|
|
28
|
+
readonly cellPart: Component<HTMLDivElement>;
|
|
25
29
|
/** What holds the content, named after the row (a cell named apart from its content would read wrong). */
|
|
26
|
-
private readonly
|
|
30
|
+
private readonly boxPart;
|
|
27
31
|
/** Grid index of the master row while drawn; -1 while parked. */
|
|
28
32
|
index: number;
|
|
29
33
|
/** Measured height; 0 until it was drawn. */
|
|
@@ -32,6 +36,7 @@ export declare class DetailRow<T> {
|
|
|
32
36
|
seen: number;
|
|
33
37
|
private content;
|
|
34
38
|
private built;
|
|
39
|
+
private drawn;
|
|
35
40
|
private readonly version;
|
|
36
41
|
constructor(model: GridModel<T>, host: DetailHost<T>,
|
|
37
42
|
/** The row's key as text, and the key itself. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { GridModel } from '../model/GridModel';
|
|
2
3
|
import type { DragSelectHost } from './drag-select-host';
|
|
3
4
|
import type { GridBody } from './GridBody';
|
|
@@ -27,24 +28,35 @@ export declare class DragSelect<T> {
|
|
|
27
28
|
* the rows hold one from the start, and it stops the scroll only while a selection is drawn.
|
|
28
29
|
* Returns what removes it.
|
|
29
30
|
*/
|
|
30
|
-
holdTouch(rows:
|
|
31
|
-
/** The rows changed while a drag runs (rows that were loading came): the selection is recreated where the pointer is. */
|
|
31
|
+
holdTouch(rows: ComponentBase): () => void;
|
|
32
|
+
/** The rows changed while a drag runs (rows that were loading came): the selection is recreated where the pointer is, at the next frame. */
|
|
32
33
|
refresh(): void;
|
|
33
34
|
/** What a click on grid row `index`, column `field` would select by dragging; `null` for nothing. */
|
|
34
35
|
private kindAt;
|
|
36
|
+
/**
|
|
37
|
+
* Whether a click inside a cell is left to what the cell holds: the cell being edited is its editor's, and content
|
|
38
|
+
* that takes focus (a link, a button, a grid inside) or is a kit field (its label included) takes its own clicks.
|
|
39
|
+
*/
|
|
40
|
+
private leftToCell;
|
|
35
41
|
private listen;
|
|
36
42
|
private onMove;
|
|
37
43
|
private onUp;
|
|
38
|
-
/** Past the threshold (or the long press): the selection starts at the pressed cell.
|
|
44
|
+
/** Past the threshold (or the long press): the selection starts at the pressed cell. */
|
|
39
45
|
private start;
|
|
40
|
-
/** Where the pointer is now (kept inside the rows' area): the row and column the selection reaches. */
|
|
41
|
-
private
|
|
42
|
-
|
|
43
|
-
private
|
|
46
|
+
/** Where the pointer is now (kept inside the rows' area), read with the frame's reads: the row and column the selection reaches. */
|
|
47
|
+
private readonly readAim;
|
|
48
|
+
private readonly reach;
|
|
49
|
+
private readonly reachAndEnd;
|
|
50
|
+
/** Scrolls the viewport while the pointer is near or past an edge, a step a frame: down and up, and sideways over cells. */
|
|
51
|
+
private scrollNearEdges;
|
|
52
|
+
private stopAll;
|
|
44
53
|
private end;
|
|
54
|
+
/** Where the rows show in the viewport, the body's parent. Read with the frame's reads. */
|
|
45
55
|
private area;
|
|
46
56
|
/** The grid row at height `y` (kept inside the rows shown): the last one starting above it. */
|
|
47
57
|
private rowAt;
|
|
48
58
|
/** The selectable column at `x` (kept inside the viewport): a pinned one over the others, else the nearest. */
|
|
49
59
|
private fieldAt;
|
|
60
|
+
/** The header row: in the header part, the body's previous sibling. */
|
|
61
|
+
private headerRow;
|
|
50
62
|
}
|
|
@@ -44,6 +44,10 @@ export declare class EditForm<T> extends Component<HTMLDivElement> {
|
|
|
44
44
|
keepAll(): string | null;
|
|
45
45
|
/** The editor of a field. */
|
|
46
46
|
editorOf(field: string): CellEditor<T> | null;
|
|
47
|
+
/** The field an event came from, or `null`. */
|
|
48
|
+
fieldFrom(e: Event): string | null;
|
|
49
|
+
/** Whether a key came from a check box, a switch or a radio button: Enter there does not save. */
|
|
50
|
+
private fromChoice;
|
|
47
51
|
private readOnly;
|
|
48
52
|
/** The form items: the given ones, else every column; a column's field gets the grid's editor. */
|
|
49
53
|
private items;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import { Field } from '../../../parts/field/Field';
|
|
3
3
|
import type { GridModel } from '../model/GridModel';
|
|
4
|
+
import type { CellTipTarget } from './cell-tip-target';
|
|
4
5
|
/**
|
|
5
6
|
* One cell of the filter row: a condition button (by the column type; none for a check box column)
|
|
6
7
|
* and the kit's editor for the value — a `TextBox`, `NumberBox` or `DateBox`, two of them for
|
|
@@ -11,26 +12,45 @@ import type { GridModel } from '../model/GridModel';
|
|
|
11
12
|
export declare class FilterCell<T> {
|
|
12
13
|
private readonly model;
|
|
13
14
|
readonly field: string;
|
|
14
|
-
|
|
15
|
+
/** The cell's component: the editors' box is its child. */
|
|
16
|
+
readonly part: Component<HTMLDivElement>;
|
|
15
17
|
/** The condition button; `null` for a check box column. */
|
|
16
|
-
readonly
|
|
18
|
+
readonly conditionPart: Component<HTMLButtonElement> | null;
|
|
17
19
|
readonly editors: Field<any>[];
|
|
20
|
+
/** A custom filter editor's content when it is not a `Field`. */
|
|
21
|
+
private custom;
|
|
18
22
|
/** What `draw` does, part by part. */
|
|
19
23
|
private readonly drawers;
|
|
20
24
|
private readonly stops;
|
|
21
25
|
/** Holds the editors; it goes with the cell. */
|
|
22
26
|
private readonly holder;
|
|
27
|
+
/** The editors are hidden: the column has no filter in the row now. */
|
|
28
|
+
private hidden;
|
|
23
29
|
private disposed;
|
|
24
|
-
constructor(model: GridModel<T>, field: string,
|
|
30
|
+
constructor(model: GridModel<T>, field: string,
|
|
31
|
+
/** The cell's component: the editors' box is its child. */
|
|
32
|
+
part: Component<HTMLDivElement>);
|
|
25
33
|
/** Draws the editors and the condition as the column's filter is now. */
|
|
26
34
|
draw(): void;
|
|
27
|
-
/** The
|
|
28
|
-
|
|
35
|
+
/** The part that takes the keys of an editor (its input or its list's field). */
|
|
36
|
+
inputPartOf(editor: Field<any>): ComponentBase;
|
|
37
|
+
/** The condition button and its hint, for the grid's tip; `null` for a check box column. */
|
|
38
|
+
conditionTip(): CellTipTarget | null;
|
|
29
39
|
/** The editors that show now. */
|
|
30
40
|
shownEditors(): Field<any>[];
|
|
31
41
|
/** Focuses the first editor; a character typed on the cell starts its text. Returns whether there was one. */
|
|
32
42
|
focus(typed?: string): boolean;
|
|
33
43
|
dispose(): void;
|
|
44
|
+
/**
|
|
45
|
+
* A list column whose choices come from a function: it is asked with no row when the list first opens (or for the
|
|
46
|
+
* text of a chosen value), and the list says it is loading until the answer is there.
|
|
47
|
+
*/
|
|
48
|
+
private askedList;
|
|
49
|
+
/**
|
|
50
|
+
* The column's own filter editor: a `Field` is bound to the filter both ways, any other component sets the value
|
|
51
|
+
* through the context and hears changes through it.
|
|
52
|
+
*/
|
|
53
|
+
private customEditor;
|
|
34
54
|
/**
|
|
35
55
|
* A lookup column's list: "(All)" first, then the texts of its keys, searched by text. Its values
|
|
36
56
|
* are requested the first time it opens, and again when the other filters changed since.
|
|
@@ -38,5 +58,8 @@ export declare class FilterCell<T> {
|
|
|
38
58
|
private lookupList;
|
|
39
59
|
/** The choices of a list or yes/no column; "All" first stands for no filter. */
|
|
40
60
|
private choices;
|
|
61
|
+
/** The condition button, not placed yet. */
|
|
41
62
|
private createCondition;
|
|
63
|
+
/** "Name condition: Contains": the condition button's name and hint. */
|
|
64
|
+
private conditionLabel;
|
|
42
65
|
}
|
|
@@ -10,7 +10,7 @@ export declare class FilterPanel<T> extends Component<HTMLDivElement> {
|
|
|
10
10
|
private readonly grid;
|
|
11
11
|
private readonly host;
|
|
12
12
|
/** The text button, where focus goes back when the builder closes. */
|
|
13
|
-
textButton: HTMLButtonElement | null;
|
|
13
|
+
textButton: Component<HTMLButtonElement> | null;
|
|
14
14
|
private enabled;
|
|
15
15
|
private clear;
|
|
16
16
|
constructor(grid: GridModel<T>, host: FilterPanelHost);
|
|
@@ -3,13 +3,14 @@ import { type GridModel } from '../model/GridModel';
|
|
|
3
3
|
import { FilterCell } from './FilterCell';
|
|
4
4
|
/**
|
|
5
5
|
* The filter row under the header: a cell per column, built when the row first shows; a column's
|
|
6
|
-
* editors are created the first time its cell is needed. Cells are
|
|
7
|
-
* `data-field`, so the grid's per-column sheet pins and hides them with the headers
|
|
6
|
+
* editors are created the first time its cell is needed. Cells are components carrying
|
|
7
|
+
* `data-field`, so the grid's per-column sheet pins and hides them with the headers, and the
|
|
8
|
+
* editors are children of their cell.
|
|
8
9
|
*/
|
|
9
10
|
export declare class FilterRow<T> extends Component<HTMLDivElement> {
|
|
10
11
|
private readonly grid;
|
|
11
12
|
readonly filterCells: Map<string, FilterCell<T>>;
|
|
12
|
-
private readonly
|
|
13
|
+
private readonly cellParts;
|
|
13
14
|
constructor(grid: GridModel<T>);
|
|
14
15
|
onConfigured(): void;
|
|
15
16
|
/** Draws the row and its cells as the grid is now. */
|
|
@@ -23,7 +24,10 @@ export declare class FilterRow<T> extends Component<HTMLDivElement> {
|
|
|
23
24
|
private makeCell;
|
|
24
25
|
/** A column removed, or recreated: its cell and editors go. */
|
|
25
26
|
removeColumn(field: string): void;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
/** A column's cell. */
|
|
28
|
+
cellPart(field: string): Component<HTMLDivElement> | undefined;
|
|
29
|
+
/** The column of the cell an event came from. */
|
|
30
|
+
fieldFrom(e: Event): string | undefined;
|
|
31
|
+
/** The filter cell an event came from. */
|
|
32
|
+
cellFrom(e: Event): FilterCell<T> | undefined;
|
|
29
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '@motifx/core';
|
|
1
|
+
import { Component, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { GridModel } from '../model/GridModel';
|
|
3
3
|
import type { GroupNode } from '../model/group-node';
|
|
4
4
|
import { ScrollGeometry } from '../model/ScrollGeometry';
|
|
@@ -19,10 +19,13 @@ import { GroupRow } from './GroupRow';
|
|
|
19
19
|
* (`masterDetail`) are not pooled: each belongs to its row, sits under it, and is as tall as it was
|
|
20
20
|
* measured (`ExtraHeights` keeps the sums), so the scroll bar and `reveal` stay right. The adaptive
|
|
21
21
|
* detail of the one row that has it open (the columns the width hides) is a detail row too, right
|
|
22
|
-
* under its row and before its details.
|
|
22
|
+
* under its row and before its details. The viewport is read with the measuring layer: a layout asked for
|
|
23
|
+
* runs at once with the viewport as last read (and as the body scrolled it), and again with the next round
|
|
24
|
+
* if the viewport turns out to be elsewhere; the sizes of details and of the edit form are watched.
|
|
23
25
|
*/
|
|
24
26
|
export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
25
27
|
private readonly grid;
|
|
28
|
+
/** The grid's viewport, the scroller the body sits in; `null` before it is made. */
|
|
26
29
|
private readonly viewport;
|
|
27
30
|
private readonly widths;
|
|
28
31
|
/** Every row ever made; reused, never disposed before the grid. */
|
|
@@ -34,19 +37,25 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
34
37
|
private byIndex;
|
|
35
38
|
private groupsByIndex;
|
|
36
39
|
private footersByIndex;
|
|
37
|
-
|
|
38
|
-
private readonly
|
|
39
|
-
|
|
40
|
+
/** The id each row's element was given: `aria-owns` lists them, a row's arrow names its details by it. */
|
|
41
|
+
private readonly elementIds;
|
|
42
|
+
/** Rows whose details state was drawn: drawn closed once the details are turned off. */
|
|
43
|
+
private readonly expandDrawn;
|
|
40
44
|
private virtualTop;
|
|
41
45
|
private expectedScrollTop;
|
|
42
|
-
/**
|
|
43
|
-
private
|
|
46
|
+
/** The viewport as last read (how far it is scrolled down and sideways, its inner width), with the scrolls the body wrote since. */
|
|
47
|
+
private lastView;
|
|
48
|
+
/** Set when the next round lays the rows out again even if the viewport stayed where it was (a size watched changed). */
|
|
49
|
+
private stale;
|
|
50
|
+
/** Set when the layout of the next round loads what it shows at once. */
|
|
51
|
+
private loadNow;
|
|
52
|
+
/** The row a paged grid scrolls to with the next round, once the viewport is read. */
|
|
53
|
+
private revealing;
|
|
44
54
|
private visible;
|
|
45
|
-
/** The edit form shown in place of a row (`editMode: 'form'`), and the height it was measured at. */
|
|
55
|
+
/** The edit form shown in place of a row (`editMode: 'form'`), its row and its cell, and the height it was measured at. */
|
|
46
56
|
private form;
|
|
47
57
|
/** Rows' details by key text: made when first shown, kept while open (and closed, with `keepDetails`) up to `keepLimit` out of view. */
|
|
48
58
|
private readonly details;
|
|
49
|
-
private readonly detailByElement;
|
|
50
59
|
/** Details drawn now, by grid index of their row. */
|
|
51
60
|
private detailsByIndex;
|
|
52
61
|
/** The open details of the rows laid out, and what they were found for. */
|
|
@@ -56,7 +65,6 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
56
65
|
private checkedFor;
|
|
57
66
|
/** The page (and page size) of a paged grid the details were last tidied for. */
|
|
58
67
|
private pageFor;
|
|
59
|
-
private detailObserver;
|
|
60
68
|
/** The adaptive detail of the row that has it open, while it is laid out. */
|
|
61
69
|
private adaptive;
|
|
62
70
|
private layouts;
|
|
@@ -71,8 +79,10 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
71
79
|
/** The line where a dragged row would land (`'indicate'`), made the first time. */
|
|
72
80
|
private dropLine;
|
|
73
81
|
/** The row a dragged row would be dropped onto. */
|
|
74
|
-
private
|
|
75
|
-
constructor(grid: GridModel<T>,
|
|
82
|
+
private dropRow;
|
|
83
|
+
constructor(grid: GridModel<T>,
|
|
84
|
+
/** The grid's viewport, the scroller the body sits in; `null` before it is made. */
|
|
85
|
+
viewport: () => ComponentBase | null, widths: ActionWidths, host: Omit<DetailHost<T>, 'owner'>);
|
|
76
86
|
onConfigured(): void;
|
|
77
87
|
/** Geometry of the rows the body lays out (all rows, or one page); the edit form's row is as tall as the form, open details and the adaptive detail add their height. */
|
|
78
88
|
geometry(): ScrollGeometry;
|
|
@@ -86,16 +96,16 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
86
96
|
detailsUnder(index: number): DetailRow<T>[];
|
|
87
97
|
/** The details drawn under grid row `index`. */
|
|
88
98
|
detailAt(index: number): DetailRow<T> | undefined;
|
|
89
|
-
/** The details of this grid an
|
|
90
|
-
|
|
99
|
+
/** The details of this grid an event came from (not those of a grid inside them). */
|
|
100
|
+
detailFrom(e: Event): DetailRow<T> | undefined;
|
|
101
|
+
/** The details of this grid focus is in (not those of a grid inside them). */
|
|
102
|
+
focusedDetail(): DetailRow<T> | undefined;
|
|
91
103
|
/** The options or the open rows changed in a way the body cannot see: the details are found again. */
|
|
92
104
|
refreshDetails(): void;
|
|
93
105
|
/** Disposes every row's details (another template); they are recreated when they show. */
|
|
94
106
|
dropDetails(): void;
|
|
95
|
-
/** Measures the details drawn now (the ResizeObserver does it as their content changes); the rows after one that changed move. */
|
|
96
|
-
measureDetails(only?: Iterable<DetailRow<T>>): boolean;
|
|
97
107
|
/** Shows `content` (the edit form) in place of grid row `index` (the row `row`, `rowId`), across the grid, as tall as it is. */
|
|
98
|
-
showForm(rowId: string, row: T, index: number, content:
|
|
108
|
+
showForm(rowId: string, row: T, index: number, content: ComponentBase): void;
|
|
99
109
|
/** `aria-rowindex` of grid row `i`: the open details and the adaptive detail above it count as rows. */
|
|
100
110
|
private ariaRowIndex;
|
|
101
111
|
/** Grid index of the row whose adaptive detail is open, while columns are hidden; -1 for none. */
|
|
@@ -105,54 +115,85 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
105
115
|
/** The open details of the rows laid out (all rows, or one page), found again when the rows or the open ones change. */
|
|
106
116
|
private openExtras;
|
|
107
117
|
private findExtras;
|
|
108
|
-
|
|
118
|
+
/** A detail row came out another size (drawn the first time, its content changed): the rows after it move with the next round. */
|
|
119
|
+
private detailResized;
|
|
120
|
+
/** Gives the details of a row their height among the open details laid out. */
|
|
121
|
+
private setExtra;
|
|
109
122
|
private dropDetail;
|
|
110
123
|
/** Takes the edit form away; its row shows again. */
|
|
111
124
|
hideForm(): void;
|
|
112
125
|
/** The cell that holds the edit form: the active cell while the form's row is the active row. */
|
|
113
|
-
|
|
126
|
+
formCellPart(): Component<HTMLDivElement> | null;
|
|
114
127
|
/** The grid index of the row the edit form stands for, or -1. */
|
|
115
128
|
formIndex(): number;
|
|
116
|
-
/** The form's height changed (fields shown, messages): the rows after it move. */
|
|
117
|
-
private
|
|
118
|
-
/**
|
|
129
|
+
/** The form's height changed (shown the first time, fields shown, messages): the rows after it move with the next round. */
|
|
130
|
+
private formResized;
|
|
131
|
+
/**
|
|
132
|
+
* Works out again which rows show and where: at once, with the viewport as last read, so the rows asked for are
|
|
133
|
+
* drawn when it returns; again with the next round if the viewport is read elsewhere. Safe to call from anywhere;
|
|
134
|
+
* reads are untracked.
|
|
135
|
+
*/
|
|
119
136
|
relayout(immediate?: boolean): void;
|
|
120
|
-
/**
|
|
137
|
+
/** Something scrolled the viewport (scroll bar, touch, focus, a drag): the rows are laid out with the next round, where it is then. */
|
|
121
138
|
onScroll(): void;
|
|
139
|
+
/** Lays the rows out again with the next round, wherever the viewport is then. */
|
|
140
|
+
private layoutSoon;
|
|
141
|
+
/** The grid's viewport, the scroller the body sits in. */
|
|
142
|
+
private scroller;
|
|
143
|
+
private readonly readView;
|
|
144
|
+
private readonly writeView;
|
|
145
|
+
private readonly readTop;
|
|
146
|
+
/** A paged grid's row asked for by `reveal`: scrolled into view, the viewport read. */
|
|
147
|
+
private readonly revealPaged;
|
|
122
148
|
/** Wheel input while the scroll bar is scaled: moves by the real amount in the full content, so a notch still moves a few rows. */
|
|
123
149
|
onWheel(e: WheelEvent): boolean;
|
|
124
|
-
/** Scrolls so that grid row `index` is fully visible (in paged mode, after going to its page). */
|
|
150
|
+
/** Scrolls so that grid row `index` is fully visible (in paged mode, after going to its page, with the next round). */
|
|
125
151
|
reveal(index: number, align?: 'nearest' | 'start' | 'end'): void;
|
|
126
|
-
/** Back to the first row (after a sort change). */
|
|
152
|
+
/** Back to the first row (after a sort change); the rows follow with the next round. */
|
|
127
153
|
toStart(): void;
|
|
128
154
|
/** Rows the viewport shows fully, for PageUp/PageDown. */
|
|
129
155
|
pageRows(): number;
|
|
130
156
|
/** The pooled row that shows grid row `index`, if it is drawn. */
|
|
131
157
|
rowAt(index: number): GridRow<T> | undefined;
|
|
132
|
-
/** The cell
|
|
133
|
-
|
|
134
|
-
/** The
|
|
135
|
-
|
|
136
|
-
/** The pooled
|
|
137
|
-
|
|
158
|
+
/** The cell of grid row `index`, if that row is drawn; a group row's one cell, or a group footer itself, for any field. */
|
|
159
|
+
cellAt(index: number, field: string): Component<HTMLDivElement> | undefined;
|
|
160
|
+
/** The cell component of data row `index` for `field`, if that row is drawn: what is shown in the cell is added to it. */
|
|
161
|
+
cellPart(index: number, field: string): ComponentBase | undefined;
|
|
162
|
+
/** The pooled row an event came from (not from a grid inside it). */
|
|
163
|
+
rowFrom(e: Event): GridRow<T> | undefined;
|
|
164
|
+
/** The pooled row a component is in (a cell's content, an editor in a cell). */
|
|
165
|
+
rowHolding(part: ComponentBase): GridRow<T> | undefined;
|
|
166
|
+
/** The pooled row focus is in. */
|
|
167
|
+
focusedRow(): GridRow<T> | undefined;
|
|
168
|
+
/** The pooled group row an event came from (not from a grid inside it). */
|
|
169
|
+
groupRowFrom(e: Event): GroupRow<T> | undefined;
|
|
138
170
|
/** The group row drawn for grid row `index`. */
|
|
139
171
|
groupRowAt(index: number): GroupRow<T> | undefined;
|
|
140
|
-
/** The pooled group footer an
|
|
141
|
-
|
|
172
|
+
/** The pooled group footer an event came from (not from a grid inside it). */
|
|
173
|
+
footerRowFrom(e: Event): GroupFooterRow<T> | undefined;
|
|
142
174
|
/** The group footer drawn for grid row `index`. */
|
|
143
175
|
footerRowAt(index: number): GroupFooterRow<T> | undefined;
|
|
144
|
-
/**
|
|
145
|
-
|
|
176
|
+
/** Whether an event came from a grid inside this one (in a cell or in details): it is that grid's. */
|
|
177
|
+
private fromInnerGrid;
|
|
178
|
+
/** Cells of a column in the rows drawn now, each with the text it shows (none for content of its own), for fitting the column to its content. */
|
|
179
|
+
renderedCells(field: string): {
|
|
180
|
+
part: ComponentBase;
|
|
181
|
+
text: string | undefined;
|
|
182
|
+
}[];
|
|
146
183
|
/** The rows drawn now, data rows, group rows and group footers, in grid order. */
|
|
147
184
|
drawn(): {
|
|
148
185
|
index: number;
|
|
149
186
|
element: HTMLElement;
|
|
187
|
+
part: ComponentBase;
|
|
150
188
|
group: GroupNode | null;
|
|
151
189
|
}[];
|
|
152
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* The rows drawn now, top to bottom, where they are laid out on the screen (the room made for a dragged row, moving
|
|
192
|
+
* or not, omitted). A layout read: in the read of a `measure`, or in an event handler before anything is written.
|
|
193
|
+
*/
|
|
153
194
|
placed(): {
|
|
154
195
|
index: number;
|
|
155
|
-
|
|
196
|
+
part: ComponentBase;
|
|
156
197
|
top: number;
|
|
157
198
|
bottom: number;
|
|
158
199
|
}[];
|
|
@@ -166,7 +207,7 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
166
207
|
/** The line where a dragged row would land, `y` pixels from the top of the rows; `null` hides it. */
|
|
167
208
|
showDropLine(y: number | null): void;
|
|
168
209
|
/** Marks the row a dragged row would be dropped onto, or none. */
|
|
169
|
-
|
|
210
|
+
markDropRow(part: ComponentBase | null): void;
|
|
170
211
|
/** Draws every row in use again, with the rows' details and adaptive detail. */
|
|
171
212
|
repaint(): void;
|
|
172
213
|
/** Draws the rows with these ids again (their key as text), with their details and adaptive detail; the others stay as they are. */
|
|
@@ -185,7 +226,7 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
185
226
|
private layout;
|
|
186
227
|
/**
|
|
187
228
|
* Details under the rows that show theirs (made the first time); the others are parked, and those
|
|
188
|
-
* not wanted any more disposed.
|
|
229
|
+
* not wanted any more disposed. Those drawn now that were not before are told to `rowPrepared`.
|
|
189
230
|
*/
|
|
190
231
|
private placeDetails;
|
|
191
232
|
/**
|
|
@@ -195,15 +236,14 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
195
236
|
private tidyDetails;
|
|
196
237
|
/**
|
|
197
238
|
* The adaptive detail under grid row `at` while that row is drawn (made the first time, recreated
|
|
198
|
-
* for another row or another row object), parked while it is not; gone once it is closed.
|
|
199
|
-
* it when it is drawn now and was not before.
|
|
239
|
+
* for another row or another row object), parked while it is not; gone once it is closed.
|
|
200
240
|
*/
|
|
201
241
|
private placeAdaptive;
|
|
202
242
|
private createAdaptive;
|
|
203
243
|
private dropAdaptive;
|
|
204
244
|
private createDetail;
|
|
205
|
-
/** Measures a detail row
|
|
206
|
-
private
|
|
245
|
+
/** Measures a detail row when it is first drawn and whenever its size changes; the watch ends with the row. */
|
|
246
|
+
private watchSize;
|
|
207
247
|
/** The edit form's row: at its row's place, as wide as the viewport and kept in it while the rows scroll sideways. */
|
|
208
248
|
private placeForm;
|
|
209
249
|
/** Group rows: the one that showed a group keeps it, the others take the rest. */
|
|
@@ -213,4 +253,8 @@ export declare class GridBody<T> extends Component<HTMLDivElement> {
|
|
|
213
253
|
private createFooterRow;
|
|
214
254
|
private createGroupRow;
|
|
215
255
|
private createRow;
|
|
256
|
+
/** Gives a row's element an id of its own. */
|
|
257
|
+
private giveId;
|
|
258
|
+
/** The id a row's element was given, `null` for none. */
|
|
259
|
+
private idOf;
|
|
216
260
|
}
|
|
@@ -30,6 +30,8 @@ export declare class GridPager<T> extends Component<HTMLElement> {
|
|
|
30
30
|
pageBox: NumberBox | null;
|
|
31
31
|
/** The full pager does not fit (adaptive). */
|
|
32
32
|
private narrow;
|
|
33
|
+
/** The last draw hid the pager: the grid shows none. */
|
|
34
|
+
private hidden;
|
|
33
35
|
/** The width the full pager needed when it was last drawn. */
|
|
34
36
|
private fullWidth;
|
|
35
37
|
/** What decides whether the full pager fits, as it was last seen. */
|
|
@@ -39,6 +41,9 @@ export declare class GridPager<T> extends Component<HTMLElement> {
|
|
|
39
41
|
private readonly sizeButtons;
|
|
40
42
|
private readonly pageParts;
|
|
41
43
|
private parts;
|
|
44
|
+
/** What holds the pager: the room it has decides the adaptive look. */
|
|
45
|
+
private bar;
|
|
46
|
+
private stopRoom;
|
|
42
47
|
/** The buttons' look, the design language's: their size, the steps' variant, a page's and the current page's. */
|
|
43
48
|
private readonly buttons;
|
|
44
49
|
private readonly language;
|
|
@@ -47,8 +52,10 @@ export declare class GridPager<T> extends Component<HTMLElement> {
|
|
|
47
52
|
get compact(): boolean;
|
|
48
53
|
onConfigured(): void;
|
|
49
54
|
onMounted(): void;
|
|
50
|
-
/** The adaptive look: compact while the full pager is wider than the room the bar has. */
|
|
55
|
+
/** The adaptive look: compact while the full pager is wider than the room the bar has. Seen in the next frame. */
|
|
51
56
|
fit(): void;
|
|
57
|
+
private readonly readFit;
|
|
58
|
+
private readonly drawFit;
|
|
52
59
|
initializeComponent(): void;
|
|
53
60
|
/** Draws the pager as the grid is now. */
|
|
54
61
|
draw(): void;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from '@motifx/core';
|
|
2
|
+
import type { CellTipTarget } from './cell-tip-target';
|
|
2
3
|
import { KeyedItems } from '../../../parts/data/KeyedItems';
|
|
3
4
|
import type { GridModel } from '../model/GridModel';
|
|
4
5
|
import type { ActionWidths } from './ActionWidths';
|
|
5
6
|
import { RowActions } from './RowActions';
|
|
6
7
|
/**
|
|
7
|
-
* One pooled row of the body
|
|
8
|
-
*
|
|
9
|
-
* shows and draws it. It follows nothing: the body has it draw a part
|
|
10
|
-
* `drawRanges`, `drawActions`) when the grid tells what changed. Cells
|
|
11
|
-
* row when there is one.
|
|
12
|
-
*
|
|
8
|
+
* One pooled row of the body: a row component with a cell component per column, so a column's own
|
|
9
|
+
* `cell` content is a child of its cell. It is built once and then shows other rows while the user
|
|
10
|
+
* scrolls; `use` changes what it shows and draws it. It follows nothing: the body has it draw a part
|
|
11
|
+
* again (`drawLook`, `drawCells`, `drawRanges`, `drawActions`) when the grid tells what changed. Cells
|
|
12
|
+
* show the unsaved edit of their row when there is one. Inside the cells, texts, the selection check
|
|
13
|
+
* box and the action buttons are parts of their cell.
|
|
13
14
|
*/
|
|
14
15
|
export declare class GridRow<T> {
|
|
15
16
|
private readonly model;
|
|
16
|
-
/**
|
|
17
|
-
|
|
17
|
+
/** The row's component, a child of the body. */
|
|
18
|
+
readonly part: Component<HTMLDivElement>;
|
|
18
19
|
readonly element: HTMLDivElement;
|
|
19
|
-
/** Cell
|
|
20
|
-
readonly
|
|
20
|
+
/** Cell components by field. */
|
|
21
|
+
private readonly cellParts;
|
|
21
22
|
/** Grid index (new rows included); -1 while the row is not used. */
|
|
22
23
|
index: number;
|
|
23
24
|
/** The row shown; `undefined` while it is loading. */
|
|
@@ -29,19 +30,31 @@ export declare class GridRow<T> {
|
|
|
29
30
|
/** Grows when the row shows another one or is drawn again: what a column's own cell content reads follows it. */
|
|
30
31
|
private readonly shown;
|
|
31
32
|
private readonly texts;
|
|
32
|
-
/**
|
|
33
|
-
private readonly contents;
|
|
34
|
-
/** The nodes after a cell's text node that mark what the search found, and what they were drawn for. */
|
|
33
|
+
/** The parts after a cell's text that mark what the search found, and what they were drawn for. */
|
|
35
34
|
private readonly marked;
|
|
36
35
|
/** Whether the search marks cells now (read when the cells are drawn). */
|
|
37
36
|
private searching;
|
|
37
|
+
/** What each cell shows as text, and the hints of lookup cells, for the cell tip. */
|
|
38
|
+
private readonly shownTexts;
|
|
39
|
+
private readonly hints;
|
|
40
|
+
/** The message of a row that failed to save, on its status cell. */
|
|
41
|
+
private statusMessage;
|
|
38
42
|
private readonly check;
|
|
39
43
|
private readonly expand;
|
|
40
44
|
/** The "…" of the adaptive detail. */
|
|
41
45
|
private readonly more;
|
|
42
|
-
constructor(model: GridModel<T>,
|
|
43
|
-
/**
|
|
44
|
-
|
|
46
|
+
constructor(model: GridModel<T>, widths: ActionWidths);
|
|
47
|
+
/** The cell component of `field`, while the row has that cell. */
|
|
48
|
+
cellPart(field: string): Component<HTMLDivElement> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* What the cell tip shows for the cell of `field`: its message, the hint of a lookup cell, and its text when it is cut
|
|
51
|
+
* off (none for a cell that holds buttons or content of its own); `null` while the row has no such cell.
|
|
52
|
+
*/
|
|
53
|
+
tipOf(field: string): CellTipTarget | null;
|
|
54
|
+
/** The text the cell of `field` shows; `undefined` for a cell that holds buttons or content of its own. */
|
|
55
|
+
shownText(field: string): string | undefined;
|
|
56
|
+
/** The tip of the action button or the cell an event came from; `null` when it came from none of them. */
|
|
57
|
+
tipFrom(e: Event): CellTipTarget | null;
|
|
45
58
|
/** Draws all of the row as it is. */
|
|
46
59
|
draw(): void;
|
|
47
60
|
/** Shows grid row `index` at `top`. Visibility and position change at once, so a cell can take focus right after. */
|
|
@@ -68,6 +81,8 @@ export declare class GridRow<T> {
|
|
|
68
81
|
removeColumn(field: string): void;
|
|
69
82
|
dispose(): void;
|
|
70
83
|
private makeCell;
|
|
84
|
+
/** A cell component, known by its field. */
|
|
85
|
+
private newCell;
|
|
71
86
|
private cell;
|
|
72
87
|
/** A cell of one of the grid's own columns (selection, actions). */
|
|
73
88
|
private ownCell;
|
|
@@ -18,7 +18,7 @@ export declare class GridToolbar<T> {
|
|
|
18
18
|
private readonly owner;
|
|
19
19
|
readonly bar: Toolbar;
|
|
20
20
|
private made;
|
|
21
|
-
/** The
|
|
21
|
+
/** The parts in the order they stand: the `before` items, the gap, the `after` items. */
|
|
22
22
|
private order;
|
|
23
23
|
private readonly spacer;
|
|
24
24
|
private readonly ids;
|
|
@@ -29,6 +29,8 @@ export declare class GridToolbar<T> {
|
|
|
29
29
|
private listSeen;
|
|
30
30
|
/** The fields of the app's items, as the follow read them last. */
|
|
31
31
|
private values;
|
|
32
|
+
/** The `data-overflow` written last on each part. */
|
|
33
|
+
private readonly overflows;
|
|
32
34
|
private stopItems;
|
|
33
35
|
private disposed;
|
|
34
36
|
constructor(model: GridModel<T>, options: Switches<ToolbarValues>, host: ToolbarHost, owner: ComponentBase);
|
|
@@ -36,8 +38,6 @@ export declare class GridToolbar<T> {
|
|
|
36
38
|
redraw(): void;
|
|
37
39
|
/** The control made for an item (`'searchPanel'`, `'exportButton'`, or a name of the app's own), while it is in the bar. */
|
|
38
40
|
controlOf(name: string): ComponentBase | null;
|
|
39
|
-
/** The element of an item while it is in the bar. */
|
|
40
|
-
elementOf(name: string): HTMLElement | null;
|
|
41
41
|
/** Whether the bar shows: as `visible` says, else while an item shows. */
|
|
42
42
|
shown(): boolean;
|
|
43
43
|
/**
|
|
@@ -63,15 +63,16 @@ export declare class GridToolbar<T> {
|
|
|
63
63
|
private idOf;
|
|
64
64
|
/** Makes what is new, drops what left, and puts the elements in order: the `before` items, the gap, the `after` items. */
|
|
65
65
|
private place;
|
|
66
|
-
/** Puts the
|
|
66
|
+
/** Puts the parts in order again (building the bar adds its own controls after the gap). */
|
|
67
67
|
arrange(): void;
|
|
68
68
|
private make;
|
|
69
69
|
private makeButton;
|
|
70
70
|
/** What one of the grid's buttons shows and does. */
|
|
71
71
|
private ownButton;
|
|
72
72
|
private makeSearch;
|
|
73
|
+
/** The grid's group panel; it lives as long as the grid, so the bar only takes it out. */
|
|
73
74
|
private makeGroupPanel;
|
|
74
|
-
/** The actions of the target rows: a hidden
|
|
75
|
+
/** The actions of the target rows: a hidden part that says what they act on, then their buttons. */
|
|
75
76
|
private makeRowActions;
|
|
76
77
|
private makeContent;
|
|
77
78
|
/** Writes whether the element may go into the "more" menu where the toolbar reads it, and lays the bar out again when it changes. */
|