@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
package/dist/1134.js
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
const WORK_TEMPLATES = [
|
|
2
|
+
{
|
|
3
|
+
id: 'blank-document',
|
|
4
|
+
kind: 'document',
|
|
5
|
+
name: '空白文字',
|
|
6
|
+
description: '从一张干净的 A4 页面开始',
|
|
7
|
+
accent: '#2f6fed'
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
id: 'project-brief',
|
|
11
|
+
kind: 'document',
|
|
12
|
+
name: '项目方案',
|
|
13
|
+
description: '目标、范围、里程碑与风险',
|
|
14
|
+
accent: '#536de2'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'blank-markdown',
|
|
18
|
+
kind: 'markdown',
|
|
19
|
+
name: '空白 Markdown',
|
|
20
|
+
description: '用轻量标记编写结构化内容',
|
|
21
|
+
accent: '#586574'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'blank-spreadsheet',
|
|
25
|
+
kind: 'spreadsheet',
|
|
26
|
+
name: '空白表格',
|
|
27
|
+
description: '公式、筛选与多工作表',
|
|
28
|
+
accent: '#16a36a'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'quarterly-plan',
|
|
32
|
+
kind: 'spreadsheet',
|
|
33
|
+
name: '季度计划',
|
|
34
|
+
description: '目标进度与预算跟踪',
|
|
35
|
+
accent: '#168f72'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'blank-presentation',
|
|
39
|
+
kind: 'presentation',
|
|
40
|
+
name: '空白演示',
|
|
41
|
+
description: '16:9 宽屏演示文稿',
|
|
42
|
+
accent: '#e16b3d'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'strategy-deck',
|
|
46
|
+
kind: 'presentation',
|
|
47
|
+
name: '策略汇报',
|
|
48
|
+
description: '结论先行的三页汇报',
|
|
49
|
+
accent: '#c85637'
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
function createWorkArtifact(templateId) {
|
|
53
|
+
const template = WORK_TEMPLATES.find((item)=>item.id === templateId) ?? WORK_TEMPLATES[0];
|
|
54
|
+
const now = Date.now();
|
|
55
|
+
return {
|
|
56
|
+
id: createWorkId('artifact'),
|
|
57
|
+
kind: template.kind,
|
|
58
|
+
title: initialTitle(template.id, template.kind),
|
|
59
|
+
favorite: false,
|
|
60
|
+
createdAt: now,
|
|
61
|
+
updatedAt: now,
|
|
62
|
+
lastOpenedAt: now,
|
|
63
|
+
revision: 1,
|
|
64
|
+
content: contentForTemplate(template.id)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function createWorkId(prefix) {
|
|
68
|
+
const random = "u" > typeof crypto && 'function' == typeof crypto.randomUUID ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
69
|
+
return `${prefix}-${random}`;
|
|
70
|
+
}
|
|
71
|
+
function initialTitle(templateId, kind) {
|
|
72
|
+
const titles = {
|
|
73
|
+
'project-brief': '新项目方案',
|
|
74
|
+
'quarterly-plan': '季度执行计划',
|
|
75
|
+
'strategy-deck': '业务策略汇报'
|
|
76
|
+
};
|
|
77
|
+
if (titles[templateId]) return titles[templateId];
|
|
78
|
+
if ('document' === kind) return '无标题文字';
|
|
79
|
+
if ('markdown' === kind) return '无标题 Markdown';
|
|
80
|
+
if ('spreadsheet' === kind) return '无标题表格';
|
|
81
|
+
return '无标题演示';
|
|
82
|
+
}
|
|
83
|
+
function contentForTemplate(templateId) {
|
|
84
|
+
if ('project-brief' === templateId) return {
|
|
85
|
+
type: 'document',
|
|
86
|
+
pageSize: 'a4',
|
|
87
|
+
html: "<h1>新项目方案</h1><p><strong>负责人:</strong>项目团队 <strong>更新日期:</strong>今天</p><blockquote><p>用一句话说明这项工作的目标,以及完成后会带来什么变化。</p></blockquote><h2>背景与目标</h2><p>描述当前情况、核心问题和可衡量的成功标准。</p><h2>工作范围</h2><ul><li><p>需要完成的关键交付物</p></li><li><p>明确不在本期范围内的事项</p></li></ul><h2>里程碑</h2><ol><li><p>方案确认</p></li><li><p>执行与评审</p></li><li><p>交付与复盘</p></li></ol><h2>风险与决策</h2><p>记录尚未解决的问题、依赖和决策负责人。</p>"
|
|
88
|
+
};
|
|
89
|
+
if ('quarterly-plan' === templateId) return {
|
|
90
|
+
type: 'spreadsheet',
|
|
91
|
+
sheets: quarterlyPlanSheets()
|
|
92
|
+
};
|
|
93
|
+
if ('strategy-deck' === templateId) return strategyPresentation();
|
|
94
|
+
if ('blank-spreadsheet' === templateId) return {
|
|
95
|
+
type: 'spreadsheet',
|
|
96
|
+
sheets: [
|
|
97
|
+
blankSheet()
|
|
98
|
+
]
|
|
99
|
+
};
|
|
100
|
+
if ('blank-markdown' === templateId) return {
|
|
101
|
+
type: 'markdown',
|
|
102
|
+
markdown: ''
|
|
103
|
+
};
|
|
104
|
+
if ('blank-presentation' === templateId) return {
|
|
105
|
+
type: 'presentation',
|
|
106
|
+
slides: [
|
|
107
|
+
blankSlide()
|
|
108
|
+
]
|
|
109
|
+
};
|
|
110
|
+
return {
|
|
111
|
+
type: 'document',
|
|
112
|
+
pageSize: 'a4',
|
|
113
|
+
html: '<p></p>'
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function blankSheet() {
|
|
117
|
+
return {
|
|
118
|
+
id: createWorkId('sheet'),
|
|
119
|
+
name: '工作表1',
|
|
120
|
+
status: 1,
|
|
121
|
+
order: 0,
|
|
122
|
+
row: 60,
|
|
123
|
+
column: 26,
|
|
124
|
+
data: emptyMatrix(60, 26)
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function quarterlyPlanSheets() {
|
|
128
|
+
const data = emptyMatrix(40, 12);
|
|
129
|
+
data[0][0] = styledCell('季度执行计划', {
|
|
130
|
+
bl: 1,
|
|
131
|
+
fs: 16,
|
|
132
|
+
fc: '#ffffff',
|
|
133
|
+
bg: '#168f72'
|
|
134
|
+
});
|
|
135
|
+
data[2][0] = headerCell('目标');
|
|
136
|
+
data[2][1] = headerCell('负责人');
|
|
137
|
+
data[2][2] = headerCell('一月');
|
|
138
|
+
data[2][3] = headerCell('二月');
|
|
139
|
+
data[2][4] = headerCell('三月');
|
|
140
|
+
data[2][5] = headerCell('完成率');
|
|
141
|
+
data[2][6] = headerCell('状态');
|
|
142
|
+
const rows = [
|
|
143
|
+
[
|
|
144
|
+
'客户洞察报告',
|
|
145
|
+
'林岚',
|
|
146
|
+
1,
|
|
147
|
+
1,
|
|
148
|
+
0,
|
|
149
|
+
'=SUM(C4:E4)/3',
|
|
150
|
+
'进行中'
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
'新版发布',
|
|
154
|
+
'周启',
|
|
155
|
+
0.8,
|
|
156
|
+
0.6,
|
|
157
|
+
0,
|
|
158
|
+
'=AVERAGE(C5:E5)',
|
|
159
|
+
'有风险'
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
'渠道增长',
|
|
163
|
+
'陈一',
|
|
164
|
+
1,
|
|
165
|
+
0.9,
|
|
166
|
+
0.7,
|
|
167
|
+
'=AVERAGE(C6:E6)',
|
|
168
|
+
'正常'
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
'团队能力建设',
|
|
172
|
+
'项目组',
|
|
173
|
+
1,
|
|
174
|
+
1,
|
|
175
|
+
1,
|
|
176
|
+
'=AVERAGE(C7:E7)',
|
|
177
|
+
'已完成'
|
|
178
|
+
]
|
|
179
|
+
];
|
|
180
|
+
rows.forEach((row, rowIndex)=>{
|
|
181
|
+
row.forEach((value, columnIndex)=>{
|
|
182
|
+
data[rowIndex + 3][columnIndex] = styledCell(value, {
|
|
183
|
+
bg: rowIndex % 2 ? '#f7faf9' : '#ffffff',
|
|
184
|
+
...columnIndex >= 2 && columnIndex <= 5 ? {
|
|
185
|
+
ct: {
|
|
186
|
+
fa: '0%',
|
|
187
|
+
t: 'n'
|
|
188
|
+
},
|
|
189
|
+
...'number' == typeof value ? {
|
|
190
|
+
m: `${Math.round(100 * value)}%`
|
|
191
|
+
} : {}
|
|
192
|
+
} : {}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
return [
|
|
197
|
+
{
|
|
198
|
+
id: createWorkId('sheet'),
|
|
199
|
+
name: '执行看板',
|
|
200
|
+
status: 1,
|
|
201
|
+
order: 0,
|
|
202
|
+
row: 40,
|
|
203
|
+
column: 12,
|
|
204
|
+
data,
|
|
205
|
+
config: {
|
|
206
|
+
columnlen: {
|
|
207
|
+
0: 180,
|
|
208
|
+
1: 96,
|
|
209
|
+
2: 76,
|
|
210
|
+
3: 76,
|
|
211
|
+
4: 76,
|
|
212
|
+
5: 96,
|
|
213
|
+
6: 96
|
|
214
|
+
},
|
|
215
|
+
rowlen: {
|
|
216
|
+
0: 34,
|
|
217
|
+
2: 28
|
|
218
|
+
},
|
|
219
|
+
merge: {
|
|
220
|
+
'0_0': {
|
|
221
|
+
r: 0,
|
|
222
|
+
c: 0,
|
|
223
|
+
rs: 1,
|
|
224
|
+
cs: 7
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
];
|
|
230
|
+
}
|
|
231
|
+
function emptyMatrix(rows, columns) {
|
|
232
|
+
return Array.from({
|
|
233
|
+
length: rows
|
|
234
|
+
}, ()=>Array(columns).fill(null));
|
|
235
|
+
}
|
|
236
|
+
function styledCell(value, style = {}) {
|
|
237
|
+
const formula = 'string' == typeof value && value.startsWith('=') ? value : void 0;
|
|
238
|
+
return {
|
|
239
|
+
v: formula ? void 0 : value,
|
|
240
|
+
m: formula ? '' : String(value),
|
|
241
|
+
f: formula,
|
|
242
|
+
...style
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function headerCell(value) {
|
|
246
|
+
return styledCell(value, {
|
|
247
|
+
bl: 1,
|
|
248
|
+
fc: '#215446',
|
|
249
|
+
bg: '#dff3ec',
|
|
250
|
+
ht: 0,
|
|
251
|
+
vt: 0
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function blankSlide() {
|
|
255
|
+
return {
|
|
256
|
+
id: createWorkId('slide'),
|
|
257
|
+
name: '标题幻灯片',
|
|
258
|
+
background: '#ffffff',
|
|
259
|
+
elements: [
|
|
260
|
+
{
|
|
261
|
+
id: createWorkId('element'),
|
|
262
|
+
type: 'text',
|
|
263
|
+
x: 12,
|
|
264
|
+
y: 25,
|
|
265
|
+
width: 76,
|
|
266
|
+
height: 18,
|
|
267
|
+
text: '',
|
|
268
|
+
fontSize: 34,
|
|
269
|
+
color: '#172033',
|
|
270
|
+
fill: 'transparent',
|
|
271
|
+
bold: true,
|
|
272
|
+
align: 'center',
|
|
273
|
+
placeholder: {
|
|
274
|
+
key: 'title',
|
|
275
|
+
type: 'title',
|
|
276
|
+
prompt: '单击添加标题'
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: createWorkId('element'),
|
|
281
|
+
type: 'text',
|
|
282
|
+
x: 18,
|
|
283
|
+
y: 49,
|
|
284
|
+
width: 64,
|
|
285
|
+
height: 10,
|
|
286
|
+
text: '',
|
|
287
|
+
fontSize: 17,
|
|
288
|
+
color: '#727b8f',
|
|
289
|
+
fill: 'transparent',
|
|
290
|
+
bold: false,
|
|
291
|
+
align: 'center',
|
|
292
|
+
placeholder: {
|
|
293
|
+
key: 'subtitle',
|
|
294
|
+
type: 'subtitle',
|
|
295
|
+
prompt: '添加副标题'
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function strategyPresentation() {
|
|
302
|
+
const slides = [
|
|
303
|
+
{
|
|
304
|
+
id: createWorkId('slide'),
|
|
305
|
+
name: '封面',
|
|
306
|
+
background: '#16213d',
|
|
307
|
+
elements: [
|
|
308
|
+
{
|
|
309
|
+
id: createWorkId('element'),
|
|
310
|
+
type: 'shape',
|
|
311
|
+
x: 8,
|
|
312
|
+
y: 12,
|
|
313
|
+
width: 9,
|
|
314
|
+
height: 3,
|
|
315
|
+
text: '',
|
|
316
|
+
fontSize: 12,
|
|
317
|
+
color: '#ffffff',
|
|
318
|
+
fill: '#ffb15a',
|
|
319
|
+
bold: false,
|
|
320
|
+
align: 'left',
|
|
321
|
+
radius: 2
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
id: createWorkId('element'),
|
|
325
|
+
type: 'text',
|
|
326
|
+
x: 8,
|
|
327
|
+
y: 30,
|
|
328
|
+
width: 72,
|
|
329
|
+
height: 24,
|
|
330
|
+
text: '业务策略汇报',
|
|
331
|
+
fontSize: 38,
|
|
332
|
+
color: '#ffffff',
|
|
333
|
+
fill: 'transparent',
|
|
334
|
+
bold: true,
|
|
335
|
+
align: 'left'
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: createWorkId('element'),
|
|
339
|
+
type: 'text',
|
|
340
|
+
x: 8,
|
|
341
|
+
y: 58,
|
|
342
|
+
width: 62,
|
|
343
|
+
height: 10,
|
|
344
|
+
text: '把最重要的结论放在标题中',
|
|
345
|
+
fontSize: 17,
|
|
346
|
+
color: '#b8c4df',
|
|
347
|
+
fill: 'transparent',
|
|
348
|
+
bold: false,
|
|
349
|
+
align: 'left'
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
id: createWorkId('slide'),
|
|
355
|
+
name: '核心判断',
|
|
356
|
+
background: '#f7f4ee',
|
|
357
|
+
elements: [
|
|
358
|
+
{
|
|
359
|
+
id: createWorkId('element'),
|
|
360
|
+
type: 'text',
|
|
361
|
+
x: 8,
|
|
362
|
+
y: 10,
|
|
363
|
+
width: 84,
|
|
364
|
+
height: 11,
|
|
365
|
+
text: '01 核心判断',
|
|
366
|
+
fontSize: 15,
|
|
367
|
+
color: '#b44e34',
|
|
368
|
+
fill: 'transparent',
|
|
369
|
+
bold: true,
|
|
370
|
+
align: 'left'
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
id: createWorkId('element'),
|
|
374
|
+
type: 'text',
|
|
375
|
+
x: 8,
|
|
376
|
+
y: 27,
|
|
377
|
+
width: 76,
|
|
378
|
+
height: 22,
|
|
379
|
+
text: '用一句可以独立成立的话,说明我们看到了什么。',
|
|
380
|
+
fontSize: 31,
|
|
381
|
+
color: '#20273a',
|
|
382
|
+
fill: 'transparent',
|
|
383
|
+
bold: true,
|
|
384
|
+
align: 'left'
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
id: createWorkId('element'),
|
|
388
|
+
type: 'shape',
|
|
389
|
+
x: 8,
|
|
390
|
+
y: 60,
|
|
391
|
+
width: 84,
|
|
392
|
+
height: 22,
|
|
393
|
+
text: '关键证据或数据',
|
|
394
|
+
fontSize: 18,
|
|
395
|
+
color: '#ffffff',
|
|
396
|
+
fill: '#b44e34',
|
|
397
|
+
bold: true,
|
|
398
|
+
align: 'center',
|
|
399
|
+
radius: 3
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
id: createWorkId('slide'),
|
|
405
|
+
name: '下一步',
|
|
406
|
+
background: '#ffffff',
|
|
407
|
+
elements: [
|
|
408
|
+
{
|
|
409
|
+
id: createWorkId('element'),
|
|
410
|
+
type: 'text',
|
|
411
|
+
x: 8,
|
|
412
|
+
y: 10,
|
|
413
|
+
width: 84,
|
|
414
|
+
height: 12,
|
|
415
|
+
text: '02 下一步',
|
|
416
|
+
fontSize: 15,
|
|
417
|
+
color: '#b44e34',
|
|
418
|
+
fill: 'transparent',
|
|
419
|
+
bold: true,
|
|
420
|
+
align: 'left'
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
id: createWorkId('element'),
|
|
424
|
+
type: 'text',
|
|
425
|
+
x: 8,
|
|
426
|
+
y: 28,
|
|
427
|
+
width: 84,
|
|
428
|
+
height: 46,
|
|
429
|
+
text: '1 确认优先级\n2 指定负责人\n3 设定可验证的里程碑',
|
|
430
|
+
fontSize: 26,
|
|
431
|
+
color: '#20273a',
|
|
432
|
+
fill: '#f3f0ea',
|
|
433
|
+
bold: false,
|
|
434
|
+
align: 'left',
|
|
435
|
+
radius: 3
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
];
|
|
440
|
+
return {
|
|
441
|
+
type: 'presentation',
|
|
442
|
+
slides
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
export { WORK_TEMPLATES as officeTemplates, createWorkArtifact as createArtifact, createWorkId as createOfficeId };
|