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
package/dist/controls.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-G4ZGQYBH.js';
|
|
2
2
|
import './chunk-HZ422LTR.js';
|
|
3
3
|
import './chunk-V6W5DKJ6.js';
|
|
4
4
|
import './chunk-ZWBP2WTC.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PageContext } from './backstage-pages';
|
|
2
|
+
export interface BackstageOptions {
|
|
3
|
+
locale: string;
|
|
4
|
+
theme: string;
|
|
5
|
+
author: string;
|
|
6
|
+
spellCheck?: boolean;
|
|
7
|
+
showRuler?: boolean;
|
|
8
|
+
showMarks?: boolean;
|
|
9
|
+
showThumbnails?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type BackstageOptionKey = keyof BackstageOptions;
|
|
12
|
+
/** Editor preferences share the same live controls as the ribbon. */
|
|
13
|
+
export declare function renderOptions({ handlers, t, content }: PageContext): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PROPERTY_FIELDS, type DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { DocumentStats } from 'ooxml-core/docx';
|
|
3
|
+
import type { FileCommand } from './file-commands';
|
|
4
|
+
import type { BackstageOptions, BackstageOptionKey } from './backstage-options';
|
|
5
|
+
export { renderOptions } from './backstage-options';
|
|
6
|
+
/** What the File view needs from the editor; every value is read when a page opens. */
|
|
7
|
+
export interface BackstageHandlers {
|
|
8
|
+
fileCommand(command: FileCommand, fileName?: string): void;
|
|
9
|
+
close(): void;
|
|
10
|
+
summary(): {
|
|
11
|
+
fileName: string;
|
|
12
|
+
model: DocumentModel;
|
|
13
|
+
words: number;
|
|
14
|
+
stats: DocumentStats;
|
|
15
|
+
saveState: string;
|
|
16
|
+
};
|
|
17
|
+
options(): BackstageOptions;
|
|
18
|
+
setOption(key: BackstageOptionKey, value: string): void;
|
|
19
|
+
/** Sets a document property (title, author, tags...); an empty value clears it. */
|
|
20
|
+
setProperty(key: (typeof PROPERTY_FIELDS)[number], value: string): void;
|
|
21
|
+
/** The ribbon element, for listing its commands on Customize Ribbon. */
|
|
22
|
+
ribbon(): HTMLElement | undefined;
|
|
23
|
+
hiddenActions(): readonly string[];
|
|
24
|
+
setHiddenActions(ids: string[]): void;
|
|
25
|
+
}
|
|
26
|
+
export interface PageContext {
|
|
27
|
+
handlers: BackstageHandlers;
|
|
28
|
+
t(text: string): string;
|
|
29
|
+
content: HTMLElement;
|
|
30
|
+
}
|
|
31
|
+
export declare function renderInfo({ handlers, t, content }: PageContext): void;
|
|
32
|
+
export declare function renderNew({ handlers, t, content }: PageContext): void;
|
|
33
|
+
export declare function renderOpen({ handlers, t, content }: PageContext): void;
|
|
34
|
+
export declare function renderSaveAs({ handlers, t, content }: PageContext): void;
|
|
35
|
+
export declare function renderPrint({ handlers, t, content }: PageContext): void;
|
|
36
|
+
export declare function renderExport({ handlers, t, content }: PageContext): void;
|
|
37
|
+
/**
|
|
38
|
+
* Word's Customize Ribbon, reduced to showing and hiding: every tab, group and command with a
|
|
39
|
+
* checkbox. Unchecked commands go into `hiddenActions`; groups and tabs left empty disappear.
|
|
40
|
+
*/
|
|
41
|
+
export declare function renderCustomize({ handlers, t, content }: PageContext): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type BackstageHandlers } from './backstage-pages';
|
|
2
|
+
export type { BackstageHandlers } from './backstage-pages';
|
|
3
|
+
export type BackstagePage = 'home' | 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'export' | 'options' | 'customize';
|
|
4
|
+
export interface Backstage {
|
|
5
|
+
element: HTMLElement;
|
|
6
|
+
open(page?: BackstagePage): void;
|
|
7
|
+
close(): void;
|
|
8
|
+
readonly isOpen: boolean;
|
|
9
|
+
/** Retranslates the navigation after the editor locale changed, and redraws the open page. */
|
|
10
|
+
relocalize(): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Word's File view. Left: Back, Info, New, Open, Save and its siblings (Save As, Print, Export)
|
|
14
|
+
* and Options; right: the selected page. Info shows properties and compatibility notes, Save As
|
|
15
|
+
* takes a file name, Export offers PDF (through printing), DOCX and plain text, and Options sets
|
|
16
|
+
* the editor's language, theme and review author.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createBackstage(handlers: BackstageHandlers): Backstage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocalizationKey } from './localization';
|
|
2
|
+
/**
|
|
3
|
+
* Labels for the editor's ProseMirror key bindings. The help dialog lists exactly the bindings that
|
|
4
|
+
* have a label here, and ribbon tooltips append the same keys ("Bold (Ctrl+B)"), so a shortcut is
|
|
5
|
+
* documented in one place. A label that is also a ribbon control's English name links the two.
|
|
6
|
+
*/
|
|
7
|
+
export declare const EDITOR_BINDING_LABELS: Record<string, LocalizationKey>;
|
|
8
|
+
/** The shortcut for a ribbon control's English label, formatted for the platform, if it has one. */
|
|
9
|
+
export declare function shortcutHint(label: string, mac?: boolean): string | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
export declare const MAX_BOOKMARK_LENGTH = 40;
|
|
3
|
+
export type BookmarkNameProblem = 'empty' | 'start' | 'characters' | 'length';
|
|
4
|
+
/**
|
|
5
|
+
* Word's bookmark naming rule: a letter first, then letters, digits and underscores, at most 40
|
|
6
|
+
* characters, no spaces. Returns the first rule the name breaks, or null when it is valid.
|
|
7
|
+
*/
|
|
8
|
+
export declare function bookmarkNameProblem(name: string): BookmarkNameProblem | null;
|
|
9
|
+
/** Bookmark names in document order. */
|
|
10
|
+
export declare function listBookmarks(view: EditorView): string[];
|
|
11
|
+
/**
|
|
12
|
+
* Word's Bookmark > Add: puts `name` on the paragraph holding the selection. A bookmark of the
|
|
13
|
+
* same name (compared without regard to case) elsewhere moves here, as in Word. Returns
|
|
14
|
+
* `added`, `moved`, or the naming problem.
|
|
15
|
+
*/
|
|
16
|
+
export declare function addBookmark(view: EditorView, name: string): 'added' | 'moved' | BookmarkNameProblem | 'unavailable';
|
|
17
|
+
/** Bookmark > Delete: removes the named bookmark. Returns whether it existed. */
|
|
18
|
+
export declare function deleteBookmark(view: EditorView, name: string): boolean;
|
|
19
|
+
/** Bookmark > Go To: puts the caret at the bookmark's paragraph and scrolls to it. */
|
|
20
|
+
export declare function goToBookmark(view: EditorView, name: string): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { FormatDialog } from './font-dialog';
|
|
3
|
+
/** Word's Bookmark dialog: name a bookmark for the current paragraph, or go to or delete one. */
|
|
4
|
+
export declare function createBookmarkDialog(getView: () => EditorView | undefined): FormatDialog;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { FormatDialog } from './font-dialog';
|
|
3
|
+
/** Word's Borders and Shading dialog for paragraphs: sides, one pen (style, width, colour) and a fill. */
|
|
4
|
+
export declare function createBordersDialog(getView: () => EditorView | undefined): FormatDialog;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TextMeasurer } from 'ooxml-core/docx/layout';
|
|
2
|
+
/**
|
|
3
|
+
* Browser measurer backed by an offscreen `<canvas>` 2D context. Falls back to
|
|
4
|
+
* the fake measurer's formula if no canvas is available (SSR, jsdom without
|
|
5
|
+
* canvas support), so callers never need to branch on environment.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createCanvasMeasurer(): TextMeasurer;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode } from 'prosemirror-model';
|
|
2
|
+
import type { Transaction } from 'prosemirror-state';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
/** Word's built-in caption labels; the SEQ identifier is the English label. */
|
|
5
|
+
export declare const CAPTION_LABELS: readonly ['Figure', 'Table', 'Equation'];
|
|
6
|
+
export type CaptionLabel = (typeof CAPTION_LABELS)[number];
|
|
7
|
+
export declare const seqInstruction: (label: string) => string;
|
|
8
|
+
/** The label a text node's field numbers (`Figure` for `SEQ Figure ...`), or undefined. */
|
|
9
|
+
export declare function seqLabelOf(node: ProseMirrorNode): string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Renumbers every `SEQ label` field in document order from 1, as Word's Update Field does, so a
|
|
12
|
+
* caption inserted in the middle shifts the ones after it. Returns the transaction for chaining.
|
|
13
|
+
*/
|
|
14
|
+
export declare function renumberCaptions(tr: Transaction, label: string): Transaction;
|
|
15
|
+
export interface CaptionOptions {
|
|
16
|
+
/** Label identifier, e.g. `Figure`. */
|
|
17
|
+
label: string;
|
|
18
|
+
/** The label as shown in the document language, e.g. `Abbildung`. */
|
|
19
|
+
labelText: string;
|
|
20
|
+
/** Text after the number (`Figure 1: text`). */
|
|
21
|
+
text: string;
|
|
22
|
+
position: 'above' | 'below';
|
|
23
|
+
/** The document's Caption style id, if it has one. */
|
|
24
|
+
style?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Insert > Caption: a paragraph "Label N" (N is a `SEQ` field) with optional text, placed above
|
|
28
|
+
* or below the block holding the selection, then every caption of that label is renumbered.
|
|
29
|
+
* Without a Caption style the text is italic. Returns false for a read-only view.
|
|
30
|
+
*/
|
|
31
|
+
export declare function insertCaption(view: EditorView, options: CaptionOptions): boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { FormatDialog } from './font-dialog';
|
|
4
|
+
/** Word's Caption dialog: a label, its numbered `SEQ` field and optional text, above or below. */
|
|
5
|
+
export declare function createCaptionDialog(getView: () => EditorView | undefined, getModel: () => DocumentModel): FormatDialog;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { type CaseMode } from 'ooxml-core/docx';
|
|
3
|
+
export type { CaseMode } from 'ooxml-core/docx';
|
|
4
|
+
/** Rewrites the case of the selected text, keeping each run's marks. Returns false when nothing changed. */
|
|
5
|
+
export declare function changeCase(view: EditorView, mode: CaseMode): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
3
|
+
import { type EditorLocale } from './localization';
|
|
4
|
+
/** The character style (`w:rStyle`) at the start of the selection, or '' when none applies. */
|
|
5
|
+
export declare function characterStyleAtSelection(view: EditorView): string;
|
|
6
|
+
/** Applies (or with '' removes) a character style on the selection, or for the next typed text. */
|
|
7
|
+
export declare function applyCharacterStyle(view: EditorView, styleId: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Keeps a "Character style" select beside the paragraph style picker. Changes are raised as a
|
|
10
|
+
* `characterStyle` ribbon action so the editor applies them to its current view.
|
|
11
|
+
*/
|
|
12
|
+
export declare function syncCharacterStylePicker(toolbar: HTMLElement, view: EditorView, model: DocumentModel, locale: EditorLocale): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Small inline SVG icons for the window chrome, drawn with `currentColor` so they follow the theme. */
|
|
2
|
+
declare const paths: {
|
|
3
|
+
readonly save: 'M4 3h9l3 3v11H4z M7 3v4h6V3 M7 17v-5h6v5';
|
|
4
|
+
readonly undo: 'M8 5 4 9l4 4 M4 9h8a4 4 0 0 1 0 8H9';
|
|
5
|
+
readonly redo: 'M12 5l4 4-4 4 M16 9H8a4 4 0 0 0 0 8h3';
|
|
6
|
+
readonly search: 'M9 4a5 5 0 1 0 0 10A5 5 0 0 0 9 4z M13 13l4 4';
|
|
7
|
+
readonly comment: 'M4 4h12v9H9l-4 3v-3H4z';
|
|
8
|
+
readonly back: 'M12 4 6 10l6 6';
|
|
9
|
+
readonly file: 'M6 3h6l4 4v10H6z M12 3v4h4';
|
|
10
|
+
readonly folder: 'M3 6h5l2 2h7v8H3z';
|
|
11
|
+
readonly copy: 'M7 7h9v10H7z M4 4h9v2 M4 4v10h2';
|
|
12
|
+
readonly print: 'M6 8V3h8v5 M4 8h12v6h-2 M6 12h8v5H6z';
|
|
13
|
+
readonly info: 'M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14z M10 9v4 M10 6.5v.5';
|
|
14
|
+
readonly warning: 'M10 3 2 17h16z M10 8v4 M10 14.5v.5';
|
|
15
|
+
readonly pageView: 'M5 3h10v14H5z M8 7h4 M8 10h4';
|
|
16
|
+
readonly webView: 'M3 5h14v10H3z M3 8h14';
|
|
17
|
+
readonly settings: 'M10 7a3 3 0 1 0 0 6 3 3 0 0 0 0-6z M10 2v2 M10 16v2 M2 10h2 M16 10h2 M4.3 4.3l1.4 1.4 M14.3 14.3l1.4 1.4 M15.7 4.3l-1.4 1.4 M5.7 14.3l-1.4 1.4';
|
|
18
|
+
readonly minus: 'M5 10h10';
|
|
19
|
+
readonly plus: 'M5 10h10 M10 5v10';
|
|
20
|
+
};
|
|
21
|
+
export type ChromeIcon = keyof typeof paths;
|
|
22
|
+
export declare function icon(name: ChromeIcon): SVGSVGElement;
|
|
23
|
+
/** An icon button whose accessible name is `label` (localized later by `localizeElement`). */
|
|
24
|
+
export declare function iconButton(name: ChromeIcon, label: string, className?: string): HTMLButtonElement;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import { CollaborationAuthority, type CollaborationAuthorityConfig } from 'ooxml-core/docx/ui';
|
|
3
|
+
/** Build a reference authority using exactly the shared editor's document schema. */
|
|
4
|
+
export declare function createCollaborationAuthority(model: DocumentModel, options: Omit<CollaborationAuthorityConfig, 'doc'>): CollaborationAuthority;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { CollaborationClient, type CollaborationConfig, type StepBatch } from 'ooxml-core/docx/ui';
|
|
3
|
+
import { EditorPresence } from './editor-presence';
|
|
4
|
+
/** One editor's collaboration state: step client, presence and collaborative id generator. */
|
|
5
|
+
export declare class CollaborationSession {
|
|
6
|
+
private readonly element;
|
|
7
|
+
private readonly getView;
|
|
8
|
+
client?: CollaborationClient | undefined;
|
|
9
|
+
presence?: EditorPresence | undefined;
|
|
10
|
+
ids?: ((kind: string) => string) | undefined;
|
|
11
|
+
private sendScheduled;
|
|
12
|
+
constructor(element: HTMLElement, getView: () => EditorView | undefined);
|
|
13
|
+
get active(): boolean;
|
|
14
|
+
start(config: CollaborationConfig): void;
|
|
15
|
+
stop(): void;
|
|
16
|
+
/** Coalesces pending steps into one `collaboration-send` event per microtask. */
|
|
17
|
+
scheduleSend(pending: () => StepBatch | null): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SectionColumns, type SectionProperties } from 'ooxml-core/docx';
|
|
2
|
+
import type { FormatDialog } from './font-dialog';
|
|
3
|
+
export interface ColumnsHost {
|
|
4
|
+
section(): SectionProperties | undefined;
|
|
5
|
+
canEdit(): boolean;
|
|
6
|
+
apply(columns: SectionColumns): void;
|
|
7
|
+
restoreFocus(): void;
|
|
8
|
+
}
|
|
9
|
+
/** Current-section column settings; width edits adjust the adjacent column as Word does. */
|
|
10
|
+
export declare function createColumnsDialog(host: ColumnsHost): FormatDialog;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Comment } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
/** Wraps the current selection with a `comment` mark carrying a new comment id; returns the new entry. */
|
|
4
|
+
export declare function addComment(view: EditorView, author: string, text: string, idGenerator?: (kind: string) => string): Comment | null;
|
|
5
|
+
/** Removes one comment id from every anchor range that carries it. */
|
|
6
|
+
export declare function removeCommentAnchor(view: EditorView, id: string): void;
|
|
7
|
+
export declare function deleteComment(comments: Comment[], id: string): Comment[];
|
|
8
|
+
export declare function resolveComment(comments: Comment[], id: string, resolved: boolean): Comment[];
|
|
9
|
+
export declare function replyToComment(comments: Comment[], parentId: string, author: string, text: string, idGenerator?: (kind: string) => string): Comment[];
|
|
10
|
+
/** Comment ids anchored at the selection, outermost first (replies are not anchored). */
|
|
11
|
+
export declare function commentIdsAtSelection(view: EditorView): string[];
|
|
12
|
+
/** Where each comment's anchored text starts, in document order. */
|
|
13
|
+
export declare function commentAnchors(view: EditorView): Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
from: number;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Review > Previous / Next Comment: moves the caret to the start of the neighbouring commented
|
|
19
|
+
* text, wrapping around. Returns the comment id it landed on, or null when there are none.
|
|
20
|
+
*/
|
|
21
|
+
export declare function goToComment(view: EditorView, direction: 'previous' | 'next'): string | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
export interface CommentsPanelOptions {
|
|
3
|
+
getModel: () => DocumentModel;
|
|
4
|
+
canAdd: () => boolean;
|
|
5
|
+
onAdd: (text: string) => void;
|
|
6
|
+
onReply: (parentId: string, text: string) => void;
|
|
7
|
+
onResolve: (id: string, resolved: boolean) => void;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface CommentsPanelHandle {
|
|
12
|
+
element: HTMLElement;
|
|
13
|
+
open(): void;
|
|
14
|
+
close(): void;
|
|
15
|
+
refresh(): void;
|
|
16
|
+
setLocale(locale: string): void;
|
|
17
|
+
readonly isOpen: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function createCommentsPanel(options: CommentsPanelOptions): CommentsPanelHandle;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { CollaborationConfig, ClientReceiveResult, StepBatch } from 'ooxml-core/docx/ui';
|
|
3
|
+
import { type EditorTheme, type EditorThemeMode } from 'ooxml-core/docx/ui';
|
|
4
|
+
import { EditorCore, type LoadedDocument } from './editor-core';
|
|
5
|
+
import { DocxEditorApi } from './element-api';
|
|
6
|
+
import { type DocxEditorEventMap } from './events';
|
|
7
|
+
/**
|
|
8
|
+
* Typed event overloads. Redeclaring the methods hides the inherited ones, so the standard DOM
|
|
9
|
+
* event map and the string fallback are repeated here.
|
|
10
|
+
*/
|
|
11
|
+
export interface DocxEditorElement {
|
|
12
|
+
addEventListener<K extends keyof DocxEditorEventMap>(type: K, listener: (this: DocxEditorElement, event: DocxEditorEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
13
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: DocxEditorElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
14
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15
|
+
removeEventListener<K extends keyof DocxEditorEventMap>(type: K, listener: (this: DocxEditorElement, event: DocxEditorEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
16
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: DocxEditorElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
17
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class DocxEditorElement extends DocxEditorApi {
|
|
20
|
+
/** Attributes mirrored to the `locale`, `readOnly`, `fileName`, `reviewAuthor` and `theme` properties. */
|
|
21
|
+
static get observedAttributes(): string[];
|
|
22
|
+
protected readonly core: EditorCore;
|
|
23
|
+
private readonly shellApi;
|
|
24
|
+
/** Internal seams that in-repo tests reach for; not public API. */
|
|
25
|
+
private get view();
|
|
26
|
+
private get inserts();
|
|
27
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
28
|
+
get reviewAuthor(): string;
|
|
29
|
+
set reviewAuthor(value: string);
|
|
30
|
+
/** File name shown in the title bar and used for downloads from the built-in File commands. */
|
|
31
|
+
get fileName(): string;
|
|
32
|
+
set fileName(value: string);
|
|
33
|
+
/** `light`, `dark`, or `auto` (default, follows the OS). Reflected to the `theme` attribute. */
|
|
34
|
+
get theme(): EditorThemeMode;
|
|
35
|
+
set theme(value: EditorThemeMode);
|
|
36
|
+
/** Token overrides applied as inline `--dve-*` custom properties on the host. */
|
|
37
|
+
get themeColors(): Partial<EditorTheme> | undefined;
|
|
38
|
+
set themeColors(value: Partial<EditorTheme> | undefined);
|
|
39
|
+
get locale(): string;
|
|
40
|
+
set locale(value: string);
|
|
41
|
+
publishPresence(profile: {
|
|
42
|
+
name: string;
|
|
43
|
+
color: string;
|
|
44
|
+
}): import("./presence").PresenceMessage | null;
|
|
45
|
+
receivePresence(message: unknown): "applied" | "duplicate" | "invalid" | "out-of-order" | "stale" | "wrong-session";
|
|
46
|
+
leavePresence(): import("./presence").PresenceMessage | null;
|
|
47
|
+
get documentModel(): DocumentModel | null;
|
|
48
|
+
set documentModel(value: DocumentModel | null);
|
|
49
|
+
get readOnly(): boolean;
|
|
50
|
+
set readOnly(value: boolean);
|
|
51
|
+
connectedCallback(): void;
|
|
52
|
+
disconnectedCallback(): void;
|
|
53
|
+
load(input: Uint8Array | ArrayBuffer): Promise<void>;
|
|
54
|
+
setLoadedDocument(session: LoadedDocument): void;
|
|
55
|
+
/** Join only after loading the authority's matching document snapshot and version. */
|
|
56
|
+
startCollaboration(config: CollaborationConfig): void;
|
|
57
|
+
getPendingCollaboration(): StepBatch | null;
|
|
58
|
+
receiveCollaboration(batch: unknown): ClientReceiveResult['status'];
|
|
59
|
+
/** Stopping with pending edits requires an explicit discard of the transport queue. */
|
|
60
|
+
stopCollaboration(discardPending?: boolean): void;
|
|
61
|
+
private assertDocumentReplaceable;
|
|
62
|
+
/** Swaps in a new model (and the session that produced it) and invalidates in-flight loads. */
|
|
63
|
+
private replaceDocument;
|
|
64
|
+
}
|
|
65
|
+
declare global {
|
|
66
|
+
interface HTMLElementTagNameMap {
|
|
67
|
+
'docx-editor': DocxEditorElement;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export declare function registerDocxEditor(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
/**
|
|
3
|
+
* Cut or copy through the browser's own command so ProseMirror's clipboard serializer keeps rich
|
|
4
|
+
* content; the async fallback keeps its HTML slice when that API is available.
|
|
5
|
+
*/
|
|
6
|
+
export declare function copyOrCut(view: EditorView, op: 'cut' | 'copy'): Promise<boolean>;
|
|
7
|
+
/** Whether the browser will let us read the clipboard; `true` when it cannot say. */
|
|
8
|
+
export declare function clipboardReadAllowed(): Promise<boolean>;
|
|
9
|
+
/** Uses ProseMirror's HTML parser for formatted content, with a plain-text API fallback. */
|
|
10
|
+
export declare function pasteClipboard(view: EditorView): Promise<boolean>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Pure context-menu model: which items appear, and which are disabled, for a given editor state. */
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { LocalizationKey } from './localization';
|
|
4
|
+
import type { RibbonAction } from './ribbon-action';
|
|
5
|
+
import { type TableCommand } from './table-commands';
|
|
6
|
+
export type MenuCommand = {
|
|
7
|
+
kind: 'clipboard';
|
|
8
|
+
op: 'cut' | 'copy' | 'paste';
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'removeLink';
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'ribbon';
|
|
13
|
+
action: RibbonAction;
|
|
14
|
+
};
|
|
15
|
+
export interface MenuItem {
|
|
16
|
+
id: string;
|
|
17
|
+
label: LocalizationKey;
|
|
18
|
+
command: MenuCommand;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
/** Set when disabled because of the platform, so the UI can say why. */
|
|
21
|
+
reason?: LocalizationKey;
|
|
22
|
+
/** Starts a new group; rendered as a separator. */
|
|
23
|
+
separatorBefore: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface MenuState {
|
|
26
|
+
readOnly: boolean;
|
|
27
|
+
hasSelection: boolean;
|
|
28
|
+
onLink: boolean;
|
|
29
|
+
inTable: boolean;
|
|
30
|
+
/** The browser exposes an async clipboard read API. */
|
|
31
|
+
canReadClipboard: boolean;
|
|
32
|
+
canTable(command: TableCommand): boolean;
|
|
33
|
+
}
|
|
34
|
+
/** Items for the current state; table items only exist while the selection is in a table. */
|
|
35
|
+
export declare function computeMenuItems(state: MenuState): MenuItem[];
|
|
36
|
+
export declare function menuStateFromView(view: EditorView, readOnly: boolean): MenuState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { type EditorLocale } from './localization';
|
|
3
|
+
import type { RibbonAction } from './ribbon-action';
|
|
4
|
+
export interface ContextMenuHost {
|
|
5
|
+
/** Element the menu is appended to (inside the shadow root, so theme tokens apply). */
|
|
6
|
+
container: HTMLElement;
|
|
7
|
+
/** Element whose `contextmenu` events open the menu. */
|
|
8
|
+
target: HTMLElement;
|
|
9
|
+
view(): EditorView | undefined;
|
|
10
|
+
/** Returns focus to the document surface (which may be non-editable). */
|
|
11
|
+
focusDocument(): void;
|
|
12
|
+
readOnly(): boolean;
|
|
13
|
+
locale(): EditorLocale;
|
|
14
|
+
run(action: RibbonAction): void;
|
|
15
|
+
warn(message: string): void;
|
|
16
|
+
}
|
|
17
|
+
export interface ContextMenu {
|
|
18
|
+
readonly isOpen: boolean;
|
|
19
|
+
readonly element: HTMLElement | undefined;
|
|
20
|
+
open(x: number, y: number): void;
|
|
21
|
+
/** Opens at the caret, for Shift+F10 and the ContextMenu key. */
|
|
22
|
+
openAtCaret(): void;
|
|
23
|
+
close(restoreFocus?: boolean): void;
|
|
24
|
+
}
|
|
25
|
+
export declare function createContextMenu(host: ContextMenuHost): ContextMenu;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorState } from 'prosemirror-state';
|
|
2
|
+
/** Whether the selection sits inside a table cell. */
|
|
3
|
+
export declare function selectionInTable(state: EditorState): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Word shows its table tools only while a table is selected. The tab is added to the tab strip
|
|
6
|
+
* when the selection enters a table and removed (falling back to Home) when it leaves.
|
|
7
|
+
*/
|
|
8
|
+
export declare function syncContextualTabs(toolbar: HTMLElement, state: EditorState): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
export interface CoverPageText {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
author: string;
|
|
6
|
+
date: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Insert > Cover Page: a plain centred title page at the top of the document (title, subtitle,
|
|
10
|
+
* author, date) that pushes the existing content onto the next page. It is one simple design,
|
|
11
|
+
* not Word's gallery of building blocks. `titleStyle` is the document's Title style id, if it has
|
|
12
|
+
* one. Returns false for a read-only view.
|
|
13
|
+
*/
|
|
14
|
+
export declare function insertCoverPage(view: EditorView, text: CoverPageText, titleStyle?: string): boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { Node as ProseMirrorNode } from 'prosemirror-model';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
export type ReferenceKind = 'heading' | 'bookmark' | 'figure' | 'table' | 'equation';
|
|
5
|
+
export type ReferenceContent = 'text' | 'page' | 'label';
|
|
6
|
+
export interface ReferenceTarget {
|
|
7
|
+
/** What the list shows. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Position of the target paragraph. */
|
|
10
|
+
pos: number;
|
|
11
|
+
/** The paragraph's id, for page lookup. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** The whole paragraph text. */
|
|
14
|
+
text: string;
|
|
15
|
+
/** For a caption: "Figure 3". */
|
|
16
|
+
numbered?: string;
|
|
17
|
+
/** An existing bookmark on the paragraph that the field can point at. */
|
|
18
|
+
bookmark?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Every paragraph of `kind`, in document order: headings, bookmarked paragraphs or captions. */
|
|
21
|
+
export declare function referenceTargets(doc: ProseMirrorNode, model: DocumentModel, kind: ReferenceKind): ReferenceTarget[];
|
|
22
|
+
/** A new hidden `_Ref` bookmark name, the kind Word makes for cross-references. */
|
|
23
|
+
export declare function newReferenceBookmark(existing: readonly string[]): string;
|
|
24
|
+
/**
|
|
25
|
+
* Insert > Cross-reference: puts a `REF` (text or caption label and number) or `PAGEREF` field
|
|
26
|
+
* at the selection, pointing at `target`. A paragraph without a bookmark gets a hidden `_Ref`
|
|
27
|
+
* one in the same undoable step. `pageOf` supplies a page number for `page`. The result text is
|
|
28
|
+
* computed now; it does not update when the target changes until the field is edited.
|
|
29
|
+
*/
|
|
30
|
+
export declare function insertCrossReference(view: EditorView, target: ReferenceTarget, content: ReferenceContent, pageOf: (id: string) => string | undefined): boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DocumentModel } from 'ooxml-core/docx';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { FormatDialog } from './font-dialog';
|
|
4
|
+
/** Word's Cross-reference dialog for headings, bookmarks and numbered captions. */
|
|
5
|
+
export declare function createCrossReferenceDialog(getView: () => EditorView | undefined, getModel: () => DocumentModel, pageOf: (id: string) => string | undefined): FormatDialog;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Small builders for the ribbon's format dialogs (Font, Paragraph). Text stays English until localized. */
|
|
2
|
+
export declare function labelled<T extends HTMLElement>(label: string, control: T): HTMLLabelElement;
|
|
3
|
+
export declare function textInput(options?: {
|
|
4
|
+
inputMode?: string;
|
|
5
|
+
}): HTMLInputElement;
|
|
6
|
+
/** A text input offering `values` through a native list (Word's editable drop-down). */
|
|
7
|
+
export declare function listInput(values: readonly string[]): {
|
|
8
|
+
input: HTMLInputElement;
|
|
9
|
+
list: HTMLDataListElement;
|
|
10
|
+
};
|
|
11
|
+
export declare function numberInput(min: number, max: number, step: number): HTMLInputElement;
|
|
12
|
+
export declare function selectOf(options: ReadonlyArray<readonly [value: string, label: string]>): HTMLSelectElement;
|
|
13
|
+
/** A checkbox row whose text is its accessible name. */
|
|
14
|
+
export declare function checkbox(label: string): {
|
|
15
|
+
wrapper: HTMLLabelElement;
|
|
16
|
+
input: HTMLInputElement;
|
|
17
|
+
};
|
|
18
|
+
export declare function fieldset(legend: string, ...children: HTMLElement[]): HTMLFieldSetElement;
|
|
19
|
+
export declare function row(...children: HTMLElement[]): HTMLDivElement;
|
|
20
|
+
export declare function dialogButton(label: string, primary?: boolean): HTMLButtonElement;
|
|
21
|
+
/** A tri-state checkbox: `null` shows the indeterminate mark (the selection mixes values). */
|
|
22
|
+
export declare function setTriState(input: HTMLInputElement, value: boolean | null): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type EditorLocale } from './localization';
|
|
2
|
+
/**
|
|
3
|
+
* The frame every format dialog shares: the shared modal `office-ui-dialog` (focus trap, Escape,
|
|
4
|
+
* backdrop, heading, return of focus). The dialog's fields are its light-DOM children, styled by
|
|
5
|
+
* the editor, and its buttons go in `dialogActions`. `title` is the English heading; it is
|
|
6
|
+
* translated by `localizeDialog`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createDialogShell(title: string, className: string): HTMLElement;
|
|
9
|
+
/** The action row, placed in the dialog's footer slot. */
|
|
10
|
+
export declare function dialogActions(...buttons: HTMLElement[]): HTMLDivElement;
|
|
11
|
+
export declare const isDialogOpen: (element: HTMLElement) => boolean;
|
|
12
|
+
export declare function setDialogOpen(element: HTMLElement, open: boolean): void;
|
|
13
|
+
/**
|
|
14
|
+
* Runs `onDismiss` when the user closes the dialog with Escape, the close button or the backdrop,
|
|
15
|
+
* so the dialog can clean up the way its own Cancel button does.
|
|
16
|
+
*/
|
|
17
|
+
export declare function onDialogDismiss(element: HTMLElement, onDismiss: () => void): void;
|
|
18
|
+
/** Translates the dialog's fields (light DOM) and its heading. */
|
|
19
|
+
export declare function localizeDialog(element: HTMLElement, locale: EditorLocale): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
export type DropCapStyle = 'none' | 'drop' | 'margin';
|
|
3
|
+
export interface DropCapOptions {
|
|
4
|
+
lines: number;
|
|
5
|
+
distanceTwips?: number;
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Current frame settings, or the body font for a new initial. */
|
|
9
|
+
export declare function readDropCap(view: EditorView): {
|
|
10
|
+
style: DropCapStyle;
|
|
11
|
+
lines: number;
|
|
12
|
+
distanceTwips: number;
|
|
13
|
+
fontFamily: string;
|
|
14
|
+
} | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Insert > Drop Cap. Like Word, the first letter of the paragraph moves into its own frame
|
|
17
|
+
* paragraph (`w:framePr`) placed before it; None folds the letter back. Choosing a style on a
|
|
18
|
+
* paragraph that already has a frame only restyles the frame.
|
|
19
|
+
*/
|
|
20
|
+
export declare function setDropCap(view: EditorView, style: DropCapStyle, options?: DropCapOptions): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { FormatDialog } from './font-dialog';
|
|
3
|
+
/** Word's position, font, height and text-distance controls for the selected initial. */
|
|
4
|
+
export declare function createDropCapDialog(getView: () => EditorView | undefined): FormatDialog;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type EditorThemeMode } from 'ooxml-core/docx/ui';
|
|
2
|
+
/**
|
|
3
|
+
* Attribute <-> property mapping for `<docx-editor>`. Properties stay the source of truth: an
|
|
4
|
+
* attribute change is applied through the property setter only when it would change the value, and
|
|
5
|
+
* a property change is written back to its attribute only when the attribute would differ. That
|
|
6
|
+
* makes each direction idempotent, so the two cannot ping-pong.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DOCX_EDITOR_ATTRIBUTES: readonly ['locale', 'read-only', 'file-name', 'review-author', 'theme', 'show-thumbnails', 'show-toolbar'];
|
|
9
|
+
export type DocxEditorAttribute = (typeof DOCX_EDITOR_ATTRIBUTES)[number];
|
|
10
|
+
export declare const DEFAULT_FILE_NAME = "Document1.docx";
|
|
11
|
+
export declare const DEFAULT_REVIEW_AUTHOR = "Author";
|
|
12
|
+
/** The element properties the attributes drive. */
|
|
13
|
+
export interface AttributeProperties {
|
|
14
|
+
locale: string;
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
fileName: string;
|
|
17
|
+
reviewAuthor: string;
|
|
18
|
+
theme: EditorThemeMode;
|
|
19
|
+
showThumbnails: boolean;
|
|
20
|
+
showToolbar: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function isDocxEditorAttribute(name: string): name is DocxEditorAttribute;
|
|
23
|
+
/** attributeChangedCallback body: attribute -> property. */
|
|
24
|
+
export declare function applyAttribute(target: AttributeProperties, name: DocxEditorAttribute, value: string | null): void;
|
|
25
|
+
/** Property setter tail: property -> attribute. No-op where the element has no DOM (SSR). */
|
|
26
|
+
export declare function reflectAttribute(element: Element, name: DocxEditorAttribute, value: string | boolean): void;
|