@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,415 @@
|
|
|
1
|
+
import { type Bind, type Component, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
|
+
import { data } from '@motifx-community/data';
|
|
3
|
+
import { Control } from '../../core/control';
|
|
4
|
+
import type { UiStrings } from '../../core/ui-strings';
|
|
5
|
+
import { PivotLayout } from './model/PivotLayout';
|
|
6
|
+
import type { PivotGridChartData } from './pivot-grid-chart-data';
|
|
7
|
+
import type { PivotGridChartOptions } from './pivot-grid-chart-options';
|
|
8
|
+
import type { PivotGridCellClickEventArgs } from './pivot-grid-cell-click-event-args';
|
|
9
|
+
import type { PivotGridCellDblClickEventArgs } from './pivot-grid-cell-dbl-click-event-args';
|
|
10
|
+
import type { PivotGridDrillDown } from './pivot-grid-drill-down';
|
|
11
|
+
import type { PivotGridCellContext } from './pivot-grid-cell-context';
|
|
12
|
+
import type { PivotGridCellPoint, PivotGridCellRange } from './pivot-grid-cell-range';
|
|
13
|
+
import type { PivotGridCellSelectionChangedEventArgs } from './pivot-grid-cell-selection-changed-event-args';
|
|
14
|
+
import type { PivotGridColumn } from './pivot-grid-column';
|
|
15
|
+
import type { PivotGridColumnResizedEventArgs } from './pivot-grid-column-resized-event-args';
|
|
16
|
+
import type { PivotGridColumnResizing } from './pivot-grid-column-resizing';
|
|
17
|
+
import type { PivotGridContentReadyEventArgs } from './pivot-grid-content-ready-event-args';
|
|
18
|
+
import type { PivotGridContextMenuPreparingEventArgs } from './pivot-grid-context-menu-preparing-event-args';
|
|
19
|
+
import type { PivotGridCopyingEventArgs } from './pivot-grid-copying-event-args';
|
|
20
|
+
import type { PivotGridDataErrorEventArgs } from './pivot-grid-data-error-event-args';
|
|
21
|
+
import type { PivotGridExpandedEventArgs } from './pivot-grid-expanded-event-args';
|
|
22
|
+
import type { PivotGridExpandingEventArgs } from './pivot-grid-expanding-event-args';
|
|
23
|
+
import type { PivotGridExport } from './pivot-grid-export';
|
|
24
|
+
import type { PivotGridExportOptions } from './pivot-grid-export-options';
|
|
25
|
+
import type { PivotGridExportedEventArgs } from './pivot-grid-exported-event-args';
|
|
26
|
+
import type { PivotGridExportingEventArgs } from './pivot-grid-exporting-event-args';
|
|
27
|
+
import type { PivotGridSheet } from './pivot-grid-sheet';
|
|
28
|
+
import type { PivotGridSheetOptions } from './pivot-grid-sheet-options';
|
|
29
|
+
import type { PivotGridField } from './pivot-grid-field';
|
|
30
|
+
import type { PivotGridFieldChooser } from './pivot-grid-field-chooser';
|
|
31
|
+
import type { PivotGridFieldPanel } from './pivot-grid-field-panel';
|
|
32
|
+
import type { PivotGridFieldsChangedEventArgs } from './pivot-grid-fields-changed-event-args';
|
|
33
|
+
import type { PivotGridProps } from './pivot-grid-props';
|
|
34
|
+
import type { PivotGridState } from './pivot-grid-state';
|
|
35
|
+
/**
|
|
36
|
+
* A pivot table: the rows of `data` or a `dataSource` summed up by row fields down the side and column fields across
|
|
37
|
+
* the top, a value of every data field where they cross, with totals. The data layer computes it (`loadPivot`): in the
|
|
38
|
+
* browser for rows in memory, on the server where the source's adapter can. Members open and close; the table draws
|
|
39
|
+
* only the rows and columns in view, its headers kept at the top and the start.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <PivotGrid data={sales} fields={[
|
|
43
|
+
* { field: 'region', area: 'row' },
|
|
44
|
+
* { field: 'date', type: 'date', area: 'column', groupInterval: ['year', 'quarter'] },
|
|
45
|
+
* { field: 'amount', type: 'number', area: 'data', summaryType: 'sum' },
|
|
46
|
+
* ]} />
|
|
47
|
+
*/
|
|
48
|
+
export declare class PivotGrid<T = any> extends Control<HTMLDivElement, PivotGridProps<T>> {
|
|
49
|
+
readonly viewport: Component<HTMLDivElement>;
|
|
50
|
+
readonly head: Component<HTMLDivElement>;
|
|
51
|
+
readonly body: Component<HTMLDivElement>;
|
|
52
|
+
private readonly note;
|
|
53
|
+
private readonly noteText;
|
|
54
|
+
private readonly retry;
|
|
55
|
+
private readonly panel;
|
|
56
|
+
private readonly table;
|
|
57
|
+
private readonly panelView;
|
|
58
|
+
private readonly headerFilter;
|
|
59
|
+
private readonly filterValues;
|
|
60
|
+
private readonly chooser;
|
|
61
|
+
private readonly menu;
|
|
62
|
+
private readonly loader;
|
|
63
|
+
private readonly expansion;
|
|
64
|
+
private readonly arrangement;
|
|
65
|
+
private readonly progress;
|
|
66
|
+
/** Where `layoutKey` keeps the state, and the kept state, taken once the fields are given. */
|
|
67
|
+
private readonly stateStore;
|
|
68
|
+
private pending;
|
|
69
|
+
private model;
|
|
70
|
+
private loaded;
|
|
71
|
+
private laidOut;
|
|
72
|
+
/** The table drawn: the whole layout, or the lines and values read in parts. */
|
|
73
|
+
private drawn;
|
|
74
|
+
/** A source that computes the parts of pivots: the pivot is read in parts as the view reaches them. */
|
|
75
|
+
private windows;
|
|
76
|
+
/** The layout the windows were made for: another one makes them anew. */
|
|
77
|
+
private windowsShape;
|
|
78
|
+
private formatterCache;
|
|
79
|
+
private failure;
|
|
80
|
+
private watching;
|
|
81
|
+
private loadAsked;
|
|
82
|
+
/** Opened members that wait for a server's answer, told with `onExpanded` once it is drawn. */
|
|
83
|
+
private waiting;
|
|
84
|
+
private readonly cellClickEmitter;
|
|
85
|
+
private readonly cellDblClickEmitter;
|
|
86
|
+
private readonly expandingEmitter;
|
|
87
|
+
private readonly expandedEmitter;
|
|
88
|
+
private readonly contentReadyEmitter;
|
|
89
|
+
private readonly dataErrorEmitter;
|
|
90
|
+
private readonly fieldsChangedEmitter;
|
|
91
|
+
private readonly contextMenuPreparingEmitter;
|
|
92
|
+
private readonly cellSelectionChangedEmitter;
|
|
93
|
+
private readonly copyingEmitter;
|
|
94
|
+
private readonly exportingEmitter;
|
|
95
|
+
private readonly exportedEmitter;
|
|
96
|
+
/** Who listens to `onExporting`: a format the pivot does not write is written there. */
|
|
97
|
+
private exportingListeners;
|
|
98
|
+
private exportingEvent;
|
|
99
|
+
/** The panel over the table while an export runs, and what it shows. */
|
|
100
|
+
private readonly exportPanel;
|
|
101
|
+
private readonly exporting;
|
|
102
|
+
/** Stops the export the panel shows. */
|
|
103
|
+
private stopPanelExport;
|
|
104
|
+
/** The exports running, stopped when the pivot goes. */
|
|
105
|
+
private readonly exportRuns;
|
|
106
|
+
/** The widths the user gave columns: a field's by its place in `fields`, and those of the columns of no field. */
|
|
107
|
+
private readonly fieldWidths;
|
|
108
|
+
private readonly ownWidths;
|
|
109
|
+
private readonly columnResizedEmitter;
|
|
110
|
+
/** A column resized with the arrow keys ("Width" in its menu): its width before, and now. */
|
|
111
|
+
private adjusting;
|
|
112
|
+
/** Says what Ctrl+C copied. */
|
|
113
|
+
private readonly live;
|
|
114
|
+
/** Cell ranges given before the first layout: taken once it is drawn. */
|
|
115
|
+
private givenRanges;
|
|
116
|
+
/** The texts the last layout was drawn with. */
|
|
117
|
+
private drawnTexts;
|
|
118
|
+
/** Counts the draws, the parts read and the moves of the view: what a chart of the pivot follows. */
|
|
119
|
+
private readonly charted;
|
|
120
|
+
/** The lines in view, read in parts. */
|
|
121
|
+
private lastView;
|
|
122
|
+
/** The members of levels charts read, by the windows they were read from. */
|
|
123
|
+
private readonly levels;
|
|
124
|
+
constructor(props?: IBaseProp<PivotGridProps<T>>);
|
|
125
|
+
get data(): readonly T[];
|
|
126
|
+
set data(value: Bind<readonly T[]>);
|
|
127
|
+
get dataSource(): data.DataSource<T, any> | null;
|
|
128
|
+
set dataSource(value: Bind<data.DataSource<T, any> | null>);
|
|
129
|
+
get fields(): readonly PivotGridField<T>[];
|
|
130
|
+
set fields(value: Bind<readonly PivotGridField<T>[]>);
|
|
131
|
+
get fieldPanel(): PivotGridFieldPanel;
|
|
132
|
+
set fieldPanel(value: Bind<PivotGridFieldPanel>);
|
|
133
|
+
get fieldChooser(): PivotGridFieldChooser;
|
|
134
|
+
set fieldChooser(value: Bind<PivotGridFieldChooser>);
|
|
135
|
+
get cellSelection(): 'none' | 'single' | 'multiple';
|
|
136
|
+
set cellSelection(value: Bind<'none' | 'single' | 'multiple'>);
|
|
137
|
+
/** The fields as arranged now: `fields`, with the changes the user or `fieldOption` made to them since it was given. */
|
|
138
|
+
get arrangedFields(): readonly PivotGridField<T>[];
|
|
139
|
+
/**
|
|
140
|
+
* What the user arranged: the fields' areas, places, order and filters changed over `fields`, and the members opened
|
|
141
|
+
* or closed. Store it and give it back later, or set a `layoutKey`. Assigned, it starts again from `fields`.
|
|
142
|
+
*/
|
|
143
|
+
get state(): PivotGridState;
|
|
144
|
+
set state(value: PivotGridState);
|
|
145
|
+
/**
|
|
146
|
+
* The cell ranges (`cellSelection`), each from the cell where it started to its far corner, by its lines' members.
|
|
147
|
+
* Assign to set them (`[]` clears them); a range a corner of which the table does not show is left out.
|
|
148
|
+
*/
|
|
149
|
+
get cellRanges(): PivotGridCellRange[];
|
|
150
|
+
set cellRanges(ranges: readonly PivotGridCellRange[]);
|
|
151
|
+
/**
|
|
152
|
+
* Selects the cells from `from` to `to` (one cell without it), in place of the ranges or after them (`add`, with
|
|
153
|
+
* `cellSelection: 'multiple'`). Returns whether the table shows the range.
|
|
154
|
+
*/
|
|
155
|
+
selectCells(from: PivotGridCellPoint, to?: PivotGridCellPoint, add?: boolean): boolean;
|
|
156
|
+
clearCellSelection(): void;
|
|
157
|
+
/** The cells of the ranges, each once, row by row and in each row by column, as `onCellClick` gives a cell. */
|
|
158
|
+
get selectedCells(): PivotGridCellContext<T>[];
|
|
159
|
+
/**
|
|
160
|
+
* The rows a data cell sums up (its row's and column's members, the fields' filters, the source's query): as a filter,
|
|
161
|
+
* and as a data source of them. Where the backend applies the filter the data source reads from it, a part at a time;
|
|
162
|
+
* a field read with `value`, or a condition the backend cannot write, has the rows read and filtered here. `options`
|
|
163
|
+
* are the data source's (`loadMode`, `pageSize`, `sort` …).
|
|
164
|
+
*/
|
|
165
|
+
drillDown(cell: Pick<PivotGridCellPoint, 'rowPath' | 'columnPath' | 'rowKind' | 'columnKind'>, options?: Omit<Partial<data.DataSourceOptions<T, any>>, 'adapter' | 'filter'>): Promise<PivotGridDrillDown<T>>;
|
|
166
|
+
/**
|
|
167
|
+
* The pivot as a `Chart` draws it: a row per line of the argument axis (the rows by default), a series per line of the
|
|
168
|
+
* other axis and data field, the values and texts the cells show. `data` and `series` are tracked: the chart follows
|
|
169
|
+
* the pivot. Read in parts, it draws the lines in view; a `level` is read whole.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* const chart = pivot.chartData({ argumentAxis: 'row', type: 'bar' });
|
|
173
|
+
* <Chart data={chart.data} xField={chart.xField} series={chart.series} />
|
|
174
|
+
*/
|
|
175
|
+
chartData(options?: PivotGridChartOptions): PivotGridChartData;
|
|
176
|
+
private chartOf;
|
|
177
|
+
/** The members of a level of a pivot read in parts, read whole once and kept with the windows; none while they come. */
|
|
178
|
+
private levelInParts;
|
|
179
|
+
/**
|
|
180
|
+
* Copies as Ctrl+C does: the cells of the ranges under the names of their columns and beside those of their rows (a
|
|
181
|
+
* cell outside every range left empty), otherwise the active cell's text, as tab-separated text and an HTML table.
|
|
182
|
+
* Read in parts, the cells are read first, up to 100,000 of them. Resolves to the text, or `''` when nothing was copied.
|
|
183
|
+
*/
|
|
184
|
+
copy(): Promise<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Saves the pivot in a CSV file a spreadsheet opens: the rows of column headers, then a row per line of the table,
|
|
187
|
+
* every open member's (read whole where the pivot is read in parts), as `exportSheet` lays them out; UTF-8 with a byte
|
|
188
|
+
* order mark and the locale's separator. `onExporting` comes first. Resolves to the text, `''` when it was canceled.
|
|
189
|
+
*/
|
|
190
|
+
exportCsv(options?: PivotGridExportOptions): Promise<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Exports in a format, as the export button and "Export" in the menu do: `'csv'` runs `exportCsv`; any other format
|
|
193
|
+
* raises `onExporting` with that `format`, where the application writes the file (`exportPivotGrid` of the `excel`
|
|
194
|
+
* entry for `'xlsx'`, of the `pdf` entry for `'pdf'`).
|
|
195
|
+
*/
|
|
196
|
+
exportTo(format: string, options?: PivotGridExportOptions): Promise<void>;
|
|
197
|
+
/**
|
|
198
|
+
* Passes the pivot to `write`, a file writer, as a sheet of cells: the rows of column headers and the corner, then a
|
|
199
|
+
* row per line of the table, every open member's. A pivot read in parts is read whole first, a run of rows at a time,
|
|
200
|
+
* with progress, stopped by `signal` or the load panel's button. `onExported` follows once `write` finishes. It raises
|
|
201
|
+
* no `onExporting`, because an `onExporting` handler calls it (`exportPivotGrid` does).
|
|
202
|
+
*/
|
|
203
|
+
exportSheet<R>(options: PivotGridSheetOptions, write: (sheet: PivotGridSheet<T>) => R | Promise<R>): Promise<R>;
|
|
204
|
+
/** Stops the export the load panel shows; its promise rejects with an `AbortError`. */
|
|
205
|
+
cancelExport(): void;
|
|
206
|
+
/** How wide a column is now, in pixels: as the user made it, else as its field's `width`, else the default. */
|
|
207
|
+
columnWidth(column: PivotGridColumn<T>): number;
|
|
208
|
+
/**
|
|
209
|
+
* Resizes a column as the user does, kept in the state and told by `onColumnResized` (`byUser: false`): a row field's
|
|
210
|
+
* column of row headers, a data field's data columns, or a column of no field. Never narrower than
|
|
211
|
+
* `columnResizing.minWidth`.
|
|
212
|
+
*/
|
|
213
|
+
resizeColumn(column: PivotGridColumn<T>, width: number): void;
|
|
214
|
+
/** Back to `fields` as given, and the members as their fields open them; with `layoutKey`, nothing is kept any more. */
|
|
215
|
+
resetState(): void;
|
|
216
|
+
get rowHeaderLayout(): 'tree' | 'tabular';
|
|
217
|
+
set rowHeaderLayout(value: Bind<'tree' | 'tabular'>);
|
|
218
|
+
get dataFieldArea(): 'column' | 'row';
|
|
219
|
+
set dataFieldArea(value: Bind<'column' | 'row'>);
|
|
220
|
+
get showRowTotals(): boolean;
|
|
221
|
+
set showRowTotals(value: Bind<boolean>);
|
|
222
|
+
get showColumnTotals(): boolean;
|
|
223
|
+
set showColumnTotals(value: Bind<boolean>);
|
|
224
|
+
get showRowGrandTotals(): boolean;
|
|
225
|
+
set showRowGrandTotals(value: Bind<boolean>);
|
|
226
|
+
get showColumnGrandTotals(): boolean;
|
|
227
|
+
set showColumnGrandTotals(value: Bind<boolean>);
|
|
228
|
+
get showTotalsPrior(): 'none' | 'rows' | 'columns' | 'both';
|
|
229
|
+
set showTotalsPrior(value: Bind<'none' | 'rows' | 'columns' | 'both'>);
|
|
230
|
+
get showEmptyRows(): boolean;
|
|
231
|
+
set showEmptyRows(value: Bind<boolean>);
|
|
232
|
+
get showEmptyColumns(): boolean;
|
|
233
|
+
set showEmptyColumns(value: Bind<boolean>);
|
|
234
|
+
get emptyText(): string;
|
|
235
|
+
set emptyText(value: Bind<string>);
|
|
236
|
+
get rowHeight(): number | null;
|
|
237
|
+
set rowHeight(value: Bind<number>);
|
|
238
|
+
get locale(): string;
|
|
239
|
+
set locale(value: Bind<string>);
|
|
240
|
+
get texts(): Partial<UiStrings>;
|
|
241
|
+
set texts(value: Bind<Partial<UiStrings>>);
|
|
242
|
+
get label(): string;
|
|
243
|
+
set label(value: Bind<string>);
|
|
244
|
+
get export(): PivotGridExport | undefined;
|
|
245
|
+
set export(value: Bind<PivotGridExport | undefined>);
|
|
246
|
+
get wrapColumnHeaders(): boolean;
|
|
247
|
+
set wrapColumnHeaders(value: Bind<boolean>);
|
|
248
|
+
get columnResizing(): PivotGridColumnResizing;
|
|
249
|
+
set columnResizing(value: Bind<PivotGridColumnResizing>);
|
|
250
|
+
/** Whether the pivot is loading, drawn, failed, or has not loaded yet. */
|
|
251
|
+
get status(): 'idle' | 'loading' | 'ready' | 'error';
|
|
252
|
+
/** The error of the last load, while `status` is `'error'`. */
|
|
253
|
+
get error(): data.DataError | null;
|
|
254
|
+
/** The last result of the data layer, as it gave it. */
|
|
255
|
+
get result(): data.PivotLoadResult | null;
|
|
256
|
+
/** The result laid out as drawn: the lines of both axes and their header cells. */
|
|
257
|
+
get layout(): PivotLayout<T> | null;
|
|
258
|
+
/** Occurs when a data cell is clicked. */
|
|
259
|
+
get onCellClick(): MotifEvent<PivotGridCellClickEventArgs<T>>;
|
|
260
|
+
/** Occurs when a data cell is double-clicked, or Enter is pressed on it: where `drillDown` reads its rows. */
|
|
261
|
+
get onCellDblClick(): MotifEvent<PivotGridCellDblClickEventArgs<T>>;
|
|
262
|
+
/** Occurs before a member opens or closes; `cancel` keeps it. */
|
|
263
|
+
get onExpanding(): MotifEvent<PivotGridExpandingEventArgs>;
|
|
264
|
+
/** Occurs after a member opened or closed and the table shows it. */
|
|
265
|
+
get onExpanded(): MotifEvent<PivotGridExpandedEventArgs>;
|
|
266
|
+
/** Occurs when a loaded pivot is drawn. */
|
|
267
|
+
get onContentReady(): MotifEvent<PivotGridContentReadyEventArgs>;
|
|
268
|
+
/** Occurs when loading fails. */
|
|
269
|
+
get onDataErrorOccurred(): MotifEvent<PivotGridDataErrorEventArgs>;
|
|
270
|
+
/** Occurs after the fields are arranged anew, by the user or by `fieldOption`. */
|
|
271
|
+
get onFieldsChanged(): MotifEvent<PivotGridFieldsChangedEventArgs<T>>;
|
|
272
|
+
/** Occurs before the menu of a header, a title of the corner or a data cell opens; change its `items`, or `cancel`. */
|
|
273
|
+
get onContextMenuPreparing(): MotifEvent<PivotGridContextMenuPreparingEventArgs<T>>;
|
|
274
|
+
/** Occurs whenever the cell ranges change. */
|
|
275
|
+
get onCellSelectionChanged(): MotifEvent<PivotGridCellSelectionChangedEventArgs>;
|
|
276
|
+
/** Occurs before cells are copied (Ctrl+C, `copy()`); change `text` or `html`, or `cancel`. */
|
|
277
|
+
get onCopying(): MotifEvent<PivotGridCopyingEventArgs>;
|
|
278
|
+
/**
|
|
279
|
+
* Occurs before an export starts: for CSV change its `options` or `cancel`; another format (`'xlsx'`, `'pdf'`) is
|
|
280
|
+
* written here, with `exportPivotGrid` of the `excel` or `pdf` entry.
|
|
281
|
+
*/
|
|
282
|
+
get onExporting(): MotifEvent<PivotGridExportingEventArgs>;
|
|
283
|
+
/** Occurs after an export is written. */
|
|
284
|
+
get onExported(): MotifEvent<PivotGridExportedEventArgs>;
|
|
285
|
+
/** Occurs after a column was resized: by the user's drag or keys, or by `resizeColumn`. */
|
|
286
|
+
get onColumnResized(): MotifEvent<PivotGridColumnResizedEventArgs<T>>;
|
|
287
|
+
/**
|
|
288
|
+
* Reads a field's options (a copy), or one of them; writes one or several, laid over `fields` as the user's changes
|
|
289
|
+
* are (`arrangedFields`). A field is named by its place in `fields`, its `name`, its `field` or its `title`.
|
|
290
|
+
*/
|
|
291
|
+
fieldOption(id: number | string): PivotGridField<T> | undefined;
|
|
292
|
+
fieldOption<K extends keyof PivotGridField<T>>(id: number | string, name: K): PivotGridField<T>[K] | undefined;
|
|
293
|
+
fieldOption<K extends keyof PivotGridField<T>>(id: number | string, name: K, value: PivotGridField<T>[K]): void;
|
|
294
|
+
fieldOption(id: number | string, options: Partial<PivotGridField<T>>): void;
|
|
295
|
+
/** Loads the pivot again: the rows may have changed. */
|
|
296
|
+
refresh(): void;
|
|
297
|
+
/** Opens every member of an axis, or of one of its levels (0 is the top level). On a server, the members are loaded. */
|
|
298
|
+
expandAll(area: 'row' | 'column', level?: number): void;
|
|
299
|
+
/** Opens the field chooser window, unless `fieldChooser.enabled` is `false`. */
|
|
300
|
+
openFieldChooser(): void;
|
|
301
|
+
/** Closes the field chooser; in `onDemand` mode without applying what was changed in it. */
|
|
302
|
+
closeFieldChooser(): void;
|
|
303
|
+
/** Closes every member of an axis, or of one of its levels (0 is the top level). */
|
|
304
|
+
collapseAll(area: 'row' | 'column', level?: number): void;
|
|
305
|
+
/** A string of `texts` or `uiLocale`, with `{name}` parts filled. */
|
|
306
|
+
private string;
|
|
307
|
+
private askLoad;
|
|
308
|
+
/** The arrangement of the fields, taken up to the `fields` that read now; the kept state over the first fields given. */
|
|
309
|
+
private arranged;
|
|
310
|
+
/** Lays a state over the arrangement as it is and takes its members opened or closed and its columns' widths. */
|
|
311
|
+
private takeState;
|
|
312
|
+
/** Takes cell ranges given from code; before the first layout they wait for it. */
|
|
313
|
+
private takeRanges;
|
|
314
|
+
/** A data cell of the layout drawn, by the places of its lines, as a cell range names it. */
|
|
315
|
+
private pointOf;
|
|
316
|
+
/** A data cell named by its lines' members, as the keys of its lines in the layout drawn. */
|
|
317
|
+
private keyOfPoint;
|
|
318
|
+
/** `cellSelection` changed: no ranges without it, the last one alone with `'single'`. */
|
|
319
|
+
private selectionModeChanged;
|
|
320
|
+
/** With `layoutKey`, the state goes into the browser's storage. */
|
|
321
|
+
private keepState;
|
|
322
|
+
/** How a state names the field at `at`: its `name`, `field` or `title` where that finds it, else its place. */
|
|
323
|
+
private fieldId;
|
|
324
|
+
/**
|
|
325
|
+
* Arranges the fields anew: the levels each axis keeps from the top keep their open members, the pivot loads again
|
|
326
|
+
* (or lays out again, `layOnly`), the panel draws again and `onFieldsChanged` tells it.
|
|
327
|
+
*/
|
|
328
|
+
private rearrange;
|
|
329
|
+
/** A state was taken or dropped: the panel and the chooser draw again, the pivot loads again and `onFieldsChanged` tells it. */
|
|
330
|
+
private arrangedAnew;
|
|
331
|
+
/** A field's options as `next` has them, those `now` has and `next` does not taken away. */
|
|
332
|
+
private withUnset;
|
|
333
|
+
/** How many levels from the top an axis keeps through a change: the same field grouped by the same interval. */
|
|
334
|
+
private levelsKept;
|
|
335
|
+
private load;
|
|
336
|
+
/** Whether the pivot is read in parts: its source computes the parts of pivots, and all the fields ask for. */
|
|
337
|
+
private readsInParts;
|
|
338
|
+
/**
|
|
339
|
+
* Makes the windows of a pivot read in parts and reads where its open members stand, then draws it; the values read
|
|
340
|
+
* before (`cells`) stay where the fields and the query are the same.
|
|
341
|
+
*/
|
|
342
|
+
private loadParts;
|
|
343
|
+
/** The layout windows are made for: their lines stand by it. */
|
|
344
|
+
private shapeOf;
|
|
345
|
+
/** The members a part holds on each axis, in a pivot read in parts. */
|
|
346
|
+
private partSize;
|
|
347
|
+
/** A load failed: the note under the table tells it, with a way to try again. */
|
|
348
|
+
private failed;
|
|
349
|
+
/** The view shows these lines of a pivot read in parts: the parts they wait for are read, and drawn once they came. */
|
|
350
|
+
private viewing;
|
|
351
|
+
/** A data source's new query (filter, search) or its reload loads the pivot again. */
|
|
352
|
+
private watchSource;
|
|
353
|
+
private layoutOptions;
|
|
354
|
+
private formatter;
|
|
355
|
+
/** Lays the last result out again with the props as they read now. */
|
|
356
|
+
private layOut;
|
|
357
|
+
/** The table's name, once it is a table: a name on an element with no role is no name. */
|
|
358
|
+
private writeLabel;
|
|
359
|
+
/** Whether the user opens and closes a member: its level's field allows it (`allowExpanding`). */
|
|
360
|
+
private canToggle;
|
|
361
|
+
private toggle;
|
|
362
|
+
/** The table's menu for the part it opens on, as `onContextMenuPreparing` leaves it; nothing outside the cells. */
|
|
363
|
+
private menuOpening;
|
|
364
|
+
/** What the menu opens on, as `onContextMenuPreparing` tells it. */
|
|
365
|
+
private menuTarget;
|
|
366
|
+
/** The menu's own items: the member opened or closed, its whole level, the other axis sorted by it, its field hidden, the field chooser, the exports. */
|
|
367
|
+
private menuItems;
|
|
368
|
+
private levelItems;
|
|
369
|
+
/** Hides a field from the table: out of every area, as the field panel takes it out. */
|
|
370
|
+
private hideItems;
|
|
371
|
+
/**
|
|
372
|
+
* Sorts each field of the other axis by the values of a header's row or column: by the data field of a title, else by
|
|
373
|
+
* one picked in a submenu where there are several. Checked while it does; chosen again, the field has its own order.
|
|
374
|
+
*/
|
|
375
|
+
private sortItems;
|
|
376
|
+
/** How the user resizes columns: `columnResizing` with its defaults. */
|
|
377
|
+
private resizing;
|
|
378
|
+
/** Whether the user may resize a column: resizing is on, and its field allows it. */
|
|
379
|
+
private canResize;
|
|
380
|
+
/** A field's place in `fields`, from whichever list holds it: the drawn layout's, the arrangement's or `fields`. */
|
|
381
|
+
private placeOf;
|
|
382
|
+
/** The same column with the drawn layout's field, as the view knows it; `null` for a field not in `fields`. */
|
|
383
|
+
private drawnColumn;
|
|
384
|
+
/** The width the user gave a column: a field's by its place in `fields`, the others' by their kind. */
|
|
385
|
+
private userWidth;
|
|
386
|
+
/** Keeps a column's width as the user's, draws it and tells it. */
|
|
387
|
+
private applyWidth;
|
|
388
|
+
/** "Width" in a header's menu: the arrow keys resize its column until Enter, Tab or the focus leaving keeps it, or Escape takes it back. */
|
|
389
|
+
private startAdjust;
|
|
390
|
+
/** A key while a column is resized with the keys; whether it was its. */
|
|
391
|
+
private adjustKey;
|
|
392
|
+
/** Ends a resize with the keys: its width kept, or the one before it drawn again. */
|
|
393
|
+
private endAdjust;
|
|
394
|
+
/** What a column is called as its width is read out: its field's title, the row fields' titles, or the data fields'. */
|
|
395
|
+
private columnTitle;
|
|
396
|
+
/** The exports the pivot offers, one per format of `export`, as its button and its menu run them. */
|
|
397
|
+
private exportCommands;
|
|
398
|
+
private formatName;
|
|
399
|
+
/** What the load panel says while an export runs: its text, and the rows read of all. */
|
|
400
|
+
private exportMessage;
|
|
401
|
+
/**
|
|
402
|
+
* Collects an export: after a load under way, with the load panel over the table (the rows read of all, a button that
|
|
403
|
+
* stops it) where it is enabled; the live region says how it ended.
|
|
404
|
+
*/
|
|
405
|
+
private runExport;
|
|
406
|
+
/** Resolves once a load asked for or under way has ended, or at `signal`: an export writes what it loaded. */
|
|
407
|
+
private whenLoaded;
|
|
408
|
+
/** The pivot as a sheet of cells: a pivot read in parts is read whole first, a run of rows at a time. */
|
|
409
|
+
private sheetOf;
|
|
410
|
+
/** An export written: the live region says so, and `onExported` tells it. */
|
|
411
|
+
private exported;
|
|
412
|
+
private askMeasure;
|
|
413
|
+
private readonly readView;
|
|
414
|
+
private readonly writeView;
|
|
415
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { PivotGrid } from './PivotGrid';
|
|
2
|
+
export type { PivotGridProps } from './pivot-grid-props';
|
|
3
|
+
export type { PivotGridField } from './pivot-grid-field';
|
|
4
|
+
export type { PivotGridFilterValue } from './pivot-grid-filter-value';
|
|
5
|
+
export type { PivotGridHeaderFilterItems } from './pivot-grid-header-filter-items';
|
|
6
|
+
export type { PivotGridHeaderFilterItemsRequest } from './pivot-grid-header-filter-items-request';
|
|
7
|
+
export type { PivotGridArea } from './pivot-grid-area';
|
|
8
|
+
export type { PivotGridFieldPanel } from './pivot-grid-field-panel';
|
|
9
|
+
export type { PivotGridFieldChooser } from './pivot-grid-field-chooser';
|
|
10
|
+
export type { PivotGridFieldsChangedEventArgs } from './pivot-grid-fields-changed-event-args';
|
|
11
|
+
export type { PivotGridAxisState, PivotGridFieldState, PivotGridState } from './pivot-grid-state';
|
|
12
|
+
export type { PivotGridGroupInterval } from './pivot-grid-group-interval';
|
|
13
|
+
export type { PivotGridSummaryType } from './pivot-grid-summary-type';
|
|
14
|
+
export type { PivotGridCustomSummaryInfo } from './pivot-grid-custom-summary-info';
|
|
15
|
+
export type { PivotGridSummaryDisplayMode } from './pivot-grid-summary-display-mode';
|
|
16
|
+
export type { PivotGridSummaryCell } from './pivot-grid-summary-cell';
|
|
17
|
+
export type { PivotGridCellContext } from './pivot-grid-cell-context';
|
|
18
|
+
export type { PivotGridCellClickEventArgs } from './pivot-grid-cell-click-event-args';
|
|
19
|
+
export type { PivotGridCellDblClickEventArgs } from './pivot-grid-cell-dbl-click-event-args';
|
|
20
|
+
export type { PivotGridDrillDown } from './pivot-grid-drill-down';
|
|
21
|
+
export type { PivotGridChartOptions } from './pivot-grid-chart-options';
|
|
22
|
+
export type { PivotGridChartData, PivotGridChartRow } from './pivot-grid-chart-data';
|
|
23
|
+
export type { PivotGridExpandingEventArgs } from './pivot-grid-expanding-event-args';
|
|
24
|
+
export type { PivotGridExpandedEventArgs } from './pivot-grid-expanded-event-args';
|
|
25
|
+
export type { PivotGridContentReadyEventArgs } from './pivot-grid-content-ready-event-args';
|
|
26
|
+
export type { PivotGridDataErrorEventArgs } from './pivot-grid-data-error-event-args';
|
|
27
|
+
export type { PivotGridContextMenuPreparingEventArgs } from './pivot-grid-context-menu-preparing-event-args';
|
|
28
|
+
export type { PivotGridCellPoint, PivotGridCellRange } from './pivot-grid-cell-range';
|
|
29
|
+
export type { PivotGridCellSelectionChangedEventArgs } from './pivot-grid-cell-selection-changed-event-args';
|
|
30
|
+
export type { PivotGridCopyingEventArgs } from './pivot-grid-copying-event-args';
|
|
31
|
+
export type { PivotGridColumn } from './pivot-grid-column';
|
|
32
|
+
export type { PivotGridColumnResizing } from './pivot-grid-column-resizing';
|
|
33
|
+
export type { PivotGridColumnResizedEventArgs } from './pivot-grid-column-resized-event-args';
|
|
34
|
+
export type { PivotGridExport } from './pivot-grid-export';
|
|
35
|
+
export type { PivotGridExportCell } from './pivot-grid-export-cell';
|
|
36
|
+
export type { PivotGridExportOptions } from './pivot-grid-export-options';
|
|
37
|
+
export type { PivotGridExportingEventArgs } from './pivot-grid-exporting-event-args';
|
|
38
|
+
export type { PivotGridExportedEventArgs } from './pivot-grid-exported-event-args';
|
|
39
|
+
export type { PivotGridLoadPanel } from './pivot-grid-load-panel';
|
|
40
|
+
export type { PivotGridSheet, PivotGridSheetCell } from './pivot-grid-sheet';
|
|
41
|
+
export type { PivotGridSheetOptions } from './pivot-grid-sheet-options';
|
|
42
|
+
export type { PivotLayout, PivotLayoutOptions } from './model/PivotLayout';
|
|
43
|
+
export type { PivotLine } from './model/pivot-line';
|
|
44
|
+
export type { PivotHeaderCell } from './model/pivot-header-cell';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PivotGridArea } from '../pivot-grid-area';
|
|
2
|
+
import type { PivotGridField } from '../pivot-grid-field';
|
|
3
|
+
/**
|
|
4
|
+
* The fields as they are arranged now: the app's `fields`, with the changes made to them since (by the user in the field
|
|
5
|
+
* panel, or by `fieldOption`) laid over them. A field keeps its object until it is changed; a changed one is a copy with
|
|
6
|
+
* the changes. A new list of fields drops the changes: the app's word comes last.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PivotArrangement<T> {
|
|
9
|
+
private given;
|
|
10
|
+
private changes;
|
|
11
|
+
private current;
|
|
12
|
+
/** The fields as arranged. */
|
|
13
|
+
get fields(): readonly PivotGridField<T>[];
|
|
14
|
+
/** Takes the app's fields; a list other than the last one drops the changes. Returns whether it was another list. */
|
|
15
|
+
use(given: readonly PivotGridField<T>[]): boolean;
|
|
16
|
+
/** The options of the field at `at` changed over `fields`; one taken away is there as `undefined`. */
|
|
17
|
+
changesOf(at: number): Readonly<Partial<PivotGridField<T>>>;
|
|
18
|
+
/** Drops every change: the fields are as `fields` gives them again. Returns whether there was any. */
|
|
19
|
+
reset(): boolean;
|
|
20
|
+
/** The place in `fields` of a field named by that place, its `name`, its `field` or its `title`; -1 for none. */
|
|
21
|
+
find(id: number | string): number;
|
|
22
|
+
/** Lays `values` over the field at `at`; returns whether any of them changed it. */
|
|
23
|
+
change(at: number, values: Partial<PivotGridField<T>>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Puts the field at `at` into `area` at `place` among that area's visible fields (past the end: last), and numbers
|
|
26
|
+
* the area's fields in that order. `undefined` takes the field out of every area. Returns whether anything moved.
|
|
27
|
+
*/
|
|
28
|
+
move(at: number, area: PivotGridArea | undefined, place: number): boolean;
|
|
29
|
+
}
|