ooxml-ui 0.27.2 → 0.28.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/dist/chunk-A56QI2OA.js +57 -0
- package/dist/{chunk-LE4FTRWB.js → chunk-AJ2J734X.js} +619 -3
- package/dist/{chunk-4PBFBPOH.js → chunk-G4ZGQYBH.js} +2 -1
- package/dist/controls.js +1 -1
- package/dist/docx/backstage-home.d.ts +3 -0
- package/dist/docx/backstage-options.d.ts +13 -0
- package/dist/docx/backstage-pages.d.ts +41 -0
- package/dist/docx/backstage.d.ts +18 -0
- package/dist/docx/binding-labels.d.ts +9 -0
- package/dist/docx/bookmark-commands.d.ts +20 -0
- package/dist/docx/bookmark-dialog.d.ts +4 -0
- package/dist/docx/borders-dialog.d.ts +4 -0
- package/dist/docx/canvas-measurer.d.ts +7 -0
- package/dist/docx/caption-commands.d.ts +31 -0
- package/dist/docx/caption-dialog.d.ts +5 -0
- package/dist/docx/change-case.d.ts +5 -0
- package/dist/docx/character-style-picker.d.ts +12 -0
- package/dist/docx/chrome-icons.d.ts +25 -0
- package/dist/docx/collaboration-model.d.ts +4 -0
- package/dist/docx/collaboration-session.d.ts +18 -0
- package/dist/docx/columns-dialog.d.ts +10 -0
- package/dist/docx/comment-commands.d.ts +21 -0
- package/dist/docx/comments-panel.d.ts +19 -0
- package/dist/docx/component.d.ts +70 -0
- package/dist/docx/context-menu-actions.d.ts +10 -0
- package/dist/docx/context-menu-items.d.ts +36 -0
- package/dist/docx/context-menu.d.ts +25 -0
- package/dist/docx/contextual-tabs.d.ts +8 -0
- package/dist/docx/cover-page.d.ts +14 -0
- package/dist/docx/cross-reference-commands.d.ts +30 -0
- package/dist/docx/cross-reference-dialog.d.ts +5 -0
- package/dist/docx/dialog-fields.d.ts +22 -0
- package/dist/docx/dialog-shell.d.ts +19 -0
- package/dist/docx/drop-cap-command.d.ts +20 -0
- package/dist/docx/drop-cap-dialog.d.ts +4 -0
- package/dist/docx/editor-attributes.d.ts +26 -0
- package/dist/docx/editor-chrome.d.ts +59 -0
- package/dist/docx/editor-commands.d.ts +7 -0
- package/dist/docx/editor-controls.d.ts +10 -0
- package/dist/docx/editor-core.d.ts +78 -0
- package/dist/docx/editor-host.d.ts +19 -0
- package/dist/docx/editor-interactions.d.ts +2 -0
- package/dist/docx/editor-plugins.d.ts +16 -0
- package/dist/docx/editor-presence.d.ts +20 -0
- package/dist/docx/editor-render.d.ts +3 -0
- package/dist/docx/editor-shell.d.ts +11 -0
- package/dist/docx/element-api.d.ts +35 -0
- package/dist/docx/equation-schema.d.ts +4 -0
- package/dist/docx/events.d.ts +45 -0
- package/dist/docx/field-update.d.ts +16 -0
- package/dist/docx/file-commands.d.ts +15 -0
- package/dist/docx/focus-view.d.ts +3 -0
- package/dist/docx/font-advanced.d.ts +18 -0
- package/dist/docx/font-dialog-tabs.d.ts +8 -0
- package/dist/docx/font-dialog.d.ts +11 -0
- package/dist/docx/font-format-batch.d.ts +3 -0
- package/dist/docx/font-format.d.ts +38 -0
- package/dist/docx/font-step.d.ts +5 -0
- package/dist/docx/font-sync.d.ts +9 -0
- package/dist/docx/format-dialogs.d.ts +37 -0
- package/dist/docx/format-painter.d.ts +12 -0
- package/dist/docx/go-to-panel.d.ts +4 -0
- package/dist/docx/go-to.d.ts +23 -0
- package/dist/docx/hard-break-command.d.ts +3 -0
- package/dist/docx/header-footer-commands.d.ts +19 -0
- package/dist/docx/header-footer-editor.d.ts +40 -0
- package/dist/docx/header-footer-link.d.ts +6 -0
- package/dist/docx/header-footer-navigation.d.ts +6 -0
- package/dist/docx/header-footer-position.d.ts +3 -0
- package/dist/docx/header-footer-ribbon.d.ts +9 -0
- package/dist/docx/header-footer-view.d.ts +5 -0
- package/dist/docx/heading-commands.d.ts +11 -0
- package/dist/docx/heading-navigator.d.ts +33 -0
- package/dist/docx/image-media.d.ts +29 -0
- package/dist/docx/indent-commands.d.ts +9 -0
- package/dist/docx/index.d.ts +23 -0
- package/dist/docx/inline-commands.d.ts +4 -0
- package/dist/docx/insert-controller.d.ts +46 -0
- package/dist/docx/insert-text-commands.d.ts +8 -0
- package/dist/docx/keyboard.d.ts +68 -0
- package/dist/docx/line-number-dialog.d.ts +11 -0
- package/dist/docx/link-commands.d.ts +31 -0
- package/dist/docx/link-dialog.d.ts +15 -0
- package/dist/docx/list-commands.d.ts +35 -0
- package/dist/docx/list-marker-display.d.ts +8 -0
- package/dist/docx/locales/columns.d.ts +15 -0
- package/dist/docx/locales/de-app.d.ts +8 -0
- package/dist/docx/locales/de-ribbon.d.ts +8 -0
- package/dist/docx/locales/de.d.ts +2 -0
- package/dist/docx/locales/drop-cap.d.ts +10 -0
- package/dist/docx/locales/en-app.d.ts +247 -0
- package/dist/docx/locales/en-ribbon.d.ts +394 -0
- package/dist/docx/locales/en.d.ts +746 -0
- package/dist/docx/locales/es-app.d.ts +8 -0
- package/dist/docx/locales/es-ribbon.d.ts +8 -0
- package/dist/docx/locales/es.d.ts +2 -0
- package/dist/docx/locales/font-advanced.d.ts +14 -0
- package/dist/docx/locales/fr-app.d.ts +2 -0
- package/dist/docx/locales/fr-ribbon.d.ts +2 -0
- package/dist/docx/locales/fr.d.ts +2 -0
- package/dist/docx/locales/ligatures.d.ts +5 -0
- package/dist/docx/locales/line-numbers.d.ts +16 -0
- package/dist/docx/locales/multilevel-list.d.ts +5 -0
- package/dist/docx/locales/navigation.d.ts +13 -0
- package/dist/docx/locales/table-properties.d.ts +29 -0
- package/dist/docx/locales/zh-CN-app.d.ts +8 -0
- package/dist/docx/locales/zh-CN-ribbon.d.ts +8 -0
- package/dist/docx/locales/zh-CN.d.ts +2 -0
- package/dist/docx/localization-strings.d.ts +745 -0
- package/dist/docx/localization.d.ts +24 -0
- package/dist/docx/model-adapter.d.ts +6 -0
- package/dist/docx/multilevel-list-dialog.d.ts +5 -0
- package/dist/docx/multilingual-commands.d.ts +14 -0
- package/dist/docx/multilingual-ribbon.d.ts +6 -0
- package/dist/docx/note-commands.d.ts +17 -0
- package/dist/docx/note-editor.d.ts +10 -0
- package/dist/docx/notes-view.d.ts +3 -0
- package/dist/docx/page-borders-dialog.d.ts +16 -0
- package/dist/docx/page-break-command.d.ts +5 -0
- package/dist/docx/page-controller.d.ts +66 -0
- package/dist/docx/page-navigator.d.ts +64 -0
- package/dist/docx/page-setup-change.d.ts +7 -0
- package/dist/docx/page-setup-dialog.d.ts +12 -0
- package/dist/docx/page-sync.d.ts +22 -0
- package/dist/docx/paragraph-decoration.d.ts +29 -0
- package/dist/docx/paragraph-dialog.d.ts +5 -0
- package/dist/docx/paragraph-format.d.ts +37 -0
- package/dist/docx/paragraph-styles.d.ts +5 -0
- package/dist/docx/paragraph-toggle-sync.d.ts +8 -0
- package/dist/docx/parts-controller.d.ts +52 -0
- package/dist/docx/picture-commands.d.ts +35 -0
- package/dist/docx/picture-dialog.d.ts +11 -0
- package/dist/docx/presence-decorations.d.ts +6 -0
- package/dist/docx/presence.d.ts +63 -0
- package/dist/docx/preview-run-styles.d.ts +4 -0
- package/dist/docx/preview-scale-fonts.d.ts +3 -0
- package/dist/docx/print-fragment-hit.d.ts +7 -0
- package/dist/docx/print-header-footer.d.ts +28 -0
- package/dist/docx/print-layout-cursor.d.ts +9 -0
- package/dist/docx/print-layout-view.d.ts +38 -0
- package/dist/docx/print-layout.d.ts +32 -0
- package/dist/docx/print-line-numbers.d.ts +13 -0
- package/dist/docx/print-page-borders.d.ts +18 -0
- package/dist/docx/print-table.d.ts +8 -0
- package/dist/docx/read-aloud.d.ts +11 -0
- package/dist/docx/review-commands.d.ts +24 -0
- package/dist/docx/review-controller.d.ts +30 -0
- package/dist/docx/review-display.d.ts +11 -0
- package/dist/docx/review-ribbon.d.ts +2 -0
- package/dist/docx/ribbon-action.d.ts +183 -0
- package/dist/docx/ribbon-behavior.d.ts +7 -0
- package/dist/docx/ribbon-color-grid.d.ts +11 -0
- package/dist/docx/ribbon-combo.d.ts +23 -0
- package/dist/docx/ribbon-commands.d.ts +13 -0
- package/dist/docx/ribbon-controls.d.ts +4 -0
- package/dist/docx/ribbon-gallery-menu.d.ts +26 -0
- package/dist/docx/ribbon-home.d.ts +4 -0
- package/dist/docx/ribbon-icons.d.ts +126 -0
- package/dist/docx/ribbon-keytips.d.ts +11 -0
- package/dist/docx/ribbon-overflow.d.ts +3 -0
- package/dist/docx/ribbon-parts.d.ts +53 -0
- package/dist/docx/ribbon-popover.d.ts +16 -0
- package/dist/docx/ribbon-router.d.ts +4 -0
- package/dist/docx/ribbon-tab-api.d.ts +29 -0
- package/dist/docx/ribbon-tabs.d.ts +2 -0
- package/dist/docx/ribbon-visibility.d.ts +8 -0
- package/dist/docx/ribbon.d.ts +5 -0
- package/dist/docx/ruler-sync.d.ts +7 -0
- package/dist/docx/ruler.d.ts +36 -0
- package/dist/docx/run-adapter.d.ts +9 -0
- package/dist/docx/run-marks.d.ts +4 -0
- package/dist/docx/run-scale.d.ts +11 -0
- package/dist/docx/run-styles.d.ts +19 -0
- package/dist/docx/scaled-paragraph-breaks.d.ts +7 -0
- package/dist/docx/schema.d.ts +6 -0
- package/dist/docx/script-state.d.ts +4 -0
- package/dist/docx/search-controller.d.ts +32 -0
- package/dist/docx/search-panel.d.ts +14 -0
- package/dist/docx/section-commands.d.ts +14 -0
- package/dist/docx/shell-labels.d.ts +3 -0
- package/dist/docx/shortcut-help.d.ts +16 -0
- package/dist/docx/smartart-node-view.d.ts +26 -0
- package/dist/docx/sort-commands.d.ts +9 -0
- package/dist/docx/spelling.d.ts +6 -0
- package/dist/docx/status-bar.d.ts +23 -0
- package/dist/docx/style-gallery.d.ts +22 -0
- package/dist/docx/styles/index.d.ts +6 -0
- package/dist/docx/styles-group.d.ts +7 -0
- package/dist/docx/styles-pane.d.ts +15 -0
- package/dist/docx/styles-popover.d.ts +24 -0
- package/dist/docx/tab-stops-view.d.ts +8 -0
- package/dist/docx/table-border-commands.d.ts +51 -0
- package/dist/docx/table-cell-alignment-dialog.d.ts +8 -0
- package/dist/docx/table-cell-margins-dialog.d.ts +9 -0
- package/dist/docx/table-commands.d.ts +6 -0
- package/dist/docx/table-model-adapter.d.ts +15 -0
- package/dist/docx/table-picker.d.ts +10 -0
- package/dist/docx/table-properties-dialog.d.ts +3 -0
- package/dist/docx/table-properties.d.ts +28 -0
- package/dist/docx/table-shading.d.ts +6 -0
- package/dist/docx/test-support.d.ts +24 -0
- package/dist/docx/text-box-commands.d.ts +17 -0
- package/dist/docx/text-box-dialog.d.ts +4 -0
- package/dist/docx/title-bar.d.ts +25 -0
- package/dist/docx/toc-commands.d.ts +17 -0
- package/dist/docx/toggle-commands.d.ts +8 -0
- package/dist/docx/track-changes-mode.d.ts +20 -0
- package/dist/docx/view-options.d.ts +10 -0
- package/dist/docx/watermark-commands.d.ts +9 -0
- package/dist/docx/watermark-dialog.d.ts +11 -0
- package/dist/docx/word-count-panel.d.ts +12 -0
- package/dist/docx/zoom-dialog.d.ts +16 -0
- package/dist/docx.js +21371 -0
- package/dist/edit-worker.js +18 -0
- package/dist/index.js +4 -60
- package/dist/parse-worker.js +16 -0
- package/dist/teams/app/bind.d.ts +28 -0
- package/dist/teams/app/controller.d.ts +13 -0
- package/dist/teams/app/index.d.ts +6 -0
- package/dist/teams/app/storage.d.ts +11 -0
- package/dist/teams/app/store.d.ts +4 -0
- package/dist/teams/app/teams-app.d.ts +110 -0
- package/dist/teams/app/teams-settings.d.ts +34 -0
- package/dist/teams/index.d.ts +1 -0
- package/dist/teams.js +3 -1
- package/dist/visio/arrowheads.d.ts +3 -0
- package/dist/visio/backstage.d.ts +15 -0
- package/dist/visio/binding.d.ts +27 -0
- package/dist/visio/controller.d.ts +71 -0
- package/dist/visio/edit-worker.d.ts +1 -0
- package/dist/visio/export-svg.d.ts +25 -0
- package/dist/visio/index.d.ts +14 -0
- package/dist/visio/office-ui.d.ts +2 -0
- package/dist/visio/paragraph-layout.d.ts +18 -0
- package/dist/visio/parse-worker.d.ts +1 -0
- package/dist/visio/print-snapshot.d.ts +87 -0
- package/dist/visio/render-fill.d.ts +2 -0
- package/dist/visio/render-foreign-vector-shape.d.ts +4 -0
- package/dist/visio/render-foreign-vector.d.ts +3 -0
- package/dist/visio/render-image.d.ts +4 -0
- package/dist/visio/render-resources.d.ts +10 -0
- package/dist/visio/render-svg.d.ts +17 -0
- package/dist/visio/render-text.d.ts +4 -0
- package/dist/visio/ribbon-action.d.ts +41 -0
- package/dist/visio/ribbon-home-format.d.ts +2 -0
- package/dist/visio/ribbon-home.d.ts +6 -0
- package/dist/visio/ribbon-keytips.d.ts +2 -0
- package/dist/visio/ribbon-other-tabs.d.ts +12 -0
- package/dist/visio/ribbon-parts.d.ts +60 -0
- package/dist/visio/ribbon-router.d.ts +19 -0
- package/dist/visio/ribbon-view.d.ts +5 -0
- package/dist/visio/ribbon.d.ts +13 -0
- package/dist/visio/shape-inspector.d.ts +5 -0
- package/dist/visio/shapes-window.d.ts +28 -0
- package/dist/visio/status-bar.d.ts +10 -0
- package/dist/visio/styles/index.d.ts +5 -0
- package/dist/visio/styles.d.ts +2 -0
- package/dist/visio/text-layout.d.ts +45 -0
- package/dist/visio/viewer-backstage.d.ts +33 -0
- package/dist/visio/viewer-canvas.d.ts +21 -0
- package/dist/visio/viewer-chrome.d.ts +22 -0
- package/dist/visio/viewer-commands.d.ts +34 -0
- package/dist/visio/viewer-context-menu.d.ts +8 -0
- package/dist/visio/viewer-draw-tool.d.ts +33 -0
- package/dist/visio/viewer-edit-controls.d.ts +12 -0
- package/dist/visio/viewer-element.d.ts +51 -0
- package/dist/visio/viewer-fit.d.ts +6 -0
- package/dist/visio/viewer-geometry-controls.d.ts +14 -0
- package/dist/visio/viewer-input.d.ts +10 -0
- package/dist/visio/viewer-layer-controls.d.ts +5 -0
- package/dist/visio/viewer-layers.d.ts +22 -0
- package/dist/visio/viewer-options.d.ts +22 -0
- package/dist/visio/viewer-pan-zoom.d.ts +19 -0
- package/dist/visio/viewer-ruler.d.ts +13 -0
- package/dist/visio/viewer-search.d.ts +18 -0
- package/dist/visio/viewer-share.d.ts +20 -0
- package/dist/visio/viewer-stencil.d.ts +6 -0
- package/dist/visio/viewer-tell-me.d.ts +4 -0
- package/dist/visio/worker-editor.d.ts +23 -0
- package/dist/visio/worker-parser.d.ts +13 -0
- package/dist/visio.js +6618 -0
- package/dist/xlsx/backstage/index.d.ts +14 -0
- package/dist/xlsx/backstage/pages-file.d.ts +6 -0
- package/dist/xlsx/backstage/pages-info.d.ts +10 -0
- package/dist/xlsx/backstage/pages-options.d.ts +7 -0
- package/dist/xlsx/backstage/parts.d.ts +53 -0
- package/dist/xlsx/backstage/properties-custom.d.ts +4 -0
- package/dist/xlsx/clipboard.d.ts +26 -0
- package/dist/xlsx/commands/index.d.ts +11 -0
- package/dist/xlsx/commands/insert-now.d.ts +4 -0
- package/dist/xlsx/commands/insert.d.ts +7 -0
- package/dist/xlsx/commands/register-icons.d.ts +2 -0
- package/dist/xlsx/commands/review.d.ts +6 -0
- package/dist/xlsx/commands/styles.d.ts +17 -0
- package/dist/xlsx/commands/test-support.d.ts +25 -0
- package/dist/xlsx/commands/view.d.ts +7 -0
- package/dist/xlsx/component.d.ts +66 -0
- package/dist/xlsx/context-menu/index.d.ts +2 -0
- package/dist/xlsx/context-menu/menu.d.ts +14 -0
- package/dist/xlsx/dialogs/cell-shift.d.ts +5 -0
- package/dist/xlsx/dialogs/cf-common.d.ts +29 -0
- package/dist/xlsx/dialogs/cf-manager.d.ts +8 -0
- package/dist/xlsx/dialogs/cf-quick.d.ts +10 -0
- package/dist/xlsx/dialogs/cf-rule-panels.d.ts +20 -0
- package/dist/xlsx/dialogs/cf-rule-scale.d.ts +3 -0
- package/dist/xlsx/dialogs/cf-rule.d.ts +13 -0
- package/dist/xlsx/dialogs/comments-list.d.ts +2 -0
- package/dist/xlsx/dialogs/create-names.d.ts +8 -0
- package/dist/xlsx/dialogs/create-table.d.ts +6 -0
- package/dist/xlsx/dialogs/data-validation.d.ts +3 -0
- package/dist/xlsx/dialogs/define-name.d.ts +9 -0
- package/dist/xlsx/dialogs/fields.d.ts +47 -0
- package/dist/xlsx/dialogs/fill-series.d.ts +10 -0
- package/dist/xlsx/dialogs/find-replace.d.ts +8 -0
- package/dist/xlsx/dialogs/format-cells/alignment-tab.d.ts +5 -0
- package/dist/xlsx/dialogs/format-cells/border-tab.d.ts +4 -0
- package/dist/xlsx/dialogs/format-cells/color-swatches.d.ts +10 -0
- package/dist/xlsx/dialogs/format-cells/fill-tab.d.ts +11 -0
- package/dist/xlsx/dialogs/format-cells/font-tab.d.ts +2 -0
- package/dist/xlsx/dialogs/format-cells/index.d.ts +6 -0
- package/dist/xlsx/dialogs/format-cells/number-tab.d.ts +7 -0
- package/dist/xlsx/dialogs/format-cells/protection-tab.d.ts +2 -0
- package/dist/xlsx/dialogs/format-cells/tab-color.d.ts +6 -0
- package/dist/xlsx/dialogs/frame.d.ts +27 -0
- package/dist/xlsx/dialogs/go-to.d.ts +12 -0
- package/dist/xlsx/dialogs/help-dialogs.d.ts +5 -0
- package/dist/xlsx/dialogs/host.d.ts +6 -0
- package/dist/xlsx/dialogs/hyperlink.d.ts +16 -0
- package/dist/xlsx/dialogs/index.d.ts +2 -0
- package/dist/xlsx/dialogs/insert-chart.d.ts +7 -0
- package/dist/xlsx/dialogs/insert-function.d.ts +10 -0
- package/dist/xlsx/dialogs/move-copy-sheet.d.ts +5 -0
- package/dist/xlsx/dialogs/name-manager.d.ts +9 -0
- package/dist/xlsx/dialogs/package-password.d.ts +3 -0
- package/dist/xlsx/dialogs/page-setup-tabs.d.ts +23 -0
- package/dist/xlsx/dialogs/page-setup.d.ts +6 -0
- package/dist/xlsx/dialogs/paste-special.d.ts +3 -0
- package/dist/xlsx/dialogs/prompts.d.ts +42 -0
- package/dist/xlsx/dialogs/protect-sheet.d.ts +8 -0
- package/dist/xlsx/dialogs/register-navigation.d.ts +2 -0
- package/dist/xlsx/dialogs/register-rules.d.ts +2 -0
- package/dist/xlsx/dialogs/register-tools.d.ts +2 -0
- package/dist/xlsx/dialogs/remove-duplicates.d.ts +2 -0
- package/dist/xlsx/dialogs/simple.d.ts +2 -0
- package/dist/xlsx/dialogs/sort-dialog.d.ts +6 -0
- package/dist/xlsx/dialogs/statistics.d.ts +12 -0
- package/dist/xlsx/dialogs/styles.d.ts +1 -0
- package/dist/xlsx/dialogs/symbol.d.ts +6 -0
- package/dist/xlsx/dialogs/text-to-columns.d.ts +9 -0
- package/dist/xlsx/dialogs/zoom.d.ts +2 -0
- package/dist/xlsx/editor-attributes.d.ts +26 -0
- package/dist/xlsx/editor-core.d.ts +91 -0
- package/dist/xlsx/editor-files.d.ts +28 -0
- package/dist/xlsx/editor-shell.d.ts +29 -0
- package/dist/xlsx/element-api.d.ts +34 -0
- package/dist/xlsx/events.d.ts +64 -0
- package/dist/xlsx/file-commands.d.ts +24 -0
- package/dist/xlsx/formula-bar/formula-input.d.ts +11 -0
- package/dist/xlsx/formula-bar/index.d.ts +3 -0
- package/dist/xlsx/formula-bar/name-box.d.ts +10 -0
- package/dist/xlsx/formula-bar/styles.d.ts +1 -0
- package/dist/xlsx/grid/alert.d.ts +4 -0
- package/dist/xlsx/grid/cell-editor.d.ts +29 -0
- package/dist/xlsx/grid/cell-layer.d.ts +14 -0
- package/dist/xlsx/grid/dom.d.ts +19 -0
- package/dist/xlsx/grid/drawing-keys.d.ts +7 -0
- package/dist/xlsx/grid/drawings.d.ts +12 -0
- package/dist/xlsx/grid/formula-field.d.ts +11 -0
- package/dist/xlsx/grid/function-assist.d.ts +16 -0
- package/dist/xlsx/grid/grid-a11y.d.ts +12 -0
- package/dist/xlsx/grid/grid-commands.d.ts +19 -0
- package/dist/xlsx/grid/grid-keys.d.ts +19 -0
- package/dist/xlsx/grid/grid-menus.d.ts +8 -0
- package/dist/xlsx/grid/grid-pointer.d.ts +16 -0
- package/dist/xlsx/grid/grid-selection.d.ts +22 -0
- package/dist/xlsx/grid/grid-view.d.ts +75 -0
- package/dist/xlsx/grid/gridlines.d.ts +7 -0
- package/dist/xlsx/grid/header-resize.d.ts +8 -0
- package/dist/xlsx/grid/headers.d.ts +9 -0
- package/dist/xlsx/grid/index.d.ts +8 -0
- package/dist/xlsx/grid/indicators.d.ts +5 -0
- package/dist/xlsx/grid/measure.d.ts +9 -0
- package/dist/xlsx/grid/pane-chrome.d.ts +22 -0
- package/dist/xlsx/grid/point-mode.d.ts +27 -0
- package/dist/xlsx/grid/selection-layer.d.ts +32 -0
- package/dist/xlsx/grid/smartart.d.ts +10 -0
- package/dist/xlsx/grid/styles.d.ts +1 -0
- package/dist/xlsx/grid/test-context.d.ts +14 -0
- package/dist/xlsx/grid/validation-list.d.ts +13 -0
- package/dist/xlsx/index.d.ts +10 -0
- package/dist/xlsx/keyboard.d.ts +41 -0
- package/dist/xlsx/modules.d.ts +4 -0
- package/dist/xlsx/print.d.ts +22 -0
- package/dist/xlsx/ribbon/caption.d.ts +4 -0
- package/dist/xlsx/ribbon/color-grid.d.ts +18 -0
- package/dist/xlsx/ribbon/controls-input.d.ts +22 -0
- package/dist/xlsx/ribbon/controls.d.ts +28 -0
- package/dist/xlsx/ribbon/icons.d.ts +8 -0
- package/dist/xlsx/ribbon/keytips.d.ts +12 -0
- package/dist/xlsx/ribbon/overflow.d.ts +3 -0
- package/dist/xlsx/ribbon/popover.d.ts +30 -0
- package/dist/xlsx/ribbon/ribbon.d.ts +24 -0
- package/dist/xlsx/ribbon/tabs/contextual.d.ts +3 -0
- package/dist/xlsx/ribbon/tabs/formulas-data.d.ts +3 -0
- package/dist/xlsx/ribbon/tabs/home-groups.d.ts +6 -0
- package/dist/xlsx/ribbon/tabs/home.d.ts +3 -0
- package/dist/xlsx/ribbon/tabs/index.d.ts +2 -0
- package/dist/xlsx/ribbon/tabs/insert-layout.d.ts +3 -0
- package/dist/xlsx/ribbon/visibility.d.ts +1 -0
- package/dist/xlsx/sheet-tabs/drag.d.ts +12 -0
- package/dist/xlsx/sheet-tabs/index.d.ts +4 -0
- package/dist/xlsx/sheet-tabs/rename.d.ts +8 -0
- package/dist/xlsx/sheet-tabs/render.d.ts +15 -0
- package/dist/xlsx/sheet-tabs/styles.d.ts +1 -0
- package/dist/xlsx/shell-commands.d.ts +13 -0
- package/dist/xlsx/shortcut-help.d.ts +15 -0
- package/dist/xlsx/status-bar.d.ts +26 -0
- package/dist/xlsx/test-support/shell.d.ts +19 -0
- package/dist/xlsx/theme/index.d.ts +5 -0
- package/dist/xlsx/theme/styles.d.ts +7 -0
- package/dist/xlsx/title-bar.d.ts +17 -0
- package/dist/xlsx/toast.d.ts +8 -0
- package/dist/xlsx.js +14188 -0
- package/package.json +27 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Command } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
import { type RenderScope } from './controls';
|
|
3
|
+
import type { RibbonControl } from 'ooxml-core/xlsx/ui';
|
|
4
|
+
type SelectControl = Extract<RibbonControl, {
|
|
5
|
+
kind: 'select';
|
|
6
|
+
}>;
|
|
7
|
+
type GalleryControl = Extract<RibbonControl, {
|
|
8
|
+
kind: 'gallery';
|
|
9
|
+
}>;
|
|
10
|
+
/** A native `<select>` (number format, ...) or, with `editable`, a combo box (font, size). */
|
|
11
|
+
export declare function renderSelect(scope: RenderScope, control: SelectControl, command: Command): HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* Parses preview SVG markup into a node without scripts, foreign content, event handlers or
|
|
14
|
+
* script URLs (style names in a preview can come from the workbook).
|
|
15
|
+
*/
|
|
16
|
+
export declare function safeSvg(doc: Document, markup: string): Element | null;
|
|
17
|
+
/**
|
|
18
|
+
* A gallery command (Format as Table, Cell Styles): a large button with a caret, as Excel shows it
|
|
19
|
+
* on a ribbon of ordinary width, opening every item as preview tiles in a grid.
|
|
20
|
+
*/
|
|
21
|
+
export declare function renderGallery(scope: RenderScope, control: GalleryControl, command: Command): HTMLElement;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Command } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
import { type RibbonControl, type RibbonMenuItem } from 'ooxml-core/xlsx/ui';
|
|
4
|
+
import { type MenuEntry } from './popover';
|
|
5
|
+
export interface RenderScope {
|
|
6
|
+
ctx: EditorContext;
|
|
7
|
+
doc: Document;
|
|
8
|
+
/** Refresh hooks, run on every `requestRender`. */
|
|
9
|
+
updates: Array<() => void>;
|
|
10
|
+
/** Command ids the host hid (`hiddenActions`). */
|
|
11
|
+
isHidden(id: string): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const el: <K extends keyof HTMLElementTagNameMap>(doc: Document, tag: K, className?: string) => HTMLElementTagNameMap[K];
|
|
14
|
+
/** `Bold (Ctrl+B)` tooltip text for a command. */
|
|
15
|
+
export declare const tooltip: (ctx: EditorContext, command: Command) => string;
|
|
16
|
+
/** Marks a control with its command id (hidden actions, Tell me, KeyTips, Customize Ribbon). */
|
|
17
|
+
export declare function tagCommand(node: HTMLElement, command: Command): void;
|
|
18
|
+
/** A command button: `large` stacks a 28px icon over its caption; small shows a 16px icon. */
|
|
19
|
+
export declare function commandButton(scope: RenderScope, command: Command, options?: {
|
|
20
|
+
size?: 'large' | 'small';
|
|
21
|
+
showLabel?: boolean;
|
|
22
|
+
toggle?: boolean;
|
|
23
|
+
caption?: boolean;
|
|
24
|
+
}): HTMLButtonElement;
|
|
25
|
+
/** Menu entries for spec items; items whose command is not registered are left out. */
|
|
26
|
+
export declare function menuEntries(scope: RenderScope, items: RibbonMenuItem[]): MenuEntry[];
|
|
27
|
+
/** Renders a control, or null when its command is not registered. */
|
|
28
|
+
export declare function renderControl(scope: RenderScope, control: RibbonControl, inStack?: boolean): HTMLElement | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Adds or replaces a 24x24 line icon for ribbon commands. Returns false for an empty name or path. */
|
|
2
|
+
export declare function registerRibbonIcon(name: string, path: string): boolean;
|
|
3
|
+
export declare function hasRibbonIcon(name: string | undefined): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* An `<svg>` for `name` at `size` CSS pixels: a ribbon icon (24-unit grid) or, failing that, an
|
|
6
|
+
* ooxml-ui icon (20-unit grid, registered with `registerIcon`). Unknown names draw nothing.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ribbonIcon(doc: Document, name: string | undefined, size?: number): SVGSVGElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KeyTips (Alt or F10): badges over the tabs, then over the chosen tab's commands; typing the
|
|
3
|
+
* letters runs the control. Excel's own keys where this ribbon has the same command, otherwise
|
|
4
|
+
* two letters from the label, never the prefix of another. Ported from docx-viewer's
|
|
5
|
+
* ribbon-keytips.ts and ribbon-behavior.ts.
|
|
6
|
+
*/
|
|
7
|
+
import { type KeyTipTarget as Target } from '../../controls';
|
|
8
|
+
/** Tips for the visible controls of `panel`. */
|
|
9
|
+
export declare function collectKeyTips(panel: HTMLElement): Target[];
|
|
10
|
+
/** Level one: tab badges; picking a tab opens it and shows its command badges (level two). */
|
|
11
|
+
export declare function showTabKeyTips(root: HTMLElement, select: (id: string) => void): void;
|
|
12
|
+
export declare function hideKeyTips(): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Closes whichever ribbon popover is open. */
|
|
2
|
+
export declare function closeRibbonPopover(): void;
|
|
3
|
+
export declare function isPopoverOpen(): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Shows `pop` under `anchor` (appended to the anchor's shadow root). Returns false, closing it,
|
|
6
|
+
* when the same anchor was already open, so a caret works as a toggle.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mountPopover(anchor: HTMLElement, pop: HTMLElement, expanded?: HTMLElement, onClose?: () => void): boolean;
|
|
9
|
+
/** Up/Down (and Home/End) move focus through `items`, wrapping. */
|
|
10
|
+
export declare function arrowNavigation(container: HTMLElement, selector: string): void;
|
|
11
|
+
export type MenuEntry = {
|
|
12
|
+
label: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
shortcut?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
run(): void;
|
|
18
|
+
} | {
|
|
19
|
+
separator: true;
|
|
20
|
+
};
|
|
21
|
+
/** A vertical command menu under `anchor`; the first enabled item takes focus. */
|
|
22
|
+
export declare function openMenu(anchor: HTMLElement, entries: MenuEntry[], label?: string): HTMLElement | null;
|
|
23
|
+
/** A scrolling option list under a combo box with `current` marked; `preview` sets each font. */
|
|
24
|
+
export declare function openList(anchor: HTMLElement, items: readonly {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}[], current: string, choose: (value: string) => void, options?: {
|
|
28
|
+
preview?: boolean;
|
|
29
|
+
expanded?: HTMLElement;
|
|
30
|
+
}): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ribbon renderer: the registered tabs (contextual ones only while their test passes), one panel per
|
|
3
|
+
* tab with labelled groups and dialog launchers, KeyTips, hidden actions and overflow folding. The tab
|
|
4
|
+
* row, File button, collapse and peek belong to the shared `office-ui-ribbon`. Structure and look follow docx-viewer's ribbon.ts.
|
|
5
|
+
*/
|
|
6
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
7
|
+
export interface RibbonHandlers {
|
|
8
|
+
openBackstage(): void;
|
|
9
|
+
isHidden(id: string): boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface Ribbon {
|
|
12
|
+
readonly element: HTMLElement;
|
|
13
|
+
/** Re-reads every control state (enabled, pressed, values) and the contextual tabs. */
|
|
14
|
+
refresh(): void;
|
|
15
|
+
/** Rebuilds all tabs (after a locale change or newly registered tabs). */
|
|
16
|
+
rebuild(): void;
|
|
17
|
+
selectTab(id: string): void;
|
|
18
|
+
activeTab(): string | undefined;
|
|
19
|
+
/** Alt / F10: focus the selected tab and show the tab KeyTips. */
|
|
20
|
+
showKeyTips(): void;
|
|
21
|
+
focus(): void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
24
|
+
export declare function createRibbon(ctx: EditorContext, handlers: RibbonHandlers): Ribbon;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RibbonGroup, RibbonMenuItem } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
export declare const sep: RibbonMenuItem;
|
|
3
|
+
export declare const items: (...ids: string[]) => RibbonMenuItem[];
|
|
4
|
+
export declare const SORT_FILTER_MENU: RibbonMenuItem[];
|
|
5
|
+
export declare const AUTOSUM_MENU: RibbonMenuItem[];
|
|
6
|
+
export declare function homeStyleGroups(): RibbonGroup[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function applyRibbonVisibility(root: HTMLElement, isHidden: (id: string) => boolean): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** The sheet index a sheet dropped before visible slot `slot` ends up at (`moveSheet` target). */
|
|
2
|
+
export declare function dropTarget(visible: number[], from: number, slot: number): number;
|
|
3
|
+
/** The visible slot (0..n) whose gap is nearest to `clientX`. */
|
|
4
|
+
export declare function slotAt(tabs: HTMLElement[], clientX: number): number;
|
|
5
|
+
export interface DragHost {
|
|
6
|
+
strip: HTMLElement;
|
|
7
|
+
enabled(): boolean;
|
|
8
|
+
visible(): number[];
|
|
9
|
+
move(from: number, to: number): void;
|
|
10
|
+
}
|
|
11
|
+
/** Wires pointer dragging on the strip; returns a disposer. */
|
|
12
|
+
export declare function wireTabDrag(host: DragHost): () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
export interface RenameHandle {
|
|
3
|
+
input: HTMLInputElement;
|
|
4
|
+
/** Commits; false when the name was rejected (the input stays open). */
|
|
5
|
+
commit(): boolean;
|
|
6
|
+
cancel(): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function startRename(ctx: EditorContext, tab: HTMLElement, index: number, done: (renamed: boolean) => void): RenameHandle | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Workbook } from 'ooxml-core/xlsx';
|
|
2
|
+
/** Indices of the sheets that get a tab. */
|
|
3
|
+
export declare const visibleSheetIndices: (workbook: Workbook) => number[];
|
|
4
|
+
export interface TabRenderOptions {
|
|
5
|
+
workbook: Workbook;
|
|
6
|
+
active: number;
|
|
7
|
+
/** Sheet index of the tab that takes part in the tab order (roving tabindex). */
|
|
8
|
+
focusable: number;
|
|
9
|
+
}
|
|
10
|
+
/** Replaces the strip's tabs; the insertion marker and rename input are re-added by callers. */
|
|
11
|
+
export declare function renderTabs(doc: Document, strip: HTMLElement, options: TabRenderOptions): void;
|
|
12
|
+
/** The tab element of a sheet. */
|
|
13
|
+
export declare const tabFor: (strip: HTMLElement, sheet: number) => HTMLElement | null;
|
|
14
|
+
/** Sheet index of a tab element (or of the tab containing a node). */
|
|
15
|
+
export declare function sheetOf(node: EventTarget | null): number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TABS_CSS = "\n.xst {\n\tdisplay: flex;\n\talign-items: stretch;\n\theight: 32px;\n\tbox-sizing: border-box;\n\tborder-top: 1px solid var(--xve-border, #e1dfdd);\n\tbackground: var(--xve-secondary, #f3f2f1);\n\tcolor: var(--xve-foreground, #242424);\n\tfont: 13px/1 'Segoe UI', system-ui, -apple-system, sans-serif;\n\tuser-select: none;\n\toverflow: hidden;\n}\n.xst-nav {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 2px;\n\tpadding: 0 4px;\n\tflex: none;\n}\n.xst-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 26px;\n\tpadding: 0;\n\tborder: 0;\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcolor: inherit;\n\tfont: inherit;\n\tfont-size: 14px;\n\tcursor: pointer;\n}\n.xst-btn:hover:not(:disabled) { background: var(--xve-accent, #e1dfdd); }\n.xst-btn:disabled { color: var(--xve-muted-foreground, #a19f9d); cursor: default; }\n.xst-btn:focus-visible, .xst-tab:focus-visible {\n\toutline: 2px solid var(--xve-ring, #616161);\n\toutline-offset: -2px;\n}\n.xst-btn[hidden] { display: none; }\n.xst-strip {\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: stretch;\n\tflex: 1;\n\tmin-width: 0;\n\toverflow: hidden;\n\tscroll-behavior: smooth;\n}\n.xst-tab {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tflex: none;\n\tmax-width: 240px;\n\tpadding: 0 14px;\n\tborder: 0;\n\tborder-right: 1px solid var(--xve-border, #e1dfdd);\n\tbackground: transparent;\n\tcolor: inherit;\n\tfont: inherit;\n\twhite-space: nowrap;\n\tcursor: pointer;\n}\n.xst-tab:hover:not(.xst-active) { background: var(--xve-accent, #e9e8e7); }\n.xst-tab .xst-label { overflow: hidden; text-overflow: ellipsis; }\n.xst-tab::after {\n\tcontent: '';\n\tposition: absolute;\n\tleft: 8px;\n\tright: 8px;\n\tbottom: 2px;\n\theight: 3px;\n\tborder-radius: 2px;\n\tbackground: var(--xst-color, transparent);\n}\n.xst-tab.xst-colored:not(.xst-active) {\n\tbackground: color-mix(in srgb, var(--xst-color) 22%, transparent);\n}\n.xst-tab.xst-active {\n\tbackground: var(--xve-sheet-bg, #ffffff);\n\tcolor: var(--xve-selection-border, #217346);\n\tfont-weight: 600;\n}\n.xst-tab.xst-active::after {\n\tbackground: var(--xve-selection-border, #217346);\n}\n.xst-tab.xst-active.xst-colored::after { background: var(--xst-color); }\n.xst-tab.xst-dragging { opacity: 0.6; }\n.xst-rename {\n\twidth: 120px;\n\theight: 22px;\n\tbox-sizing: border-box;\n\tpadding: 0 4px;\n\tborder: 1px solid var(--xve-selection-border, #217346);\n\tborder-radius: 2px;\n\tfont: inherit;\n\tcolor: var(--xve-foreground, #242424);\n\tbackground: var(--xve-sheet-bg, #ffffff);\n}\n.xst-marker {\n\tposition: absolute;\n\ttop: 4px;\n\tbottom: 4px;\n\twidth: 2px;\n\tmargin-left: -1px;\n\tbackground: var(--xve-selection-border, #217346);\n\tpointer-events: none;\n}\n";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Command } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
import type { FileCommand } from './events';
|
|
4
|
+
export interface ShellCommandHandlers {
|
|
5
|
+
fileCommand(command: FileCommand): void;
|
|
6
|
+
openBackstage(page: 'info' | 'saveAs' | 'options' | 'new'): void;
|
|
7
|
+
showShortcuts(): void;
|
|
8
|
+
formulaBarShown(): boolean;
|
|
9
|
+
setFormulaBarShown(shown: boolean): void;
|
|
10
|
+
}
|
|
11
|
+
/** The next visible sheet from the active one in `step` direction, or undefined at the end. */
|
|
12
|
+
export declare function adjacentSheet(ctx: EditorContext, step: 1 | -1): number | undefined;
|
|
13
|
+
export declare function shellCommands(handlers: ShellCommandHandlers): Command[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The keyboard shortcut help dialog (Ctrl+/ or F1): the global map plus every command's shortcut. */
|
|
2
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
export interface ShortcutRow {
|
|
4
|
+
label: string;
|
|
5
|
+
keys: string;
|
|
6
|
+
}
|
|
7
|
+
/** Rows in display order: the global shortcuts, then commands that declare their own (grid keys). */
|
|
8
|
+
export declare function shortcutRows(ctx: EditorContext, mac?: boolean): ShortcutRow[];
|
|
9
|
+
export interface ShortcutHelp {
|
|
10
|
+
readonly element: HTMLElement;
|
|
11
|
+
readonly isOpen: boolean;
|
|
12
|
+
open(): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare function createShortcutHelp(ctx: EditorContext, onClose: () => void): ShortcutHelp;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
export declare const ZOOM_MIN = 10;
|
|
3
|
+
export declare const ZOOM_MAX = 400;
|
|
4
|
+
export type StatKey = 'average' | 'count' | 'numericCount' | 'min' | 'max' | 'sum';
|
|
5
|
+
declare const MODE_LABELS: {
|
|
6
|
+
readonly ready: 'Ready';
|
|
7
|
+
readonly enter: 'Enter';
|
|
8
|
+
readonly edit: 'Edit';
|
|
9
|
+
readonly point: 'Point';
|
|
10
|
+
};
|
|
11
|
+
type CellMode = keyof typeof MODE_LABELS;
|
|
12
|
+
/** Excel's mode indicator: the grid's own `mode()` when it has one, else Ready / Edit. */
|
|
13
|
+
export declare function cellMode(ctx: EditorContext): CellMode;
|
|
14
|
+
export interface StatusBarHandlers {
|
|
15
|
+
showNotes(): void;
|
|
16
|
+
setZoom(percent: number): void;
|
|
17
|
+
}
|
|
18
|
+
export interface StatusBar {
|
|
19
|
+
readonly element: HTMLElement;
|
|
20
|
+
refresh(): void;
|
|
21
|
+
relocalize(): void;
|
|
22
|
+
}
|
|
23
|
+
/** The statistics text for the current selection, or '' when Excel shows none (one cell). */
|
|
24
|
+
export declare function statisticsText(ctx: EditorContext, shown: ReadonlySet<StatKey>): string;
|
|
25
|
+
export declare function createStatusBar(ctx: EditorContext, handlers: StatusBarHandlers): StatusBar;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Workbook } from 'ooxml-core/xlsx';
|
|
2
|
+
import type { Command } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
import { EditorCore } from '../editor-core';
|
|
4
|
+
export interface ShellFixture {
|
|
5
|
+
core: EditorCore;
|
|
6
|
+
host: HTMLElement;
|
|
7
|
+
events: {
|
|
8
|
+
type: string;
|
|
9
|
+
detail: unknown;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
/** A core with `workbook` loaded (a blank one by default) and every public event recorded. */
|
|
13
|
+
export declare function shellFixture(workbook?: Workbook | null): ShellFixture;
|
|
14
|
+
/** A command that records its runs; `state` drives enabled/checked/value. */
|
|
15
|
+
export declare function spyCommand(id: string, extra?: Partial<Command>): Command & {
|
|
16
|
+
runs: unknown[];
|
|
17
|
+
};
|
|
18
|
+
/** Lets queued microtasks (debounced renders) run. */
|
|
19
|
+
export declare const flush: () => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { lightTheme, darkTheme } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
export { themeToCssVars, THEME_KEYS } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
export { applyThemeColors, normalizeThemeMode } from 'ooxml-core/xlsx/ui';
|
|
4
|
+
export { editorStyleText, themeTokenText } from './styles';
|
|
5
|
+
export type { XlsxTheme, EditorThemeMode } from 'ooxml-core/xlsx/ui';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token presets generated from theme/defaults.ts so the TypeScript presets and the shadow-root CSS
|
|
3
|
+
* cannot drift. `theme="auto"` (the default) follows the OS; explicit values always win.
|
|
4
|
+
*/
|
|
5
|
+
export declare const themeTokenText: string;
|
|
6
|
+
/** The shell stylesheet (tokens, chrome, ribbon, popups, backstage) for the shadow root. */
|
|
7
|
+
export declare const editorStyleText: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
2
|
+
import { type TellMeHandlers } from 'ooxml-core/xlsx/ui';
|
|
3
|
+
export type SaveState = 'saved' | 'dirty' | 'saving' | 'saved-local';
|
|
4
|
+
export interface TitleBarHandlers extends TellMeHandlers {
|
|
5
|
+
save(): void;
|
|
6
|
+
setReadOnly(readOnly: boolean): void;
|
|
7
|
+
}
|
|
8
|
+
export interface TitleBar {
|
|
9
|
+
readonly element: HTMLElement;
|
|
10
|
+
setFileName(name: string): void;
|
|
11
|
+
setSaveState(state: SaveState): void;
|
|
12
|
+
/** Re-reads read-only, undo/redo and comments state. */
|
|
13
|
+
refresh(): void;
|
|
14
|
+
relocalize(): void;
|
|
15
|
+
focusTellMe(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare function createTitleBar(ctx: EditorContext, handlers: TitleBarHandlers): TitleBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Short notices in the editor's corner (save compatibility, command failures). */
|
|
2
|
+
export type ToastKind = 'info' | 'warning' | 'error';
|
|
3
|
+
export interface Toaster {
|
|
4
|
+
readonly element: HTMLElement;
|
|
5
|
+
show(message: string, kind?: ToastKind, timeoutMs?: number): void;
|
|
6
|
+
clear(): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function createToaster(doc: Document, closeLabel: () => string): Toaster;
|