@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { data } from '@motifx-community/data';
|
|
2
|
+
import type { PivotGridField } from '../pivot-grid-field';
|
|
3
|
+
import type { PivotExpansion } from './PivotExpansion';
|
|
4
|
+
import type { PivotFields } from './PivotFields';
|
|
5
|
+
/** The fields' types as the data layer reads rows in memory with them, by the names the pivot asks for the fields by. */
|
|
6
|
+
export declare function fieldTypes<T>(fields: PivotFields<T>): Record<string, data.FieldType>;
|
|
7
|
+
/**
|
|
8
|
+
* Loads the pivot of the fields: rows in memory through an `ArrayAdapter` of its own, or a data source's query through
|
|
9
|
+
* its adapter. Where the rows are in the browser every member is computed at once, so opening one only shows it; a
|
|
10
|
+
* server computes the members open, and is asked again when one opens. A new load stops the one before.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PivotLoader<T> {
|
|
13
|
+
private running;
|
|
14
|
+
private own;
|
|
15
|
+
/** Whether the members open are what is loaded: the source's adapter computes pivots. */
|
|
16
|
+
remote(source: data.DataSource<T, any> | null): boolean;
|
|
17
|
+
/** The pivot of `fields` over `rows`, or over `source` when there is one. Rejects with an `AbortError` when a later load starts. */
|
|
18
|
+
load(rows: readonly T[], source: data.DataSource<T, any> | null, fields: PivotFields<T>, expansion: PivotExpansion, locale: string): Promise<data.PivotLoadResult>;
|
|
19
|
+
/**
|
|
20
|
+
* The members of one field's levels over every row the source's own query passes (the fields' own filters left out),
|
|
21
|
+
* each with its row count: what the field's header filter offers.
|
|
22
|
+
*/
|
|
23
|
+
members(rows: readonly T[], source: data.DataSource<T, any> | null, fields: PivotFields<T>, field: PivotGridField<T>, locale: string, signal: AbortSignal): Promise<data.PivotLoadResult>;
|
|
24
|
+
/** Stops the load under way. */
|
|
25
|
+
stop(): void;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
/** The adapter over the rows, with the fields' types; made again when the rows, the types or the locale change. */
|
|
28
|
+
private adapterOf;
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { PivotGridSheet } from '../pivot-grid-sheet';
|
|
2
|
+
import type { PivotTable } from './PivotTable';
|
|
3
|
+
import type { PivotTexts } from './PivotTexts';
|
|
4
|
+
/** What a sheet is laid out with: its rows of column headers or none, the widths of its columns on screen, its locale and direction. */
|
|
5
|
+
export interface PivotSheetOptions {
|
|
6
|
+
headers: boolean;
|
|
7
|
+
/** The widths of the columns of row headers, in pixels. */
|
|
8
|
+
headerWidths: readonly number[];
|
|
9
|
+
/** The width of a data column, by its place, in pixels. */
|
|
10
|
+
dataWidth(column: number): number;
|
|
11
|
+
locale: string;
|
|
12
|
+
rtl: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A pivot laid out as rows of cells for a file: the corner and the rows of column headers (`head`), then the lines of
|
|
16
|
+
* the table, a run at a time (`add`): a pivot read in parts has each run's lines and values read first. A header over
|
|
17
|
+
* several lines or levels is merged over them.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PivotSheetBuilder<T> {
|
|
20
|
+
private readonly table;
|
|
21
|
+
private readonly texts;
|
|
22
|
+
private readonly options;
|
|
23
|
+
private readonly head;
|
|
24
|
+
private readonly body;
|
|
25
|
+
private readonly merges;
|
|
26
|
+
private readonly headerRows;
|
|
27
|
+
private readonly headerColumns;
|
|
28
|
+
private readonly tree;
|
|
29
|
+
private levels;
|
|
30
|
+
constructor(table: PivotTable<T>, texts: PivotTexts<T>, options: PivotSheetOptions);
|
|
31
|
+
/** The rows of lines added. */
|
|
32
|
+
get rows(): number;
|
|
33
|
+
/** Writes the corner and the rows of column headers, once every column line is known. */
|
|
34
|
+
writeHead(): void;
|
|
35
|
+
/** Adds the rows of the lines from `first` up to `end`: their row headers, and their values where they cross every column. */
|
|
36
|
+
add(first: number, end: number): void;
|
|
37
|
+
/** The sheet of the head and the rows added. */
|
|
38
|
+
sheet(): PivotGridSheet<T>;
|
|
39
|
+
/** A header cell: a member, a total, the grand total or a data field's title, as the table shows it. */
|
|
40
|
+
private header;
|
|
41
|
+
/** An empty cell, or the part of a merged header after its first; bold on a total's line. */
|
|
42
|
+
private empty;
|
|
43
|
+
private merge;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { LayoutStorage } from '../../datagrid/layout-storage';
|
|
2
|
+
import type { PivotGridState } from '../pivot-grid-state';
|
|
3
|
+
/**
|
|
4
|
+
* A pivot's state in `localStorage` (or the storage given) under its `layoutKey`. Dates among filter values and member
|
|
5
|
+
* keys come back as dates. Storage can be missing, full or blocked (a private window, a sandbox): then nothing is kept
|
|
6
|
+
* and nothing fails; a kept value that cannot be read is no state.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PivotStateStore {
|
|
9
|
+
private readonly key;
|
|
10
|
+
private readonly storage?;
|
|
11
|
+
constructor(key: string, storage?: LayoutStorage | undefined);
|
|
12
|
+
private get place();
|
|
13
|
+
/** The kept state, or `null` when there is none or it cannot be read. */
|
|
14
|
+
read(): PivotGridState | null;
|
|
15
|
+
write(state: PivotGridState): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
18
|
+
/** A state as it was given or kept, its parts that cannot be read left out; `null` for no state. */
|
|
19
|
+
export declare function readState(value: unknown): PivotGridState | null;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { PivotAxisWindow, PivotWindowHeader, PivotWindowLine } from './PivotAxisWindow';
|
|
2
|
+
import type { PivotCellWindow } from './PivotCellWindow';
|
|
3
|
+
import { type PivotDisplaySource } from './PivotDisplay';
|
|
4
|
+
import type { PivotFields } from './PivotFields';
|
|
5
|
+
import type { PivotLayout, PivotLayoutOptions } from './PivotLayout';
|
|
6
|
+
type Axis = 'row' | 'column';
|
|
7
|
+
/** The lines of an axis as the table shows them, whether the whole axis is known or it is read in parts. */
|
|
8
|
+
export interface PivotAxisLines {
|
|
9
|
+
readonly length: number;
|
|
10
|
+
/** The line at a place. */
|
|
11
|
+
at(i: number): PivotWindowLine;
|
|
12
|
+
/** The place of the line a key names (`placeKey`); -1 for none known. */
|
|
13
|
+
indexOf(key: string): number;
|
|
14
|
+
/** The header cells over the lines from `first` up to `end`, each with all its lines. */
|
|
15
|
+
headers(first: number, end: number): PivotWindowHeader[];
|
|
16
|
+
}
|
|
17
|
+
/** What the view draws: the lines of both axes, their headers and the values where they cross. */
|
|
18
|
+
export interface PivotTable<T> {
|
|
19
|
+
readonly fields: PivotFields<T>;
|
|
20
|
+
readonly options: PivotLayoutOptions;
|
|
21
|
+
readonly rows: PivotAxisLines;
|
|
22
|
+
readonly columns: PivotAxisLines;
|
|
23
|
+
/** The levels of row headers; the rows of column headers. */
|
|
24
|
+
readonly rowDepth: number;
|
|
25
|
+
readonly columnDepth: number;
|
|
26
|
+
/** Read in parts: the lines and values come as the view reaches them. */
|
|
27
|
+
readonly parts: boolean;
|
|
28
|
+
measuresOn(axis: Axis): boolean;
|
|
29
|
+
/** The data field a cell shows: the row's, else the column's, else the only one; -1 without data fields. */
|
|
30
|
+
measureOf(row: PivotWindowLine, column: PivotWindowLine): number;
|
|
31
|
+
/**
|
|
32
|
+
* The value where two lines cross, as the cell shows it (its data field's display calculation done); `undefined` where
|
|
33
|
+
* no row falls, on a heading line, and while not read.
|
|
34
|
+
*/
|
|
35
|
+
value(row: PivotWindowLine, column: PivotWindowLine): unknown;
|
|
36
|
+
/** Whether the value where two lines cross is known, and all it is worked out from (a heading line's is: it has none). */
|
|
37
|
+
ready(row: PivotWindowLine, column: PivotWindowLine): boolean;
|
|
38
|
+
}
|
|
39
|
+
/** A table of a whole result: a `PivotLayout`'s lines, headers and values. */
|
|
40
|
+
export declare class PivotWholeTable<T> implements PivotTable<T> {
|
|
41
|
+
readonly layout: PivotLayout<T>;
|
|
42
|
+
readonly rows: PivotAxisLines;
|
|
43
|
+
readonly columns: PivotAxisLines;
|
|
44
|
+
readonly parts = false;
|
|
45
|
+
private readonly display;
|
|
46
|
+
constructor(layout: PivotLayout<T>);
|
|
47
|
+
get fields(): PivotFields<T>;
|
|
48
|
+
get options(): PivotLayoutOptions;
|
|
49
|
+
get rowDepth(): number;
|
|
50
|
+
get columnDepth(): number;
|
|
51
|
+
measuresOn(axis: Axis): boolean;
|
|
52
|
+
measureOf(row: PivotWindowLine, column: PivotWindowLine): number;
|
|
53
|
+
value(row: PivotWindowLine, column: PivotWindowLine): unknown;
|
|
54
|
+
ready(): boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A table read in parts: the lines of two axis windows and the values of a cell window. A new one is made each time an
|
|
58
|
+
* axis changes how its lines stand (a member opens, a new layout); parts read keep the same one.
|
|
59
|
+
*/
|
|
60
|
+
export declare class PivotWindowTable<T> implements PivotTable<T> {
|
|
61
|
+
readonly fields: PivotFields<T>;
|
|
62
|
+
readonly options: PivotLayoutOptions;
|
|
63
|
+
readonly rowWindow: PivotAxisWindow<T>;
|
|
64
|
+
readonly columnWindow: PivotAxisWindow<T>;
|
|
65
|
+
readonly cells: PivotCellWindow;
|
|
66
|
+
readonly rows: PivotAxisLines;
|
|
67
|
+
readonly columns: PivotAxisLines;
|
|
68
|
+
readonly parts = true;
|
|
69
|
+
private readonly display;
|
|
70
|
+
constructor(fields: PivotFields<T>, options: PivotLayoutOptions, rowWindow: PivotAxisWindow<T>, columnWindow: PivotAxisWindow<T>, cells: PivotCellWindow, running: NonNullable<PivotDisplaySource['running']>);
|
|
71
|
+
get rowDepth(): number;
|
|
72
|
+
get columnDepth(): number;
|
|
73
|
+
measuresOn(axis: Axis): boolean;
|
|
74
|
+
measureOf(row: PivotWindowLine, column: PivotWindowLine): number;
|
|
75
|
+
value(row: PivotWindowLine, column: PivotWindowLine): unknown;
|
|
76
|
+
ready(row: PivotWindowLine, column: PivotWindowLine): boolean;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { data } from '@motifx-community/data';
|
|
2
|
+
import type { UiStrings } from '../../../core/ui-strings';
|
|
3
|
+
import type { CellFormatter } from '../../../parts/table/CellFormatter';
|
|
4
|
+
import type { PivotAxisLevel, PivotFields } from './PivotFields';
|
|
5
|
+
import type { PivotLine } from './pivot-line';
|
|
6
|
+
type Text = (key: keyof UiStrings, values?: Record<string, unknown>) => string;
|
|
7
|
+
/**
|
|
8
|
+
* The texts of a pivot: a member by its level's interval and its field's type and format, a total by its member, a
|
|
9
|
+
* value by its data field.
|
|
10
|
+
*/
|
|
11
|
+
export declare class PivotTexts<T> {
|
|
12
|
+
private readonly fields;
|
|
13
|
+
private readonly formatter;
|
|
14
|
+
private readonly text;
|
|
15
|
+
private readonly month;
|
|
16
|
+
private readonly weekday;
|
|
17
|
+
constructor(fields: PivotFields<T>, formatter: CellFormatter, text: Text);
|
|
18
|
+
/** A member's text; the grand total's for the root of an axis. */
|
|
19
|
+
member(axis: 'row' | 'column', member: data.PivotMember): string;
|
|
20
|
+
/** The text of a member's total ("Ankara total"), or of the grand total. */
|
|
21
|
+
total(axis: 'row' | 'column', member: data.PivotMember): string;
|
|
22
|
+
/**
|
|
23
|
+
* A line as it is read out and copied: its members from the top down (“East › Ankara”), a total, or the grand total;
|
|
24
|
+
* with `measure`, the title of the data field the line shows after them.
|
|
25
|
+
*/
|
|
26
|
+
line(axis: 'row' | 'column', line: PivotLine, measure?: boolean): string;
|
|
27
|
+
/** A member's key as its level shows it: a year, a quarter, a month's or a weekday's name, a range, or the value formatted. */
|
|
28
|
+
key(level: PivotAxisLevel<T>, key: unknown): string;
|
|
29
|
+
/** What a cell without a value is read as. */
|
|
30
|
+
noValue(): string;
|
|
31
|
+
/** What a member or a value not read yet is read as, in a pivot read in parts. */
|
|
32
|
+
loading(): string;
|
|
33
|
+
/**
|
|
34
|
+
* A value of a data field as its cell shows it; `''` for none. A count shows as a plain number and a share as a
|
|
35
|
+
* percentage, unless the field has a format; what `calculateSummaryValue` gives, by what it is.
|
|
36
|
+
*/
|
|
37
|
+
value(measure: number, value: unknown): string;
|
|
38
|
+
/**
|
|
39
|
+
* The `Intl` options a value of a data field shows with, as `value` writes it: what a file writes a number or a date
|
|
40
|
+
* with, kept a number or a date. `undefined` for any other value, and where the field's `format` is a function.
|
|
41
|
+
*/
|
|
42
|
+
valueFormat(measure: number, value: unknown): {
|
|
43
|
+
number?: Intl.NumberFormatOptions;
|
|
44
|
+
date?: Intl.DateTimeFormatOptions;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { data } from '@motifx-community/data';
|
|
2
|
+
import { PivotCellWindow } from './PivotCellWindow';
|
|
3
|
+
import type { PivotExpansion } from './PivotExpansion';
|
|
4
|
+
import type { PivotFields } from './PivotFields';
|
|
5
|
+
import type { PivotLayoutOptions } from './PivotLayout';
|
|
6
|
+
import { PivotWindowTable } from './PivotTable';
|
|
7
|
+
import type { PivotTexts } from './PivotTexts';
|
|
8
|
+
type Axis = 'row' | 'column';
|
|
9
|
+
type Range = {
|
|
10
|
+
first: number;
|
|
11
|
+
end: number;
|
|
12
|
+
};
|
|
13
|
+
/** How a pivot read in parts reads: its parts' sizes, and how long a jump waits for the scroll to stop. */
|
|
14
|
+
export interface PivotWindowsOptions {
|
|
15
|
+
rowBlock: number;
|
|
16
|
+
columnBlock: number;
|
|
17
|
+
cacheBlocks: number;
|
|
18
|
+
scrollStopMs: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A pivot read in parts from a source that computes them: its two axes and its values, read as the view reaches them.
|
|
22
|
+
* The table it gives is made anew each time an axis changes how its lines stand; the values read stay through a new
|
|
23
|
+
* layout of the same fields (a member opened, the totals moved) and go with a new source query or new fields.
|
|
24
|
+
*/
|
|
25
|
+
export declare class PivotWindows<T> {
|
|
26
|
+
private readonly source;
|
|
27
|
+
private readonly fields;
|
|
28
|
+
private readonly expansion;
|
|
29
|
+
private readonly layout;
|
|
30
|
+
private readonly texts;
|
|
31
|
+
private readonly collator;
|
|
32
|
+
private readonly options;
|
|
33
|
+
readonly cells: PivotCellWindow;
|
|
34
|
+
private rows;
|
|
35
|
+
private columns;
|
|
36
|
+
private drawn;
|
|
37
|
+
private last;
|
|
38
|
+
private timer;
|
|
39
|
+
/** The copies and exports reading their cells now: what they read is not let go of. */
|
|
40
|
+
private copying;
|
|
41
|
+
/** Counts the members opened and closed: an export reading the whole table stops at one. */
|
|
42
|
+
private opened;
|
|
43
|
+
private disposed;
|
|
44
|
+
/** How each level of an axis is ordered by a data field; `null` for its own order. */
|
|
45
|
+
private readonly orders;
|
|
46
|
+
/** The running totals the data fields show, by data field. */
|
|
47
|
+
private readonly runs;
|
|
48
|
+
/** Some data field works out what it shows from other cells. */
|
|
49
|
+
private readonly displays;
|
|
50
|
+
/** What display calculations read beside a member on each axis: the siblings next to it, its parent. */
|
|
51
|
+
private readonly beside;
|
|
52
|
+
constructor(source: data.DataSource<T, any>, fields: PivotFields<T>, expansion: PivotExpansion, layout: PivotLayoutOptions, texts: PivotTexts<T>, collator: Intl.Collator, options: PivotWindowsOptions, cells?: PivotCellWindow);
|
|
53
|
+
/** Reads where the open members stand on both axes. */
|
|
54
|
+
prepare(): Promise<void>;
|
|
55
|
+
/** The table as it stands now. */
|
|
56
|
+
table(): PivotWindowTable<T>;
|
|
57
|
+
/**
|
|
58
|
+
* The view shows these lines: the parts of lines they and half a part past each edge reach are read, a part at a time,
|
|
59
|
+
* then their values. A move of more than a part waits until the scroll stops, so the parts passed over are not read,
|
|
60
|
+
* and lets go of what was on its way. `came` is told when something came; `failed` when reading failed.
|
|
61
|
+
*/
|
|
62
|
+
view(rows: Range, columns: Range, pinned: {
|
|
63
|
+
rows: readonly string[];
|
|
64
|
+
columns: readonly string[];
|
|
65
|
+
}, came: () => void, failed: (error: unknown) => void): void;
|
|
66
|
+
/**
|
|
67
|
+
* Reads every line and value of these rectangles of lines (`top` to `bottom`, `start` to `end`, both in): what Ctrl+C
|
|
68
|
+
* copies. The parts read stay until then, whatever `cacheBlocks` says.
|
|
69
|
+
*/
|
|
70
|
+
readRects(rects: readonly {
|
|
71
|
+
top: number;
|
|
72
|
+
bottom: number;
|
|
73
|
+
start: number;
|
|
74
|
+
end: number;
|
|
75
|
+
}[]): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Every member of a level of an axis, in the axis's order, with their values where they cross these members of the
|
|
78
|
+
* other axis read into `cells`: what a chart of the level draws. The children are read whole, level by level.
|
|
79
|
+
*/
|
|
80
|
+
levelMembers(axis: Axis, level: number, others: readonly (readonly unknown[])[]): Promise<data.PivotMember[]>;
|
|
81
|
+
/**
|
|
82
|
+
* Reads the whole table for an export: every column line first, kept until the end (`columnsRead` is told then), then
|
|
83
|
+
* the rows a run at a time with their values, a run as many rows as `cells` allows across every column; `take` writes
|
|
84
|
+
* each run before the next one is read, a run's lines kept until then whatever `cacheBlocks` says and let go of after.
|
|
85
|
+
* `progress` is told the rows read of all. Stops with an `AbortError` at `signal`, and where the windows are let go of
|
|
86
|
+
* or a member opens or closes meanwhile.
|
|
87
|
+
*/
|
|
88
|
+
readAll(take: (first: number, end: number) => void, columnsRead: () => void, progress: (loaded: number, total: number) => void, signal: AbortSignal, cells: number): Promise<void>;
|
|
89
|
+
/** Opens or closes a member; the table is made anew. */
|
|
90
|
+
setOpen(axis: Axis, path: readonly unknown[], open: boolean): Promise<void>;
|
|
91
|
+
dispose(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Reads the parts of the lines in view and then their values; whether this call read anything. A part another call
|
|
94
|
+
* has on its way is drawn when that one ends: telling it here as well would draw again and again, never letting it end.
|
|
95
|
+
*/
|
|
96
|
+
private read;
|
|
97
|
+
/**
|
|
98
|
+
* Reads the values of the lines read in two ranges, with what display calculations need of them: the parts of the
|
|
99
|
+
* siblings before and after, then the values where the members, their parents, those siblings and the grand totals
|
|
100
|
+
* cross, with the running totals. Whether it read any.
|
|
101
|
+
*/
|
|
102
|
+
private values;
|
|
103
|
+
/**
|
|
104
|
+
* Members with what display calculations read beside them: the grand total, each one's parent and the siblings just
|
|
105
|
+
* before and after it where a calculation reads them, and where a running total is added up here, every sibling before it.
|
|
106
|
+
*/
|
|
107
|
+
private around;
|
|
108
|
+
/** The members of the lines read in a range whose values are wanted: members, totals and the grand total. */
|
|
109
|
+
private paths;
|
|
110
|
+
/** What the data layer is asked for the members of an axis that leaves out the empty ones (`showEmpty…: false`). */
|
|
111
|
+
private nonEmpty;
|
|
112
|
+
private axis;
|
|
113
|
+
/**
|
|
114
|
+
* A level as its axis window reads it: ordered by a data field on the data layer, or here by the field's `compare` or
|
|
115
|
+
* by its members' texts; with totals where the field shows them; open as the expansion opens its members.
|
|
116
|
+
*/
|
|
117
|
+
private level;
|
|
118
|
+
private dataLevels;
|
|
119
|
+
}
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PivotWindowLine } from './PivotAxisWindow';
|
|
2
|
+
import type { PivotAxisLines } from './PivotTable';
|
|
3
|
+
import type { PivotTexts } from './PivotTexts';
|
|
4
|
+
/** What Ctrl+C puts on the clipboard, and how many cells it took. */
|
|
5
|
+
export interface PivotCopy {
|
|
6
|
+
text: string;
|
|
7
|
+
html: string;
|
|
8
|
+
cells: number;
|
|
9
|
+
}
|
|
10
|
+
/** The lines of both axes, as a table has them. */
|
|
11
|
+
interface Lines {
|
|
12
|
+
readonly rows: PivotAxisLines;
|
|
13
|
+
readonly columns: PivotAxisLines;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The cells of the ranges with their headers, as Ctrl+C copies them: a first line with the name of each column taken
|
|
17
|
+
* (`corner` before them), then a line per row taken that starts with the row's name; a cell outside every range is
|
|
18
|
+
* empty. Tab-separated text and the same as an HTML table. `shown` is a cell's text as it shows it.
|
|
19
|
+
*/
|
|
20
|
+
export declare function copyCells<T>(lines: Lines, texts: PivotTexts<T>, cells: readonly {
|
|
21
|
+
row: number;
|
|
22
|
+
column: number;
|
|
23
|
+
}[], shown: (row: PivotWindowLine, column: PivotWindowLine) => string, corner: string): PivotCopy | null;
|
|
24
|
+
/** One text alone, as Ctrl+C copies the active cell without ranges. */
|
|
25
|
+
export declare function copyText(text: string): PivotCopy;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CellFormatter } from '../../../parts/table/CellFormatter';
|
|
2
|
+
import type { PivotGridExportOptions } from '../pivot-grid-export-options';
|
|
3
|
+
import type { PivotGridSheet } from '../pivot-grid-sheet';
|
|
4
|
+
/**
|
|
5
|
+
* A pivot's sheet as CSV text for a spreadsheet: a byte order mark, the locale's separator, the rows of column headers
|
|
6
|
+
* first, a merged header's text in its first cell. The texts as the pivot shows them, or the values of the data cells in
|
|
7
|
+
* a neutral form (`values: 'raw'`).
|
|
8
|
+
*/
|
|
9
|
+
export declare function pivotCsv(sheet: PivotGridSheet, options: PivotGridExportOptions, formatter: CellFormatter): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { data } from '@motifx-community/data';
|
|
2
|
+
/**
|
|
3
|
+
* A header cell of an axis: a member over the lines under it, a total or the grand total down to the last level, or a
|
|
4
|
+
* data field's title. Along the axis it covers `span` lines from `line`; across, `depthSpan` levels from `depth`.
|
|
5
|
+
*/
|
|
6
|
+
export interface PivotHeaderCell {
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly span: number;
|
|
9
|
+
/** The level, from 0; the data fields' titles stand one level below the last. */
|
|
10
|
+
readonly depth: number;
|
|
11
|
+
readonly depthSpan: number;
|
|
12
|
+
readonly kind: 'member' | 'total' | 'grand' | 'measure';
|
|
13
|
+
/** The member (the axis root for the grand total). */
|
|
14
|
+
readonly member: data.PivotMember;
|
|
15
|
+
/** A `measure` cell's data field; otherwise -1. */
|
|
16
|
+
readonly measure: number;
|
|
17
|
+
/** Whether the member is open; `null` when it cannot open (the last level, totals and titles). */
|
|
18
|
+
readonly open: boolean | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PivotWindowLine } from './PivotAxisWindow';
|
|
2
|
+
/** A line as its key reads it: its kind, its member's path and its data field. */
|
|
3
|
+
type Keyed = Pick<PivotWindowLine, 'kind' | 'measure'> & {
|
|
4
|
+
readonly member: {
|
|
5
|
+
readonly path: readonly unknown[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/** A line as it is drawn: its kind, its member and its data field. */
|
|
9
|
+
export declare const lineKey: (l: Keyed) => string;
|
|
10
|
+
/** The key `placeKey` gives a line of this kind, member and data field. */
|
|
11
|
+
export declare const placeKeyOf: (kind: 'member' | 'total' | 'grand', path: readonly unknown[], measure: number) => string;
|
|
12
|
+
/**
|
|
13
|
+
* A line as the active cell and the cell ranges remember it: a member keeps it when it opens or closes (its line's kind
|
|
14
|
+
* changes); a member not read yet is named by its place (`{ loading: place }`), which stays good once it is read.
|
|
15
|
+
*/
|
|
16
|
+
export declare const placeKey: (l: Keyed) => string;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { data } from '@motifx-community/data';
|
|
2
|
+
/**
|
|
3
|
+
* A line of an axis as drawn (a row of the table, or a column): a member, the total of an open member, the grand total,
|
|
4
|
+
* or in the tree layout the line that heads an open member's children.
|
|
5
|
+
*/
|
|
6
|
+
export interface PivotLine {
|
|
7
|
+
/** The member; the axis root for the grand total. */
|
|
8
|
+
readonly member: data.PivotMember;
|
|
9
|
+
readonly kind: 'member' | 'total' | 'grand' | 'header';
|
|
10
|
+
/** The data field the line shows when the data fields run along this axis; otherwise -1. */
|
|
11
|
+
readonly measure: number;
|
|
12
|
+
/** The member's place along the axis: the lines of one member, one per data field, share it. */
|
|
13
|
+
readonly position: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PivotGridField } from './pivot-grid-field';
|
|
2
|
+
/** A cell of the pivot where a row and a column cross: what `cellTemplate`, `cellClass` and `onCellClick` receive. */
|
|
3
|
+
export interface PivotGridCellContext<T = any> {
|
|
4
|
+
/** The keys from the top row level down to the cell's row member; empty for the grand total. */
|
|
5
|
+
readonly rowPath: readonly unknown[];
|
|
6
|
+
readonly columnPath: readonly unknown[];
|
|
7
|
+
/** Whether the row is a member, the total of an open member, or the grand total. */
|
|
8
|
+
readonly rowKind: 'member' | 'total' | 'grand';
|
|
9
|
+
readonly columnKind: 'member' | 'total' | 'grand';
|
|
10
|
+
/** The data field the cell shows; `undefined` without data fields. */
|
|
11
|
+
readonly dataField: PivotGridField<T> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The value the cell shows: the summary, or what its data field's display calculation makes of it (a share as a
|
|
14
|
+
* fraction, `0.25` for 25%); `undefined` when no row falls in both, or the calculation gives nothing.
|
|
15
|
+
*/
|
|
16
|
+
readonly value: unknown;
|
|
17
|
+
/** The value as the cell shows it. */
|
|
18
|
+
readonly text: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PivotGridCellContext } from './pivot-grid-cell-context';
|
|
2
|
+
/** Occurs when a data cell is double-clicked, or Enter is pressed on it: what drilling down into it starts from. */
|
|
3
|
+
export interface PivotGridCellDblClickEventArgs<T = any> extends PivotGridCellContext<T> {
|
|
4
|
+
readonly event: MouseEvent | KeyboardEvent;
|
|
5
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** A data cell as a cell range names it: its row's and its column's members and kinds, and its data field. */
|
|
2
|
+
export interface PivotGridCellPoint {
|
|
3
|
+
/** The keys from the top row level down to the cell's row member; empty for the grand total. */
|
|
4
|
+
rowPath: readonly unknown[];
|
|
5
|
+
columnPath: readonly unknown[];
|
|
6
|
+
/** `'member'`, the total of an open member (`'total'`), or `'grand'`; by default `'member'`, `'grand'` for an empty path. */
|
|
7
|
+
rowKind?: 'member' | 'total' | 'grand';
|
|
8
|
+
columnKind?: 'member' | 'total' | 'grand';
|
|
9
|
+
/** Where several data fields run along an axis, the data field's place among them. The default is 0. */
|
|
10
|
+
dataField?: number;
|
|
11
|
+
}
|
|
12
|
+
/** A rectangle of data cells, from the cell where it started (`from`) to its far corner (`to`). */
|
|
13
|
+
export interface PivotGridCellRange {
|
|
14
|
+
from: PivotGridCellPoint;
|
|
15
|
+
to: PivotGridCellPoint;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PivotGridCellRange } from './pivot-grid-cell-range';
|
|
2
|
+
/** Occurs when the cell ranges change: by the user, or from code and as a new layout leaves a range without its corner. */
|
|
3
|
+
export interface PivotGridCellSelectionChangedEventArgs {
|
|
4
|
+
readonly ranges: readonly PivotGridCellRange[];
|
|
5
|
+
readonly byUser: boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ChartSeries } from '../chart/chart-series';
|
|
2
|
+
/** A row of a pivot's chart: a line of the argument axis, its text in `x` and its value in each series's field. */
|
|
3
|
+
export interface PivotGridChartRow {
|
|
4
|
+
readonly x: string;
|
|
5
|
+
readonly [field: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* What `chartData` gives a `Chart`: its rows, the field of their place along its axis, and its series. `data` and
|
|
9
|
+
* `series` are tracked functions: the chart follows the pivot as it loads, opens a member, scrolls or is arranged anew.
|
|
10
|
+
*/
|
|
11
|
+
export interface PivotGridChartData {
|
|
12
|
+
readonly data: () => readonly PivotGridChartRow[];
|
|
13
|
+
readonly xField: 'x';
|
|
14
|
+
readonly series: () => readonly ChartSeries<PivotGridChartRow>[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ChartSeriesType } from '../chart/chart-series-type';
|
|
2
|
+
/** What `chartData` draws of a pivot. */
|
|
3
|
+
export interface PivotGridChartOptions {
|
|
4
|
+
/** The axis whose lines stand along the chart's axis, a row of the chart each; the other axis's lines are the series. The default is `'row'`. */
|
|
5
|
+
argumentAxis?: 'row' | 'column';
|
|
6
|
+
/**
|
|
7
|
+
* Draws the members of one level of the argument axis (0 is the top), every one of them, each with its summary, in
|
|
8
|
+
* place of the lines the table shows; where the pivot is read in parts, the level is read whole.
|
|
9
|
+
*/
|
|
10
|
+
level?: number;
|
|
11
|
+
/** Draws the totals of open members too. The default is `false`. */
|
|
12
|
+
totals?: boolean;
|
|
13
|
+
/** Draws the grand totals too. The default is `false`. */
|
|
14
|
+
grandTotals?: boolean;
|
|
15
|
+
/** The data fields drawn, by their `name`, `title`, `field` or place; by default every one, a series each. */
|
|
16
|
+
dataFields?: readonly (string | number)[];
|
|
17
|
+
/** How the series draw. The default is `'bar'`. */
|
|
18
|
+
type?: ChartSeriesType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PivotGridColumn } from './pivot-grid-column';
|
|
2
|
+
/** Occurs after a column was resized: by the user's drag or keys (`byUser`), or by `resizeColumn`. */
|
|
3
|
+
export interface PivotGridColumnResizedEventArgs<T = any> {
|
|
4
|
+
readonly column: PivotGridColumn<T>;
|
|
5
|
+
/** Its new width, in pixels. */
|
|
6
|
+
readonly width: number;
|
|
7
|
+
readonly byUser: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the user resizes columns: by dragging the end of a column's header (a title of the corner for a column of row
|
|
3
|
+
* headers), or with "Width" in its menu and the arrow keys. A data column takes its data field's width: resizing one
|
|
4
|
+
* resizes every column of that data field.
|
|
5
|
+
*/
|
|
6
|
+
export interface PivotGridColumnResizing {
|
|
7
|
+
/** The default is `true`; a field's `allowResizing: false` keeps its columns as they are anyway. */
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
/** The least width a column is resized to, in pixels. The default is `48`. */
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
/** The pixels an arrow key resizes by. The default is `10`. */
|
|
12
|
+
step?: number;
|
|
13
|
+
/** The pixels an arrow key resizes by while Shift is held. The default is `1`. */
|
|
14
|
+
fineStep?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PivotGridField } from './pivot-grid-field';
|
|
2
|
+
/**
|
|
3
|
+
* A column of the table as its width is kept: a row field's column of row headers (the tabular layout), the one column
|
|
4
|
+
* of row headers of the tree layout, the column of data field titles (several data fields down the rows), or the data
|
|
5
|
+
* columns of a data field; the data columns of no field where each shows several data fields, or none. A column is as
|
|
6
|
+
* wide as the user made it, else as its field's `width`; what the user made is kept in the state (a field's `width` in
|
|
7
|
+
* its entry, the others' in `widths`).
|
|
8
|
+
*/
|
|
9
|
+
export type PivotGridColumn<T = any> = {
|
|
10
|
+
readonly area: 'row';
|
|
11
|
+
readonly field: PivotGridField<T>;
|
|
12
|
+
} | {
|
|
13
|
+
readonly area: 'tree';
|
|
14
|
+
} | {
|
|
15
|
+
readonly area: 'titles';
|
|
16
|
+
} | {
|
|
17
|
+
readonly area: 'data';
|
|
18
|
+
readonly field?: PivotGridField<T>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { data } from '@motifx-community/data';
|
|
2
|
+
/** Occurs when a loaded pivot is drawn: after the first load, a reload, or a server's answer for an opened member. */
|
|
3
|
+
export interface PivotGridContentReadyEventArgs {
|
|
4
|
+
/** The members of both axes and their values, as the data layer gave them; `null` for a pivot read in parts. */
|
|
5
|
+
readonly result: data.PivotLoadResult | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { EventArgs } from '@motifx/core';
|
|
2
|
+
import type { MenuItem } from '../../parts/menu/menu-item';
|
|
3
|
+
import type { PivotGridCellContext } from './pivot-grid-cell-context';
|
|
4
|
+
import type { PivotGridField } from './pivot-grid-field';
|
|
5
|
+
/**
|
|
6
|
+
* Occurs before the pivot's menu opens, on a right click, a long press, the Menu key or Shift and F10: on a row or
|
|
7
|
+
* column header, a title in the corner, or a data cell. Change `items` (add, remove or reorder). Set `cancel = true` to
|
|
8
|
+
* open nothing; the menu opens only if `items` has items.
|
|
9
|
+
*/
|
|
10
|
+
export interface PivotGridContextMenuPreparingEventArgs<T = any> extends EventArgs {
|
|
11
|
+
/** Where it opens: a row header, a column header, the corner, or a data cell. */
|
|
12
|
+
readonly area: 'row' | 'column' | 'corner' | 'data';
|
|
13
|
+
/** On a header: a member, the total of an open member, the grand total, or a data field's title. */
|
|
14
|
+
readonly kind?: 'member' | 'total' | 'grand' | 'dataField';
|
|
15
|
+
/** On a header, its member's keys from the top level down; empty for the grand total. */
|
|
16
|
+
readonly path?: readonly unknown[];
|
|
17
|
+
/** The field of the header's level or of the corner's title, or the data field of a title. */
|
|
18
|
+
readonly field?: PivotGridField<T>;
|
|
19
|
+
/** On a data cell, the cell as `onCellClick` has it. */
|
|
20
|
+
readonly cell?: PivotGridCellContext<T>;
|
|
21
|
+
items: MenuItem[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EventArgs } from '@motifx/core';
|
|
2
|
+
/** Occurs before cells are copied to the clipboard (Ctrl+C, `copy()`). Change `text` or `html`, or set `cancel = true`. */
|
|
3
|
+
export interface PivotGridCopyingEventArgs extends EventArgs {
|
|
4
|
+
/** The tab-separated text: the cells of the ranges under their columns' names and beside their rows', or the active cell's text. */
|
|
5
|
+
text: string;
|
|
6
|
+
/** The same as an HTML table. */
|
|
7
|
+
html: string;
|
|
8
|
+
/** The cells of the ranges copied; 0 for the active cell alone. */
|
|
9
|
+
readonly cells: number;
|
|
10
|
+
}
|