@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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Bind, ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { IconSource } from "../../core/icon-source";
|
|
3
|
+
import type { AppMenuItemClickEventArgs } from "./app-menu-item-click-event-args";
|
|
4
|
+
/**
|
|
5
|
+
* One entry of `AppMenu.items`. An item with `page` shows that page beside the list; any other item is a command
|
|
6
|
+
* (`click`, `onItemClick`) or, with `href`, a link. Every field except `key`, `page`, `click` and `data` accepts a value
|
|
7
|
+
* or a function.
|
|
8
|
+
*/
|
|
9
|
+
export interface AppMenuItem {
|
|
10
|
+
/** Finds the item, and is what `selected` is while its page is shown. The default is its position. */
|
|
11
|
+
key?: string | number;
|
|
12
|
+
/** The text. An `&` before a letter makes that letter its access key; `&&` writes an ampersand. */
|
|
13
|
+
text: Bind<string>;
|
|
14
|
+
/** The name of a glyph. */
|
|
15
|
+
glyph?: Bind<string>;
|
|
16
|
+
/** An image address or a component, used instead of `glyph`. */
|
|
17
|
+
icon?: Bind<IconSource | null | undefined>;
|
|
18
|
+
/** A longer description, shown as a tooltip. */
|
|
19
|
+
hint?: Bind<string>;
|
|
20
|
+
/** Makes it a page item. The page is made the first time it is shown, and kept. */
|
|
21
|
+
page?: () => ComponentBase;
|
|
22
|
+
/** Makes the item a link to this address. */
|
|
23
|
+
href?: Bind<string>;
|
|
24
|
+
/** The `rel` of the link, such as `'router'`. */
|
|
25
|
+
rel?: Bind<string>;
|
|
26
|
+
/** The `target` of the link. */
|
|
27
|
+
target?: Bind<string>;
|
|
28
|
+
/** A count in a badge. */
|
|
29
|
+
badge?: Bind<number | null>;
|
|
30
|
+
/** A dot instead of a count. The default is `false`. */
|
|
31
|
+
dot?: Bind<boolean>;
|
|
32
|
+
/** `false` dims the item, and it cannot be chosen. The default is `true`. */
|
|
33
|
+
enabled?: Bind<boolean>;
|
|
34
|
+
/** `false` removes the item. The default is `true`. */
|
|
35
|
+
visible?: Bind<boolean>;
|
|
36
|
+
/** Items of the same group stand together, with a line between groups. */
|
|
37
|
+
group?: Bind<string>;
|
|
38
|
+
/** Puts the item in the list at the bottom of the menu. The default is `false`. */
|
|
39
|
+
bottom?: Bind<boolean>;
|
|
40
|
+
/** Closes the menu when the item is pressed, for a command or a link. The default is the menu's `closeOnCommand`. */
|
|
41
|
+
closeOnClick?: Bind<boolean>;
|
|
42
|
+
/** Occurs when the item is pressed. */
|
|
43
|
+
click?: (e: AppMenuItemClickEventArgs) => void;
|
|
44
|
+
/** A custom application value for the item. */
|
|
45
|
+
data?: unknown;
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AppMenu } from "./AppMenu";
|
|
2
|
+
import type { AppMenuItem } from "./app-menu-item";
|
|
3
|
+
export interface AppMenuItemsChangedEventArgs {
|
|
4
|
+
/** The new list of items, to keep: the item changed is a new object, the others the ones given. */
|
|
5
|
+
items: readonly AppMenuItem[];
|
|
6
|
+
source: AppMenu;
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Bind, ComponentBase } from "@motifx/core";
|
|
2
|
+
import type { OverlayPanelProps } from "../../parts/overlay/overlay-panel-props";
|
|
3
|
+
import type { AppMenuItem } from "./app-menu-item";
|
|
4
|
+
import type { AppMenuItemClickEventArgs } from "./app-menu-item-click-event-args";
|
|
5
|
+
import type { AppMenuItemsChangedEventArgs } from "./app-menu-items-changed-event-args";
|
|
6
|
+
import type { AppMenuSearchTextChangedEventArgs } from "./app-menu-search-text-changed-event-args";
|
|
7
|
+
import type { AppMenuSelectingEventArgs } from "./app-menu-selecting-event-args";
|
|
8
|
+
import type { AppMenuSelectionChangedEventArgs } from "./app-menu-selection-changed-event-args";
|
|
9
|
+
/**
|
|
10
|
+
* Props of `AppMenu`. Each prop is also a settable property, and a function is tracked. `value` is whether it is open
|
|
11
|
+
* (`x-model`), as for every overlay panel.
|
|
12
|
+
*/
|
|
13
|
+
export interface AppMenuProps extends Omit<OverlayPanelProps, 'title' | 'content' | 'footer' | 'showClose'> {
|
|
14
|
+
/** The entries of the list. Nothing is there until they are given. */
|
|
15
|
+
items?: Bind<readonly AppMenuItem[]>;
|
|
16
|
+
/** The key of the page item shown. By default, the first page item. */
|
|
17
|
+
selected?: Bind<string | number | null>;
|
|
18
|
+
/** Closes the menu when a command or a link is pressed. Each item can say otherwise. The default is `true`. */
|
|
19
|
+
closeOnCommand?: Bind<boolean>;
|
|
20
|
+
/** Any content of the app at the top of the list, under the close button, such as the user's name and picture. */
|
|
21
|
+
listHeader?: Bind<ComponentBase | null>;
|
|
22
|
+
/** Any content of the app at the bottom of the list, after the items at the bottom. */
|
|
23
|
+
listFooter?: Bind<ComponentBase | null>;
|
|
24
|
+
/** A search field above the items: typing leaves the items whose text or hint holds it. The default is `false`. */
|
|
25
|
+
searchEnabled?: Bind<boolean>;
|
|
26
|
+
/** The text searched for. */
|
|
27
|
+
searchText?: Bind<string>;
|
|
28
|
+
/** Occurs when the user types in the search field. */
|
|
29
|
+
onSearchTextChanged?: (e: AppMenuSearchTextChangedEventArgs) => void;
|
|
30
|
+
/** Occurs after a change by key (`addItem`, `removeItem`, `moveItem`, `updateItem`), with the new list to keep. */
|
|
31
|
+
onItemsChanged?: (e: AppMenuItemsChangedEventArgs) => void;
|
|
32
|
+
/** Occurs before another page is shown. Setting `cancel` keeps the page shown now. */
|
|
33
|
+
onSelecting?: (e: AppMenuSelectingEventArgs) => void;
|
|
34
|
+
/** Occurs after another page is shown. */
|
|
35
|
+
onSelectionChanged?: (e: AppMenuSelectionChangedEventArgs) => void;
|
|
36
|
+
/** Occurs when an item is pressed, after its own `click`. */
|
|
37
|
+
onItemClick?: (e: AppMenuItemClickEventArgs) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppMenuSelectionChangedEventArgs } from "./app-menu-selection-changed-event-args";
|
|
2
|
+
/** Data of `AppMenu.onSelecting`. Setting `cancel` keeps the page shown now. */
|
|
3
|
+
export interface AppMenuSelectingEventArgs extends AppMenuSelectionChangedEventArgs {
|
|
4
|
+
cancel: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AppMenu } from "./AppMenu";
|
|
2
|
+
import type { AppMenuItem } from "./app-menu-item";
|
|
3
|
+
/** Data of `AppMenu.onSelectionChanged`. */
|
|
4
|
+
export interface AppMenuSelectionChangedEventArgs {
|
|
5
|
+
/** The key of the page item chosen. */
|
|
6
|
+
key: string | number;
|
|
7
|
+
previous: string | number | null;
|
|
8
|
+
item: AppMenuItem;
|
|
9
|
+
previousItem: AppMenuItem | null;
|
|
10
|
+
/** What the reader did, or `null` for a change made programmatically. */
|
|
11
|
+
originalEvent: Event | null;
|
|
12
|
+
source: AppMenu;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AppMenu } from './AppMenu';
|
|
2
|
+
export type { AppMenuProps } from './app-menu-props';
|
|
3
|
+
export type { AppMenuItem } from './app-menu-item';
|
|
4
|
+
export type { AppMenuItemClickEventArgs } from './app-menu-item-click-event-args';
|
|
5
|
+
export type { AppMenuItemsChangedEventArgs } from './app-menu-items-changed-event-args';
|
|
6
|
+
export type { AppMenuSearchTextChangedEventArgs } from './app-menu-search-text-changed-event-args';
|
|
7
|
+
export type { AppMenuSelectingEventArgs } from './app-menu-selecting-event-args';
|
|
8
|
+
export type { AppMenuSelectionChangedEventArgs } from './app-menu-selection-changed-event-args';
|
|
@@ -24,6 +24,8 @@ export declare class Avatar extends Control<HTMLSpanElement, AvatarProps> {
|
|
|
24
24
|
/** The picture that loaded, and the one that could not. */
|
|
25
25
|
private loaded;
|
|
26
26
|
private failed;
|
|
27
|
+
/** The address given to the image last; `null` while it has none. */
|
|
28
|
+
private imageSrc;
|
|
27
29
|
constructor(props?: IBaseProp<AvatarProps>);
|
|
28
30
|
get src(): string | null;
|
|
29
31
|
set src(value: Bind<string | null>);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Bind, IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
|
+
import { Avatar } from './Avatar';
|
|
3
4
|
import type { AvatarGroupLayout } from './avatar-group-layout';
|
|
4
5
|
import type { AvatarGroupProps } from './avatar-group-props';
|
|
5
6
|
import type { AvatarSize } from './avatar-size';
|
|
@@ -20,6 +21,11 @@ export declare class AvatarGroup extends Control<HTMLDivElement, AvatarGroupProp
|
|
|
20
21
|
private readonly look;
|
|
21
22
|
/** The `+N` for those not shown. */
|
|
22
23
|
private readonly more;
|
|
24
|
+
/** What the group hears: its avatars, and what holds avatars in its place (a JSX list, a condition, a fragment). */
|
|
25
|
+
private readonly heard;
|
|
26
|
+
/** The avatars are counted again at the end of this turn. */
|
|
27
|
+
private countDue;
|
|
28
|
+
private disposing;
|
|
23
29
|
constructor(props?: IBaseProp<AvatarGroupProps>);
|
|
24
30
|
get size(): AvatarSize;
|
|
25
31
|
set size(value: Bind<AvatarSize>);
|
|
@@ -31,11 +37,21 @@ export declare class AvatarGroup extends Control<HTMLDivElement, AvatarGroupProp
|
|
|
31
37
|
set total(value: Bind<number | null>);
|
|
32
38
|
get label(): string;
|
|
33
39
|
set label(value: Bind<string>);
|
|
34
|
-
/** The
|
|
35
|
-
get
|
|
40
|
+
/** The avatars in the group, in order, those of JSX lists and conditions included. Hidden ones and the `+N` are not. */
|
|
41
|
+
get members(): Avatar[];
|
|
36
42
|
/** The number of people counted in the `+N`, or 0 when it is not shown. */
|
|
37
43
|
get hiddenCount(): number;
|
|
38
44
|
onMounted(): void;
|
|
45
|
+
onDisposing(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Hears, once, an avatar or what holds avatars in the group's place: an avatar added, built, shown, hidden or gone
|
|
48
|
+
* has them counted again. Any other component keeps what is inside it.
|
|
49
|
+
*/
|
|
50
|
+
private listen;
|
|
51
|
+
/** The avatars in `component` that are in the page, in order: what holds avatars is looked into, any other component is not. */
|
|
52
|
+
private collect;
|
|
53
|
+
/** Counts the avatars again once the changes of this turn are in. */
|
|
54
|
+
private countLater;
|
|
39
55
|
private renderShown;
|
|
40
56
|
private renderLook;
|
|
41
57
|
}
|
|
@@ -51,6 +51,9 @@ export declare class Badge extends Control<HTMLSpanElement, BadgeProps> {
|
|
|
51
51
|
private peekMax;
|
|
52
52
|
private renderShown;
|
|
53
53
|
private renderLook;
|
|
54
|
+
/** The component the badge sits in: its parent, or the nearest one above it with an element (a fragment has none). */
|
|
55
|
+
private findAnchor;
|
|
54
56
|
/** The anchor's frame: the badge sits on its outer corner, not inside its border. */
|
|
55
|
-
private
|
|
57
|
+
private readonly readEdges;
|
|
58
|
+
private readonly writeEdges;
|
|
56
59
|
}
|
|
@@ -17,9 +17,13 @@ import type { BarcodeProps } from "./barcode-props";
|
|
|
17
17
|
export declare class Barcode extends Control<HTMLDivElement, BarcodeProps> {
|
|
18
18
|
encodeFailed: Emitter<BarcodeFailedEventArgs>;
|
|
19
19
|
svg: SVGSVGElement;
|
|
20
|
+
svgPart: Component<SVGSVGElement>;
|
|
20
21
|
path: SVGPathElement;
|
|
22
|
+
pathPart: Component<SVGPathElement>;
|
|
21
23
|
textPart: Component<HTMLSpanElement>;
|
|
22
24
|
model: BarcodeModel | null;
|
|
25
|
+
invalid: boolean;
|
|
26
|
+
languageHeight: number;
|
|
23
27
|
constructor(props?: IBaseProp<BarcodeProps>);
|
|
24
28
|
get value(): string;
|
|
25
29
|
set value(value: Bind<string>);
|
|
@@ -55,7 +59,9 @@ export declare class Barcode extends Control<HTMLDivElement, BarcodeProps> {
|
|
|
55
59
|
svgText(image: CodeImage): string;
|
|
56
60
|
imageOf(barHeight: number): CodeImage | null;
|
|
57
61
|
render(): void;
|
|
58
|
-
|
|
62
|
+
drawBars(): void;
|
|
63
|
+
readHeight: () => number;
|
|
64
|
+
useHeight: (given: number) => void;
|
|
59
65
|
onMounted(): void;
|
|
60
66
|
drawText(): void;
|
|
61
67
|
drawName(): void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { Bind, IBaseProp } from "@motifx/core";
|
|
1
|
+
import type { Bind, Component, IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
-
import {
|
|
4
|
-
import { type ChartFormat } from "../../parts/chart/chart-text";
|
|
5
|
-
import { TextPool } from "../../parts/chart/svg-parts";
|
|
6
|
-
import { TokenLengths } from "../../parts/chart/token-lengths";
|
|
3
|
+
import { DrawnTexts, type ChartFormat } from "../../parts/chart/chart-text";
|
|
7
4
|
import { ValueMotion } from "../../parts/chart/value-motion";
|
|
8
5
|
import type { ChartField } from "../chart/chart-field";
|
|
6
|
+
import { TextParts } from "../chart/text-parts";
|
|
9
7
|
import type { BarGaugeProps } from "./bar-gauge-props";
|
|
8
|
+
declare const FONT: readonly ['font', 'font-size', 'font-family', 'line-height'];
|
|
10
9
|
interface Bar {
|
|
11
10
|
value: number | null;
|
|
12
11
|
name: string;
|
|
@@ -19,10 +18,20 @@ interface Look {
|
|
|
19
18
|
indent: number;
|
|
20
19
|
spacing: number;
|
|
21
20
|
}
|
|
21
|
+
/** What a draw reads before it writes: the lengths and the font of the values. */
|
|
22
|
+
interface LookRead {
|
|
23
|
+
look: Look;
|
|
24
|
+
font: Record<(typeof FONT)[number], string>;
|
|
25
|
+
}
|
|
22
26
|
interface Ring {
|
|
23
27
|
inner: number;
|
|
24
28
|
outer: number;
|
|
25
29
|
}
|
|
30
|
+
interface LegendEntry {
|
|
31
|
+
item: Component<HTMLLIElement>;
|
|
32
|
+
swatch: Component<HTMLSpanElement>;
|
|
33
|
+
label: Component<HTMLSpanElement>;
|
|
34
|
+
}
|
|
26
35
|
/**
|
|
27
36
|
* Several values side by side as bars bent round one middle, each against the same scale: a bar starts at the base
|
|
28
37
|
* value and goes round as far as its value. Each value is written at the end of its bar, a legend names the bars, and
|
|
@@ -33,17 +42,20 @@ interface Ring {
|
|
|
33
42
|
* <BarGauge data={() => this.sales} valueField="share" nameField="region" label="Sales by region" legend />
|
|
34
43
|
*/
|
|
35
44
|
export declare class BarGauge<T = any> extends Control<HTMLDivElement, BarGaugeProps<T>> {
|
|
36
|
-
svg: SVGSVGElement
|
|
37
|
-
tracks: SVGGElement
|
|
38
|
-
fills: SVGGElement
|
|
39
|
-
connectors: SVGPathElement
|
|
40
|
-
labels: SVGGElement
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
legendList: HTMLUListElement
|
|
44
|
-
tip: HTMLSpanElement
|
|
45
|
+
svg: Component<SVGSVGElement>;
|
|
46
|
+
tracks: Component<SVGGElement>;
|
|
47
|
+
fills: Component<SVGGElement>;
|
|
48
|
+
connectors: Component<SVGPathElement>;
|
|
49
|
+
labels: Component<SVGGElement>;
|
|
50
|
+
/** The values at the ends of the bars, measured in their font and numbers. */
|
|
51
|
+
texts: DrawnTexts;
|
|
52
|
+
legendList: Component<HTMLUListElement>;
|
|
53
|
+
tip: Component<HTMLSpanElement>;
|
|
54
|
+
trackPaths: Component<SVGPathElement>[];
|
|
55
|
+
barPaths: Component<SVGPathElement>[];
|
|
56
|
+
labelTexts: TextParts;
|
|
57
|
+
legendEntries: LegendEntry[];
|
|
45
58
|
motion: ValueMotion;
|
|
46
|
-
tokens: TokenLengths;
|
|
47
59
|
bars: Bar[];
|
|
48
60
|
rings: Ring[];
|
|
49
61
|
cx: number;
|
|
@@ -58,13 +70,13 @@ export declare class BarGauge<T = any> extends Control<HTMLDivElement, BarGaugeP
|
|
|
58
70
|
height: number;
|
|
59
71
|
};
|
|
60
72
|
look: Look;
|
|
61
|
-
|
|
73
|
+
font: LookRead['font'];
|
|
74
|
+
widthOf: (text: string) => number;
|
|
62
75
|
lineHeight: number;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
stopFonts: (() => void) | null;
|
|
76
|
+
/** Drawn once with what was read: new values move from there on. */
|
|
77
|
+
drawn: boolean;
|
|
78
|
+
readonly readLook: () => LookRead;
|
|
79
|
+
readonly drawLook: (read: LookRead) => void;
|
|
68
80
|
constructor(props?: IBaseProp<BarGaugeProps<T>>);
|
|
69
81
|
onMounted(): void;
|
|
70
82
|
get data(): readonly (T | number)[];
|
|
@@ -107,11 +119,12 @@ export declare class BarGauge<T = any> extends Control<HTMLDivElement, BarGaugeP
|
|
|
107
119
|
again(): void;
|
|
108
120
|
/** New values: a bar that is new grows from the base value. */
|
|
109
121
|
moveTo(): void;
|
|
110
|
-
lengths
|
|
122
|
+
/** Draws with the lengths and the font read last; `again` reads them anew. */
|
|
111
123
|
draw(): void;
|
|
112
124
|
/** The parts that follow the moving values: the bars and the values at their ends. */
|
|
113
125
|
drawValues(values: readonly (number | null)[]): void;
|
|
114
126
|
drawLegend(): void;
|
|
127
|
+
makeEntry(): LegendEntry;
|
|
115
128
|
barText(bar: Bar): string;
|
|
116
129
|
drawName(): void;
|
|
117
130
|
/** The bar under the pointer shows in the tooltip. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Emitter, type Bind, type Component, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
3
|
import type { IconSource } from "../../core/icon-source";
|
|
4
4
|
import { Badge } from "../badge/Badge";
|
|
@@ -26,8 +26,16 @@ interface Look {
|
|
|
26
26
|
enabled: boolean;
|
|
27
27
|
visible: boolean;
|
|
28
28
|
}
|
|
29
|
+
/** An item in the list: a new slot when the item turns between button and link. */
|
|
30
|
+
interface Slot {
|
|
31
|
+
item: BottomNavigationItem;
|
|
32
|
+
link: boolean;
|
|
33
|
+
part: ItemPart | null;
|
|
34
|
+
}
|
|
29
35
|
interface ItemPart {
|
|
30
36
|
item: BottomNavigationItem;
|
|
37
|
+
/** Made as a link (`href`), not a button. */
|
|
38
|
+
link: boolean;
|
|
31
39
|
host: Component<HTMLElement>;
|
|
32
40
|
iconHost: Component<HTMLSpanElement>;
|
|
33
41
|
glyph: Component<HTMLSpanElement>;
|
|
@@ -54,12 +62,16 @@ export declare class BottomNavigation extends Control<HTMLElement, BottomNavigat
|
|
|
54
62
|
selectionChanged: Emitter<BottomNavigationSelectionChangedEventArgs>;
|
|
55
63
|
itemClick: Emitter<BottomNavigationItemClickEventArgs>;
|
|
56
64
|
list: Component<HTMLDivElement>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
/** The slot of each item, the same while the item stays a button or a link. */
|
|
66
|
+
slots: WeakMap<BottomNavigationItem, Slot>;
|
|
67
|
+
/** The item Tab reaches, null for none. */
|
|
68
|
+
stop: Slot | null;
|
|
69
|
+
/** What `hideOnScroll` watches when the app gives it (`scrollTarget`). */
|
|
70
|
+
scrollPart: ComponentBase | null;
|
|
71
|
+
/** Where the scroll `hideOnScroll` follows was last read; null before the first read. */
|
|
72
|
+
lastTop: number | null;
|
|
60
73
|
stopScroll: (() => void) | null;
|
|
61
74
|
constructor(props?: IBaseProp<BottomNavigationProps>);
|
|
62
|
-
onMounted(): void;
|
|
63
75
|
get items(): readonly BottomNavigationItem[];
|
|
64
76
|
set items(value: Bind<readonly BottomNavigationItem[]>);
|
|
65
77
|
get value(): Value | null;
|
|
@@ -72,8 +84,8 @@ export declare class BottomNavigation extends Control<HTMLElement, BottomNavigat
|
|
|
72
84
|
set position(value: Bind<BottomNavigationPosition>);
|
|
73
85
|
get hideOnScroll(): boolean;
|
|
74
86
|
set hideOnScroll(value: Bind<boolean>);
|
|
75
|
-
get scrollTarget():
|
|
76
|
-
set scrollTarget(value: Bind<
|
|
87
|
+
get scrollTarget(): ComponentBase | null;
|
|
88
|
+
set scrollTarget(value: Bind<ComponentBase | null>);
|
|
77
89
|
get onSelecting(): MotifEvent<BottomNavigationSelectingEventArgs>;
|
|
78
90
|
get onSelectionChanged(): MotifEvent<BottomNavigationSelectionChangedEventArgs>;
|
|
79
91
|
get onItemClick(): MotifEvent<BottomNavigationItemClickEventArgs>;
|
|
@@ -81,18 +93,38 @@ export declare class BottomNavigation extends Control<HTMLElement, BottomNavigat
|
|
|
81
93
|
get selectedItem(): BottomNavigationItem | null;
|
|
82
94
|
/** Moves focus to the item Tab reaches. */
|
|
83
95
|
focus(): boolean;
|
|
84
|
-
|
|
96
|
+
/** The items in order, each with its slot: a new slot (and item) only when an item turns between button and link. */
|
|
97
|
+
slotList(): Slot[];
|
|
98
|
+
/** What the items say now, in order; read without being followed. */
|
|
99
|
+
looksNow(): {
|
|
100
|
+
slot: Slot;
|
|
101
|
+
look: Look;
|
|
102
|
+
}[];
|
|
103
|
+
/** The item Tab reaches: the selected one, or the first usable one. */
|
|
104
|
+
stopSlot(): Slot | null;
|
|
105
|
+
lookOfSlot(slot: Slot): Look;
|
|
85
106
|
lookOf(item: BottomNavigationItem, index: number): Look;
|
|
86
|
-
|
|
87
|
-
makeItem(
|
|
107
|
+
/** An item, built once: what it says and whether it is selected change only what shows them. */
|
|
108
|
+
makeItem(slot: Slot): Component<HTMLElement>;
|
|
88
109
|
drawBadge(p: ItemPart, look: Look): void;
|
|
89
110
|
drawIcon(p: ItemPart, look: Look, selected: boolean): void;
|
|
90
|
-
drawSelection(): void;
|
|
91
111
|
drawName(): void;
|
|
92
112
|
drawLook(): void;
|
|
93
113
|
followScroll(): void;
|
|
114
|
+
readonly readScroll: () => {
|
|
115
|
+
top: number;
|
|
116
|
+
height: number;
|
|
117
|
+
};
|
|
118
|
+
readonly drawScroll: (at: {
|
|
119
|
+
top: number;
|
|
120
|
+
height: number;
|
|
121
|
+
}) => void;
|
|
94
122
|
lookOfValue(value: Value | null): Look | null;
|
|
95
|
-
|
|
123
|
+
/** The item an event came from, or null. */
|
|
124
|
+
entryOfEvent(e: Event): {
|
|
125
|
+
slot: Slot;
|
|
126
|
+
look: Look;
|
|
127
|
+
} | null;
|
|
96
128
|
listClick(e: MouseEvent): void;
|
|
97
129
|
/** Selects `look` unless `onSelecting` refuses. Returns `false` when it was refused. */
|
|
98
130
|
select(look: Look, originalEvent: Event): boolean;
|
|
@@ -10,7 +10,7 @@ export interface BottomNavigationItem {
|
|
|
10
10
|
glyph?: Bind<string>;
|
|
11
11
|
/** The glyph while selected, such as a filled one. The default is `glyph`. */
|
|
12
12
|
activeGlyph?: Bind<string>;
|
|
13
|
-
/** An image
|
|
13
|
+
/** An image address or a component, used instead of `glyph`. */
|
|
14
14
|
icon?: Bind<IconSource | null | undefined>;
|
|
15
15
|
/** The icon while selected. The default is `icon`. */
|
|
16
16
|
activeIcon?: Bind<IconSource | null | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Bind } from "@motifx/core";
|
|
1
|
+
import type { Bind, ComponentBase } from "@motifx/core";
|
|
2
2
|
import type { ControlProps } from "../../core/control";
|
|
3
3
|
import type { BottomNavigationItem } from "./bottom-navigation-item";
|
|
4
4
|
import type { BottomNavigationItemClickEventArgs } from "./bottom-navigation-item-click-event-args";
|
|
@@ -21,7 +21,7 @@ export interface BottomNavigationProps extends ControlProps {
|
|
|
21
21
|
/** Moves the bar out of sight while scrolling down. The default is `false`. */
|
|
22
22
|
hideOnScroll?: Bind<boolean>;
|
|
23
23
|
/** What `hideOnScroll` watches. By default, the nearest ancestor that scrolls, else the page. */
|
|
24
|
-
scrollTarget?: Bind<
|
|
24
|
+
scrollTarget?: Bind<ComponentBase | null>;
|
|
25
25
|
/** Occurs before the selection changes. Setting `cancel` keeps the current item. */
|
|
26
26
|
onSelecting?: (e: BottomNavigationSelectingEventArgs) => void;
|
|
27
27
|
/** Occurs after the selection changes. */
|
|
@@ -17,12 +17,9 @@ export declare class Breadcrumb extends Control<HTMLElement, BreadcrumbProps> {
|
|
|
17
17
|
private readonly list;
|
|
18
18
|
private readonly moreItem;
|
|
19
19
|
private readonly more;
|
|
20
|
-
private
|
|
21
|
-
private looks;
|
|
22
|
-
private stopItems;
|
|
20
|
+
private entries;
|
|
23
21
|
/** The steps now in the menu. */
|
|
24
22
|
private hidden;
|
|
25
|
-
private readonly watch;
|
|
26
23
|
constructor(props?: IBaseProp<BreadcrumbProps>);
|
|
27
24
|
get items(): readonly (BreadcrumbItem | string)[];
|
|
28
25
|
set items(value: Bind<readonly (BreadcrumbItem | string)[]>);
|
|
@@ -40,17 +37,24 @@ export declare class Breadcrumb extends Control<HTMLElement, BreadcrumbProps> {
|
|
|
40
37
|
get onItemClick(): MotifEvent<BreadcrumbItemClickEventArgs>;
|
|
41
38
|
/** The indexes of the steps currently in the menu. */
|
|
42
39
|
get collapsed(): readonly number[];
|
|
43
|
-
onMounted(): void;
|
|
44
40
|
private renderName;
|
|
45
|
-
|
|
41
|
+
/** One entry per item, in item order: the same entry while its item stays (an item given twice has two). */
|
|
42
|
+
private entryList;
|
|
43
|
+
private isLast;
|
|
44
|
+
/** The current page, a link or a button: what the step's face is made of. */
|
|
45
|
+
private kindOf;
|
|
46
46
|
private lookOf;
|
|
47
|
-
/**
|
|
48
|
-
private
|
|
47
|
+
/** A step, built once: its face changes only when its kind does, its divider only when it becomes (or stops being) the last. */
|
|
48
|
+
private makeStep;
|
|
49
|
+
private makeFace;
|
|
49
50
|
/** A divider after a step: a glyph whose shape is the design language's (`divider.icon`). */
|
|
50
51
|
private divider;
|
|
51
52
|
/** A step pressed: told first; a link is followed unless canceled, a disabled one never. */
|
|
52
53
|
private pressed;
|
|
53
54
|
/** As many steps as fit (and no more than `maxItems`): the ones between the first and the last go into the menu. */
|
|
54
55
|
private fit;
|
|
56
|
+
private readonly readList;
|
|
57
|
+
/** Hides steps from the second on while the list overflows, measuring it again after each one. */
|
|
58
|
+
private readonly hideOverflow;
|
|
55
59
|
private showSteps;
|
|
56
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Bind, type ComponentBase, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
|
-
import type
|
|
3
|
+
import { type IconSource } from '../../core/icon-source';
|
|
4
4
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
5
5
|
import type { ButtonProps } from './button-props';
|
|
6
6
|
import type { ButtonSize } from './button-size';
|
|
@@ -23,6 +23,8 @@ import type { ButtonVariant } from './button-variant';
|
|
|
23
23
|
export declare class Button extends Control<HTMLElement, ButtonProps> {
|
|
24
24
|
/** A variant, tone or size not given is the design language's, or the one of the place the button sits in. */
|
|
25
25
|
private readonly look;
|
|
26
|
+
/** The icon as given, a function too: the "more" menu calls it again for its own copy. */
|
|
27
|
+
private givenIcon;
|
|
26
28
|
constructor(props?: IBaseProp<ButtonProps>);
|
|
27
29
|
get variant(): ButtonVariant;
|
|
28
30
|
set variant(value: Bind<ButtonVariant>);
|
|
@@ -32,6 +34,11 @@ export declare class Button extends Control<HTMLElement, ButtonProps> {
|
|
|
32
34
|
set size(value: Bind<ButtonSize>);
|
|
33
35
|
get icon(): IconSource | null;
|
|
34
36
|
set icon(value: Bind<IconSource | null>);
|
|
37
|
+
/**
|
|
38
|
+
* @internal A new copy of the icon for a second place (the "more" menu of a toolbar or a ribbon): an address as it
|
|
39
|
+
* is, a function given called again. `null` for a component given as is, which stays in the button.
|
|
40
|
+
*/
|
|
41
|
+
iconCopy(): IconSource | null;
|
|
35
42
|
get iconPosition(): 'start' | 'end';
|
|
36
43
|
set iconPosition(value: Bind<'start' | 'end'>);
|
|
37
44
|
get stretch(): boolean;
|
|
@@ -73,7 +80,12 @@ export declare class Button extends Control<HTMLElement, ButtonProps> {
|
|
|
73
80
|
* Your items can be plain or reactive, and the button reads them as they are.
|
|
74
81
|
*/
|
|
75
82
|
refresh(): void;
|
|
76
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Sets focus on the first item of the open menu that `test` accepts. Returns `false` if the menu is not open or
|
|
85
|
+
* no item is accepted.
|
|
86
|
+
*/
|
|
87
|
+
focusMenuItem(test: (item: MenuItem) => boolean): boolean;
|
|
88
|
+
get focusPart(): ComponentBase;
|
|
77
89
|
get canFocus(): boolean;
|
|
78
90
|
/** The access key clicks the button, as HTML `accesskey` does. With a menu and no `split`, it opens the menu. */
|
|
79
91
|
onAccessKey(): boolean;
|
|
@@ -84,6 +96,8 @@ export declare class Button extends Control<HTMLElement, ButtonProps> {
|
|
|
84
96
|
/** JSX children go after the text: in the button, or in its main part. */
|
|
85
97
|
private placeChildren;
|
|
86
98
|
private listen;
|
|
99
|
+
/** The part that is pressed and takes focus: the button itself, or its main part with a menu. Its parts are its children. */
|
|
100
|
+
get faceComponent(): ComponentBase;
|
|
87
101
|
private faceClicked;
|
|
88
102
|
private faceKeyDown;
|
|
89
103
|
private arrowKeyDown;
|
|
@@ -99,6 +113,13 @@ export declare class Button extends Control<HTMLElement, ButtonProps> {
|
|
|
99
113
|
* on the page. A button placed on the page outside the component tree is notified when it is placed.
|
|
100
114
|
*/
|
|
101
115
|
readLook(): void;
|
|
116
|
+
/**
|
|
117
|
+
* @internal Reads the design language's choice at once, inside the write of a fit that tries a size and measures it
|
|
118
|
+
* (a ribbon group).
|
|
119
|
+
*/
|
|
120
|
+
readLookNow(): void;
|
|
121
|
+
/** @internal The same for several buttons with one layout: a fit that sized them all at once. */
|
|
122
|
+
static readLooksNow(buttons: readonly Button[]): void;
|
|
102
123
|
onMounted(): void;
|
|
103
124
|
private renderLook;
|
|
104
125
|
private renderHint;
|
|
@@ -18,6 +18,7 @@ export interface ButtonProps extends ControlProps {
|
|
|
18
18
|
tone?: Bind<ButtonTone>;
|
|
19
19
|
/** The default is `'md'`. */
|
|
20
20
|
size?: Bind<ButtonSize>;
|
|
21
|
+
/** An image address or a component. Given as a function, the "more" menu of a toolbar calls it again for its own copy. */
|
|
21
22
|
icon?: Bind<IconSource | null | undefined>;
|
|
22
23
|
/** Places the icon before or after the text. The default is `'start'`, and `'end'` puts it after the text. */
|
|
23
24
|
iconPosition?: Bind<'start' | 'end'>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { Button } from './Button';
|
|
3
|
+
/** A button as an item of the "more" menu: its name, icon (a copy of its own, see `IconSource`), state and menu. */
|
|
4
|
+
export declare function menuItemOf(button: Button): MenuItem;
|
|
@@ -65,7 +65,8 @@ export declare class ButtonGroup<T = unknown> extends Control<HTMLDivElement, Bu
|
|
|
65
65
|
/** Re-reads the items after they have been changed in place. */
|
|
66
66
|
refresh(): void;
|
|
67
67
|
onMounted(): void;
|
|
68
|
-
|
|
68
|
+
/** The button an event came from. */
|
|
69
|
+
private buttonFrom;
|
|
69
70
|
private renderItems;
|
|
70
71
|
private lookOf;
|
|
71
72
|
private drawItems;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { ValueChangedEventArgs } from '../../parts/field/value-changed-event-args';
|
|
4
4
|
import type { CalendarProps } from './calendar-props';
|
|
@@ -44,32 +44,40 @@ export declare class Calendar extends Control<HTMLDivElement, CalendarProps> {
|
|
|
44
44
|
/** Occurs when the pointer moves over a day in the month view, or leaves the days (`null`). */
|
|
45
45
|
get onDayPointed(): MotifEvent<Date | null>;
|
|
46
46
|
get onValueChanged(): MotifEvent<ValueChangedEventArgs<Date | null>>;
|
|
47
|
+
/** Occurs when the Tab stop moves to another date, by the user or by `goTo`, so the month or year on screen may be another. */
|
|
48
|
+
get onFocusedDateChanged(): MotifEvent<Date>;
|
|
47
49
|
/** Shows the month of `date` and places the Tab stop on it. */
|
|
48
50
|
goTo(date: Date): void;
|
|
49
51
|
/** Sets focus on the cell with the Tab stop. */
|
|
50
52
|
focus(): boolean;
|
|
51
53
|
/** Indicates whether `date` can be selected: within min and max, and not one of the disabled dates. */
|
|
52
54
|
canChoose(date: Date): boolean;
|
|
53
|
-
|
|
55
|
+
get focusPart(): ComponentBase;
|
|
54
56
|
private get parts();
|
|
55
57
|
private createParts;
|
|
56
58
|
private get firstDay();
|
|
57
59
|
private get currentLocale();
|
|
58
|
-
private get rtl();
|
|
59
60
|
private render;
|
|
60
61
|
/** The first and last day of what is on screen. */
|
|
61
62
|
private shownRange;
|
|
62
63
|
private renderMonth;
|
|
64
|
+
/** The grid's parts for a shape (`view|weeks`): the month's heads and 42 cells, or the 12 cells of a year or decade. */
|
|
65
|
+
private buildGrid;
|
|
66
|
+
/** A cell of another month, when those are not shown: kept, with nothing in it. */
|
|
67
|
+
private emptyCell;
|
|
63
68
|
/** The range's ends in order, as days. */
|
|
64
69
|
private rangeOf;
|
|
65
70
|
/** Where a day stands in the range drawn: its start, its end, one day of both, or between. */
|
|
66
71
|
private rangeMark;
|
|
67
72
|
private pointedOver;
|
|
73
|
+
/** The drawn cell of a date an event came from. */
|
|
74
|
+
private cellFrom;
|
|
68
75
|
private point;
|
|
69
76
|
/** The year view (twelve months) and the decade view (twelve years, one on each side). */
|
|
70
77
|
private renderBlock;
|
|
71
78
|
/** A month or a year can be chosen when one of its days can. */
|
|
72
79
|
private canChooseIn;
|
|
80
|
+
/** Marks the cell of a date and keeps it, with the Tab stop when it is the focused one. */
|
|
73
81
|
private markCell;
|
|
74
82
|
private renderToday;
|
|
75
83
|
private page;
|
|
@@ -28,4 +28,6 @@ export interface CalendarProps extends ControlProps {
|
|
|
28
28
|
onValueChanged?: (e: ValueChangedEventArgs<Date | null>) => void;
|
|
29
29
|
/** Occurs when the pointer moves over a day, or leaves the days (`null`). */
|
|
30
30
|
onDayPointed?: (day: Date | null) => void;
|
|
31
|
+
/** Occurs when the Tab stop moves to another date; its month or year is the one on screen. */
|
|
32
|
+
onFocusedDateChanged?: (date: Date) => void;
|
|
31
33
|
}
|