@motifx-community/ui 0.1.0-beta.13 → 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 +379 -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 +1 -1
- 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/form/MxForm.d.ts +1 -1
- 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/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/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/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 +65982 -49896
- 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/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 +4484 -177
- 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 +1 -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 +1 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +18989 -12344
- package/llms.txt +29 -2
- package/package.json +2 -2
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChatToolDensity, ChatToolLook, ChatToolStatus } from './chat-part';
|
|
2
|
+
/** What a tool call starts with, as `reply.tool()` takes it. */
|
|
3
|
+
export interface ChatToolInit {
|
|
4
|
+
/** The tool's name as the model called it. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** The provider's id of the call; by default one is made. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** The name a person reads; by default `name`. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** What the call does, in a line. */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** What went in, when it is already known. */
|
|
13
|
+
input?: string;
|
|
14
|
+
look?: ChatToolLook;
|
|
15
|
+
density?: ChatToolDensity;
|
|
16
|
+
/** `assembling` while its arguments still arrive (then `start()`); by default `running`. */
|
|
17
|
+
status?: ChatToolStatus;
|
|
18
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import { ChatFlowView } from './chat-flow-view';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatMessage } from './chat-message';
|
|
5
|
+
import type { ChatPart } from './chat-part';
|
|
6
|
+
import type { ChatTurn } from './chat-turn';
|
|
7
|
+
/**
|
|
8
|
+
* The part of a turn: the user's question, then what the model did, then its actions once the reply ended (copy it;
|
|
9
|
+
* say it was good or bad; try again when it failed or stopped, or ask for another). It is made from the turn's
|
|
10
|
+
* messages when the turn comes near the view and disposed when it goes far; a reply streaming into it writes into its
|
|
11
|
+
* flow. It is an article of the conversation's feed, named by its question, busy while its reply is written.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ChatTurnView {
|
|
14
|
+
readonly turn: ChatTurn;
|
|
15
|
+
private readonly look;
|
|
16
|
+
readonly row: Component<HTMLDivElement>;
|
|
17
|
+
readonly flow: ChatFlowView;
|
|
18
|
+
private readonly question;
|
|
19
|
+
private readonly actions;
|
|
20
|
+
private readonly copy;
|
|
21
|
+
private retryButton;
|
|
22
|
+
private regenerateButton;
|
|
23
|
+
private goodButton;
|
|
24
|
+
private badButton;
|
|
25
|
+
constructor(turn: ChatTurn, look: ChatLook);
|
|
26
|
+
/** Its place in the feed: `at` from 0, of `count` turns (`-1` while older ones may still come). */
|
|
27
|
+
drawPlace(at: number, count: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* The actions as the turn stands: none while its reply is written; copy when it wrote text; good and bad when the
|
|
30
|
+
* app takes feedback; on the latest turn, try again when its reply failed or stopped and the app takes retries, or
|
|
31
|
+
* else another reply when the app takes regenerations.
|
|
32
|
+
*/
|
|
33
|
+
drawActions(): void;
|
|
34
|
+
/** What shows the character at `index` of `part`'s text in `message`, for a search. */
|
|
35
|
+
found(message: ChatMessage, part: ChatPart, index: number): ComponentBase | null;
|
|
36
|
+
/** The row of the turn's question; the first turn may have none. */
|
|
37
|
+
get questionRow(): Component<HTMLDivElement> | null;
|
|
38
|
+
/** Draws a message of the model at the end of the flow, as far as it is written; its first text shows its time. */
|
|
39
|
+
add(message: ChatMessage): void;
|
|
40
|
+
drawTexts(): void;
|
|
41
|
+
private drawActionTexts;
|
|
42
|
+
/** The reply the turn's actions speak of: its last message of the model. */
|
|
43
|
+
private get reply();
|
|
44
|
+
/** Try again, or another reply: the turn's reply goes, from its last message on, and the app writes it again. */
|
|
45
|
+
private againButton;
|
|
46
|
+
/** Good or bad, its icon alone: pressed while the reply has it; pressed again, it is taken back. */
|
|
47
|
+
private feedbackButton;
|
|
48
|
+
private drawFeedback;
|
|
49
|
+
/** A turn with no question text is named by who speaks in it. */
|
|
50
|
+
private drawLabel;
|
|
51
|
+
/** What the model wrote in the turn, as markdown: its texts, a blank line between them. */
|
|
52
|
+
private replyText;
|
|
53
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatMessage } from './chat-message';
|
|
2
|
+
/**
|
|
3
|
+
* A turn of the conversation: a message of the user and what came after it, up to the next one. The chat keeps only
|
|
4
|
+
* turns near the view on the page; a turn far from it is these messages alone, and is drawn again from them.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChatTurn {
|
|
7
|
+
messages: ChatMessage[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { Chat } from './Chat';
|
|
2
|
+
export { ChatComposer } from './ChatComposer';
|
|
3
|
+
export { ChatReply } from './ChatReply';
|
|
4
|
+
export { ChatToolCall, ChatWriter } from './ChatWriter';
|
|
5
|
+
export type { ChatCommand } from './chat-command';
|
|
6
|
+
export type { ChatComposerProps } from './chat-composer-props';
|
|
7
|
+
export type { ChatContextChangedEventArgs } from './chat-context-changed-event-args';
|
|
8
|
+
export type { ChatContextItem } from './chat-context-item';
|
|
9
|
+
export type { ChatFeedbackEventArgs, ChatForkEventArgs, ChatRetryEventArgs, ChatRewindEventArgs } from './chat-history-event-args';
|
|
10
|
+
export type { ChatMention, ChatMentionEventArgs } from './chat-mention';
|
|
11
|
+
export type { ChatOption } from './chat-option';
|
|
12
|
+
export type { ChatValueChangedEventArgs } from './chat-value-changed-event-args';
|
|
13
|
+
export type { ChatLoadOlderEventArgs } from './chat-load-older-event-args';
|
|
14
|
+
export type { ChatFeedback, ChatMessage } from './chat-message';
|
|
15
|
+
export type { ChatMessageStatus } from './chat-message-status';
|
|
16
|
+
export type { ChatAttachmentPart, ChatCompactionPart, ChatNoticePart, ChatPart, ChatSource, ChatSourcesPart, ChatThinkingPart, ChatTodoItem, ChatTodoPart, ChatToolDensity, ChatToolLook, ChatToolPart, ChatToolStatus } from './chat-part';
|
|
17
|
+
export type { ChatProps } from './chat-props';
|
|
18
|
+
export type { ChatFormAnswer, ChatFormBoolean, ChatFormChoices, ChatFormField, ChatFormNumber, ChatFormPart, ChatFormSchema, ChatFormText, ChatFormValue, ChatPermission, ChatPermissionAnswer, ChatPlanAnswer, ChatPlanChoice, ChatPlanPart, ChatQuestion, ChatQuestionAnswer, ChatQuestionOption, ChatQuestionsAnswer, ChatQuestionsPart } from './chat-request';
|
|
19
|
+
export type { ChatRole } from './chat-role';
|
|
20
|
+
export type { ChatSendEventArgs } from './chat-send-event-args';
|
|
21
|
+
export type { ChatTextPart } from './chat-text-part';
|
|
22
|
+
export type { ChatToolInit } from './chat-tool-init';
|
|
@@ -38,6 +38,8 @@ export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProp
|
|
|
38
38
|
set openOnHover(value: Bind<boolean>);
|
|
39
39
|
get presentation(): ContextMenuPresentation;
|
|
40
40
|
set presentation(value: Bind<ContextMenuPresentation>);
|
|
41
|
+
get toolbarTargets(): boolean;
|
|
42
|
+
set toolbarTargets(value: Bind<boolean>);
|
|
41
43
|
/** Indicates whether the menu is open. Reactive. */
|
|
42
44
|
get opened(): boolean;
|
|
43
45
|
/**
|
|
@@ -89,6 +91,8 @@ export declare class ContextMenu extends Control<HTMLDivElement, ContextMenuProp
|
|
|
89
91
|
/** Made with `new` and never placed, it opens from the end of the page; on a component in another window, from the end of that one. */
|
|
90
92
|
private host;
|
|
91
93
|
private createPopup;
|
|
94
|
+
/** The menu of an item of the open menu, or of one of its submenus: the toolbars of the page that take its command. */
|
|
95
|
+
private itemMenuOpening;
|
|
92
96
|
/** Focus left in the menu as it closes goes back to where it was when the menu opened; focus that moved away stays. */
|
|
93
97
|
private giveFocusBack;
|
|
94
98
|
private chosen;
|
|
@@ -28,6 +28,12 @@ export interface ContextMenuProps extends ControlProps {
|
|
|
28
28
|
* screen with only a coarse pointer when not opened by a key. The default is `'menu'`.
|
|
29
29
|
*/
|
|
30
30
|
presentation?: Bind<ContextMenuPresentation>;
|
|
31
|
+
/**
|
|
32
|
+
* In the open menu, the right button (or the Menu key) on an item that names a command offers to add the command to
|
|
33
|
+
* each toolbar of the page that takes commands (`Toolbar.customizable` and `acceptCommands`), or to take it away from
|
|
34
|
+
* one that shows it. Elsewhere in the menu it opens nothing. The default is `true`.
|
|
35
|
+
*/
|
|
36
|
+
toolbarTargets?: Bind<boolean>;
|
|
31
37
|
/** Occurs before the menu opens. Set `e.items` for `e.target`, or cancel. */
|
|
32
38
|
onOpening?: (e: ContextMenuOpeningEventArgs) => void;
|
|
33
39
|
/** Occurs when an item is selected, after the item's own `click`. */
|
|
@@ -1322,18 +1322,6 @@ export declare class DataGrid<T = any> extends Control<HTMLDivElement, DataGridP
|
|
|
1322
1322
|
private actionMenuItems;
|
|
1323
1323
|
/** Keys on an action button: Left and Right move between the buttons of the cell; Enter and Space press it. */
|
|
1324
1324
|
private onActionKey;
|
|
1325
|
-
/**
|
|
1326
|
-
* Puts copied cells on the clipboard. Where the window has the clipboard API (a secure page), through it: both forms
|
|
1327
|
-
* where it takes them (`ClipboardItem`), else the text. Elsewhere (a page over http, an older browser), or when the
|
|
1328
|
-
* API refuses, through the copy command.
|
|
1329
|
-
*/
|
|
1330
|
-
private writeClipboard;
|
|
1331
|
-
/**
|
|
1332
|
-
* The copy command: a hidden text area holding the text goes into the app's layer above the page, is selected, and
|
|
1333
|
-
* the command copies; the copy event it raises takes both forms. Focus goes back where it was, and the area goes.
|
|
1334
|
-
* Returns whether the command copied.
|
|
1335
|
-
*/
|
|
1336
|
-
private copyByCommand;
|
|
1337
1325
|
/** Ctrl+V on a cell: the browser raises `paste` next, at the page when no field has focus; take that one event. */
|
|
1338
1326
|
private armPaste;
|
|
1339
1327
|
/** A paste while a cell (not a field) has focus: the active cell of a data row, which takes focus once it is on a cell. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ValueType } from '../../parts/table/value-type';
|
|
1
2
|
/**
|
|
2
3
|
* How a column's values are compared, formatted and edited. `date` is a calendar day; `datetime` is a day and a time,
|
|
3
4
|
* shown, edited and filtered to the minute.
|
|
4
5
|
*/
|
|
5
|
-
export type ColumnType =
|
|
6
|
+
export type ColumnType = ValueType;
|
|
@@ -57,7 +57,10 @@ export interface GridColumn<T = any> {
|
|
|
57
57
|
maxWidth?: number;
|
|
58
58
|
/** The share of the free space this column takes when the grid is wider than its columns. */
|
|
59
59
|
flex?: number;
|
|
60
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Pins the column to the start or end edge during horizontal scrolling. A column pinned to the end also stands at the
|
|
62
|
+
* end edge when the columns leave room, the room coming before it. A column in a band sticks with its band.
|
|
63
|
+
*/
|
|
61
64
|
sticky?: StickySide;
|
|
62
65
|
/** The band of this column in a flat list: the band's `name`, or its position in the grid's `columns`. */
|
|
63
66
|
ownerBand?: string | number;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DateInterval } from '../../parts/table/date-interval';
|
|
1
2
|
/** The deepest level of the year → month → day … tree in a date column's header filter. */
|
|
2
|
-
export type GridDateInterval =
|
|
3
|
+
export type GridDateInterval = DateInterval;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
+
import type { FilterValue } from '../../parts/table/filter-value';
|
|
1
2
|
/** One entry of a header filter's value list. */
|
|
2
|
-
export interface GridFilterValue {
|
|
3
|
-
/** The value, where `null` represents empty values. */
|
|
4
|
-
value: unknown;
|
|
5
|
-
/** The display text. By default, the value formatted like the column's cells. */
|
|
6
|
-
text?: string;
|
|
7
|
-
/** The number of rows with this value. */
|
|
8
|
-
count?: number;
|
|
3
|
+
export interface GridFilterValue extends FilterValue {
|
|
9
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ValueInterval } from '../../parts/table/value-interval';
|
|
2
2
|
/**
|
|
3
3
|
* How a column's header filter groups its values: for a number column, the size of each range
|
|
4
4
|
* ("0 – 100", "100 – 200", and several sizes create a tree, largest first), and for a date column, the
|
|
5
5
|
* deepest level of its year → month → day … tree. `null` lists every value.
|
|
6
6
|
*/
|
|
7
|
-
export type GridHeaderFilterInterval =
|
|
7
|
+
export type GridHeaderFilterInterval = ValueInterval;
|
|
@@ -12,9 +12,12 @@ import type { GridDateInterval } from './grid-date-interval';
|
|
|
12
12
|
*/
|
|
13
13
|
export interface GridSettings extends ColumnFeatures {
|
|
14
14
|
/**
|
|
15
|
-
* The result of dragging a column edge: `'widget'` resizes that column
|
|
16
|
-
*
|
|
17
|
-
* difference
|
|
15
|
+
* The result of dragging a column edge: `'widget'` resizes that column at the edge dragged, the columns before it
|
|
16
|
+
* keeping their widths (flexing ones too) and the following ones moving on, a flexing one among them taking up the
|
|
17
|
+
* difference first; `'nextColumn'` moves only the edge between it and the next column, which takes up the
|
|
18
|
+
* difference. A column pinned to the end is dragged at its start edge, so the sides turn round: a flexing column
|
|
19
|
+
* before it takes up the difference, and with `'nextColumn'` the edge moved is the one with the column before it. A
|
|
20
|
+
* column can set its own value. The default is `'widget'`.
|
|
18
21
|
*/
|
|
19
22
|
resizeMode: ColumnResizeMode;
|
|
20
23
|
/** Shift+click (Shift+Enter) on a header adds the column to the sort. The default is `true`. */
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import type { TableSheetCell } from '../../parts/table/table-sheet-cell';
|
|
1
2
|
import type { GridExportCell } from './grid-export-cell';
|
|
2
|
-
/** A cell of a `GridSheet
|
|
3
|
-
export interface GridSheetCell<T = any> {
|
|
4
|
-
/** The value to write: a number, a `Date`, `true` or `false`, text, or `null` for an empty cell. */
|
|
5
|
-
readonly value: string | number | boolean | Date | null;
|
|
6
|
-
/** The text the grid displays for it. */
|
|
7
|
-
readonly text: string;
|
|
3
|
+
/** A cell of a `GridSheet`: its value, the text the grid displays for it, and the grid's cell. */
|
|
4
|
+
export interface GridSheetCell<T = any> extends TableSheetCell {
|
|
8
5
|
readonly gridCell: GridExportCell<T>;
|
|
9
6
|
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
+
import type { TableSheetColumn } from '../../parts/table/table-sheet-column';
|
|
1
2
|
import type { GridColumn } from './grid-column';
|
|
2
3
|
/** A column of a `GridSheet`: a visible, exportable column, in display order. */
|
|
3
|
-
export interface GridSheetColumn<T = any> {
|
|
4
|
+
export interface GridSheetColumn<T = any> extends TableSheetColumn {
|
|
4
5
|
readonly field: string;
|
|
5
6
|
readonly column: GridColumn<T>;
|
|
6
|
-
readonly title: string;
|
|
7
|
-
/** The column's width on screen, in pixels. */
|
|
8
|
-
readonly width: number;
|
|
9
|
-
readonly align: 'start' | 'center' | 'end';
|
|
10
|
-
/** The `Intl` options of its numbers, or `undefined` for a non-number column or a `format` function. */
|
|
11
|
-
readonly numberFormat?: Intl.NumberFormatOptions;
|
|
12
|
-
/** The `Intl` options of its dates, or `undefined` for a non-date column or a `format` function. */
|
|
13
|
-
readonly dateFormat?: Intl.DateTimeFormatOptions;
|
|
14
7
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
+
import type { TableSheetMerge } from '../../parts/table/table-sheet-merge';
|
|
1
2
|
/** Merged cells of a `GridSheet`: a band's header over its columns, or a column's header down the band rows. */
|
|
2
|
-
export interface GridSheetMerge {
|
|
3
|
-
/** The first row, an index into `rows`. */
|
|
4
|
-
readonly row: number;
|
|
5
|
-
/** The first column, an index into `columns`. */
|
|
6
|
-
readonly column: number;
|
|
7
|
-
readonly rows: number;
|
|
8
|
-
readonly columns: number;
|
|
3
|
+
export interface GridSheetMerge extends TableSheetMerge {
|
|
9
4
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
+
import type { TableSheetRow } from '../../parts/table/table-sheet-row';
|
|
1
2
|
import type { GridSheetCell } from './grid-sheet-cell';
|
|
2
3
|
/** A row of a `GridSheet`, one cell per column. */
|
|
3
|
-
export interface GridSheetRow<T = any> {
|
|
4
|
-
readonly rowType: 'header' | 'group' | 'data' | 'groupFooter' | 'totalFooter';
|
|
5
|
-
/** The outline level: 0 for the header, the totals and top groups, and one more than the group for its rows. */
|
|
6
|
-
readonly level: number;
|
|
7
|
-
readonly cells: readonly GridSheetCell<T>[];
|
|
4
|
+
export interface GridSheetRow<T = any> extends TableSheetRow<GridSheetCell<T>> {
|
|
8
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TableSheet } from '../../parts/table/table-sheet';
|
|
2
|
+
import type { GridSheetCell } from './grid-sheet-cell';
|
|
1
3
|
import type { GridSheetColumn } from './grid-sheet-column';
|
|
2
4
|
import type { GridSheetMerge } from './grid-sheet-merge';
|
|
3
5
|
import type { GridSheetRow } from './grid-sheet-row';
|
|
@@ -7,8 +9,7 @@ import type { GridSheetRow } from './grid-sheet-row';
|
|
|
7
9
|
* totals, in the grid's order. `exportDataGrid` (`@motifx-community/ui/excel`) writes one to an ExcelJS
|
|
8
10
|
* worksheet, and `grid.exportSheet()` passes it to a custom writer.
|
|
9
11
|
*/
|
|
10
|
-
export interface GridSheet<T = any> {
|
|
11
|
-
readonly columns: readonly GridSheetColumn<T>[];
|
|
12
|
+
export interface GridSheet<T = any> extends TableSheet<GridSheetCell<T>, GridSheetColumn<T>> {
|
|
12
13
|
readonly rows: readonly GridSheetRow<T>[];
|
|
13
14
|
/** The header rows at the start: one per level of bands and one for the titles, or 0 with `headers: false`. */
|
|
14
15
|
readonly headerRows: number;
|
|
@@ -22,7 +22,7 @@ export interface GridSummaryItem {
|
|
|
22
22
|
showInColumn?: Bind<string | undefined>;
|
|
23
23
|
/**
|
|
24
24
|
* How the value is formatted: `Intl` options (numbers and dates, in the grid's locale) or a function.
|
|
25
|
-
* The default is the column's format (for `count`, a plain number).
|
|
25
|
+
* The default is the column's format (for `count` and `countDistinct`, a plain number).
|
|
26
26
|
*/
|
|
27
27
|
valueFormat?: Bind<Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | undefined> | ((value: unknown) => string);
|
|
28
28
|
/**
|
|
@@ -36,7 +36,10 @@ export interface GridSummaryItem {
|
|
|
36
36
|
alignment?: Bind<'start' | 'center' | 'end' | undefined>;
|
|
37
37
|
/** A custom class name on the item's element. */
|
|
38
38
|
cssClass?: Bind<string | undefined>;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Omits empty values (`count` always counts every row, `countDistinct` never counts them). The default is
|
|
41
|
+
* `summary.skipEmptyValues`.
|
|
42
|
+
*/
|
|
40
43
|
skipEmptyValues?: Bind<boolean | undefined>;
|
|
41
44
|
/** Shows the item. The default is the grid's `totalSummary` setting (`groupSummary` for a group item). */
|
|
42
45
|
visible?: Bind<boolean | undefined>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* How a summary item aggregates its column: the built-in functions, or `calculateCustomSummary`. `countDistinct`
|
|
3
|
+
* counts the different values that are not empty, compared the way filters compare them.
|
|
4
|
+
*/
|
|
5
|
+
export type GridSummaryType = 'sum' | 'min' | 'max' | 'avg' | 'count' | 'countDistinct' | 'custom';
|
|
@@ -22,8 +22,9 @@ export interface GridSummary<T = any> {
|
|
|
22
22
|
*/
|
|
23
23
|
recalculateWhileEditing?: Bind<boolean>;
|
|
24
24
|
/**
|
|
25
|
-
* Omits empty values (`null`, `undefined`, `''`) from the summaries calculated in the browser
|
|
26
|
-
* `count` counts every row. An item can set its own value. The
|
|
25
|
+
* Omits empty values (`null`, `undefined`, `''`) from the summaries calculated in the browser;
|
|
26
|
+
* `count` counts every row and `countDistinct` never counts them. An item can set its own value. The
|
|
27
|
+
* default is `true`.
|
|
27
28
|
*/
|
|
28
29
|
skipEmptyValues?: Bind<boolean>;
|
|
29
30
|
/** The item strings by type, over the `gridSummary…` strings of `uiLocale` and the grid's `texts`. */
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
+
import type { ValueOption } from '../../parts/table/value-option';
|
|
1
2
|
/** An entry of a `list` column: a plain value, or a value with its display text. */
|
|
2
|
-
export type ListOption =
|
|
3
|
-
value: unknown;
|
|
4
|
-
label: string;
|
|
5
|
-
};
|
|
3
|
+
export type ListOption = ValueOption;
|
|
@@ -166,8 +166,18 @@ export declare class ColumnModel<T> {
|
|
|
166
166
|
/** The smallest width of a column: its own `minWidth`, else the `columnMinWidth` setting. */
|
|
167
167
|
minWidth(field: string): number;
|
|
168
168
|
clampWidth(field: string, px: number): number;
|
|
169
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* `grid-template-columns` for the given visible fields. Sticky columns never flex. The columns pinned to the end stand
|
|
171
|
+
* at the end edge: while none of the others flexes, a track before them takes the room the columns leave.
|
|
172
|
+
*/
|
|
170
173
|
template(visible: string[]): string;
|
|
174
|
+
/**
|
|
175
|
+
* The grid line a visible column's cells start at. The columns pinned to the end count from the end, so they keep to
|
|
176
|
+
* the end edge with or without the room before them (`template`).
|
|
177
|
+
*/
|
|
178
|
+
lineOf(field: string, visible: readonly string[]): number;
|
|
179
|
+
/** `grid-column` of a visible column's cells: one track from `lineOf`. */
|
|
180
|
+
gridColumnOf(field: string, visible: readonly string[]): string;
|
|
171
181
|
/** Offsets of the sticky columns from their edge. */
|
|
172
182
|
stickyOffsets(visible: string[]): Map<string, StickyOffset>;
|
|
173
183
|
/** Width taken by the sticky columns at each edge. */
|
|
@@ -177,6 +187,13 @@ export declare class ColumnModel<T> {
|
|
|
177
187
|
};
|
|
178
188
|
/** Sets a width (clamped). Resizing turns flex off for that column. Returns the width set. */
|
|
179
189
|
resize(field: string, px: number): number;
|
|
190
|
+
/**
|
|
191
|
+
* The flexing columns before `field`: dragged alone (`'widget'`), its edge stays under the pointer only while they keep
|
|
192
|
+
* their widths, since in a grid they fill they would give it room and it would grow toward them.
|
|
193
|
+
*/
|
|
194
|
+
flexingBefore(field: string): string[];
|
|
195
|
+
/** Gives each column the width it shows, as it is (nothing moves), and turns its flex off, as a resize of its own does. */
|
|
196
|
+
hold(widths: ReadonlyMap<string, number>): void;
|
|
180
197
|
/** How the column's edge is dragged: its own mode, else the grid's. */
|
|
181
198
|
resizeModeOf(field: string): ColumnResizeMode;
|
|
182
199
|
/** Whether a column gets cells only while it is in view: its own `columnRenderingMode`, else the grid's. The grid's own columns always have theirs. Reactive. */
|
|
@@ -184,8 +201,9 @@ export declare class ColumnModel<T> {
|
|
|
184
201
|
/** Whether some visible column is virtual. Reactive. */
|
|
185
202
|
anyVirtual(visible: readonly string[]): boolean;
|
|
186
203
|
/**
|
|
187
|
-
* The column that gives or takes the width when `field` is resized in `'nextColumn'` mode: the
|
|
188
|
-
*
|
|
204
|
+
* The column that gives or takes the width when `field` is resized in `'nextColumn'` mode: the one beside the edge
|
|
205
|
+
* dragged in its zone, if it can be resized: the next one, or for a column pinned to the end (resized at its start
|
|
206
|
+
* edge) the one before it. Without one the column changes alone.
|
|
189
207
|
*/
|
|
190
208
|
partnerOf(field: string): string | undefined;
|
|
191
209
|
/**
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import { data } from '@motifx-community/data';
|
|
2
|
-
import type {
|
|
2
|
+
import type { UiStrings } from '../../../core/ui-strings';
|
|
3
|
+
import type { ColumnFilter } from '../column-filter';
|
|
4
|
+
import type { FilterTreeNode } from '../../../parts/table/filter-tree-node';
|
|
5
|
+
import type { HeaderFilterHost } from '../../../parts/table/header-filter-host';
|
|
3
6
|
import type { GridModel } from './GridModel';
|
|
4
7
|
import { LookupValues } from './LookupValues';
|
|
5
|
-
import type { ValueList } from '
|
|
6
|
-
import { ValueIntervals } from '
|
|
7
|
-
/** The key of the tree's entry for empty values. */
|
|
8
|
-
export declare const BLANK_NODE = "(blank)";
|
|
8
|
+
import type { ValueList } from '../../../parts/table/value-list';
|
|
9
|
+
import { ValueIntervals } from '../../../parts/table/ValueIntervals';
|
|
9
10
|
/**
|
|
10
11
|
* Where a column's header filter gets its values: the app's `loadValues`, rows held in memory (the
|
|
11
12
|
* grid counts them itself, the column's `value` reader and format included), or an adapter that
|
|
12
13
|
* groups (one grouped load per part, with counts). Every way honors the other filters. A column can
|
|
13
14
|
* group them into ranges of numbers or parts of dates (`headerFilterInterval`, a tree for more than
|
|
14
15
|
* one level), counted in the browser from every distinct value, or give entries of its own
|
|
15
|
-
* (`headerFilterItems`).
|
|
16
|
+
* (`headerFilterItems`). It is what the grid's header filter window asks.
|
|
16
17
|
*/
|
|
17
|
-
export declare class FilterValues<T> {
|
|
18
|
+
export declare class FilterValues<T> implements HeaderFilterHost {
|
|
18
19
|
private readonly model;
|
|
19
20
|
/** The lists of the lookup columns. */
|
|
20
21
|
readonly lookups: LookupValues<T>;
|
|
21
22
|
constructor(model: GridModel<T>);
|
|
23
|
+
title(field: string): string;
|
|
24
|
+
text(key: keyof UiStrings, values?: Record<string, unknown>): string;
|
|
25
|
+
count(n: number): string;
|
|
26
|
+
rows(): number;
|
|
27
|
+
kept(field: string): ColumnFilter | undefined;
|
|
28
|
+
clearValues(field: string): void;
|
|
29
|
+
setValues(field: string, values: readonly unknown[], filterType: 'include' | 'exclude'): void;
|
|
22
30
|
/** Whether the values of the column can be listed at all (a lookup column's always can: from its source; entries of its own always). */
|
|
23
31
|
available(field?: string): boolean;
|
|
24
32
|
/** Whether the list can search: always in memory, in a lookup column (by text), in ranges and in entries of its own; on a server, text columns only. */
|
|
@@ -61,7 +61,7 @@ export declare class GridExport<T> {
|
|
|
61
61
|
private groupParts;
|
|
62
62
|
/** Lookup cells and groups export their texts: every key of the rows is resolved first. */
|
|
63
63
|
private loadTexts;
|
|
64
|
-
/** Saves text as a file
|
|
64
|
+
/** Saves CSV text as a file the browser downloads. */
|
|
65
65
|
download(text: string, fileName: string): void;
|
|
66
66
|
private rows;
|
|
67
67
|
/** Selected rows that are loaded, when the key is not one field and the server cannot be asked for them. */
|
|
@@ -11,10 +11,10 @@ import type { GridLayout } from '../grid-layout';
|
|
|
11
11
|
import type { GridMode } from '../grid-mode';
|
|
12
12
|
import type { GridSettings } from '../grid-settings';
|
|
13
13
|
import type { RowState } from '../row-state';
|
|
14
|
-
import type { EditorValue } from '
|
|
14
|
+
import type { EditorValue } from '../../../parts/table/editor-value';
|
|
15
15
|
import type { AddedRow } from './added-row';
|
|
16
16
|
import { ActionSets } from './ActionSets';
|
|
17
|
-
import { CellFormatter } from '
|
|
17
|
+
import { CellFormatter } from '../../../parts/table/CellFormatter';
|
|
18
18
|
import { CellRules } from './CellRules';
|
|
19
19
|
import { GridNotices } from './GridNotices';
|
|
20
20
|
import { ColumnModel } from './ColumnModel';
|
|
@@ -3,7 +3,7 @@ import { data } from '@motifx-community/data';
|
|
|
3
3
|
import { KeyedItems } from '../../../parts/data/KeyedItems';
|
|
4
4
|
import type { TextSearch } from '../../../parts/data/text-search';
|
|
5
5
|
import type { GridColumn } from '../grid-column';
|
|
6
|
-
import type { EditorValue } from '
|
|
6
|
+
import type { EditorValue } from '../../../parts/table/editor-value';
|
|
7
7
|
import type { LookupCell } from './lookup-cell';
|
|
8
8
|
/**
|
|
9
9
|
* The texts of the grid's lookup columns: a cell's key turned into the text of its item, through the
|
|
@@ -4,7 +4,7 @@ import type { GridColumn } from '../grid-column';
|
|
|
4
4
|
import type { GridModel } from '../model/GridModel';
|
|
5
5
|
import type { EditorHost } from './editor-host';
|
|
6
6
|
import type { EditorKind } from './editor-kind';
|
|
7
|
-
import type { EditorValue } from '
|
|
7
|
+
import type { EditorValue } from '../../../parts/table/editor-value';
|
|
8
8
|
type Options = Record<string, unknown>;
|
|
9
9
|
/**
|
|
10
10
|
* The editor of the cell in edit mode: a kit field drawn without its frame inside the cell (a
|
|
@@ -2,7 +2,7 @@ import type { ComponentBase } from '@motifx/core';
|
|
|
2
2
|
import type { ColumnModel } from '../model/ColumnModel';
|
|
3
3
|
import type { StickyOffset } from '../model/sticky-offset';
|
|
4
4
|
/**
|
|
5
|
-
* Per-column CSS of one grid: columns not shown, alignment and sticky offsets, written as rules keyed
|
|
5
|
+
* Per-column CSS of one grid: columns not shown, the tracks of the columns pinned to the end, alignment and sticky offsets, written as rules keyed
|
|
6
6
|
* by `data-field` (a pinned band's header by `data-band`, at the offset of its columns). Changing a width or pinning a column rewrites this sheet only; no cell gets a
|
|
7
7
|
* binding of its own and no row is touched. A rule finds the rows through the parts that hold them (the head, the body,
|
|
8
8
|
* the foot, the copy of a dragged row), which carry the grid's id, and goes on by child combinators only: the rows of a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { GridModel } from '../model/GridModel';
|
|
3
3
|
import type { GroupNode } from '../model/group-node';
|
|
4
|
-
import { ScrollGeometry } from '
|
|
4
|
+
import { ScrollGeometry } from '../../../parts/table/ScrollGeometry';
|
|
5
5
|
import type { ActionWidths } from './ActionWidths';
|
|
6
6
|
import type { DetailHost } from './detail-host';
|
|
7
7
|
import { DetailRow } from './DetailRow';
|
|
@@ -82,6 +82,8 @@ export declare class HeaderRow<T> extends Component<HTMLDivElement> {
|
|
|
82
82
|
showChipDrop(drop: GroupDrop): void;
|
|
83
83
|
/** Width the column takes on screen; more than its setting while it flexes. */
|
|
84
84
|
shownWidth(field: string): number;
|
|
85
|
-
/**
|
|
85
|
+
/** The widths the columns show now: their headers', else their tracks' in the row (a column drawn only while in view). */
|
|
86
|
+
private drawnWidths;
|
|
87
|
+
/** Drag the edge to resize: the column alone, or against the one beside the edge. */
|
|
86
88
|
private pressHandle;
|
|
87
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, Emitter, type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from "@motifx/core";
|
|
2
2
|
import { Control } from "../../core/control";
|
|
3
|
-
import { type Rect } from "../../core/measure";
|
|
3
|
+
import { type Point, type Rect } from "../../core/measure";
|
|
4
4
|
import { DragBoxes } from "../../parts/drag/drag-boxes";
|
|
5
5
|
import { DragGhost } from "../../parts/drag/DragGhost";
|
|
6
6
|
import type { DraggableEventArgs } from "./draggable-event-args";
|
|
@@ -20,12 +20,20 @@ interface Session {
|
|
|
20
20
|
timer: ReturnType<typeof setTimeout> | null;
|
|
21
21
|
rect: Rect | null;
|
|
22
22
|
bound: Rect | null;
|
|
23
|
+
origin: Point | null;
|
|
23
24
|
/** The drop targets of its group on the screen, kept while it is dragged. */
|
|
24
25
|
boxes: DragBoxes | null;
|
|
25
26
|
/** The last pointer move, followed at the next frame. */
|
|
26
27
|
event: PointerEvent | null;
|
|
27
28
|
/** Takes back the pointer move waiting for the next frame. */
|
|
28
29
|
waiting: (() => void) | null;
|
|
30
|
+
/** A scroll asked for the next frame, not the pointer: it tells only what it changed. */
|
|
31
|
+
scrolled: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface Aim {
|
|
34
|
+
under: DropTarget | null;
|
|
35
|
+
at: Point | null;
|
|
36
|
+
bound: Rect | null;
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* Content the user moves with the pointer, a finger (a long press) or the arrow keys. The JSX children sit in a
|
|
@@ -51,6 +59,8 @@ export declare class Draggable extends Control<HTMLDivElement, DraggableProps> {
|
|
|
51
59
|
handlePart: ComponentBase | null;
|
|
52
60
|
/** The handle had no role of its own: the draggable gave it one. */
|
|
53
61
|
gaveRole: boolean;
|
|
62
|
+
/** Takes `data-landing` away once the place the pointer let it go is drawn. */
|
|
63
|
+
stopLanding: (() => void) | null;
|
|
54
64
|
constructor(props?: IBaseProp<DraggableProps>);
|
|
55
65
|
get axis(): DragAxis;
|
|
56
66
|
set axis(value: Bind<DragAxis>);
|
|
@@ -100,12 +110,13 @@ export declare class Draggable extends Control<HTMLDivElement, DraggableProps> {
|
|
|
100
110
|
within(dx: number, dy: number, rect: Rect | null, bound: Rect | null): DragPosition;
|
|
101
111
|
pointerDown(e: PointerEvent): void;
|
|
102
112
|
pointerMove(e: PointerEvent): void;
|
|
103
|
-
readonly readAim: () =>
|
|
104
|
-
readonly follow: (
|
|
113
|
+
readonly readAim: () => Aim;
|
|
114
|
+
readonly follow: (aim: Aim) => void;
|
|
105
115
|
pointerUp(e: PointerEvent): void;
|
|
106
116
|
start(e: PointerEvent): boolean;
|
|
107
117
|
track(target: DropTarget | null, e?: Event): void;
|
|
108
118
|
end(e: Event | null, drop: boolean): void;
|
|
119
|
+
land(): void;
|
|
109
120
|
keyDown(e: KeyboardEvent): void;
|
|
110
121
|
announce(): void;
|
|
111
122
|
}
|
|
@@ -209,7 +209,7 @@ export declare class MxForm extends FocusContainer<HTMLDialogElement, FormProps>
|
|
|
209
209
|
private barPointerDown;
|
|
210
210
|
/** A press on the handle of `edge`: the form follows the pointer from that side or corner. */
|
|
211
211
|
private resizePointerDown;
|
|
212
|
-
/** Follows the pointer from `e` until it is released, then keeps the new place and size. */
|
|
212
|
+
/** Follows the pointer from `e` until it is released, then keeps the new place and size; a press that moved nothing keeps nothing. */
|
|
213
213
|
private drag;
|
|
214
214
|
/** After a move or a resize, the props say where the form is and how big. */
|
|
215
215
|
private readonly keepGeometry;
|