ooxml-ui 1.51.0 → 1.52.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/README.md +17 -1
- package/custom-elements.json +72 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
- package/dist/chart/format-pane-fill-line.d.ts +1 -0
- package/dist/chart/format-pane-locales/index.d.ts +1 -1
- package/dist/chart/format-pane-locales/index.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/ja.d.ts +3 -0
- package/dist/chart/format-pane-locales/ja.d.ts.map +1 -0
- package/dist/chart/format-pane-locales/ko.d.ts +3 -0
- package/dist/chart/format-pane-locales/ko.d.ts.map +1 -0
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-text.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +1 -0
- package/dist/chart-format-locales.js +1 -1
- package/dist/chrome/format-section.d.ts +50 -0
- package/dist/chrome/format-section.d.ts.map +1 -0
- package/dist/{chunk-SRYBCJC2.js → chunk-3TF5IIIJ.js} +62 -13
- package/dist/{chunk-FE5KE5TR.js → chunk-4W4QZF4C.js} +1 -1
- package/dist/{chunk-6EOS74O4.js → chunk-5FMWQWLP.js} +27 -2
- package/dist/{chunk-N6AKS4ED.js → chunk-6C6S4AWF.js} +47 -4
- package/dist/{chunk-63ELC26U.js → chunk-ALWA7Q42.js} +6 -5
- package/dist/{chunk-IHZK4NPQ.js → chunk-FP45SLBV.js} +6 -6
- package/dist/{chunk-Q6WZEGAM.js → chunk-FQN4XNEF.js} +1 -1
- package/dist/{chunk-4OBMFPGF.js → chunk-GSO4HLIY.js} +620 -2
- package/dist/{chunk-II43ALTT.js → chunk-HUR5JAG7.js} +1 -1
- package/dist/{chunk-BY7X2LNM.js → chunk-JNCHVQQA.js} +4 -4
- package/dist/{chunk-6FFZFH73.js → chunk-QDU4GLWK.js} +1 -1
- package/dist/{chunk-2JHM6UO3.js → chunk-QGRJJUH7.js} +1 -1
- package/dist/controls.d.ts +4 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +5 -5
- package/dist/docx/backstage-pages.d.ts +2 -0
- package/dist/docx/context-menu-actions.d.ts +14 -1
- package/dist/docx/context-menu-items.d.ts +13 -0
- package/dist/docx/convert-notes-dialog.d.ts +14 -0
- package/dist/docx/document-information-attr.d.ts +14 -0
- package/dist/docx/document-inspector-apply.d.ts +20 -0
- package/dist/docx/document-inspector-dialog.d.ts +16 -0
- package/dist/docx/editor-chrome.d.ts +2 -0
- package/dist/docx/editor-plugins.d.ts +5 -0
- package/dist/docx/field-update.d.ts +4 -3
- package/dist/docx/format-dialogs.d.ts +7 -1
- package/dist/docx/locales/convert-notes.d.ts +14 -0
- package/dist/docx/locales/document-inspector.d.ts +39 -0
- package/dist/docx/locales/en.d.ts +66 -0
- package/dist/docx/locales/find-stories.d.ts +10 -0
- package/dist/docx/locales/paste-options.d.ts +17 -0
- package/dist/docx/locales/picture-watermark.d.ts +12 -0
- package/dist/docx/locales/picture.d.ts +11 -0
- package/dist/docx/localization-strings.d.ts +66 -0
- package/dist/docx/note-commands.d.ts +12 -1
- package/dist/docx/page-controller.d.ts +5 -4
- package/dist/docx/parts-controller.d.ts +21 -3
- package/dist/docx/parts-story-writes.d.ts +10 -0
- package/dist/docx/paste-options-button.d.ts +18 -0
- package/dist/docx/paste-options.d.ts +45 -0
- package/dist/docx/paste-special-dialog.d.ts +11 -0
- package/dist/docx/picture-dialog.d.ts +3 -2
- package/dist/docx/picture-drop.d.ts +25 -0
- package/dist/docx/picture-format-commands.d.ts +25 -0
- package/dist/docx/picture-format-ribbon.d.ts +4 -0
- package/dist/docx/print-header-footer.d.ts +6 -2
- package/dist/docx/print-inline-object.d.ts +3 -0
- package/dist/docx/print-picture-watermark.d.ts +11 -0
- package/dist/docx/ribbon-action.d.ts +14 -0
- package/dist/docx/ribbon-icons.d.ts +1 -0
- package/dist/docx/search-controller.d.ts +24 -2
- package/dist/docx/search-panel-options.d.ts +10 -0
- package/dist/docx/search-panel.d.ts +3 -0
- package/dist/docx/search-stories.d.ts +38 -0
- package/dist/docx/search-story-host.d.ts +13 -0
- package/dist/docx/search-story-replace.d.ts +33 -0
- package/dist/docx/shape-commands.d.ts +2 -2
- package/dist/docx/shape-format-ribbon.d.ts +1 -0
- package/dist/docx/table-properties.d.ts +2 -1
- package/dist/docx/watermark-commands.d.ts +6 -3
- package/dist/docx/watermark-dialog.d.ts +25 -4
- package/dist/docx/watermark-picture.d.ts +12 -0
- package/dist/docx/word-paste.d.ts +13 -0
- package/dist/docx.js +3435 -1256
- package/dist/embedding/region-host.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts.map +1 -0
- package/dist/export/pdf-font-faces.d.ts +26 -0
- package/dist/export/pdf-font-faces.d.ts.map +1 -0
- package/dist/export/pdf-fonts.d.ts +1 -0
- package/dist/export/pdf-fonts.d.ts.map +1 -0
- package/dist/export/pdf-image.d.ts +18 -0
- package/dist/export/pdf-image.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-path.d.ts +1 -0
- package/dist/export/pdf-path.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-gradient.d.ts +2 -1
- package/dist/export/pdf-svg-gradient.d.ts.map +1 -0
- package/dist/export/pdf-svg-notes.d.ts +25 -0
- package/dist/export/pdf-svg-notes.d.ts.map +1 -0
- package/dist/export/pdf-svg-shapes.d.ts +3 -0
- package/dist/export/pdf-svg-shapes.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-style.d.ts +1 -0
- package/dist/export/pdf-svg-style.d.ts.map +1 -0
- package/dist/export/pdf-svg-text.d.ts +11 -0
- package/dist/export/pdf-svg-text.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg.d.ts +13 -3
- package/dist/export/pdf-svg.d.ts.map +1 -0
- package/dist/export/pdf-vector.d.ts +14 -8
- package/dist/export/pdf-vector.d.ts.map +1 -0
- package/dist/fonts/webfonts.d.ts +5 -3
- package/dist/fonts/webfonts.d.ts.map +1 -1
- package/dist/image-native-size.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/look-tokens.d.ts +25 -0
- package/dist/look-tokens.d.ts.map +1 -0
- package/dist/look.d.ts +29 -0
- package/dist/look.d.ts.map +1 -0
- package/dist/notices/toasts.d.ts +3 -0
- package/dist/notices/toasts.d.ts.map +1 -1
- package/dist/picture-effects.d.ts +1 -0
- package/dist/pptx/{chunk-VOBKKF45.mjs → chunk-5454QDUH.mjs} +712 -3
- package/dist/pptx/{chunk-U6YDJVNS.cjs → chunk-7ZRVQFQN.cjs} +47 -47
- package/dist/pptx/{chunk-2FKBWWSS.cjs → chunk-AN34Z3QP.cjs} +145 -2
- package/dist/pptx/{chunk-XLSW7WM3.mjs → chunk-EEELXUAE.mjs} +135 -3
- package/dist/pptx/{chunk-XZSGVMRN.cjs → chunk-IV2F5JWR.cjs} +62 -3
- package/dist/pptx/{chunk-VR6UAL2A.mjs → chunk-KCIIXE4D.mjs} +93724 -88066
- package/dist/pptx/{chunk-EU7TGRWX.mjs → chunk-NGOH4ENE.mjs} +2 -2
- package/dist/pptx/{chunk-G4VNRJUX.mjs → chunk-Q23MZFWZ.mjs} +62 -3
- package/dist/pptx/{chunk-OIEN54CC.cjs → chunk-SC4VATDY.cjs} +90551 -84780
- package/dist/pptx/{chunk-3JGYWDMR.cjs → chunk-WKKLVLLP.cjs} +712 -3
- package/dist/pptx/dom/index.cjs +380 -380
- package/dist/pptx/dom/index.mjs +8 -8
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/export/index.d.ts +6 -0
- package/dist/pptx/export/index.d.ts.map +1 -1
- package/dist/pptx/export/pdf-export-diagnostics.d.ts +44 -0
- package/dist/pptx/export/pdf-export-diagnostics.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-notice.d.ts +52 -0
- package/dist/pptx/export/pdf-export-notice.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-run.d.ts +30 -0
- package/dist/pptx/export/pdf-export-run.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-box.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-box.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts +49 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts +39 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-css.d.ts +36 -0
- package/dist/pptx/export/pdf-vector-css.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts +92 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-export.d.ts +63 -0
- package/dist/pptx/export/pdf-vector-export.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts +44 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts +43 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts +67 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts +17 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts +27 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-select.d.ts +30 -0
- package/dist/pptx/export/pdf-vector-select.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts +13 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-text.d.ts +35 -0
- package/dist/pptx/export/pdf-vector-text.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts.map +1 -0
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/locale-catalog.d.ts.map +1 -1
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts +7 -0
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts.map +1 -0
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3652 -3260
- package/dist/pptx/index.mjs +4 -4
- package/dist/pptx/render/chrome-controls-state.d.ts +10 -0
- package/dist/pptx/render/chrome-controls-state.d.ts.map +1 -1
- package/dist/pptx/render/compatibility-warning-toasts.d.ts +12 -0
- package/dist/pptx/render/compatibility-warning-toasts.d.ts.map +1 -1
- package/dist/pptx/render/controller/format-pane-controller.d.ts +69 -0
- package/dist/pptx/render/controller/format-pane-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-resolve.d.ts +4 -0
- package/dist/pptx/render/customization/customization-resolve.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-types.d.ts +7 -1
- package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
- package/dist/pptx/render/customization/ribbon-control-visibility.d.ts.map +1 -1
- package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/cards-css.d.ts +9 -0
- package/dist/pptx/render/editor-chrome/cards-css.d.ts.map +1 -0
- package/dist/pptx/render/editor-chrome/home-layout-css.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/index.d.ts +1 -0
- package/dist/pptx/render/editor-chrome/index.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-bytes.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-trust.d.ts.map +1 -1
- package/dist/pptx/render/export-clone.d.ts.map +1 -1
- package/dist/pptx/render/font-embedding.d.ts +26 -0
- package/dist/pptx/render/font-embedding.d.ts.map +1 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts +32 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts.map +1 -1
- package/dist/pptx/render/google-webfonts.d.ts +11 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/html-text-paste.d.ts +26 -0
- package/dist/pptx/render/html-text-paste.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +13 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-caret-offset.d.ts +12 -0
- package/dist/pptx/render/inline-caret-offset.d.ts.map +1 -0
- package/dist/pptx/render/inline-caret.d.ts +0 -9
- package/dist/pptx/render/inline-caret.d.ts.map +1 -1
- package/dist/pptx/render/inline-rich-paste.d.ts +53 -0
- package/dist/pptx/render/inline-rich-paste.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts +42 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts +27 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts +21 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-sections.d.ts +54 -0
- package/dist/pptx/render/inspector/format-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/index.d.ts +7 -0
- package/dist/pptx/render/inspector/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-apply.d.ts +8 -0
- package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +4 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/pdf-export-range.d.ts +39 -0
- package/dist/pptx/render/pdf-export-range.d.ts.map +1 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts +5 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts.map +1 -1
- package/dist/pptx/render/system-clipboard-copy.d.ts +54 -0
- package/dist/pptx/render/system-clipboard-copy.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts +59 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-navigation.d.ts +97 -0
- package/dist/pptx/render/table-cell-navigation.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts +7 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts +42 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts +64 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-range.d.ts +24 -0
- package/dist/pptx/render/table-cell-text-range.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-format.d.ts +32 -0
- package/dist/pptx/render/table-cells-format.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts +27 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts.map +1 -0
- package/dist/pptx/render/table-tsv-paste.d.ts +36 -0
- package/dist/pptx/render/table-tsv-paste.d.ts.map +1 -0
- package/dist/pptx/render/text-design-tracking.d.ts +6 -0
- package/dist/pptx/render/text-design-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-metric-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-run-style.d.ts.map +1 -1
- package/dist/pptx/render/text-tracking-settle.d.ts +13 -0
- package/dist/pptx/render/text-tracking-settle.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts +1 -1
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-QZWYQJRA.mjs → smartart-insert-preview-H2LZCTYG.mjs} +5 -5
- package/dist/pptx/{smartart-insert-preview-4DGDUPAL.cjs → smartart-insert-preview-MMCWPA26.cjs} +6 -6
- package/dist/pptx/theme/index.cjs +18 -18
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/web-components/format-section.d.ts +7 -0
- package/dist/pptx/web-components/format-section.d.ts.map +1 -0
- package/dist/pptx/web-components/index.d.ts +5 -2
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
- package/dist/pptx/web-components/pdf-export-dialog-body.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-dialog-body.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts +33 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts.map +1 -0
- package/dist/pptx/web-components/ribbon-launchers.d.ts +12 -2
- package/dist/pptx/web-components/ribbon-launchers.d.ts.map +1 -1
- package/dist/pptx/web-components/theme-editor-dock.d.ts.map +1 -1
- package/dist/presence.js +3 -3
- package/dist/render-cache.d.ts +1 -0
- package/dist/smartart.js +3 -3
- package/dist/teams.js +7 -7
- package/dist/theme.d.ts +9 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +10 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/font-stack.d.ts +6 -0
- package/dist/visio.js +198 -102
- package/dist/xlsx.js +14 -14
- package/package.json +2 -2
- package/dist/visio/pdf-svg-text.d.ts +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-section-mixed.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/inspector/format-section-mixed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,GAAG,SAAS,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAE3F,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,CAAC,EACjC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,CAAC,GAAG,SAAS,GAC3C,gBAAgB,CAAC,CAAC,CAAC,CAYrB;AAkDD,kGAAkG;AAClG,wBAAgB,oBAAoB,CACnC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,OAAO,EAAE,eAAe,GACtB,OAAO,CAGT;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACvC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAClC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,GAC1C,WAAW,EAAE,CAUf"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bring a Format pane section into view after a launcher asked for it, and
|
|
3
|
+
* map the older context-menu anchors onto section ids.
|
|
4
|
+
*
|
|
5
|
+
* @module render/inspector/format-section-reveal
|
|
6
|
+
*/
|
|
7
|
+
import type { InspectorSectionAnchor } from '../context-menu-inspector-anchor.js';
|
|
8
|
+
import type { FormatSectionId } from './format-sections.js';
|
|
9
|
+
/** The section a context-menu anchor opens (Format Shape: Fill, Size and Position, Alt Text). */
|
|
10
|
+
export declare function formatSectionForAnchor(anchor: InspectorSectionAnchor): FormatSectionId;
|
|
11
|
+
/** The section element of `section` inside `root`, when rendered. */
|
|
12
|
+
export declare function findFormatSection(root: ParentNode, section: FormatSectionId): HTMLElement | null;
|
|
13
|
+
/**
|
|
14
|
+
* Scroll `section` into view and, with `focus`, move focus to its heading. A
|
|
15
|
+
* section that is not rendered (hidden by the host, or not mounted yet) is
|
|
16
|
+
* skipped; returns whether it was found.
|
|
17
|
+
*/
|
|
18
|
+
export declare function revealFormatSection(root: ParentNode, section: FormatSectionId, options?: {
|
|
19
|
+
focus?: boolean;
|
|
20
|
+
}): boolean;
|
|
21
|
+
//# sourceMappingURL=format-section-reveal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-section-reveal.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/inspector/format-section-reveal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,iGAAiG;AACjG,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,GAAG,eAAe,CAStF;AAED,qEAAqE;AACrE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI,CAEhG;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,OAAO,CAUT"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The selection-aware Format pane: which collapsible sections the inspector's
|
|
3
|
+
* Properties tab shows for the current selection, in which order, and which of
|
|
4
|
+
* them start open. Written once here; every binding renders the returned list
|
|
5
|
+
* and puts its existing panels inside the matching section.
|
|
6
|
+
*
|
|
7
|
+
* Section ids are stable (hosts hide and reorder them through
|
|
8
|
+
* `inspector.hiddenSections` / `inspector.sectionOrder`, and bindings tag each
|
|
9
|
+
* section with {@link FORMAT_SECTION_ATTRIBUTE}). Which panels go in which
|
|
10
|
+
* section is recorded in {@link FORMAT_PANEL_SECTIONS} so the five bindings
|
|
11
|
+
* place them the same way.
|
|
12
|
+
*
|
|
13
|
+
* @module render/inspector/format-sections
|
|
14
|
+
*/
|
|
15
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
16
|
+
/** What the Properties tab is formatting. */
|
|
17
|
+
export type FormatSelectionCategory = 'slide' | 'text' | 'shape' | 'line' | 'picture' | 'table' | 'chart' | 'smartArt' | 'media' | 'group' | 'object' | 'mixed';
|
|
18
|
+
/** Every Format pane section, in the canonical order a mixed selection uses. */
|
|
19
|
+
export declare const FORMAT_SECTION_IDS: readonly ['slide', 'font', 'paragraph', 'picture', 'table', 'chart', 'smartArt', 'media', 'object', 'fill', 'outline', 'effects', 'arrange', 'sizePosition', 'altText', 'action'];
|
|
20
|
+
export type FormatSectionId = (typeof FORMAT_SECTION_IDS)[number];
|
|
21
|
+
/** The attribute a binding puts on each section element (`data-pptx-format-section="fill"`). */
|
|
22
|
+
export declare const FORMAT_SECTION_ATTRIBUTE = "data-pptx-format-section";
|
|
23
|
+
/** What a binding draws for one section. */
|
|
24
|
+
export interface FormatSectionView {
|
|
25
|
+
id: FormatSectionId;
|
|
26
|
+
/** Translation key of the heading. */
|
|
27
|
+
labelKey: string;
|
|
28
|
+
/** Whether the section starts open (before the user toggles it). */
|
|
29
|
+
defaultOpen: boolean;
|
|
30
|
+
/** Line selections only: the Outline section also shows arrowheads. */
|
|
31
|
+
arrowheads?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** Host ordering and hiding (from the resolved customization). */
|
|
34
|
+
export interface FormatSectionOptions {
|
|
35
|
+
hidden?: Iterable<FormatSectionId>;
|
|
36
|
+
/** Ids to move to the front, in this order; the rest keep their place. */
|
|
37
|
+
order?: readonly FormatSectionId[];
|
|
38
|
+
}
|
|
39
|
+
/** Whether `element` is drawn as a line (a connector or a `line` preset). */
|
|
40
|
+
export declare function isLineFormatElement(element: PptxElement): boolean;
|
|
41
|
+
/** The category of one element. */
|
|
42
|
+
export declare function formatElementCategory(element: PptxElement): FormatSelectionCategory;
|
|
43
|
+
/** The category of a selection: `slide` when empty, `mixed` when the kinds differ. */
|
|
44
|
+
export declare function resolveFormatCategory(elements: readonly (PptxElement | null | undefined)[]): FormatSelectionCategory;
|
|
45
|
+
/** Whether a shape already carries a Format Shape effect (Effects then starts open). */
|
|
46
|
+
export declare function hasFormatShapeEffect(element: PptxElement): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The sections to show for `elements` (empty or nulls: the slide). A
|
|
49
|
+
* multi-selection shows only the sections every element supports, in the
|
|
50
|
+
* category order of a uniform selection (canonical order when mixed), and
|
|
51
|
+
* never Size and position.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveFormatSections(elements: readonly (PptxElement | null | undefined)[], options?: FormatSectionOptions): FormatSectionView[];
|
|
54
|
+
//# sourceMappingURL=format-sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-sections.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/inspector/format-sections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,i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B,CAUzB;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAMlE;AAoDD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,EACrD,OAAO,CAAC,EAAE,oBAAoB,GAC5B,iBAAiB,EAAE,CA8BrB"}
|
|
@@ -19,4 +19,11 @@ export { TEXT_BOX_SECTION, TEXT_BOX_SECTIONS } from './text-box-fields.js';
|
|
|
19
19
|
export type { TextBoxSection, TextBoxTarget } from './text-box-fields.js';
|
|
20
20
|
export { TEXT_EFFECT_SECTIONS } from './text-effect-fields.js';
|
|
21
21
|
export type { TextEffectSection, TextEffectTarget } from './text-effect-fields.js';
|
|
22
|
+
export { FORMAT_PANEL_SECTIONS, formatPanelIn } from './format-panel-sections.js';
|
|
23
|
+
export type { FormatPanelId } from './format-panel-sections.js';
|
|
24
|
+
export { FORMAT_SECTION_ATTRIBUTE, FORMAT_SECTION_IDS, formatElementCategory, hasFormatShapeEffect, isLineFormatElement, resolveFormatCategory, resolveFormatSections, } from './format-sections.js';
|
|
25
|
+
export type { FormatSectionId, FormatSectionOptions, FormatSectionView, FormatSelectionCategory, } from './format-sections.js';
|
|
26
|
+
export { formatMixedValue, formatSelectionElements, isFormatSectionMixed, } from './format-section-mixed.js';
|
|
27
|
+
export type { FormatFieldValue } from './format-section-mixed.js';
|
|
28
|
+
export { findFormatSection, formatSectionForAnchor, revealFormatSection, } from './format-section-reveal.js';
|
|
22
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/inspector/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACN,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACX,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EACX,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACN,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,GAChB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACX,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/inspector/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACN,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACX,qBAAqB,EACrB,wB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Y,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,GACpB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACN,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,yBAAyB,CAAC"}
|
|
@@ -28,6 +28,14 @@ export declare function resolveDefaultPrintSettings(options: ViewerOptions): Par
|
|
|
28
28
|
export declare function resolveImageResolutionPpi(preset: ImageResolutionPreset): number | undefined;
|
|
29
29
|
/** Raster scale multiplier relative to the standard 96 ppi CSS pixel grid. */
|
|
30
30
|
export declare function resolveImageResolutionScale(options: ViewerOptions): number;
|
|
31
|
+
/** How File > Save as PDF writes the file (Options > Advanced > Save as PDF). */
|
|
32
|
+
export interface PdfExportSettings {
|
|
33
|
+
/** `vector` is paths and real text with embedded fonts; `pictures` is one image per slide. */
|
|
34
|
+
mode: 'vector' | 'pictures';
|
|
35
|
+
includeHiddenSlides: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** The PDF export settings every binding's PDF command reads. */
|
|
38
|
+
export declare function resolvePdfExportSettings(options: ViewerOptions): PdfExportSettings;
|
|
31
39
|
/** Whether the viewer should open documents read-only until editing is enabled. */
|
|
32
40
|
export declare function shouldOpenInProtectedView(options: ViewerOptions): boolean;
|
|
33
41
|
/** Whether following an external hyperlink should ask for confirmation first. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-options-apply.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/options/viewer-options-apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAq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;;GAWG;AACH,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,aAAa,GACpB,gBAAgB,CAYlB;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAYzF;AAED;;;;;;;;;GASG;AACH,wBAAgB,qCAAqC,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAErF;AAED,oGAAoG;AACpG,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAE/E;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,SAAS,EAAE,SAAS,mBAAmB,EAAE,EACzC,OAAO,EAAE,aAAa,EACtB,GAAG,GAAE,MAAmB,GACtB,MAAM,EAAE,CAOV;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CA0B9D"}
|
|
1
|
+
{"version":3,"file":"viewer-options-apply.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/options/viewer-options-apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE7E;;;;GAIG;AAEH,4DAA4D;AAC5D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAGlE;AAED,mEAAmE;AACnE,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAG7E;AAED;;;;GAIG;AACH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AAgB,uBAAuB,CACtC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,aAAa,GACpB,gBAAgB,CAYlB;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAYzF;AAED;;;;;;;;;GASG;AACH,wBAAgB,qCAAqC,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAErF;AAED,oGAAoG;AACpG,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAE/E;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,SAAS,EAAE,SAAS,mBAAmB,EAAE,EACzC,OAAO,EAAE,aAAa,EACtB,GAAG,GAAE,MAAmB,GACtB,MAAM,EAAE,CAOV;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CA0B9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-options-tabs-advanced.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/options/viewer-options-tabs-advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAG5E,gFAAgF;AAEhF,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"viewer-options-tabs-advanced.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/options/viewer-options-tabs-advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAG5E,gFAAgF;AAEhF,eAAO,MAAM,YAAY,EAAE,0BAuK1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,0BAaxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,0BAqB9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,0BAMzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,0BAuBvB,CAAC"}
|
|
@@ -130,6 +130,10 @@ export interface ViewerAdvancedOptions {
|
|
|
130
130
|
printHiddenSlides: boolean;
|
|
131
131
|
printScaleToFit: boolean;
|
|
132
132
|
printFrameSlides: boolean;
|
|
133
|
+
/** File > Save as PDF: include slides marked hidden (PowerPoint's "Include hidden slides"). */
|
|
134
|
+
pdfIncludeHiddenSlides: boolean;
|
|
135
|
+
/** File > Save as PDF: one picture per slide (the earlier export) instead of vector pages. */
|
|
136
|
+
pdfSlidesAsPictures: boolean;
|
|
133
137
|
}
|
|
134
138
|
export interface ViewerRibbonOptions {
|
|
135
139
|
/** Ribbon tabs unticked in Customize Ribbon. The File tab can never be hidden. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-options.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/options/viewer-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;;GAOG;AAEH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,OAAO,GAAG,KAAK,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,eAAe,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9F,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC;AAC7F,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AACzD,MAAM,MAAM,mB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kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Range step of File > Export > PDF, like PowerPoint's Save as PDF options: All slides,
|
|
3
|
+
* the Current slide, or Slides from-to, plus "Include hidden slides". Pure: the dialog
|
|
4
|
+
* (`pptx-ui-pdf-export-dialog`) edits a {@link PdfExportChoice}; the binding turns the confirmed
|
|
5
|
+
* choice into the slide selection the vector export reads.
|
|
6
|
+
*/
|
|
7
|
+
import { type PdfSlideSelection } from '../export/pdf-vector-select.js';
|
|
8
|
+
export type PdfExportRange = 'all' | 'current' | 'slides';
|
|
9
|
+
/** What the PDF options dialog asks. Slide numbers are 1-based. */
|
|
10
|
+
export interface PdfExportChoice {
|
|
11
|
+
range: PdfExportRange;
|
|
12
|
+
from: number;
|
|
13
|
+
to: number;
|
|
14
|
+
includeHiddenSlides: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Why a choice cannot be exported (a dictionary key suffix under `pptx.pdfExport.dialog.`). */
|
|
17
|
+
export type PdfExportChoiceError = 'rangeInvalid' | 'rangeEmpty';
|
|
18
|
+
/** The choice the dialog opens with: every slide, hidden ones as Options > Advanced says. */
|
|
19
|
+
export declare function initialPdfExportChoice(slideCount: number, includeHiddenSlides: boolean): PdfExportChoice;
|
|
20
|
+
/**
|
|
21
|
+
* The selection a confirmed choice exports. The current slide is exported even when it is
|
|
22
|
+
* hidden: choosing it is explicit.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolvePdfExportSelection(choice: PdfExportChoice, currentIndex: number): PdfSlideSelection;
|
|
25
|
+
/** Whether `choice` can be exported from `slides`; the error explains why not. */
|
|
26
|
+
export declare function validatePdfExportChoice(choice: PdfExportChoice, slides: readonly {
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
}[], currentIndex: number): PdfExportChoiceError | undefined;
|
|
29
|
+
/** Parse a slide-number field: a whole number, or `NaN`. */
|
|
30
|
+
export declare function parsePdfSlideNumber(value: string): number;
|
|
31
|
+
/**
|
|
32
|
+
* Whether File > Export > PDF asks for a range first. The picture export ("Save slides as
|
|
33
|
+
* pictures") always writes every slide, so it gets no options step rather than controls that
|
|
34
|
+
* would do nothing.
|
|
35
|
+
*/
|
|
36
|
+
export declare function pdfExportAsksForRange(settings: {
|
|
37
|
+
mode: 'vector' | 'pictures';
|
|
38
|
+
}): boolean;
|
|
39
|
+
//# sourceMappingURL=pdf-export-range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-export-range.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/pdf-export-range.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1D,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,EAAE,OAAO,CAAC;CAC7B;AAED,gGAAgG;AAChG,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,YAAY,CAAC;AAEjE,6FAA6F;AAC7F,wBAAgB,sBAAsB,CACrC,UAAU,EAAE,MAAM,EAClB,mBAAmB,EAAE,OAAO,GAC1B,eAAe,CAEjB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,eAAe,EACvB,YAAY,EAAE,MAAM,GAClB,iBAAiB,CAanB;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,SAAS;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,EACvC,YAAY,EAAE,MAAM,GAClB,oBAAoB,GAAG,SAAS,CAclC;AAED,4DAA4D;AAC5D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAA;CAAE,GAAG,OAAO,CAExF"}
|
|
@@ -17,6 +17,11 @@ export interface SlidePackageClipboardPaste {
|
|
|
17
17
|
}
|
|
18
18
|
export interface SlidePackageClipboardHost {
|
|
19
19
|
getSnapshot(): SlidePackageClipboardSnapshot | null;
|
|
20
|
+
/**
|
|
21
|
+
* A PNG of the first copied slide, offered to other applications beside the package (as
|
|
22
|
+
* PowerPoint does). Optional; a failed or missing picture never fails the copy.
|
|
23
|
+
*/
|
|
24
|
+
renderSlidePng?(index: number): Promise<Blob | null>;
|
|
20
25
|
/** Adopt the handler/model through the binding's single history transaction. */
|
|
21
26
|
commit(result: SlidePackageClipboardPaste): void;
|
|
22
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-package-clipboard.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/slide-package-clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,IAAI,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAmBhG,MAAM,WAAW,6BAA6B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC,CAAC,CAAC;IAC5E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,0BAA0B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,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C;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,yBAAyB;IACzC,WAAW,IAAI,6BAA6B,GAAG,IAAI,CAAC;IACpD;;;OAGG;IACH,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACrD,gFAAgF;IAChF,MAAM,CAAC,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAAC;CACjD;AAED,uFAAuF;AACvF,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,yBAAyB;IAchF,UAAU,OAAO,yBAAyB,GAAG,IAAI;IAG3C,IAAI,UAAU,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA0D/C,KAAK,WAAW,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4E5C,OAAO,IAAI,IAAI;EAQhB;AACD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy shapes to the system clipboard as well as the viewer's own clipboard: PowerPoint offers
|
|
3
|
+
* other applications a picture of the selection and its text, so a copied shape can be pasted
|
|
4
|
+
* into a chat, a mail or an image editor. The viewer keeps its in-memory element snapshot for
|
|
5
|
+
* pasting back into a deck; this module only adds the `image/png` and `text/plain` formats.
|
|
6
|
+
*
|
|
7
|
+
* Best effort and quiet: a browser without the asynchronous Clipboard API, a denied permission
|
|
8
|
+
* or a failed rendering never throws and never blocks the internal copy. Nothing is sent
|
|
9
|
+
* anywhere; the image is rendered locally from the mounted slide.
|
|
10
|
+
*
|
|
11
|
+
* @module render/system-clipboard-copy
|
|
12
|
+
*/
|
|
13
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
14
|
+
/** What reached the system clipboard. */
|
|
15
|
+
export type SystemClipboardCopyStatus = 'image-and-text' | 'text' | 'unavailable' | 'failed';
|
|
16
|
+
/** The clipboard surface used (a test seam; defaults to `navigator.clipboard`). */
|
|
17
|
+
export interface SystemClipboardTarget {
|
|
18
|
+
write?: (items: ClipboardItem[]) => Promise<void>;
|
|
19
|
+
writeText?: (text: string) => Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
interface ClipboardItemConstructor {
|
|
22
|
+
new (items: Record<string, Blob | PromiseLike<Blob>>): ClipboardItem;
|
|
23
|
+
supports?: (type: string) => boolean;
|
|
24
|
+
}
|
|
25
|
+
/** The plain text PowerPoint puts beside copied shapes: each shape's text, one per line. */
|
|
26
|
+
export declare function elementsClipboardText(elements: readonly PptxElement[]): string;
|
|
27
|
+
/**
|
|
28
|
+
* Write `text` and, when given, the PNG `image` (a promise, so the write starts inside the user
|
|
29
|
+
* gesture while the picture renders) to the system clipboard. Falls back to text alone when the
|
|
30
|
+
* image is unsupported or fails.
|
|
31
|
+
*/
|
|
32
|
+
export declare function writeSystemClipboard(input: {
|
|
33
|
+
text: string;
|
|
34
|
+
image?: Promise<Blob | null>;
|
|
35
|
+
}, target?: SystemClipboardTarget | undefined, Item?: ClipboardItemConstructor | undefined): Promise<SystemClipboardCopyStatus>;
|
|
36
|
+
/** Renders one mounted element node to a PNG data URL (each binding's picture rasteriser). */
|
|
37
|
+
export type ElementNodeRasterizer = (node: HTMLElement, elementId: string) => Promise<string | null>;
|
|
38
|
+
/**
|
|
39
|
+
* A PNG of the selected elements as they are drawn on the canvas: one rendering per element,
|
|
40
|
+
* placed by its on-screen box into the selection's bounding box. `null` when nothing is mounted.
|
|
41
|
+
*/
|
|
42
|
+
export declare function renderSelectionPng(doc: Document, elementIds: readonly string[], rasterize: ElementNodeRasterizer, scale?: number): Promise<Blob | null>;
|
|
43
|
+
/**
|
|
44
|
+
* The system half of Copy for slide elements: their text and, when a rasteriser is given, a
|
|
45
|
+
* picture of them. Call it from the copy command, after the internal snapshot is taken.
|
|
46
|
+
*/
|
|
47
|
+
export declare function copyElementsToSystemClipboard(input: {
|
|
48
|
+
elements: readonly PptxElement[];
|
|
49
|
+
doc?: Document;
|
|
50
|
+
rasterize?: ElementNodeRasterizer;
|
|
51
|
+
target?: SystemClipboardTarget;
|
|
52
|
+
}): Promise<SystemClipboardCopyStatus>;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=system-clipboard-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-clipboard-copy.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/system-clipboard-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD,yCAAyC;AACzC,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,MAAM,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE7F,mFAAmF;AACnF,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,UAAU,wBAAwB;IACjC,KAAK,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,aAAa,CAAC;IACrE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CACrC;AAED,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAE9E;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACzC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;CAAE,EACrD,MAAM,GAAE,qBAAqB,GAAG,SAA2C,EAC3E,IAAI,GAAE,wBAAwB,GAAG,SAElB,GACb,OAAO,CAAC,yBAAyB,CAAC,CAgDpC;AAED,8FAA8F;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CACnC,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,MAAM,KACb,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAsB5B;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,QAAQ,EACb,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,SAAS,EAAE,qBAAqB,EAChC,KAAK,SAAI,GACP,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAwCtB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACpD,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAC/B,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAerC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-edit-outcome.ts: what happens to the document and the selection
|
|
3
|
+
* when a table cell editor closes, decided once for every binding.
|
|
4
|
+
*
|
|
5
|
+
* A binding hands the editor's `TableCellEditEnd` here and maps the result:
|
|
6
|
+
* replace the element with `element` (one history entry) when it is set,
|
|
7
|
+
* then edit `edit` (Tab, Shift+Tab, an arrow at the text's edge), select
|
|
8
|
+
* `select` without editing (Escape, a grid paste), or simply stop editing
|
|
9
|
+
* (blur).
|
|
10
|
+
*
|
|
11
|
+
* @module render/table-cell-edit-outcome
|
|
12
|
+
*/
|
|
13
|
+
import type { PptxTableCell, TablePptxElement, TextSegment } from 'ooxml-core/pptx';
|
|
14
|
+
import type { TableCellCaret } from './table-cell-navigation.js';
|
|
15
|
+
import type { TableCellEditEnd } from './table-cell-text-editor.js';
|
|
16
|
+
export interface TableCellEditOutcome {
|
|
17
|
+
/** The updated element, when the document changed. */
|
|
18
|
+
element?: TablePptxElement;
|
|
19
|
+
/** The cell to edit next, with where its caret starts. */
|
|
20
|
+
edit?: {
|
|
21
|
+
row: number;
|
|
22
|
+
col: number;
|
|
23
|
+
caret: TableCellCaret;
|
|
24
|
+
};
|
|
25
|
+
/** The cell to leave selected (not editing). */
|
|
26
|
+
select?: {
|
|
27
|
+
row: number;
|
|
28
|
+
col: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface TableCellEditOptions {
|
|
32
|
+
/**
|
|
33
|
+
* The host's committed-text transform (Options > Proofing > AutoCorrect),
|
|
34
|
+
* given the edited text and the cell's previous text. Its changes are
|
|
35
|
+
* carried onto the runs like any other edit.
|
|
36
|
+
*/
|
|
37
|
+
transformText?: (text: string, previous?: string) => string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Resolve the end of an edit of cell `(row, col)` of `element`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveTableCellEditEnd(element: TablePptxElement, row: number, col: number, end: TableCellEditEnd, options?: TableCellEditOptions): TableCellEditOutcome;
|
|
43
|
+
/**
|
|
44
|
+
* A cell's content as the editor opens it (shared so every binding seeds it
|
|
45
|
+
* alike). Given the table element and the cell's position, each run keeps the
|
|
46
|
+
* markup it was read from, so saving the edit loses none of it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function tableCellEditorSegments(cell: PptxTableCell | undefined, element?: TablePptxElement, row?: number, col?: number): TextSegment[];
|
|
49
|
+
/**
|
|
50
|
+
* Paste clipboard text into a table with a cell (or a range of cells)
|
|
51
|
+
* selected and no cell being edited: tab-separated text fills cells from the
|
|
52
|
+
* selection's top-left cell, plain text goes into that cell. Returns the
|
|
53
|
+
* updated element, or `undefined` when there is nothing to paste.
|
|
54
|
+
*/
|
|
55
|
+
export declare function resolveTableCellsPaste(element: TablePptxElement, cells: ReadonlyArray<{
|
|
56
|
+
row: number;
|
|
57
|
+
col: number;
|
|
58
|
+
}>, text: string): TablePptxElement | undefined;
|
|
59
|
+
//# sourceMappingURL=table-cell-edit-outcome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell-edit-outcome.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-edit-outcome.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAapF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,MAAM,WAAW,oBAAoB;IACpC,sDAAsD;IACtD,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,0DAA0D;IAC1D,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAE,CAAC;IAC3D,gDAAgD;IAChD,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,oBAAoB;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5D;AAkBD;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,gBAAgB,EACzB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,gBAAgB,EACrB,OAAO,GAAE,oBAAyB,GAChC,oBAAoB,CAqCtB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,OAAO,CAAC,EAAE,gBAAgB,EAC1B,GAAG,CAAC,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,GACV,WAAW,EAAE,CASf;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,aAAa,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EAClD,IAAI,EAAE,MAAM,GACV,gBAAgB,GAAG,SAAS,CAW9B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-navigation.ts: where the caret goes when it leaves a table cell
|
|
3
|
+
* being edited, decided once for every binding.
|
|
4
|
+
*
|
|
5
|
+
* PowerPoint's table text keys: Tab moves to the next cell and selects its
|
|
6
|
+
* text, Shift+Tab to the previous one; Tab in the last cell adds a row and
|
|
7
|
+
* moves into it. An arrow key at the edge of the cell's text moves to the
|
|
8
|
+
* neighbouring cell (Left at the start, Right at the end, Up on the first
|
|
9
|
+
* line, Down on the last). Merged continuation cells are skipped: the move
|
|
10
|
+
* lands on the cell that owns the merge. `left` and `right` are logical
|
|
11
|
+
* (back and forward in reading order); in right-to-left text the arrow keys
|
|
12
|
+
* map onto them mirrored.
|
|
13
|
+
*
|
|
14
|
+
* @module render/table-cell-navigation
|
|
15
|
+
*/
|
|
16
|
+
import type { PptxTableData } from 'ooxml-core/pptx';
|
|
17
|
+
import type { InlineTextFormatProperty } from './editor-keymap-chords.js';
|
|
18
|
+
/** A move out of the edited cell. */
|
|
19
|
+
export type TableCellNavigationKey = 'next' | 'previous' | 'up' | 'down' | 'left' | 'right';
|
|
20
|
+
/** Where the caret lands in the cell it moves to. */
|
|
21
|
+
export type TableCellCaret = 'all' | 'start' | 'end';
|
|
22
|
+
/** The decision for one move. */
|
|
23
|
+
export type TableCellNavigation = {
|
|
24
|
+
kind: 'move';
|
|
25
|
+
row: number;
|
|
26
|
+
col: number;
|
|
27
|
+
caret: TableCellCaret;
|
|
28
|
+
}
|
|
29
|
+
/** Tab in the last cell: append a row, then edit `(row, col)` of it. */
|
|
30
|
+
| {
|
|
31
|
+
kind: 'append-row';
|
|
32
|
+
row: number;
|
|
33
|
+
col: number;
|
|
34
|
+
caret: 'all';
|
|
35
|
+
}
|
|
36
|
+
/** At the table's edge: the caret stays where it is. */
|
|
37
|
+
| {
|
|
38
|
+
kind: 'stay';
|
|
39
|
+
};
|
|
40
|
+
interface CellPos {
|
|
41
|
+
row: number;
|
|
42
|
+
col: number;
|
|
43
|
+
}
|
|
44
|
+
/** The cell that owns grid position `(row, col)`, walking back over merge continuations. */
|
|
45
|
+
export declare function tableCellOwner(data: PptxTableData, row: number, col: number): CellPos | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Resolve a move from the edited cell `from`. `left` and `right` follow the
|
|
48
|
+
* reading order (wrapping between rows) like Shift+Tab and Tab, but put the
|
|
49
|
+
* caret at the end or the start of the cell instead of selecting its text.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveTableCellNavigation(data: PptxTableData | undefined, from: CellPos, key: TableCellNavigationKey): TableCellNavigation;
|
|
52
|
+
/** Where the caret is in the cell's text, for the arrow-key boundaries. */
|
|
53
|
+
export interface TableCellCaretState {
|
|
54
|
+
/** The selection is a caret (nothing selected). */
|
|
55
|
+
collapsed: boolean;
|
|
56
|
+
atStart: boolean;
|
|
57
|
+
atEnd: boolean;
|
|
58
|
+
onFirstLine: boolean;
|
|
59
|
+
onLastLine: boolean;
|
|
60
|
+
/** The cell's text runs right to left (a right-to-left table or paragraph). */
|
|
61
|
+
rtl?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/** What a key press in the cell editor does. */
|
|
64
|
+
export type TableCellEditorKeyAction = {
|
|
65
|
+
kind: 'navigate';
|
|
66
|
+
key: TableCellNavigationKey;
|
|
67
|
+
} | {
|
|
68
|
+
kind: 'exit';
|
|
69
|
+
} | {
|
|
70
|
+
kind: 'paragraph';
|
|
71
|
+
} | {
|
|
72
|
+
kind: 'line-break';
|
|
73
|
+
} | {
|
|
74
|
+
kind: 'tab-character';
|
|
75
|
+
} | {
|
|
76
|
+
kind: 'format';
|
|
77
|
+
property: InlineTextFormatProperty;
|
|
78
|
+
} | {
|
|
79
|
+
kind: 'suppress';
|
|
80
|
+
};
|
|
81
|
+
/** The parts of a keyboard event the mapping reads. */
|
|
82
|
+
export interface TableCellEditorKeyInput {
|
|
83
|
+
key: string;
|
|
84
|
+
shiftKey: boolean;
|
|
85
|
+
ctrlKey: boolean;
|
|
86
|
+
metaKey: boolean;
|
|
87
|
+
altKey: boolean;
|
|
88
|
+
isComposing?: boolean;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Map a key press in the cell editor, or `null` to let the browser edit the
|
|
92
|
+
* text as usual. Escape leaves editing with the cell selected; the text typed
|
|
93
|
+
* so far is kept, as in PowerPoint.
|
|
94
|
+
*/
|
|
95
|
+
export declare function mapTableCellEditorKey(input: TableCellEditorKeyInput, caret: TableCellCaretState): TableCellEditorKeyAction | null;
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=table-cell-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell-navigation.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,qCAAqC;AACrC,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5F,qDAAqD;AACrD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;AAErD,iCAAiC;AACjC,MAAM,MAAM,mBAAmB,GAC5B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAA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AE,QAAQ,CAAC;IAAC,QAAQ,EAAE,wBAAwB,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAExB,uDAAuD;AACvD,MAAM,WAAW,uBAAuB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,uBAAuB,EAC9B,KAAK,EAAE,mBAAmB,GACxB,wBAAwB,GAAG,IAAI,CA6CjC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { cellRunsFromSegments, setCellSegments, setTableElementCellSegments, tableCellSegments, withCellSegments, } from 'ooxml-core/pptx/editor/render/table-cell-rich-text';
|
|
2
|
+
export { applyTableCellsTextStyle, withCellTextStyle, } from 'ooxml-core/pptx/editor/render/table-cells-text-style';
|
|
3
|
+
export type { TableCellRef, TableCellTextStyleUpdate, } from 'ooxml-core/pptx/editor/render/table-cells-text-style';
|
|
4
|
+
export { fillTableCells } from 'ooxml-core/pptx/editor/render/table-grid-fill';
|
|
5
|
+
export type { TableGridFill, TableGridWrite } from 'ooxml-core/pptx/editor/render/table-grid-fill';
|
|
6
|
+
export { editSegmentsText, segmentsPlainText, } from 'ooxml-core/pptx/editor/render/segments-text-edit';
|
|
7
|
+
//# sourceMappingURL=table-cell-rich-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell-rich-text.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-rich-text.ts"],"names":[],"mappings":"AACA,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,2BAA2B,EAC3B,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACN,wBAAwB,EACxB,iBAAiB,GACjB,MAAM,sDAAsD,CAAC;AAC9D,YAAY,EACX,YAAY,EACZ,wBAAwB,GACxB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACnG,OAAO,EACN,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-text-editor-dom.ts: the DOM half of the table cell text editor.
|
|
3
|
+
* Renders a cell's rich segments into a contenteditable root (one block per
|
|
4
|
+
* paragraph, one span per run, `<br data-cell-line-break>` for a soft break)
|
|
5
|
+
* and reads text and caret offsets back in the same coordinates the segments
|
|
6
|
+
* use: a paragraph or line break is one `\n`.
|
|
7
|
+
*
|
|
8
|
+
* Browser edits may add or drop wrappers; the reader only trusts text nodes,
|
|
9
|
+
* marked line breaks and block boundaries, so a stray placeholder `<br>` or an
|
|
10
|
+
* extra inline wrapper never changes the text.
|
|
11
|
+
*
|
|
12
|
+
* @module render/table-cell-text-editor-dom
|
|
13
|
+
*/
|
|
14
|
+
import type { TextSegment } from 'ooxml-core/pptx';
|
|
15
|
+
import type { TableCellCss } from './table-style.js';
|
|
16
|
+
/** The editor's text, breaks as `\n`. */
|
|
17
|
+
export declare function readCellEditorText(root: HTMLElement): string;
|
|
18
|
+
/** The text offset of a DOM position inside the editor. */
|
|
19
|
+
export declare function cellEditorOffsetOf(root: HTMLElement, node: Node, offset: number): number;
|
|
20
|
+
/** The current selection as text offsets, or `undefined` when it is outside the editor. */
|
|
21
|
+
export declare function readCellEditorSelection(root: HTMLElement): {
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
} | undefined;
|
|
25
|
+
/** Select text offsets `[start, end]` in the editor. */
|
|
26
|
+
export declare function setCellEditorSelection(root: HTMLElement, start: number, end?: number): void;
|
|
27
|
+
/** Render `segments` into `root`, replacing its content. */
|
|
28
|
+
export declare function renderCellEditorSegments(root: HTMLElement, segments: readonly TextSegment[], cellCss?: TableCellCss): void;
|
|
29
|
+
/**
|
|
30
|
+
* Where the caret sits for the arrow-key boundaries: at the start or end of
|
|
31
|
+
* the text, and on its first or last visual line. Lines come from layout
|
|
32
|
+
* rectangles; without layout (no rectangles) the first and last paragraphs
|
|
33
|
+
* stand in for them.
|
|
34
|
+
*/
|
|
35
|
+
export declare function readCellEditorCaret(root: HTMLElement): {
|
|
36
|
+
collapsed: boolean;
|
|
37
|
+
atStart: boolean;
|
|
38
|
+
atEnd: boolean;
|
|
39
|
+
onFirstLine: boolean;
|
|
40
|
+
onLastLine: boolean;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=table-cell-text-editor-dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell-text-editor-dom.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-text-editor-dom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA2ElD,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAE5D;AAED,2DAA2D;AAC3D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxF;AAED,2FAA2F;AAC3F,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,WAAW,GACf;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAY5C;AAkBD,wDAAwD;AACxD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAQ,GAAG,IAAI,CAc1F;AA8BD,4DAA4D;AAC5D,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,OAAO,CAAC,EAAE,YAAY,GACpB,IAAI,CAkDN;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACpB,CAwBA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-text-editor.ts: the rich text editor every binding mounts into a
|
|
3
|
+
* table cell being edited.
|
|
4
|
+
*
|
|
5
|
+
* It edits the cell's text as the shape text model does (`TextSegment`s,
|
|
6
|
+
* shared with shape text through `tableCellSegments`): runs keep their
|
|
7
|
+
* formatting while words in them are typed over, Enter starts a paragraph,
|
|
8
|
+
* Shift+Enter a line break, and Ctrl/Cmd+B, I and U format the selected text.
|
|
9
|
+
* Each `input` event carries its one contiguous edit onto the runs
|
|
10
|
+
* (`editSegmentsText`), so the browser owns the caret while typing and the
|
|
11
|
+
* runs are never guessed back from flat text.
|
|
12
|
+
*
|
|
13
|
+
* Leaving the cell is reported once through `onEnd`, with the committed
|
|
14
|
+
* segments (or `undefined` when nothing changed) and why: blur, a move
|
|
15
|
+
* (Tab, Shift+Tab, an arrow at the text's edge), Escape, or a paste of
|
|
16
|
+
* tab-separated text that fills cells. `resolveTableCellEditEnd` turns that
|
|
17
|
+
* into the document update and the next cell for every binding.
|
|
18
|
+
*
|
|
19
|
+
* @module render/table-cell-text-editor
|
|
20
|
+
*/
|
|
21
|
+
import type { TextSegment, TextStyle } from 'ooxml-core/pptx';
|
|
22
|
+
import type { TableCellCss } from './table-style.js';
|
|
23
|
+
import type { TableCellCaret, TableCellNavigationKey } from './table-cell-navigation.js';
|
|
24
|
+
/** Why the cell editor closed. */
|
|
25
|
+
export type TableCellEditReason = {
|
|
26
|
+
reason: 'blur' | 'exit' | 'detach';
|
|
27
|
+
} | {
|
|
28
|
+
reason: 'navigate';
|
|
29
|
+
key: TableCellNavigationKey;
|
|
30
|
+
} | {
|
|
31
|
+
reason: 'paste';
|
|
32
|
+
grid: string[][];
|
|
33
|
+
};
|
|
34
|
+
/** Why the cell editor closed, with what it committed. */
|
|
35
|
+
export type TableCellEditEnd = {
|
|
36
|
+
/** The edited segments, or `undefined` when the cell is unchanged. */
|
|
37
|
+
segments: TextSegment[] | undefined;
|
|
38
|
+
} & TableCellEditReason;
|
|
39
|
+
export interface TableCellTextEditorOptions {
|
|
40
|
+
/** Where the editor mounts; its content is left to the binding. */
|
|
41
|
+
host: HTMLElement;
|
|
42
|
+
/** The cell's content, from `tableCellSegments(cell)`. */
|
|
43
|
+
segments: TextSegment[];
|
|
44
|
+
/** The cell's resolved style, so runs render as they do on the slide. */
|
|
45
|
+
cellCss?: TableCellCss;
|
|
46
|
+
/** Where the caret starts: select everything (the default), start or end. */
|
|
47
|
+
caret?: TableCellCaret;
|
|
48
|
+
rtl?: boolean;
|
|
49
|
+
spellCheck?: boolean;
|
|
50
|
+
onEnd: (end: TableCellEditEnd) => void;
|
|
51
|
+
}
|
|
52
|
+
export interface TableCellTextEditorSession {
|
|
53
|
+
/** The contenteditable surface. */
|
|
54
|
+
readonly element: HTMLElement;
|
|
55
|
+
/** The segments as edited so far. */
|
|
56
|
+
segments(): TextSegment[];
|
|
57
|
+
/** Format the selected text (the word at the caret when nothing is selected). */
|
|
58
|
+
applyTextStyle(updates: Partial<TextStyle>): void;
|
|
59
|
+
/** Close the editor; reports `detach` when it was still open. */
|
|
60
|
+
destroy(): void;
|
|
61
|
+
}
|
|
62
|
+
/** Open the rich cell editor inside `options.host`. */
|
|
63
|
+
export declare function openTableCellTextEditor(options: TableCellTextEditorOptions): TableCellTextEditorSession;
|
|
64
|
+
//# sourceMappingURL=table-cell-text-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell-text-editor.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-text-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAYtF,kCAAkC;AAClC,MAAM,MAAM,mBAAmB,GAC5B;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,GACtC;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,sBAAsB,CAAA;CAAE,GACnD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;CAAE,CAAC;AAEzC,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG;IAC9B,sEAAsE;IACtE,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;CACpC,GAAG,mBAAmB,CAAC;AAExB,MAAM,WAAW,0BAA0B;IAC1C,mEAAmE;IACnE,IAAI,EAAE,WAAW,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,yEAAyE;IACzE,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC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