ooxml-ui 0.27.2 → 0.29.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 +16 -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,38 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import { type LayoutResult } from 'ooxml-core/docx/layout';
|
|
3
|
+
import { type PictureUrl } from './print-layout.js';
|
|
4
|
+
/**
|
|
5
|
+
* Print Layout view: a read-only, paginated render kept in sync with the
|
|
6
|
+
* editor model on a debounced relayout, rather than a second live editing
|
|
7
|
+
* surface. Clicking a line asks the caller to move the real ProseMirror
|
|
8
|
+
* cursor to the nearest editor position (see `print-layout.ts`'s
|
|
9
|
+
* `resolveClick`), which is the chosen approach for keeping a single
|
|
10
|
+
* source of truth for editing while still allowing click-to-place-cursor
|
|
11
|
+
* from the paginated view.
|
|
12
|
+
*/
|
|
13
|
+
export interface PrintLayoutController {
|
|
14
|
+
/** Mount this in the DOM alongside the continuous editing surface. */
|
|
15
|
+
element: HTMLElement;
|
|
16
|
+
setActive(active: boolean): void;
|
|
17
|
+
scheduleRelayout(model: DocumentModel): void;
|
|
18
|
+
/** Recomputes which page is most visible; call on the scroll container's `scroll` event. */
|
|
19
|
+
refreshCurrentPage(): void;
|
|
20
|
+
pageStatus(): {
|
|
21
|
+
current: number;
|
|
22
|
+
total: number;
|
|
23
|
+
} | null;
|
|
24
|
+
/** The laid-out page sheets currently in the DOM, in order. */
|
|
25
|
+
pageElements(): HTMLElement[];
|
|
26
|
+
/** Increments on every layout pass so dependants (the page navigator) know when to rebuild. */
|
|
27
|
+
layoutVersion(): number;
|
|
28
|
+
/** Scrolls the given 1-based page to the top of the scroll container. */
|
|
29
|
+
scrollToPage(page: number): void;
|
|
30
|
+
/** Approximations collected by the last layout pass (see `LayoutResult.approximations`). */
|
|
31
|
+
approximations(): string[];
|
|
32
|
+
/** Lays out immediately (no debounce) and opens the browser print dialog for the paginated render. */
|
|
33
|
+
print(model: DocumentModel, note: (message: string) => void): void;
|
|
34
|
+
destroy(): void;
|
|
35
|
+
}
|
|
36
|
+
export declare function createPrintLayoutController(scrollContainer: HTMLElement, onRequestCursor: (blockId: string, offset: number) => void, pictureUrl?: PictureUrl, onLayout?: () => void): PrintLayoutController;
|
|
37
|
+
/** `@page`-sized print path: prints the current Print Layout render as-is. */
|
|
38
|
+
export declare function printLayoutResult(result: LayoutResult | null, note: (message: string) => void): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PageBorders } from 'ooxml-core/docx';
|
|
2
|
+
import { type LayoutResult } from 'ooxml-core/docx/layout';
|
|
3
|
+
import { type PrintLineNumbering } from './print-line-numbers';
|
|
4
|
+
export type { PrintLineNumbering } from './print-line-numbers';
|
|
5
|
+
export interface PrintLayoutHandle {
|
|
6
|
+
/** The scrollable element holding one sheet per page; mount this in the DOM. */
|
|
7
|
+
element: HTMLElement;
|
|
8
|
+
pageCount: number;
|
|
9
|
+
/**
|
|
10
|
+
* Best-effort click-to-cursor mapping: given the line element under a
|
|
11
|
+
* click and its horizontal offset, measures the displayed text fragments
|
|
12
|
+
* and maps to a source boundary. Falls back to proportional mapping for
|
|
13
|
+
* older layout results. Print Layout remains a read-only render synced
|
|
14
|
+
* from the editor, not a second editing surface.
|
|
15
|
+
*/
|
|
16
|
+
resolveClick(target: Element, clientX: number): {
|
|
17
|
+
blockId: string;
|
|
18
|
+
offset: number;
|
|
19
|
+
} | null;
|
|
20
|
+
}
|
|
21
|
+
/** Resolves a package picture part to a displayable URL; undefined draws a placeholder box. */
|
|
22
|
+
export type PictureUrl = (partName: string, contentType: string) => string | undefined;
|
|
23
|
+
export interface PrintLayoutOptions {
|
|
24
|
+
/** Line numbering by section index; sections without an entry print no numbers. */
|
|
25
|
+
lineNumbers?: ReadonlyArray<PrintLineNumbering | undefined>;
|
|
26
|
+
/** Page borders by section index; drawn on each page they apply to. */
|
|
27
|
+
pageBorders?: ReadonlyArray<PageBorders | undefined>;
|
|
28
|
+
/** Paragraphs with effective `w:suppressLineNumbers`; omitted from the counter. */
|
|
29
|
+
suppressedLineNumberParagraphs?: ReadonlySet<string>;
|
|
30
|
+
}
|
|
31
|
+
/** Pure, framework-neutral renderer: turns a `LayoutResult` into a DOM tree of page sheets. */
|
|
32
|
+
export declare function renderPrintLayout(result: LayoutResult, pictureUrl?: PictureUrl, options?: PrintLayoutOptions): PrintLayoutHandle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LayoutResult } from 'ooxml-core/docx/layout';
|
|
2
|
+
/** Line numbering of a section, as the section model gives it. */
|
|
3
|
+
export interface PrintLineNumbering {
|
|
4
|
+
countBy: number;
|
|
5
|
+
start: number;
|
|
6
|
+
restart: 'newPage' | 'newSection' | 'continuous';
|
|
7
|
+
distanceTwips?: number;
|
|
8
|
+
}
|
|
9
|
+
/** Advances the body-line counter across columns/pages, skipping suppressed paragraphs. */
|
|
10
|
+
export declare function lineNumberLabels(page: LayoutResult['pages'][number], settings: PrintLineNumbering, counter: {
|
|
11
|
+
next: number;
|
|
12
|
+
section: number;
|
|
13
|
+
}, suppressed?: ReadonlySet<string>): HTMLElement[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PageBorders } from 'ooxml-core/docx';
|
|
2
|
+
/** The page geometry the border box is measured from (pixels at 96 DPI). */
|
|
3
|
+
export interface BorderPage {
|
|
4
|
+
widthPx: number;
|
|
5
|
+
heightPx: number;
|
|
6
|
+
marginTopPx: number;
|
|
7
|
+
marginRightPx: number;
|
|
8
|
+
marginBottomPx: number;
|
|
9
|
+
marginLeftPx: number;
|
|
10
|
+
pageInSection: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A positioned box drawing a section's page borders on one printed sheet, or null when the borders
|
|
14
|
+
* do not show on this page (`w:display`) or no side has a line. Each side sits `w:space` points from
|
|
15
|
+
* the page edge (default) or from the text margins (`offsetFrom="text"`). Art borders are drawn as
|
|
16
|
+
* plain lines, as the document model reports. It never takes pointer events.
|
|
17
|
+
*/
|
|
18
|
+
export declare function pageBorderBox(page: BorderPage, borders: PageBorders): HTMLElement | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LayoutParagraphBox, LayoutTableBox } from 'ooxml-core/docx/layout';
|
|
2
|
+
/**
|
|
3
|
+
* Draws one table fragment: cells at their grid positions with shading and the document's
|
|
4
|
+
* borders (no gridlines, as Word prints), content inset by cell margins and aligned vertically.
|
|
5
|
+
* Each cell draws its top and left edges; the last cell of a row adds its right edge and the
|
|
6
|
+
* fragment's last row its bottom, so shared edges are drawn once.
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderTable(box: LayoutTableBox, columnWidthPx: number, renderParagraph: (paragraph: LayoutParagraphBox) => HTMLElement): HTMLElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
/** Whether the browser can speak text; Read Aloud is unavailable (not faked) without it. */
|
|
3
|
+
export declare function readAloudAvailable(): boolean;
|
|
4
|
+
/** What Word's Read Aloud reads: the selection, or everything from the caret to the end. */
|
|
5
|
+
export declare function textToRead(view: EditorView): string;
|
|
6
|
+
export declare function isReadingAloud(): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Starts reading `text` with the browser's voice, or stops when it is already reading. Returns
|
|
9
|
+
* whether speech is now playing. `onChange` fires when it ends by itself.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toggleReadAloud(text: string, onChange: (speaking: boolean) => void): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
export interface RevisionRange {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: 'insert' | 'delete';
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
author: string;
|
|
8
|
+
/** The move this range is one side of; both sides are accepted or rejected together. */
|
|
9
|
+
move?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Merges adjacent text/hardBreak nodes sharing the same revision mark id into one range. */
|
|
12
|
+
export declare function collectRevisionRanges(doc: import('prosemirror-model').Node): RevisionRange[];
|
|
13
|
+
export declare function hasAnyChange(view: EditorView | undefined): boolean;
|
|
14
|
+
export declare function hasChangeAtCursor(view: EditorView | undefined): boolean;
|
|
15
|
+
/** Accepting an insertion keeps the text; accepting a deletion removes it. Moves resolve both sides. */
|
|
16
|
+
export declare function acceptRevisionRange(view: EditorView, range: RevisionRange): void;
|
|
17
|
+
/** Rejecting an insertion removes the text; rejecting a deletion restores it. Moves resolve both sides. */
|
|
18
|
+
export declare function rejectRevisionRange(view: EditorView, range: RevisionRange): void;
|
|
19
|
+
export declare function acceptChangeAtCursor(view: EditorView): boolean;
|
|
20
|
+
export declare function rejectChangeAtCursor(view: EditorView): boolean;
|
|
21
|
+
export declare const acceptAllChanges: (view: EditorView) => boolean;
|
|
22
|
+
export declare const rejectAllChanges: (view: EditorView) => boolean;
|
|
23
|
+
export declare const goToNextChange: (view: EditorView) => boolean;
|
|
24
|
+
export declare const goToPreviousChange: (view: EditorView) => boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
3
|
+
import { type CommentsPanelHandle } from './comments-panel';
|
|
4
|
+
import type { RibbonAction } from './ribbon';
|
|
5
|
+
/** Narrow view of the host element `ReviewController` needs; keeps component.ts's own diff small. */
|
|
6
|
+
export interface ReviewHost {
|
|
7
|
+
getModel(): DocumentModel;
|
|
8
|
+
setModel(model: DocumentModel): void;
|
|
9
|
+
getView(): EditorView | undefined;
|
|
10
|
+
getReviewAuthor(): string;
|
|
11
|
+
getCollaborationIds(): ((kind: string) => string) | undefined;
|
|
12
|
+
notifyChange(): void;
|
|
13
|
+
refresh(): void;
|
|
14
|
+
}
|
|
15
|
+
/** Owns comment add/reply/resolve/delete and tracked-change accept/reject/navigate/toggle commands. */
|
|
16
|
+
export declare class ReviewController {
|
|
17
|
+
private host;
|
|
18
|
+
readonly commentsPanel: CommentsPanelHandle;
|
|
19
|
+
constructor(host: ReviewHost);
|
|
20
|
+
get commentsOpen(): boolean;
|
|
21
|
+
setLocale(locale: string): void;
|
|
22
|
+
/** Removes a comment, its replies and its anchored range in one go. */
|
|
23
|
+
private deleteById;
|
|
24
|
+
private updateComments;
|
|
25
|
+
private addComment;
|
|
26
|
+
handleReview(key: Extract<RibbonAction, {
|
|
27
|
+
type: 'review';
|
|
28
|
+
}>['key']): void;
|
|
29
|
+
handleComments(key: 'toggle' | 'add' | 'delete' | 'previous' | 'next'): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plugin } from 'prosemirror-state';
|
|
2
|
+
/**
|
|
3
|
+
* All Markup shows insertions/deletions as authored (default CSS from schema.ts's marks).
|
|
4
|
+
* No Markup (final) hides deleted text and shows insertions unmarked, matching the resulting document.
|
|
5
|
+
* Original hides inserted text and shows deletions unmarked, matching the document before the changes.
|
|
6
|
+
* Simple Markup is approximated as No Markup with a change indicator; per-line change bars are not
|
|
7
|
+
* implemented, so it is visually identical to No Markup today (see docs/parity-roadmap.md).
|
|
8
|
+
*/
|
|
9
|
+
export type ReviewDisplayMode = 'all' | 'simple' | 'final' | 'original';
|
|
10
|
+
/** Hides insertion or deletion runs via decorations rather than mutating the document. */
|
|
11
|
+
export declare function reviewDisplayPlugin(getMode: () => ReviewDisplayMode): Plugin;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { TableCommand } from './table-commands';
|
|
2
|
+
import type { MultilingualAction } from './multilingual-ribbon';
|
|
3
|
+
import type { ReviewDisplayMode } from './review-display';
|
|
4
|
+
/** Every command the ribbon can raise, dispatched as a `ribbon-action` event. */
|
|
5
|
+
export type RibbonAction = {
|
|
6
|
+
type: 'format';
|
|
7
|
+
key: 'bold' | 'italic' | 'underline' | 'strike' | 'superscript' | 'subscript';
|
|
8
|
+
} | {
|
|
9
|
+
type: 'history';
|
|
10
|
+
key: 'undo' | 'redo';
|
|
11
|
+
} | {
|
|
12
|
+
type: 'align';
|
|
13
|
+
value: 'left' | 'center' | 'right' | 'justify';
|
|
14
|
+
} | {
|
|
15
|
+
type: 'font';
|
|
16
|
+
key: 'family' | 'size' | 'color' | 'highlight';
|
|
17
|
+
value: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'clear';
|
|
20
|
+
} | {
|
|
21
|
+
type: 'table';
|
|
22
|
+
rows?: number;
|
|
23
|
+
columns?: number;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'tablePicker';
|
|
26
|
+
} | {
|
|
27
|
+
type: 'clipboard';
|
|
28
|
+
key: 'cut' | 'copy' | 'paste';
|
|
29
|
+
} | {
|
|
30
|
+
type: 'fontStep';
|
|
31
|
+
direction: 'grow' | 'shrink';
|
|
32
|
+
} | {
|
|
33
|
+
type: 'insertBreak';
|
|
34
|
+
kind: 'page' | 'column';
|
|
35
|
+
} | {
|
|
36
|
+
type: 'tableEdit';
|
|
37
|
+
key: TableCommand;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'page';
|
|
40
|
+
key: 'margin' | 'orientation' | 'columns' | 'numberFormat' | 'numberStart' | 'titlePage' | 'verticalAlign' | 'lineNumbers' | 'size';
|
|
41
|
+
value: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'sectionBreak';
|
|
44
|
+
kind: 'nextPage' | 'continuous' | 'evenPage' | 'oddPage';
|
|
45
|
+
} | {
|
|
46
|
+
type: 'evenOddHeaders';
|
|
47
|
+
} | {
|
|
48
|
+
type: 'pageColor';
|
|
49
|
+
value: string;
|
|
50
|
+
} | {
|
|
51
|
+
type: 'hyphenation';
|
|
52
|
+
value: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'suppressLineNumbers';
|
|
55
|
+
} | {
|
|
56
|
+
type: 'paragraph';
|
|
57
|
+
key: 'indent' | 'spacingBefore' | 'spacingAfter' | 'lineSpacing';
|
|
58
|
+
value: string;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'zoom';
|
|
61
|
+
value: number;
|
|
62
|
+
} | {
|
|
63
|
+
type: 'list';
|
|
64
|
+
key: 'bullet' | 'number' | 'multilevel' | 'outline' | 'headings' | 'article' | 'roman' | 'increaseLevel' | 'decreaseLevel' | 'remove';
|
|
65
|
+
} | {
|
|
66
|
+
type: 'view';
|
|
67
|
+
value: 'draft' | 'print';
|
|
68
|
+
} | {
|
|
69
|
+
type: 'print';
|
|
70
|
+
} | MultilingualAction | {
|
|
71
|
+
type: 'search';
|
|
72
|
+
focus?: 'find' | 'replace';
|
|
73
|
+
} | {
|
|
74
|
+
type: 'changeCase';
|
|
75
|
+
value: 'sentence' | 'lower' | 'upper' | 'title' | 'toggle';
|
|
76
|
+
} | {
|
|
77
|
+
type: 'formatPainter';
|
|
78
|
+
} | {
|
|
79
|
+
type: 'ruler';
|
|
80
|
+
} | {
|
|
81
|
+
type: 'coverPage';
|
|
82
|
+
} | {
|
|
83
|
+
type: 'sort';
|
|
84
|
+
order: 'ascending' | 'descending';
|
|
85
|
+
} | {
|
|
86
|
+
type: 'goTo';
|
|
87
|
+
} | {
|
|
88
|
+
type: 'selectObjects';
|
|
89
|
+
} | {
|
|
90
|
+
type: 'addText';
|
|
91
|
+
level: 0 | 1 | 2 | 3;
|
|
92
|
+
} | {
|
|
93
|
+
type: 'blankPage';
|
|
94
|
+
} | {
|
|
95
|
+
type: 'readAloud';
|
|
96
|
+
} | {
|
|
97
|
+
type: 'gridlines';
|
|
98
|
+
} | {
|
|
99
|
+
type: 'navigation';
|
|
100
|
+
} | {
|
|
101
|
+
type: 'shading';
|
|
102
|
+
value: string;
|
|
103
|
+
} | {
|
|
104
|
+
type: 'borders';
|
|
105
|
+
preset: 'none' | 'bottom' | 'top' | 'left' | 'right' | 'all' | 'outside' | 'insideH' | 'insideV' | 'horizontal';
|
|
106
|
+
} | {
|
|
107
|
+
type: 'pageNumber';
|
|
108
|
+
position: 'top' | 'bottom';
|
|
109
|
+
align: 'left' | 'center' | 'right';
|
|
110
|
+
style?: 'plain' | 'pageOfTotal';
|
|
111
|
+
} | {
|
|
112
|
+
type: 'headerFooter';
|
|
113
|
+
kind: 'header' | 'footer';
|
|
114
|
+
slot?: 'default' | 'first' | 'even';
|
|
115
|
+
} | {
|
|
116
|
+
type: 'headerFooterLink';
|
|
117
|
+
} | {
|
|
118
|
+
type: 'headerFooterClose';
|
|
119
|
+
} | {
|
|
120
|
+
type: 'headerFooterNavigate';
|
|
121
|
+
target: 'header' | 'footer' | 'previous' | 'next';
|
|
122
|
+
} | {
|
|
123
|
+
type: 'headerFooterPosition';
|
|
124
|
+
kind: 'header' | 'footer';
|
|
125
|
+
inches: number;
|
|
126
|
+
} | {
|
|
127
|
+
type: 'formatDialog';
|
|
128
|
+
kind: import('./format-dialogs').FormatDialogKind;
|
|
129
|
+
} | {
|
|
130
|
+
type: 'indent';
|
|
131
|
+
side: 'left' | 'right';
|
|
132
|
+
inches: number;
|
|
133
|
+
} | {
|
|
134
|
+
type: 'zoomFit';
|
|
135
|
+
mode: 'actual' | 'width' | 'page' | 'pages';
|
|
136
|
+
} | {
|
|
137
|
+
type: 'wordCount';
|
|
138
|
+
} | {
|
|
139
|
+
type: 'spelling';
|
|
140
|
+
} | {
|
|
141
|
+
type: 'insertSymbol';
|
|
142
|
+
value: string;
|
|
143
|
+
} | {
|
|
144
|
+
type: 'dropCap';
|
|
145
|
+
value: 'none' | 'drop' | 'margin';
|
|
146
|
+
} | {
|
|
147
|
+
type: 'insertDateTime';
|
|
148
|
+
value: 'long' | 'short' | 'time' | 'datetime';
|
|
149
|
+
} | {
|
|
150
|
+
type: 'showMarks';
|
|
151
|
+
} | {
|
|
152
|
+
type: 'selectAll';
|
|
153
|
+
} | {
|
|
154
|
+
type: 'review';
|
|
155
|
+
key: 'trackChanges' | 'acceptOne' | 'rejectOne' | 'acceptAll' | 'rejectAll' | 'previous' | 'next';
|
|
156
|
+
} | {
|
|
157
|
+
type: 'reviewDisplay';
|
|
158
|
+
value: ReviewDisplayMode;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'comments';
|
|
161
|
+
key: 'toggle' | 'add' | 'delete' | 'previous' | 'next';
|
|
162
|
+
} | {
|
|
163
|
+
type: 'insertPicture';
|
|
164
|
+
} | {
|
|
165
|
+
type: 'formatPicture';
|
|
166
|
+
} | {
|
|
167
|
+
type: 'link';
|
|
168
|
+
} | {
|
|
169
|
+
type: 'characterStyle';
|
|
170
|
+
value: string;
|
|
171
|
+
} | {
|
|
172
|
+
type: 'showHidden';
|
|
173
|
+
} | {
|
|
174
|
+
type: 'thumbnails';
|
|
175
|
+
} | {
|
|
176
|
+
type: 'insertNote';
|
|
177
|
+
kind: 'footnote' | 'endnote';
|
|
178
|
+
} | {
|
|
179
|
+
type: 'toc';
|
|
180
|
+
key: 'insert' | 'update' | 'remove' | 'fields' | 'figures' | 'updateFigures';
|
|
181
|
+
levels?: number;
|
|
182
|
+
label?: string;
|
|
183
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ribbon KeyTips. The shared ribbon owns collapse and peek (`collapsible`); here, when the ribbon
|
|
3
|
+
* is focused with Alt or F10 (the host fires `dve-keytips`), tab badges appear and the matching
|
|
4
|
+
* letter opens that tab (`F` opens File); the tab's commands then show their own tips (see
|
|
5
|
+
* ribbon-keytips.ts).
|
|
6
|
+
*/
|
|
7
|
+
export declare function attachRibbonBehavior(root: HTMLElement): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The five variants under a theme colour, as Word's grid shows them (lighter, then darker). */
|
|
2
|
+
export declare function themeShades(hex: string): string[];
|
|
3
|
+
export interface ColorGridOptions {
|
|
4
|
+
/** Label of the first row's "clear" command, or omitted when the property cannot be cleared. */
|
|
5
|
+
noneLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Word's colour picker: a no-colour row, a Theme Colors grid (ten columns, each a colour over five
|
|
9
|
+
* variants), Standard Colors and More Colors (the browser's colour dialog).
|
|
10
|
+
*/
|
|
11
|
+
export declare function openColorGridPopover(anchor: HTMLElement, choose: (value: string) => void, options?: ColorGridOptions): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RibbonAction } from './ribbon-action';
|
|
2
|
+
export declare const FONT_FAMILIES: string[];
|
|
3
|
+
/** Word's font size ladder, offered in the list; any size from 1 to 1638 pt can be typed. */
|
|
4
|
+
export declare const FONT_SIZES: number[];
|
|
5
|
+
/** The size a typed value means, or null when it is not a valid point size. */
|
|
6
|
+
export declare function parseFontSize(text: string): number | null;
|
|
7
|
+
/** Family names are kept to what Word stores in `w:rFonts`: a single plain name. */
|
|
8
|
+
export declare function parseFontFamily(text: string): string | null;
|
|
9
|
+
export interface ComboInput extends HTMLInputElement {
|
|
10
|
+
/** Entries offered by the drop-down, in order; the current value is added when it is missing. */
|
|
11
|
+
comboItems: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Word's editable combo box: type a value and press Enter (or leave the box) to apply it, or pick
|
|
15
|
+
* from the list. The input carries the control's name and `value`; the caret button opens the list.
|
|
16
|
+
* `preview` draws each list entry in its own face (font names).
|
|
17
|
+
*/
|
|
18
|
+
export declare function comboBox(label: string, items: readonly string[], parse: (text: string) => string | null, action: (value: string) => RibbonAction, options?: {
|
|
19
|
+
preview?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}): HTMLDivElement;
|
|
22
|
+
/** Shows `value` in a combo (or blank when the selection mixes values) and lists it if it is new. */
|
|
23
|
+
export declare function setComboValue(input: ComboInput, value: string | null): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
export declare function applyFont(view: EditorView, key: 'family' | 'size' | 'color', value: string): void;
|
|
4
|
+
export declare function clearFormatting(view: EditorView): void;
|
|
5
|
+
export declare const MAX_TABLE_ROWS = 100;
|
|
6
|
+
export declare const MAX_TABLE_COLUMNS = 20;
|
|
7
|
+
/** Inserts a table of `size` (2 x 2 when unspecified, at most 100 rows and 20 columns). */
|
|
8
|
+
export declare function insertTable(view: EditorView, idGenerator?: (kind: string) => string, size?: {
|
|
9
|
+
rows?: number;
|
|
10
|
+
columns?: number;
|
|
11
|
+
}): void;
|
|
12
|
+
export declare function updateParagraphs(view: EditorView, key: 'indent' | 'spacingBefore' | 'spacingAfter' | 'lineSpacing', value: string): void;
|
|
13
|
+
export declare function applyPageStyles(paper: HTMLElement, model: DocumentModel, zoom: number): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorState } from 'prosemirror-state';
|
|
2
|
+
/** Synchronize the inline-format toggle buttons with the current selection. */
|
|
3
|
+
export declare function syncFormatControls(toolbar: HTMLElement, state: EditorState): void;
|
|
4
|
+
export declare function syncParagraphControls(toolbar: HTMLElement, state: EditorState): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RibbonAction } from './ribbon-action';
|
|
2
|
+
import type { RibbonIcon } from './ribbon-icons';
|
|
3
|
+
/** What a gallery entry looks like: a page thumbnail and a line of detail under the name. */
|
|
4
|
+
export interface GalleryLook {
|
|
5
|
+
thumb: SVGSVGElement;
|
|
6
|
+
detail?: string;
|
|
7
|
+
}
|
|
8
|
+
export type GalleryKind = 'margins' | 'size' | 'orientation' | 'columns' | 'verticalAlign' | 'borders' | 'pageNumber' | 'lineSpacing';
|
|
9
|
+
/** A command listed under a gallery's entries, such as Line Spacing Options. */
|
|
10
|
+
export interface GalleryCommand {
|
|
11
|
+
label: string;
|
|
12
|
+
action: RibbonAction;
|
|
13
|
+
}
|
|
14
|
+
/** The thumbnail and detail for `value` of the gallery `kind`; unknown values get a plain page. */
|
|
15
|
+
export declare function galleryLook(kind: GalleryKind, value: string, say?: (text: string) => string): GalleryLook;
|
|
16
|
+
/**
|
|
17
|
+
* A dropdown command like `menuSelect`, but choosing opens a gallery of page thumbnails (Word's
|
|
18
|
+
* Margins, Size, Orientation and Columns) instead of the browser's plain list. The real `<select>`
|
|
19
|
+
* stays in the DOM so the editor keeps reading and writing `select.value`, and the keyboard still
|
|
20
|
+
* changes it directly.
|
|
21
|
+
*/
|
|
22
|
+
export declare function menuGallery(label: string, icon: RibbonIcon, kind: GalleryKind, values: Array<[string, string]>, action: (value: string) => RibbonAction, options?: {
|
|
23
|
+
compact?: boolean;
|
|
24
|
+
momentary?: boolean;
|
|
25
|
+
commands?: GalleryCommand[];
|
|
26
|
+
}): HTMLElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The Home tab in Word's group order: Clipboard, Font, Paragraph, Styles (added on load), Editing. */
|
|
2
|
+
export declare function buildHomePanel(panels: Map<string, HTMLElement>): void;
|
|
3
|
+
/** Layout > Paragraph: paragraph spacing before and after, as in Word's Layout tab. */
|
|
4
|
+
export declare function buildParagraphSpacing(): HTMLElement[];
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/** Line icons for ribbon buttons on a 24x24 grid, drawn with `currentColor` so themes apply. */
|
|
2
|
+
declare const paths: {
|
|
3
|
+
readonly close: 'M6 6l12 12 M18 6L6 18';
|
|
4
|
+
readonly paste: 'M8 4h8v3H8z M6 5.5H5v15h14v-15h-1 M9 12h6 M9 15.5h6';
|
|
5
|
+
readonly cut: 'M6 3l9 12 M18 3l-9 12 M7 15.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z M17 15.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z';
|
|
6
|
+
readonly copy: 'M9 8h11v13H9z M6 16H4V3h11v2';
|
|
7
|
+
readonly bold: 'M7 4h6a3.5 3.5 0 0 1 0 7H7z M7 11h7a3.5 3.5 0 0 1 0 7H7z';
|
|
8
|
+
readonly italic: 'M10 4h8 M6 20h8 M15 4l-6 16';
|
|
9
|
+
readonly underline: 'M7 4v7a5 5 0 0 0 10 0V4 M5 21h14';
|
|
10
|
+
readonly strike: 'M4 12h16 M16.5 7.5C16 5.5 14 4.5 12 4.5c-2.5 0-4.2 1.3-4.2 3.2 0 1.6 1.2 2.4 4.2 3 M8 16.5c.5 2 2.3 3 4.2 3 2.6 0 4.3-1.3 4.3-3.3 0-1.2-.6-2-2-2.5';
|
|
11
|
+
readonly subscript: 'M4 5l8 10 M12 5L4 15 M16 17.5a2 2 0 1 1 3.5 1.3L16 22h4';
|
|
12
|
+
readonly superscript: 'M4 9l8 10 M12 9L4 19 M16 3.5a2 2 0 1 1 3.5 1.3L16 8h4';
|
|
13
|
+
readonly fontGrow: 'M3 19 8.5 5 14 19 M5 14h7 M17 9V3 M14 6h6';
|
|
14
|
+
readonly fontShrink: 'M3 19 8.5 5 14 19 M5 14h7 M14 6h6';
|
|
15
|
+
readonly clear: 'M4 20l4-1 11-11-3-3L5 16z M13 7l3 3 M14 20h7';
|
|
16
|
+
readonly fontColor: 'M6 17 12 4l6 13 M8.3 12h7.4';
|
|
17
|
+
readonly highlight: 'M14 4l6 6-8 8H8l-4-4v-3z M4 21h9';
|
|
18
|
+
readonly bullets: 'M9 6h11 M9 12h11 M9 18h11 M4.5 6h.01 M4.5 12h.01 M4.5 18h.01';
|
|
19
|
+
readonly numbering: 'M11 6h9 M11 12h9 M11 18h9 M4 4.5l1.5-1V9 M4 14.5c.5-1.5 3-1.5 3 .3 0 1-1.5 1.6-3 3.2h3';
|
|
20
|
+
readonly outdent: 'M8 6h12 M12 11h8 M12 16h8 M8 21h12 M7 9l-4 3 4 3z';
|
|
21
|
+
readonly indent: 'M8 6h12 M12 11h8 M12 16h8 M8 21h12 M3 9l4 3-4 3z';
|
|
22
|
+
readonly lineNumbers: 'M3 6h2 M3 12h2 M3 18h2 M8 6h13 M8 12h13 M8 18h13';
|
|
23
|
+
readonly multilevel: 'M4 6h3 M10 6h10 M7 12h3 M13 12h7 M10 18h3 M16 18h4';
|
|
24
|
+
readonly removeList: 'M9 6h11 M9 12h6 M9 18h11 M4 4l5 5 M9 4 4 9';
|
|
25
|
+
readonly alignLeft: 'M4 6h16 M4 10h10 M4 14h16 M4 18h10';
|
|
26
|
+
readonly alignCenter: 'M4 6h16 M7 10h10 M4 14h16 M7 18h10';
|
|
27
|
+
readonly alignRight: 'M4 6h16 M10 10h10 M4 14h16 M10 18h10';
|
|
28
|
+
readonly justify: 'M4 6h16 M4 10h16 M4 14h16 M4 18h16';
|
|
29
|
+
readonly lineSpacing: 'M10 6h10 M10 12h10 M10 18h10 M5 4v16 M3 6l2-2 2 2 M3 18l2 2 2-2';
|
|
30
|
+
readonly spaceBefore: 'M4 20h16 M8 4v10 M5.5 11.5 8 14l2.5-2.5';
|
|
31
|
+
readonly spaceAfter: 'M4 4h16 M8 20V10 M5.5 12.5 8 10l2.5 2.5';
|
|
32
|
+
readonly find: 'M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12z M14.5 14.5 20 20';
|
|
33
|
+
readonly table: 'M4 5h16v14H4z M4 10h16 M4 15h16 M10 5v14 M15 5v14';
|
|
34
|
+
readonly picture: 'M4 5h16v14H4z M4 16l5-5 4 4 3-3 4 4 M15.5 9.5h.01';
|
|
35
|
+
readonly formatPicture: 'M4 6h12v12H4z M4 15l3-3 3 3 M16 4l4 4-7 7h-4v-4z';
|
|
36
|
+
readonly link: 'M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1';
|
|
37
|
+
readonly pageBreak: 'M7 3h10v6H7z M7 15h10v6H7z M3 12h3 M9 12h2 M13 12h2 M18 12h3';
|
|
38
|
+
readonly columnBreak: 'M4 4h6v16H4z M14 4h6v16h-6z M12 4v3 M12 10v4 M12 17v3';
|
|
39
|
+
readonly toc: 'M4 6h16 M8 11h12 M8 16h12 M4 11h.01 M4 16h.01 M4 21h16';
|
|
40
|
+
readonly updateTable: 'M20 12a8 8 0 1 1-2.5-5.8 M20 4v5h-5';
|
|
41
|
+
readonly footnote: 'M5 4h9v12H5z M8 8h3 M8 11h3 M4 20h16 M17 6v.01';
|
|
42
|
+
readonly endnote: 'M5 3h9v11H5z M8 7h3 M8 10h3 M4 17h16 M4 21h16';
|
|
43
|
+
readonly sectionNext: 'M5 3h9l3 3v8H5z M5 18h14 M5 21h14 M12 9v4 M10 11l2 2 2-2';
|
|
44
|
+
readonly sectionContinuous: 'M5 4h14v6H5z M5 14h14v6H5z M3 12h2 M8 12h2 M14 12h2 M19 12h2';
|
|
45
|
+
readonly sectionEven: 'M6 3h9l3 3v15H6z M9 13a1.5 1.5 0 0 1 3 0c0 1.2-3 2.5-3 3.5h3';
|
|
46
|
+
readonly sectionOdd: 'M6 3h9l3 3v15H6z M9 12l1.5-1v6';
|
|
47
|
+
readonly firstPage: 'M6 3h9l3 3v15H6z M9 8h6 M9 12h6 M9 16h3';
|
|
48
|
+
readonly oddEven: 'M3 5h8v14H3z M13 5h8v14h-8z M6 9h2 M16 9h2';
|
|
49
|
+
readonly track: 'M4 20l4-1 11-11-3-3L5 16z M14 20h7';
|
|
50
|
+
readonly previous: 'M6 14l6-6 6 6';
|
|
51
|
+
readonly next: 'M6 10l6 6 6-6';
|
|
52
|
+
readonly accept: 'M5 12.5l4.5 4.5L19 7';
|
|
53
|
+
readonly reject: 'M6 6l12 12 M18 6L6 18';
|
|
54
|
+
readonly acceptAll: 'M2 12.5l4 4L14 8 M10 15.5l1.5 1.5L21 7';
|
|
55
|
+
readonly rejectAll: 'M4 6l7 7 M11 6l-7 7 M14 12l7 7 M21 12l-7 7';
|
|
56
|
+
readonly comment: 'M4 5h16v11H10l-4 4v-4H4z M8 9h8 M8 12h5';
|
|
57
|
+
readonly comments: 'M3 4h13v9H9l-3 3v-3H3z M9 17h6l3 3v-3h3V8h-3';
|
|
58
|
+
readonly hidden: 'M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6z M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z M4 20L20 4';
|
|
59
|
+
readonly thumbnails: 'M4 4h6v7H4z M14 4h6v7h-6z M4 14h6v7H4z M14 14h6v7h-6z';
|
|
60
|
+
readonly print: 'M7 9V3h10v6 M5 9h14v8h-3 M7 14h10v7H7z';
|
|
61
|
+
readonly rowAbove: 'M4 10h16v10H4z M4 15h16 M12 3v4 M10 5h4';
|
|
62
|
+
readonly rowBelow: 'M4 4h16v10H4z M4 9h16 M12 17v4 M10 19h4';
|
|
63
|
+
readonly deleteRow: 'M4 6h16v9H4z M4 10.5h16 M8 19l8 0';
|
|
64
|
+
readonly columnLeft: 'M10 4h10v16H10z M15 4v16 M3 12h4 M5 10v4';
|
|
65
|
+
readonly columnRight: 'M4 4h10v16H4z M9 4v16 M17 12h4 M19 10v4';
|
|
66
|
+
readonly deleteColumn: 'M6 4h9v16H6z M10.5 4v16 M19 8v8';
|
|
67
|
+
readonly deleteTable: 'M4 5h16v14H4z M4 10h16 M10 5v14 M14 13l5 5 M19 13l-5 5';
|
|
68
|
+
readonly margins: 'M5 3h14v18H5z M8 6h8v12H8z';
|
|
69
|
+
readonly orientation: 'M6 3h9l3 3v15H6z M12 9v6 M9 12h6';
|
|
70
|
+
readonly columns: 'M4 4h7v16H4z M13 4h7v16h-7z M6 8h3 M6 12h3 M15 8h3 M15 12h3';
|
|
71
|
+
readonly verticalAlign: 'M5 4h14 M5 20h14 M8 8h8 M8 12h8 M8 16h8';
|
|
72
|
+
readonly pageNumber: 'M6 3h9l3 3v15H6z M9 17h6 M12 11v4 M10.5 12.5l1.5-1.5';
|
|
73
|
+
readonly numbering2: 'M6 3h9l3 3v15H6z M9 9h6 M9 13h6 M9 17h3';
|
|
74
|
+
readonly view: 'M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6z M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z';
|
|
75
|
+
readonly zoom: 'M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12z M14.5 14.5 20 20 M7.5 10h5 M10 7.5v5';
|
|
76
|
+
readonly markup: 'M4 5h16v11H10l-4 4v-4H4z M8 9h8 M8 12h4';
|
|
77
|
+
readonly changeCase: 'M2 18 7 5l5 13 M4 14h6 M14 18l3.5-8 3.5 8 M15.5 15.5h4';
|
|
78
|
+
readonly formatPainter: 'M5 4h11v5H5z M16 6.5h3v5h-8v3 M9.5 14.5h3V21h-3z';
|
|
79
|
+
readonly paragraphMarks: 'M12 4H9a4 4 0 0 0 0 8h3 M12 4v16 M16 4v16';
|
|
80
|
+
readonly select: 'M6 3l12 9-5.5 1.2L15 19l-2.5 1-2.5-5.8L6 18z';
|
|
81
|
+
readonly replace: 'M4 7h12l-3-3 M20 17H8l3 3 M10 12a3 3 0 1 0 0 .01';
|
|
82
|
+
readonly moreStyles: 'M4 5h16 M4 10h16 M4 15h10 M17 16l3 3 3-3';
|
|
83
|
+
readonly charStyle: 'M4 19 9 5l5 14 M6 14h6 M17 9h4 M19 9v10';
|
|
84
|
+
readonly wordCount: 'M4 5h16v14H4z M8 15V9l2 4 2-4v6 M16 9v6';
|
|
85
|
+
readonly spelling: 'M4 15l4-10 4 10 M5.5 12h5 M14 17l2.5 2.5L21 13';
|
|
86
|
+
readonly symbol: 'M5 19h4v-2a6 6 0 1 1 6 0v2h4';
|
|
87
|
+
readonly dropCap: 'M4 4h8v8H4z M6.5 10l1.5-4 1.5 4 M14 5h6 M14 8h6 M14 11h6 M4 15h16 M4 18h16 M4 21h11';
|
|
88
|
+
readonly dateTime: 'M4 5h16v15H4z M4 10h16 M8 3v4 M16 3v4 M12 13v3l2 1';
|
|
89
|
+
readonly zoom100: 'M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12z M14.5 14.5 20 20 M8.5 8.5l1.5-1v5';
|
|
90
|
+
readonly pageWidth: 'M3 6v12 M21 6v12 M7 12h10 M9 10l-2 2 2 2 M15 10l2 2-2 2';
|
|
91
|
+
readonly twoPages: 'M3 5h8v14H3z M13 5h8v14h-8z M5.5 9h3 M15.5 9h3 M5.5 12h3 M15.5 12h3';
|
|
92
|
+
readonly onePage: 'M7 3h10v18H7z M10 8h4 M10 12h4';
|
|
93
|
+
readonly launcher: 'M14 4h6v6 M20 4l-7 7 M10 6H5v13h13v-5';
|
|
94
|
+
readonly pageSize: 'M6 3h9l3 3v15H6z M9 11h6 M9 15h6 M4 9v8 M2.5 10.5 4 9l1.5 1.5';
|
|
95
|
+
readonly header: 'M5 3h14v18H5z M5 8h14 M8 5.5h6';
|
|
96
|
+
readonly footer: 'M5 3h14v18H5z M5 16h14 M8 18.5h6';
|
|
97
|
+
readonly pageNumberIcon: 'M5 3h14v18H5z M9 17h6 M12 11v4 M10.5 12.5l1.5-1';
|
|
98
|
+
readonly shading: 'M5 11l6-6 8 8-6 6z M11 5l-3-2 M19 16c1 1.5 1.5 2.5 1.5 3.3a1.5 1.5 0 0 1-3 0c0-.8.5-1.8 1.5-3.3z';
|
|
99
|
+
readonly borders: 'M4 4h16v16H4z M4 12h16 M12 4v16';
|
|
100
|
+
readonly addText: 'M4 5h16 M4 10h10 M4 15h16 M17 12v6 M14 15h6';
|
|
101
|
+
readonly blankPage: 'M6 3h9l3 3v15H6z';
|
|
102
|
+
readonly readAloud: 'M4 9v6h4l5 4V5L8 9z M16 9a4 4 0 0 1 0 6 M18.5 6.5a8 8 0 0 1 0 11';
|
|
103
|
+
readonly gridlines: 'M4 4h16v16H4z M4 9h16 M4 14h16 M9 4v16 M14 4v16';
|
|
104
|
+
readonly chevronLeft: 'M14 6l-6 6 6 6';
|
|
105
|
+
readonly chevronRight: 'M10 6l6 6-6 6';
|
|
106
|
+
readonly stylesMoreArrow: 'M6 9l6 6 6-6 M6 5h12';
|
|
107
|
+
readonly stylesPane: 'M4 4h16v16H4z M14 4v16 M7 8h4 M7 12h4';
|
|
108
|
+
readonly sort: 'M6 4v16 M3.5 17.5 6 20l2.5-2.5 M13 6h7 M13 12h5 M13 18h3';
|
|
109
|
+
readonly bookmark: 'M7 3h10v18l-5-4-5 4z';
|
|
110
|
+
readonly coverPage: 'M6 3h12v18H6z M9 8h6 M9 11h6 M9 17h6';
|
|
111
|
+
readonly ruler: 'M3 8h18v8H3z M7 8v3 M11 8v4 M15 8v3 M19 8v4';
|
|
112
|
+
readonly caption: 'M4 5h16v11H4z M4 19h10 M8 9l2 3 2-3';
|
|
113
|
+
readonly crossReference: 'M9 15l6-6 M8 8H5a3 3 0 0 0 0 6h3 M16 16h3a3 3 0 0 0 0-6h-3';
|
|
114
|
+
readonly deleteComment: 'M4 5h16v11H10l-4 4v-4H4z M9 8.5l5 5 M14 8.5l-5 5';
|
|
115
|
+
readonly watermark: 'M5 18L19 6 M7 8h4 M13 16h4';
|
|
116
|
+
readonly pageBorders: 'M4 4h16v16H4z M7 7h10v10H7z';
|
|
117
|
+
readonly textBox: 'M4 5h16v14H4z M8 10h8 M8 14h5';
|
|
118
|
+
readonly pageColor: 'M6 3h9l3 3v15H6z M9 11h6v6H9z';
|
|
119
|
+
readonly hyphenation: 'M4 6h16 M4 11h9 M16 11h4 M4 16h16 M13 11h3';
|
|
120
|
+
readonly caret: 'M7 10l5 5 5-5';
|
|
121
|
+
};
|
|
122
|
+
export type RibbonIcon = keyof typeof paths;
|
|
123
|
+
export declare function isRibbonIcon(name: string): name is RibbonIcon;
|
|
124
|
+
/** An `<svg>` for `name`; `size` is its rendered edge in CSS pixels. */
|
|
125
|
+
export declare function ribbonIcon(name: RibbonIcon, size?: number): SVGSVGElement;
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type KeyTipTarget } from '../controls';
|
|
2
|
+
/**
|
|
3
|
+
* KeyTips for the visible controls of `panel`: Word's own where this ribbon has the same command,
|
|
4
|
+
* otherwise two letters from the label (see `assignKeyTips`).
|
|
5
|
+
*/
|
|
6
|
+
export declare function collectKeyTips(panel: HTMLElement): KeyTipTarget[];
|
|
7
|
+
/**
|
|
8
|
+
* Shows badges over the controls of `panel` and runs the one whose letters are typed. Escape (or a
|
|
9
|
+
* key with no match) ends it; `onDone` runs after any end. Returns a function that stops it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function showCommandTips(root: HTMLElement, panel: HTMLElement, onDone: () => void): () => void;
|