@motifx-community/ui 0.1.0-beta.7 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +310 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +1 -1
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +3 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35219 -22569
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/KeyedItems.d.ts +1 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +67 -17
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +2 -2
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1903 -289
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
|
@@ -17,6 +17,8 @@ import type { ChipGroupValueChangedEventArgs } from './chip-group-value-changed-
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class ChipGroup extends Control<HTMLDivElement, ChipGroupProps> {
|
|
19
19
|
private readonly valueChanged;
|
|
20
|
+
/** The chips listened to, and the lists and conditions around them. */
|
|
21
|
+
private readonly heard;
|
|
20
22
|
/** The chip focused last: Tab comes back to it. */
|
|
21
23
|
private current;
|
|
22
24
|
private byUser;
|
|
@@ -36,7 +38,18 @@ export declare class ChipGroup extends Control<HTMLDivElement, ChipGroupProps> {
|
|
|
36
38
|
get chips(): Chip[];
|
|
37
39
|
/** Indicates whether the chip for `value` is selected. */
|
|
38
40
|
isSelected(value: unknown): boolean;
|
|
39
|
-
|
|
41
|
+
/** The chip an event came from. */
|
|
42
|
+
private chipOf;
|
|
43
|
+
/** Listens to a part of the group's content: a chip, or a list or condition that brings chips. */
|
|
44
|
+
private listen;
|
|
45
|
+
/** Stops listening to what left the group's content; a chip that left is given back. */
|
|
46
|
+
private forget;
|
|
47
|
+
/** A chip, or a list or condition that may hold chips, came into the group's content. */
|
|
48
|
+
private readonly contentAdded;
|
|
49
|
+
/** Something left the group's content: moved elsewhere in the group, or out of it. */
|
|
50
|
+
private readonly contentRemoved;
|
|
51
|
+
/** A chip was built, showed, hid or went away: the Tab stop may move. */
|
|
52
|
+
private readonly chipChanged;
|
|
40
53
|
private pressed;
|
|
41
54
|
private keyDown;
|
|
42
55
|
private renderChips;
|
|
@@ -11,7 +11,7 @@ import type { ChipVariant } from './chip-variant';
|
|
|
11
11
|
export interface ChipProps extends ControlProps {
|
|
12
12
|
/** The value it represents in a group. The default is its text. */
|
|
13
13
|
value?: Bind<unknown>;
|
|
14
|
-
/** An icon before the text: an image address
|
|
14
|
+
/** An icon before the text: an image address or a component. */
|
|
15
15
|
icon?: Bind<IconSource | null>;
|
|
16
16
|
/** An avatar before the text (its props, with the size set by the chip). */
|
|
17
17
|
avatar?: Bind<AvatarProps | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Field } from '../../parts/field/Field';
|
|
3
3
|
import type { PopupCloseReason } from '../../parts/popup/popup-close-reason';
|
|
4
4
|
import type { ValidationRule } from '../../parts/validation/validation-rule';
|
|
@@ -26,7 +26,8 @@ export declare class ColorBox extends Field<string | null, ColorBoxProps> {
|
|
|
26
26
|
set clearButton(value: Bind<boolean>);
|
|
27
27
|
get placeholder(): string;
|
|
28
28
|
set placeholder(value: Bind<string>);
|
|
29
|
-
|
|
29
|
+
/** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
30
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
30
31
|
/** The picker in the popup, after it has been opened. */
|
|
31
32
|
get picker(): ColorPicker | null;
|
|
32
33
|
get opened(): boolean;
|
|
@@ -36,7 +37,8 @@ export declare class ColorBox extends Field<string | null, ColorBoxProps> {
|
|
|
36
37
|
open(): boolean;
|
|
37
38
|
close(): void;
|
|
38
39
|
clear(): void;
|
|
39
|
-
protected
|
|
40
|
+
protected get controlTag(): string;
|
|
41
|
+
protected createControl(): ComponentBase;
|
|
40
42
|
protected emptyValue(): string | null;
|
|
41
43
|
/** Any color form it reads is kept as `#rrggbb` (or `#rrggbbaa` with `alpha`). */
|
|
42
44
|
protected normalizeValue(value: string | null): string | null;
|
|
@@ -24,6 +24,9 @@ export declare class ColorPicker extends Control<HTMLDivElement, ColorPickerProp
|
|
|
24
24
|
private readonly channels;
|
|
25
25
|
private readonly opacity;
|
|
26
26
|
private readonly swatches;
|
|
27
|
+
/** The preset buttons drawn, each with its color as the value writes it (`null` for one that is not a color). */
|
|
28
|
+
/** The swatches of the palette, in its order: `given` as the palette has it, `color` as the value would read. */
|
|
29
|
+
private presets;
|
|
27
30
|
private readonly picker;
|
|
28
31
|
private byUser;
|
|
29
32
|
private ready;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import type { data } from '@motifx-community/data';
|
|
3
3
|
import { DataItems } from '../../parts/data/DataItems';
|
|
4
4
|
import { Field } from '../../parts/field/Field';
|
|
5
5
|
import type { ItemField } from '../../parts/list/item-field';
|
|
6
6
|
import type { PopupCloseReason } from '../../parts/popup/popup-close-reason';
|
|
7
7
|
import type { ComboBoxProps } from './combo-box-props';
|
|
8
|
-
type Template<T> = ((item: T, host: HTMLElement) => (() => void) | void) | null;
|
|
8
|
+
type Template<T> = ((item: T, host: ComponentBase<HTMLElement>) => (() => void) | void) | null;
|
|
9
9
|
/**
|
|
10
10
|
* A text field with a list that follows the typed text (the APG combobox with list autocomplete).
|
|
11
11
|
* The list comes from in-memory items, or from a `DataSource` of the data layer searched on the
|
|
@@ -52,7 +52,8 @@ export declare class ComboBox<T = unknown, V = unknown> extends Field<V | null,
|
|
|
52
52
|
set clearButton(value: Bind<boolean>);
|
|
53
53
|
get matchWidth(): boolean;
|
|
54
54
|
set matchWidth(value: Bind<boolean>);
|
|
55
|
-
|
|
55
|
+
/** The text input as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
56
|
+
get inputPart(): ComponentBase<HTMLInputElement>;
|
|
56
57
|
/** The item for the current value, when known. */
|
|
57
58
|
get selectedItem(): T | undefined;
|
|
58
59
|
/** The items shown in the list, which are the results of the last search. */
|
|
@@ -71,7 +72,8 @@ export declare class ComboBox<T = unknown, V = unknown> extends Field<V | null,
|
|
|
71
72
|
* items can be plain or reactive, and the box reads them as they are.
|
|
72
73
|
*/
|
|
73
74
|
refresh(): void;
|
|
74
|
-
protected
|
|
75
|
+
protected get controlTag(): string;
|
|
76
|
+
protected createControl(): ComponentBase;
|
|
75
77
|
protected emptyValue(): V | null;
|
|
76
78
|
protected renderValue(value: V | null): void;
|
|
77
79
|
/** The text shown for a value that has no item. */
|
|
@@ -84,6 +86,8 @@ export declare class ComboBox<T = unknown, V = unknown> extends Field<V | null,
|
|
|
84
86
|
private showText;
|
|
85
87
|
private renderSource;
|
|
86
88
|
private listen;
|
|
89
|
+
/** Puts `text` in the box as if the user typed it: the list opens and searches it. */
|
|
90
|
+
typeText(text: string): void;
|
|
87
91
|
private typed;
|
|
88
92
|
/** The user is done with the text: an item that has it, a custom value, or back to the chosen item. */
|
|
89
93
|
private finish;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Bind } from '@motifx/core';
|
|
1
|
+
import type { Bind, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { data } from '@motifx-community/data';
|
|
3
3
|
import type { FieldProps } from '../../parts/field/field-props';
|
|
4
4
|
import type { ItemField } from '../../parts/list/item-field';
|
|
@@ -32,7 +32,7 @@ export interface ComboBoxProps<T, V> extends FieldProps<V | null> {
|
|
|
32
32
|
/** The arrow that opens the whole list. The default is `true`. */
|
|
33
33
|
showDropDownButton?: Bind<boolean>;
|
|
34
34
|
clearButton?: Bind<boolean>;
|
|
35
|
-
itemTemplate?: Bind<((item: T, host: HTMLElement) => (() => void) | void) | null>;
|
|
35
|
+
itemTemplate?: Bind<((item: T, host: ComponentBase<HTMLElement>) => (() => void) | void) | null>;
|
|
36
36
|
/** The default is `true`. */
|
|
37
37
|
matchWidth?: Bind<boolean>;
|
|
38
38
|
onOpened?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { ComponentBase, type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
4
4
|
import type { MenuItemClickEventArgs } from '../../parts/menu/menu-item-click-event-args';
|
|
@@ -12,14 +12,14 @@ import type { ContextMenuTarget } from './context-menu-target';
|
|
|
12
12
|
* A menu that opens at the pointer on an element's right-click (or long press), and at the focused element
|
|
13
13
|
* with the Menu key or Shift+F10. `onOpening` builds the items for the element it opened on, such as a list
|
|
14
14
|
* row, or cancels. It closes on Escape, a click outside it and focus leaving it. When the page scrolls, it
|
|
15
|
-
* follows
|
|
15
|
+
* follows the component it opened on and closes once that is out of view. The items are `MenuItem`s: submenus, check and
|
|
16
16
|
* radio items, shortcuts. Opened on an element in another document (a window the app opened), the menu appears there.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* <ContextMenu target={() => this.list} items={[{ text: '&Copy', click: () => this.copy() }]} />
|
|
20
20
|
*
|
|
21
21
|
* const menu = new ContextMenu({ target: this.grid, items: this.rowItems });
|
|
22
|
-
* menu.onOpening((e) => (e.items = this.itemsFor(e.
|
|
22
|
+
* menu.onOpening((e) => (e.items = this.itemsFor(this.rows.find((row) => row.motif.isEventFrom(e.event)))));
|
|
23
23
|
*/
|
|
24
24
|
export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProps> {
|
|
25
25
|
constructor(props?: IBaseProp<ContextMenuProps>);
|
|
@@ -27,8 +27,8 @@ export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProp
|
|
|
27
27
|
set label(value: Bind<string>);
|
|
28
28
|
get items(): readonly MenuItem[];
|
|
29
29
|
set items(value: Bind<readonly MenuItem[]>);
|
|
30
|
-
/** The
|
|
31
|
-
get target():
|
|
30
|
+
/** The component the menu listens on. Reactive. Set it to a component or a function that returns one. */
|
|
31
|
+
get target(): ComponentBase | null;
|
|
32
32
|
set target(value: Bind<ContextMenuTarget | null | undefined>);
|
|
33
33
|
get keyboard(): boolean;
|
|
34
34
|
set keyboard(value: Bind<boolean>);
|
|
@@ -40,22 +40,25 @@ export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProp
|
|
|
40
40
|
set presentation(value: Bind<ContextMenuPresentation>);
|
|
41
41
|
/** Indicates whether the menu is open. Reactive. */
|
|
42
42
|
get opened(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
|
|
43
|
+
/**
|
|
44
|
+
* The component the menu was last opened on (the innermost one under the target that was clicked or focused), kept
|
|
45
|
+
* after it closes. Reactive. The element itself is `e.target` of `onOpening`.
|
|
46
|
+
*/
|
|
47
|
+
get targetPart(): ComponentBase | null;
|
|
45
48
|
/** Occurs before the menu opens. Set `e.items` for `e.target`, or cancel. */
|
|
46
49
|
get onOpening(): MotifEvent<ContextMenuOpeningEventArgs>;
|
|
47
50
|
/** Occurs when an item is selected, after the item's own `click`. */
|
|
48
51
|
get onItemClick(): MotifEvent<MenuItemClickEventArgs>;
|
|
49
52
|
get onClosed(): MotifEvent<PopupCloseReason>;
|
|
50
53
|
/**
|
|
51
|
-
* Opens the menu programmatically, at a point of the viewport, or at
|
|
52
|
-
* below it). `target` is the
|
|
53
|
-
* Returns whether it opened.
|
|
54
|
+
* Opens the menu programmatically, at a point of the viewport, or at a component (its start corner,
|
|
55
|
+
* below it). `target` is the component `targetPart` and `onOpening` report, by default the target; focus goes back
|
|
56
|
+
* to it when the menu closes. Returns whether it opened.
|
|
54
57
|
*/
|
|
55
58
|
open(at: {
|
|
56
59
|
x: number;
|
|
57
60
|
y: number;
|
|
58
|
-
} |
|
|
61
|
+
} | ComponentBase, target?: ComponentBase): boolean;
|
|
59
62
|
close(): void;
|
|
60
63
|
/**
|
|
61
64
|
* Re-reads the items of the open menu, including an open submenu, after they have been changed in place. Your items
|
|
@@ -69,26 +72,34 @@ export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProp
|
|
|
69
72
|
private get parts();
|
|
70
73
|
private createParts;
|
|
71
74
|
private followTarget;
|
|
75
|
+
private attachTo;
|
|
72
76
|
private attach;
|
|
73
77
|
private handle;
|
|
74
78
|
private onContextMenu;
|
|
75
79
|
private onKeyDown;
|
|
80
|
+
/**
|
|
81
|
+
* Opens at `point`, or (`null`) at the start corner of `at`, the component it opened on: it goes along with `at` while
|
|
82
|
+
* the page scrolls. `onOpening` and `targetPart` report `at`.
|
|
83
|
+
*/
|
|
76
84
|
private show;
|
|
77
85
|
/** Whether the items go into an action sheet this time. */
|
|
78
86
|
private inSheet;
|
|
79
87
|
private showSheet;
|
|
80
88
|
private createSheet;
|
|
81
|
-
/** Made with `new` and never placed, it opens from the end of the page; on
|
|
89
|
+
/** Made with `new` and never placed, it opens from the end of the page; on a component in another window, from the end of that one. */
|
|
82
90
|
private host;
|
|
83
91
|
private createPopup;
|
|
92
|
+
/** Focus left in the menu as it closes goes back to where it was when the menu opened; focus that moved away stays. */
|
|
93
|
+
private giveFocusBack;
|
|
84
94
|
private chosen;
|
|
95
|
+
/** While open: the window changing size or losing focus closes it, and a scroll in the page (not in the menu) moves it along. */
|
|
85
96
|
private startClosing;
|
|
86
97
|
private stopClosing;
|
|
87
98
|
private stopListening;
|
|
99
|
+
private readFollow;
|
|
88
100
|
/**
|
|
89
101
|
* A click that moves focus can make the browser scroll a moment later, and the reader may scroll
|
|
90
|
-
* too: the menu goes along with the
|
|
102
|
+
* too: the menu goes along with the component it opened on, and closes once that is out of sight.
|
|
91
103
|
*/
|
|
92
|
-
private
|
|
93
|
-
private closeOutOfSight;
|
|
104
|
+
private moveAlong;
|
|
94
105
|
}
|
|
@@ -3,10 +3,10 @@ import type { ContextMenuOpeningEventArgs } from './context-menu-opening-event-a
|
|
|
3
3
|
import type { ContextMenuTarget } from './context-menu-target';
|
|
4
4
|
/**
|
|
5
5
|
* Attaches a context menu to `target`: fixed items, or a function that builds them each time the menu
|
|
6
|
-
* opens (
|
|
7
|
-
*
|
|
6
|
+
* opens (each of your parts tells whether the menu opened on it: `part.motif.isEventFrom(e.event)`).
|
|
7
|
+
* Returns a function that removes the menu. The menu is also removed with the component.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
* attachContextMenu(this.list, (e) => this.itemsFor(
|
|
10
|
+
* attachContextMenu(this.list, (e) => this.itemsFor(this.rows.find((row) => row.motif.isEventFrom(e.event))));
|
|
11
11
|
*/
|
|
12
12
|
export declare function attachContextMenu(target: ContextMenuTarget, items: readonly MenuItem[] | ((e: ContextMenuOpeningEventArgs) => readonly MenuItem[] | null | undefined)): () => void;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
3
|
import type { ContextMenu } from './ContextMenu';
|
|
3
|
-
/** Provides data for `onOpening`. Change the items for the
|
|
4
|
+
/** Provides data for `onOpening`. Change the items for the component, or cancel the opening. */
|
|
4
5
|
export interface ContextMenuOpeningEventArgs {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The component the menu opens for (`targetPart`): the innermost component of the target that was right-clicked,
|
|
8
|
+
* or that holds focus when a key opened the menu, or the one given to `open()`.
|
|
9
|
+
*/
|
|
10
|
+
part: ComponentBase;
|
|
11
|
+
/** The items to show. Set it to build the menu for `part`. */
|
|
8
12
|
items: readonly MenuItem[];
|
|
9
13
|
/** With `true`, the menu does not open and the browser shows its own. */
|
|
10
14
|
cancel: boolean;
|
|
@@ -12,12 +12,12 @@ export interface ContextMenuProps extends ControlProps {
|
|
|
12
12
|
label?: Bind<string>;
|
|
13
13
|
/** The commands. `onOpening` can provide different ones for each element. */
|
|
14
14
|
items?: Bind<readonly MenuItem[]>;
|
|
15
|
-
/** The
|
|
15
|
+
/** The component the menu belongs to. The default is the component the `ContextMenu` is placed in. */
|
|
16
16
|
target?: Bind<ContextMenuTarget | null | undefined>;
|
|
17
17
|
/** The Menu key and Shift+F10 open the menu at the focused element. The default is `true`. */
|
|
18
18
|
keyboard?: Bind<boolean>;
|
|
19
19
|
/**
|
|
20
|
-
* Scrolling the
|
|
20
|
+
* Scrolling the component the menu opened on out of view closes the menu. Until then, the menu follows it.
|
|
21
21
|
* The default is `true`.
|
|
22
22
|
*/
|
|
23
23
|
closeOnScroll?: Bind<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
|
-
/** The owner of a context menu:
|
|
3
|
-
export type ContextMenuTarget =
|
|
2
|
+
/** The owner of a context menu: a component. */
|
|
3
|
+
export type ContextMenuTarget = ComponentBase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { data } from '@motifx-community/data';
|
|
3
3
|
import { Control } from '../../core/control';
|
|
4
4
|
import type { ColumnFeatures } from './column-features';
|
|
@@ -168,16 +168,24 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
168
168
|
/** "Export selected rows" was chosen for a format the app writes: its next `exportSheet()` takes the selection. */
|
|
169
169
|
private selectedNext;
|
|
170
170
|
private readonly gridId;
|
|
171
|
-
|
|
172
|
-
private
|
|
173
|
-
|
|
174
|
-
private
|
|
175
|
-
private
|
|
171
|
+
/** The box the rows scroll in, with the head and the totals in it. */
|
|
172
|
+
private viewportPart;
|
|
173
|
+
/** The head: the header row, the filter row and the band rows are its children. */
|
|
174
|
+
private headPart;
|
|
175
|
+
private footPart;
|
|
176
|
+
/** A hidden row whose height is the rows' height. */
|
|
177
|
+
private probePart;
|
|
178
|
+
private measurePart;
|
|
179
|
+
/** How far the rows are scrolled sideways (from the inline start), as last measured: virtual columns are found from it. */
|
|
180
|
+
private columnsStart;
|
|
181
|
+
/** Columns waiting to be fitted to their content, each with whether it goes alone (see `fitColumns`). */
|
|
182
|
+
private fitting;
|
|
176
183
|
/** Which button of the active actions cell has focus. */
|
|
177
184
|
private actionIndex;
|
|
185
|
+
/** The part that is the grid's Tab stop now (see `syncTabStop`). */
|
|
178
186
|
private tabbable;
|
|
179
187
|
private editor;
|
|
180
|
-
/** The row and field the open editor belongs to. */
|
|
188
|
+
/** The row and field the open editor belongs to, and the drawn row and cell it was put in. */
|
|
181
189
|
private editTarget;
|
|
182
190
|
/** Id of the active row (follows a new row when rows above it come or go). */
|
|
183
191
|
private activeRowId;
|
|
@@ -319,7 +327,7 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
319
327
|
retry(): void;
|
|
320
328
|
/** Scrolls row `index` into view (in paged mode, moves to its page). New rows count as rows. */
|
|
321
329
|
scrollToIndex(index: number, align?: 'nearest' | 'start' | 'end'): void;
|
|
322
|
-
/** Fits every visible, resizable column to its header and the displayed rows. */
|
|
330
|
+
/** Fits every visible, resizable column to its header and the displayed rows, measured with the window's next reads. */
|
|
323
331
|
autoSizeColumns(): void;
|
|
324
332
|
/** Sets focus on the active cell. */
|
|
325
333
|
focus(): boolean;
|
|
@@ -490,10 +498,10 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
490
498
|
set focusedRowKey(key: unknown);
|
|
491
499
|
/** The currently rendered rows (those in view, and the active row wherever it is), in order. */
|
|
492
500
|
getVisibleRows(): GridVisibleRow<T>[];
|
|
493
|
-
/** The
|
|
494
|
-
|
|
495
|
-
/** The
|
|
496
|
-
|
|
501
|
+
/** The part of grid row `rowIndex` while it is rendered. */
|
|
502
|
+
getRowPart(rowIndex: number): ComponentBase | undefined;
|
|
503
|
+
/** The part of a cell while its row is rendered. A group row returns its single cell for any field. */
|
|
504
|
+
getCellPart(rowIndex: number, field: string): ComponentBase | undefined;
|
|
497
505
|
/** The key of grid row `rowIndex`, or `undefined` for a new row, a group row, the header or a row still loading. */
|
|
498
506
|
getKeyByRowIndex(rowIndex: number): unknown;
|
|
499
507
|
/** The grid index of the row with this key while it is loaded (in-memory rows always are), otherwise -1. */
|
|
@@ -952,20 +960,31 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
952
960
|
private bottomShown;
|
|
953
961
|
/** Whether the toolbar or the bottom bar holds actions now. Reactive. */
|
|
954
962
|
private barShown;
|
|
955
|
-
private isRtl;
|
|
956
963
|
/** New rows that are saved (they count as data rows). */
|
|
957
964
|
private savedAdded;
|
|
958
|
-
/**
|
|
959
|
-
|
|
965
|
+
/**
|
|
966
|
+
* Reads the viewport, header and row heights now and runs the layout work waiting in the window, for what needs the
|
|
967
|
+
* answer at once: a test, a print, an export.
|
|
968
|
+
*/
|
|
969
|
+
measure(): void;
|
|
970
|
+
/** Reads the viewport, header and row heights with the window's next reads. */
|
|
971
|
+
private measureSizes;
|
|
972
|
+
private readonly readSizes;
|
|
973
|
+
private readonly drawSizes;
|
|
960
974
|
/**
|
|
961
975
|
* After the data changed: saved new rows the source now has leave the new-row area, the active row
|
|
962
976
|
* follows a new row that moved, and until the user moves, the active cell follows the data (first
|
|
963
977
|
* row when there is one, else the header).
|
|
964
978
|
*/
|
|
965
979
|
private followData;
|
|
966
|
-
|
|
980
|
+
/** The part of the active cell that takes focus: the cell, a button of the actions cell, the edit form's cell, a header. */
|
|
981
|
+
private activePart;
|
|
982
|
+
/** The cell of grid row `i` for `field` while the row is drawn: a group row's one cell, or a group footer itself, for any field. */
|
|
983
|
+
private cellPartAt;
|
|
967
984
|
/** The header of a column, or of a band. */
|
|
968
985
|
private headerCellOf;
|
|
986
|
+
/** The buttons of a row's actions cell that show, in order, the "more" button last. */
|
|
987
|
+
private actionButtons;
|
|
969
988
|
/** Exactly one cell is in the tab order: the active one. */
|
|
970
989
|
private syncTabStop;
|
|
971
990
|
private setActive;
|
|
@@ -984,11 +1003,14 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
984
1003
|
private arrangeColumns;
|
|
985
1004
|
/** While columns are virtual, the columns that came into view get their cells. */
|
|
986
1005
|
private updateColumns;
|
|
987
|
-
/** The rows scrolled:
|
|
988
|
-
private
|
|
989
|
-
|
|
1006
|
+
/** The rows scrolled: how far sideways is read with the window's next reads, and virtual columns follow. */
|
|
1007
|
+
private measureScroll;
|
|
1008
|
+
private readonly readScroll;
|
|
1009
|
+
/** The rows scrolled sideways to `start`: virtual columns follow at once, or once the scrolling stops (`renderAsync`). */
|
|
1010
|
+
private readonly columnsScrolled;
|
|
1011
|
+
/** Scrolls sideways, with the window's next reads, so the column is not under the sticky columns. */
|
|
990
1012
|
private revealColumn;
|
|
991
|
-
/** Focus leaves the grid: to the next (or previous)
|
|
1013
|
+
/** Focus leaves the grid: to the next (or previous) Tab stop outside the rows, else off the grid. */
|
|
992
1014
|
private moveFocusOut;
|
|
993
1015
|
/** Visible data fields the user can fill in grid row `i` (a new row: `creatable`, else `editable`), in display order. */
|
|
994
1016
|
private editableFields;
|
|
@@ -998,8 +1020,6 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
998
1020
|
private editorPreparing;
|
|
999
1021
|
/** `onEditorPrepared` for an editor just made. */
|
|
1000
1022
|
private editorPrepared;
|
|
1001
|
-
/** Whether an element is inside the edit form shown in place of a row. */
|
|
1002
|
-
private inForm;
|
|
1003
1023
|
/**
|
|
1004
1024
|
* Opens the edit form of grid row `i` (`editMode` `'form'`: in place of the row; `'popup'`: in a
|
|
1005
1025
|
* modal window), with focus on `field` when it can be filled in. A form open on another row is
|
|
@@ -1019,8 +1039,13 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1019
1039
|
private cancelForm;
|
|
1020
1040
|
/** The data is about to change (sort, filter, page, refresh) or the edit mode changed: the form is given up. */
|
|
1021
1041
|
private dropForm;
|
|
1022
|
-
/**
|
|
1042
|
+
/**
|
|
1043
|
+
* Takes the edit form away (and its window); with `focusRow`, focus goes back to the row. Returns
|
|
1044
|
+
* the window while it is still closing.
|
|
1045
|
+
*/
|
|
1023
1046
|
private closeForm;
|
|
1047
|
+
/** Runs `then` once `win` has closed (a modal window blocks the page until the browser closed it), at once without one. */
|
|
1048
|
+
private afterClosed;
|
|
1024
1049
|
/** Writes the editor's value into the row's draft and closes it; `false` (the editor stays) when it cannot be read. */
|
|
1025
1050
|
private commitEditor;
|
|
1026
1051
|
/** Closes the editor without keeping its value. Focus goes back to its cell when it was inside. */
|
|
@@ -1074,12 +1099,34 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1074
1099
|
*/
|
|
1075
1100
|
private navigate;
|
|
1076
1101
|
private goToCell;
|
|
1102
|
+
/** Whether an event came from the open cell editor. */
|
|
1103
|
+
private fromEditor;
|
|
1104
|
+
/** Whether an event came from the edit form shown in place of a row. */
|
|
1105
|
+
private fromForm;
|
|
1106
|
+
/** Whether an event came from what the rows hold of their own: the open editor, the edit form, a row's details. */
|
|
1107
|
+
private fromRowContent;
|
|
1108
|
+
/** The data row an event came from, with the cell it came from and that cell's field. */
|
|
1109
|
+
private cellFrom;
|
|
1110
|
+
/** The header an event came from: a column's (by its field) or a band's (by its id). */
|
|
1111
|
+
private headerFrom;
|
|
1112
|
+
/** The summary cell of a group footer an event came from, with its field. */
|
|
1113
|
+
private footerCellFrom;
|
|
1114
|
+
/** The cell of the row of totals an event came from, with its field. */
|
|
1115
|
+
private totalCellFrom;
|
|
1116
|
+
/** The tip of the part an event came from: a cell or action button of a data row, a filter's condition button, a header title, a summary cell. */
|
|
1117
|
+
private tipFrom;
|
|
1118
|
+
/** The action button of a data row an event came from. */
|
|
1119
|
+
private actionFrom;
|
|
1120
|
+
/** Whether a key came to the part of the open editor that takes the keys (its input, its check box, its list's box). */
|
|
1121
|
+
private toEditorInput;
|
|
1122
|
+
/** Whether a key came to one of the grid's own parts that take focus, not to what such a part holds (a field of the app's in a cell). */
|
|
1123
|
+
private toOwnPart;
|
|
1077
1124
|
private onFocusIn;
|
|
1078
1125
|
private onFocusOut;
|
|
1079
1126
|
/** A click on a cell of another row: leave the current row first (it may block or wait). */
|
|
1080
1127
|
private onPointerDown;
|
|
1081
1128
|
private onDoubleClick;
|
|
1082
|
-
/** The click events of a cell and of its row; whether the grid may go on with its own handling. */
|
|
1129
|
+
/** The click events of a cell and of its row (the app gets their elements); whether the grid may go on with its own handling. */
|
|
1083
1130
|
private askClick;
|
|
1084
1131
|
/** A click on the row of totals: its cell's and its row's events (`rowType: 'totalFooter'`). */
|
|
1085
1132
|
private clickedTotals;
|
|
@@ -1109,6 +1156,8 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1109
1156
|
* Tab and Enter go into the content.
|
|
1110
1157
|
*/
|
|
1111
1158
|
private onDetailKey;
|
|
1159
|
+
/** Focus into a row's details: their first stop, else their cell. */
|
|
1160
|
+
private focusDetail;
|
|
1112
1161
|
/**
|
|
1113
1162
|
* Tab on the last stop of a row's adaptive detail or details: into the row's details after it;
|
|
1114
1163
|
* from an adaptive detail whose row is being edited, on to the next row's cells, as Tab goes in
|
|
@@ -1146,15 +1195,29 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1146
1195
|
private onGroupKey;
|
|
1147
1196
|
private hasMenu;
|
|
1148
1197
|
private openMenu;
|
|
1198
|
+
/** A column's or a band's header, where a menu opens and where focus goes back to. */
|
|
1199
|
+
private headerAnchor;
|
|
1149
1200
|
/**
|
|
1150
1201
|
* Keys on a band's header: Left and Right (Home, End) go along the bands of its row, Up to the band
|
|
1151
1202
|
* it is in, Down to the first column or band under it; Alt+Down and the context menu key open its
|
|
1152
1203
|
* menu.
|
|
1153
1204
|
*/
|
|
1154
1205
|
private onBandKey;
|
|
1155
|
-
/**
|
|
1156
|
-
private
|
|
1157
|
-
/**
|
|
1206
|
+
/** Every visible, resizable column fitted to its content; `told`: the user asked, so the layout change is told once they are. */
|
|
1207
|
+
private fitAll;
|
|
1208
|
+
/**
|
|
1209
|
+
* Fits columns to their header and the rows shown now, measured with the window's next reads. In `'nextColumn'`
|
|
1210
|
+
* mode the next column gives or takes the difference, unless `alone`. `told`: the layout change is told once the
|
|
1211
|
+
* widths are written; `all`: every column got its cells for it (see `fitAll`).
|
|
1212
|
+
*/
|
|
1213
|
+
private fitColumns;
|
|
1214
|
+
/** The widths of the texts the columns being fitted show, by text. */
|
|
1215
|
+
private readonly fitWidths;
|
|
1216
|
+
private readonly readFits;
|
|
1217
|
+
private readonly writeFits;
|
|
1218
|
+
/** The width a column's content takes, and the next column that gives or takes the difference (unless `alone`); reads only. */
|
|
1219
|
+
private fitOf;
|
|
1220
|
+
/** A chip dropped on the headers at place `index` (the panel asked `groupDropping`): the column is ungrouped and, when it can move, put there. */
|
|
1158
1221
|
private dropOnHeaders;
|
|
1159
1222
|
/** Keyboard move or resize, from the column menu. */
|
|
1160
1223
|
private startAdjust;
|
|
@@ -1246,11 +1309,21 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1246
1309
|
private actionMenuItems;
|
|
1247
1310
|
/** Keys on an action button: Left and Right move between the buttons of the cell; Enter and Space press it. */
|
|
1248
1311
|
private onActionKey;
|
|
1249
|
-
/**
|
|
1312
|
+
/**
|
|
1313
|
+
* Puts copied cells on the clipboard. Where the window has the clipboard API (a secure page), through it: both forms
|
|
1314
|
+
* where it takes them (`ClipboardItem`), else the text. Elsewhere (a page over http, an older browser), or when the
|
|
1315
|
+
* API refuses, through the copy command.
|
|
1316
|
+
*/
|
|
1250
1317
|
private writeClipboard;
|
|
1318
|
+
/**
|
|
1319
|
+
* The copy command: a hidden text area holding the text goes into the app's layer above the page, is selected, and
|
|
1320
|
+
* the command copies; the copy event it raises takes both forms. Focus goes back where it was, and the area goes.
|
|
1321
|
+
* Returns whether the command copied.
|
|
1322
|
+
*/
|
|
1323
|
+
private copyByCommand;
|
|
1251
1324
|
/** Ctrl+V on a cell: the browser raises `paste` next, at the page when no field has focus; take that one event. */
|
|
1252
1325
|
private armPaste;
|
|
1253
|
-
/** A paste while a cell (not a field) has focus. */
|
|
1326
|
+
/** A paste while a cell (not a field) has focus: the active cell of a data row, which takes focus once it is on a cell. */
|
|
1254
1327
|
private onPaste;
|
|
1255
1328
|
/**
|
|
1256
1329
|
* Collects the rows of an export, after `onExporting` when `ask` (which may change the options or
|
|
@@ -1260,8 +1333,8 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1260
1333
|
/** Shows the load panel for an export that asks for it; whether it shows. */
|
|
1261
1334
|
private openExportPanel;
|
|
1262
1335
|
private showProgress;
|
|
1263
|
-
/**
|
|
1264
|
-
private
|
|
1336
|
+
/** The widths the visible columns have on screen, from their header cells; a column without one on screen is left out. */
|
|
1337
|
+
private shownWidths;
|
|
1265
1338
|
/** The commands of the toolbar's export button, from `export`. Reactive. */
|
|
1266
1339
|
private exportCommands;
|
|
1267
1340
|
private formatName;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GridColumn } from './grid-column';
|
|
2
|
+
import type { GridFilterOperator } from './grid-filter-operator';
|
|
3
|
+
/**
|
|
4
|
+
* The context a custom filter row editor receives. An editor that is a `Field` is bound to the column's filter both
|
|
5
|
+
* ways by the grid. Any other component writes the value with `setValue` and hears the filter change elsewhere (the
|
|
6
|
+
* filters cleared, a saved layout given back) through `onChanged`.
|
|
7
|
+
*/
|
|
8
|
+
export interface FilterEditorContext<T> {
|
|
9
|
+
readonly column: GridColumn<T>;
|
|
10
|
+
/** The condition of the filter row now, such as `'='` or `'contains'`. */
|
|
11
|
+
readonly operator: GridFilterOperator;
|
|
12
|
+
/** The value of the filter now (`undefined` when there is none). */
|
|
13
|
+
readonly value: unknown;
|
|
14
|
+
/** The upper end of `'between'`. */
|
|
15
|
+
readonly value2: unknown;
|
|
16
|
+
/** Filters by `value` (and `value2` for `'between'`); `undefined` or an empty value removes the condition. */
|
|
17
|
+
setValue(value: unknown, value2?: unknown): void;
|
|
18
|
+
/** Removes the column's filter row condition. */
|
|
19
|
+
clear(): void;
|
|
20
|
+
/** Calls `listener` with the value whenever the column's filter changes; returns what stops it. */
|
|
21
|
+
onChanged(listener: (value: unknown, value2: unknown) => void): () => void;
|
|
22
|
+
}
|
|
@@ -6,8 +6,8 @@ import type { GridSelection } from './grid-selection';
|
|
|
6
6
|
import type { RowState } from './row-state';
|
|
7
7
|
/**
|
|
8
8
|
* A button among a row's actions. `text` is required: it is the button's accessible name even when
|
|
9
|
-
* only the icon is displayed. Provide
|
|
10
|
-
* row has its own.
|
|
9
|
+
* only the icon is displayed. Provide a component icon as a function (`() => myIcon()`), so that
|
|
10
|
+
* every row has its own.
|
|
11
11
|
*
|
|
12
12
|
* An action appears in its row, or in the toolbar or the bottom bar for the selected rows (`location`),
|
|
13
13
|
* where several rows share the actions they all have. On several rows, `onclickMany` runs once with
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventArgs } from '@motifx/core';
|
|
1
|
+
import type { ComponentBase, EventArgs } from '@motifx/core';
|
|
2
2
|
import type { GridRowType } from './grid-row-type';
|
|
3
3
|
/**
|
|
4
4
|
* Occurs when a cell is clicked or double-clicked. Set `cancel = true` to prevent the grid's handling
|
|
@@ -13,7 +13,7 @@ export interface GridCellClickEventArgs<T> extends EventArgs {
|
|
|
13
13
|
readonly rowType: GridRowType;
|
|
14
14
|
/** On a group row, the group values from the top level down. */
|
|
15
15
|
readonly groupKey?: readonly unknown[];
|
|
16
|
-
/** The cell
|
|
17
|
-
readonly
|
|
16
|
+
/** The cell's part. */
|
|
17
|
+
readonly part: ComponentBase;
|
|
18
18
|
readonly event: MouseEvent;
|
|
19
19
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
/**
|
|
2
|
-
* Occurs when a cell is rendered for a row, so that you can style or extend it. The
|
|
3
|
-
* for other rows while scrolling, so always set and clear what you change (`
|
|
4
|
-
* `
|
|
3
|
+
* Occurs when a cell is rendered for a row, so that you can style or extend it. The part is reused
|
|
4
|
+
* for other rows while scrolling, so always set and clear what you change (`class.toggle`,
|
|
5
|
+
* `attr`).
|
|
5
6
|
*/
|
|
6
7
|
export interface GridCellPreparedEventArgs<T> {
|
|
7
8
|
readonly field: string;
|
|
@@ -10,5 +11,6 @@ export interface GridCellPreparedEventArgs<T> {
|
|
|
10
11
|
/** The displayed value, which is the unsaved value when there is one. */
|
|
11
12
|
readonly value: unknown;
|
|
12
13
|
readonly isNew: boolean;
|
|
13
|
-
|
|
14
|
+
/** The cell's part. */
|
|
15
|
+
readonly part: ComponentBase;
|
|
14
16
|
}
|