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,6 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { HeaderFooterContext } from './header-footer-ribbon';
|
|
4
|
+
/** An empty story can be opened without adding a part until the user edits it. */
|
|
5
|
+
export declare function storyPreview(model: DocumentModel, context: HeaderFooterContext | undefined): DocumentModel;
|
|
6
|
+
export declare function selectSectionStart(view: EditorView, model: DocumentModel, index: number): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
/** Match Page Setup's measure range while preserving every other property exactly. */
|
|
3
|
+
export declare function withHeaderFooterDistance(model: DocumentModel, index: number, kind: 'header' | 'footer', inches: number): DocumentModel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { HeaderFooterKind, HeaderFooterSlot } from './header-footer-commands';
|
|
3
|
+
export interface HeaderFooterContext {
|
|
4
|
+
kind: HeaderFooterKind;
|
|
5
|
+
slot: HeaderFooterSlot;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function buildHeaderFooterPanel(panel: HTMLElement): void;
|
|
9
|
+
export declare function syncHeaderFooterRibbon(toolbar: HTMLElement, context: HeaderFooterContext | undefined, model: DocumentModel, editable: boolean): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Block, DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
export declare function renderBlocks(blocks: Block[], model?: DocumentModel): DocumentFragment;
|
|
3
|
+
/** The selected section drives the header/footer preview on this continuous surface. */
|
|
4
|
+
export declare function buildHeaderElement(model: DocumentModel, locale: string, sectionIndex?: number): HTMLElement | null;
|
|
5
|
+
export declare function buildFooterElement(model: DocumentModel, locale: string, sectionIndex?: number): HTMLElement | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
export type HeadingLevel = 0 | 1 | 2 | 3;
|
|
4
|
+
/** The style id of Word's built-in "heading N" in this document, if it defines one. */
|
|
5
|
+
export declare function headingStyleId(model: DocumentModel, level: 1 | 2 | 3): string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* References > Add Text: makes the selected paragraphs level 1-3 headings (so the table of
|
|
8
|
+
* contents collects them), or with level 0 returns them to the default paragraph style. Returns
|
|
9
|
+
* false when the document has no such heading style or the view is read-only.
|
|
10
|
+
*/
|
|
11
|
+
export declare function setHeadingLevel(view: EditorView, model: DocumentModel, level: HeadingLevel): boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import { type EditorLocale } from './localization';
|
|
4
|
+
export interface HeadingNavigatorHost {
|
|
5
|
+
model(): DocumentModel;
|
|
6
|
+
view(): EditorView | undefined;
|
|
7
|
+
goTo(blockId: string): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
}
|
|
10
|
+
/** Body headings in document order; shared TOC style resolution handles inherited heading styles. */
|
|
11
|
+
export declare class HeadingNavigator {
|
|
12
|
+
private readonly host;
|
|
13
|
+
readonly element: HTMLElement;
|
|
14
|
+
private readonly title;
|
|
15
|
+
private readonly closeButton;
|
|
16
|
+
private readonly tree;
|
|
17
|
+
private readonly empty;
|
|
18
|
+
private readonly collapsed;
|
|
19
|
+
private signature;
|
|
20
|
+
private locale;
|
|
21
|
+
private entries;
|
|
22
|
+
private selected;
|
|
23
|
+
constructor(host: HeadingNavigatorHost);
|
|
24
|
+
get isOpen(): boolean;
|
|
25
|
+
setOpen(open: boolean): void;
|
|
26
|
+
sync(locale: EditorLocale): void;
|
|
27
|
+
private rebuild;
|
|
28
|
+
private items;
|
|
29
|
+
private toggle;
|
|
30
|
+
private updateVisibility;
|
|
31
|
+
private mark;
|
|
32
|
+
private onKey;
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Node as ProseMirrorNode } from 'prosemirror-model';
|
|
2
|
+
import type { EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
+
import type { ThemeCatalog } from 'ooxml-core/docx';
|
|
4
|
+
/**
|
|
5
|
+
* Resolves inline picture bytes (kept off the JSON model by docx-core) into object URLs. URLs are
|
|
6
|
+
* cached per package part and revoked together when the owning editor releases the cache.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ImageMediaCache {
|
|
9
|
+
private readonly lookup;
|
|
10
|
+
private readonly urls;
|
|
11
|
+
constructor(lookup: (partName: string) => Uint8Array | undefined);
|
|
12
|
+
urlFor(partName: string, contentType: string): string | undefined;
|
|
13
|
+
release(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface ImageNodeViewOptions {
|
|
16
|
+
/** Opens Format Picture for the picture at `pos` (double-click). */
|
|
17
|
+
editPicture?(pos: number): void;
|
|
18
|
+
/** The widest a picture may be resized to, in CSS pixels. */
|
|
19
|
+
maxWidth?(): number;
|
|
20
|
+
/** The document theme, for resolving SmartArt colours. */
|
|
21
|
+
theme?(): ThemeCatalog | undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Sets a picture's size in the document, keeping every other attribute. */
|
|
24
|
+
export declare function resizePicture(view: EditorView, pos: number, widthPx: number, heightPx: number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Renders pictures from package media and, for editable real pictures, adds Word's proportional
|
|
27
|
+
* corner resize handle. The new size is applied as one step when the pointer is released.
|
|
28
|
+
*/
|
|
29
|
+
export declare function imageNodeView(cache: ImageMediaCache, options?: ImageNodeViewOptions): (node: ProseMirrorNode, view: EditorView, getPos: () => number | undefined) => NodeView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EditorState } from 'prosemirror-state';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
export type IndentSide = 'left' | 'right';
|
|
4
|
+
/** Sets the left or right indent of the selected paragraphs, in inches (Word's default unit). */
|
|
5
|
+
export declare function setIndent(view: EditorView, side: IndentSide, inches: number): boolean;
|
|
6
|
+
/** The common indent of the selected paragraphs in inches, or null when they differ. */
|
|
7
|
+
export declare function indentInches(state: EditorState, side: IndentSide): number | null;
|
|
8
|
+
/** Shows the selection's indents in the Layout tab's two spinners. */
|
|
9
|
+
export declare function syncIndentInputs(toolbar: HTMLElement, state: EditorState): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { DocxEditorElement, registerDocxEditor } from './component';
|
|
2
|
+
export { DOCX_EDITOR_EVENTS } from './events';
|
|
3
|
+
export type { RibbonAction } from './ribbon';
|
|
4
|
+
export { RIBBON_ACTION_IDS, RIBBON_ACTION_LABELS, normalizeRibbonActions, isRibbonActionId, } from 'ooxml-core/docx/ui';
|
|
5
|
+
export type { LegacyRibbonLabel, RibbonActionId, RibbonActionInput } from 'ooxml-core/docx/ui';
|
|
6
|
+
export type { PageChangeDetail } from './page-sync';
|
|
7
|
+
export type { FileCommand, FileCommandDetail } from './file-commands';
|
|
8
|
+
export type { DocxEditorEventMap, DocxEditorEventName, DocxEditorEventDetail } from './events';
|
|
9
|
+
export { DOCX_EDITOR_ATTRIBUTES } from './editor-attributes';
|
|
10
|
+
export type { DocxEditorAttribute } from './editor-attributes';
|
|
11
|
+
export { CollaborationClient, CollaborationAuthority } from 'ooxml-core/docx/ui';
|
|
12
|
+
export type { CollaborationConfig, StepBatch, ClientReceiveResult, AuthorityResult, } from 'ooxml-core/docx/ui';
|
|
13
|
+
export type { CollaborationAuthorityConfig } from 'ooxml-core/docx/ui';
|
|
14
|
+
export { createCollaborationAuthority } from './collaboration-model';
|
|
15
|
+
export { PresenceClient, PRESENCE_PALETTE } from './presence';
|
|
16
|
+
export type { PresenceMessage, PresenceConfig, PresenceReceiveResult } from './presence';
|
|
17
|
+
export { EDITOR_LOCALES, normalizeEditorLocale } from './localization';
|
|
18
|
+
export type { EditorLocale, EditorLocaleInput } from './localization';
|
|
19
|
+
export { createCollaborationIdGenerator, repairCollaborativeDocumentIds, } from 'ooxml-core/docx/ui';
|
|
20
|
+
export type { ReviewDisplayMode } from './review-display';
|
|
21
|
+
export type { RevisionRange } from './review-commands';
|
|
22
|
+
export { lightTheme, darkTheme, themeToCssVars } from 'ooxml-core/docx/ui';
|
|
23
|
+
export type { EditorTheme, EditorThemeMode } from 'ooxml-core/docx/ui';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
export declare function applyHighlight(view: EditorView, color: string): void;
|
|
3
|
+
export declare function toggleVerticalAlign(view: EditorView, value: 'superscript' | 'subscript'): void;
|
|
4
|
+
export declare function applyVerticalAlign(view: EditorView, value: 'baseline' | 'superscript' | 'subscript'): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Plugin } from 'prosemirror-state';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { DocumentModel, PendingMediaPart } from 'ooxml-core/docx';
|
|
4
|
+
import { type LinkDialog } from './link-dialog';
|
|
5
|
+
import { type PictureDialog } from './picture-dialog';
|
|
6
|
+
import type { RibbonAction } from './ribbon';
|
|
7
|
+
import { type EditorLocale } from './localization';
|
|
8
|
+
export interface InsertControllerHost {
|
|
9
|
+
view(): EditorView | undefined;
|
|
10
|
+
model(): DocumentModel;
|
|
11
|
+
/** The editable content width in CSS pixels, used to fit inserted pictures. */
|
|
12
|
+
contentWidth(): number;
|
|
13
|
+
paper(): HTMLElement | undefined;
|
|
14
|
+
toolbar(): HTMLElement | undefined;
|
|
15
|
+
reportError(error: Error): void;
|
|
16
|
+
}
|
|
17
|
+
/** Picture, link, character style and hidden-text commands shared by every editor instance. */
|
|
18
|
+
export declare class InsertController {
|
|
19
|
+
private readonly host;
|
|
20
|
+
readonly linkDialog: LinkDialog;
|
|
21
|
+
readonly pictureDialog: PictureDialog;
|
|
22
|
+
readonly pictureInput: HTMLInputElement;
|
|
23
|
+
/** Bytes for pictures inserted since the document was loaded; passed to save. */
|
|
24
|
+
readonly pendingMedia: Map<string, PendingMediaPart>;
|
|
25
|
+
private showHidden;
|
|
26
|
+
private showMarks;
|
|
27
|
+
private showGridlines;
|
|
28
|
+
private showRuler;
|
|
29
|
+
constructor(host: InsertControllerHost);
|
|
30
|
+
/** Handles the actions this controller owns; returns false for everything else. */
|
|
31
|
+
handle(action: RibbonAction): boolean;
|
|
32
|
+
/** Ctrl+K opens the link dialog; Ctrl/Cmd+Click follows a link like Word. */
|
|
33
|
+
plugins(): Plugin[];
|
|
34
|
+
handleClick(view: EditorView, pos: number, event: MouseEvent): boolean;
|
|
35
|
+
/** Media bytes for rendering: pictures inserted in this session first, then the loaded package. */
|
|
36
|
+
media(partName: string, loaded?: ReadonlyMap<string, Uint8Array>): Uint8Array | undefined;
|
|
37
|
+
reset(): void;
|
|
38
|
+
setLocale(locale: EditorLocale): void;
|
|
39
|
+
/** Re-applies the hidden-text display state after the paper is rebuilt. */
|
|
40
|
+
syncPaper(): void;
|
|
41
|
+
/** The ruler sits above the page in the canvas while View > Ruler is on. */
|
|
42
|
+
private syncRulerElement;
|
|
43
|
+
private applyRulerChange;
|
|
44
|
+
private setShowHidden;
|
|
45
|
+
private insertSelectedPicture;
|
|
46
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
/** Common symbols for Insert > Symbol, in Word's "recently used" spirit; language-neutral glyphs. */
|
|
3
|
+
export declare const SYMBOLS: readonly ['©', '®', '™', '§', '¶', '†', '‡', '•', '…', '–', '—', '°', '±', '×', '÷', '≠', '≤', '≥', '∞', '€', '£', '¥', '←', '→', '↑', '↓', '✓'];
|
|
4
|
+
export type DateTimeFormat = 'long' | 'short' | 'time' | 'datetime';
|
|
5
|
+
/** The current moment formatted for the display locale, as Insert > Date & Time offers. */
|
|
6
|
+
export declare function formatDateTime(format: DateTimeFormat, locale: string, now?: Date): string;
|
|
7
|
+
/** Inserts plain text at the selection (replacing it), with the caret's stored formatting. */
|
|
8
|
+
export declare function insertPlainText(view: EditorView, text: string): boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central keyboard shortcut registry. Each shortcut has a stable id, one or more key specs, a
|
|
3
|
+
* localized label and a command. The registry only decides *which* shortcut an event triggers;
|
|
4
|
+
* the commands themselves dispatch through the editor's existing command runners
|
|
5
|
+
* (see keyboard-actions.ts). ProseMirror's own formatting keymap is not duplicated here.
|
|
6
|
+
*/
|
|
7
|
+
import type { LocalizationKey } from './localization';
|
|
8
|
+
/**
|
|
9
|
+
* Key spec grammar: modifiers joined with `+` then a key name, e.g. `Mod+F`, `Shift+F6`, `Escape`.
|
|
10
|
+
* `Mod` is Cmd on Apple platforms and Ctrl elsewhere. A bare `Alt` means "tap Alt on its own".
|
|
11
|
+
*/
|
|
12
|
+
export type KeySpec = string;
|
|
13
|
+
export interface KeyEventLike {
|
|
14
|
+
key: string;
|
|
15
|
+
ctrlKey: boolean;
|
|
16
|
+
metaKey: boolean;
|
|
17
|
+
altKey: boolean;
|
|
18
|
+
shiftKey: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ShortcutContext {
|
|
21
|
+
readOnly: boolean;
|
|
22
|
+
mac: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type ShortcutId = 'find' | 'replace' | 'save' | 'print' | 'next-region' | 'previous-region' | 'focus-ribbon' | 'context-menu' | 'escape' | 'help';
|
|
25
|
+
export interface Shortcut {
|
|
26
|
+
id: ShortcutId;
|
|
27
|
+
keys: readonly KeySpec[];
|
|
28
|
+
label: LocalizationKey;
|
|
29
|
+
/** Editing shortcuts are blocked while the editor is read-only. */
|
|
30
|
+
editing: boolean;
|
|
31
|
+
/** Return `false` to report the event as not handled (it is then left untouched). */
|
|
32
|
+
run(): boolean | void;
|
|
33
|
+
}
|
|
34
|
+
/** What each shortcut does; supplied by the editor so this module stays free of editor state. */
|
|
35
|
+
export interface ShortcutActions {
|
|
36
|
+
find(): void;
|
|
37
|
+
replace(): void;
|
|
38
|
+
save(): void;
|
|
39
|
+
print(): void;
|
|
40
|
+
moveRegion(direction: 1 | -1): void;
|
|
41
|
+
focusRibbon(): void;
|
|
42
|
+
contextMenu(): void;
|
|
43
|
+
escape(): boolean;
|
|
44
|
+
help(): void;
|
|
45
|
+
}
|
|
46
|
+
/** Whether the platform uses Cmd (not Ctrl) as the primary modifier. */
|
|
47
|
+
export declare function isMacPlatform(): boolean;
|
|
48
|
+
/** Exact modifier match: Ctrl on a Mac, or Cmd elsewhere, never satisfies `Mod`. */
|
|
49
|
+
export declare function matchesKeys(event: KeyEventLike, spec: KeySpec, mac: boolean): boolean;
|
|
50
|
+
/** Human-readable key text, e.g. `Ctrl+F` or `⌘F`. Key names are not localized (they are legends). */
|
|
51
|
+
export declare function formatKeys(spec: KeySpec, mac: boolean): string;
|
|
52
|
+
export type DispatchResult = 'ran' | 'blocked' | 'ignored';
|
|
53
|
+
export interface ShortcutRegistry {
|
|
54
|
+
readonly shortcuts: readonly Shortcut[];
|
|
55
|
+
/** `blocked` means the shortcut matched but is disabled (read-only); the caller may swallow it. */
|
|
56
|
+
dispatch(event: KeyEventLike, context: ShortcutContext): DispatchResult;
|
|
57
|
+
/** A lone Alt press-and-release (non-Apple platforms), which focuses the ribbon. */
|
|
58
|
+
dispatchAltTap(context: ShortcutContext): DispatchResult;
|
|
59
|
+
/** Key text for the shortcut's first spec, for menus and help. */
|
|
60
|
+
keysFor(id: ShortcutId, mac: boolean): string[];
|
|
61
|
+
}
|
|
62
|
+
export declare function createShortcutRegistry(actions: ShortcutActions): ShortcutRegistry;
|
|
63
|
+
/**
|
|
64
|
+
* Listens for keydown on `host` (events from the shadow tree bubble to it) and runs the registry.
|
|
65
|
+
* Events a deeper handler already consumed (`defaultPrevented`, e.g. ProseMirror's own keymap) are
|
|
66
|
+
* left alone. Returns a disposer.
|
|
67
|
+
*/
|
|
68
|
+
export declare function installKeyboard(host: HTMLElement, registry: ShortcutRegistry, context: () => ShortcutContext): () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SectionProperties } from 'ooxml-core/docx';
|
|
2
|
+
import type { FormatDialog } from './font-dialog';
|
|
3
|
+
export type LineNumberSettings = NonNullable<SectionProperties['lineNumberSettings']>;
|
|
4
|
+
export interface LineNumberHost {
|
|
5
|
+
section(): SectionProperties | undefined;
|
|
6
|
+
canEdit(): boolean;
|
|
7
|
+
apply(settings: LineNumberSettings | undefined): void;
|
|
8
|
+
restoreFocus(): void;
|
|
9
|
+
}
|
|
10
|
+
/** Word's Line Numbers options, applied to the section holding the selection. */
|
|
11
|
+
export declare function createLineNumberDialog(host: LineNumberHost): FormatDialog;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { Mark } from 'prosemirror-model';
|
|
3
|
+
export interface LinkTarget {
|
|
4
|
+
href?: string;
|
|
5
|
+
anchor?: string;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
}
|
|
8
|
+
/** The contiguous range carrying the same link mark around `pos`, if the position is inside a link. */
|
|
9
|
+
export declare function linkRangeAt(view: EditorView, pos: number): {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
mark: Mark;
|
|
13
|
+
} | undefined;
|
|
14
|
+
/** The link under the selection start, used to prefill the link dialog. */
|
|
15
|
+
export declare function linkAtSelection(view: EditorView): LinkTarget | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Applies a link to the selection. With an empty selection inside a link the whole link is
|
|
18
|
+
* retargeted; with an empty selection elsewhere `displayText` (or the address) is inserted as a link.
|
|
19
|
+
*/
|
|
20
|
+
export declare function applyLink(view: EditorView, target: LinkTarget, displayText?: string): boolean;
|
|
21
|
+
/** Removes the link from the selection, or from the whole link under an empty selection. */
|
|
22
|
+
export declare function removeLink(view: EditorView): boolean;
|
|
23
|
+
/** Scrolls to the paragraph whose bookmarks include `name`; returns whether one was found. */
|
|
24
|
+
export declare function goToBookmark(view: EditorView, name: string): boolean;
|
|
25
|
+
/** Bookmark names in document order, for the "Place in this document" list. */
|
|
26
|
+
export declare function bookmarkNames(view: EditorView): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Follows the link at `pos` like Word's Ctrl+Click: web and mail links open in a new tab,
|
|
29
|
+
* internal links scroll to their bookmark. Returns whether a link was followed.
|
|
30
|
+
*/
|
|
31
|
+
export declare function followLinkAt(view: EditorView, pos: number): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { type EditorLocale } from './localization';
|
|
3
|
+
export interface LinkDialogOptions {
|
|
4
|
+
getView: () => EditorView | undefined;
|
|
5
|
+
onError: (error: Error) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface LinkDialog {
|
|
8
|
+
element: HTMLElement;
|
|
9
|
+
open(): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
setLocale(locale: EditorLocale): void;
|
|
12
|
+
readonly isOpen: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Word's Insert/Edit Hyperlink dialog: web address or a bookmark in this document, plus a ScreenTip. */
|
|
15
|
+
export declare function createLinkDialog(options: LinkDialogOptions): LinkDialog;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Command } from 'prosemirror-state';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { DocumentModel, NumberingCatalog, NumberingLevelDefinition } from 'ooxml-core/docx';
|
|
4
|
+
import { type HeadingListKind } from 'ooxml-core/docx';
|
|
5
|
+
import type { Node as ProseMirrorNode } from 'prosemirror-model';
|
|
6
|
+
export type ListKind = 'bullet' | 'decimal';
|
|
7
|
+
/** Classifies a paragraph's effective list kind from its numId/level, or `null` when not in a list. */
|
|
8
|
+
export declare function listKindOf(node: ProseMirrorNode, catalog: NumberingCatalog | undefined): ListKind | 'other' | null;
|
|
9
|
+
/** Whether every paragraph touched by the selection is already the requested list kind. */
|
|
10
|
+
export declare function selectionIsListKind(view: EditorView, kind: ListKind, catalog: NumberingCatalog | undefined): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Toggles the requested list kind on every paragraph in the selection. The caller decides
|
|
13
|
+
* `alreadyKind` (by checking `selectionIsListKind` against the live numbering catalog before
|
|
14
|
+
* calling in): when true, numbering is removed from the selection; otherwise `ensureNumId` is
|
|
15
|
+
* invoked to obtain a fresh, independent `numId` (the caller registers it in the numbering
|
|
16
|
+
* catalog first) and it is applied to every selected paragraph, preserving any existing level.
|
|
17
|
+
*/
|
|
18
|
+
export declare function toggleList(view: EditorView, alreadyKind: boolean, ensureNumId: () => number): void;
|
|
19
|
+
/** Removes list numbering from every paragraph touched by the selection. */
|
|
20
|
+
export declare function removeList(view: EditorView): boolean;
|
|
21
|
+
/** Changes the outline level (`ilvl`, clamped 0..8) of every list paragraph touched by the selection. */
|
|
22
|
+
export declare function changeListLevel(view: EditorView, delta: 1 | -1): boolean;
|
|
23
|
+
/** Word behavior: pressing Enter on an empty list item ends the list instead of adding another item. */
|
|
24
|
+
export declare const exitListOnEmptyEnter: Command;
|
|
25
|
+
/** Tab/Shift+Tab inside a list item change its outline level; otherwise the command is a no-op. */
|
|
26
|
+
export declare const indentListItem: Command;
|
|
27
|
+
export declare const outdentListItem: Command;
|
|
28
|
+
export type ListAction = 'bullet' | 'number' | 'multilevel' | 'outline' | HeadingListKind | 'increaseLevel' | 'decreaseLevel' | 'remove';
|
|
29
|
+
/** A definition and all selected list paragraphs are applied through one history transaction. */
|
|
30
|
+
export declare function applyCustomList(view: EditorView, model: DocumentModel, levels: readonly NumberingLevelDefinition[]): void;
|
|
31
|
+
/**
|
|
32
|
+
* Runs a Home > Paragraph list command. Applying a new list adds a fresh numbering definition to
|
|
33
|
+
* `model.numberingCatalog` so unrelated lists never share counters.
|
|
34
|
+
*/
|
|
35
|
+
export declare function runListAction(view: EditorView, key: ListAction, model: DocumentModel): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type DocumentModel, type Paragraph, type ParagraphListLabel } from 'ooxml-core/docx';
|
|
2
|
+
import { type TextMeasurer } from 'ooxml-core/docx/layout';
|
|
3
|
+
import type { Node } from 'prosemirror-model';
|
|
4
|
+
/** Position the generated marker separately from editable text; no synthetic characters enter the document. */
|
|
5
|
+
export declare function listMarkerDisplay(node: Node, paragraph: Paragraph, label: ParagraphListLabel | undefined, model: DocumentModel, measurer: TextMeasurer): {
|
|
6
|
+
css: string;
|
|
7
|
+
attributes: Record<string, string>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const enColumns: {
|
|
2
|
+
readonly Column: 'Column';
|
|
3
|
+
readonly 'More Columns…': 'More Columns…';
|
|
4
|
+
readonly 'Equal column width': 'Equal column width';
|
|
5
|
+
readonly 'Line between': 'Line between';
|
|
6
|
+
readonly 'Number of columns': 'Number of columns';
|
|
7
|
+
readonly 'Column width (inches)': 'Column width (inches)';
|
|
8
|
+
readonly 'Column spacing (inches)': 'Column spacing (inches)';
|
|
9
|
+
readonly 'Unequal column widths are preserved. Select Equal column width to replace them with equal columns.': 'Unequal column widths are preserved. Select Equal column width to replace them with equal columns.';
|
|
10
|
+
readonly 'Enter whole columns and spacing that leaves at least 0.5 inch for each column.': 'Enter whole columns and spacing that leaves at least 0.5 inch for each column.';
|
|
11
|
+
};
|
|
12
|
+
export declare const frColumns: Record<"Column" | "Column spacing (inches)" | "Column width (inches)" | "Enter whole columns and spacing that leaves at least 0.5 inch for each column." | "Equal column width" | "Line between" | "More Columns…" | "Number of columns" | "Unequal column widths are preserved. Select Equal column width to replace them with equal columns.", string>;
|
|
13
|
+
export declare const deColumns: Record<"Column" | "Column spacing (inches)" | "Column width (inches)" | "Enter whole columns and spacing that leaves at least 0.5 inch for each column." | "Equal column width" | "Line between" | "More Columns…" | "Number of columns" | "Unequal column widths are preserved. Select Equal column width to replace them with equal columns.", string>;
|
|
14
|
+
export declare const esColumns: Record<"Column" | "Column spacing (inches)" | "Column width (inches)" | "Enter whole columns and spacing that leaves at least 0.5 inch for each column." | "Equal column width" | "Line between" | "More Columns…" | "Number of columns" | "Unequal column widths are preserved. Select Equal column width to replace them with equal columns.", string>;
|
|
15
|
+
export declare const zhColumns: Record<"Column" | "Column spacing (inches)" | "Column width (inches)" | "Enter whole columns and spacing that leaves at least 0.5 inch for each column." | "Equal column width" | "Line between" | "More Columns…" | "Number of columns" | "Unequal column widths are preserved. Select Equal column width to replace them with equal columns.", string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* German strings. Provenance: ribbon and common-UI terms (tab names, Bold/Italic, Save, Print,
|
|
3
|
+
* Comments, Cancel, ...) were cross-checked against pptx-viewer's packages/locales/src/de and
|
|
4
|
+
* reused where that wording matches Microsoft Word's German terminology; the rest, and every
|
|
5
|
+
* word-processing term, follows Word's German UI. Not reviewed by a native speaker.
|
|
6
|
+
*/
|
|
7
|
+
import type { AppStrings } from './en';
|
|
8
|
+
export declare const deApp: AppStrings;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* German strings. Provenance: ribbon and common-UI terms (tab names, Bold/Italic, Save, Print,
|
|
3
|
+
* Comments, Cancel, ...) were cross-checked against pptx-viewer's packages/locales/src/de and
|
|
4
|
+
* reused where that wording matches Microsoft Word's German terminology; the rest, and every
|
|
5
|
+
* word-processing term, follows Word's German UI. Not reviewed by a native speaker.
|
|
6
|
+
*/
|
|
7
|
+
import type { RibbonStrings } from './en';
|
|
8
|
+
export declare const deRibbon: RibbonStrings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const enDropCap: {
|
|
2
|
+
readonly 'Drop Cap Options': 'Drop Cap Options';
|
|
3
|
+
readonly 'Drop Cap Options…': 'Drop Cap Options…';
|
|
4
|
+
readonly 'Lines to drop': 'Lines to drop';
|
|
5
|
+
readonly 'Enter a font, 1 to 10 lines and a distance from 0 to 22 inches.': 'Enter a font, 1 to 10 lines and a distance from 0 to 22 inches.';
|
|
6
|
+
};
|
|
7
|
+
export declare const frDropCap: Record<"Drop Cap Options" | "Drop Cap Options…" | "Enter a font, 1 to 10 lines and a distance from 0 to 22 inches." | "Lines to drop", string>;
|
|
8
|
+
export declare const deDropCap: Record<"Drop Cap Options" | "Drop Cap Options…" | "Enter a font, 1 to 10 lines and a distance from 0 to 22 inches." | "Lines to drop", string>;
|
|
9
|
+
export declare const esDropCap: Record<"Drop Cap Options" | "Drop Cap Options…" | "Enter a font, 1 to 10 lines and a distance from 0 to 22 inches." | "Lines to drop", string>;
|
|
10
|
+
export declare const zhDropCap: Record<"Drop Cap Options" | "Drop Cap Options…" | "Enter a font, 1 to 10 lines and a distance from 0 to 22 inches." | "Lines to drop", string>;
|