@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,943 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core spreadsheet contracts - shared types used across all packages
|
|
3
|
+
*/
|
|
4
|
+
/** Maximum rows in a sheet (Excel limit: 1,048,576) */
|
|
5
|
+
export declare const MAX_ROWS = 1048576;
|
|
6
|
+
/** Maximum columns in a sheet (Excel limit: 16,384 = XFD) */
|
|
7
|
+
export declare const MAX_COLS = 16384;
|
|
8
|
+
import type { FormulaA1 } from '../cells/formula-string';
|
|
9
|
+
import type { RichText } from '../cells/rich-text';
|
|
10
|
+
/**
|
|
11
|
+
* Primitive cell value types
|
|
12
|
+
*/
|
|
13
|
+
export type CellValuePrimitive = string | number | boolean | null;
|
|
14
|
+
/**
|
|
15
|
+
* Cell value including error types.
|
|
16
|
+
* Used for computed/formula results and API output.
|
|
17
|
+
*/
|
|
18
|
+
export type CellValue = CellValuePrimitive | CellError;
|
|
19
|
+
/**
|
|
20
|
+
* Raw cell input value types.
|
|
21
|
+
* Includes RichText for formatted literal text input.
|
|
22
|
+
* Formula results are never RichText - use CellValue for those.
|
|
23
|
+
*
|
|
24
|
+
* When converting from CellRawValue to CellValue, use:
|
|
25
|
+
* - `toPlainText()` from './rich-text' if value is RichText
|
|
26
|
+
* - Value as-is if it's a primitive
|
|
27
|
+
*/
|
|
28
|
+
export type CellRawValue = CellValuePrimitive | RichText;
|
|
29
|
+
/**
|
|
30
|
+
* Machine-friendly variant names for Excel error types.
|
|
31
|
+
* Use `errorDisplayString()` to convert to the user-facing display string.
|
|
32
|
+
*/
|
|
33
|
+
export type ErrorVariant = 'Null' | 'Div0' | 'Value' | 'Ref' | 'Name' | 'Num' | 'Na' | 'GettingData' | 'Spill' | 'Calc' | 'Circ';
|
|
34
|
+
/**
|
|
35
|
+
* Standard Excel error types
|
|
36
|
+
*/
|
|
37
|
+
export interface CellError {
|
|
38
|
+
type: 'error';
|
|
39
|
+
value: ErrorVariant;
|
|
40
|
+
message?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Sheet identifier (opaque string)
|
|
44
|
+
*/
|
|
45
|
+
export type SheetId = string;
|
|
46
|
+
/**
|
|
47
|
+
* Cell address reference
|
|
48
|
+
*
|
|
49
|
+
* NOTE: sheetId is REQUIRED to ensure explicit sheet context for all cell references.
|
|
50
|
+
* This enables proper cross-sheet formula handling and dependency tracking.
|
|
51
|
+
* If you need a cell reference without sheet context (within the active sheet),
|
|
52
|
+
* use { row, col } inline or create a local type.
|
|
53
|
+
*/
|
|
54
|
+
export interface CellAddress {
|
|
55
|
+
row: number;
|
|
56
|
+
col: number;
|
|
57
|
+
sheetId: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Cell range reference.
|
|
61
|
+
*
|
|
62
|
+
* This is THE canonical range type for ALL range operations in the spreadsheet.
|
|
63
|
+
* Uses flat format for simplicity and JSON compatibility.
|
|
64
|
+
*
|
|
65
|
+
* Used by: XState machines, canvas coordinates, React hooks, API, events, tables, pivots
|
|
66
|
+
*/
|
|
67
|
+
export interface CellRange {
|
|
68
|
+
startRow: number;
|
|
69
|
+
startCol: number;
|
|
70
|
+
endRow: number;
|
|
71
|
+
endCol: number;
|
|
72
|
+
/** True when entire column(s) selected via column header click */
|
|
73
|
+
isFullColumn?: boolean;
|
|
74
|
+
/** True when entire row(s) selected via row header click */
|
|
75
|
+
isFullRow?: boolean;
|
|
76
|
+
sheetId?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Number format types
|
|
80
|
+
*/
|
|
81
|
+
export type NumberFormatType = 'general' | 'number' | 'currency' | 'accounting' | 'date' | 'time' | 'percentage' | 'fraction' | 'scientific' | 'text' | 'special' | 'custom';
|
|
82
|
+
/**
|
|
83
|
+
* Excel pattern fill types.
|
|
84
|
+
*
|
|
85
|
+
* Excel supports 18 pattern types for cell backgrounds. These patterns
|
|
86
|
+
* combine a foreground color (the pattern) with a background color.
|
|
87
|
+
*
|
|
88
|
+
* Pattern visualization (8x8 pixels):
|
|
89
|
+
* - none: No fill (transparent)
|
|
90
|
+
* - solid: Solid fill (fgColor only)
|
|
91
|
+
* - darkGray/mediumGray/lightGray/gray125/gray0625: Dot density patterns
|
|
92
|
+
* - darkHorizontal/lightHorizontal: Horizontal stripe patterns
|
|
93
|
+
* - darkVertical/lightVertical: Vertical stripe patterns
|
|
94
|
+
* - darkDown/lightDown: Diagonal stripes (top-left to bottom-right)
|
|
95
|
+
* - darkUp/lightUp: Diagonal stripes (bottom-left to top-right)
|
|
96
|
+
* - darkGrid/lightGrid: Grid patterns (horizontal + vertical)
|
|
97
|
+
* - darkTrellis/lightTrellis: Cross-hatch patterns (both diagonals)
|
|
98
|
+
*/
|
|
99
|
+
export type PatternType = 'none' | 'solid' | 'darkGray' | 'mediumGray' | 'lightGray' | 'gray125' | 'gray0625' | 'darkHorizontal' | 'darkVertical' | 'darkDown' | 'darkUp' | 'darkGrid' | 'darkTrellis' | 'lightHorizontal' | 'lightVertical' | 'lightDown' | 'lightUp' | 'lightGrid' | 'lightTrellis';
|
|
100
|
+
/**
|
|
101
|
+
* GradientStop — Core contracts layer. Maps to CT_GradientStop (dml-main.xsd:1539) with position + color for cell formatting.
|
|
102
|
+
*/
|
|
103
|
+
export interface GradientStop {
|
|
104
|
+
/**
|
|
105
|
+
* Position along the gradient (0.0 to 1.0).
|
|
106
|
+
* 0.0 = start of gradient, 1.0 = end of gradient.
|
|
107
|
+
*/
|
|
108
|
+
position: number;
|
|
109
|
+
/**
|
|
110
|
+
* Color at this position.
|
|
111
|
+
* Can be absolute hex or theme reference.
|
|
112
|
+
*/
|
|
113
|
+
color: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Gradient fill configuration.
|
|
117
|
+
*
|
|
118
|
+
* Excel supports two gradient types:
|
|
119
|
+
* - linear: Color transitions along a line at a specified angle
|
|
120
|
+
* - path: Color transitions radially from a center point
|
|
121
|
+
*
|
|
122
|
+
* Gradients require at least 2 stops (start and end colors).
|
|
123
|
+
*/
|
|
124
|
+
export interface GradientFill {
|
|
125
|
+
/**
|
|
126
|
+
* Type of gradient.
|
|
127
|
+
* - 'linear': Straight line gradient at specified degree
|
|
128
|
+
* - 'path': Radial/rectangular gradient from center point
|
|
129
|
+
*/
|
|
130
|
+
type: 'linear' | 'path';
|
|
131
|
+
/**
|
|
132
|
+
* Angle of linear gradient in degrees (0-359).
|
|
133
|
+
* 0 = left-to-right, 90 = bottom-to-top, etc.
|
|
134
|
+
* Only used when type is 'linear'.
|
|
135
|
+
*/
|
|
136
|
+
degree?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Center point for path gradients (0.0 to 1.0 for each axis).
|
|
139
|
+
* { left: 0.5, top: 0.5 } = center of cell.
|
|
140
|
+
* Only used when type is 'path'.
|
|
141
|
+
*/
|
|
142
|
+
center?: {
|
|
143
|
+
left: number;
|
|
144
|
+
top: number;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Gradient color stops.
|
|
148
|
+
* Must have at least 2 stops. Stops should be ordered by position.
|
|
149
|
+
*/
|
|
150
|
+
stops: GradientStop[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Cell formatting options
|
|
154
|
+
*
|
|
155
|
+
* This interface defines ALL Excel format properties that can be applied to cells.
|
|
156
|
+
* The implementation status of each property is tracked in format-registry.ts.
|
|
157
|
+
*
|
|
158
|
+
* @see FORMAT_PROPERTY_REGISTRY in format-registry.ts for implementation status
|
|
159
|
+
*/
|
|
160
|
+
export interface CellFormat {
|
|
161
|
+
numberFormat?: string;
|
|
162
|
+
numberFormatType?: NumberFormatType;
|
|
163
|
+
fontFamily?: string;
|
|
164
|
+
fontSize?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Theme font reference for Excel-compatible "+Headings" / "+Body" fonts.
|
|
167
|
+
*
|
|
168
|
+
* When set, the cell uses the theme's majorFont (headings) or minorFont (body)
|
|
169
|
+
* instead of fontFamily. Theme fonts are resolved at render time, allowing cells
|
|
170
|
+
* to automatically update when the workbook theme changes.
|
|
171
|
+
*
|
|
172
|
+
* Behavior:
|
|
173
|
+
* - 'major': Uses theme.fonts.majorFont (e.g., 'Calibri Light' in Office theme)
|
|
174
|
+
* - 'minor': Uses theme.fonts.minorFont (e.g., 'Calibri' in Office theme)
|
|
175
|
+
* - undefined: Uses fontFamily property (or default font if not set)
|
|
176
|
+
*
|
|
177
|
+
* When fontTheme is set, fontFamily is ignored for rendering but may still be
|
|
178
|
+
* stored for fallback purposes. This matches Excel's behavior where "+Headings"
|
|
179
|
+
* cells can have a fontFamily that's used when the theme is unavailable.
|
|
180
|
+
*
|
|
181
|
+
* @see resolveThemeFonts in theme.ts for resolution
|
|
182
|
+
* @see ThemeFonts for theme font pair definition
|
|
183
|
+
*/
|
|
184
|
+
fontTheme?: 'major' | 'minor';
|
|
185
|
+
/**
|
|
186
|
+
* Font color. Can be:
|
|
187
|
+
* - Absolute hex: '#4472c4' or '#ff0000'
|
|
188
|
+
* - Theme reference: 'theme:accent1' (uses current theme's accent1 color)
|
|
189
|
+
* - Theme with tint: 'theme:accent1:0.4' (40% lighter) or 'theme:accent1:-0.25' (25% darker)
|
|
190
|
+
*
|
|
191
|
+
* Theme references are resolved at render time via resolveThemeColors().
|
|
192
|
+
* This enables cells to automatically update when the workbook theme changes.
|
|
193
|
+
*
|
|
194
|
+
* @see resolveThemeColors in theme.ts for resolution
|
|
195
|
+
* @see ThemeColorSlot for valid slot names (dark1, light1, accent1-6, etc.)
|
|
196
|
+
*/
|
|
197
|
+
fontColor?: string;
|
|
198
|
+
bold?: boolean;
|
|
199
|
+
italic?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Underline type. Excel supports 4 underline styles:
|
|
202
|
+
* - 'none': No underline (default)
|
|
203
|
+
* - 'single': Standard underline under all characters
|
|
204
|
+
* - 'double': Two parallel lines under all characters
|
|
205
|
+
* - 'singleAccounting': Underline under text only (not spaces), for column alignment
|
|
206
|
+
* - 'doubleAccounting': Double underline under text only (not spaces), for column alignment
|
|
207
|
+
*/
|
|
208
|
+
underlineType?: 'none' | 'single' | 'double' | 'singleAccounting' | 'doubleAccounting';
|
|
209
|
+
strikethrough?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Superscript text (vertAlign = 'superscript' in Excel).
|
|
212
|
+
* Text is rendered smaller and raised above the baseline.
|
|
213
|
+
*/
|
|
214
|
+
superscript?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Subscript text (vertAlign = 'subscript' in Excel).
|
|
217
|
+
* Text is rendered smaller and lowered below the baseline.
|
|
218
|
+
*/
|
|
219
|
+
subscript?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Font outline effect.
|
|
222
|
+
* Draws only the outline of each character (hollow text).
|
|
223
|
+
* Rare in modern spreadsheets but supported by Excel.
|
|
224
|
+
*/
|
|
225
|
+
fontOutline?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Font shadow effect.
|
|
228
|
+
* Adds a shadow behind the text.
|
|
229
|
+
* Rare in modern spreadsheets but supported by Excel.
|
|
230
|
+
*/
|
|
231
|
+
fontShadow?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Horizontal text alignment.
|
|
234
|
+
* - 'general': Context-based (left for text, right for numbers) - Excel default
|
|
235
|
+
* - 'left': Left-align text
|
|
236
|
+
* - 'center': Center text
|
|
237
|
+
* - 'right': Right-align text
|
|
238
|
+
* - 'fill': Repeat content to fill cell width
|
|
239
|
+
* - 'justify': Justify text (distribute evenly)
|
|
240
|
+
* - 'centerContinuous': Center across selection without merging
|
|
241
|
+
* - 'distributed': Distribute text evenly with indent support
|
|
242
|
+
*/
|
|
243
|
+
horizontalAlign?: 'general' | 'left' | 'center' | 'right' | 'fill' | 'justify' | 'centerContinuous' | 'distributed';
|
|
244
|
+
/**
|
|
245
|
+
* Vertical text alignment.
|
|
246
|
+
* - 'top': Align to top of cell
|
|
247
|
+
* - 'middle': Center vertically (also known as 'center')
|
|
248
|
+
* - 'bottom': Align to bottom of cell - Excel default
|
|
249
|
+
* - 'justify': Justify vertically (distribute lines evenly)
|
|
250
|
+
* - 'distributed': Distribute text evenly with vertical spacing
|
|
251
|
+
*/
|
|
252
|
+
verticalAlign?: 'top' | 'middle' | 'bottom' | 'justify' | 'distributed';
|
|
253
|
+
wrapText?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Text rotation angle in degrees.
|
|
256
|
+
* - 0-90: Counter-clockwise rotation
|
|
257
|
+
* - 91-180: Clockwise rotation (180 - value)
|
|
258
|
+
* - 255: Vertical text (stacked characters, read top-to-bottom)
|
|
259
|
+
*/
|
|
260
|
+
textRotation?: number;
|
|
261
|
+
/**
|
|
262
|
+
* Indent level (0-15).
|
|
263
|
+
* Each level adds approximately 8 pixels of indent from the cell edge.
|
|
264
|
+
* Works with left and right horizontal alignment.
|
|
265
|
+
*/
|
|
266
|
+
indent?: number;
|
|
267
|
+
/**
|
|
268
|
+
* Shrink text to fit cell width.
|
|
269
|
+
* Reduces font size to fit all text within the cell width.
|
|
270
|
+
* Mutually exclusive with wrapText in Excel behavior.
|
|
271
|
+
*/
|
|
272
|
+
shrinkToFit?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Text reading order for bidirectional text support.
|
|
275
|
+
* - 'context': Determined by first character with strong directionality
|
|
276
|
+
* - 'ltr': Left-to-right (forced)
|
|
277
|
+
* - 'rtl': Right-to-left (forced)
|
|
278
|
+
*/
|
|
279
|
+
readingOrder?: 'context' | 'ltr' | 'rtl';
|
|
280
|
+
/**
|
|
281
|
+
* Background color. Can be:
|
|
282
|
+
* - Absolute hex: '#ffffff' or '#c6efce'
|
|
283
|
+
* - Theme reference: 'theme:accent1' (uses current theme's accent1 color)
|
|
284
|
+
* - Theme with tint: 'theme:accent1:0.4' (40% lighter) or 'theme:accent1:-0.25' (25% darker)
|
|
285
|
+
*
|
|
286
|
+
* Theme references are resolved at render time via resolveThemeColors().
|
|
287
|
+
* This enables cells to automatically update when the workbook theme changes.
|
|
288
|
+
*
|
|
289
|
+
* For solid fills, this is the only color needed.
|
|
290
|
+
* For pattern fills, this is the background color behind the pattern.
|
|
291
|
+
*
|
|
292
|
+
* @see resolveThemeColors in theme.ts for resolution
|
|
293
|
+
* @see ThemeColorSlot for valid slot names (dark1, light1, accent1-6, etc.)
|
|
294
|
+
*/
|
|
295
|
+
backgroundColor?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Pattern fill type.
|
|
298
|
+
* Excel supports 18 pattern types for cell backgrounds.
|
|
299
|
+
* When set (and not 'none' or 'solid'), the cell uses a pattern fill.
|
|
300
|
+
*/
|
|
301
|
+
patternType?: PatternType;
|
|
302
|
+
/**
|
|
303
|
+
* Pattern foreground color.
|
|
304
|
+
* The color of the pattern itself (dots, lines, etc.).
|
|
305
|
+
* Only used when patternType is set to a non-solid pattern.
|
|
306
|
+
*/
|
|
307
|
+
patternForegroundColor?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Gradient fill configuration.
|
|
310
|
+
* When set, overrides backgroundColor and pattern fill.
|
|
311
|
+
* Excel supports linear and path (radial) gradients.
|
|
312
|
+
*/
|
|
313
|
+
gradientFill?: GradientFill;
|
|
314
|
+
/** Cell borders (top, right, bottom, left, diagonal) */
|
|
315
|
+
borders?: CellBorders;
|
|
316
|
+
/**
|
|
317
|
+
* Cell is locked when sheet protection is enabled.
|
|
318
|
+
* Default is true in Excel (all cells locked by default).
|
|
319
|
+
* Only effective when the sheet's isProtected flag is true.
|
|
320
|
+
*/
|
|
321
|
+
locked?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Formula is hidden when sheet protection is enabled.
|
|
324
|
+
* When true, the cell's formula is not shown in the formula bar.
|
|
325
|
+
* The computed value is still displayed in the cell.
|
|
326
|
+
* Only effective when the sheet's isProtected flag is true.
|
|
327
|
+
*/
|
|
328
|
+
hidden?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Cell value is forced to text mode (apostrophe prefix).
|
|
331
|
+
* When true:
|
|
332
|
+
* - Raw value includes the leading apostrophe
|
|
333
|
+
* - Display value strips the apostrophe
|
|
334
|
+
* - Formula bar shows the apostrophe
|
|
335
|
+
* - Value is NOT coerced to date/number/etc.
|
|
336
|
+
*
|
|
337
|
+
* Set when user types ' as first character.
|
|
338
|
+
* Follows cell on sort/move (keyed by CellId, Cell Identity Model).
|
|
339
|
+
*
|
|
340
|
+
* @see plans/active/excel-parity/08-EDITING.md - Item 8.1
|
|
341
|
+
*/
|
|
342
|
+
forcedTextMode?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Arbitrary extension data for future features.
|
|
345
|
+
* Use namespaced keys: "myfeature.mykey"
|
|
346
|
+
* Example: { ignoreError: true } to suppress error indicators.
|
|
347
|
+
*/
|
|
348
|
+
extensions?: Record<string, unknown>;
|
|
349
|
+
}
|
|
350
|
+
/** Dense cell format where every property is explicitly present (null when unset). Returned by formats.get(). */
|
|
351
|
+
export type ResolvedCellFormat = {
|
|
352
|
+
[K in keyof CellFormat]-?: CellFormat[K] | null;
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Border style.
|
|
356
|
+
*
|
|
357
|
+
* D3: Excel-compatible border styles. All 13 Excel border styles are supported:
|
|
358
|
+
* - Solid: 'thin', 'medium', 'thick' (varying line widths)
|
|
359
|
+
* - Dashed: 'dashed', 'mediumDashed' (varying dash lengths)
|
|
360
|
+
* - Dotted: 'dotted', 'hair' (dots and very fine lines)
|
|
361
|
+
* - Double: 'double' (two parallel lines)
|
|
362
|
+
* - Dash-dot combinations: 'dashDot', 'dashDotDot', 'mediumDashDot', 'mediumDashDotDot'
|
|
363
|
+
* - Special: 'slantDashDot' (slanted dash-dot pattern)
|
|
364
|
+
*
|
|
365
|
+
* @see cells-layer.ts getBorderDashPattern() for canvas rendering
|
|
366
|
+
* @see format-mapper.ts for XLSX import/export mapping
|
|
367
|
+
*/
|
|
368
|
+
export interface BorderStyle {
|
|
369
|
+
style: 'none' | 'thin' | 'medium' | 'thick' | 'dashed' | 'dotted' | 'double' | 'hair' | 'mediumDashed' | 'dashDot' | 'dashDotDot' | 'mediumDashDot' | 'mediumDashDotDot' | 'slantDashDot';
|
|
370
|
+
color?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Cell borders
|
|
374
|
+
*
|
|
375
|
+
* ECMA-376 CT_Border: Full border specification for cells.
|
|
376
|
+
* Supports standard borders (top/right/bottom/left), diagonal borders,
|
|
377
|
+
* RTL equivalents (start/end), and internal borders for ranges (vertical/horizontal).
|
|
378
|
+
*/
|
|
379
|
+
export interface CellBorders {
|
|
380
|
+
top?: BorderStyle;
|
|
381
|
+
right?: BorderStyle;
|
|
382
|
+
bottom?: BorderStyle;
|
|
383
|
+
left?: BorderStyle;
|
|
384
|
+
diagonal?: BorderStyle & {
|
|
385
|
+
direction?: 'up' | 'down' | 'both';
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* Diagonal up flag (ECMA-376 CT_Border @diagonalUp).
|
|
389
|
+
* When true, diagonal line runs from bottom-left to top-right.
|
|
390
|
+
* Note: This is the spec-compliant representation. For convenience,
|
|
391
|
+
* diagonal.direction can also be used which derives from these flags.
|
|
392
|
+
*/
|
|
393
|
+
diagonalUp?: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Diagonal down flag (ECMA-376 CT_Border @diagonalDown).
|
|
396
|
+
* When true, diagonal line runs from top-left to bottom-right.
|
|
397
|
+
* Note: This is the spec-compliant representation. For convenience,
|
|
398
|
+
* diagonal.direction can also be used which derives from these flags.
|
|
399
|
+
*/
|
|
400
|
+
diagonalDown?: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* RTL start border (maps to left in LTR, right in RTL).
|
|
403
|
+
* Used for bidirectional text support.
|
|
404
|
+
*/
|
|
405
|
+
start?: BorderStyle;
|
|
406
|
+
/**
|
|
407
|
+
* RTL end border (maps to right in LTR, left in RTL).
|
|
408
|
+
* Used for bidirectional text support.
|
|
409
|
+
*/
|
|
410
|
+
end?: BorderStyle;
|
|
411
|
+
/**
|
|
412
|
+
* Internal vertical border (between cells in a range).
|
|
413
|
+
* Only meaningful when applied to a range of cells.
|
|
414
|
+
*/
|
|
415
|
+
vertical?: BorderStyle;
|
|
416
|
+
/**
|
|
417
|
+
* Internal horizontal border (between cells in a range).
|
|
418
|
+
* Only meaningful when applied to a range of cells.
|
|
419
|
+
*/
|
|
420
|
+
horizontal?: BorderStyle;
|
|
421
|
+
/**
|
|
422
|
+
* Outline mode flag.
|
|
423
|
+
* When true, borders are applied as outline around the range.
|
|
424
|
+
* When false/undefined, borders apply to individual cells.
|
|
425
|
+
*/
|
|
426
|
+
outline?: boolean;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Complete cell data
|
|
430
|
+
*/
|
|
431
|
+
export interface CellData {
|
|
432
|
+
value: CellValue;
|
|
433
|
+
formula?: FormulaA1;
|
|
434
|
+
format?: CellFormat;
|
|
435
|
+
borders?: CellBorders;
|
|
436
|
+
comment?: string;
|
|
437
|
+
hyperlink?: string;
|
|
438
|
+
/** Pre-formatted display string from Rust (e.g., "$1,234.50", "1/1/2024"). */
|
|
439
|
+
formatted?: string;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Style category for grouping styles in the UI gallery.
|
|
443
|
+
*/
|
|
444
|
+
export type StyleCategory = 'good-bad-neutral' | 'data-model' | 'titles-headings' | 'themed' | 'number-format' | 'custom';
|
|
445
|
+
/**
|
|
446
|
+
* Named cell style that can be applied to cells.
|
|
447
|
+
*
|
|
448
|
+
* Styles are a named collection of formatting properties. When applied,
|
|
449
|
+
* the format values are copied to cells (not referenced by ID). This
|
|
450
|
+
* matches Excel behavior where style changes don't affect already-styled cells.
|
|
451
|
+
*
|
|
452
|
+
* Built-in styles are defined in code and never persisted.
|
|
453
|
+
* Custom styles are stored in Yjs for collaboration.
|
|
454
|
+
*/
|
|
455
|
+
export interface CellStyle {
|
|
456
|
+
/** Unique identifier (e.g., 'good', 'heading1', 'custom-abc123') */
|
|
457
|
+
id: string;
|
|
458
|
+
/** Display name shown in UI (e.g., 'Good', 'Heading 1') */
|
|
459
|
+
name: string;
|
|
460
|
+
/** Category for UI grouping */
|
|
461
|
+
category: StyleCategory;
|
|
462
|
+
/** The formatting properties to apply */
|
|
463
|
+
format: CellFormat;
|
|
464
|
+
/** True for built-in styles, false for user-created */
|
|
465
|
+
builtIn: boolean;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Sheet metadata
|
|
469
|
+
*/
|
|
470
|
+
export interface SheetInfo {
|
|
471
|
+
id: string;
|
|
472
|
+
name: string;
|
|
473
|
+
index: number;
|
|
474
|
+
hidden?: boolean;
|
|
475
|
+
tabColor?: string;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Per-sheet view options (persisted in Yjs).
|
|
479
|
+
* Stream F: Freeze Panes & View Options
|
|
480
|
+
*/
|
|
481
|
+
export interface SheetViewOptions {
|
|
482
|
+
/** Whether gridlines are visible (default: true) */
|
|
483
|
+
showGridlines: boolean;
|
|
484
|
+
/** Whether row headers (1, 2, 3...) are visible (default: true) */
|
|
485
|
+
showRowHeaders: boolean;
|
|
486
|
+
/** Whether column headers (A, B, C...) are visible (default: true) */
|
|
487
|
+
showColumnHeaders: boolean;
|
|
488
|
+
/** Whether the sheet is displayed right-to-left (default: false) */
|
|
489
|
+
rightToLeft: boolean;
|
|
490
|
+
/** Whether to display formulas instead of computed values (default: false) */
|
|
491
|
+
showFormulas: boolean;
|
|
492
|
+
/** Whether to display zero values (default: true, matching Excel) */
|
|
493
|
+
showZeros: boolean;
|
|
494
|
+
/** Zoom scale percentage, or undefined for default (100%) */
|
|
495
|
+
zoomScale?: number;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Direction for enter key movement after committing an edit.
|
|
499
|
+
* Issue 8: Settings Panel
|
|
500
|
+
*/
|
|
501
|
+
export type EnterKeyDirection = 'down' | 'right' | 'up' | 'left' | 'none';
|
|
502
|
+
/**
|
|
503
|
+
* Calculation settings for the workbook.
|
|
504
|
+
* G.3: Supports iterative calculation for circular references.
|
|
505
|
+
*
|
|
506
|
+
* Excel allows formulas with circular references to calculate iteratively
|
|
507
|
+
* until they converge or reach the maximum iterations. When disabled (default),
|
|
508
|
+
* circular references result in #CALC! errors.
|
|
509
|
+
*
|
|
510
|
+
* @see plans/active/excel-parity/04-EDITING-BEHAVIORS-PLAN.md - G.3
|
|
511
|
+
*/
|
|
512
|
+
/** Calculation mode — when the engine recalculates formulas. */
|
|
513
|
+
export type CalcMode = 'auto' | 'autoNoTable' | 'manual';
|
|
514
|
+
export interface CalculationSettings {
|
|
515
|
+
/**
|
|
516
|
+
* Whether to allow iterative calculation for circular references.
|
|
517
|
+
* When true, formulas with circular references calculate iteratively.
|
|
518
|
+
* When false (default), circular references show #CALC! error.
|
|
519
|
+
*/
|
|
520
|
+
enableIterativeCalculation: boolean;
|
|
521
|
+
/**
|
|
522
|
+
* Maximum number of iterations for iterative calculation.
|
|
523
|
+
* Excel default: 100
|
|
524
|
+
*/
|
|
525
|
+
maxIterations: number;
|
|
526
|
+
/**
|
|
527
|
+
* Maximum change between iterations for convergence.
|
|
528
|
+
* Calculation stops when all results change by less than this amount.
|
|
529
|
+
* Excel default: 0.001
|
|
530
|
+
*/
|
|
531
|
+
maxChange: number;
|
|
532
|
+
/**
|
|
533
|
+
* Calculation mode (auto/manual/autoNoTable).
|
|
534
|
+
* Default: 'auto'
|
|
535
|
+
*/
|
|
536
|
+
calcMode: CalcMode;
|
|
537
|
+
/**
|
|
538
|
+
* Whether to use full (15-digit) precision for calculations.
|
|
539
|
+
* Default: true
|
|
540
|
+
*/
|
|
541
|
+
fullPrecision: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* Cell reference style (true = R1C1, false = A1).
|
|
544
|
+
* Default: false
|
|
545
|
+
*/
|
|
546
|
+
r1c1Mode: boolean;
|
|
547
|
+
/**
|
|
548
|
+
* Whether to perform a full calculation when the file is opened.
|
|
549
|
+
* Default: false
|
|
550
|
+
*/
|
|
551
|
+
fullCalcOnLoad: boolean;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Workbook-level settings (persisted in Yjs workbook metadata).
|
|
555
|
+
* These apply globally to the entire workbook, not per-sheet.
|
|
556
|
+
* Stream L: Settings & Toggles
|
|
557
|
+
*/
|
|
558
|
+
export interface WorkbookSettings {
|
|
559
|
+
/** Whether horizontal scrollbar is visible (default: true) */
|
|
560
|
+
showHorizontalScrollbar: boolean;
|
|
561
|
+
/** Whether vertical scrollbar is visible (default: true) */
|
|
562
|
+
showVerticalScrollbar: boolean;
|
|
563
|
+
/**
|
|
564
|
+
* Whether scrollbars auto-hide when not scrolling (default: false).
|
|
565
|
+
* When true, scrollbars fade out after scroll ends and reappear on hover or scroll.
|
|
566
|
+
* Plan 09 Group 7.2: Auto-Hide Scroll Bars
|
|
567
|
+
*/
|
|
568
|
+
autoHideScrollBars: boolean;
|
|
569
|
+
/** Whether the tab strip is visible (default: true) */
|
|
570
|
+
showTabStrip: boolean;
|
|
571
|
+
/** Whether sheets can be reordered by dragging (default: true) */
|
|
572
|
+
allowSheetReorder: boolean;
|
|
573
|
+
/** Whether the formula bar is visible (default: true) */
|
|
574
|
+
showFormulaBar: boolean;
|
|
575
|
+
/** Whether to auto-fit column width on header double-click (default: true) */
|
|
576
|
+
autoFitOnDoubleClick: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* ID of active theme.
|
|
579
|
+
* Built-in theme IDs: 'office', 'slice', 'vapor-trail', etc.
|
|
580
|
+
* Use 'custom' to indicate a custom theme is stored in customTheme.
|
|
581
|
+
* Issue 4: Page Layout - Themes
|
|
582
|
+
*/
|
|
583
|
+
themeId: string;
|
|
584
|
+
/**
|
|
585
|
+
* Override for theme fonts. When set, uses this font theme instead
|
|
586
|
+
* of the fonts from the selected theme.
|
|
587
|
+
* Built-in font theme IDs: 'office', 'arial', 'times', 'calibri', etc.
|
|
588
|
+
* undefined means use fonts from themeId.
|
|
589
|
+
*
|
|
590
|
+
* Plan 12: Fonts/Typography - Theme Font UI
|
|
591
|
+
*/
|
|
592
|
+
themeFontsId?: string;
|
|
593
|
+
/**
|
|
594
|
+
* Locale/culture for number, date, and currency formatting.
|
|
595
|
+
* Uses IETF language tags: 'en-US', 'de-DE', 'ja-JP', etc.
|
|
596
|
+
* Default: 'en-US'
|
|
597
|
+
*
|
|
598
|
+
* This affects:
|
|
599
|
+
* - Decimal and thousands separators (1,234.56 vs 1.234,56)
|
|
600
|
+
* - Currency symbol position ($100 vs 100 €)
|
|
601
|
+
* - Date format patterns (MM/DD/YYYY vs DD.MM.YYYY)
|
|
602
|
+
* - Month and day name translations
|
|
603
|
+
* - AM/PM designators
|
|
604
|
+
*
|
|
605
|
+
* Stream G: Culture & Localization
|
|
606
|
+
*/
|
|
607
|
+
culture: string;
|
|
608
|
+
/** Whether to show cut/copy indicator (marching ants). Default: true */
|
|
609
|
+
showCutCopyIndicator: boolean;
|
|
610
|
+
/** Whether fill handle dragging is enabled. Default: true */
|
|
611
|
+
allowDragFill: boolean;
|
|
612
|
+
/** Direction to move after pressing Enter. Default: 'down' */
|
|
613
|
+
enterKeyDirection: EnterKeyDirection;
|
|
614
|
+
/** Whether cell drag-and-drop to move cells is enabled. Default: false (not yet implemented) */
|
|
615
|
+
allowCellDragDrop: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Currently selected sheet IDs for multi-sheet operations.
|
|
618
|
+
* Default: undefined (falls back to [activeSheetId])
|
|
619
|
+
*
|
|
620
|
+
* This is collaborative state - other users can see which sheets you have selected.
|
|
621
|
+
* Used for operations that broadcast to multiple sheets (formatting, structure changes).
|
|
622
|
+
*
|
|
623
|
+
* When multiple sheets are selected:
|
|
624
|
+
* - Formatting operations apply to all selected sheets
|
|
625
|
+
* - Structure operations (insert/delete rows/cols) apply to all selected sheets
|
|
626
|
+
* - The active sheet is always included in the selection
|
|
627
|
+
*/
|
|
628
|
+
selectedSheetIds?: string[];
|
|
629
|
+
/**
|
|
630
|
+
* Whether the workbook structure is protected.
|
|
631
|
+
* When true, prevents adding, deleting, renaming, hiding, unhiding, or moving sheets.
|
|
632
|
+
* Default: false
|
|
633
|
+
*
|
|
634
|
+
* Plan 08: Dialogs - Task 4 (Protect Workbook Dialog)
|
|
635
|
+
*/
|
|
636
|
+
isWorkbookProtected?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* Hashed protection password for workbook (optional).
|
|
639
|
+
* Uses Excel-compatible XOR hash algorithm for round-trip compatibility.
|
|
640
|
+
* Empty string or undefined means no password protection.
|
|
641
|
+
*/
|
|
642
|
+
workbookProtectionPasswordHash?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Workbook protection options (what operations are prevented).
|
|
645
|
+
* Only relevant when isWorkbookProtected is true.
|
|
646
|
+
* If not set, defaults to DEFAULT_WORKBOOK_PROTECTION_OPTIONS.
|
|
647
|
+
* @see WorkbookProtectionOptions in protection.ts
|
|
648
|
+
*/
|
|
649
|
+
workbookProtectionOptions?: import('../document/protection').WorkbookProtectionOptions;
|
|
650
|
+
/**
|
|
651
|
+
* Calculation settings including iterative calculation for circular references.
|
|
652
|
+
* If not set, defaults to DEFAULT_CALCULATION_SETTINGS.
|
|
653
|
+
*
|
|
654
|
+
* @see plans/active/excel-parity/04-EDITING-BEHAVIORS-PLAN.md - G.3
|
|
655
|
+
*/
|
|
656
|
+
calculationSettings?: CalculationSettings;
|
|
657
|
+
/**
|
|
658
|
+
* Whether the workbook uses the 1904 date system (affects all date calculations).
|
|
659
|
+
* Default: false (1900 date system).
|
|
660
|
+
*/
|
|
661
|
+
date1904?: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* Default table style ID for new tables created in this workbook.
|
|
664
|
+
* Can be a built-in style preset name (e.g., 'medium2', 'dark1')
|
|
665
|
+
* or a custom style ID (e.g., 'custom-abc123').
|
|
666
|
+
*
|
|
667
|
+
* When undefined, new tables use the 'medium2' preset by default.
|
|
668
|
+
*
|
|
669
|
+
* Plan 15: Tables Excel Parity - P1-8 (Set as default style)
|
|
670
|
+
*/
|
|
671
|
+
defaultTableStyleId?: string;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Default workbook settings.
|
|
675
|
+
* Stream L: Settings & Toggles
|
|
676
|
+
*
|
|
677
|
+
* SCHEMA-DRIVEN: Defaults are derived from WORKBOOK_SETTINGS_SCHEMA.
|
|
678
|
+
* @see store/workbook-schema.ts for the single source of truth.
|
|
679
|
+
*/
|
|
680
|
+
/**
|
|
681
|
+
* Extended sheet settings (persisted in Yjs sheet metadata).
|
|
682
|
+
* Extends SheetViewOptions with additional per-sheet configuration.
|
|
683
|
+
* Stream L: Settings & Toggles
|
|
684
|
+
*/
|
|
685
|
+
export interface SheetSettings extends SheetViewOptions {
|
|
686
|
+
/** Whether the sheet is protected (default: false) */
|
|
687
|
+
isProtected: boolean;
|
|
688
|
+
/** Hashed protection password (optional, empty string if no password) */
|
|
689
|
+
protectionPasswordHash?: string;
|
|
690
|
+
/**
|
|
691
|
+
* Granular protection options (what operations are allowed when protected).
|
|
692
|
+
* Only relevant when isProtected is true.
|
|
693
|
+
* If not set, defaults to DEFAULT_PROTECTION_OPTIONS.
|
|
694
|
+
* @see SheetProtectionOptions in protection.ts
|
|
695
|
+
*/
|
|
696
|
+
protectionOptions?: import('../document/protection').SheetProtectionOptions;
|
|
697
|
+
/** Whether to show zero values or display blank (default: true) */
|
|
698
|
+
showZeroValues: boolean;
|
|
699
|
+
/** Gridline color (default: '#e2e2e2') */
|
|
700
|
+
gridlineColor: string;
|
|
701
|
+
/** Right-to-left layout (default: false) */
|
|
702
|
+
rightToLeft: boolean;
|
|
703
|
+
/** Default row height for new rows in pixels (default: 21) */
|
|
704
|
+
defaultRowHeight: number;
|
|
705
|
+
/** Default column width for new columns in pixels (default: 100) */
|
|
706
|
+
defaultColWidth: number;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Paper size type for print settings
|
|
710
|
+
*/
|
|
711
|
+
export type PaperSize = 'letter' | 'legal' | 'a4' | 'a3' | 'custom';
|
|
712
|
+
/**
|
|
713
|
+
* Page orientation type for print settings
|
|
714
|
+
*/
|
|
715
|
+
export type PageOrientation = 'portrait' | 'landscape';
|
|
716
|
+
/**
|
|
717
|
+
* Page margins in inches.
|
|
718
|
+
* Full OOXML representation including header/footer margins.
|
|
719
|
+
*/
|
|
720
|
+
export interface PageMargins {
|
|
721
|
+
top: number;
|
|
722
|
+
bottom: number;
|
|
723
|
+
left: number;
|
|
724
|
+
right: number;
|
|
725
|
+
header: number;
|
|
726
|
+
footer: number;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Header/footer configuration (OOXML CT_HeaderFooter).
|
|
730
|
+
*/
|
|
731
|
+
export interface HeaderFooter {
|
|
732
|
+
oddHeader: string | null;
|
|
733
|
+
oddFooter: string | null;
|
|
734
|
+
evenHeader: string | null;
|
|
735
|
+
evenFooter: string | null;
|
|
736
|
+
firstHeader: string | null;
|
|
737
|
+
firstFooter: string | null;
|
|
738
|
+
differentOddEven: boolean;
|
|
739
|
+
differentFirst: boolean;
|
|
740
|
+
scaleWithDoc: boolean;
|
|
741
|
+
alignWithMargins: boolean;
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Full print settings for a sheet, matching the Rust domain-types canonical type.
|
|
745
|
+
*
|
|
746
|
+
* Replaces the old lossy SheetPrintSettings. All fields are nullable where the
|
|
747
|
+
* underlying OOXML attribute is optional, using `null` to mean "not set / use default".
|
|
748
|
+
*
|
|
749
|
+
* Distinct from PrintOptions (runtime-only configuration in print-export).
|
|
750
|
+
*/
|
|
751
|
+
export interface PrintSettings {
|
|
752
|
+
/** OOXML paper size code (1=Letter, 9=A4, etc.), null = not set */
|
|
753
|
+
paperSize: number | null;
|
|
754
|
+
/** Page orientation, null = not set (defaults to portrait) */
|
|
755
|
+
orientation: string | null;
|
|
756
|
+
/** Scale percentage (10-400), null = not set */
|
|
757
|
+
scale: number | null;
|
|
758
|
+
/** Fit to N pages wide, null = not set */
|
|
759
|
+
fitToWidth: number | null;
|
|
760
|
+
/** Fit to N pages tall, null = not set */
|
|
761
|
+
fitToHeight: number | null;
|
|
762
|
+
/** Print cell gridlines */
|
|
763
|
+
gridlines: boolean;
|
|
764
|
+
/** Print row/column headings */
|
|
765
|
+
headings: boolean;
|
|
766
|
+
/** Center content horizontally on page */
|
|
767
|
+
hCentered: boolean;
|
|
768
|
+
/** Center content vertically on page */
|
|
769
|
+
vCentered: boolean;
|
|
770
|
+
/** Page margins in inches (with header/footer margins) */
|
|
771
|
+
margins: PageMargins | null;
|
|
772
|
+
/** Header/footer configuration */
|
|
773
|
+
headerFooter: HeaderFooter | null;
|
|
774
|
+
/** Print in black and white */
|
|
775
|
+
blackAndWhite: boolean;
|
|
776
|
+
/** Draft quality */
|
|
777
|
+
draft: boolean;
|
|
778
|
+
/** First page number override, null = auto */
|
|
779
|
+
firstPageNumber: number | null;
|
|
780
|
+
/** Page order: "downThenOver" or "overThenDown", null = default */
|
|
781
|
+
pageOrder: string | null;
|
|
782
|
+
/** Use printer defaults */
|
|
783
|
+
usePrinterDefaults: boolean | null;
|
|
784
|
+
/** Horizontal DPI, null = not set */
|
|
785
|
+
horizontalDpi: number | null;
|
|
786
|
+
/** Vertical DPI, null = not set */
|
|
787
|
+
verticalDpi: number | null;
|
|
788
|
+
/** Relationship ID for printer settings binary, null = not set */
|
|
789
|
+
rId: string | null;
|
|
790
|
+
/** Whether the sheet had printOptions element in OOXML */
|
|
791
|
+
hasPrintOptions: boolean;
|
|
792
|
+
/** Whether the sheet had pageSetup element in OOXML */
|
|
793
|
+
hasPageSetup: boolean;
|
|
794
|
+
/** Whether to use firstPageNumber (vs auto) */
|
|
795
|
+
useFirstPageNumber: boolean;
|
|
796
|
+
/** How to print cell comments: "none" | "atEnd" | "asDisplayed", null = not set (defaults to none) */
|
|
797
|
+
printComments: string | null;
|
|
798
|
+
/** How to print cell errors: "displayed" | "blank" | "dash" | "NA", null = not set (defaults to displayed) */
|
|
799
|
+
printErrors: string | null;
|
|
800
|
+
}
|
|
801
|
+
/** @deprecated Use PrintSettings instead */
|
|
802
|
+
export type SheetPrintSettings = PrintSettings;
|
|
803
|
+
/**
|
|
804
|
+
* Column metadata
|
|
805
|
+
*/
|
|
806
|
+
export interface ColumnInfo {
|
|
807
|
+
index: number;
|
|
808
|
+
width: number;
|
|
809
|
+
hidden?: boolean;
|
|
810
|
+
format?: CellFormat;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Row metadata
|
|
814
|
+
*/
|
|
815
|
+
export interface RowInfo {
|
|
816
|
+
index: number;
|
|
817
|
+
height: number;
|
|
818
|
+
hidden?: boolean;
|
|
819
|
+
format?: CellFormat;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Data type detection result
|
|
823
|
+
*/
|
|
824
|
+
export type DetectedDataType = 'string' | 'number' | 'date' | 'boolean' | 'empty' | 'error';
|
|
825
|
+
/**
|
|
826
|
+
* Utility type for 2D data arrays
|
|
827
|
+
*/
|
|
828
|
+
export type DataMatrix<T = CellValue> = T[][];
|
|
829
|
+
/**
|
|
830
|
+
* Read-only data provider interface
|
|
831
|
+
*/
|
|
832
|
+
export interface IDataProvider {
|
|
833
|
+
getCellValue(address: CellAddress): CellValue;
|
|
834
|
+
getCellData(address: CellAddress): CellData | undefined;
|
|
835
|
+
getRangeValues(range: CellRange): DataMatrix;
|
|
836
|
+
getSheetInfo(sheetId: string): SheetInfo | undefined;
|
|
837
|
+
getSheetIds(): string[];
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* How a cell's value was set
|
|
841
|
+
*/
|
|
842
|
+
export interface CellDataSource {
|
|
843
|
+
/** How the value was entered */
|
|
844
|
+
type: 'manual' | 'import' | 'api' | 'formula' | 'remote-link';
|
|
845
|
+
/** Additional context (file name, API endpoint, formula address, etc.) */
|
|
846
|
+
source?: string;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Validation error for a cell
|
|
850
|
+
*/
|
|
851
|
+
export interface ValidationError {
|
|
852
|
+
/** Rule ID that failed (e.g., "type:number", "constraint:positive") */
|
|
853
|
+
rule: string;
|
|
854
|
+
/** Human-readable error message */
|
|
855
|
+
message: string;
|
|
856
|
+
/** Error blocks save; warning just displays */
|
|
857
|
+
severity: 'error' | 'warning';
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Metadata attached to individual cells.
|
|
861
|
+
* Stored in a separate Yjs map for sparse, efficient storage.
|
|
862
|
+
*/
|
|
863
|
+
export interface CellMetadata {
|
|
864
|
+
/** User ID who last modified this cell */
|
|
865
|
+
modifiedBy?: string;
|
|
866
|
+
/** Timestamp of last modification (Unix ms) */
|
|
867
|
+
modifiedAt?: number;
|
|
868
|
+
/** How this cell's value was set */
|
|
869
|
+
dataSource?: CellDataSource;
|
|
870
|
+
/** Type validation or assertion errors */
|
|
871
|
+
validationErrors?: ValidationError[];
|
|
872
|
+
/** ID of external data connection, if any */
|
|
873
|
+
connectionId?: string;
|
|
874
|
+
/** Whether connected data is current */
|
|
875
|
+
staleness?: 'fresh' | 'stale' | 'error';
|
|
876
|
+
/** When data was last fetched from source */
|
|
877
|
+
lastFetched?: number;
|
|
878
|
+
/**
|
|
879
|
+
* Whether this cell contains an array formula (CSE - Ctrl+Shift+Enter).
|
|
880
|
+
* When true, the formula bar displays the formula with curly braces: {=FORMULA}
|
|
881
|
+
* The formula itself is stored without braces in cells.raw - this is display metadata only.
|
|
882
|
+
*/
|
|
883
|
+
isArrayFormula?: boolean;
|
|
884
|
+
/**
|
|
885
|
+
* Arbitrary extension data for future features.
|
|
886
|
+
* Use namespaced keys: "myfeature.mykey"
|
|
887
|
+
*/
|
|
888
|
+
extensions?: Record<string, unknown>;
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* All non-computational properties of a cell.
|
|
892
|
+
*
|
|
893
|
+
* This unified type merges visual formatting (CellFormat) with metadata
|
|
894
|
+
* (provenance, validation, connections) into a single structure. This enables:
|
|
895
|
+
* - Single Yjs map for all non-computational data
|
|
896
|
+
* - Unified observer for reactivity
|
|
897
|
+
* - Clear mental model: cells = computation, properties = everything else
|
|
898
|
+
*
|
|
899
|
+
* Stored in a single Yjs map for unified reactivity.
|
|
900
|
+
*/
|
|
901
|
+
export interface CellProperties {
|
|
902
|
+
/** Cell formatting (font, colors, alignment, etc.) */
|
|
903
|
+
format?: CellFormat;
|
|
904
|
+
/** User ID who last modified this cell */
|
|
905
|
+
modifiedBy?: string;
|
|
906
|
+
/** Timestamp of last modification (Unix ms) */
|
|
907
|
+
modifiedAt?: number;
|
|
908
|
+
/** How this cell's value was set */
|
|
909
|
+
dataSource?: CellDataSource;
|
|
910
|
+
/** Type validation or assertion errors */
|
|
911
|
+
validationErrors?: ValidationError[];
|
|
912
|
+
/** ID of external data connection, if any */
|
|
913
|
+
connectionId?: string;
|
|
914
|
+
/** Whether connected data is current */
|
|
915
|
+
staleness?: 'fresh' | 'stale' | 'error';
|
|
916
|
+
/** When data was last fetched from source */
|
|
917
|
+
lastFetched?: number;
|
|
918
|
+
/**
|
|
919
|
+
* Whether this cell contains an array formula (CSE - Ctrl+Shift+Enter).
|
|
920
|
+
* When true, the formula bar displays the formula with curly braces: {=FORMULA}
|
|
921
|
+
* The formula itself is stored without braces in cells.raw - this is display metadata only.
|
|
922
|
+
*/
|
|
923
|
+
isArrayFormula?: boolean;
|
|
924
|
+
/**
|
|
925
|
+
* Arbitrary extension data for future features.
|
|
926
|
+
* Use namespaced keys: "myfeature.mykey"
|
|
927
|
+
*/
|
|
928
|
+
extensions?: Record<string, unknown>;
|
|
929
|
+
}
|
|
930
|
+
declare const __formattedText: unique symbol;
|
|
931
|
+
/**
|
|
932
|
+
* Opaque branded type for pre-formatted display text.
|
|
933
|
+
* NOT assignable to `string` — forces consumers to either:
|
|
934
|
+
* - Use `.value` for semantic data (correct for logic)
|
|
935
|
+
* - Call `displayString()` to explicitly unwrap (correct for rendering)
|
|
936
|
+
*/
|
|
937
|
+
export interface FormattedText {
|
|
938
|
+
readonly [__formattedText]: true;
|
|
939
|
+
/** @deprecated FormattedText is not a string. Use displayString() or .value instead. */
|
|
940
|
+
toString(): string;
|
|
941
|
+
}
|
|
942
|
+
export {};
|
|
943
|
+
//# sourceMappingURL=core.d.ts.map
|