@motifx-community/ui 0.1.0-beta.13 → 0.1.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +379 -0
- package/README.md +2 -0
- package/dist/components/chart/Chart.d.ts +6 -4
- package/dist/components/chart/ChartPlot.d.ts +2 -1
- package/dist/components/chart/plot-view.d.ts +10 -2
- package/dist/components/chat/Chat.d.ts +276 -0
- package/dist/components/chat/ChatComposer.d.ts +172 -0
- package/dist/components/chat/ChatReply.d.ts +53 -0
- package/dist/components/chat/ChatWriter.d.ts +119 -0
- package/dist/components/chat/chat-ask-form.d.ts +64 -0
- package/dist/components/chat/chat-asked-entry.d.ts +21 -0
- package/dist/components/chat/chat-attachment-entry.d.ts +18 -0
- package/dist/components/chat/chat-choices-view.d.ts +40 -0
- package/dist/components/chat/chat-command.d.ts +7 -0
- package/dist/components/chat/chat-compaction-entry.d.ts +19 -0
- package/dist/components/chat/chat-composer-props.d.ts +63 -0
- package/dist/components/chat/chat-context-changed-event-args.d.ts +8 -0
- package/dist/components/chat/chat-context-item.d.ts +14 -0
- package/dist/components/chat/chat-copy-button.d.ts +11 -0
- package/dist/components/chat/chat-entry.d.ts +20 -0
- package/dist/components/chat/chat-flow-view.d.ts +32 -0
- package/dist/components/chat/chat-form-entry.d.ts +24 -0
- package/dist/components/chat/chat-form-view.d.ts +48 -0
- package/dist/components/chat/chat-history-event-args.d.ts +31 -0
- package/dist/components/chat/chat-load-older-event-args.d.ts +17 -0
- package/dist/components/chat/chat-look.d.ts +33 -0
- package/dist/components/chat/chat-mention.d.ts +21 -0
- package/dist/components/chat/chat-message-status.d.ts +2 -0
- package/dist/components/chat/chat-message.d.ts +23 -0
- package/dist/components/chat/chat-notice-entry.d.ts +20 -0
- package/dist/components/chat/chat-option.d.ts +7 -0
- package/dist/components/chat/chat-part.d.ts +110 -0
- package/dist/components/chat/chat-plan-entry.d.ts +25 -0
- package/dist/components/chat/chat-props.d.ts +70 -0
- package/dist/components/chat/chat-question-view.d.ts +41 -0
- package/dist/components/chat/chat-request.d.ts +173 -0
- package/dist/components/chat/chat-role.d.ts +2 -0
- package/dist/components/chat/chat-search-bar.d.ts +27 -0
- package/dist/components/chat/chat-search.d.ts +33 -0
- package/dist/components/chat/chat-send-event-args.d.ts +12 -0
- package/dist/components/chat/chat-sources-entry.d.ts +22 -0
- package/dist/components/chat/chat-text-entry.d.ts +20 -0
- package/dist/components/chat/chat-text-part.d.ts +5 -0
- package/dist/components/chat/chat-thinking-entry.d.ts +32 -0
- package/dist/components/chat/chat-todo-entry.d.ts +15 -0
- package/dist/components/chat/chat-tool-entry.d.ts +66 -0
- package/dist/components/chat/chat-tool-init.d.ts +18 -0
- package/dist/components/chat/chat-turn-view.d.ts +53 -0
- package/dist/components/chat/chat-turn.d.ts +8 -0
- package/dist/components/chat/chat-value-changed-event-args.d.ts +6 -0
- package/dist/components/chat/index.d.ts +22 -0
- package/dist/components/contextmenu/ContextMenu.d.ts +4 -0
- package/dist/components/contextmenu/context-menu-props.d.ts +6 -0
- package/dist/components/datagrid/DataGrid.d.ts +0 -12
- package/dist/components/datagrid/column-type.d.ts +2 -1
- package/dist/components/datagrid/grid-column.d.ts +4 -1
- package/dist/components/datagrid/grid-date-interval.d.ts +2 -1
- package/dist/components/datagrid/grid-filter-value.d.ts +2 -7
- package/dist/components/datagrid/grid-header-filter-interval.d.ts +2 -2
- package/dist/components/datagrid/grid-settings.d.ts +6 -3
- package/dist/components/datagrid/grid-sheet-cell.d.ts +3 -6
- package/dist/components/datagrid/grid-sheet-column.d.ts +2 -9
- package/dist/components/datagrid/grid-sheet-merge.d.ts +2 -7
- package/dist/components/datagrid/grid-sheet-row.d.ts +2 -5
- package/dist/components/datagrid/grid-sheet.d.ts +3 -2
- package/dist/components/datagrid/grid-summary-item.d.ts +5 -2
- package/dist/components/datagrid/grid-summary-texts.d.ts +2 -0
- package/dist/components/datagrid/grid-summary-type.d.ts +5 -2
- package/dist/components/datagrid/grid-summary.d.ts +3 -2
- package/dist/components/datagrid/list-option.d.ts +2 -4
- package/dist/components/datagrid/model/ColumnModel.d.ts +21 -3
- package/dist/components/datagrid/model/FilterValues.d.ts +15 -7
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +2 -2
- package/dist/components/datagrid/model/LookupTexts.d.ts +1 -1
- package/dist/components/datagrid/view/CellEditor.d.ts +1 -1
- package/dist/components/datagrid/view/ColumnStyles.d.ts +1 -1
- package/dist/components/datagrid/view/GridBody.d.ts +1 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +3 -1
- package/dist/components/draggable/Draggable.d.ts +14 -3
- package/dist/components/form/MxForm.d.ts +1 -1
- package/dist/components/markdown/Markdown.d.ts +87 -0
- package/dist/components/markdown/code-block.d.ts +57 -0
- package/dist/components/markdown/code-colorer.d.ts +11 -0
- package/dist/components/markdown/code-highlighter.d.ts +9 -0
- package/dist/components/markdown/code-run.d.ts +6 -0
- package/dist/components/markdown/diagram-renderer.d.ts +21 -0
- package/dist/components/markdown/entities.d.ts +2 -0
- package/dist/components/markdown/index.d.ts +8 -0
- package/dist/components/markdown/inline-writer.d.ts +85 -0
- package/dist/components/markdown/markdown-context.d.ts +53 -0
- package/dist/components/markdown/markdown-link-click-event-args.d.ts +9 -0
- package/dist/components/markdown/markdown-props.d.ts +40 -0
- package/dist/components/markdown/markdown-writer.d.ts +95 -0
- package/dist/components/markdown/math-block.d.ts +22 -0
- package/dist/components/markdown/math-renderer.d.ts +18 -0
- package/dist/components/markdown/safe-href.d.ts +5 -0
- package/dist/components/markdown/text-run.d.ts +7 -0
- package/dist/components/menubar/MenuBar.d.ts +4 -0
- package/dist/components/menubar/menu-bar-props.d.ts +6 -0
- package/dist/components/pivotgrid/PivotGrid.d.ts +415 -0
- package/dist/components/pivotgrid/index.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotArrangement.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotAxisWindow.d.ts +169 -0
- package/dist/components/pivotgrid/model/PivotCellRanges.d.ts +63 -0
- package/dist/components/pivotgrid/model/PivotCellWindow.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotChart.d.ts +49 -0
- package/dist/components/pivotgrid/model/PivotDisplay.d.ts +61 -0
- package/dist/components/pivotgrid/model/PivotDrill.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotExpansion.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotFields.d.ts +55 -0
- package/dist/components/pivotgrid/model/PivotFilterValues.d.ts +36 -0
- package/dist/components/pivotgrid/model/PivotLayout.d.ts +75 -0
- package/dist/components/pivotgrid/model/PivotLoader.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotSheet.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotStateStore.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotTable.d.ts +78 -0
- package/dist/components/pivotgrid/model/PivotTexts.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotWindows.d.ts +120 -0
- package/dist/components/pivotgrid/model/pivot-copy.d.ts +26 -0
- package/dist/components/pivotgrid/model/pivot-csv.d.ts +9 -0
- package/dist/components/pivotgrid/model/pivot-header-cell.d.ts +19 -0
- package/dist/components/pivotgrid/model/pivot-line-key.d.ts +17 -0
- package/dist/components/pivotgrid/model/pivot-line.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-area.d.ts +2 -0
- package/dist/components/pivotgrid/pivot-grid-cell-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-context.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-cell-dbl-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-range.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-cell-selection-changed-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-chart-data.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-chart-options.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-column-resized-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-column-resizing.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-column.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-content-ready-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-context-menu-preparing-event-args.d.ts +22 -0
- package/dist/components/pivotgrid/pivot-grid-copying-event-args.d.ts +10 -0
- package/dist/components/pivotgrid/pivot-grid-custom-summary-info.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-data-error-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-drill-down.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-expanded-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-expanding-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-export-cell.d.ts +21 -0
- package/dist/components/pivotgrid/pivot-grid-export-options.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-export.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-exported-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-exporting-event-args.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-field-chooser.d.ts +20 -0
- package/dist/components/pivotgrid/pivot-grid-field-panel.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-field.d.ts +110 -0
- package/dist/components/pivotgrid/pivot-grid-fields-changed-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-filter-value.d.ts +4 -0
- package/dist/components/pivotgrid/pivot-grid-group-interval.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items-request.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-load-panel.d.ts +11 -0
- package/dist/components/pivotgrid/pivot-grid-props.d.ts +121 -0
- package/dist/components/pivotgrid/pivot-grid-sheet-options.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-sheet.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-state.d.ts +54 -0
- package/dist/components/pivotgrid/pivot-grid-summary-cell.d.ts +29 -0
- package/dist/components/pivotgrid/pivot-grid-summary-display-mode.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-summary-type.d.ts +5 -0
- package/dist/components/pivotgrid/view/PivotFieldChooser.d.ts +71 -0
- package/dist/components/pivotgrid/view/PivotFieldPanel.d.ts +92 -0
- package/dist/components/pivotgrid/view/PivotView.d.ts +263 -0
- package/dist/components/resizable/Resizable.d.ts +2 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +4 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +4 -1
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +8 -4
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +6 -0
- package/dist/components/scheduler/view/TimeView.d.ts +2 -0
- package/dist/components/scrollview/ScrollView.d.ts +48 -1
- package/dist/components/scrollview/index.d.ts +1 -0
- package/dist/components/scrollview/scroll-end-changed-event-args.d.ts +7 -0
- package/dist/components/scrollview/scroll-view-props.d.ts +9 -0
- package/dist/components/splitter/Splitter.d.ts +1 -3
- package/dist/components/tabdocs/TabDocumentManager.d.ts +3 -2
- package/dist/components/textarea/TextArea.d.ts +11 -0
- package/dist/components/textarea/text-area-props.d.ts +12 -1
- package/dist/components/textbox/TextBox.d.ts +3 -0
- package/dist/components/textbox/text-box-props.d.ts +3 -0
- package/dist/components/toolbar/Toolbar.d.ts +70 -1
- package/dist/components/toolbar/index.d.ts +5 -0
- package/dist/components/toolbar/toolbar-added-item.d.ts +9 -0
- package/dist/components/toolbar/toolbar-custom-menu-opening-event-args.d.ts +23 -0
- package/dist/components/toolbar/toolbar-customization.d.ts +18 -0
- package/dist/components/toolbar/toolbar-customized-event-args.d.ts +7 -0
- package/dist/components/toolbar/toolbar-item-display.d.ts +2 -0
- package/dist/components/toolbar/toolbar-item.d.ts +11 -1
- package/dist/components/toolbar/toolbar-props.d.ts +26 -0
- package/dist/components/toolbar/toolbar-targets.d.ts +22 -0
- package/dist/core/clipboard.d.ts +11 -0
- package/dist/core/enter-key-hint.d.ts +2 -0
- package/dist/core/look-watch.d.ts +2 -2
- package/dist/core/measure/look.d.ts +1 -1
- package/dist/core/measure/on-layout.d.ts +1 -1
- package/dist/core/measure/scroll.d.ts +3 -1
- package/dist/core/save-text.d.ts +2 -0
- package/dist/core/ui-strings.d.ts +190 -0
- package/dist/excel/excel-pivot-customize-cell-args.d.ts +8 -0
- package/dist/excel/excel-pivot-export-options.d.ts +44 -0
- package/dist/excel/excel-pivot-export-result.d.ts +6 -0
- package/dist/excel/export-pivot-grid.d.ts +35 -0
- package/dist/excel/index.d.ts +4 -0
- package/dist/excel/index.js +190 -56
- package/dist/excel/index.js.map +1 -1
- package/dist/excel/write-sheet.d.ts +16 -0
- package/dist/{formula-guard-NYlpoA-t.js → formula-guard-Bx48S0u3.js} +2 -2
- package/dist/formula-guard-Bx48S0u3.js.map +1 -0
- package/dist/generated/tokens.d.ts +7527 -4097
- package/dist/index.d.ts +6 -0
- package/dist/index.js +65982 -49896
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +179 -1
- package/dist/locales/tr.json +179 -1
- package/dist/parts/customizer/Customizer.d.ts +12 -6
- package/dist/parts/customizer/customizer-display.d.ts +2 -0
- package/dist/parts/customizer/customizer-node.d.ts +5 -0
- package/dist/parts/customizer/customizer-source.d.ts +15 -3
- package/dist/parts/item-layout/layout-added-item.d.ts +2 -2
- package/dist/parts/menu/MenuList.d.ts +5 -0
- package/dist/parts/popup/Popup.d.ts +2 -0
- package/dist/{components/datagrid/model → parts/table}/CellFormatter.d.ts +8 -8
- package/dist/{components/datagrid/view → parts/table}/HeaderFilter.d.ts +16 -11
- package/dist/parts/table/OffsetList.d.ts +21 -0
- package/dist/parts/table/ScaledOffsets.d.ts +32 -0
- package/dist/{components/datagrid/model → parts/table}/ValueIntervals.d.ts +12 -5
- package/dist/{components/datagrid/model → parts/table}/ValueListAdapter.d.ts +4 -4
- package/dist/parts/table/date-interval.d.ts +2 -0
- package/dist/parts/table/date-type.d.ts +3 -0
- package/dist/{components/datagrid/model → parts/table}/filter-tree-node.d.ts +3 -1
- package/dist/parts/table/filter-value.d.ts +9 -0
- package/dist/parts/table/format-column.d.ts +14 -0
- package/dist/parts/table/header-filter-host.d.ts +27 -0
- package/dist/parts/table/option-of.d.ts +6 -0
- package/dist/parts/table/slice-sheet.d.ts +8 -0
- package/dist/parts/table/table-sheet-cell.d.ts +13 -0
- package/dist/parts/table/table-sheet-column.d.ts +11 -0
- package/dist/parts/table/table-sheet-merge.d.ts +9 -0
- package/dist/parts/table/table-sheet-row.d.ts +8 -0
- package/dist/parts/table/table-sheet.d.ts +24 -0
- package/dist/parts/table/value-interval.d.ts +6 -0
- package/dist/{components/datagrid/model → parts/table}/value-list.d.ts +7 -2
- package/dist/parts/table/value-loader.d.ts +8 -0
- package/dist/parts/table/value-option.d.ts +5 -0
- package/dist/parts/table/value-type.d.ts +5 -0
- package/dist/parts/table/values-result.d.ts +6 -0
- package/dist/parts/window/follow-pointer.d.ts +9 -3
- package/dist/parts/window-list/WindowList.d.ts +105 -0
- package/dist/parts/window-list/window-list-source.d.ts +10 -0
- package/dist/pdf/export-pivot-grid.d.ts +21 -0
- package/dist/pdf/index.d.ts +3 -0
- package/dist/pdf/index.js +143 -16
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/pdf-customize-cell-args.d.ts +1 -1
- package/dist/pdf/pdf-pivot-cell-args.d.ts +25 -0
- package/dist/pdf/pdf-pivot-export-options.d.ts +61 -0
- package/dist/pdf/pdf-table.d.ts +38 -6
- package/dist/slice-sheet-C116M42H.js +43 -0
- package/dist/slice-sheet-C116M42H.js.map +1 -0
- package/dist/styles.css +4484 -177
- package/dist/tokens/index.d.ts +7527 -4097
- package/dist/tokens/index.js +7527 -4097
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-BvKE8jSF.js → tr-BGbF9uCs.js} +359 -3
- package/dist/tr-BGbF9uCs.js.map +1 -0
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/chat.md +1512 -0
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +2 -2
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +3 -3
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +2 -2
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +7 -7
- package/docs/datagrid-layout.md +2 -2
- package/docs/datagrid-lookups.md +1 -1
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +2 -2
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.md +343 -0
- package/docs/menus-api.md +3 -1
- package/docs/menus-context.md +2 -1
- package/docs/menus-customization.md +5 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/pivotgrid-api.md +180 -0
- package/docs/pivotgrid-chart.md +132 -0
- package/docs/pivotgrid-drilldown.md +142 -0
- package/docs/pivotgrid-export.md +207 -0
- package/docs/pivotgrid-fields.md +245 -0
- package/docs/pivotgrid-keyboard.md +223 -0
- package/docs/pivotgrid-layout.md +663 -0
- package/docs/pivotgrid-panel.md +223 -0
- package/docs/pivotgrid-remote.md +397 -0
- package/docs/pivotgrid-sorting.md +379 -0
- package/docs/pivotgrid-state.md +245 -0
- package/docs/pivotgrid-summaries.md +330 -0
- package/docs/pivotgrid.md +295 -0
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +2 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +3 -2
- package/docs/ribbonmenu-display.md +1 -1
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +3 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/shortcuteditor.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.md +39 -0
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +3 -6
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +4 -1
- package/docs/textbox.md +2 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +687 -1
- package/docs/toolbar-api.md +80 -0
- package/docs/toolbar-customization.md +261 -0
- package/docs/toolbar.md +4 -52
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +1 -1
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +18989 -12344
- package/llms.txt +29 -2
- package/package.json +2 -2
- package/dist/components/datagrid/model/date-type.d.ts +0 -3
- package/dist/components/datagrid/model/option-of.d.ts +0 -6
- package/dist/components/datagrid/model/value-loader.d.ts +0 -8
- package/dist/formula-guard-NYlpoA-t.js.map +0 -1
- package/dist/tr-BvKE8jSF.js.map +0 -1
- /package/dist/{components/datagrid/model → core}/text-ranges.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ExtraHeights.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ScrollGeometry.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/cell-list.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/date-like.d.ts +0 -0
- /package/dist/{components/datagrid/view → parts/table}/editor-value.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/formula-guard.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/parse-date-text.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/same-value.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lines of different sizes one after another (columns of their widths): where each starts, and which ones a stretch
|
|
3
|
+
* of the whole covers. Found by halving, so a stretch is found in a few steps however many lines there are.
|
|
4
|
+
*/
|
|
5
|
+
export declare class OffsetList {
|
|
6
|
+
/** Where each line starts; one more entry, the end of the last. */
|
|
7
|
+
private readonly starts;
|
|
8
|
+
constructor(sizes: readonly number[]);
|
|
9
|
+
get count(): number;
|
|
10
|
+
/** The size of every line together. */
|
|
11
|
+
get total(): number;
|
|
12
|
+
offsetOf(index: number): number;
|
|
13
|
+
sizeOf(index: number): number;
|
|
14
|
+
/** The line at an offset: the last one that starts at or before it (the first before 0, the last past the end). */
|
|
15
|
+
indexAt(offset: number): number;
|
|
16
|
+
/** The lines a stretch from `start`, `size` long, shows, with `extra` more on each side: `first` in, `end` out. */
|
|
17
|
+
range(start: number, size: number, extra?: number): {
|
|
18
|
+
first: number;
|
|
19
|
+
end: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { OffsetList } from './OffsetList';
|
|
2
|
+
/**
|
|
3
|
+
* Lines of different sizes along a scroll the browser caps (columns across a wide table). While they fit in `max` the
|
|
4
|
+
* scroll shows them where they are; past it the scroll room stays at `max` and a scroll position maps to a place in the
|
|
5
|
+
* whole in proportion, as `ScrollGeometry` does for rows, the lines in view placed from the scroll position.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ScaledOffsets {
|
|
8
|
+
readonly lines: OffsetList;
|
|
9
|
+
/** The room in view along the scroll. */
|
|
10
|
+
readonly viewport: number;
|
|
11
|
+
readonly max: number;
|
|
12
|
+
/** The scroll room above which the scroll is scaled; well under every browser's limit. */
|
|
13
|
+
static readonly MAX_SIZE = 10000000;
|
|
14
|
+
constructor(lines: OffsetList,
|
|
15
|
+
/** The room in view along the scroll. */
|
|
16
|
+
viewport: number, max?: number);
|
|
17
|
+
/** The size of every line together. */
|
|
18
|
+
get total(): number;
|
|
19
|
+
/** The scroll room the lines take. */
|
|
20
|
+
get room(): number;
|
|
21
|
+
get scaled(): boolean;
|
|
22
|
+
/** The farthest place in the whole the view can start at. */
|
|
23
|
+
get maxStart(): number;
|
|
24
|
+
/** The place in the whole where the view starts, for a scroll position. */
|
|
25
|
+
virtualFromScroll(scroll: number): number;
|
|
26
|
+
/** The scroll position that starts the view at a place in the whole. */
|
|
27
|
+
scrollFromVirtual(virtual: number): number;
|
|
28
|
+
/** Where a line starts in the scroll room, for a scroll position and the place in the whole it shows. */
|
|
29
|
+
placeOf(index: number, scroll: number, virtual: number): number;
|
|
30
|
+
/** The place in the whole that brings a line fully into view, moving as little as possible. */
|
|
31
|
+
reveal(virtual: number, index: number): number;
|
|
32
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { data } from '@motifx-community/data';
|
|
2
|
-
import type {
|
|
3
|
-
import type
|
|
4
|
-
import type {
|
|
2
|
+
import type { DateInterval } from './date-interval';
|
|
3
|
+
import { type FilterTreeNode } from './filter-tree-node';
|
|
4
|
+
import type { FilterValue } from './filter-value';
|
|
5
|
+
import type { ValueInterval } from './value-interval';
|
|
6
|
+
import type { ValueType } from './value-type';
|
|
5
7
|
/**
|
|
6
8
|
* The levels a header filter groups a column's values by: date parts (year → month → day …, or
|
|
7
9
|
* year → quarter) or ranges of numbers, the largest first. A node is kept in the column's filter as
|
|
@@ -10,13 +12,13 @@ import type { GridHeaderFilterInterval } from '../grid-header-filter-interval';
|
|
|
10
12
|
*/
|
|
11
13
|
export declare class ValueIntervals {
|
|
12
14
|
readonly kind: 'number' | 'date';
|
|
13
|
-
readonly levels: readonly (number |
|
|
15
|
+
readonly levels: readonly (number | DateInterval)[];
|
|
14
16
|
private constructor();
|
|
15
17
|
/**
|
|
16
18
|
* The levels of a column, from its own interval or (dates) the grid's; `null` for one entry per value. A date and time
|
|
17
19
|
* column goes down to the hour at least, unless the grid lists every value (`null`) or quarters.
|
|
18
20
|
*/
|
|
19
|
-
static of(type:
|
|
21
|
+
static of(type: ValueType | undefined, own: ValueInterval | undefined, dateDefault: DateInterval | null): ValueIntervals | null;
|
|
20
22
|
/** More than one level: the values show as a tree. */
|
|
21
23
|
get isTree(): boolean;
|
|
22
24
|
/** The parts of a value, one per level (`[2024, 3, 15]`, `[1000, 1200]`); `null` for an empty or unreadable one. */
|
|
@@ -27,4 +29,9 @@ export declare class ValueIntervals {
|
|
|
27
29
|
partsOfKey(key: unknown): number[] | null;
|
|
28
30
|
/** The rows a kept value stands for: from its start up to (not with) its end; `null` when it names none. */
|
|
29
31
|
condition(field: string, key: unknown): data.FilterExpression | null;
|
|
32
|
+
/**
|
|
33
|
+
* The values grouped into the levels, each node in order with the rows under it, empty values first (`blank` is
|
|
34
|
+
* their text). `textOf` names a node by its part at its depth (1 for the first level).
|
|
35
|
+
*/
|
|
36
|
+
tree(values: readonly FilterValue[], textOf: (part: number, depth: number) => string, blank: string): FilterTreeNode[];
|
|
30
37
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { data } from '@motifx-community/data';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FilterValue } from './filter-value';
|
|
3
3
|
import type { ValueLoader } from './value-loader';
|
|
4
4
|
/**
|
|
5
5
|
* Exposes the values of a header filter as a data-layer adapter, so the kit's `ListBox` lists, searches and
|
|
6
6
|
* scrolls them like any other data. A search arrives as a filter on `text` and is passed to the loader.
|
|
7
7
|
* A value requested by key is returned from the loaded values, or created with its text if it is not loaded.
|
|
8
8
|
*/
|
|
9
|
-
export declare class ValueListAdapter extends data.DataAdapter<
|
|
9
|
+
export declare class ValueListAdapter extends data.DataAdapter<FilterValue, unknown> {
|
|
10
10
|
private readonly loader;
|
|
11
11
|
private readonly textOf;
|
|
12
12
|
private readonly known;
|
|
13
13
|
constructor(loader: ValueLoader, textOf: (value: unknown) => string | Promise<string>);
|
|
14
14
|
protected backendCapabilities(): data.Capabilities;
|
|
15
|
-
protected loadRows(options: data.LoadOptions): Promise<data.LoadResult<
|
|
16
|
-
protected findRow(key: unknown): Promise<
|
|
15
|
+
protected loadRows(options: data.LoadOptions): Promise<data.LoadResult<FilterValue>>;
|
|
16
|
+
protected findRow(key: unknown): Promise<FilterValue | undefined>;
|
|
17
17
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/** The key of the tree's entry for empty values. */
|
|
2
|
+
export declare const BLANK_NODE = "(blank)";
|
|
1
3
|
/** An entry of a header filter's tree: a part of a date or a range of numbers, with the rows under it. */
|
|
2
4
|
export interface FilterTreeNode {
|
|
3
5
|
/** The key the tree keeps it under. */
|
|
4
6
|
id: string;
|
|
5
|
-
/** What the
|
|
7
|
+
/** What the field's filter keeps for it: `2024`, `'2024/3'`, a range's start, or `null` for empty values. */
|
|
6
8
|
value: unknown;
|
|
7
9
|
text: string;
|
|
8
10
|
/** Rows under it, when the values come with counts. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** One entry of a header filter's value list. */
|
|
2
|
+
export interface FilterValue {
|
|
3
|
+
/** The value, where `null` represents empty values. */
|
|
4
|
+
value: unknown;
|
|
5
|
+
/** The display text. By default, the value formatted like its cells. */
|
|
6
|
+
text?: string;
|
|
7
|
+
/** The number of rows with this value. */
|
|
8
|
+
count?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ValueOption } from './value-option';
|
|
2
|
+
import type { ValueType } from './value-type';
|
|
3
|
+
/** What `CellFormatter` reads of a column: its type, its format, and the texts and choices of its values. */
|
|
4
|
+
export interface FormatColumn<T> {
|
|
5
|
+
type?: ValueType;
|
|
6
|
+
format?: ((value: unknown, row: T) => string) | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
|
|
7
|
+
/** The cell holds a list of values. */
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
/** The choices of a `list` column; a function gives them per row, which the formatter does not read. */
|
|
10
|
+
options?: readonly ValueOption[] | ((...args: never[]) => unknown);
|
|
11
|
+
/** Texts read as yes and as no. */
|
|
12
|
+
trueTexts?: readonly string[];
|
|
13
|
+
falseTexts?: readonly string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { UiStrings } from '../../core/ui-strings';
|
|
2
|
+
import type { FilterTreeNode } from './filter-tree-node';
|
|
3
|
+
import type { ValueList } from './value-list';
|
|
4
|
+
/** What a `HeaderFilter` window asks of the component it opens on: texts, the field's filter and its values. */
|
|
5
|
+
export interface HeaderFilterHost {
|
|
6
|
+
/** The title of a field, which names the window. */
|
|
7
|
+
title(field: string): string;
|
|
8
|
+
text(key: keyof UiStrings, values?: Record<string, unknown>): string;
|
|
9
|
+
/** A number of rows as the component writes it. */
|
|
10
|
+
count(n: number): string;
|
|
11
|
+
/** The rows the list shows at once. */
|
|
12
|
+
rows(): number;
|
|
13
|
+
/** The values a field's filter keeps, and whether it keeps those (`include`) or every value but those (`exclude`). */
|
|
14
|
+
kept(field: string): {
|
|
15
|
+
values?: readonly unknown[];
|
|
16
|
+
filterType?: 'include' | 'exclude';
|
|
17
|
+
} | undefined;
|
|
18
|
+
/** Takes a field's value filter away. */
|
|
19
|
+
clearValues(field: string): void;
|
|
20
|
+
setValues(field: string, values: readonly unknown[], filterType: 'include' | 'exclude'): void;
|
|
21
|
+
/** A list of values, or a tree (date parts, ranges in more than one level). */
|
|
22
|
+
kind(field: string): 'list' | 'tree';
|
|
23
|
+
searchable(field: string): boolean;
|
|
24
|
+
/** The list of a field's values, made for one opening. */
|
|
25
|
+
list(field: string): ValueList;
|
|
26
|
+
tree(field: string, signal: AbortSignal): Promise<FilterTreeNode[]>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TableSheet } from './table-sheet';
|
|
2
|
+
import type { TableSheetCell } from './table-sheet-cell';
|
|
3
|
+
/**
|
|
4
|
+
* A part of a sheet, for a file that cannot hold all of it on one sheet or page: its header rows and header columns
|
|
5
|
+
* with the rows from `rowFrom` up to `rowTo` and the columns from `columnFrom` up to `columnTo`. A merge cut by the part
|
|
6
|
+
* is merged over what it keeps of it, its text at its new first cell.
|
|
7
|
+
*/
|
|
8
|
+
export declare function sliceSheet<C extends TableSheetCell, S extends TableSheet<C>>(sheet: S, rowFrom: number, rowTo: number, columnFrom: number, columnTo: number): S;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A cell of a `TableSheet`. */
|
|
2
|
+
export interface TableSheetCell {
|
|
3
|
+
/** The value to write: a number, a `Date`, `true` or `false`, text, or `null` for an empty cell. */
|
|
4
|
+
readonly value: string | number | boolean | Date | null;
|
|
5
|
+
/** The text the component displays for it. */
|
|
6
|
+
readonly text: string;
|
|
7
|
+
/** The `Intl` options of its number, where they are its own rather than its column's (data fields down the rows). */
|
|
8
|
+
readonly numberFormat?: Intl.NumberFormatOptions;
|
|
9
|
+
/** The `Intl` options of its date, where they are its own rather than its column's. */
|
|
10
|
+
readonly dateFormat?: Intl.DateTimeFormatOptions;
|
|
11
|
+
/** Writes it bold in a data row: a total's cell. */
|
|
12
|
+
readonly strong?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A column of a `TableSheet`, in display order. */
|
|
2
|
+
export interface TableSheetColumn {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
/** The column's width on screen, in pixels. */
|
|
5
|
+
readonly width: number;
|
|
6
|
+
readonly align: 'start' | 'center' | 'end';
|
|
7
|
+
/** The `Intl` options of its numbers, or `undefined` for a non-number column or a `format` function. */
|
|
8
|
+
readonly numberFormat?: Intl.NumberFormatOptions;
|
|
9
|
+
/** The `Intl` options of its dates, or `undefined` for a non-date column or a `format` function. */
|
|
10
|
+
readonly dateFormat?: Intl.DateTimeFormatOptions;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Merged cells of a `TableSheet`. */
|
|
2
|
+
export interface TableSheetMerge {
|
|
3
|
+
/** The first row, an index into `rows`. */
|
|
4
|
+
readonly row: number;
|
|
5
|
+
/** The first column, an index into `columns`. */
|
|
6
|
+
readonly column: number;
|
|
7
|
+
readonly rows: number;
|
|
8
|
+
readonly columns: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TableSheetCell } from './table-sheet-cell';
|
|
2
|
+
/** A row of a `TableSheet`, one cell per column. */
|
|
3
|
+
export interface TableSheetRow<C extends TableSheetCell = TableSheetCell> {
|
|
4
|
+
readonly rowType: 'header' | 'group' | 'data' | 'groupFooter' | 'totalFooter';
|
|
5
|
+
/** The outline level: 0 for the header, the totals and top groups, and one more than the group for its rows. */
|
|
6
|
+
readonly level: number;
|
|
7
|
+
readonly cells: readonly C[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TableSheetCell } from './table-sheet-cell';
|
|
2
|
+
import type { TableSheetColumn } from './table-sheet-column';
|
|
3
|
+
import type { TableSheetMerge } from './table-sheet-merge';
|
|
4
|
+
import type { TableSheetRow } from './table-sheet-row';
|
|
5
|
+
/**
|
|
6
|
+
* A table laid out as rows of cells, for a writer to save in a file: the header rows first, then the rows in the
|
|
7
|
+
* component's order. The Excel and PDF writers take one; each component's sheet adds what its own hooks pass on.
|
|
8
|
+
*/
|
|
9
|
+
export interface TableSheet<C extends TableSheetCell = TableSheetCell, K extends TableSheetColumn = TableSheetColumn> {
|
|
10
|
+
readonly columns: readonly K[];
|
|
11
|
+
readonly rows: readonly TableSheetRow<C>[];
|
|
12
|
+
/** The header rows at the start, or 0 without a header. */
|
|
13
|
+
readonly headerRows: number;
|
|
14
|
+
/** The columns of row headers at the start, which a writer keeps in view as it does the header rows; 0 by default. */
|
|
15
|
+
readonly headerColumns?: number;
|
|
16
|
+
/** Merged cells, which a writer merges. */
|
|
17
|
+
readonly merges: readonly TableSheetMerge[];
|
|
18
|
+
/** The number of outline levels the rows go down to. */
|
|
19
|
+
readonly groupLevels: number;
|
|
20
|
+
/** The locale the component formats with. */
|
|
21
|
+
readonly locale: string;
|
|
22
|
+
/** Indicates that the component lays out right to left. */
|
|
23
|
+
readonly rtl: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DateInterval } from './date-interval';
|
|
2
|
+
/**
|
|
3
|
+
* How values are grouped in a header filter: for numbers, the size of each range (several sizes make a tree,
|
|
4
|
+
* largest first), and for dates, the deepest level of the year → month → day … tree. `null` lists every value.
|
|
5
|
+
*/
|
|
6
|
+
export type ValueInterval = number | readonly number[] | DateInterval | null;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { data } from '@motifx-community/data';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FilterValue } from './filter-value';
|
|
3
3
|
/** A header filter's list for one opening: its source, and how its entries map to the values the filter keeps. */
|
|
4
4
|
export interface ValueList {
|
|
5
|
-
source: data.DataSource<
|
|
5
|
+
source: data.DataSource<FilterValue, unknown>;
|
|
6
6
|
/** The entry of a value the filter keeps. */
|
|
7
7
|
toEntry(value: unknown): unknown;
|
|
8
8
|
/** The value the filter keeps for an entry. */
|
|
9
9
|
toValue(entry: unknown): unknown;
|
|
10
10
|
/** Every entry the list offers, without a search. */
|
|
11
11
|
all(): Promise<unknown[]>;
|
|
12
|
+
/**
|
|
13
|
+
* The entries need not cover every row (a component's own entries): every entry chosen still filters, and leaving
|
|
14
|
+
* some out of every entry keeps the rows of those chosen, not every value but those.
|
|
15
|
+
*/
|
|
16
|
+
partial?: boolean;
|
|
12
17
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ValuesResult } from './values-result';
|
|
2
|
+
/** Asks for a part of a field's values; `search` is the text of the list's search box. */
|
|
3
|
+
export type ValueLoader = (request: {
|
|
4
|
+
search: string;
|
|
5
|
+
skip: number;
|
|
6
|
+
take: number;
|
|
7
|
+
signal: AbortSignal;
|
|
8
|
+
}) => Promise<ValuesResult>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type Point } from '../../core/measure';
|
|
2
3
|
/**
|
|
3
|
-
* Follows the pointer pressed in `e` on `on` until it is let go: `move` gets how far it went from
|
|
4
|
-
* the
|
|
4
|
+
* Follows the pointer pressed in `e` on `on` until it is let go: `move` gets how far it went from the press, `end` runs
|
|
5
|
+
* once at the end with the event that ended it. Without `frame` the distance is the pointer's own on the screen, moved at
|
|
6
|
+
* once: a window fixed to the viewport. With `frame`, where what is dragged lies on the screen (what a scroll or the
|
|
7
|
+
* layout moves under the pointer and the drag does not), the distance is counted in that frame and moved in the next
|
|
8
|
+
* measuring round: when the page or a scroller around it scrolls, what is dragged stays under the pointer, the pointer at
|
|
9
|
+
* rest too. There `move` is told only when the distance changes, and the last move still waiting for its round lands
|
|
10
|
+
* before `end`.
|
|
5
11
|
*/
|
|
6
|
-
export declare function followPointer(on: ComponentBase, e: PointerEvent, move: (dx: number, dy: number) => void, end: () => void): void;
|
|
12
|
+
export declare function followPointer(on: ComponentBase, e: PointerEvent, move: (dx: number, dy: number, e: PointerEvent) => void, end: (e: PointerEvent) => void, frame?: () => Point): void;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type RevealOptions } from '../../core/measure';
|
|
3
|
+
import type { ScrollView } from '../../components/scrollview/ScrollView';
|
|
4
|
+
import type { WindowListSource } from './window-list-source';
|
|
5
|
+
/**
|
|
6
|
+
* A list of items of any height in a `ScrollView` that has only the parts in and near the view. A part is made from its
|
|
7
|
+
* item when the item comes near the view and disposed when it goes far: only the item and the part's measured height
|
|
8
|
+
* are kept, and it is made again when it comes back. Heights are estimated until measured; spacers stand for the items
|
|
9
|
+
* with no part, and the part on screen stays where it is while estimates turn into measures or items are added above.
|
|
10
|
+
* A part holding focus is not disposed.
|
|
11
|
+
*/
|
|
12
|
+
export declare class WindowList<T> {
|
|
13
|
+
private readonly scroller;
|
|
14
|
+
private readonly source;
|
|
15
|
+
/** The list's element: a spacer, the parts on the page in order, a spacer. */
|
|
16
|
+
readonly host: Component<HTMLDivElement>;
|
|
17
|
+
private readonly before;
|
|
18
|
+
private readonly after;
|
|
19
|
+
private slots;
|
|
20
|
+
private readonly bySlot;
|
|
21
|
+
/** The slots on the page: `[first, last)`. */
|
|
22
|
+
private first;
|
|
23
|
+
private last;
|
|
24
|
+
private gapValue;
|
|
25
|
+
private updating;
|
|
26
|
+
private queued;
|
|
27
|
+
private noticing;
|
|
28
|
+
private passes;
|
|
29
|
+
private sized;
|
|
30
|
+
private revealing;
|
|
31
|
+
/** The browser keeps the view where it is as parts above it change size (scroll anchoring): nothing to make up for. */
|
|
32
|
+
private readonly anchored;
|
|
33
|
+
constructor(scroller: ScrollView, source: WindowListSource<T>, className: string);
|
|
34
|
+
get items(): T[];
|
|
35
|
+
get count(): number;
|
|
36
|
+
has(item: T): boolean;
|
|
37
|
+
/** The part of `item` while it is on the page. */
|
|
38
|
+
partOf(item: T): ComponentBase | null;
|
|
39
|
+
/** Another list: every part goes, and those in and near the view are made from the new items. */
|
|
40
|
+
set(items: readonly T[]): void;
|
|
41
|
+
/** Adds an item at the end; at the end of the window, its part is made and placed at once. */
|
|
42
|
+
append(item: T): void;
|
|
43
|
+
/** Adds items before `index`; what is on screen stays where it is. */
|
|
44
|
+
insert(index: number, items: readonly T[]): void;
|
|
45
|
+
remove(item: T): void;
|
|
46
|
+
/** The item changed: its part on the page is made again from it, in its place; with no part, its height is estimated again. */
|
|
47
|
+
refresh(item: T): void;
|
|
48
|
+
/** The item changed while it has no part (a reply written far from the view): its height is estimated again, once a frame. */
|
|
49
|
+
stale(item: T): void;
|
|
50
|
+
/**
|
|
51
|
+
* Makes `change` (above the view) and keeps the part first on screen where it is; `leaving` is no anchor, and only a
|
|
52
|
+
* part of `[from, to)` is, when given: a part the change disposes has no place to keep.
|
|
53
|
+
*/
|
|
54
|
+
hold(change: () => void, leaving?: ComponentBase | null, from?: number, to?: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* Brings `item` into view: with no part, the view goes where its height says it starts and the part is made there.
|
|
57
|
+
* `then` gets the part once it is placed and shows. The view leaves the end for it, and is at the end again when the
|
|
58
|
+
* part is there.
|
|
59
|
+
*/
|
|
60
|
+
reveal(item: T, then?: (part: ComponentBase) => void, align?: RevealOptions['align']): void;
|
|
61
|
+
/** Places on the page the parts in and near the view, takes off the others, and keeps the view where it is. */
|
|
62
|
+
update(): void;
|
|
63
|
+
/**
|
|
64
|
+
* A notice of the layout layer: the window reads the page, so it is looked at once the layer's run is over (still
|
|
65
|
+
* before the paint), once for all the notices of that run.
|
|
66
|
+
*/
|
|
67
|
+
private noticed;
|
|
68
|
+
/**
|
|
69
|
+
* One round, then another until nothing changes. A round that moved the view goes on a microtask later: core makes
|
|
70
|
+
* the scroll it wrote a microtask later, and the next round reads where the view really is.
|
|
71
|
+
*/
|
|
72
|
+
private step;
|
|
73
|
+
/** The item to bring into view has its part on the page: the view goes to it. */
|
|
74
|
+
private revealNow;
|
|
75
|
+
/** Where a slot starts in the scroller's content: the list's place in it, and the slots before it. */
|
|
76
|
+
private topOf;
|
|
77
|
+
private readonly readView;
|
|
78
|
+
private later;
|
|
79
|
+
/** One round: returns whether the window changed. */
|
|
80
|
+
private pass;
|
|
81
|
+
/** Disposes the parts that leave `[first, last)` and places the ones that come, in order, then sizes the spacers. */
|
|
82
|
+
private place;
|
|
83
|
+
/** Puts a slot's part on the page before `next`, making it from its item. */
|
|
84
|
+
private put;
|
|
85
|
+
/** Disposes a slot's part; the item and its measured height stay. */
|
|
86
|
+
private takeOff;
|
|
87
|
+
private drop;
|
|
88
|
+
private slotOf;
|
|
89
|
+
private measure;
|
|
90
|
+
/**
|
|
91
|
+
* Parts on the page change (a reply grows, the width changes, a part learns its size after it is drawn): their
|
|
92
|
+
* heights are read again. Without scroll anchoring in the browser, what the parts before the first one that starts
|
|
93
|
+
* in the view gained or lost moved that part: the view goes with it. Returns whether it scrolled.
|
|
94
|
+
*/
|
|
95
|
+
private measureAll;
|
|
96
|
+
private readonly readNothing;
|
|
97
|
+
private readonly estimateStale;
|
|
98
|
+
/** The spacers stand for the items with no part above and below: their heights and the gaps between them. */
|
|
99
|
+
private drawSpacers;
|
|
100
|
+
private size;
|
|
101
|
+
/** The first part of `[from, to)` on the page that shows in the view. */
|
|
102
|
+
private anchor;
|
|
103
|
+
/** The space between items, from the list's style. */
|
|
104
|
+
private gap;
|
|
105
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
/** What a `WindowList` asks of the component that lists its items. */
|
|
3
|
+
export interface WindowListSource<T> {
|
|
4
|
+
/** Makes the part of `item` from it, each time the item comes near the view; the list disposes it when it goes far. */
|
|
5
|
+
make(item: T): ComponentBase;
|
|
6
|
+
/** The height, in pixels, of an item whose part was never measured. */
|
|
7
|
+
estimate(item: T): number;
|
|
8
|
+
/** The parts in and near the view are placed and measured, and the view stands where it goes. */
|
|
9
|
+
settled?(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PdfExportResult } from './pdf-export-result';
|
|
2
|
+
import type { PdfPivotExportOptions } from './pdf-pivot-export-options';
|
|
3
|
+
/**
|
|
4
|
+
* Draws a PivotGrid on a jsPDF document as a table: the rows of column headers (merged over the columns they cover) and
|
|
5
|
+
* the corner, then a row per line of the table with its row headers (merged down the lines they cover), every open
|
|
6
|
+
* member's (read whole where the pivot is read in parts), with the pivot's texts; totals are bold. Rows that do not fit
|
|
7
|
+
* go on to the next page under the rows of column headers again, and columns that do not fit go on to the next pages
|
|
8
|
+
* after the columns of row headers again. Only jsPDF itself is used, with no table plugin. Provide your own jsPDF:
|
|
9
|
+
* create the document, then save it when the promise resolves.
|
|
10
|
+
*
|
|
11
|
+
* jsPDF's built-in fonts write Latin-1 text only. For other letters (ş, ğ, İ, Cyrillic, Greek…), add a TrueType font
|
|
12
|
+
* that has them (`doc.addFileToVFS`, `doc.addFont`) and select it first with `doc.setFont`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* onExporting={(e) => {
|
|
16
|
+
* if (e.format !== 'pdf') return;
|
|
17
|
+
* const doc = new jsPDF({ orientation: 'landscape' });
|
|
18
|
+
* exportPivotGrid({ jsPDFDocument: doc, component: e.component }).then(() => doc.save('Sales.pdf'));
|
|
19
|
+
* }}
|
|
20
|
+
*/
|
|
21
|
+
export declare function exportPivotGrid<T = any>(options: PdfPivotExportOptions<T>): Promise<PdfExportResult>;
|
package/dist/pdf/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { exportDataGrid } from './export-data-grid';
|
|
2
|
+
export { exportPivotGrid } from './export-pivot-grid';
|
|
3
|
+
export type { PdfPivotExportOptions } from './pdf-pivot-export-options';
|
|
4
|
+
export type { PdfPivotCustomizeCellArgs, PdfPivotCustomDrawCellArgs } from './pdf-pivot-cell-args';
|
|
2
5
|
export type { PdfExportOptions } from './pdf-export-options';
|
|
3
6
|
export type { PdfCell } from './pdf-cell';
|
|
4
7
|
export type { PdfCustomizeCellArgs } from './pdf-customize-cell-args';
|