@mog-sdk/spreadsheet-contracts 0.1.12
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/dist/accessibility/index.d.ts +9 -0
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/types.d.ts +75 -0
- package/dist/accessibility/types.d.ts.map +1 -0
- package/dist/actions/comments.d.ts +31 -0
- package/dist/actions/comments.d.ts.map +1 -0
- package/dist/actions/index.d.ts +22 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/types.d.ts +448 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actors/chart.d.ts +88 -0
- package/dist/actors/chart.d.ts.map +1 -0
- package/dist/actors/clipboard.d.ts +243 -0
- package/dist/actors/clipboard.d.ts.map +1 -0
- package/dist/actors/commands.d.ts +1343 -0
- package/dist/actors/commands.d.ts.map +1 -0
- package/dist/actors/comment.d.ts +84 -0
- package/dist/actors/comment.d.ts.map +1 -0
- package/dist/actors/draw-border.d.ts +89 -0
- package/dist/actors/draw-border.d.ts.map +1 -0
- package/dist/actors/editor.d.ts +161 -0
- package/dist/actors/editor.d.ts.map +1 -0
- package/dist/actors/find-replace.d.ts +88 -0
- package/dist/actors/find-replace.d.ts.map +1 -0
- package/dist/actors/focus.d.ts +91 -0
- package/dist/actors/focus.d.ts.map +1 -0
- package/dist/actors/index.d.ts +88 -0
- package/dist/actors/index.d.ts.map +1 -0
- package/dist/actors/input.d.ts +98 -0
- package/dist/actors/input.d.ts.map +1 -0
- package/dist/actors/object-interaction.d.ts +163 -0
- package/dist/actors/object-interaction.d.ts.map +1 -0
- package/dist/actors/object.d.ts +124 -0
- package/dist/actors/object.d.ts.map +1 -0
- package/dist/actors/page-break.d.ts +64 -0
- package/dist/actors/page-break.d.ts.map +1 -0
- package/dist/actors/pane-focus.d.ts +56 -0
- package/dist/actors/pane-focus.d.ts.map +1 -0
- package/dist/actors/renderer.d.ts +197 -0
- package/dist/actors/renderer.d.ts.map +1 -0
- package/dist/actors/selection.d.ts +170 -0
- package/dist/actors/selection.d.ts.map +1 -0
- package/dist/actors/slicer.d.ts +175 -0
- package/dist/actors/slicer.d.ts.map +1 -0
- package/dist/actors/smartart.d.ts +48 -0
- package/dist/actors/smartart.d.ts.map +1 -0
- package/dist/api/index.d.ts +19 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/mutation-receipt.d.ts +26 -0
- package/dist/api/mutation-receipt.d.ts.map +1 -0
- package/dist/api/types.d.ts +1542 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/workbook/history.d.ts +43 -0
- package/dist/api/workbook/history.d.ts.map +1 -0
- package/dist/api/workbook/index.d.ts +17 -0
- package/dist/api/workbook/index.d.ts.map +1 -0
- package/dist/api/workbook/names.d.ts +104 -0
- package/dist/api/workbook/names.d.ts.map +1 -0
- package/dist/api/workbook/notifications.d.ts +35 -0
- package/dist/api/workbook/notifications.d.ts.map +1 -0
- package/dist/api/workbook/protection.d.ts +14 -0
- package/dist/api/workbook/protection.d.ts.map +1 -0
- package/dist/api/workbook/scenarios.d.ts +45 -0
- package/dist/api/workbook/scenarios.d.ts.map +1 -0
- package/dist/api/workbook/sheets.d.ts +74 -0
- package/dist/api/workbook/sheets.d.ts.map +1 -0
- package/dist/api/workbook/slicers.d.ts +63 -0
- package/dist/api/workbook/slicers.d.ts.map +1 -0
- package/dist/api/workbook/styles.d.ts +19 -0
- package/dist/api/workbook/styles.d.ts.map +1 -0
- package/dist/api/workbook/theme.d.ts +38 -0
- package/dist/api/workbook/theme.d.ts.map +1 -0
- package/dist/api/workbook/viewport.d.ts +85 -0
- package/dist/api/workbook/viewport.d.ts.map +1 -0
- package/dist/api/workbook.d.ts +279 -0
- package/dist/api/workbook.d.ts.map +1 -0
- package/dist/api/worksheet/bindings.d.ts +66 -0
- package/dist/api/worksheet/bindings.d.ts.map +1 -0
- package/dist/api/worksheet/changes.d.ts +60 -0
- package/dist/api/worksheet/changes.d.ts.map +1 -0
- package/dist/api/worksheet/charts.d.ts +83 -0
- package/dist/api/worksheet/charts.d.ts.map +1 -0
- package/dist/api/worksheet/collections/connector-collection.d.ts +7 -0
- package/dist/api/worksheet/collections/connector-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/drawing-collection.d.ts +9 -0
- package/dist/api/worksheet/collections/drawing-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/equation-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/equation-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/index.d.ts +12 -0
- package/dist/api/worksheet/collections/index.d.ts.map +1 -0
- package/dist/api/worksheet/collections/object-collection.d.ts +45 -0
- package/dist/api/worksheet/collections/object-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/picture-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/picture-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/shape-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/shape-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/textbox-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/textbox-collection.d.ts.map +1 -0
- package/dist/api/worksheet/collections/wordart-collection.d.ts +8 -0
- package/dist/api/worksheet/collections/wordart-collection.d.ts.map +1 -0
- package/dist/api/worksheet/comments.d.ts +143 -0
- package/dist/api/worksheet/comments.d.ts.map +1 -0
- package/dist/api/worksheet/conditional-formats.d.ts +101 -0
- package/dist/api/worksheet/conditional-formats.d.ts.map +1 -0
- package/dist/api/worksheet/filters.d.ts +141 -0
- package/dist/api/worksheet/filters.d.ts.map +1 -0
- package/dist/api/worksheet/form-controls.d.ts +22 -0
- package/dist/api/worksheet/form-controls.d.ts.map +1 -0
- package/dist/api/worksheet/format-mappings.d.ts +50 -0
- package/dist/api/worksheet/format-mappings.d.ts.map +1 -0
- package/dist/api/worksheet/formats.d.ts +136 -0
- package/dist/api/worksheet/formats.d.ts.map +1 -0
- package/dist/api/worksheet/handles/chart-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/chart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/connector-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/connector-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/drawing-handle.d.ts +14 -0
- package/dist/api/worksheet/handles/drawing-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/equation-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/equation-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/floating-object-handle.d.ts +75 -0
- package/dist/api/worksheet/handles/floating-object-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/index.d.ts +16 -0
- package/dist/api/worksheet/handles/index.d.ts.map +1 -0
- package/dist/api/worksheet/handles/ole-object-handle.d.ts +10 -0
- package/dist/api/worksheet/handles/ole-object-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/picture-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/picture-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/shape-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/shape-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/slicer-handle.d.ts +13 -0
- package/dist/api/worksheet/handles/slicer-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/smartart-handle.d.ts +11 -0
- package/dist/api/worksheet/handles/smartart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/textbox-handle.d.ts +9 -0
- package/dist/api/worksheet/handles/textbox-handle.d.ts.map +1 -0
- package/dist/api/worksheet/handles/wordart-handle.d.ts +10 -0
- package/dist/api/worksheet/handles/wordart-handle.d.ts.map +1 -0
- package/dist/api/worksheet/hyperlinks.d.ts +52 -0
- package/dist/api/worksheet/hyperlinks.d.ts.map +1 -0
- package/dist/api/worksheet/index.d.ts +35 -0
- package/dist/api/worksheet/index.d.ts.map +1 -0
- package/dist/api/worksheet/internal.d.ts +105 -0
- package/dist/api/worksheet/internal.d.ts.map +1 -0
- package/dist/api/worksheet/layout.d.ts +150 -0
- package/dist/api/worksheet/layout.d.ts.map +1 -0
- package/dist/api/worksheet/names.d.ts +52 -0
- package/dist/api/worksheet/names.d.ts.map +1 -0
- package/dist/api/worksheet/objects.d.ts +124 -0
- package/dist/api/worksheet/objects.d.ts.map +1 -0
- package/dist/api/worksheet/outline.d.ts +101 -0
- package/dist/api/worksheet/outline.d.ts.map +1 -0
- package/dist/api/worksheet/pivots.d.ts +257 -0
- package/dist/api/worksheet/pivots.d.ts.map +1 -0
- package/dist/api/worksheet/print.d.ts +108 -0
- package/dist/api/worksheet/print.d.ts.map +1 -0
- package/dist/api/worksheet/protection.d.ts +73 -0
- package/dist/api/worksheet/protection.d.ts.map +1 -0
- package/dist/api/worksheet/settings.d.ts +54 -0
- package/dist/api/worksheet/settings.d.ts.map +1 -0
- package/dist/api/worksheet/slicers.d.ts +101 -0
- package/dist/api/worksheet/slicers.d.ts.map +1 -0
- package/dist/api/worksheet/smartart.d.ts +49 -0
- package/dist/api/worksheet/smartart.d.ts.map +1 -0
- package/dist/api/worksheet/sparklines.d.ts +143 -0
- package/dist/api/worksheet/sparklines.d.ts.map +1 -0
- package/dist/api/worksheet/structure.d.ts +44 -0
- package/dist/api/worksheet/structure.d.ts.map +1 -0
- package/dist/api/worksheet/tables.d.ts +313 -0
- package/dist/api/worksheet/tables.d.ts.map +1 -0
- package/dist/api/worksheet/validation.d.ts +101 -0
- package/dist/api/worksheet/validation.d.ts.map +1 -0
- package/dist/api/worksheet/view.d.ts +91 -0
- package/dist/api/worksheet/view.d.ts.map +1 -0
- package/dist/api/worksheet.d.ts +370 -0
- package/dist/api/worksheet.d.ts.map +1 -0
- package/dist/app/index.d.ts +17 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/types.d.ts +349 -0
- package/dist/app/types.d.ts.map +1 -0
- package/dist/apps/api.d.ts +519 -0
- package/dist/apps/api.d.ts.map +1 -0
- package/dist/apps/bindings.d.ts +72 -0
- package/dist/apps/bindings.d.ts.map +1 -0
- package/dist/apps/index.d.ts +13 -0
- package/dist/apps/index.d.ts.map +1 -0
- package/dist/apps/types.d.ts +224 -0
- package/dist/apps/types.d.ts.map +1 -0
- package/dist/apps/views.d.ts +142 -0
- package/dist/apps/views.d.ts.map +1 -0
- package/dist/bridges/chart-bridge.d.ts +172 -0
- package/dist/bridges/chart-bridge.d.ts.map +1 -0
- package/dist/bridges/equation-bridge.d.ts +74 -0
- package/dist/bridges/equation-bridge.d.ts.map +1 -0
- package/dist/bridges/index.d.ts +25 -0
- package/dist/bridges/index.d.ts.map +1 -0
- package/dist/bridges/ink-recognition-bridge.d.ts +142 -0
- package/dist/bridges/ink-recognition-bridge.d.ts.map +1 -0
- package/dist/bridges/locale-bridge.d.ts +93 -0
- package/dist/bridges/locale-bridge.d.ts.map +1 -0
- package/dist/bridges/pivot-bridge.d.ts +201 -0
- package/dist/bridges/pivot-bridge.d.ts.map +1 -0
- package/dist/bridges/schema-bridge.d.ts +137 -0
- package/dist/bridges/schema-bridge.d.ts.map +1 -0
- package/dist/bridges/smartart-bridge.d.ts +217 -0
- package/dist/bridges/smartart-bridge.d.ts.map +1 -0
- package/dist/bridges/wordart-bridge.d.ts +86 -0
- package/dist/bridges/wordart-bridge.d.ts.map +1 -0
- package/dist/capabilities/errors.d.ts +16 -0
- package/dist/capabilities/errors.d.ts.map +1 -0
- package/dist/capabilities/gated-api.d.ts +355 -0
- package/dist/capabilities/gated-api.d.ts.map +1 -0
- package/dist/capabilities/grants.d.ts +239 -0
- package/dist/capabilities/grants.d.ts.map +1 -0
- package/dist/capabilities/index.d.ts +24 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/manifest.d.ts +128 -0
- package/dist/capabilities/manifest.d.ts.map +1 -0
- package/dist/capabilities/requester.d.ts +209 -0
- package/dist/capabilities/requester.d.ts.map +1 -0
- package/dist/capabilities/scope.d.ts +55 -0
- package/dist/capabilities/scope.d.ts.map +1 -0
- package/dist/capabilities/sensitive.d.ts +279 -0
- package/dist/capabilities/sensitive.d.ts.map +1 -0
- package/dist/capabilities/taxonomy.d.ts +15 -0
- package/dist/capabilities/taxonomy.d.ts.map +1 -0
- package/dist/capabilities/types.d.ts +91 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/cells/cell-identity.d.ts +281 -0
- package/dist/cells/cell-identity.d.ts.map +1 -0
- package/dist/cells/cell-style.d.ts +67 -0
- package/dist/cells/cell-style.d.ts.map +1 -0
- package/dist/cells/formula-string.d.ts +37 -0
- package/dist/cells/formula-string.d.ts.map +1 -0
- package/dist/cells/index.d.ts +7 -0
- package/dist/cells/index.d.ts.map +1 -0
- package/dist/cells/range-ref.d.ts +77 -0
- package/dist/cells/range-ref.d.ts.map +1 -0
- package/dist/cells/rich-text.d.ts +66 -0
- package/dist/cells/rich-text.d.ts.map +1 -0
- package/dist/cells/spill.d.ts +121 -0
- package/dist/cells/spill.d.ts.map +1 -0
- package/dist/conditional-format/index.d.ts +11 -0
- package/dist/conditional-format/index.d.ts.map +1 -0
- package/dist/conditional-format/presets.d.ts +54 -0
- package/dist/conditional-format/presets.d.ts.map +1 -0
- package/dist/conditional-format/range-utils.d.ts +11 -0
- package/dist/conditional-format/range-utils.d.ts.map +1 -0
- package/dist/conditional-format/render-types.d.ts +80 -0
- package/dist/conditional-format/render-types.d.ts.map +1 -0
- package/dist/connections/api-errors.d.ts +29 -0
- package/dist/connections/api-errors.d.ts.map +1 -0
- package/dist/connections/api.d.ts +879 -0
- package/dist/connections/api.d.ts.map +1 -0
- package/dist/connections/database-bridge-types.d.ts +108 -0
- package/dist/connections/database-bridge-types.d.ts.map +1 -0
- package/dist/connections/index.d.ts +5 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/power-query.d.ts +1 -0
- package/dist/connections/power-query.d.ts.map +1 -0
- package/dist/connections/query.d.ts +144 -0
- package/dist/connections/query.d.ts.map +1 -0
- package/dist/context-menu/index.d.ts +10 -0
- package/dist/context-menu/index.d.ts.map +1 -0
- package/dist/context-menu/types.d.ts +28 -0
- package/dist/context-menu/types.d.ts.map +1 -0
- package/dist/core/commands.d.ts +143 -0
- package/dist/core/commands.d.ts.map +1 -0
- package/dist/core/core.d.ts +943 -0
- package/dist/core/core.d.ts.map +1 -0
- package/dist/core/disposable.d.ts +30 -0
- package/dist/core/disposable.d.ts.map +1 -0
- package/dist/core/event-base.d.ts +31 -0
- package/dist/core/event-base.d.ts.map +1 -0
- package/dist/core/execution.d.ts +79 -0
- package/dist/core/execution.d.ts.map +1 -0
- package/dist/core/formatted-text.d.ts +8 -0
- package/dist/core/formatted-text.d.ts.map +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/result.d.ts +23 -0
- package/dist/core/result.d.ts.map +1 -0
- package/dist/core/schema.d.ts +360 -0
- package/dist/core/schema.d.ts.map +1 -0
- package/dist/core/testing.d.ts +309 -0
- package/dist/core/testing.d.ts.map +1 -0
- package/dist/culture/index.d.ts +11 -0
- package/dist/culture/index.d.ts.map +1 -0
- package/dist/culture/types.d.ts +320 -0
- package/dist/culture/types.d.ts.map +1 -0
- package/dist/data/charts.d.ts +412 -0
- package/dist/data/charts.d.ts.map +1 -0
- package/dist/data/conditional-format.d.ts +188 -0
- package/dist/data/conditional-format.d.ts.map +1 -0
- package/dist/data/filter.d.ts +364 -0
- package/dist/data/filter.d.ts.map +1 -0
- package/dist/data/grouping.d.ts +170 -0
- package/dist/data/grouping.d.ts.map +1 -0
- package/dist/data/index.d.ts +12 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/named-ranges.d.ts +104 -0
- package/dist/data/named-ranges.d.ts.map +1 -0
- package/dist/data/pivot.d.ts +68 -0
- package/dist/data/pivot.d.ts.map +1 -0
- package/dist/data/slicers.d.ts +417 -0
- package/dist/data/slicers.d.ts.map +1 -0
- package/dist/data/sorting.d.ts +172 -0
- package/dist/data/sorting.d.ts.map +1 -0
- package/dist/data/sparklines.d.ts +358 -0
- package/dist/data/sparklines.d.ts.map +1 -0
- package/dist/data/tables.d.ts +333 -0
- package/dist/data/tables.d.ts.map +1 -0
- package/dist/data/trace-arrows.d.ts +165 -0
- package/dist/data/trace-arrows.d.ts.map +1 -0
- package/dist/diagnostics/core.d.ts +219 -0
- package/dist/diagnostics/core.d.ts.map +1 -0
- package/dist/diagnostics/index.d.ts +9 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/style.d.ts +196 -0
- package/dist/diagnostics/style.d.ts.map +1 -0
- package/dist/document/comments.d.ts +109 -0
- package/dist/document/comments.d.ts.map +1 -0
- package/dist/document/document.d.ts +182 -0
- package/dist/document/document.d.ts.map +1 -0
- package/dist/document/index.d.ts +5 -0
- package/dist/document/index.d.ts.map +1 -0
- package/dist/document/protection.d.ts +114 -0
- package/dist/document/protection.d.ts.map +1 -0
- package/dist/document/search.d.ts +202 -0
- package/dist/document/search.d.ts.map +1 -0
- package/dist/drawing/index.d.ts +8 -0
- package/dist/drawing/index.d.ts.map +1 -0
- package/dist/drawing/three-d.d.ts +171 -0
- package/dist/drawing/three-d.d.ts.map +1 -0
- package/dist/editor/drag.d.ts +178 -0
- package/dist/editor/drag.d.ts.map +1 -0
- package/dist/editor/editor.d.ts +59 -0
- package/dist/editor/editor.d.ts.map +1 -0
- package/dist/editor/form-controls.d.ts +428 -0
- package/dist/editor/form-controls.d.ts.map +1 -0
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/equation/errors.d.ts +19 -0
- package/dist/equation/errors.d.ts.map +1 -0
- package/dist/equation/index.d.ts +12 -0
- package/dist/equation/index.d.ts.map +1 -0
- package/dist/equation/omml-ast.d.ts +358 -0
- package/dist/equation/omml-ast.d.ts.map +1 -0
- package/dist/equation/templates.d.ts +26 -0
- package/dist/equation/templates.d.ts.map +1 -0
- package/dist/equation/types.d.ts +87 -0
- package/dist/equation/types.d.ts.map +1 -0
- package/dist/events/canvas-object-events.d.ts +31 -0
- package/dist/events/canvas-object-events.d.ts.map +1 -0
- package/dist/events/cell-events.d.ts +60 -0
- package/dist/events/cell-events.d.ts.map +1 -0
- package/dist/events/chart-events.d.ts +61 -0
- package/dist/events/chart-events.d.ts.map +1 -0
- package/dist/events/comment-events.d.ts +43 -0
- package/dist/events/comment-events.d.ts.map +1 -0
- package/dist/events/conditional-formatting-events.d.ts +40 -0
- package/dist/events/conditional-formatting-events.d.ts.map +1 -0
- package/dist/events/data-tools-events.d.ts +29 -0
- package/dist/events/data-tools-events.d.ts.map +1 -0
- package/dist/events/file-io-events.d.ts +39 -0
- package/dist/events/file-io-events.d.ts.map +1 -0
- package/dist/events/filter-events.d.ts +43 -0
- package/dist/events/filter-events.d.ts.map +1 -0
- package/dist/events/floating-object-events.d.ts +158 -0
- package/dist/events/floating-object-events.d.ts.map +1 -0
- package/dist/events/grouping-events.d.ts +75 -0
- package/dist/events/grouping-events.d.ts.map +1 -0
- package/dist/events/index.d.ts +129 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/ink-collaboration-events.d.ts +57 -0
- package/dist/events/ink-collaboration-events.d.ts.map +1 -0
- package/dist/events/ink-events.d.ts +33 -0
- package/dist/events/ink-events.d.ts.map +1 -0
- package/dist/events/ink-recognition-events.d.ts +149 -0
- package/dist/events/ink-recognition-events.d.ts.map +1 -0
- package/dist/events/ink-stroke-events.d.ts +197 -0
- package/dist/events/ink-stroke-events.d.ts.map +1 -0
- package/dist/events/merge-events.d.ts +46 -0
- package/dist/events/merge-events.d.ts.map +1 -0
- package/dist/events/named-range-events.d.ts +24 -0
- package/dist/events/named-range-events.d.ts.map +1 -0
- package/dist/events/pivot-events.d.ts +47 -0
- package/dist/events/pivot-events.d.ts.map +1 -0
- package/dist/events/print-events.d.ts +75 -0
- package/dist/events/print-events.d.ts.map +1 -0
- package/dist/events/recalc-events.d.ts +20 -0
- package/dist/events/recalc-events.d.ts.map +1 -0
- package/dist/events/scenario-events.d.ts +37 -0
- package/dist/events/scenario-events.d.ts.map +1 -0
- package/dist/events/selection-events.d.ts +16 -0
- package/dist/events/selection-events.d.ts.map +1 -0
- package/dist/events/settings-events.d.ts +41 -0
- package/dist/events/settings-events.d.ts.map +1 -0
- package/dist/events/sheet-events.d.ts +68 -0
- package/dist/events/sheet-events.d.ts.map +1 -0
- package/dist/events/slicer-events.d.ts +47 -0
- package/dist/events/slicer-events.d.ts.map +1 -0
- package/dist/events/smartart-events.d.ts +222 -0
- package/dist/events/smartart-events.d.ts.map +1 -0
- package/dist/events/sparkline-events.d.ts +68 -0
- package/dist/events/sparkline-events.d.ts.map +1 -0
- package/dist/events/store-events.d.ts +18 -0
- package/dist/events/store-events.d.ts.map +1 -0
- package/dist/events/structure-events.d.ts +76 -0
- package/dist/events/structure-events.d.ts.map +1 -0
- package/dist/events/table-events.d.ts +99 -0
- package/dist/events/table-events.d.ts.map +1 -0
- package/dist/events/validation-events.d.ts +85 -0
- package/dist/events/validation-events.d.ts.map +1 -0
- package/dist/events/view-events.d.ts +72 -0
- package/dist/events/view-events.d.ts.map +1 -0
- package/dist/events/wordart-events.d.ts +169 -0
- package/dist/events/wordart-events.d.ts.map +1 -0
- package/dist/events.d.ts +41 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/extensions/index.d.ts +9 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/types.d.ts +64 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/filesystem/index.d.ts +11 -0
- package/dist/filesystem/index.d.ts.map +1 -0
- package/dist/filesystem/paths.d.ts +38 -0
- package/dist/filesystem/paths.d.ts.map +1 -0
- package/dist/filesystem/permissions.d.ts +89 -0
- package/dist/filesystem/permissions.d.ts.map +1 -0
- package/dist/filesystem/types.d.ts +251 -0
- package/dist/filesystem/types.d.ts.map +1 -0
- package/dist/fill/custom-lists.d.ts +41 -0
- package/dist/fill/custom-lists.d.ts.map +1 -0
- package/dist/fill/index.d.ts +11 -0
- package/dist/fill/index.d.ts.map +1 -0
- package/dist/fill/types.d.ts +102 -0
- package/dist/fill/types.d.ts.map +1 -0
- package/dist/formatting/format-registry.d.ts +45 -0
- package/dist/formatting/format-registry.d.ts.map +1 -0
- package/dist/formatting/index.d.ts +9 -0
- package/dist/formatting/index.d.ts.map +1 -0
- package/dist/formatting/theme.d.ts +108 -0
- package/dist/formatting/theme.d.ts.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/ink/index.d.ts +16 -0
- package/dist/ink/index.d.ts.map +1 -0
- package/dist/ink/spatial-index.d.ts +113 -0
- package/dist/ink/spatial-index.d.ts.map +1 -0
- package/dist/ink/types.d.ts +558 -0
- package/dist/ink/types.d.ts.map +1 -0
- package/dist/kernel/floating-object-manager.d.ts +68 -0
- package/dist/kernel/floating-object-manager.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +12 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/kernel-context.d.ts +129 -0
- package/dist/kernel/kernel-context.d.ts.map +1 -0
- package/dist/keyboard/actions.d.ts +328 -0
- package/dist/keyboard/actions.d.ts.map +1 -0
- package/dist/keyboard/binding-utils.d.ts +112 -0
- package/dist/keyboard/binding-utils.d.ts.map +1 -0
- package/dist/keyboard/customization.d.ts +121 -0
- package/dist/keyboard/customization.d.ts.map +1 -0
- package/dist/keyboard/display-utils.d.ts +9 -0
- package/dist/keyboard/display-utils.d.ts.map +1 -0
- package/dist/keyboard/excel-reference.d.ts +28 -0
- package/dist/keyboard/excel-reference.d.ts.map +1 -0
- package/dist/keyboard/index.d.ts +16 -0
- package/dist/keyboard/index.d.ts.map +1 -0
- package/dist/keyboard/input.d.ts +124 -0
- package/dist/keyboard/input.d.ts.map +1 -0
- package/dist/keyboard/physical-keys.d.ts +79 -0
- package/dist/keyboard/physical-keys.d.ts.map +1 -0
- package/dist/keyboard/shortcuts/definitions/index.d.ts +10 -0
- package/dist/keyboard/shortcuts/definitions/index.d.ts.map +1 -0
- package/dist/keyboard/shortcuts/types.d.ts +347 -0
- package/dist/keyboard/shortcuts/types.d.ts.map +1 -0
- package/dist/machines/index.d.ts +12 -0
- package/dist/machines/index.d.ts.map +1 -0
- package/dist/machines/snapshots.d.ts +160 -0
- package/dist/machines/snapshots.d.ts.map +1 -0
- package/dist/machines/types.d.ts +64 -0
- package/dist/machines/types.d.ts.map +1 -0
- package/dist/number-formats/constants.d.ts +39 -0
- package/dist/number-formats/constants.d.ts.map +1 -0
- package/dist/number-formats/index.d.ts +14 -0
- package/dist/number-formats/index.d.ts.map +1 -0
- package/dist/number-formats/locale/index.d.ts +5 -0
- package/dist/number-formats/locale/index.d.ts.map +1 -0
- package/dist/number-formats/locale/locale-defaults.d.ts +17 -0
- package/dist/number-formats/locale/locale-defaults.d.ts.map +1 -0
- package/dist/number-formats/registry.d.ts +52 -0
- package/dist/number-formats/registry.d.ts.map +1 -0
- package/dist/number-formats/types.d.ts +134 -0
- package/dist/number-formats/types.d.ts.map +1 -0
- package/dist/objects/canvas-object.d.ts +157 -0
- package/dist/objects/canvas-object.d.ts.map +1 -0
- package/dist/objects/drawing-object.d.ts +144 -0
- package/dist/objects/drawing-object.d.ts.map +1 -0
- package/dist/objects/floating-objects.d.ts +742 -0
- package/dist/objects/floating-objects.d.ts.map +1 -0
- package/dist/objects/index.d.ts +5 -0
- package/dist/objects/index.d.ts.map +1 -0
- package/dist/objects/object-bounds-reader.d.ts +25 -0
- package/dist/objects/object-bounds-reader.d.ts.map +1 -0
- package/dist/objects/object-mutator.d.ts +30 -0
- package/dist/objects/object-mutator.d.ts.map +1 -0
- package/dist/performance/index.d.ts +8 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/profiler-types.d.ts +351 -0
- package/dist/performance/profiler-types.d.ts.map +1 -0
- package/dist/platform/identity.d.ts +24 -0
- package/dist/platform/identity.d.ts.map +1 -0
- package/dist/platform/index.d.ts +17 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/types.d.ts +359 -0
- package/dist/platform/types.d.ts.map +1 -0
- package/dist/rendering/canvas-bridge-types.d.ts +68 -0
- package/dist/rendering/canvas-bridge-types.d.ts.map +1 -0
- package/dist/rendering/constants.d.ts +76 -0
- package/dist/rendering/constants.d.ts.map +1 -0
- package/dist/rendering/coordinates.d.ts +452 -0
- package/dist/rendering/coordinates.d.ts.map +1 -0
- package/dist/rendering/coordinator-interfaces.d.ts +163 -0
- package/dist/rendering/coordinator-interfaces.d.ts.map +1 -0
- package/dist/rendering/data-sources.d.ts +372 -0
- package/dist/rendering/data-sources.d.ts.map +1 -0
- package/dist/rendering/grid-region.d.ts +32 -0
- package/dist/rendering/grid-region.d.ts.map +1 -0
- package/dist/rendering/grid-renderer.d.ts +391 -0
- package/dist/rendering/grid-renderer.d.ts.map +1 -0
- package/dist/rendering/grouping.d.ts +21 -0
- package/dist/rendering/grouping.d.ts.map +1 -0
- package/dist/rendering/hit-test-service.d.ts +58 -0
- package/dist/rendering/hit-test-service.d.ts.map +1 -0
- package/dist/rendering/hit-test.d.ts +223 -0
- package/dist/rendering/hit-test.d.ts.map +1 -0
- package/dist/rendering/index.d.ts +25 -0
- package/dist/rendering/index.d.ts.map +1 -0
- package/dist/rendering/interactive-elements.d.ts +121 -0
- package/dist/rendering/interactive-elements.d.ts.map +1 -0
- package/dist/rendering/primitives.d.ts +17 -0
- package/dist/rendering/primitives.d.ts.map +1 -0
- package/dist/rendering/render-context.d.ts +457 -0
- package/dist/rendering/render-context.d.ts.map +1 -0
- package/dist/rendering/text-measurement-service.d.ts +197 -0
- package/dist/rendering/text-measurement-service.d.ts.map +1 -0
- package/dist/ribbon/collapse-configs.d.ts +298 -0
- package/dist/ribbon/collapse-configs.d.ts.map +1 -0
- package/dist/ribbon/collapse-types.d.ts +76 -0
- package/dist/ribbon/collapse-types.d.ts.map +1 -0
- package/dist/ribbon/index.d.ts +25 -0
- package/dist/ribbon/index.d.ts.map +1 -0
- package/dist/selection/index.d.ts +10 -0
- package/dist/selection/index.d.ts.map +1 -0
- package/dist/selection/registry.d.ts +17 -0
- package/dist/selection/registry.d.ts.map +1 -0
- package/dist/selection/types.d.ts +82 -0
- package/dist/selection/types.d.ts.map +1 -0
- package/dist/selectors/index.d.ts +8 -0
- package/dist/selectors/index.d.ts.map +1 -0
- package/dist/selectors/smart-art.d.ts +58 -0
- package/dist/selectors/smart-art.d.ts.map +1 -0
- package/dist/services/index.d.ts +273 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/smartart/index.d.ts +26 -0
- package/dist/smartart/index.d.ts.map +1 -0
- package/dist/smartart/layouts.d.ts +193 -0
- package/dist/smartart/layouts.d.ts.map +1 -0
- package/dist/smartart/ooxml-algorithm-types.d.ts +939 -0
- package/dist/smartart/ooxml-algorithm-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-data-model-types.d.ts +845 -0
- package/dist/smartart/ooxml-data-model-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-drawing-types.d.ts +356 -0
- package/dist/smartart/ooxml-drawing-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-engine-types.d.ts +873 -0
- package/dist/smartart/ooxml-engine-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-layout-types.d.ts +405 -0
- package/dist/smartart/ooxml-layout-types.d.ts.map +1 -0
- package/dist/smartart/ooxml-style-types.d.ts +474 -0
- package/dist/smartart/ooxml-style-types.d.ts.map +1 -0
- package/dist/smartart/styles.d.ts +137 -0
- package/dist/smartart/styles.d.ts.map +1 -0
- package/dist/smartart/types.d.ts +323 -0
- package/dist/smartart/types.d.ts.map +1 -0
- package/dist/storage/capabilities.d.ts +33 -0
- package/dist/storage/capabilities.d.ts.map +1 -0
- package/dist/storage/connection.d.ts +183 -0
- package/dist/storage/connection.d.ts.map +1 -0
- package/dist/storage/index.d.ts +13 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/query.d.ts +91 -0
- package/dist/storage/query.d.ts.map +1 -0
- package/dist/storage/table-driver.d.ts +249 -0
- package/dist/storage/table-driver.d.ts.map +1 -0
- package/dist/store/cell-schema.d.ts +235 -0
- package/dist/store/cell-schema.d.ts.map +1 -0
- package/dist/store/equation-schema.d.ts +22 -0
- package/dist/store/equation-schema.d.ts.map +1 -0
- package/dist/store/index.d.ts +33 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/ink-schema.d.ts +26 -0
- package/dist/store/ink-schema.d.ts.map +1 -0
- package/dist/store/scenarios-schema.d.ts +105 -0
- package/dist/store/scenarios-schema.d.ts.map +1 -0
- package/dist/store/schema-types.d.ts +113 -0
- package/dist/store/schema-types.d.ts.map +1 -0
- package/dist/store/sheet-maps-schema.d.ts +222 -0
- package/dist/store/sheet-maps-schema.d.ts.map +1 -0
- package/dist/store/sheet-meta-schema.d.ts +16 -0
- package/dist/store/sheet-meta-schema.d.ts.map +1 -0
- package/dist/store/smartart-schema.d.ts +17 -0
- package/dist/store/smartart-schema.d.ts.map +1 -0
- package/dist/store/store-types.d.ts +381 -0
- package/dist/store/store-types.d.ts.map +1 -0
- package/dist/store/wordart-schema.d.ts +13 -0
- package/dist/store/wordart-schema.d.ts.map +1 -0
- package/dist/store/workbook-schema.d.ts +16 -0
- package/dist/store/workbook-schema.d.ts.map +1 -0
- package/dist/styles/built-in-styles.d.ts +10 -0
- package/dist/styles/built-in-styles.d.ts.map +1 -0
- package/dist/styles/index.d.ts +18 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/utils/a1.d.ts +12 -0
- package/dist/utils/a1.d.ts.map +1 -0
- package/dist/utils/datetime.d.ts +7 -0
- package/dist/utils/datetime.d.ts.map +1 -0
- package/dist/utils/function-registry.d.ts +40 -0
- package/dist/utils/function-registry.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/protection.d.ts +9 -0
- package/dist/utils/protection.d.ts.map +1 -0
- package/dist/utils/range-navigation.d.ts +9 -0
- package/dist/utils/range-navigation.d.ts.map +1 -0
- package/dist/utils/range.d.ts +9 -0
- package/dist/utils/range.d.ts.map +1 -0
- package/dist/utils/rich-text.d.ts +9 -0
- package/dist/utils/rich-text.d.ts.map +1 -0
- package/dist/viewport/geometry.d.ts +90 -0
- package/dist/viewport/geometry.d.ts.map +1 -0
- package/dist/viewport/grid-canvas.d.ts +133 -0
- package/dist/viewport/grid-canvas.d.ts.map +1 -0
- package/dist/viewport/index.d.ts +5 -0
- package/dist/viewport/index.d.ts.map +1 -0
- package/dist/viewport/viewport-config.d.ts +95 -0
- package/dist/viewport/viewport-config.d.ts.map +1 -0
- package/dist/viewport/viewport.d.ts +191 -0
- package/dist/viewport/viewport.d.ts.map +1 -0
- package/dist/views/index.d.ts +9 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/types.d.ts +161 -0
- package/dist/views/types.d.ts.map +1 -0
- package/dist/what-if/index.d.ts +2 -0
- package/dist/what-if/index.d.ts.map +1 -0
- package/dist/what-if/what-if.d.ts +152 -0
- package/dist/what-if/what-if.d.ts.map +1 -0
- package/dist/window-manager/index.d.ts +134 -0
- package/dist/window-manager/index.d.ts.map +1 -0
- package/dist/wordart/effects.d.ts +611 -0
- package/dist/wordart/effects.d.ts.map +1 -0
- package/dist/wordart/index.d.ts +17 -0
- package/dist/wordart/index.d.ts.map +1 -0
- package/dist/wordart/presets.d.ts +133 -0
- package/dist/wordart/presets.d.ts.map +1 -0
- package/dist/wordart/types.d.ts +444 -0
- package/dist/wordart/types.d.ts.map +1 -0
- package/dist/workflows/context.d.ts +777 -0
- package/dist/workflows/context.d.ts.map +1 -0
- package/dist/workflows/definition.d.ts +256 -0
- package/dist/workflows/definition.d.ts.map +1 -0
- package/dist/workflows/events.d.ts +397 -0
- package/dist/workflows/events.d.ts.map +1 -0
- package/dist/workflows/index.d.ts +19 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/instance.d.ts +358 -0
- package/dist/workflows/instance.d.ts.map +1 -0
- package/dist/workflows/runtime.d.ts +287 -0
- package/dist/workflows/runtime.d.ts.map +1 -0
- package/dist/workflows/triggers.d.ts +335 -0
- package/dist/workflows/triggers.d.ts.map +1 -0
- package/dist/workflows/versioning.d.ts +245 -0
- package/dist/workflows/versioning.d.ts.map +1 -0
- package/dist/xlsx-parser/conditional-format.d.ts +137 -0
- package/dist/xlsx-parser/conditional-format.d.ts.map +1 -0
- package/dist/xlsx-parser/core.d.ts +622 -0
- package/dist/xlsx-parser/core.d.ts.map +1 -0
- package/dist/xlsx-parser/data-validation.d.ts +55 -0
- package/dist/xlsx-parser/data-validation.d.ts.map +1 -0
- package/dist/xlsx-parser/errors.d.ts +38 -0
- package/dist/xlsx-parser/errors.d.ts.map +1 -0
- package/dist/xlsx-parser/index.d.ts +17 -0
- package/dist/xlsx-parser/index.d.ts.map +1 -0
- package/dist/xlsx-parser/options.d.ts +89 -0
- package/dist/xlsx-parser/options.d.ts.map +1 -0
- package/dist/xlsx-parser/styles.d.ts +157 -0
- package/dist/xlsx-parser/styles.d.ts.map +1 -0
- package/dist/xlsx-parser/table.d.ts +170 -0
- package/dist/xlsx-parser/table.d.ts.map +1 -0
- package/package.json +410 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetPivots — Sub-API for pivot table operations on a worksheet.
|
|
3
|
+
*
|
|
4
|
+
* Provides methods to create, query, modify, and remove pivot tables within a
|
|
5
|
+
* worksheet. Pivot tables are rendered on a target sheet and connected
|
|
6
|
+
* to a source data range.
|
|
7
|
+
*
|
|
8
|
+
* Operations on this sub-API operate on the worksheet's sheet (no sheetId parameter needed).
|
|
9
|
+
*/
|
|
10
|
+
import type { CellRange, CellValue } from '../../core';
|
|
11
|
+
import type { AggregateFunction, CalculatedField, PivotExpansionState, PivotFieldArea, PivotFilter, PivotTableConfig, PivotTableLayout, PivotTableStyle, SortOrder } from '../../data/pivot';
|
|
12
|
+
import type { PivotQueryResult, PivotTableHandle, PivotTableInfo } from '../types';
|
|
13
|
+
/** Sub-API for pivot table operations on a worksheet. */
|
|
14
|
+
export interface WorksheetPivots {
|
|
15
|
+
/**
|
|
16
|
+
* Create a new pivot table on this worksheet.
|
|
17
|
+
*
|
|
18
|
+
* @param config - Pivot table configuration (source, fields, placements).
|
|
19
|
+
* The `id`, `createdAt`, and `updatedAt` fields are auto-generated and should be omitted.
|
|
20
|
+
* @returns The created pivot table configuration (with generated id, timestamps)
|
|
21
|
+
*/
|
|
22
|
+
add(config: Omit<PivotTableConfig, 'id' | 'createdAt' | 'updatedAt'>): Promise<PivotTableConfig>;
|
|
23
|
+
/**
|
|
24
|
+
* Atomically create a new sheet AND a pivot table on it.
|
|
25
|
+
* Both operations happen in a single transaction for undo atomicity.
|
|
26
|
+
*
|
|
27
|
+
* @param sheetName - Name for the new sheet
|
|
28
|
+
* @param config - Pivot table configuration (id, createdAt, updatedAt auto-generated)
|
|
29
|
+
* @returns The new sheet ID and the created pivot config
|
|
30
|
+
*/
|
|
31
|
+
addWithSheet(sheetName: string, config: Omit<PivotTableConfig, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
32
|
+
sheetId: string;
|
|
33
|
+
config: PivotTableConfig;
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Remove a pivot table by name.
|
|
37
|
+
*
|
|
38
|
+
* @param name - Pivot table name
|
|
39
|
+
*/
|
|
40
|
+
remove(name: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* List all pivot tables on this worksheet.
|
|
43
|
+
*
|
|
44
|
+
* @returns Array of pivot table summary information
|
|
45
|
+
*/
|
|
46
|
+
list(): Promise<PivotTableInfo[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Get a pivot table handle by name.
|
|
49
|
+
*
|
|
50
|
+
* @param name - Pivot table name
|
|
51
|
+
* @returns A handle for the pivot table, or null if not found
|
|
52
|
+
*/
|
|
53
|
+
get(name: string): Promise<PivotTableHandle | null>;
|
|
54
|
+
/**
|
|
55
|
+
* Add a field to a pivot table area.
|
|
56
|
+
*
|
|
57
|
+
* @param pivotId - Pivot table ID
|
|
58
|
+
* @param fieldId - Field ID to add
|
|
59
|
+
* @param area - Target area (row, column, value, or filter)
|
|
60
|
+
* @param options - Optional configuration (position, aggregateFunction, sortOrder, displayName)
|
|
61
|
+
*/
|
|
62
|
+
addField(pivotId: string, fieldId: string, area: PivotFieldArea, options?: {
|
|
63
|
+
position?: number;
|
|
64
|
+
aggregateFunction?: AggregateFunction;
|
|
65
|
+
sortOrder?: SortOrder;
|
|
66
|
+
displayName?: string;
|
|
67
|
+
}): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Remove a field from a pivot table area.
|
|
70
|
+
*
|
|
71
|
+
* @param pivotId - Pivot table ID
|
|
72
|
+
* @param fieldId - Field ID to remove
|
|
73
|
+
* @param area - Area to remove the field from
|
|
74
|
+
*/
|
|
75
|
+
removeField(pivotId: string, fieldId: string, area: PivotFieldArea): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Move a field to a different area or position.
|
|
78
|
+
*
|
|
79
|
+
* @param pivotId - Pivot table ID
|
|
80
|
+
* @param fieldId - Field ID to move
|
|
81
|
+
* @param fromArea - Source area
|
|
82
|
+
* @param toArea - Target area
|
|
83
|
+
* @param toPosition - Target position within the area
|
|
84
|
+
*/
|
|
85
|
+
moveField(pivotId: string, fieldId: string, fromArea: PivotFieldArea, toArea: PivotFieldArea, toPosition: number): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Set the aggregate function for a value field.
|
|
88
|
+
*
|
|
89
|
+
* @param pivotId - Pivot table ID
|
|
90
|
+
* @param fieldId - Field ID (must be in the 'value' area)
|
|
91
|
+
* @param aggregateFunction - New aggregation function
|
|
92
|
+
*/
|
|
93
|
+
setAggregateFunction(pivotId: string, fieldId: string, aggregateFunction: AggregateFunction): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Set the sort order for a row or column field.
|
|
96
|
+
*
|
|
97
|
+
* @param pivotId - Pivot table ID
|
|
98
|
+
* @param fieldId - Field ID (must be in 'row' or 'column' area)
|
|
99
|
+
* @param sortOrder - Sort order ('asc', 'desc', or 'none')
|
|
100
|
+
*/
|
|
101
|
+
setSortOrder(pivotId: string, fieldId: string, sortOrder: SortOrder): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Set (add or update) a filter on a field.
|
|
104
|
+
*
|
|
105
|
+
* @param pivotId - Pivot table ID
|
|
106
|
+
* @param fieldId - Field ID to filter
|
|
107
|
+
* @param filter - Filter configuration (without fieldId)
|
|
108
|
+
*/
|
|
109
|
+
setFilter(pivotId: string, fieldId: string, filter: Omit<PivotFilter, 'fieldId'>): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Remove a filter from a field.
|
|
112
|
+
*
|
|
113
|
+
* @param pivotId - Pivot table ID
|
|
114
|
+
* @param fieldId - Field ID whose filter should be removed
|
|
115
|
+
*/
|
|
116
|
+
removeFilter(pivotId: string, fieldId: string): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Set layout options for a pivot table.
|
|
119
|
+
*
|
|
120
|
+
* @param pivotId - Pivot table ID
|
|
121
|
+
* @param layout - Partial layout configuration to merge with existing
|
|
122
|
+
*/
|
|
123
|
+
setLayout(pivotId: string, layout: Partial<PivotTableLayout>): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Set style options for a pivot table.
|
|
126
|
+
*
|
|
127
|
+
* @param pivotId - Pivot table ID
|
|
128
|
+
* @param style - Partial style configuration to merge with existing
|
|
129
|
+
*/
|
|
130
|
+
setStyle(pivotId: string, style: Partial<PivotTableStyle>): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Detect fields from source data for pivot table creation.
|
|
133
|
+
*
|
|
134
|
+
* @param sourceSheetId - Sheet ID containing the source data
|
|
135
|
+
* @param range - Source data range
|
|
136
|
+
* @returns Array of detected pivot fields
|
|
137
|
+
*/
|
|
138
|
+
detectFields(sourceSheetId: string, range: {
|
|
139
|
+
startRow: number;
|
|
140
|
+
startCol: number;
|
|
141
|
+
endRow: number;
|
|
142
|
+
endCol: number;
|
|
143
|
+
}): Promise<any[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Compute a pivot table result (uses cache if available).
|
|
146
|
+
*
|
|
147
|
+
* @param pivotId - Pivot table ID
|
|
148
|
+
* @param forceRefresh - Force recomputation ignoring cache
|
|
149
|
+
* @returns Computed pivot table result
|
|
150
|
+
*/
|
|
151
|
+
compute(pivotId: string, forceRefresh?: boolean): Promise<any>;
|
|
152
|
+
/**
|
|
153
|
+
* Query a pivot table by name, returning flat records optionally filtered by dimension values.
|
|
154
|
+
* Eliminates the need to manually traverse hierarchical PivotTableResult trees.
|
|
155
|
+
*
|
|
156
|
+
* @param pivotName - Pivot table name
|
|
157
|
+
* @param filters - Optional dimension filters: field name → value or array of values to include
|
|
158
|
+
* @returns Flat query result, or null if pivot not found or not computable
|
|
159
|
+
*/
|
|
160
|
+
queryPivot(pivotName: string, filters?: Record<string, CellValue | CellValue[]>): Promise<PivotQueryResult | null>;
|
|
161
|
+
/**
|
|
162
|
+
* Refresh a pivot table (recompute without cache).
|
|
163
|
+
*
|
|
164
|
+
* @param pivotId - Pivot table ID
|
|
165
|
+
*/
|
|
166
|
+
refresh(pivotId: string): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Get drill-down data for a pivot table cell.
|
|
169
|
+
*
|
|
170
|
+
* @param pivotId - Pivot table ID
|
|
171
|
+
* @param rowKey - Row key from the pivot result
|
|
172
|
+
* @param columnKey - Column key from the pivot result
|
|
173
|
+
* @returns Source data rows that contribute to this cell
|
|
174
|
+
*/
|
|
175
|
+
getDrillDownData(pivotId: string, rowKey: string, columnKey: string): Promise<any[][]>;
|
|
176
|
+
/**
|
|
177
|
+
* Add a calculated field to a pivot table.
|
|
178
|
+
*
|
|
179
|
+
* @param pivotId - Pivot table ID
|
|
180
|
+
* @param field - Calculated field definition (fieldId, name, formula)
|
|
181
|
+
*/
|
|
182
|
+
addCalculatedField(pivotId: string, field: CalculatedField): Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* Remove a calculated field from a pivot table.
|
|
185
|
+
*
|
|
186
|
+
* @param pivotId - Pivot table ID
|
|
187
|
+
* @param fieldId - Calculated field ID to remove
|
|
188
|
+
*/
|
|
189
|
+
removeCalculatedField(pivotId: string, fieldId: string): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* Update a calculated field on a pivot table.
|
|
192
|
+
*
|
|
193
|
+
* @param pivotId - Pivot table ID
|
|
194
|
+
* @param fieldId - Calculated field ID to update
|
|
195
|
+
* @param updates - Partial updates (name and/or formula)
|
|
196
|
+
*/
|
|
197
|
+
updateCalculatedField(pivotId: string, fieldId: string, updates: Partial<Pick<CalculatedField, 'name' | 'formula'>>): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* Get the full range occupied by the rendered pivot table.
|
|
200
|
+
*
|
|
201
|
+
* @param pivotId - Pivot table ID
|
|
202
|
+
* @returns CellRange covering the entire pivot table, or null if not computed
|
|
203
|
+
*/
|
|
204
|
+
getRange(pivotId: string): Promise<CellRange | null>;
|
|
205
|
+
/**
|
|
206
|
+
* Get the range of the data body (values only, excluding headers and totals row labels).
|
|
207
|
+
*
|
|
208
|
+
* @param pivotId - Pivot table ID
|
|
209
|
+
* @returns CellRange covering the data body, or null if not computed
|
|
210
|
+
*/
|
|
211
|
+
getDataBodyRange(pivotId: string): Promise<CellRange | null>;
|
|
212
|
+
/**
|
|
213
|
+
* Get the range of column label headers.
|
|
214
|
+
*
|
|
215
|
+
* @param pivotId - Pivot table ID
|
|
216
|
+
* @returns CellRange covering the column headers, or null if not computed
|
|
217
|
+
*/
|
|
218
|
+
getColumnLabelRange(pivotId: string): Promise<CellRange | null>;
|
|
219
|
+
/**
|
|
220
|
+
* Get the range of row label headers.
|
|
221
|
+
*
|
|
222
|
+
* @param pivotId - Pivot table ID
|
|
223
|
+
* @returns CellRange covering the row headers, or null if not computed
|
|
224
|
+
*/
|
|
225
|
+
getRowLabelRange(pivotId: string): Promise<CellRange | null>;
|
|
226
|
+
/**
|
|
227
|
+
* Get the range of the filter area (page fields above the pivot table).
|
|
228
|
+
*
|
|
229
|
+
* @param pivotId - Pivot table ID
|
|
230
|
+
* @returns CellRange covering filter dropdowns, or null if no filter fields
|
|
231
|
+
*/
|
|
232
|
+
getFilterAxisRange(pivotId: string): Promise<CellRange | null>;
|
|
233
|
+
/**
|
|
234
|
+
* Toggle expansion state for a header.
|
|
235
|
+
*
|
|
236
|
+
* @param pivotId - Pivot table ID
|
|
237
|
+
* @param headerKey - Header key to toggle
|
|
238
|
+
* @param isRow - Whether this is a row header (true) or column header (false)
|
|
239
|
+
* @returns The new expansion state (true = expanded, false = collapsed)
|
|
240
|
+
*/
|
|
241
|
+
toggleExpanded(pivotId: string, headerKey: string, isRow: boolean): Promise<boolean>;
|
|
242
|
+
/**
|
|
243
|
+
* Set expansion state for all headers.
|
|
244
|
+
*
|
|
245
|
+
* @param pivotId - Pivot table ID
|
|
246
|
+
* @param expanded - Whether all headers should be expanded (true) or collapsed (false)
|
|
247
|
+
*/
|
|
248
|
+
setAllExpanded(pivotId: string, expanded: boolean): Promise<void>;
|
|
249
|
+
/**
|
|
250
|
+
* Get the current expansion state for a pivot table.
|
|
251
|
+
*
|
|
252
|
+
* @param pivotId - Pivot table ID
|
|
253
|
+
* @returns Expansion state with expandedRows and expandedColumns maps
|
|
254
|
+
*/
|
|
255
|
+
getExpansionState(pivotId: string): Promise<PivotExpansionState>;
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=pivots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivots.d.ts","sourceRoot":"","sources":["../../../src/api/worksheet/pivots.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetPrint — Sub-API Interface for Print Settings and Page Breaks
|
|
3
|
+
*
|
|
4
|
+
* Methods for managing print settings, print area, and manual page breaks.
|
|
5
|
+
*/
|
|
6
|
+
import type { PrintSettings } from '../types';
|
|
7
|
+
/** Sub-API for worksheet print and page break operations. */
|
|
8
|
+
export interface WorksheetPrint {
|
|
9
|
+
/**
|
|
10
|
+
* Get the current print settings for the sheet.
|
|
11
|
+
*
|
|
12
|
+
* @returns Current print settings
|
|
13
|
+
*/
|
|
14
|
+
getSettings(): Promise<PrintSettings>;
|
|
15
|
+
/**
|
|
16
|
+
* Update print settings. Only the provided keys are changed.
|
|
17
|
+
*
|
|
18
|
+
* @param settings - Partial print settings to apply
|
|
19
|
+
*/
|
|
20
|
+
setSettings(settings: Partial<PrintSettings>): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the current print area as an A1-notation range string.
|
|
23
|
+
*
|
|
24
|
+
* @returns The print area range string, or null if no print area is set
|
|
25
|
+
*/
|
|
26
|
+
getArea(): Promise<string | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Set the print area to the specified A1-notation range.
|
|
29
|
+
*
|
|
30
|
+
* @param area - A1-notation range string (e.g., "A1:H20")
|
|
31
|
+
*/
|
|
32
|
+
setArea(area: string): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Clear the print area so the entire sheet prints.
|
|
35
|
+
*/
|
|
36
|
+
clearArea(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Add a manual page break at the specified position.
|
|
39
|
+
*
|
|
40
|
+
* @param type - 'horizontal' (row break) or 'vertical' (column break)
|
|
41
|
+
* @param position - 0-based row or column index for the break
|
|
42
|
+
*/
|
|
43
|
+
addPageBreak(type: 'horizontal' | 'vertical', position: number): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Remove a manual page break at the specified position.
|
|
46
|
+
*
|
|
47
|
+
* @param type - 'horizontal' or 'vertical'
|
|
48
|
+
* @param position - 0-based row or column index of the break to remove
|
|
49
|
+
*/
|
|
50
|
+
removePageBreak(type: 'horizontal' | 'vertical', position: number): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Get all manual page breaks in the sheet.
|
|
53
|
+
*
|
|
54
|
+
* @returns Object containing arrays of horizontal and vertical break positions
|
|
55
|
+
*/
|
|
56
|
+
getPageBreaks(): Promise<{
|
|
57
|
+
rowBreaks: Array<{
|
|
58
|
+
id: number;
|
|
59
|
+
min: number;
|
|
60
|
+
max: number;
|
|
61
|
+
manual: boolean;
|
|
62
|
+
pt: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
colBreaks: Array<{
|
|
65
|
+
id: number;
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
manual: boolean;
|
|
69
|
+
pt: boolean;
|
|
70
|
+
}>;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* Remove all manual page breaks from the sheet.
|
|
74
|
+
*/
|
|
75
|
+
clearPageBreaks(): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Set the rows to repeat at the top of each printed page (print titles).
|
|
78
|
+
*
|
|
79
|
+
* @param startRow - 0-based start row index
|
|
80
|
+
* @param endRow - 0-based end row index (inclusive)
|
|
81
|
+
*/
|
|
82
|
+
setPrintTitleRows(startRow: number, endRow: number): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Set the columns to repeat at the left of each printed page (print titles).
|
|
85
|
+
*
|
|
86
|
+
* @param startCol - 0-based start column index
|
|
87
|
+
* @param endCol - 0-based end column index (inclusive)
|
|
88
|
+
*/
|
|
89
|
+
setPrintTitleColumns(startCol: number, endCol: number): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Get the rows configured to repeat at the top of each printed page.
|
|
92
|
+
*
|
|
93
|
+
* @returns A [startRow, endRow] tuple (0-based, inclusive), or null if no repeat rows are set
|
|
94
|
+
*/
|
|
95
|
+
getPrintTitleRows(): Promise<[number, number] | null>;
|
|
96
|
+
/**
|
|
97
|
+
* Get the columns configured to repeat at the left of each printed page.
|
|
98
|
+
*
|
|
99
|
+
* @returns A [startCol, endCol] tuple (0-based, inclusive), or null if no repeat columns are set
|
|
100
|
+
*/
|
|
101
|
+
getPrintTitleColumns(): Promise<[number, number] | null>;
|
|
102
|
+
/**
|
|
103
|
+
* Clear all print titles (both repeat rows and repeat columns).
|
|
104
|
+
* Other print settings (margins, orientation, etc.) are preserved.
|
|
105
|
+
*/
|
|
106
|
+
clearPrintTitles(): Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=print.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../src/api/worksheet/print.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,6DAA6D;AAC7D,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAEtC;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAElC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/E;;;;;OAKG;IACH,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElF;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC;QACvB,SAAS,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,OAAO,CAAC;YAAC,EAAE,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QACzF,SAAS,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,OAAO,CAAC;YAAC,EAAE,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;KAC1F,CAAC,CAAC;IAEH;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjC;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;;OAKG;IACH,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;;;OAIG;IACH,iBAAiB,IAAI,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAEtD;;;;OAIG;IACH,oBAAoB,IAAI,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAEzD;;;OAGG;IACH,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetProtection — Sub-API Interface for Sheet Protection
|
|
3
|
+
*
|
|
4
|
+
* Methods for protecting/unprotecting sheets, querying protection state,
|
|
5
|
+
* and checking whether specific operations are allowed under protection.
|
|
6
|
+
*/
|
|
7
|
+
import type { ProtectionConfig, ProtectionOptions } from '../types';
|
|
8
|
+
/** Sub-API for worksheet protection operations. */
|
|
9
|
+
export interface WorksheetProtection {
|
|
10
|
+
/**
|
|
11
|
+
* Check whether the sheet is currently protected.
|
|
12
|
+
*
|
|
13
|
+
* @returns True if the sheet is protected
|
|
14
|
+
*/
|
|
15
|
+
isProtected(): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Protect the sheet with an optional password and granular permission options.
|
|
18
|
+
*
|
|
19
|
+
* @param password - Optional password to require for unprotection
|
|
20
|
+
* @param options - Granular permissions (e.g., allowSort, allowFormatCells)
|
|
21
|
+
*/
|
|
22
|
+
protect(password?: string, options?: ProtectionOptions): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Unprotect the sheet. Returns true if unprotection succeeded.
|
|
25
|
+
*
|
|
26
|
+
* @param password - Password if the sheet was protected with one
|
|
27
|
+
* @returns True if the sheet was successfully unprotected
|
|
28
|
+
*/
|
|
29
|
+
unprotect(password?: string): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Check whether a specific cell can be edited under current protection.
|
|
32
|
+
* Returns true if the sheet is unprotected or the cell is unlocked.
|
|
33
|
+
*
|
|
34
|
+
* @param row - Row index (0-based)
|
|
35
|
+
* @param col - Column index (0-based)
|
|
36
|
+
* @returns True if the cell is editable
|
|
37
|
+
*/
|
|
38
|
+
canEditCell(row: number, col: number): Promise<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Check whether a structural operation is allowed under current protection.
|
|
41
|
+
*
|
|
42
|
+
* @param operation - Operation name (e.g., 'sort', 'insertRows', 'deleteColumns')
|
|
43
|
+
* @returns True if the operation is allowed
|
|
44
|
+
*/
|
|
45
|
+
canDoStructureOp(operation: string): Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Check whether sorting is allowed under current protection.
|
|
48
|
+
* Convenience shorthand for `canDoStructureOp('sort')`.
|
|
49
|
+
*
|
|
50
|
+
* @returns True if sorting is allowed
|
|
51
|
+
*/
|
|
52
|
+
canSort(): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Get the full protection configuration for the sheet.
|
|
55
|
+
*
|
|
56
|
+
* @returns Protection configuration including status and permission flags
|
|
57
|
+
*/
|
|
58
|
+
getConfig(): Promise<ProtectionConfig>;
|
|
59
|
+
/**
|
|
60
|
+
* Get the current selection mode when the sheet is protected.
|
|
61
|
+
*
|
|
62
|
+
* @returns 'normal' (all cells selectable), 'unlockedOnly' (only unlocked cells), or 'none' (no selection)
|
|
63
|
+
*/
|
|
64
|
+
getSelectionMode(): Promise<'normal' | 'unlockedOnly' | 'none'>;
|
|
65
|
+
/**
|
|
66
|
+
* Set the selection mode for when the sheet is protected.
|
|
67
|
+
* Only takes effect when the sheet is actually protected.
|
|
68
|
+
*
|
|
69
|
+
* @param mode - Selection mode
|
|
70
|
+
*/
|
|
71
|
+
setSelectionMode(mode: 'normal' | 'unlockedOnly' | 'none'): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=protection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protection.d.ts","sourceRoot":"","sources":["../../../src/api/worksheet/protection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEpE,mDAAmD;AACnD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvE;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;;;;OAOG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAExD;;;;;OAKG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtD;;;;;OAKG;IACH,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE5B;;;;OAIG;IACH,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEvC;;;;OAIG;IACH,gBAAgB,IAAI,OAAO,CAAC,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAC,CAAC;IAEhE;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetSettings — Sub-API Interface for Sheet Settings
|
|
3
|
+
*
|
|
4
|
+
* Methods for reading and writing sheet-level settings (default dimensions,
|
|
5
|
+
* gridline color, RTL layout, etc.) and workbook-level custom lists.
|
|
6
|
+
*/
|
|
7
|
+
import type { SheetSettingsInfo } from '../types';
|
|
8
|
+
/** Sub-API for worksheet settings operations. */
|
|
9
|
+
export interface WorksheetSettings {
|
|
10
|
+
/**
|
|
11
|
+
* Get all sheet settings.
|
|
12
|
+
*
|
|
13
|
+
* @returns Current sheet settings
|
|
14
|
+
*/
|
|
15
|
+
get(): Promise<SheetSettingsInfo>;
|
|
16
|
+
/**
|
|
17
|
+
* Set an individual sheet setting by key.
|
|
18
|
+
*
|
|
19
|
+
* @param key - Setting key (e.g., 'showGridlines', 'defaultRowHeight')
|
|
20
|
+
* @param value - New value for the setting
|
|
21
|
+
*/
|
|
22
|
+
set<K extends keyof SheetSettingsInfo>(key: K, value: SheetSettingsInfo[K]): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the workbook-level custom sort lists.
|
|
25
|
+
*
|
|
26
|
+
* @returns Array of custom lists, each being an array of string values
|
|
27
|
+
*/
|
|
28
|
+
getCustomLists(): Promise<string[][]>;
|
|
29
|
+
/**
|
|
30
|
+
* Replace all user-defined custom sort lists.
|
|
31
|
+
*
|
|
32
|
+
* @param lists - Array of custom lists to set
|
|
33
|
+
*/
|
|
34
|
+
setCustomLists(lists: string[][]): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the standard (default) row height in pixels.
|
|
37
|
+
* This is the height used for rows that haven't been explicitly sized.
|
|
38
|
+
* Read-only (matches OfficeJS semantics).
|
|
39
|
+
*/
|
|
40
|
+
getStandardHeight(): Promise<number>;
|
|
41
|
+
/**
|
|
42
|
+
* Get the standard (default) column width in pixels.
|
|
43
|
+
* This is the width used for columns that haven't been explicitly sized.
|
|
44
|
+
*/
|
|
45
|
+
getStandardWidth(): Promise<number>;
|
|
46
|
+
/**
|
|
47
|
+
* Set the standard (default) column width in pixels.
|
|
48
|
+
* This changes the default width for all columns that haven't been explicitly sized.
|
|
49
|
+
*
|
|
50
|
+
* @param width - New default column width in pixels
|
|
51
|
+
*/
|
|
52
|
+
setStandardWidth(width: number): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/api/worksheet/settings.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,iDAAiD;AACjD,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,GAAG,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAElC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,iBAAiB,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3F;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAEtC;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD;;;;OAIG;IACH,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAErC;;;OAGG;IACH,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetSlicers — Sub-API for slicer operations on a worksheet.
|
|
3
|
+
*
|
|
4
|
+
* Provides methods to create, query, modify, and remove slicers (visual
|
|
5
|
+
* filter controls) within a worksheet. Slicers are connected to tables
|
|
6
|
+
* or pivot tables and filter data by column values.
|
|
7
|
+
*/
|
|
8
|
+
import type { CellValue } from '../../core/core';
|
|
9
|
+
import type { Slicer, SlicerConfig, SlicerInfo, SlicerItem, SlicerState } from '../types';
|
|
10
|
+
/** Sub-API for slicer operations on a worksheet. */
|
|
11
|
+
export interface WorksheetSlicers {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new slicer on this worksheet.
|
|
14
|
+
*
|
|
15
|
+
* @param config - Slicer configuration (table, column, position)
|
|
16
|
+
* @returns The ID of the created slicer
|
|
17
|
+
*/
|
|
18
|
+
add(config: SlicerConfig): Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Remove a slicer from this worksheet.
|
|
21
|
+
*
|
|
22
|
+
* @param slicerId - ID of the slicer to remove
|
|
23
|
+
*/
|
|
24
|
+
remove(slicerId: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* List all slicers on this worksheet.
|
|
27
|
+
*
|
|
28
|
+
* @returns Array of slicer summary information
|
|
29
|
+
*/
|
|
30
|
+
list(): Promise<SlicerInfo[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Get a slicer by ID, including full state.
|
|
33
|
+
*
|
|
34
|
+
* @param slicerId - ID of the slicer
|
|
35
|
+
* @returns Full slicer state, or null if not found
|
|
36
|
+
*/
|
|
37
|
+
get(slicerId: string): Promise<Slicer | null>;
|
|
38
|
+
/**
|
|
39
|
+
* Get the items (values) available in a slicer.
|
|
40
|
+
*
|
|
41
|
+
* @param slicerId - ID of the slicer
|
|
42
|
+
* @returns Array of slicer items with selection state
|
|
43
|
+
*/
|
|
44
|
+
getItems(slicerId: string): Promise<SlicerItem[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a slicer item by its string key.
|
|
47
|
+
*
|
|
48
|
+
* @param slicerId - ID of the slicer
|
|
49
|
+
* @param key - The value to look up (matched via string coercion)
|
|
50
|
+
* @returns The matching slicer item
|
|
51
|
+
* @throws KernelError if no item matches the key
|
|
52
|
+
*/
|
|
53
|
+
getItem(slicerId: string, key: CellValue): Promise<SlicerItem>;
|
|
54
|
+
/**
|
|
55
|
+
* Get a slicer item by its string key, or null if not found.
|
|
56
|
+
*
|
|
57
|
+
* @param slicerId - ID of the slicer
|
|
58
|
+
* @param key - The value to look up (matched via string coercion)
|
|
59
|
+
* @returns The matching slicer item, or null if not found
|
|
60
|
+
*/
|
|
61
|
+
getItemOrNullObject(slicerId: string, key: CellValue): Promise<SlicerItem | null>;
|
|
62
|
+
/**
|
|
63
|
+
* Set the selected items in a slicer, replacing any existing selection.
|
|
64
|
+
*
|
|
65
|
+
* @param slicerId - ID of the slicer
|
|
66
|
+
* @param selectedItems - Array of values to select
|
|
67
|
+
*/
|
|
68
|
+
setSelection(slicerId: string, selectedItems: CellValue[]): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Clear all selections in a slicer (show all items).
|
|
71
|
+
*
|
|
72
|
+
* @param slicerId - ID of the slicer
|
|
73
|
+
*/
|
|
74
|
+
clearSelection(slicerId: string): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Duplicate a slicer with an optional position offset.
|
|
77
|
+
*
|
|
78
|
+
* @param slicerId - ID of the slicer to duplicate
|
|
79
|
+
* @param offset - Position offset in pixels (defaults to { x: 20, y: 20 })
|
|
80
|
+
* @returns The ID of the newly created slicer
|
|
81
|
+
*/
|
|
82
|
+
duplicate(slicerId: string, offset?: {
|
|
83
|
+
x?: number;
|
|
84
|
+
y?: number;
|
|
85
|
+
}): Promise<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Update a slicer's configuration.
|
|
88
|
+
*
|
|
89
|
+
* @param slicerId - ID of the slicer
|
|
90
|
+
* @param updates - Partial configuration updates
|
|
91
|
+
*/
|
|
92
|
+
updateConfig(slicerId: string, updates: Partial<SlicerConfig>): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Get the enriched runtime state of a slicer.
|
|
95
|
+
*
|
|
96
|
+
* @param slicerId - ID of the slicer
|
|
97
|
+
* @returns Enriched slicer state including computed items and connection status
|
|
98
|
+
*/
|
|
99
|
+
getState(slicerId: string): Promise<SlicerState>;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=slicers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slicers.d.ts","sourceRoot":"","sources":["../../../src/api/worksheet/slicers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1F,oDAAoD;AACpD,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3C;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAE9B;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAElD;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAE/D;;;;;;OAMG;IACH,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAElF;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1E;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElF;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9E;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorksheetSmartArt — Sub-API Interface for SmartArt Diagram Operations
|
|
3
|
+
*
|
|
4
|
+
* CRUD operations plus node manipulation, layout/style changes,
|
|
5
|
+
* and computed layout cache management.
|
|
6
|
+
*/
|
|
7
|
+
import type { SmartArtConfig } from '../types';
|
|
8
|
+
import type { ComputedLayout, NodeId, SmartArtDiagram, SmartArtNode } from '../../smartart/types';
|
|
9
|
+
export type NodePosition = 'before' | 'after' | 'above' | 'below' | 'child';
|
|
10
|
+
export type NodeMoveDirection = 'promote' | 'demote' | 'move-up' | 'move-down';
|
|
11
|
+
export interface WorksheetSmartArt {
|
|
12
|
+
/** Add a SmartArt diagram to the sheet. Returns the object ID. */
|
|
13
|
+
add(config: SmartArtConfig): Promise<string>;
|
|
14
|
+
/** Get a SmartArt diagram by object ID, or null if not found. */
|
|
15
|
+
get(objectId: string): Promise<SmartArtDiagram | null>;
|
|
16
|
+
/** Remove a SmartArt diagram by object ID. */
|
|
17
|
+
remove(objectId: string): Promise<void>;
|
|
18
|
+
/** List all SmartArt diagrams on the sheet. */
|
|
19
|
+
list(): Promise<SmartArtDiagram[]>;
|
|
20
|
+
/** Duplicate a SmartArt diagram. Returns the new object ID. */
|
|
21
|
+
duplicate(objectId: string): Promise<string>;
|
|
22
|
+
/** Add a node to a diagram. Returns the new node ID. */
|
|
23
|
+
addNode(objectId: string, text: string, position: NodePosition, referenceNodeId: NodeId | null): NodeId | Promise<NodeId>;
|
|
24
|
+
/** Remove a node from a diagram. */
|
|
25
|
+
removeNode(objectId: string, nodeId: NodeId): void | Promise<void>;
|
|
26
|
+
/** Update a node's properties. */
|
|
27
|
+
updateNode(objectId: string, nodeId: NodeId, updates: Partial<SmartArtNode>): void | Promise<void>;
|
|
28
|
+
/** Move a node in the hierarchy. */
|
|
29
|
+
moveNode(objectId: string, nodeId: NodeId, direction: NodeMoveDirection): void | Promise<void>;
|
|
30
|
+
/** Get a node by ID. */
|
|
31
|
+
getNode(objectId: string, nodeId: NodeId): SmartArtNode | undefined | Promise<SmartArtNode | undefined>;
|
|
32
|
+
/** Get a diagram by object ID. */
|
|
33
|
+
getDiagram(objectId: string): SmartArtDiagram | undefined | Promise<SmartArtDiagram | undefined>;
|
|
34
|
+
/** Get all diagrams on this sheet. */
|
|
35
|
+
getDiagramsOnSheet(): SmartArtDiagram[] | Promise<SmartArtDiagram[]>;
|
|
36
|
+
/** Change the diagram layout. */
|
|
37
|
+
changeLayout(objectId: string, newLayoutId: string): void | Promise<void>;
|
|
38
|
+
/** Change the quick style. */
|
|
39
|
+
changeQuickStyle(objectId: string, quickStyleId: string): void | Promise<void>;
|
|
40
|
+
/** Change the color theme. */
|
|
41
|
+
changeColorTheme(objectId: string, colorThemeId: string): void | Promise<void>;
|
|
42
|
+
/** Get the computed layout for a diagram. Returns cached result if valid. */
|
|
43
|
+
getComputedLayout(objectId: string): ComputedLayout | undefined | Promise<ComputedLayout | undefined>;
|
|
44
|
+
/** Invalidate the cached layout for a diagram. */
|
|
45
|
+
invalidateLayout(objectId: string): void;
|
|
46
|
+
/** Invalidate all cached layouts. */
|
|
47
|
+
invalidateAllLayouts(): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=smartart.d.ts.map
|