@a3s-lab/office 0.1.0
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/LICENSE +21 -0
- package/README.md +470 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/0~1403.js +245 -0
- package/dist/0~152.js +94 -0
- package/dist/0~3539.js +1856 -0
- package/dist/0~3557.js +179 -0
- package/dist/0~3635.js +302 -0
- package/dist/0~4595.js +1162 -0
- package/dist/0~5050.js +308 -0
- package/dist/0~6552.js +787 -0
- package/dist/0~7048.js +2110 -0
- package/dist/0~7614.js +1037 -0
- package/dist/0~8155.js +299 -0
- package/dist/0~9445.js +283 -0
- package/dist/0~9512.js +743 -0
- package/dist/0~document-editor.js +10967 -0
- package/dist/0~markdown-editor.js +2260 -0
- package/dist/0~pdf-viewer.js +2156 -0
- package/dist/0~presentation-editor.js +8359 -0
- package/dist/0~rslib-runtime.js +27 -0
- package/dist/0~spreadsheet-editor.js +10388 -0
- package/dist/0~use-office-draft.js +46 -0
- package/dist/0~work-document-extensions.js +2470 -0
- package/dist/0~work-document-links.js +14 -0
- package/dist/0~work-document-model-codec.js +42 -0
- package/dist/0~work-document-page-color.js +11 -0
- package/dist/0~work-document-paragraph-formatting.js +425 -0
- package/dist/0~work-docx-bibliography.js +347 -0
- package/dist/0~work-docx-export.js +1151 -0
- package/dist/0~work-docx-import.js +3116 -0
- package/dist/0~work-docx-page-color.js +42 -0
- package/dist/0~work-office-diagnostics.js +1377 -0
- package/dist/0~work-pptx-export.js +1009 -0
- package/dist/0~work-pptx-import.js +1138 -0
- package/dist/0~work-presentation-charts.js +442 -0
- package/dist/0~work-presentation-transition.js +38 -0
- package/dist/0~work-presentation-visual-scale.js +38 -0
- package/dist/0~work-spreadsheet-formula-support.js +9 -0
- package/dist/1134.js +445 -0
- package/dist/4104.js +5786 -0
- package/dist/432.js +211 -0
- package/dist/4704.js +1364 -0
- package/dist/6489.js +182 -0
- package/dist/8715.js +3959 -0
- package/dist/8728.js +723 -0
- package/dist/9356.js +10 -0
- package/dist/core.d.ts +15 -0
- package/dist/core.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/internal/design-system/primitives/button/button.d.ts +9 -0
- package/dist/internal/design-system/primitives/button/icon-button.d.ts +7 -0
- package/dist/internal/design-system/primitives/dialog/dialog.d.ts +12 -0
- package/dist/internal/design-system/primitives/feedback/collection-state.d.ts +9 -0
- package/dist/internal/design-system/primitives/feedback/inline-notice.d.ts +10 -0
- package/dist/internal/design-system/primitives/feedback/state-view.d.ts +13 -0
- package/dist/internal/design-system/primitives/form/field.d.ts +19 -0
- package/dist/internal/design-system/primitives/index.d.ts +14 -0
- package/dist/internal/design-system/primitives/layout/split-handle.d.ts +17 -0
- package/dist/internal/design-system/primitives/navigation/segmented-control.d.ts +19 -0
- package/dist/internal/design-system/primitives/navigation/tab-navigation.d.ts +13 -0
- package/dist/internal/design-system/primitives/navigation/tabs.d.ts +21 -0
- package/dist/internal/design-system/primitives/overlay/dialog-focus-scope.d.ts +17 -0
- package/dist/internal/design-system/primitives/overlay/popover.d.ts +34 -0
- package/dist/internal/design-system/primitives/overlay/portal-root.d.ts +1 -0
- package/dist/internal/design-system/primitives/status/status-badge.d.ts +6 -0
- package/dist/internal/features/work/components/work-document-pages.d.ts +4 -0
- package/dist/internal/features/work/components/work-editor-agent-menus.d.ts +12 -0
- package/dist/internal/features/work/components/work-editor-loading-state.d.ts +3 -0
- package/dist/internal/features/work/editors/document-changes-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-citation-source-form.d.ts +33 -0
- package/dist/internal/features/work/editors/document-citations-panel.d.ts +8 -0
- package/dist/internal/features/work/editors/document-columns-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-comment-composer.d.ts +13 -0
- package/dist/internal/features/work/editors/document-comments-panel.d.ts +17 -0
- package/dist/internal/features/work/editors/document-editor-focus.d.ts +1 -0
- package/dist/internal/features/work/editors/document-editor-pagination.d.ts +3 -0
- package/dist/internal/features/work/editors/document-editor-support.d.ts +34 -0
- package/dist/internal/features/work/editors/document-editor.d.ts +20 -0
- package/dist/internal/features/work/editors/document-find-highlight.d.ts +8 -0
- package/dist/internal/features/work/editors/document-find-replace-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-formatting-options.d.ts +113 -0
- package/dist/internal/features/work/editors/document-home-ribbon.d.ts +9 -0
- package/dist/internal/features/work/editors/document-layout-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-list-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-navigation-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +39 -0
- package/dist/internal/features/work/editors/document-page-chrome-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +10 -0
- package/dist/internal/features/work/editors/document-page-navigation.d.ts +14 -0
- package/dist/internal/features/work/editors/document-page-stack.d.ts +8 -0
- package/dist/internal/features/work/editors/document-pagination-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-paragraph-spacing-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-picture-ribbon.d.ts +4 -0
- package/dist/internal/features/work/editors/document-ruler-tab-stops.d.ts +12 -0
- package/dist/internal/features/work/editors/document-ruler.d.ts +15 -0
- package/dist/internal/features/work/editors/document-selection-context-menu.d.ts +22 -0
- package/dist/internal/features/work/editors/document-selection-toolbar.d.ts +8 -0
- package/dist/internal/features/work/editors/document-status-bar.d.ts +19 -0
- package/dist/internal/features/work/editors/document-style-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-insert-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-ribbon.d.ts +7 -0
- package/dist/internal/features/work/editors/document-task-pane.d.ts +11 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +100 -0
- package/dist/internal/features/work/editors/document-vertical-ruler.d.ts +6 -0
- package/dist/internal/features/work/editors/markdown-editor-focus.d.ts +2 -0
- package/dist/internal/features/work/editors/markdown-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/markdown-insert-dialog.d.ts +19 -0
- package/dist/internal/features/work/editors/markdown-selection-context-menu.d.ts +14 -0
- package/dist/internal/features/work/editors/markdown-source-commands.d.ts +41 -0
- package/dist/internal/features/work/editors/markdown-status.d.ts +7 -0
- package/dist/internal/features/work/editors/markdown-toolbar.d.ts +22 -0
- package/dist/internal/features/work/editors/markdown-workspace.d.ts +26 -0
- package/dist/internal/features/work/editors/office-checkbox.d.ts +9 -0
- package/dist/internal/features/work/editors/office-color-picker.d.ts +11 -0
- package/dist/internal/features/work/editors/office-controls.d.ts +7 -0
- package/dist/internal/features/work/editors/office-dialog.d.ts +35 -0
- package/dist/internal/features/work/editors/office-editor-extension.d.ts +86 -0
- package/dist/internal/features/work/editors/office-file-data.d.ts +1 -0
- package/dist/internal/features/work/editors/office-font-families.d.ts +187 -0
- package/dist/internal/features/work/editors/office-menu-keyboard.d.ts +2 -0
- package/dist/internal/features/work/editors/office-number-field.d.ts +21 -0
- package/dist/internal/features/work/editors/office-number-normalization.d.ts +9 -0
- package/dist/internal/features/work/editors/office-select.d.ts +19 -0
- package/dist/internal/features/work/editors/office-shortcuts.d.ts +1 -0
- package/dist/internal/features/work/editors/office-slider.d.ts +10 -0
- package/dist/internal/features/work/editors/office-table-dimensions.d.ts +4 -0
- package/dist/internal/features/work/editors/office-table-insert-popover.d.ts +7 -0
- package/dist/internal/features/work/editors/office-task-pane.d.ts +7 -0
- package/dist/internal/features/work/editors/office-text-field.d.ts +20 -0
- package/dist/internal/features/work/editors/office-tiptap-extensions.d.ts +2 -0
- package/dist/internal/features/work/editors/pdf-annotation-controller.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-editor-extensions.d.ts +36 -0
- package/dist/internal/features/work/editors/pdf-thumbnail-rail.d.ts +26 -0
- package/dist/internal/features/work/editors/pdf-toolbar.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-viewer-controller.d.ts +48 -0
- package/dist/internal/features/work/editors/pdf-viewer.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-arrangement-controller.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-chart-analysis-canvas.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-canvas.d.ts +33 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-canvas.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-cartesian-canvas.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-chart-data-label-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-data-labels.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-chart-layout-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-legend-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-chart-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-chart-series-analysis-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-series-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-command-controller.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-command-types.d.ts +206 -0
- package/dist/internal/features/work/editors/presentation-comments-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-context-menu.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-design-panel.d.ts +13 -0
- package/dist/internal/features/work/editors/presentation-editor-focus.d.ts +12 -0
- package/dist/internal/features/work/editors/presentation-editor-operations.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-editor-types.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-editor.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-keyboard-extension.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-player.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-presenter-view.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-selection.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-slide-canvas.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-slide-thumbnail.d.ts +18 -0
- package/dist/internal/features/work/editors/presentation-status-bar.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-text-editor.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-text-formatting.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-thumbnail-rail.d.ts +20 -0
- package/dist/internal/features/work/editors/presentation-toolbar.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-transition-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-workspace.d.ts +38 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-model.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-projection.d.ts +32 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-axis-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-draft.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-layout-editor.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-series-style-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-clipboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +121 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-comparison-fields.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-model.d.ts +72 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-threshold-fields.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-context-menu.d.ts +36 -0
- package/dist/internal/features/work/editors/spreadsheet-data-label-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-ribbon.d.ts +46 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-support.d.ts +31 -0
- package/dist/internal/features/work/editors/spreadsheet-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/spreadsheet-error-bar-editor.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-find-bar.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-find.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-formula-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-header-footer-fields.d.ts +5 -0
- package/dist/internal/features/work/editors/spreadsheet-keyboard-navigation.d.ts +18 -0
- package/dist/internal/features/work/editors/spreadsheet-number-format.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-pivot-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-print-settings-panel.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-protection-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-bar.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-model.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-trendline-editor.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-workbook-panel.d.ts +16 -0
- package/dist/internal/features/work/editors/use-document-comments.d.ts +26 -0
- package/dist/internal/features/work/editors/use-document-insert-commands.d.ts +19 -0
- package/dist/internal/features/work/editors/use-document-layout-fonts.d.ts +2 -0
- package/dist/internal/features/work/editors/use-document-page-chrome.d.ts +33 -0
- package/dist/internal/features/work/editors/use-document-pagination.d.ts +46 -0
- package/dist/internal/features/work/editors/use-markdown-source-history.d.ts +16 -0
- package/dist/internal/features/work/editors/use-office-draft.d.ts +10 -0
- package/dist/internal/features/work/editors/use-office-editor-keyboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/use-office-editor-runtime.d.ts +6 -0
- package/dist/internal/features/work/editors/use-office-editor-wheel-zoom.d.ts +19 -0
- package/dist/internal/features/work/editors/use-office-history.d.ts +10 -0
- package/dist/internal/features/work/editors/use-presentation-clipboard.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-design-commands.d.ts +33 -0
- package/dist/internal/features/work/editors/use-presentation-element-commands.d.ts +29 -0
- package/dist/internal/features/work/editors/use-presentation-geometry.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-history.d.ts +12 -0
- package/dist/internal/features/work/editors/use-presentation-review-commands.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-selection.d.ts +11 -0
- package/dist/internal/features/work/editors/use-presentation-slide-commands.d.ts +18 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-visibility.d.ts +4 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-window.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-transform.d.ts +53 -0
- package/dist/internal/features/work/editors/use-spreadsheet-calculation.d.ts +17 -0
- package/dist/internal/features/work/editors/use-spreadsheet-workbook-sync.d.ts +10 -0
- package/dist/internal/features/work/editors/work-office-chrome.d.ts +61 -0
- package/dist/internal/features/work/editors/work-office-ribbon-overflow.d.ts +18 -0
- package/dist/internal/features/work/work-agent-proposal-apply.d.ts +8 -0
- package/dist/internal/features/work/work-agent-proposal.d.ts +55 -0
- package/dist/internal/features/work/work-agent-request.d.ts +6 -0
- package/dist/internal/features/work/work-chart-series-analysis-context.d.ts +3 -0
- package/dist/internal/features/work/work-document-caption-nodes.d.ts +13 -0
- package/dist/internal/features/work/work-document-captions.d.ts +14 -0
- package/dist/internal/features/work/work-document-changes.d.ts +35 -0
- package/dist/internal/features/work/work-document-character-formatting.d.ts +13 -0
- package/dist/internal/features/work/work-document-citation-nodes.d.ts +25 -0
- package/dist/internal/features/work/work-document-citations.d.ts +21 -0
- package/dist/internal/features/work/work-document-columns.d.ts +15 -0
- package/dist/internal/features/work/work-document-comments.d.ts +48 -0
- package/dist/internal/features/work/work-document-extensions.d.ts +11 -0
- package/dist/internal/features/work/work-document-field-node.d.ts +12 -0
- package/dist/internal/features/work/work-document-fields.d.ts +15 -0
- package/dist/internal/features/work/work-document-file-io.d.ts +4 -0
- package/dist/internal/features/work/work-document-fonts.d.ts +16 -0
- package/dist/internal/features/work/work-document-image-layout.d.ts +29 -0
- package/dist/internal/features/work/work-document-incremental-layout.d.ts +17 -0
- package/dist/internal/features/work/work-document-layout.d.ts +5 -0
- package/dist/internal/features/work/work-document-line-measurement.d.ts +24 -0
- package/dist/internal/features/work/work-document-links.d.ts +2 -0
- package/dist/internal/features/work/work-document-lists.d.ts +25 -0
- package/dist/internal/features/work/work-document-model-codec.d.ts +3 -0
- package/dist/internal/features/work/work-document-model.d.ts +12 -0
- package/dist/internal/features/work/work-document-note-nodes.d.ts +11 -0
- package/dist/internal/features/work/work-document-notes.d.ts +18 -0
- package/dist/internal/features/work/work-document-outline.d.ts +14 -0
- package/dist/internal/features/work/work-document-page-break.d.ts +2 -0
- package/dist/internal/features/work/work-document-page-chrome-commands.d.ts +15 -0
- package/dist/internal/features/work/work-document-page-chrome.d.ts +19 -0
- package/dist/internal/features/work/work-document-page-color.d.ts +3 -0
- package/dist/internal/features/work/work-document-pages.d.ts +19 -0
- package/dist/internal/features/work/work-document-pagination-decorations.d.ts +3 -0
- package/dist/internal/features/work/work-document-pagination-dom.d.ts +35 -0
- package/dist/internal/features/work/work-document-pagination-measurement.d.ts +9 -0
- package/dist/internal/features/work/work-document-pagination-types.d.ts +88 -0
- package/dist/internal/features/work/work-document-pagination.d.ts +17 -0
- package/dist/internal/features/work/work-document-paragraph-formatting.d.ts +61 -0
- package/dist/internal/features/work/work-document-search.d.ts +11 -0
- package/dist/internal/features/work/work-document-section-editor.d.ts +20 -0
- package/dist/internal/features/work/work-document-section-node.d.ts +13 -0
- package/dist/internal/features/work/work-document-section.d.ts +34 -0
- package/dist/internal/features/work/work-document-selection-menu.d.ts +54 -0
- package/dist/internal/features/work/work-document-tab-node.d.ts +6 -0
- package/dist/internal/features/work/work-document-tab-stops.d.ts +29 -0
- package/dist/internal/features/work/work-document-table-cell-formatting.d.ts +46 -0
- package/dist/internal/features/work/work-document-table-commands.d.ts +17 -0
- package/dist/internal/features/work/work-document-table-pagination.d.ts +5 -0
- package/dist/internal/features/work/work-document-table-row.d.ts +37 -0
- package/dist/internal/features/work/work-document-table-sizing.d.ts +27 -0
- package/dist/internal/features/work/work-document-text-layout.d.ts +14 -0
- package/dist/internal/features/work/work-docx-bibliography.d.ts +12 -0
- package/dist/internal/features/work/work-docx-caption-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-docx-caption-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-caption-fields.d.ts +5 -0
- package/dist/internal/features/work/work-docx-caption-import.d.ts +20 -0
- package/dist/internal/features/work/work-docx-change-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-citation-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-export.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-import.d.ts +23 -0
- package/dist/internal/features/work/work-docx-column-export.d.ts +14 -0
- package/dist/internal/features/work/work-docx-column-import.d.ts +2 -0
- package/dist/internal/features/work/work-docx-comment-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-export-formatting.d.ts +30 -0
- package/dist/internal/features/work/work-docx-export-image.d.ts +2 -0
- package/dist/internal/features/work/work-docx-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-field-instructions.d.ts +8 -0
- package/dist/internal/features/work/work-docx-image-layout-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-import.d.ts +50 -0
- package/dist/internal/features/work/work-docx-list-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-note-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-note-import.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-import.d.ts +11 -0
- package/dist/internal/features/work/work-docx-page-color.d.ts +2 -0
- package/dist/internal/features/work/work-docx-paragraph-alignment-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-direction-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-indent-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-pagination-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-spacing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-styles.d.ts +18 -0
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +19 -0
- package/dist/internal/features/work/work-docx-tab-stop-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-cell-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-table-cell-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-table-row-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-sizing-export.d.ts +8 -0
- package/dist/internal/features/work/work-docx-table-sizing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-theme.d.ts +9 -0
- package/dist/internal/features/work/work-file-data.d.ts +1 -0
- package/dist/internal/features/work/work-file-download.d.ts +3 -0
- package/dist/internal/features/work/work-file-io.d.ts +8 -0
- package/dist/internal/features/work/work-markdown-extensions.d.ts +19 -0
- package/dist/internal/features/work/work-markdown-file-io.d.ts +3 -0
- package/dist/internal/features/work/work-markdown-selection-menu.d.ts +57 -0
- package/dist/internal/features/work/work-office-diagnostics.d.ts +9 -0
- package/dist/internal/features/work/work-ooxml-package.d.ts +28 -0
- package/dist/internal/features/work/work-pdf-export.d.ts +23 -0
- package/dist/internal/features/work/work-pptx-chart-axes.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-chart-axis-diagnostics.d.ts +5 -0
- package/dist/internal/features/work/work-pptx-chart-data-labels.d.ts +12 -0
- package/dist/internal/features/work/work-pptx-chart-import.d.ts +11 -0
- package/dist/internal/features/work/work-pptx-chart-layout-style.d.ts +15 -0
- package/dist/internal/features/work/work-pptx-chart-series-analysis.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-chart-xy.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-comments.d.ts +17 -0
- package/dist/internal/features/work/work-pptx-export.d.ts +4 -0
- package/dist/internal/features/work/work-pptx-groups.d.ts +19 -0
- package/dist/internal/features/work/work-pptx-import.d.ts +6 -0
- package/dist/internal/features/work/work-pptx-layout-export.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-layout-import.d.ts +30 -0
- package/dist/internal/features/work/work-pptx-style.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-transition.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-agent-context.d.ts +6 -0
- package/dist/internal/features/work/work-presentation-chart-axes.d.ts +14 -0
- package/dist/internal/features/work/work-presentation-charts.d.ts +37 -0
- package/dist/internal/features/work/work-presentation-clipboard.d.ts +26 -0
- package/dist/internal/features/work/work-presentation-file-io.d.ts +15 -0
- package/dist/internal/features/work/work-presentation-groups.d.ts +17 -0
- package/dist/internal/features/work/work-presentation-layouts.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-transition.d.ts +4 -0
- package/dist/internal/features/work/work-presentation-visual-scale.d.ts +2 -0
- package/dist/internal/features/work/work-repository.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-agent-context.d.ts +15 -0
- package/dist/internal/features/work/work-spreadsheet-chart-axis.d.ts +42 -0
- package/dist/internal/features/work/work-spreadsheet-chart-layout.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-legend-svg.d.ts +18 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-layout.d.ts +24 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-style.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg-utils.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-chart-types.d.ts +147 -0
- package/dist/internal/features/work/work-spreadsheet-chart-validation.d.ts +2 -0
- package/dist/internal/features/work/work-spreadsheet-charts.d.ts +17 -0
- package/dist/internal/features/work/work-spreadsheet-combination-chart-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-comments.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-canvas.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-colors.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-comparisons.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-data-bar.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-format.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-icons.d.ts +107 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-values.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-data-label-svg.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-error-bar-svg.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-error-bars.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-formula-analysis.d.ts +30 -0
- package/dist/internal/features/work/work-spreadsheet-formula-support.d.ts +1 -0
- package/dist/internal/features/work/work-spreadsheet-formulas.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-header-footer.d.ts +14 -0
- package/dist/internal/features/work/work-spreadsheet-line-chart-svg.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-page-breaks.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-page-setup.d.ts +26 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-engine.d.ts +21 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-values.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-pivots.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-protection.d.ts +55 -0
- package/dist/internal/features/work/work-spreadsheet-ranges.d.ts +25 -0
- package/dist/internal/features/work/work-spreadsheet-trendline-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-trendlines.d.ts +11 -0
- package/dist/internal/features/work/work-spreadsheet-xy-chart-axes-svg.d.ts +10 -0
- package/dist/internal/features/work/work-templates.d.ts +4 -0
- package/dist/internal/features/work/work-types.d.ts +513 -0
- package/dist/internal/features/work/work-xlsx-chart-axes.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-chart-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-chart-layout.d.ts +16 -0
- package/dist/internal/features/work/work-xlsx-chart-series-style.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-chart-values.d.ts +10 -0
- package/dist/internal/features/work/work-xlsx-charts.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-write.d.ts +11 -0
- package/dist/internal/features/work/work-xlsx-conditional-format.d.ts +29 -0
- package/dist/internal/features/work/work-xlsx-defined-names.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-drawing-geometry.d.ts +27 -0
- package/dist/internal/features/work/work-xlsx-formula-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-formulas.d.ts +40 -0
- package/dist/internal/features/work/work-xlsx-header-footer.d.ts +12 -0
- package/dist/internal/features/work/work-xlsx-images.d.ts +17 -0
- package/dist/internal/features/work/work-xlsx-interop.d.ts +39 -0
- package/dist/internal/features/work/work-xlsx-page-breaks.d.ts +7 -0
- package/dist/internal/features/work/work-xlsx-page-setup-diagnostics.d.ts +2 -0
- package/dist/internal/features/work/work-xlsx-page-setup.d.ts +5 -0
- package/dist/internal/features/work/work-xlsx-pivot-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-pivot-xml.d.ts +9 -0
- package/dist/internal/features/work/work-xlsx-pivots.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-protection.d.ts +24 -0
- package/dist/internal/features/workspace/components/workspace-context-menu.d.ts +29 -0
- package/dist/internal/features/workspace/components/workspace-text-control-selection.d.ts +7 -0
- package/dist/internal/kernel/office-kernel-client-types.d.ts +40 -0
- package/dist/internal/kernel/office-kernel-client.d.ts +4 -0
- package/dist/internal/kernel/office-kernel-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-presentation-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-protocol.d.ts +229 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-formula.d.ts +3 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-validation.d.ts +5 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-value.d.ts +6 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-protocol.d.ts +112 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-session-fallback.d.ts +8 -0
- package/dist/internal/kernel/office-kernel-text-fallback.d.ts +10 -0
- package/dist/internal/kernel/office-kernel-version.d.ts +1 -0
- package/dist/internal/kernel/office-kernel.worker.d.ts +1 -0
- package/dist/internal/keyboard-shortcuts.d.ts +2 -0
- package/dist/internal/state/app-state.d.ts +8 -0
- package/dist/noto-naskh-arabic-regular.ttf +0 -0
- package/dist/noto-naskh-arabic.LICENSE.txt +94 -0
- package/dist/noto-sans-hans-regular.otf +0 -0
- package/dist/noto-sans-hans.LICENSE.txt +94 -0
- package/dist/noto-sans-hebrew-regular.ttf +0 -0
- package/dist/noto-sans-hebrew.LICENSE.txt +94 -0
- package/dist/noto-sans-regular.ttf +0 -0
- package/dist/noto-sans.LICENSE.txt +94 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/office-kernel.worker.js +14605 -0
- package/dist/office-surface.d.ts +10 -0
- package/dist/pdfium.LICENSE.txt +196 -0
- package/dist/pdfium.wasm +0 -0
- package/dist/pptxgen.LICENSE.txt +21 -0
- package/dist/pptxgen.bundle.js +11244 -0
- package/dist/react.d.ts +51 -0
- package/dist/react.js +1 -0
- package/dist/styles.css +17435 -0
- package/dist/styles.js +0 -0
- package/dist/vue.d.ts +282 -0
- package/dist/vue.js +231 -0
- package/dist/web-component.d.ts +98 -0
- package/dist/web-component.js +335 -0
- package/docs/browser-editor-architecture.md +947 -0
- package/package.json +165 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SpreadsheetPrintBounds {
|
|
2
|
+
startRow: number;
|
|
3
|
+
endRow: number;
|
|
4
|
+
startColumn: number;
|
|
5
|
+
endColumn: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SpreadsheetCellRange {
|
|
8
|
+
row: [number, number];
|
|
9
|
+
column: [number, number];
|
|
10
|
+
}
|
|
11
|
+
export interface SpreadsheetPrintTitleBounds {
|
|
12
|
+
rows?: [number, number];
|
|
13
|
+
columns?: [number, number];
|
|
14
|
+
}
|
|
15
|
+
export declare function isValidSpreadsheetDefinedName(value: string): boolean;
|
|
16
|
+
export declare function normalizeSpreadsheetPrintArea(value: string): string | null;
|
|
17
|
+
export declare function normalizeSpreadsheetPrintTitleRows(value: string): string | null;
|
|
18
|
+
export declare function normalizeSpreadsheetPrintTitleColumns(value: string): string | null;
|
|
19
|
+
export declare function parseSpreadsheetPrintTitles(value: string): SpreadsheetPrintTitleBounds | null;
|
|
20
|
+
export declare function spreadsheetPrintTitleBounds(rowReference: string | undefined, columnReference: string | undefined, maximumRow: number, maximumColumn: number): SpreadsheetPrintTitleBounds | null;
|
|
21
|
+
export declare function parseSpreadsheetCellRanges(value: string): SpreadsheetCellRange[] | null;
|
|
22
|
+
export declare function formatSpreadsheetCellRanges(ranges: SpreadsheetCellRange[]): string;
|
|
23
|
+
export declare function qualifySpreadsheetRange(value: string, sheetName: string): string;
|
|
24
|
+
export declare function stripSpreadsheetSheetQualifier(value: string, sheetName: string): string;
|
|
25
|
+
export declare function spreadsheetPrintBounds(value: string, maximumRow: number, maximumColumn: number): SpreadsheetPrintBounds | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartSeries } from './work-types';
|
|
2
|
+
import { type SpreadsheetTrendlineFit } from './work-spreadsheet-trendlines';
|
|
3
|
+
interface SeriesTrendlineFit {
|
|
4
|
+
sourceIndex: number;
|
|
5
|
+
fit: SpreadsheetTrendlineFit;
|
|
6
|
+
}
|
|
7
|
+
export declare function spreadsheetSeriesTrendlineFits(series: WorkSpreadsheetChartSeries, xValues: readonly number[]): SeriesTrendlineFit[];
|
|
8
|
+
export declare function spreadsheetSeriesTrendlinesSvg(series: WorkSpreadsheetChartSeries, seriesIndex: number, xValues: readonly number[], position: (x: number, y: number) => readonly [number, number]): string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type WorkSpreadsheetTrendline } from './work-types';
|
|
2
|
+
export interface SpreadsheetTrendlinePoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface SpreadsheetTrendlineFit {
|
|
7
|
+
points: SpreadsheetTrendlinePoint[];
|
|
8
|
+
equation?: string;
|
|
9
|
+
rSquared?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function fitSpreadsheetTrendline(xValues: readonly number[], yValues: readonly number[], source: WorkSpreadsheetTrendline): SpreadsheetTrendlineFit | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SpreadsheetChartAxisScale } from './work-spreadsheet-chart-axis';
|
|
2
|
+
import type { WorkSpreadsheetChart } from './work-types';
|
|
3
|
+
interface SpreadsheetXyPlot {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function spreadsheetXyChartAxesSvg(chart: WorkSpreadsheetChart, plot: SpreadsheetXyPlot, xBounds: SpreadsheetChartAxisScale, yBounds: SpreadsheetChartAxisScale): string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import type { Sheet } from '@fortune-sheet/core';
|
|
2
|
+
import type { WorkSpreadsheetChartLayout } from './work-spreadsheet-chart-layout';
|
|
3
|
+
import type { WorkSpreadsheetChart, WorkSpreadsheetChartAxes, WorkSpreadsheetChartAxis, WorkSpreadsheetChartSeriesStyle, WorkSpreadsheetErrorBars, WorkSpreadsheetImage, WorkSpreadsheetTrendline } from './work-spreadsheet-chart-types';
|
|
4
|
+
export * from './work-spreadsheet-chart-types';
|
|
5
|
+
export type WorkArtifactKind = 'document' | 'markdown' | 'spreadsheet' | 'presentation' | 'pdf';
|
|
6
|
+
export type WorkLibraryView = 'home' | 'recent' | 'favorites' | 'folder' | 'trash';
|
|
7
|
+
export type WorkSaveState = 'saved' | 'dirty' | 'saving' | 'error';
|
|
8
|
+
export type WorkStorageMode = 'server' | 'local';
|
|
9
|
+
export interface WorkDocumentMargins {
|
|
10
|
+
top: number;
|
|
11
|
+
right: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
left: number;
|
|
14
|
+
}
|
|
15
|
+
export interface WorkDocumentColumnDefinition {
|
|
16
|
+
widthPercent: number;
|
|
17
|
+
spacing: number;
|
|
18
|
+
}
|
|
19
|
+
export interface WorkDocumentColumns {
|
|
20
|
+
count: number;
|
|
21
|
+
spacing: number;
|
|
22
|
+
separator: boolean;
|
|
23
|
+
custom?: WorkDocumentColumnDefinition[];
|
|
24
|
+
}
|
|
25
|
+
export type WorkDocumentPageChromeVariant = 'default' | 'first' | 'even';
|
|
26
|
+
export interface WorkDocumentPageChromeContent {
|
|
27
|
+
headerHtml: string;
|
|
28
|
+
footerHtml: string;
|
|
29
|
+
showPageNumber: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface WorkDocumentPageChrome {
|
|
32
|
+
differentFirstPage: boolean;
|
|
33
|
+
differentOddEvenPages: boolean;
|
|
34
|
+
default: WorkDocumentPageChromeContent;
|
|
35
|
+
first: WorkDocumentPageChromeContent;
|
|
36
|
+
even: WorkDocumentPageChromeContent;
|
|
37
|
+
}
|
|
38
|
+
export type WorkDocumentSectionBreakType = 'nextPage' | 'continuous' | 'evenPage' | 'oddPage' | 'nextColumn';
|
|
39
|
+
export interface WorkDocumentSectionLayout {
|
|
40
|
+
pageSize: 'a4' | 'letter';
|
|
41
|
+
orientation: 'portrait' | 'landscape';
|
|
42
|
+
margins: WorkDocumentMargins;
|
|
43
|
+
columns: WorkDocumentColumns;
|
|
44
|
+
breakAfter: WorkDocumentSectionBreakType;
|
|
45
|
+
headerText?: string;
|
|
46
|
+
footerText?: string;
|
|
47
|
+
showPageNumbers?: boolean;
|
|
48
|
+
pageNumberStart?: number;
|
|
49
|
+
pageChrome?: WorkDocumentPageChrome;
|
|
50
|
+
}
|
|
51
|
+
export type WorkDocumentAttributeValue = string | number | boolean | null | WorkDocumentAttributeValue[] | {
|
|
52
|
+
[key: string]: WorkDocumentAttributeValue;
|
|
53
|
+
};
|
|
54
|
+
export interface WorkDocumentMark {
|
|
55
|
+
type: string;
|
|
56
|
+
attrs?: Record<string, WorkDocumentAttributeValue>;
|
|
57
|
+
}
|
|
58
|
+
export interface WorkDocumentNode {
|
|
59
|
+
type: string;
|
|
60
|
+
attrs?: Record<string, WorkDocumentAttributeValue>;
|
|
61
|
+
content?: WorkDocumentNode[];
|
|
62
|
+
marks?: WorkDocumentMark[];
|
|
63
|
+
text?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface WorkDocumentModel {
|
|
66
|
+
schema: 'a3s.office.document';
|
|
67
|
+
version: 1;
|
|
68
|
+
revision: number;
|
|
69
|
+
htmlFingerprint: string;
|
|
70
|
+
root: WorkDocumentNode;
|
|
71
|
+
}
|
|
72
|
+
export interface WorkDocumentContent {
|
|
73
|
+
type: 'document';
|
|
74
|
+
html: string;
|
|
75
|
+
model?: WorkDocumentModel;
|
|
76
|
+
pageSize: 'a4' | 'letter';
|
|
77
|
+
pageColor?: string;
|
|
78
|
+
orientation?: 'portrait' | 'landscape';
|
|
79
|
+
margins?: WorkDocumentMargins;
|
|
80
|
+
columns?: WorkDocumentColumns;
|
|
81
|
+
headerText?: string;
|
|
82
|
+
footerText?: string;
|
|
83
|
+
showPageNumbers?: boolean;
|
|
84
|
+
pageNumberStart?: number;
|
|
85
|
+
pageChrome?: WorkDocumentPageChrome;
|
|
86
|
+
trackChanges?: boolean;
|
|
87
|
+
comments?: WorkDocumentComment[];
|
|
88
|
+
bibliography?: WorkDocumentBibliography;
|
|
89
|
+
}
|
|
90
|
+
export interface WorkMarkdownContent {
|
|
91
|
+
type: 'markdown';
|
|
92
|
+
markdown: string;
|
|
93
|
+
}
|
|
94
|
+
export type WorkDocumentCitationStyle = 'apa' | 'mla' | 'chicago' | 'ieee';
|
|
95
|
+
export interface WorkDocumentCitationPerson {
|
|
96
|
+
first: string;
|
|
97
|
+
middle?: string;
|
|
98
|
+
last: string;
|
|
99
|
+
suffix?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface WorkDocumentCitationContributor {
|
|
102
|
+
people?: WorkDocumentCitationPerson[];
|
|
103
|
+
corporate?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface WorkDocumentCitationSource {
|
|
106
|
+
id: string;
|
|
107
|
+
tag: string;
|
|
108
|
+
sourceType: string;
|
|
109
|
+
guid?: string;
|
|
110
|
+
title: string;
|
|
111
|
+
year?: string;
|
|
112
|
+
contributors?: Record<string, WorkDocumentCitationContributor>;
|
|
113
|
+
publisher?: string;
|
|
114
|
+
city?: string;
|
|
115
|
+
journalName?: string;
|
|
116
|
+
volume?: string;
|
|
117
|
+
issue?: string;
|
|
118
|
+
pages?: string;
|
|
119
|
+
url?: string;
|
|
120
|
+
standardNumber?: string;
|
|
121
|
+
conferenceName?: string;
|
|
122
|
+
institution?: string;
|
|
123
|
+
additionalFields?: Record<string, string>;
|
|
124
|
+
}
|
|
125
|
+
export interface WorkDocumentBibliography {
|
|
126
|
+
style: WorkDocumentCitationStyle;
|
|
127
|
+
styleName?: string;
|
|
128
|
+
selectedStyle?: string;
|
|
129
|
+
sources: WorkDocumentCitationSource[];
|
|
130
|
+
}
|
|
131
|
+
export interface WorkDocumentCommentReply {
|
|
132
|
+
id: string;
|
|
133
|
+
author: string;
|
|
134
|
+
date: string;
|
|
135
|
+
text: string;
|
|
136
|
+
}
|
|
137
|
+
export interface WorkDocumentComment {
|
|
138
|
+
id: string;
|
|
139
|
+
author: string;
|
|
140
|
+
date: string;
|
|
141
|
+
text: string;
|
|
142
|
+
resolved: boolean;
|
|
143
|
+
replies?: WorkDocumentCommentReply[];
|
|
144
|
+
}
|
|
145
|
+
export interface WorkSpreadsheetContent {
|
|
146
|
+
type: 'spreadsheet';
|
|
147
|
+
sheets: WorkSpreadsheetSheet[];
|
|
148
|
+
calculation?: WorkSpreadsheetCalculationSettings;
|
|
149
|
+
namedRanges?: WorkSpreadsheetNamedRange[];
|
|
150
|
+
printAreas?: WorkSpreadsheetPrintArea[];
|
|
151
|
+
printTitles?: WorkSpreadsheetPrintTitles[];
|
|
152
|
+
pageBreaks?: WorkSpreadsheetPageBreaks[];
|
|
153
|
+
pageSetups?: WorkSpreadsheetPageSetup[];
|
|
154
|
+
}
|
|
155
|
+
export type WorkSpreadsheetSheet = Omit<Sheet, 'images'> & {
|
|
156
|
+
images?: WorkSpreadsheetImage[];
|
|
157
|
+
charts?: WorkSpreadsheetChart[];
|
|
158
|
+
pivotTables?: WorkSpreadsheetPivotTable[];
|
|
159
|
+
formulaMetadata?: WorkSpreadsheetFormulaMetadata;
|
|
160
|
+
};
|
|
161
|
+
export type WorkSpreadsheetPivotAggregation = 'sum' | 'count' | 'counta' | 'average' | 'max' | 'min' | 'product' | 'stdDev' | 'stdDevP' | 'var' | 'varP';
|
|
162
|
+
export interface WorkSpreadsheetPivotValue {
|
|
163
|
+
fieldIndex: number;
|
|
164
|
+
aggregation: WorkSpreadsheetPivotAggregation;
|
|
165
|
+
caption?: string;
|
|
166
|
+
}
|
|
167
|
+
export type WorkSpreadsheetPivotFilterValue = string | number | boolean | null;
|
|
168
|
+
export interface WorkSpreadsheetPivotReportFilter {
|
|
169
|
+
fieldIndex: number;
|
|
170
|
+
selectedItem?: WorkSpreadsheetPivotFilterValue;
|
|
171
|
+
}
|
|
172
|
+
export interface WorkSpreadsheetPivotTable {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
sourceSheetId: string;
|
|
176
|
+
sourceReference: string;
|
|
177
|
+
anchor: string;
|
|
178
|
+
rowFields: number[];
|
|
179
|
+
columnFields: number[];
|
|
180
|
+
reportFilters?: WorkSpreadsheetPivotReportFilter[];
|
|
181
|
+
values: WorkSpreadsheetPivotValue[];
|
|
182
|
+
rowGrandTotals: boolean;
|
|
183
|
+
columnGrandTotals: boolean;
|
|
184
|
+
styleName: string;
|
|
185
|
+
refreshOnLoad: boolean;
|
|
186
|
+
outputReference?: string;
|
|
187
|
+
}
|
|
188
|
+
export type WorkSpreadsheetCalculationMode = 'automatic' | 'automatic-except-data-tables' | 'manual';
|
|
189
|
+
export interface WorkSpreadsheetCalculationSettings {
|
|
190
|
+
mode: WorkSpreadsheetCalculationMode;
|
|
191
|
+
fullCalculationOnLoad: boolean;
|
|
192
|
+
forceFullCalculation: boolean;
|
|
193
|
+
iterativeCalculation: boolean;
|
|
194
|
+
maximumIterations: number;
|
|
195
|
+
maximumChange: number;
|
|
196
|
+
fullPrecision: boolean;
|
|
197
|
+
}
|
|
198
|
+
export type WorkSpreadsheetFormulaRangeType = 'array' | 'dynamic-array' | 'data-table';
|
|
199
|
+
export interface WorkSpreadsheetDataTableOptions {
|
|
200
|
+
input1Reference?: string;
|
|
201
|
+
input2Reference?: string;
|
|
202
|
+
twoDimensional?: boolean;
|
|
203
|
+
rowOriented?: boolean;
|
|
204
|
+
input1Deleted?: boolean;
|
|
205
|
+
input2Deleted?: boolean;
|
|
206
|
+
calculateOnLoad?: boolean;
|
|
207
|
+
}
|
|
208
|
+
export interface WorkSpreadsheetFormulaRange {
|
|
209
|
+
type: WorkSpreadsheetFormulaRangeType;
|
|
210
|
+
anchor: string;
|
|
211
|
+
reference: string;
|
|
212
|
+
formula?: string;
|
|
213
|
+
dataTable?: WorkSpreadsheetDataTableOptions;
|
|
214
|
+
}
|
|
215
|
+
export interface WorkSpreadsheetFormulaMetadata {
|
|
216
|
+
ranges?: WorkSpreadsheetFormulaRange[];
|
|
217
|
+
sourceFormulas?: Record<string, string>;
|
|
218
|
+
normalizedSharedFormulaGroups?: number;
|
|
219
|
+
normalizedSharedFormulaCells?: number;
|
|
220
|
+
}
|
|
221
|
+
export interface WorkSpreadsheetNamedRange {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
reference: string;
|
|
225
|
+
scopeSheetId?: string;
|
|
226
|
+
comment?: string;
|
|
227
|
+
}
|
|
228
|
+
export interface WorkSpreadsheetPrintArea {
|
|
229
|
+
sheetId: string;
|
|
230
|
+
reference: string;
|
|
231
|
+
}
|
|
232
|
+
export interface WorkSpreadsheetPrintTitles {
|
|
233
|
+
sheetId: string;
|
|
234
|
+
rows?: string;
|
|
235
|
+
columns?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface WorkSpreadsheetPageBreaks {
|
|
238
|
+
sheetId: string;
|
|
239
|
+
rows?: number[];
|
|
240
|
+
columns?: number[];
|
|
241
|
+
}
|
|
242
|
+
export interface WorkSpreadsheetPageMargins {
|
|
243
|
+
top: number;
|
|
244
|
+
right: number;
|
|
245
|
+
bottom: number;
|
|
246
|
+
left: number;
|
|
247
|
+
header: number;
|
|
248
|
+
footer: number;
|
|
249
|
+
}
|
|
250
|
+
export interface WorkSpreadsheetHeaderFooterSections {
|
|
251
|
+
left?: string;
|
|
252
|
+
center?: string;
|
|
253
|
+
right?: string;
|
|
254
|
+
}
|
|
255
|
+
export type WorkSpreadsheetPaperSize = 'a3' | 'a4' | 'a5' | 'letter' | 'legal' | 'tabloid';
|
|
256
|
+
export interface WorkSpreadsheetPageSetup {
|
|
257
|
+
sheetId: string;
|
|
258
|
+
paperSize?: WorkSpreadsheetPaperSize;
|
|
259
|
+
orientation?: 'portrait' | 'landscape';
|
|
260
|
+
scale?: number;
|
|
261
|
+
fitToPage?: boolean;
|
|
262
|
+
fitToWidth?: number;
|
|
263
|
+
fitToHeight?: number;
|
|
264
|
+
horizontalCentered?: boolean;
|
|
265
|
+
verticalCentered?: boolean;
|
|
266
|
+
header?: WorkSpreadsheetHeaderFooterSections;
|
|
267
|
+
footer?: WorkSpreadsheetHeaderFooterSections;
|
|
268
|
+
pageNumberStart?: number;
|
|
269
|
+
pageOrder?: 'downThenOver' | 'overThenDown';
|
|
270
|
+
scaleWithDocument?: boolean;
|
|
271
|
+
alignWithMargins?: boolean;
|
|
272
|
+
margins?: WorkSpreadsheetPageMargins;
|
|
273
|
+
}
|
|
274
|
+
export type WorkCompatibilitySeverity = 'info' | 'warning' | 'error';
|
|
275
|
+
export interface WorkCompatibilityIssue {
|
|
276
|
+
code: string;
|
|
277
|
+
severity: WorkCompatibilitySeverity;
|
|
278
|
+
feature: string;
|
|
279
|
+
message: string;
|
|
280
|
+
location?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface WorkCompatibilityReport {
|
|
283
|
+
sourceFormat: string;
|
|
284
|
+
sourceName: string;
|
|
285
|
+
assessedAt: number;
|
|
286
|
+
issues: WorkCompatibilityIssue[];
|
|
287
|
+
}
|
|
288
|
+
export type WorkSlideElementType = 'text' | 'shape' | 'image' | 'table' | 'chart' | 'line';
|
|
289
|
+
export type WorkSlideTextAlign = 'left' | 'center' | 'right';
|
|
290
|
+
export type WorkSlideVerticalAlign = 'top' | 'middle' | 'bottom';
|
|
291
|
+
export type WorkSlideShapeType = 'rect' | 'roundRect' | 'ellipse' | 'triangle' | 'diamond' | 'line';
|
|
292
|
+
export interface WorkSlideTextRun {
|
|
293
|
+
text: string;
|
|
294
|
+
fontSize?: number;
|
|
295
|
+
color?: string;
|
|
296
|
+
bold?: boolean;
|
|
297
|
+
italic?: boolean;
|
|
298
|
+
underline?: boolean;
|
|
299
|
+
fontFamily?: string;
|
|
300
|
+
href?: string;
|
|
301
|
+
}
|
|
302
|
+
export interface WorkSlideImage {
|
|
303
|
+
dataUrl: string;
|
|
304
|
+
contentType: string;
|
|
305
|
+
name: string;
|
|
306
|
+
}
|
|
307
|
+
export interface WorkSlideTable {
|
|
308
|
+
rows: string[][];
|
|
309
|
+
headerRows?: number;
|
|
310
|
+
}
|
|
311
|
+
export type WorkSlideChartErrorBars = WorkSpreadsheetErrorBars;
|
|
312
|
+
export type WorkSlideChartTrendline = WorkSpreadsheetTrendline;
|
|
313
|
+
export type WorkSlideChartSeriesStyle = WorkSpreadsheetChartSeriesStyle;
|
|
314
|
+
export interface WorkSlideChartSeries {
|
|
315
|
+
name: string;
|
|
316
|
+
values: number[];
|
|
317
|
+
bubbleSizes?: number[];
|
|
318
|
+
errorBars?: WorkSlideChartErrorBars[];
|
|
319
|
+
trendlines?: WorkSlideChartTrendline[];
|
|
320
|
+
style?: WorkSlideChartSeriesStyle;
|
|
321
|
+
}
|
|
322
|
+
export type WorkSlideChartType = 'bar' | 'column' | 'line' | 'pie' | 'doughnut' | 'area' | 'radar' | 'scatter' | 'bubble';
|
|
323
|
+
export type WorkSlideRadarStyle = 'standard' | 'marker' | 'filled';
|
|
324
|
+
export type WorkSlideScatterStyle = 'marker' | 'line' | 'lineMarker' | 'smooth' | 'smoothMarker';
|
|
325
|
+
export type WorkSlideBubbleSizeRepresents = 'area' | 'width';
|
|
326
|
+
export type WorkSlideChartAxis = WorkSpreadsheetChartAxis;
|
|
327
|
+
export type WorkSlideChartAxes = WorkSpreadsheetChartAxes;
|
|
328
|
+
export type WorkSlideChartLegendPosition = 'right' | 'left' | 'top' | 'bottom' | 'topRight';
|
|
329
|
+
export type WorkSlideChartDataLabelPosition = 'bestFit' | 'center' | 'insideBase' | 'insideEnd' | 'outsideEnd' | 'left' | 'right' | 'above' | 'below';
|
|
330
|
+
export interface WorkSlideChartDataLabels {
|
|
331
|
+
showValue?: boolean;
|
|
332
|
+
showCategoryName?: boolean;
|
|
333
|
+
showSeriesName?: boolean;
|
|
334
|
+
showPercentage?: boolean;
|
|
335
|
+
showBubbleSize?: boolean;
|
|
336
|
+
separator?: string;
|
|
337
|
+
position?: WorkSlideChartDataLabelPosition;
|
|
338
|
+
}
|
|
339
|
+
export interface WorkSlideChart extends WorkSpreadsheetChartLayout {
|
|
340
|
+
type: WorkSlideChartType;
|
|
341
|
+
title?: string;
|
|
342
|
+
categories: string[];
|
|
343
|
+
series: WorkSlideChartSeries[];
|
|
344
|
+
showLegend?: boolean;
|
|
345
|
+
legendPosition?: WorkSlideChartLegendPosition;
|
|
346
|
+
axes?: WorkSlideChartAxes;
|
|
347
|
+
categoryAxisTitle?: string;
|
|
348
|
+
valueAxisTitle?: string;
|
|
349
|
+
dataLabels?: WorkSlideChartDataLabels;
|
|
350
|
+
doughnutHoleSize?: number;
|
|
351
|
+
radarStyle?: WorkSlideRadarStyle;
|
|
352
|
+
scatterStyle?: WorkSlideScatterStyle;
|
|
353
|
+
bubbleScale?: number;
|
|
354
|
+
showNegativeBubbles?: boolean;
|
|
355
|
+
bubbleSizeRepresents?: WorkSlideBubbleSizeRepresents;
|
|
356
|
+
}
|
|
357
|
+
export interface WorkSlidePlaceholder {
|
|
358
|
+
key: string;
|
|
359
|
+
type: string;
|
|
360
|
+
prompt?: string;
|
|
361
|
+
inheritsGeometry?: boolean;
|
|
362
|
+
inheritsStyle?: boolean;
|
|
363
|
+
}
|
|
364
|
+
export type WorkSlideTransitionType = 'fade' | 'push' | 'wipe' | 'split' | 'cut';
|
|
365
|
+
export type WorkSlideTransitionSpeed = 'fast' | 'medium' | 'slow';
|
|
366
|
+
export type WorkSlideTransitionDirection = 'left' | 'right' | 'up' | 'down' | 'in' | 'out';
|
|
367
|
+
export interface WorkSlideTransition {
|
|
368
|
+
type: WorkSlideTransitionType;
|
|
369
|
+
speed: WorkSlideTransitionSpeed;
|
|
370
|
+
direction?: WorkSlideTransitionDirection;
|
|
371
|
+
orientation?: 'horizontal' | 'vertical';
|
|
372
|
+
advanceOnClick: boolean;
|
|
373
|
+
advanceAfterMs?: number;
|
|
374
|
+
}
|
|
375
|
+
export interface WorkSlideElement {
|
|
376
|
+
id: string;
|
|
377
|
+
type: WorkSlideElementType;
|
|
378
|
+
/** Persistent scene-group path ordered from the outermost group inward. */
|
|
379
|
+
groupIds?: string[];
|
|
380
|
+
x: number;
|
|
381
|
+
y: number;
|
|
382
|
+
width: number;
|
|
383
|
+
height: number;
|
|
384
|
+
text: string;
|
|
385
|
+
fontSize: number;
|
|
386
|
+
color: string;
|
|
387
|
+
fill: string;
|
|
388
|
+
bold: boolean;
|
|
389
|
+
align: WorkSlideTextAlign;
|
|
390
|
+
radius?: number;
|
|
391
|
+
shapeType?: WorkSlideShapeType;
|
|
392
|
+
rotation?: number;
|
|
393
|
+
opacity?: number;
|
|
394
|
+
borderColor?: string;
|
|
395
|
+
borderWidth?: number;
|
|
396
|
+
fontFamily?: string;
|
|
397
|
+
italic?: boolean;
|
|
398
|
+
underline?: boolean;
|
|
399
|
+
verticalAlign?: WorkSlideVerticalAlign;
|
|
400
|
+
textRuns?: WorkSlideTextRun[];
|
|
401
|
+
image?: WorkSlideImage;
|
|
402
|
+
table?: WorkSlideTable;
|
|
403
|
+
chart?: WorkSlideChart;
|
|
404
|
+
href?: string;
|
|
405
|
+
altText?: string;
|
|
406
|
+
placeholder?: WorkSlidePlaceholder;
|
|
407
|
+
}
|
|
408
|
+
export interface WorkSlide {
|
|
409
|
+
id: string;
|
|
410
|
+
name: string;
|
|
411
|
+
background: string;
|
|
412
|
+
layoutId?: string;
|
|
413
|
+
useLayoutBackground?: boolean;
|
|
414
|
+
showMasterElements?: boolean;
|
|
415
|
+
elements: WorkSlideElement[];
|
|
416
|
+
notes?: string;
|
|
417
|
+
comments?: WorkSlideComment[];
|
|
418
|
+
transition?: WorkSlideTransition;
|
|
419
|
+
}
|
|
420
|
+
export interface WorkSlideComment {
|
|
421
|
+
id: string;
|
|
422
|
+
author: string;
|
|
423
|
+
initials?: string;
|
|
424
|
+
date: string;
|
|
425
|
+
text: string;
|
|
426
|
+
x: number;
|
|
427
|
+
y: number;
|
|
428
|
+
}
|
|
429
|
+
export interface WorkPresentationMaster {
|
|
430
|
+
id: string;
|
|
431
|
+
name: string;
|
|
432
|
+
background: string;
|
|
433
|
+
elements: WorkSlideElement[];
|
|
434
|
+
}
|
|
435
|
+
export interface WorkPresentationLayout {
|
|
436
|
+
id: string;
|
|
437
|
+
name: string;
|
|
438
|
+
masterId: string;
|
|
439
|
+
background?: string;
|
|
440
|
+
elements: WorkSlideElement[];
|
|
441
|
+
showMasterElements?: boolean;
|
|
442
|
+
sourceType?: string;
|
|
443
|
+
}
|
|
444
|
+
export interface WorkPresentationContent {
|
|
445
|
+
type: 'presentation';
|
|
446
|
+
slides: WorkSlide[];
|
|
447
|
+
width?: number;
|
|
448
|
+
height?: number;
|
|
449
|
+
masters?: WorkPresentationMaster[];
|
|
450
|
+
layouts?: WorkPresentationLayout[];
|
|
451
|
+
}
|
|
452
|
+
export type WorkPresentationPrintLayout = 'slides' | 'notes' | 'handout-2' | 'handout-3' | 'handout-6';
|
|
453
|
+
export interface WorkPdfContent {
|
|
454
|
+
type: 'pdf';
|
|
455
|
+
pageCount?: number;
|
|
456
|
+
}
|
|
457
|
+
export type WorkArtifactContent = WorkDocumentContent | WorkMarkdownContent | WorkSpreadsheetContent | WorkPresentationContent | WorkPdfContent;
|
|
458
|
+
export interface WorkArtifact {
|
|
459
|
+
id: string;
|
|
460
|
+
kind: WorkArtifactKind;
|
|
461
|
+
title: string;
|
|
462
|
+
favorite: boolean;
|
|
463
|
+
createdAt: number;
|
|
464
|
+
updatedAt: number;
|
|
465
|
+
lastOpenedAt: number;
|
|
466
|
+
revision: number;
|
|
467
|
+
content: WorkArtifactContent;
|
|
468
|
+
folderId?: string | null;
|
|
469
|
+
trashedAt?: number | null;
|
|
470
|
+
source?: WorkSourceFile | null;
|
|
471
|
+
compatibility?: WorkCompatibilityReport | null;
|
|
472
|
+
}
|
|
473
|
+
export interface WorkSourceFile {
|
|
474
|
+
name: string;
|
|
475
|
+
contentType: string;
|
|
476
|
+
size: number;
|
|
477
|
+
updatedAt: number;
|
|
478
|
+
}
|
|
479
|
+
export interface WorkFolder {
|
|
480
|
+
id: string;
|
|
481
|
+
name: string;
|
|
482
|
+
parentId?: string | null;
|
|
483
|
+
createdAt: number;
|
|
484
|
+
updatedAt: number;
|
|
485
|
+
revision: number;
|
|
486
|
+
trashedAt?: number | null;
|
|
487
|
+
}
|
|
488
|
+
export interface WorkStorageLimits {
|
|
489
|
+
artifactBytes: number;
|
|
490
|
+
sourceBytes: number;
|
|
491
|
+
historyEntries: number;
|
|
492
|
+
}
|
|
493
|
+
export interface WorkLibrarySnapshot {
|
|
494
|
+
artifacts: WorkArtifact[];
|
|
495
|
+
folders: WorkFolder[];
|
|
496
|
+
limits: WorkStorageLimits | null;
|
|
497
|
+
storage: WorkStorageMode;
|
|
498
|
+
}
|
|
499
|
+
export interface WorkArtifactVersion {
|
|
500
|
+
revision: number;
|
|
501
|
+
updatedAt: number;
|
|
502
|
+
current: boolean;
|
|
503
|
+
artifact: WorkArtifact;
|
|
504
|
+
}
|
|
505
|
+
export interface WorkTemplate {
|
|
506
|
+
id: string;
|
|
507
|
+
kind: WorkArtifactKind;
|
|
508
|
+
name: string;
|
|
509
|
+
description: string;
|
|
510
|
+
accent: string;
|
|
511
|
+
}
|
|
512
|
+
export declare function workArtifactExtension(kind: WorkArtifactKind): string;
|
|
513
|
+
export declare function workArtifactKindLabel(kind: WorkArtifactKind): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChart, type WorkSpreadsheetChartAxes, type WorkSpreadsheetChartType } from './work-types';
|
|
2
|
+
export declare function parseXlsxChartAxes(document: Document, chartType: WorkSpreadsheetChartType, hasSecondaryAxes: boolean, preserveVisibleDefaultGridlines?: boolean): WorkSpreadsheetChartAxes | undefined;
|
|
3
|
+
export declare function chartTextTitleXml(title: string, reference: string | undefined): string;
|
|
4
|
+
export declare function chartAxesXml(chart: WorkSpreadsheetChart, categoryAxisId: number, valueAxisId: number, secondaryCategoryAxisId: number, secondaryValueAxisId: number): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartGrouping, type WorkSpreadsheetChartLayout } from './work-spreadsheet-chart-layout';
|
|
2
|
+
import type { WorkSpreadsheetChart, WorkSpreadsheetChartType } from './work-types';
|
|
3
|
+
export interface ParsedXlsxChartLegend extends Pick<WorkSpreadsheetChart, 'showLegend'>, WorkSpreadsheetChartLayout {
|
|
4
|
+
}
|
|
5
|
+
export declare function parseXlsxChartLegend(document: Document): ParsedXlsxChartLegend;
|
|
6
|
+
export declare function xlsxChartLegendXml(chart: WorkSpreadsheetChart): string;
|
|
7
|
+
export declare function parseXlsxChartPlotLayout(chartNode: Element, chartType: WorkSpreadsheetChartType): WorkSpreadsheetChartLayout;
|
|
8
|
+
export declare function xlsxChartGroupingValue(chart: WorkSpreadsheetChart): WorkSpreadsheetChartGrouping;
|
|
9
|
+
export declare function xlsxChartGapWidthValue(chart: WorkSpreadsheetChart): number;
|
|
10
|
+
export declare function xlsxChartOverlapValue(chart: WorkSpreadsheetChart): number;
|
|
11
|
+
export declare function xlsxChartSmoothLinesValue(chart: WorkSpreadsheetChart): boolean;
|
|
12
|
+
export declare function xlsxChartNodeUsesStackedGrouping(chartNode: Element): boolean;
|
|
13
|
+
export declare function isSupportedXlsxChartLegend(document: Document): boolean;
|
|
14
|
+
export declare function isSupportedXlsxChartPlotLayout(chart: Element): boolean;
|
|
15
|
+
export declare function isSupportedXlsxCombinationPlotNode(chart: Element): boolean;
|
|
16
|
+
export declare function xlsxChartGroupingIsStacked(chart: WorkSpreadsheetChart): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkSpreadsheetChartSeriesStyle } from './work-types';
|
|
2
|
+
export declare function parseXlsxChartSeriesStyle(series: Element): WorkSpreadsheetChartSeriesStyle | undefined;
|
|
3
|
+
export declare function xlsxChartSeriesShapePropertiesXml(style: WorkSpreadsheetChartSeriesStyle | undefined): string;
|
|
4
|
+
export declare function xlsxChartSeriesMarkerXml(style: WorkSpreadsheetChartSeriesStyle | undefined, defaultVisible: boolean, defaultSize?: number): string;
|
|
5
|
+
export declare function isSupportedXlsxChartSeriesFormatting(series: Element, chartLocalName: string): boolean;
|
|
6
|
+
export declare function xlsxChartSeriesFormattingShapeProperties(series: Element): Element[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function cachedText(parent: Element): string;
|
|
2
|
+
export declare function richText(parent: Element): string;
|
|
3
|
+
export declare function cachedValues(parent: Element): string[];
|
|
4
|
+
export declare function formulaReference(parent: Element): string | undefined;
|
|
5
|
+
export declare function stringCacheXml(values: readonly string[]): string;
|
|
6
|
+
export declare function numberCacheXml(values: readonly number[]): string;
|
|
7
|
+
export declare function stringLiteralXml(values: readonly string[]): string;
|
|
8
|
+
export declare function numberLiteralXml(values: readonly number[]): string;
|
|
9
|
+
export declare function finiteNumber(value: unknown, fallback?: number): number;
|
|
10
|
+
export declare function escapeXml(value: string): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type OoxmlPackage } from './work-ooxml-package';
|
|
2
|
+
import type { WorkSpreadsheetChartLayout } from './work-spreadsheet-chart-layout';
|
|
3
|
+
import { type WorkSpreadsheetBubbleSizeRepresents, type WorkSpreadsheetChart, type WorkSpreadsheetChartAxes, type WorkSpreadsheetChartSeries, type WorkSpreadsheetChartType, type WorkSpreadsheetContent, type WorkSpreadsheetErrorBars, type WorkSpreadsheetRadarStyle, type WorkSpreadsheetScatterStyle, type WorkSpreadsheetSheet, type WorkSpreadsheetTrendline } from './work-types';
|
|
4
|
+
import { type XlsxDrawingAnchor } from './work-xlsx-drawing-geometry';
|
|
5
|
+
export declare const XLSX_CHART_RELATIONSHIP = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";
|
|
6
|
+
export declare const XLSX_CHART_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
|
|
7
|
+
export declare function isSupportedXlsxCombinationChartNodes(chartNodes: readonly Element[]): boolean;
|
|
8
|
+
export interface XlsxWorksheetChart extends XlsxDrawingAnchor, WorkSpreadsheetChartLayout {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
altText?: string;
|
|
12
|
+
type: WorkSpreadsheetChartType;
|
|
13
|
+
title?: string;
|
|
14
|
+
titleReference?: string;
|
|
15
|
+
categories: string[];
|
|
16
|
+
categoryReference?: string;
|
|
17
|
+
series: WorkSpreadsheetChartSeries[];
|
|
18
|
+
showLegend: boolean;
|
|
19
|
+
axes?: WorkSpreadsheetChartAxes;
|
|
20
|
+
doughnutHoleSize?: number;
|
|
21
|
+
radarStyle?: WorkSpreadsheetRadarStyle;
|
|
22
|
+
scatterStyle?: WorkSpreadsheetScatterStyle;
|
|
23
|
+
bubbleScale?: number;
|
|
24
|
+
showNegativeBubbles?: boolean;
|
|
25
|
+
bubbleSizeRepresents?: WorkSpreadsheetBubbleSizeRepresents;
|
|
26
|
+
}
|
|
27
|
+
export declare function readXlsxWorksheetCharts(archive: OoxmlPackage, worksheetPart: string, worksheet: Document): Promise<XlsxWorksheetChart[]>;
|
|
28
|
+
export declare function xlsxWorksheetChartsToSheet(charts: readonly XlsxWorksheetChart[], config: WorkSpreadsheetSheet['config']): WorkSpreadsheetChart[];
|
|
29
|
+
export declare function xlsxChartGraphicFrameXml(chart: WorkSpreadsheetChart, relationshipId: string, objectId: number, sheet: WorkSpreadsheetSheet): string;
|
|
30
|
+
export declare function xlsxChartPartXml(chart: WorkSpreadsheetChart, content: WorkSpreadsheetContent, ownerSheet: WorkSpreadsheetSheet, chartIndex: number): string;
|
|
31
|
+
export declare function parseXlsxErrorBars(node: Element, chartType: WorkSpreadsheetChartType): WorkSpreadsheetErrorBars | null;
|
|
32
|
+
export declare function parseXlsxTrendline(node: Element): WorkSpreadsheetTrendline | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FortuneConditionalFormatStyle } from './work-xlsx-conditional-format';
|
|
2
|
+
export declare class XlsxDifferentialFormatWriter {
|
|
3
|
+
private readonly styles;
|
|
4
|
+
private readonly container;
|
|
5
|
+
changed: boolean;
|
|
6
|
+
constructor(styles: Document);
|
|
7
|
+
append(style: FortuneConditionalFormatStyle): number | null;
|
|
8
|
+
serialize(): string;
|
|
9
|
+
private updateCount;
|
|
10
|
+
}
|
|
11
|
+
export declare function writeXlsxConditionalFormats(worksheet: Document, source: unknown, differentialFormats?: XlsxDifferentialFormatWriter): void;
|