@motifx-community/ui 0.1.0-beta.12 → 0.1.0-beta.14
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 +414 -0
- package/README.md +2 -0
- package/dist/components/chart/Chart.d.ts +6 -4
- package/dist/components/chart/ChartPlot.d.ts +2 -1
- package/dist/components/chart/plot-view.d.ts +10 -2
- package/dist/components/chat/Chat.d.ts +276 -0
- package/dist/components/chat/ChatComposer.d.ts +172 -0
- package/dist/components/chat/ChatReply.d.ts +53 -0
- package/dist/components/chat/ChatWriter.d.ts +119 -0
- package/dist/components/chat/chat-ask-form.d.ts +64 -0
- package/dist/components/chat/chat-asked-entry.d.ts +21 -0
- package/dist/components/chat/chat-attachment-entry.d.ts +18 -0
- package/dist/components/chat/chat-choices-view.d.ts +40 -0
- package/dist/components/chat/chat-command.d.ts +7 -0
- package/dist/components/chat/chat-compaction-entry.d.ts +19 -0
- package/dist/components/chat/chat-composer-props.d.ts +63 -0
- package/dist/components/chat/chat-context-changed-event-args.d.ts +8 -0
- package/dist/components/chat/chat-context-item.d.ts +14 -0
- package/dist/components/chat/chat-copy-button.d.ts +11 -0
- package/dist/components/chat/chat-entry.d.ts +20 -0
- package/dist/components/chat/chat-flow-view.d.ts +32 -0
- package/dist/components/chat/chat-form-entry.d.ts +24 -0
- package/dist/components/chat/chat-form-view.d.ts +48 -0
- package/dist/components/chat/chat-history-event-args.d.ts +31 -0
- package/dist/components/chat/chat-load-older-event-args.d.ts +17 -0
- package/dist/components/chat/chat-look.d.ts +33 -0
- package/dist/components/chat/chat-mention.d.ts +21 -0
- package/dist/components/chat/chat-message-status.d.ts +2 -0
- package/dist/components/chat/chat-message.d.ts +23 -0
- package/dist/components/chat/chat-notice-entry.d.ts +20 -0
- package/dist/components/chat/chat-option.d.ts +7 -0
- package/dist/components/chat/chat-part.d.ts +110 -0
- package/dist/components/chat/chat-plan-entry.d.ts +25 -0
- package/dist/components/chat/chat-props.d.ts +70 -0
- package/dist/components/chat/chat-question-view.d.ts +41 -0
- package/dist/components/chat/chat-request.d.ts +173 -0
- package/dist/components/chat/chat-role.d.ts +2 -0
- package/dist/components/chat/chat-search-bar.d.ts +27 -0
- package/dist/components/chat/chat-search.d.ts +33 -0
- package/dist/components/chat/chat-send-event-args.d.ts +12 -0
- package/dist/components/chat/chat-sources-entry.d.ts +22 -0
- package/dist/components/chat/chat-text-entry.d.ts +20 -0
- package/dist/components/chat/chat-text-part.d.ts +5 -0
- package/dist/components/chat/chat-thinking-entry.d.ts +32 -0
- package/dist/components/chat/chat-todo-entry.d.ts +15 -0
- package/dist/components/chat/chat-tool-entry.d.ts +66 -0
- package/dist/components/chat/chat-tool-init.d.ts +18 -0
- package/dist/components/chat/chat-turn-view.d.ts +53 -0
- package/dist/components/chat/chat-turn.d.ts +8 -0
- package/dist/components/chat/chat-value-changed-event-args.d.ts +6 -0
- package/dist/components/chat/index.d.ts +22 -0
- package/dist/components/contextmenu/ContextMenu.d.ts +4 -0
- package/dist/components/contextmenu/context-menu-props.d.ts +6 -0
- package/dist/components/datagrid/DataGrid.d.ts +0 -12
- package/dist/components/datagrid/column-type.d.ts +2 -1
- package/dist/components/datagrid/grid-column.d.ts +4 -1
- package/dist/components/datagrid/grid-date-interval.d.ts +2 -1
- package/dist/components/datagrid/grid-filter-value.d.ts +2 -7
- package/dist/components/datagrid/grid-header-filter-interval.d.ts +2 -2
- package/dist/components/datagrid/grid-settings.d.ts +6 -3
- package/dist/components/datagrid/grid-sheet-cell.d.ts +3 -6
- package/dist/components/datagrid/grid-sheet-column.d.ts +2 -9
- package/dist/components/datagrid/grid-sheet-merge.d.ts +2 -7
- package/dist/components/datagrid/grid-sheet-row.d.ts +2 -5
- package/dist/components/datagrid/grid-sheet.d.ts +3 -2
- package/dist/components/datagrid/grid-summary-item.d.ts +5 -2
- package/dist/components/datagrid/grid-summary-texts.d.ts +2 -0
- package/dist/components/datagrid/grid-summary-type.d.ts +5 -2
- package/dist/components/datagrid/grid-summary.d.ts +3 -2
- package/dist/components/datagrid/list-option.d.ts +2 -4
- package/dist/components/datagrid/model/ColumnModel.d.ts +21 -3
- package/dist/components/datagrid/model/FilterValues.d.ts +15 -7
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +2 -2
- package/dist/components/datagrid/model/LookupTexts.d.ts +1 -1
- package/dist/components/datagrid/view/CellEditor.d.ts +1 -1
- package/dist/components/datagrid/view/ColumnStyles.d.ts +4 -2
- package/dist/components/datagrid/view/GridBody.d.ts +1 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +3 -1
- package/dist/components/draggable/Draggable.d.ts +14 -3
- package/dist/components/dropdown/drop-down-props.d.ts +5 -2
- package/dist/components/form/MxForm.d.ts +1 -1
- package/dist/components/listbox/item-template.d.ts +4 -0
- package/dist/components/markdown/Markdown.d.ts +87 -0
- package/dist/components/markdown/code-block.d.ts +57 -0
- package/dist/components/markdown/code-colorer.d.ts +11 -0
- package/dist/components/markdown/code-highlighter.d.ts +9 -0
- package/dist/components/markdown/code-run.d.ts +6 -0
- package/dist/components/markdown/diagram-renderer.d.ts +21 -0
- package/dist/components/markdown/entities.d.ts +2 -0
- package/dist/components/markdown/index.d.ts +8 -0
- package/dist/components/markdown/inline-writer.d.ts +85 -0
- package/dist/components/markdown/markdown-context.d.ts +53 -0
- package/dist/components/markdown/markdown-link-click-event-args.d.ts +9 -0
- package/dist/components/markdown/markdown-props.d.ts +40 -0
- package/dist/components/markdown/markdown-writer.d.ts +95 -0
- package/dist/components/markdown/math-block.d.ts +22 -0
- package/dist/components/markdown/math-renderer.d.ts +18 -0
- package/dist/components/markdown/safe-href.d.ts +5 -0
- package/dist/components/markdown/text-run.d.ts +7 -0
- package/dist/components/menubar/MenuBar.d.ts +4 -0
- package/dist/components/menubar/menu-bar-props.d.ts +6 -0
- package/dist/components/pivotgrid/PivotGrid.d.ts +415 -0
- package/dist/components/pivotgrid/index.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotArrangement.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotAxisWindow.d.ts +169 -0
- package/dist/components/pivotgrid/model/PivotCellRanges.d.ts +63 -0
- package/dist/components/pivotgrid/model/PivotCellWindow.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotChart.d.ts +49 -0
- package/dist/components/pivotgrid/model/PivotDisplay.d.ts +61 -0
- package/dist/components/pivotgrid/model/PivotDrill.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotExpansion.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotFields.d.ts +55 -0
- package/dist/components/pivotgrid/model/PivotFilterValues.d.ts +36 -0
- package/dist/components/pivotgrid/model/PivotLayout.d.ts +75 -0
- package/dist/components/pivotgrid/model/PivotLoader.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotSheet.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotStateStore.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotTable.d.ts +78 -0
- package/dist/components/pivotgrid/model/PivotTexts.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotWindows.d.ts +120 -0
- package/dist/components/pivotgrid/model/pivot-copy.d.ts +26 -0
- package/dist/components/pivotgrid/model/pivot-csv.d.ts +9 -0
- package/dist/components/pivotgrid/model/pivot-header-cell.d.ts +19 -0
- package/dist/components/pivotgrid/model/pivot-line-key.d.ts +17 -0
- package/dist/components/pivotgrid/model/pivot-line.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-area.d.ts +2 -0
- package/dist/components/pivotgrid/pivot-grid-cell-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-context.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-cell-dbl-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-range.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-cell-selection-changed-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-chart-data.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-chart-options.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-column-resized-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-column-resizing.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-column.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-content-ready-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-context-menu-preparing-event-args.d.ts +22 -0
- package/dist/components/pivotgrid/pivot-grid-copying-event-args.d.ts +10 -0
- package/dist/components/pivotgrid/pivot-grid-custom-summary-info.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-data-error-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-drill-down.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-expanded-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-expanding-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-export-cell.d.ts +21 -0
- package/dist/components/pivotgrid/pivot-grid-export-options.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-export.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-exported-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-exporting-event-args.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-field-chooser.d.ts +20 -0
- package/dist/components/pivotgrid/pivot-grid-field-panel.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-field.d.ts +110 -0
- package/dist/components/pivotgrid/pivot-grid-fields-changed-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-filter-value.d.ts +4 -0
- package/dist/components/pivotgrid/pivot-grid-group-interval.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items-request.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-load-panel.d.ts +11 -0
- package/dist/components/pivotgrid/pivot-grid-props.d.ts +121 -0
- package/dist/components/pivotgrid/pivot-grid-sheet-options.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-sheet.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-state.d.ts +54 -0
- package/dist/components/pivotgrid/pivot-grid-summary-cell.d.ts +29 -0
- package/dist/components/pivotgrid/pivot-grid-summary-display-mode.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-summary-type.d.ts +5 -0
- package/dist/components/pivotgrid/view/PivotFieldChooser.d.ts +71 -0
- package/dist/components/pivotgrid/view/PivotFieldPanel.d.ts +92 -0
- package/dist/components/pivotgrid/view/PivotView.d.ts +263 -0
- package/dist/components/resizable/Resizable.d.ts +2 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +4 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +4 -1
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +8 -4
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +6 -0
- package/dist/components/scheduler/view/TimeView.d.ts +2 -0
- package/dist/components/scrollview/ScrollView.d.ts +48 -1
- package/dist/components/scrollview/index.d.ts +1 -0
- package/dist/components/scrollview/scroll-end-changed-event-args.d.ts +7 -0
- package/dist/components/scrollview/scroll-view-props.d.ts +9 -0
- package/dist/components/splitter/Splitter.d.ts +1 -3
- package/dist/components/tabdocs/DocumentTab.d.ts +0 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +0 -1
- package/dist/components/tabdocs/TabDocumentManager.d.ts +3 -2
- package/dist/components/textarea/TextArea.d.ts +11 -0
- package/dist/components/textarea/text-area-props.d.ts +12 -1
- package/dist/components/textbox/TextBox.d.ts +3 -0
- package/dist/components/textbox/text-box-props.d.ts +3 -0
- package/dist/components/toolbar/Toolbar.d.ts +70 -1
- package/dist/components/toolbar/index.d.ts +5 -0
- package/dist/components/toolbar/toolbar-added-item.d.ts +9 -0
- package/dist/components/toolbar/toolbar-custom-menu-opening-event-args.d.ts +23 -0
- package/dist/components/toolbar/toolbar-customization.d.ts +18 -0
- package/dist/components/toolbar/toolbar-customized-event-args.d.ts +7 -0
- package/dist/components/toolbar/toolbar-item-display.d.ts +2 -0
- package/dist/components/toolbar/toolbar-item.d.ts +11 -1
- package/dist/components/toolbar/toolbar-props.d.ts +26 -0
- package/dist/components/toolbar/toolbar-targets.d.ts +22 -0
- package/dist/components/treeview/TreeView.d.ts +8 -4
- package/dist/components/treeview/tree-view-item-template.d.ts +4 -0
- package/dist/core/clipboard.d.ts +11 -0
- package/dist/core/enter-key-hint.d.ts +2 -0
- package/dist/core/look-watch.d.ts +2 -2
- package/dist/core/measure/look.d.ts +1 -1
- package/dist/core/measure/on-layout.d.ts +1 -1
- package/dist/core/measure/scroll.d.ts +3 -1
- package/dist/core/save-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +3 -3
- package/dist/core/ui-strings.d.ts +190 -0
- package/dist/excel/excel-pivot-customize-cell-args.d.ts +8 -0
- package/dist/excel/excel-pivot-export-options.d.ts +44 -0
- package/dist/excel/excel-pivot-export-result.d.ts +6 -0
- package/dist/excel/export-pivot-grid.d.ts +35 -0
- package/dist/excel/index.d.ts +4 -0
- package/dist/excel/index.js +190 -56
- package/dist/excel/index.js.map +1 -1
- package/dist/excel/write-sheet.d.ts +16 -0
- package/dist/{formula-guard-NYlpoA-t.js → formula-guard-Bx48S0u3.js} +2 -2
- package/dist/formula-guard-Bx48S0u3.js.map +1 -0
- package/dist/generated/tokens.d.ts +7527 -4097
- package/dist/index.d.ts +6 -0
- package/dist/index.js +66924 -50915
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +179 -1
- package/dist/locales/tr.json +179 -1
- package/dist/parts/customizer/Customizer.d.ts +12 -6
- package/dist/parts/customizer/customizer-display.d.ts +2 -0
- package/dist/parts/customizer/customizer-node.d.ts +5 -0
- package/dist/parts/customizer/customizer-source.d.ts +15 -3
- package/dist/parts/item-layout/layout-added-item.d.ts +2 -2
- package/dist/parts/list/OptionList.d.ts +4 -3
- package/dist/parts/list/option-parts.d.ts +1 -1
- package/dist/parts/menu/MenuList.d.ts +5 -0
- package/dist/parts/popup/Popup.d.ts +2 -0
- package/dist/{components/datagrid/model → parts/table}/CellFormatter.d.ts +8 -8
- package/dist/{components/datagrid/view → parts/table}/HeaderFilter.d.ts +16 -11
- package/dist/parts/table/OffsetList.d.ts +21 -0
- package/dist/parts/table/ScaledOffsets.d.ts +32 -0
- package/dist/{components/datagrid/model → parts/table}/ValueIntervals.d.ts +12 -5
- package/dist/{components/datagrid/model → parts/table}/ValueListAdapter.d.ts +4 -4
- package/dist/parts/table/date-interval.d.ts +2 -0
- package/dist/parts/table/date-type.d.ts +3 -0
- package/dist/{components/datagrid/model → parts/table}/filter-tree-node.d.ts +3 -1
- package/dist/parts/table/filter-value.d.ts +9 -0
- package/dist/parts/table/format-column.d.ts +14 -0
- package/dist/parts/table/header-filter-host.d.ts +27 -0
- package/dist/parts/table/option-of.d.ts +6 -0
- package/dist/parts/table/slice-sheet.d.ts +8 -0
- package/dist/parts/table/table-sheet-cell.d.ts +13 -0
- package/dist/parts/table/table-sheet-column.d.ts +11 -0
- package/dist/parts/table/table-sheet-merge.d.ts +9 -0
- package/dist/parts/table/table-sheet-row.d.ts +8 -0
- package/dist/parts/table/table-sheet.d.ts +24 -0
- package/dist/parts/table/value-interval.d.ts +6 -0
- package/dist/{components/datagrid/model → parts/table}/value-list.d.ts +7 -2
- package/dist/parts/table/value-loader.d.ts +8 -0
- package/dist/parts/table/value-option.d.ts +5 -0
- package/dist/parts/table/value-type.d.ts +5 -0
- package/dist/parts/table/values-result.d.ts +6 -0
- package/dist/parts/window/follow-pointer.d.ts +9 -3
- package/dist/parts/window-list/WindowList.d.ts +105 -0
- package/dist/parts/window-list/window-list-source.d.ts +10 -0
- package/dist/pdf/export-pivot-grid.d.ts +21 -0
- package/dist/pdf/index.d.ts +3 -0
- package/dist/pdf/index.js +143 -16
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/pdf-customize-cell-args.d.ts +1 -1
- package/dist/pdf/pdf-pivot-cell-args.d.ts +25 -0
- package/dist/pdf/pdf-pivot-export-options.d.ts +61 -0
- package/dist/pdf/pdf-table.d.ts +38 -6
- package/dist/slice-sheet-C116M42H.js +43 -0
- package/dist/slice-sheet-C116M42H.js.map +1 -0
- package/dist/styles.css +4527 -201
- package/dist/tokens/index.d.ts +7527 -4097
- package/dist/tokens/index.js +7527 -4097
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-BvKE8jSF.js → tr-BGbF9uCs.js} +359 -3
- package/dist/tr-BGbF9uCs.js.map +1 -0
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- 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 +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- 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/chat.md +1512 -0
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +2 -2
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +2 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +3 -3
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +2 -2
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +7 -7
- package/docs/datagrid-layout.md +2 -2
- package/docs/datagrid-lookups.md +4 -1
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +2 -2
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +4 -3
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- 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 +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +1 -1
- package/docs/listbox.md +4 -3
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.md +343 -0
- package/docs/menus-api.md +3 -1
- package/docs/menus-context.md +2 -1
- package/docs/menus-customization.md +5 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/pivotgrid-api.md +180 -0
- package/docs/pivotgrid-chart.md +132 -0
- package/docs/pivotgrid-drilldown.md +142 -0
- package/docs/pivotgrid-export.md +207 -0
- package/docs/pivotgrid-fields.md +245 -0
- package/docs/pivotgrid-keyboard.md +223 -0
- package/docs/pivotgrid-layout.md +663 -0
- package/docs/pivotgrid-panel.md +223 -0
- package/docs/pivotgrid-remote.md +397 -0
- package/docs/pivotgrid-sorting.md +379 -0
- package/docs/pivotgrid-state.md +245 -0
- package/docs/pivotgrid-summaries.md +330 -0
- package/docs/pivotgrid.md +295 -0
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +2 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +3 -2
- package/docs/ribbonmenu-display.md +3 -3
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +3 -1
- 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 +1 -1
- package/docs/shortcuteditor.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.md +39 -0
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +3 -6
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- 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 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tagbox.md +4 -3
- package/docs/textarea.md +4 -1
- package/docs/textbox.md +2 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +687 -1
- package/docs/toolbar-api.md +80 -0
- package/docs/toolbar-customization.md +261 -0
- package/docs/toolbar.md +4 -52
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +3 -3
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +19005 -12353
- package/llms.txt +29 -2
- package/package.json +5 -5
- package/dist/components/datagrid/model/date-type.d.ts +0 -3
- package/dist/components/datagrid/model/option-of.d.ts +0 -6
- package/dist/components/datagrid/model/value-loader.d.ts +0 -8
- package/dist/formula-guard-NYlpoA-t.js.map +0 -1
- package/dist/tr-BvKE8jSF.js.map +0 -1
- /package/dist/{components/datagrid/model → core}/text-ranges.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ExtraHeights.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ScrollGeometry.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/cell-list.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/date-like.d.ts +0 -0
- /package/dist/{components/datagrid/view → parts/table}/editor-value.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/formula-guard.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/parse-date-text.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/same-value.d.ts +0 -0
|
@@ -18,9 +18,7 @@ interface Handle {
|
|
|
18
18
|
afterGlyph: Component<HTMLSpanElement>;
|
|
19
19
|
}
|
|
20
20
|
interface Drag {
|
|
21
|
-
pointer: number;
|
|
22
21
|
handle: number;
|
|
23
|
-
from: number;
|
|
24
22
|
a: number;
|
|
25
23
|
b: number;
|
|
26
24
|
rtl: boolean;
|
|
@@ -119,7 +117,7 @@ export declare class Splitter extends Control<HTMLDivElement, SplitterProps> {
|
|
|
119
117
|
foldFromHandle(handle: Handle, side: 'before' | 'after', event: Event): void;
|
|
120
118
|
keyDown(e: KeyboardEvent, handle: Handle): void;
|
|
121
119
|
pointerDown(e: PointerEvent, handle: Handle): void;
|
|
122
|
-
pointerMove(e: PointerEvent): void;
|
|
120
|
+
pointerMove(moved: number, e: PointerEvent): void;
|
|
123
121
|
pointerUp(e: PointerEvent): void;
|
|
124
122
|
}
|
|
125
123
|
export {};
|
|
@@ -1134,8 +1134,9 @@ export declare class TabDocumentManager extends FocusContainer<HTMLDivElement, T
|
|
|
1134
1134
|
private renderTexts;
|
|
1135
1135
|
private renderMinSizes;
|
|
1136
1136
|
/**
|
|
1137
|
-
* The sizes the props give a group and its tabs. Written on each group, not on the
|
|
1138
|
-
* inline style is the app's to set (`style.cssText`)
|
|
1137
|
+
* The sizes the props give a group and its tabs, and how its strip lays them out. Written on each group, not on the
|
|
1138
|
+
* root, whose inline style is the app's to set (`style.cssText`); the group's own rules read them, so a manager in
|
|
1139
|
+
* one of its documents keeps its own.
|
|
1139
1140
|
*/
|
|
1140
1141
|
private sizeGroup;
|
|
1141
1142
|
/** The strip's look: where pinned ones go and wrapping. Each group writes how its tabs are sized and its scroll buttons. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { EnterKeyHint } from '../../core/enter-key-hint';
|
|
2
3
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
3
4
|
import { Field } from '../../parts/field/Field';
|
|
4
5
|
import type { ValidationRule } from '../../parts/validation/validation-rule';
|
|
@@ -44,17 +45,27 @@ export declare class TextArea extends Field<string, TextAreaProps> {
|
|
|
44
45
|
set selectOnFocus(value: Bind<boolean>);
|
|
45
46
|
get spellcheck(): boolean | null;
|
|
46
47
|
set spellcheck(value: Bind<boolean>);
|
|
48
|
+
get submitOnEnter(): boolean;
|
|
49
|
+
set submitOnEnter(value: Bind<boolean>);
|
|
47
50
|
get wrap(): 'soft' | 'hard' | 'off';
|
|
48
51
|
set wrap(value: Bind<'soft' | 'hard' | 'off'>);
|
|
49
52
|
get name(): string;
|
|
50
53
|
set name(value: Bind<string>);
|
|
51
54
|
get autocomplete(): string;
|
|
52
55
|
set autocomplete(value: Bind<string>);
|
|
56
|
+
get enterKeyHint(): EnterKeyHint | null;
|
|
57
|
+
set enterKeyHint(value: Bind<EnterKeyHint | null>);
|
|
53
58
|
/** The `<textarea>` as a component: write its attributes with `put` and call its methods through `attr`. */
|
|
54
59
|
get textAreaPart(): ComponentBase<HTMLTextAreaElement>;
|
|
55
60
|
get onEnter(): MotifEvent<EnterKeyEventArgs<string>>;
|
|
56
61
|
/** Selects all text. The selection is made a moment later, not before the call returns. */
|
|
57
62
|
select(): void;
|
|
63
|
+
/** Where the selection starts in the text; the caret when nothing is selected. */
|
|
64
|
+
get selectionStart(): number;
|
|
65
|
+
/** Where the selection ends in the text; the caret when nothing is selected. */
|
|
66
|
+
get selectionEnd(): number;
|
|
67
|
+
/** Selects from `start` to `end`, or puts the caret at `start` alone. */
|
|
68
|
+
setSelectionRange(start: number, end?: number): void;
|
|
58
69
|
/** Clears the field, as the clear button does. */
|
|
59
70
|
clear(): void;
|
|
60
71
|
protected get controlTag(): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Bind } from '@motifx/core';
|
|
2
|
+
import type { EnterKeyHint } from '../../core/enter-key-hint';
|
|
2
3
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
3
4
|
import type { FieldProps } from '../../parts/field/field-props';
|
|
4
5
|
import type { TextAreaResize } from './text-area-resize';
|
|
@@ -37,6 +38,16 @@ export interface TextAreaProps extends FieldProps<string> {
|
|
|
37
38
|
/** The name submitted with the form. */
|
|
38
39
|
name?: Bind<string>;
|
|
39
40
|
autocomplete?: Bind<string>;
|
|
40
|
-
/**
|
|
41
|
+
/** What the Enter key of an on-screen keyboard says (`send`, `enter` …); it does not change what Enter does. */
|
|
42
|
+
enterKeyHint?: Bind<EnterKeyHint>;
|
|
43
|
+
/**
|
|
44
|
+
* `true` makes Enter raise `onEnter` and Shift+Enter start a new line, as a chat's message box does. The default is
|
|
45
|
+
* `false`: Ctrl+Enter (Cmd+Enter) raises it and Enter starts a new line.
|
|
46
|
+
*/
|
|
47
|
+
submitOnEnter?: Bind<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Occurs when the user presses Ctrl+Enter (Cmd+Enter on Apple platforms), or Enter with `submitOnEnter`. Never while
|
|
50
|
+
* an input method is composing.
|
|
51
|
+
*/
|
|
41
52
|
onEnter?: (e: EnterKeyEventArgs<string>) => void;
|
|
42
53
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Bind, type Event as MotifEvent, type IBaseProp, type ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { EnterKeyHint } from '../../core/enter-key-hint';
|
|
2
3
|
import type { InputMode } from '../../core/input-mode';
|
|
3
4
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
4
5
|
import { Field } from '../../parts/field/Field';
|
|
@@ -42,6 +43,8 @@ export declare class TextBox extends Field<string, TextBoxProps> {
|
|
|
42
43
|
set align(value: Bind<'start' | 'center' | 'end'>);
|
|
43
44
|
get inputMode(): InputMode | null;
|
|
44
45
|
set inputMode(value: Bind<InputMode | null>);
|
|
46
|
+
get enterKeyHint(): EnterKeyHint | null;
|
|
47
|
+
set enterKeyHint(value: Bind<EnterKeyHint | null>);
|
|
45
48
|
get autocomplete(): string;
|
|
46
49
|
set autocomplete(value: Bind<string>);
|
|
47
50
|
get spellcheck(): boolean | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Bind } from '@motifx/core';
|
|
2
|
+
import type { EnterKeyHint } from '../../core/enter-key-hint';
|
|
2
3
|
import type { InputMode } from '../../core/input-mode';
|
|
3
4
|
import type { EnterKeyEventArgs } from '../../parts/field/enter-key-event-args';
|
|
4
5
|
import type { FieldProps } from '../../parts/field/field-props';
|
|
@@ -27,6 +28,8 @@ export interface TextBoxProps extends FieldProps<string> {
|
|
|
27
28
|
/** The text alignment. The default is `'start'`. */
|
|
28
29
|
align?: Bind<'start' | 'center' | 'end'>;
|
|
29
30
|
inputMode?: Bind<InputMode>;
|
|
31
|
+
/** What the Enter key of an on-screen keyboard says (`send`, `search`, `next` …); it does not change what Enter does. */
|
|
32
|
+
enterKeyHint?: Bind<EnterKeyHint>;
|
|
30
33
|
autocomplete?: Bind<string>;
|
|
31
34
|
spellcheck?: Bind<boolean>;
|
|
32
35
|
/** The name submitted with the form. */
|
|
@@ -2,6 +2,9 @@ import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/cor
|
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { ControlSize } from '../../core/control-size';
|
|
4
4
|
import type { ButtonVariant } from '../button/button-variant';
|
|
5
|
+
import type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
|
|
6
|
+
import type { ToolbarCustomization } from './toolbar-customization';
|
|
7
|
+
import type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
|
|
5
8
|
import type { ToolbarItem } from './toolbar-item';
|
|
6
9
|
import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
|
|
7
10
|
import type { ToolbarOrientation } from './toolbar-orientation';
|
|
@@ -40,12 +43,35 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
40
43
|
set buttonVariant(value: Bind<ButtonVariant>);
|
|
41
44
|
get overflow(): ToolbarOverflow;
|
|
42
45
|
set overflow(value: Bind<ToolbarOverflow>);
|
|
46
|
+
get customizable(): boolean;
|
|
47
|
+
set customizable(value: Bind<boolean>);
|
|
48
|
+
/** What the user changed so far: a copy, to save. Give it back to restore the toolbar as the user left it. */
|
|
49
|
+
get customization(): ToolbarCustomization;
|
|
50
|
+
set customization(value: Bind<ToolbarCustomization | null>);
|
|
51
|
+
get commands(): readonly ToolbarItem[];
|
|
52
|
+
set commands(value: Bind<readonly ToolbarItem[]>);
|
|
53
|
+
get customizer(): boolean;
|
|
54
|
+
set customizer(value: Bind<boolean>);
|
|
55
|
+
get customizerKeyboard(): boolean;
|
|
56
|
+
set customizerKeyboard(value: Bind<boolean>);
|
|
57
|
+
get acceptCommands(): boolean;
|
|
58
|
+
set acceptCommands(value: Bind<boolean>);
|
|
43
59
|
/** The controls currently in the overflow menu. Reactive. */
|
|
44
60
|
get overflowed(): readonly Control[];
|
|
45
61
|
/** Occurs when an item in `items` is clicked, after its own `click`. */
|
|
46
62
|
get onItemClick(): MotifEvent<ToolbarItemClickEventArgs>;
|
|
63
|
+
/** Occurs when the user changed the toolbar, with everything changed so far. */
|
|
64
|
+
get onCustomized(): MotifEvent<ToolbarCustomizedEventArgs>;
|
|
65
|
+
/** Occurs before the menu of the right button opens: add commands of your own or leave some out. */
|
|
66
|
+
get onCustomMenuOpening(): MotifEvent<ToolbarCustomMenuOpeningEventArgs>;
|
|
47
67
|
/** The control created for an item in `items`. */
|
|
48
68
|
controlOf(item: ToolbarItem): Control | null;
|
|
69
|
+
/**
|
|
70
|
+
* Opens the customizer: the items of `items` with the commands and separators the user added, to show and hide, move,
|
|
71
|
+
* rename, add commands of `commands` and separators, and choose what a button shows. Returns `false` when it is
|
|
72
|
+
* already open.
|
|
73
|
+
*/
|
|
74
|
+
openCustomizer(): boolean;
|
|
49
75
|
/** Recalculates which items fit, for example after their content changes size. */
|
|
50
76
|
updateOverflow(): void;
|
|
51
77
|
/**
|
|
@@ -57,10 +83,20 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
57
83
|
protected applyProperty(name: string, value: unknown): void;
|
|
58
84
|
private get parts();
|
|
59
85
|
private createParts;
|
|
60
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Places the items again when the list, an item's type, overflow or display changes, the user changed the toolbar,
|
|
88
|
+
* or on `reState()`.
|
|
89
|
+
*/
|
|
61
90
|
private followItems;
|
|
91
|
+
/** What a button shows: the user's choice, else its own; a part it does not have is never the only one shown. */
|
|
92
|
+
private displayOf;
|
|
93
|
+
/** An item's name, without its access key mark. */
|
|
94
|
+
private textOf;
|
|
62
95
|
private place;
|
|
96
|
+
/** Makes the control of an item: `drawn` gives its fields (the user's name too), `item` is what its clicks report. */
|
|
63
97
|
private make;
|
|
98
|
+
/** The text, icon and tooltip of a button as it shows `display`: without its text, the text is its tooltip and name. */
|
|
99
|
+
private shownFields;
|
|
64
100
|
/** Gives a made control the item's fields again, as they are now. */
|
|
65
101
|
private fill;
|
|
66
102
|
private itemPressed;
|
|
@@ -80,6 +116,11 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
80
116
|
private stops;
|
|
81
117
|
/** Neither the part nor a list or condition holding it in the bar is hidden or waiting (`x-wait`, `x-display`, `motif.hide`). */
|
|
82
118
|
private shownInBar;
|
|
119
|
+
/**
|
|
120
|
+
* The toolbar's own helpers among its children: the "more" button, the room keeper, the menu of the right button and
|
|
121
|
+
* the customizer window opened over it.
|
|
122
|
+
*/
|
|
123
|
+
private notOfBar;
|
|
83
124
|
/** A control added to the bar or taken away: the arrows and the room follow. The "more" button is no part of the bar. */
|
|
84
125
|
private childChanged;
|
|
85
126
|
protected childEnabledChanged(): void;
|
|
@@ -124,6 +165,34 @@ export declare class Toolbar extends Control<HTMLDivElement, ToolbarProps> {
|
|
|
124
165
|
private moreButton;
|
|
125
166
|
/** The "more" menu: each moved button as a menu item, the separators as group lines. */
|
|
126
167
|
private moreItems;
|
|
168
|
+
/** The commands the user can add: `commands` when given, else those of the app (`commands` registry) that have a text. */
|
|
169
|
+
private catalog;
|
|
170
|
+
private takeCustomization;
|
|
171
|
+
private remember;
|
|
172
|
+
/** Whether the user changed anything: the layout's part, or what a button shows. */
|
|
173
|
+
private touched;
|
|
174
|
+
private contextMenu;
|
|
175
|
+
private customMenuOpening;
|
|
176
|
+
private customCommands;
|
|
177
|
+
/** The name of an item as menus write it: its text, else its tooltip. */
|
|
178
|
+
private nameOfItem;
|
|
179
|
+
/** A button with both a text and an icon: the user can choose to show only one of them. */
|
|
180
|
+
private canShowEither;
|
|
181
|
+
/** The customization with `display` for the item; `null` when that is what it shows already. */
|
|
182
|
+
private displayed;
|
|
183
|
+
/** Applies a change made from the menu, and puts focus back on its item, else on the bar. */
|
|
184
|
+
private changeByUser;
|
|
185
|
+
/** The customizer's view of the toolbar: a flat list, separators instead of groups, and what each button shows. */
|
|
186
|
+
private customizerSource;
|
|
187
|
+
/** The toolbar's name in the menus: its label. */
|
|
188
|
+
private nameOf;
|
|
189
|
+
/** Takes commands from the menus while the user can change it and `acceptCommands` is on. */
|
|
190
|
+
private renderTarget;
|
|
191
|
+
/** The item that names the command `key`, hidden or shown. */
|
|
192
|
+
private nodeOfCommand;
|
|
193
|
+
private commandState;
|
|
194
|
+
/** Shows the command (its item shown again, else added) or takes it away (an item added removed, else hidden). */
|
|
195
|
+
private sendCommand;
|
|
127
196
|
private listen;
|
|
128
197
|
private onKeyDown;
|
|
129
198
|
}
|
|
@@ -5,5 +5,10 @@ export type { ToolbarItem } from './toolbar-item';
|
|
|
5
5
|
export type { ToolbarItemType } from './toolbar-item-type';
|
|
6
6
|
export type { ToolbarItemOverflow } from './toolbar-item-overflow';
|
|
7
7
|
export type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
|
|
8
|
+
export type { ToolbarItemDisplay } from './toolbar-item-display';
|
|
8
9
|
export type { ToolbarOrientation } from './toolbar-orientation';
|
|
9
10
|
export type { ToolbarOverflow } from './toolbar-overflow';
|
|
11
|
+
export type { ToolbarCustomization } from './toolbar-customization';
|
|
12
|
+
export type { ToolbarAddedItem } from './toolbar-added-item';
|
|
13
|
+
export type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
|
|
14
|
+
export type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** An item the user added to a toolbar: a command, or a separator. */
|
|
2
|
+
export interface ToolbarAddedItem {
|
|
3
|
+
/** Given by the toolbar: `user:1`, `user:2`… */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The key of the command. */
|
|
6
|
+
command?: string;
|
|
7
|
+
/** A separator. */
|
|
8
|
+
separator?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { Toolbar } from './Toolbar';
|
|
3
|
+
import type { ToolbarItem } from './toolbar-item';
|
|
4
|
+
export interface ToolbarCustomMenuOpeningEventArgs {
|
|
5
|
+
/**
|
|
6
|
+
* The item pressed with the right button or the menu key, as the app gave it (a command the user added: an item that
|
|
7
|
+
* names it); `null` on the bar outside the items, and on its JSX children.
|
|
8
|
+
*/
|
|
9
|
+
item: ToolbarItem | null;
|
|
10
|
+
/** Its name in the customization: its key, its position or the id of an item the user added; `null` with `item`. */
|
|
11
|
+
path: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* The commands of the menu about to open: the toolbar's own when `customizable` is on, else none. Change the list to
|
|
14
|
+
* add your own or to leave some out. The menu does not open when it is empty.
|
|
15
|
+
*/
|
|
16
|
+
items: MenuItem[];
|
|
17
|
+
/** Set to `true` to keep the menu closed. */
|
|
18
|
+
cancel: boolean;
|
|
19
|
+
/** Whether a key opened it. */
|
|
20
|
+
byKeyboard: boolean;
|
|
21
|
+
event: Event;
|
|
22
|
+
source: Toolbar;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ToolbarAddedItem } from './toolbar-added-item';
|
|
2
|
+
import type { ToolbarItemDisplay } from './toolbar-item-display';
|
|
3
|
+
/**
|
|
4
|
+
* What the user changed in a toolbar, to save and give back later. An item of the app is named by its `key` (else its
|
|
5
|
+
* position in `items`), an item the user added by its `id`.
|
|
6
|
+
*/
|
|
7
|
+
export interface ToolbarCustomization {
|
|
8
|
+
/** The items the user hid. */
|
|
9
|
+
hidden?: readonly string[];
|
|
10
|
+
/** The order the user gave, by key, under `''`. */
|
|
11
|
+
order?: Readonly<Record<string, readonly string[]>>;
|
|
12
|
+
/** The names the user gave to items. */
|
|
13
|
+
texts?: Readonly<Record<string, string>>;
|
|
14
|
+
/** The commands and separators the user added. */
|
|
15
|
+
added?: readonly ToolbarAddedItem[];
|
|
16
|
+
/** What the user chose a button shows. */
|
|
17
|
+
display?: Readonly<Record<string, ToolbarItemDisplay>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Toolbar } from './Toolbar';
|
|
2
|
+
import type { ToolbarCustomization } from './toolbar-customization';
|
|
3
|
+
export interface ToolbarCustomizedEventArgs {
|
|
4
|
+
/** Everything the user changed so far, to save. */
|
|
5
|
+
customization: ToolbarCustomization;
|
|
6
|
+
source: Toolbar;
|
|
7
|
+
}
|
|
@@ -3,13 +3,16 @@ import type { IconSource } from '../../core/icon-source';
|
|
|
3
3
|
import type { ButtonTone } from '../button/button-tone';
|
|
4
4
|
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
5
5
|
import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
|
|
6
|
+
import type { ToolbarItemDisplay } from './toolbar-item-display';
|
|
6
7
|
import type { ToolbarItemOverflow } from './toolbar-item-overflow';
|
|
7
8
|
import type { ToolbarItemType } from './toolbar-item-type';
|
|
8
9
|
/**
|
|
9
|
-
* One item of `Toolbar.items`, drawn as a `Button` or a separator. Every field except `click` and
|
|
10
|
+
* One item of `Toolbar.items`, drawn as a `Button` or a separator. Every field except `key`, `command`, `click` and
|
|
10
11
|
* `data` accepts a value or a function, and a function is tracked.
|
|
11
12
|
*/
|
|
12
13
|
export interface ToolbarItem {
|
|
14
|
+
/** Names the item in what the user changed (`customization`), so that it keeps its changes when the items change. The default is its position. */
|
|
15
|
+
key?: string | number;
|
|
13
16
|
/** The default is `'button'`. */
|
|
14
17
|
type?: Bind<ToolbarItemType>;
|
|
15
18
|
/**
|
|
@@ -34,6 +37,13 @@ export interface ToolbarItem {
|
|
|
34
37
|
menu?: Bind<readonly MenuItem[]>;
|
|
35
38
|
/** Controls whether the item can move into the overflow menu. The default is `'auto'`. */
|
|
36
39
|
overflow?: Bind<ToolbarItemOverflow>;
|
|
40
|
+
/**
|
|
41
|
+
* What the button shows: its icon, its text, or both. The default is `'both'`: whatever it is given. The user's
|
|
42
|
+
* choice (`customization`) wins. With the text left out, the text names the button and shows as its tooltip.
|
|
43
|
+
*/
|
|
44
|
+
display?: Bind<ToolbarItemDisplay>;
|
|
45
|
+
/** In a toolbar the user can change (`customizable`): `false` keeps the item where it is and shown. The default is `true`. */
|
|
46
|
+
customizable?: Bind<boolean>;
|
|
37
47
|
/** Occurs when the item is clicked, in the bar or in the overflow menu. */
|
|
38
48
|
click?: (e: ToolbarItemClickEventArgs) => void;
|
|
39
49
|
/** A custom application value for the item. */
|
|
@@ -2,6 +2,9 @@ import type { Bind } from '@motifx/core';
|
|
|
2
2
|
import type { ControlProps } from '../../core/control';
|
|
3
3
|
import type { ControlSize } from '../../core/control-size';
|
|
4
4
|
import type { ButtonVariant } from '../button/button-variant';
|
|
5
|
+
import type { ToolbarCustomMenuOpeningEventArgs } from './toolbar-custom-menu-opening-event-args';
|
|
6
|
+
import type { ToolbarCustomization } from './toolbar-customization';
|
|
7
|
+
import type { ToolbarCustomizedEventArgs } from './toolbar-customized-event-args';
|
|
5
8
|
import type { ToolbarItem } from './toolbar-item';
|
|
6
9
|
import type { ToolbarItemClickEventArgs } from './toolbar-item-click-event-args';
|
|
7
10
|
import type { ToolbarOrientation } from './toolbar-orientation';
|
|
@@ -26,6 +29,29 @@ export interface ToolbarProps extends ControlProps {
|
|
|
26
29
|
buttonVariant?: Bind<ButtonVariant>;
|
|
27
30
|
/** How items that do not fit are handled. The default is `'menu'`. */
|
|
28
31
|
overflow?: Bind<ToolbarOverflow>;
|
|
32
|
+
/**
|
|
33
|
+
* The user can hide, move and rename the items of `items`, add commands and separators, and choose what a button
|
|
34
|
+
* shows, from the menu of the right button or the menu key (Shift+F10) and in the customizer. Each item can say
|
|
35
|
+
* otherwise (`customizable`); JSX children stay as they are. The default is `false`.
|
|
36
|
+
*/
|
|
37
|
+
customizable?: Bind<boolean>;
|
|
38
|
+
/** What the user changed, as `onCustomized` reported it, to give back. */
|
|
39
|
+
customization?: Bind<ToolbarCustomization | null>;
|
|
40
|
+
/** Commands the user can add, each with a `key`. Without it, the app's commands (`commands`) that have a text. */
|
|
41
|
+
commands?: Bind<readonly ToolbarItem[]>;
|
|
42
|
+
/** The menu of the right button offers the customizer when `customizable` is on. The default is `true`. */
|
|
43
|
+
customizer?: Bind<boolean>;
|
|
44
|
+
/** The customizer has a keyboard page (`ShortcutEditor`), to give the app's shortcuts other keys. The default is `true`. */
|
|
45
|
+
customizerKeyboard?: Bind<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* A customizable toolbar takes commands sent from the menus of the page: the menu of the right button on a menu bar
|
|
48
|
+
* item that names a command offers to add it here. The default is `true`.
|
|
49
|
+
*/
|
|
50
|
+
acceptCommands?: Bind<boolean>;
|
|
29
51
|
/** Occurs when an item in `items` is clicked, after its own `click`. */
|
|
30
52
|
onItemClick?: (e: ToolbarItemClickEventArgs) => void;
|
|
53
|
+
/** Occurs when the user changed the toolbar, with everything changed so far, to save. */
|
|
54
|
+
onCustomized?: (e: ToolbarCustomizedEventArgs) => void;
|
|
55
|
+
/** Occurs before the menu of the right button opens, to add commands of your own or leave some out. */
|
|
56
|
+
onCustomMenuOpening?: (e: ToolbarCustomMenuOpeningEventArgs) => void;
|
|
31
57
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
2
|
+
import type { Toolbar } from './Toolbar';
|
|
3
|
+
/** Whether a toolbar shows a command now (`'shown'`), can take it (`'absent'`), or cannot (`'none'`). */
|
|
4
|
+
export type ToolbarTargetState = 'shown' | 'absent' | 'none';
|
|
5
|
+
/** A toolbar of the page as a place menus send commands to; the toolbar keeps it up to date. */
|
|
6
|
+
export interface ToolbarTarget {
|
|
7
|
+
toolbar: Toolbar;
|
|
8
|
+
/** The toolbar's name, as the menus write it. */
|
|
9
|
+
name(): string;
|
|
10
|
+
state(command: string): ToolbarTargetState;
|
|
11
|
+
/** Shows the command on the toolbar: its item shown again, else a new item the user added. */
|
|
12
|
+
add(command: string): boolean;
|
|
13
|
+
/** Takes the command away: an item the user added is removed, an item of the app hidden. */
|
|
14
|
+
remove(command: string): boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const toolbarTargets: {
|
|
17
|
+
add(target: ToolbarTarget): void;
|
|
18
|
+
remove(target: ToolbarTarget): void;
|
|
19
|
+
list(): readonly ToolbarTarget[];
|
|
20
|
+
/** What a menu offers for an item that names `command`: a line for each toolbar that takes it, to add it there or take it away. */
|
|
21
|
+
sendItems(command: string): MenuItem[];
|
|
22
|
+
};
|
|
@@ -195,7 +195,7 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
195
195
|
private takeRows;
|
|
196
196
|
/** The row drawn before for `row`'s key, kept for its new node when what it was drawn with stays; null otherwise. */
|
|
197
197
|
private keepRow;
|
|
198
|
-
/** Lets go of the rows drawn before that were not kept. */
|
|
198
|
+
/** Lets go of the rows drawn before that were not kept: each goes with what it holds, its template's cleanup too. */
|
|
199
199
|
private dropRows;
|
|
200
200
|
private addGroup;
|
|
201
201
|
/**
|
|
@@ -214,7 +214,10 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
214
214
|
private space;
|
|
215
215
|
private measure;
|
|
216
216
|
private itemPart;
|
|
217
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* The parts of a row, not kept by the tree yet. The icon and what the template drew go with the row; the template's
|
|
219
|
+
* cleanup, given to the text part it drew in, runs as the core disposes the row.
|
|
220
|
+
*/
|
|
218
221
|
private rowParts;
|
|
219
222
|
/** A row's states: level and place, open, selected, checked, enabled, loading. */
|
|
220
223
|
private renderItem;
|
|
@@ -227,9 +230,10 @@ export declare class TreeView<T = unknown> extends Control<HTMLDivElement, TreeV
|
|
|
227
230
|
private renderRoving;
|
|
228
231
|
private renderLook;
|
|
229
232
|
private renderSearch;
|
|
230
|
-
/**
|
|
233
|
+
/** The tree keeps the row drawn for `node` no longer; the row goes with what it holds when it is taken out. */
|
|
231
234
|
private forget;
|
|
232
|
-
|
|
235
|
+
/** The tree keeps no row drawn so far, the hidden ones included; they go when the rows are taken out. */
|
|
236
|
+
private forgetAll;
|
|
233
237
|
private scrollToRow;
|
|
234
238
|
private focusRow;
|
|
235
239
|
private listen;
|
|
@@ -2,6 +2,10 @@ import type { ComponentBase } from '@motifx/core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Draws the content of a row instead of its text. It can return a cleanup function.
|
|
4
4
|
*
|
|
5
|
+
* The host goes with its row (drawn again, or the tree gone; a closed row's rows stay drawn), with what was added to
|
|
6
|
+
* it, so a template that only adds components needs no cleanup. The cleanup is for what lives outside the host (a
|
|
7
|
+
* subscription, a timer); it is given to the host and runs once as the host goes, after what the host held.
|
|
8
|
+
*
|
|
5
9
|
* @param host The place the content goes in: add your components to its `controls`, or give it a text.
|
|
6
10
|
*/
|
|
7
11
|
export type TreeViewItemTemplate<T> = (item: T, host: ComponentBase<HTMLElement>) => (() => void) | void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentBase } from '@motifx/core';
|
|
2
|
+
/** What goes on the clipboard: plain text, and the same as HTML where it has one. */
|
|
3
|
+
export interface ClipboardText {
|
|
4
|
+
text: string;
|
|
5
|
+
html?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Puts `content` on the clipboard of the window `owner` is in: through the Clipboard API where the page may use it,
|
|
9
|
+
* else through the copy command, which also works where the API is missing or refused (plain http, an older browser).
|
|
10
|
+
*/
|
|
11
|
+
export declare function writeClipboard(owner: ComponentBase, content: ClipboardText): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Calls `changed` (once per microtask) after a design language, theme
|
|
3
|
-
* document of the page finish loading. Returns the function that stops it.
|
|
2
|
+
* Calls `changed` (once per microtask) after a design language, theme, density or reading direction (`dir`) changes
|
|
3
|
+
* anywhere, or fonts of a document of the page finish loading. Returns the function that stops it.
|
|
4
4
|
*/
|
|
5
5
|
export declare function onLookChanged(changed: () => void): () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentBase } from '@motifx/core';
|
|
2
2
|
/**
|
|
3
|
-
* Calls `heard` after each change of the look (a design language, a theme, a density, fonts that finished loading) and when a length `component` reads
|
|
3
|
+
* Calls `heard` after each change of the look (a design language, a theme, a density, a reading direction, fonts that finished loading) and when a length `component` reads
|
|
4
4
|
* came out another size. Nothing is followed per component: `heard` runs while it is out of the page too, so read through
|
|
5
5
|
* `measure` and leave out what is not laid out. Returns what stops it.
|
|
6
6
|
*/
|
|
@@ -7,7 +7,7 @@ import type { Size } from './size';
|
|
|
7
7
|
* browser laid it out (the first one too, and the one after it is shown again or moved), so nothing is laid out to
|
|
8
8
|
* read it; where the window has no size observer (a test document), the layer reads those in the next run. A size
|
|
9
9
|
* within half a pixel of the last one told is not told again.
|
|
10
|
-
* - `look`: the design language, theme or
|
|
10
|
+
* - `look`: the design language, theme, density or reading direction changed, fonts finished loading, a length it reads came out another size, or it moved into
|
|
11
11
|
* another window.
|
|
12
12
|
* - `page`: its window changed size. `scroll`: something scrolled in the page of its window, but inside `except`.
|
|
13
13
|
* - `sight`: it came into the viewport of its window or left it; whether it is in sight comes with the call.
|
|
@@ -22,7 +22,9 @@ export declare function scrollIntoView(target: ComponentBase, options?: {
|
|
|
22
22
|
}): boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Scrolls `scroller`, and nothing else, only as far as it takes to bring `target` into view: one of its parts, or a
|
|
25
|
-
* stretch of its content placed by the model. Read in the next round, written after it.
|
|
25
|
+
* stretch of its content placed by the model. Read in the next round, written after it. A reveal asked for along the
|
|
26
|
+
* same axis of the same scroller before it ran takes its place: both read before either writes, so the older one would
|
|
27
|
+
* scroll to what is no longer wanted (a tab chosen, then another before the round). Returns what takes it back.
|
|
26
28
|
*/
|
|
27
29
|
export declare function reveal(scroller: ComponentBase, target: ComponentBase | RevealRange, options?: RevealOptions): () => void;
|
|
28
30
|
/**
|
package/dist/core/show-icon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { IconSource } from './icon-source';
|
|
3
3
|
/**
|
|
4
|
-
* Shows an icon in `into`, a part of the kit: an `<img>` for an address, or the app's component.
|
|
5
|
-
* it
|
|
4
|
+
* Shows an icon in `into`, a part of the kit: an `<img>` for an address, or the app's component. It goes with `into`;
|
|
5
|
+
* `clearParts(into)` takes it out for another one.
|
|
6
6
|
*/
|
|
7
|
-
export declare function showIcon(source: IconSource, into: ComponentBase):
|
|
7
|
+
export declare function showIcon(source: IconSource, into: ComponentBase): void;
|