ooxml-core 1.50.2 → 1.51.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 +11 -0
- package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
- package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
- package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
- package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
- package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
- package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
- package/dist/automation/index.cjs +5806 -4494
- package/dist/automation/index.mjs +5806 -4494
- package/dist/chunk-25IJEN7R.cjs +36 -0
- package/dist/chunk-25JN3ZQM.mjs +58 -0
- package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
- package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
- package/dist/chunk-554UZLPS.mjs +237 -0
- package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
- package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
- package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
- package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
- package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
- package/dist/chunk-GI4Y6BBX.mjs +21 -0
- package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
- package/dist/chunk-HWL2AGLD.cjs +98 -0
- package/dist/chunk-HZAB3YDO.cjs +234 -0
- package/dist/chunk-IDATIFCG.mjs +226 -0
- package/dist/chunk-LO55N7VL.cjs +247 -0
- package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
- package/dist/chunk-MUNEIE2J.cjs +62 -0
- package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
- package/dist/chunk-TOBK5FC4.mjs +88 -0
- package/dist/chunk-UV4LMGVZ.mjs +31 -0
- package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
- package/dist/chunk-W7LVJC32.cjs +25 -0
- package/dist/chunk-WAZ7T2BL.cjs +169 -0
- package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
- package/dist/docx/auto-number-fields.d.ts +22 -0
- package/dist/docx/auto-number-fields.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/character-styles.d.ts.map +1 -1
- package/dist/docx/clipboard/css.d.ts +21 -0
- package/dist/docx/clipboard/css.d.ts.map +1 -0
- package/dist/docx/clipboard/html-tokens.d.ts +38 -0
- package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
- package/dist/docx/clipboard/index.d.ts +6 -0
- package/dist/docx/clipboard/index.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fields.d.ts +13 -0
- package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fragment.d.ts +14 -0
- package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
- package/dist/docx/clipboard/word-html.d.ts +22 -0
- package/dist/docx/clipboard/word-html.d.ts.map +1 -0
- package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
- package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
- package/dist/docx/clipboard/word-lists.d.ts +13 -0
- package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
- package/dist/docx/clipboard/word-runs.d.ts +18 -0
- package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
- package/dist/docx/clipboard/word-styles.d.ts +35 -0
- package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
- package/dist/docx/compare/build.d.ts +48 -0
- package/dist/docx/compare/build.d.ts.map +1 -0
- package/dist/docx/compare/compare.d.ts +18 -0
- package/dist/docx/compare/compare.d.ts.map +1 -0
- package/dist/docx/compare/context.d.ts +42 -0
- package/dist/docx/compare/context.d.ts.map +1 -0
- package/dist/docx/compare/diff.d.ts +20 -0
- package/dist/docx/compare/diff.d.ts.map +1 -0
- package/dist/docx/compare/index.d.ts +4 -0
- package/dist/docx/compare/index.d.ts.map +1 -0
- package/dist/docx/compare/slide.d.ts +9 -0
- package/dist/docx/compare/slide.d.ts.map +1 -0
- package/dist/docx/compare/spans.d.ts +13 -0
- package/dist/docx/compare/spans.d.ts.map +1 -0
- package/dist/docx/compare/story.d.ts +7 -0
- package/dist/docx/compare/story.d.ts.map +1 -0
- package/dist/docx/compare/table.d.ts +23 -0
- package/dist/docx/compare/table.d.ts.map +1 -0
- package/dist/docx/compare/tokens.d.ts +50 -0
- package/dist/docx/compare/tokens.d.ts.map +1 -0
- package/dist/docx/compare/types.d.ts +51 -0
- package/dist/docx/compare/types.d.ts.map +1 -0
- package/dist/docx/compatibility.d.ts +46 -0
- package/dist/docx/compatibility.d.ts.map +1 -0
- package/dist/docx/computed-fields.d.ts +39 -0
- package/dist/docx/computed-fields.d.ts.map +1 -0
- package/dist/docx/doc-property-field.d.ts +17 -0
- package/dist/docx/doc-property-field.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +2 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing-wrap.d.ts +21 -0
- package/dist/docx/drawing-wrap.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +3965 -2313
- package/dist/docx/embedded.mjs +3965 -2313
- package/dist/docx/field-format.d.ts +45 -0
- package/dist/docx/field-format.d.ts.map +1 -0
- package/dist/docx/field-result-spans.d.ts +62 -0
- package/dist/docx/field-result-spans.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts.map +1 -1
- package/dist/docx/field-stories.d.ts +9 -0
- package/dist/docx/field-stories.d.ts.map +1 -0
- package/dist/docx/find-stories.d.ts +27 -0
- package/dist/docx/find-stories.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +19 -0
- package/dist/docx/highlight.d.ts.map +1 -1
- package/dist/docx/hyperlink.d.ts +7 -0
- package/dist/docx/hyperlink.d.ts.map +1 -1
- package/dist/docx/index.cjs +7359 -3476
- package/dist/docx/index.d.ts +13 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +7327 -3476
- package/dist/docx/inline-model.d.ts +21 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/inline-slots.d.ts.map +1 -1
- package/dist/docx/inspect-document.d.ts +21 -0
- package/dist/docx/inspect-document.d.ts.map +1 -0
- package/dist/docx/kinsoku-settings.d.ts +9 -0
- package/dist/docx/kinsoku-settings.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
- package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/computed-field-runs.d.ts +8 -0
- package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +3 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-floating-table.d.ts +13 -0
- package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2280 -941
- package/dist/docx/layout/index.mjs +2276 -942
- package/dist/docx/layout/input.d.ts +50 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/page-flow.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +12 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
- package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
- package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit.d.ts +10 -0
- package/dist/docx/layout/table-autofit.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/text-breaks.d.ts +38 -13
- package/dist/docx/layout/text-breaks.d.ts.map +1 -1
- package/dist/docx/layout/wrap.d.ts +1 -1
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/list-number-fields.d.ts +25 -0
- package/dist/docx/list-number-fields.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +4355 -2703
- package/dist/docx/load/index.mjs +4355 -2703
- package/dist/docx/model-paragraph.d.ts +12 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +26 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/note-convert.d.ts +45 -0
- package/dist/docx/note-convert.d.ts.map +1 -0
- package/dist/docx/numbering-counters.d.ts +17 -0
- package/dist/docx/numbering-counters.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +11 -2
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/outline-numbering.d.ts +6 -0
- package/dist/docx/outline-numbering.d.ts.map +1 -0
- package/dist/docx/package-information-save.d.ts +9 -0
- package/dist/docx/package-information-save.d.ts.map +1 -0
- package/dist/docx/package-information.d.ts +43 -0
- package/dist/docx/package-information.d.ts.map +1 -0
- package/dist/docx/package-properties.d.ts +5 -0
- package/dist/docx/package-properties.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +2 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-revisions.d.ts +2 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -1
- package/dist/docx/parse-table-floating.d.ts +5 -0
- package/dist/docx/parse-table-floating.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/personal-information.d.ts +18 -0
- package/dist/docx/personal-information.d.ts.map +1 -0
- package/dist/docx/picture-crop-edit.d.ts +18 -0
- package/dist/docx/picture-crop-edit.d.ts.map +1 -0
- package/dist/docx/picture-watermark.d.ts +29 -0
- package/dist/docx/picture-watermark.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/remove-document-information.d.ts +8 -0
- package/dist/docx/remove-document-information.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +6 -1
- package/dist/docx/revision-commands.d.ts.map +1 -1
- package/dist/docx/revision-ids.d.ts.map +1 -1
- package/dist/docx/run-language.d.ts +9 -0
- package/dist/docx/run-language.d.ts.map +1 -0
- package/dist/docx/run-properties-snapshot.d.ts +9 -0
- package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +4 -0
- package/dist/docx/run-style-model.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +2 -1
- package/dist/docx/save-modified.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-ref-fields.d.ts +1 -8
- package/dist/docx/style-ref-fields.d.ts.map +1 -1
- package/dist/docx/symbol-field.d.ts +21 -0
- package/dist/docx/symbol-field.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -1
- package/dist/docx/table-defaults.d.ts +2 -0
- package/dist/docx/table-defaults.d.ts.map +1 -1
- package/dist/docx/table-margins.d.ts +18 -0
- package/dist/docx/table-margins.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +23 -0
- package/dist/docx/table-model.d.ts.map +1 -1
- package/dist/docx/table-structure-check.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +787 -435
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +784 -436
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/ui/schema-marks.d.ts +2 -19
- package/dist/docx/ui/schema-marks.d.ts.map +1 -1
- package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
- package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
- package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
- package/dist/docx/write-drawing-wrap.d.ts +22 -0
- package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-revisions.d.ts +3 -1
- package/dist/docx/write-revisions.d.ts.map +1 -1
- package/dist/docx/write-shape.d.ts.map +1 -1
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write.d.ts.map +1 -1
- package/dist/drawingml/html-text-paste.d.ts +28 -0
- package/dist/drawingml/html-text-paste.d.ts.map +1 -0
- package/dist/drawingml/html-text-style.d.ts +18 -0
- package/dist/drawingml/html-text-style.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +762 -0
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +760 -1
- package/dist/index.cjs +1147 -251
- package/dist/index.mjs +1147 -251
- package/dist/pptx/automation/index.cjs +561 -180
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +504 -124
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +16 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
- package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
- package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
- package/dist/pptx/editor/render/slide-operations.cjs +12 -9
- package/dist/pptx/editor/render/slide-operations.mjs +6 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
- package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
- package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
- package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +2 -2
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
- package/dist/pptx/index.cjs +519 -201
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +2 -2
- package/dist/teams/index.cjs +35 -25
- package/dist/teams/index.mjs +35 -25
- package/dist/text/complex-breaks.d.ts +24 -0
- package/dist/text/complex-breaks.d.ts.map +1 -0
- package/dist/text/east-asian.d.ts +32 -0
- package/dist/text/east-asian.d.ts.map +1 -0
- package/dist/text/html-tokens.d.ts +45 -0
- package/dist/text/html-tokens.d.ts.map +1 -0
- package/dist/text/index.cjs +477 -62
- package/dist/text/index.d.ts +5 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +456 -63
- package/dist/text/kinsoku.d.ts +55 -0
- package/dist/text/kinsoku.d.ts.map +1 -0
- package/dist/text/truetype/embedding.d.ts +42 -0
- package/dist/text/truetype/embedding.d.ts.map +1 -0
- package/dist/text/windows-1252.d.ts +10 -0
- package/dist/text/windows-1252.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +10 -6
- package/dist/xlsx/collab/index.mjs +10 -6
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +96 -51
- package/dist/xlsx/index.mjs +96 -51
- package/dist/xlsx/load/index.cjs +10 -6
- package/dist/xlsx/load/index.mjs +10 -6
- package/dist/xlsx/ui/index.cjs +97 -52
- package/dist/xlsx/ui/index.mjs +97 -52
- package/package.json +1 -1
- package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
- package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
- package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
- package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
- package/dist/chunk-X4RL5AZ7.cjs +0 -120
- package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
- package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
package/dist/pptx/cli/index.cjs
CHANGED
|
@@ -83183,9 +83183,9 @@ var init_table_cell_fill_border_helpers = __esm({
|
|
|
83183
83183
|
});
|
|
83184
83184
|
|
|
83185
83185
|
// pptx/core/core/builders/table-cell-paragraphs.ts
|
|
83186
|
-
function sizePt(
|
|
83186
|
+
function sizePt(runProperties4) {
|
|
83187
83187
|
const size = Number.parseInt(
|
|
83188
|
-
String(
|
|
83188
|
+
String(runProperties4?.["@_sz"] ?? ""),
|
|
83189
83189
|
10
|
|
83190
83190
|
);
|
|
83191
83191
|
return Number.isFinite(size) && size > 0 ? size / 100 : void 0;
|
|
@@ -83501,9 +83501,9 @@ var init_paragraph_sibling_order = __esm({
|
|
|
83501
83501
|
});
|
|
83502
83502
|
|
|
83503
83503
|
// pptx/core/core/builders/table-cell-runs.ts
|
|
83504
|
-
function runFontFamily(
|
|
83504
|
+
function runFontFamily(runProperties4) {
|
|
83505
83505
|
for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
|
|
83506
|
-
const typeface =
|
|
83506
|
+
const typeface = runProperties4?.[key2]?.["@_typeface"];
|
|
83507
83507
|
const name = String(typeface ?? "").trim();
|
|
83508
83508
|
if (name) {
|
|
83509
83509
|
return name;
|
|
@@ -83511,45 +83511,45 @@ function runFontFamily(runProperties3) {
|
|
|
83511
83511
|
}
|
|
83512
83512
|
return void 0;
|
|
83513
83513
|
}
|
|
83514
|
-
function runLanguage(
|
|
83515
|
-
return String(
|
|
83514
|
+
function runLanguage(runProperties4) {
|
|
83515
|
+
return String(runProperties4?.["@_lang"] ?? "").trim() || void 0;
|
|
83516
83516
|
}
|
|
83517
|
-
function applyRunProperties(run2,
|
|
83518
|
-
if (!
|
|
83517
|
+
function applyRunProperties(run2, runProperties4, context) {
|
|
83518
|
+
if (!runProperties4) {
|
|
83519
83519
|
return;
|
|
83520
83520
|
}
|
|
83521
|
-
if (
|
|
83521
|
+
if (runProperties4["@_b"] === "1") {
|
|
83522
83522
|
run2.bold = true;
|
|
83523
83523
|
}
|
|
83524
|
-
if (
|
|
83524
|
+
if (runProperties4["@_i"] === "1") {
|
|
83525
83525
|
run2.italic = true;
|
|
83526
83526
|
}
|
|
83527
|
-
const underline =
|
|
83527
|
+
const underline = runProperties4["@_u"];
|
|
83528
83528
|
if (underline !== void 0 && underline !== null && String(underline) !== "none") {
|
|
83529
83529
|
run2.underline = true;
|
|
83530
83530
|
}
|
|
83531
|
-
if (
|
|
83531
|
+
if (runProperties4["@_strike"] && String(runProperties4["@_strike"]) !== "noStrike") {
|
|
83532
83532
|
run2.strikethrough = true;
|
|
83533
83533
|
}
|
|
83534
|
-
const size = parseInt(String(
|
|
83534
|
+
const size = parseInt(String(runProperties4["@_sz"] ?? ""), 10);
|
|
83535
83535
|
if (Number.isFinite(size) && size > 0) {
|
|
83536
83536
|
run2.fontSize = size / 100;
|
|
83537
83537
|
}
|
|
83538
|
-
if (
|
|
83539
|
-
const color3 = context.parseColor(
|
|
83538
|
+
if (runProperties4["a:solidFill"]) {
|
|
83539
|
+
const color3 = context.parseColor(runProperties4["a:solidFill"]);
|
|
83540
83540
|
if (color3) {
|
|
83541
83541
|
run2.color = color3;
|
|
83542
83542
|
}
|
|
83543
83543
|
}
|
|
83544
|
-
const fontFamily = runFontFamily(
|
|
83544
|
+
const fontFamily = runFontFamily(runProperties4);
|
|
83545
83545
|
if (fontFamily) {
|
|
83546
83546
|
run2.fontFamily = fontFamily;
|
|
83547
83547
|
}
|
|
83548
|
-
const baseline = parseInt(String(
|
|
83548
|
+
const baseline = parseInt(String(runProperties4["@_baseline"] ?? ""), 10);
|
|
83549
83549
|
if (Number.isFinite(baseline) && baseline !== 0) {
|
|
83550
83550
|
run2.baseline = baseline;
|
|
83551
83551
|
}
|
|
83552
|
-
const spacing2 = parseInt(String(
|
|
83552
|
+
const spacing2 = parseInt(String(runProperties4["@_spc"] ?? ""), 10);
|
|
83553
83553
|
if (Number.isFinite(spacing2) && spacing2 !== 0) {
|
|
83554
83554
|
run2.characterSpacing = spacing2;
|
|
83555
83555
|
}
|
|
@@ -83651,14 +83651,14 @@ function applyCellTextFormat(tableCell, style, context) {
|
|
|
83651
83651
|
hasStyle = true;
|
|
83652
83652
|
}
|
|
83653
83653
|
const firstRun = context.ensureArray(firstParagraph["a:r"])[0];
|
|
83654
|
-
const
|
|
83655
|
-
if (!
|
|
83654
|
+
const runProperties4 = firstRun?.["a:rPr"];
|
|
83655
|
+
if (!runProperties4) {
|
|
83656
83656
|
if (!hasContent2(tableCell, context)) {
|
|
83657
83657
|
hasStyle = applyEndParagraphSize(firstParagraph, style) || hasStyle;
|
|
83658
83658
|
}
|
|
83659
83659
|
return hasStyle;
|
|
83660
83660
|
}
|
|
83661
|
-
hasStyle = applyRunProperties2(
|
|
83661
|
+
hasStyle = applyRunProperties2(runProperties4, style, context) || hasStyle;
|
|
83662
83662
|
return hasStyle;
|
|
83663
83663
|
}
|
|
83664
83664
|
function hasContent2(tableCell, context) {
|
|
@@ -83680,26 +83680,26 @@ function applyEndParagraphSize(paragraph2, style) {
|
|
|
83680
83680
|
style.fontSize = size / 100;
|
|
83681
83681
|
return true;
|
|
83682
83682
|
}
|
|
83683
|
-
function applyRunProperties2(
|
|
83683
|
+
function applyRunProperties2(runProperties4, style, context) {
|
|
83684
83684
|
let hasStyle = false;
|
|
83685
|
-
if (
|
|
83685
|
+
if (runProperties4["@_b"] === "1") {
|
|
83686
83686
|
style.bold = true;
|
|
83687
83687
|
hasStyle = true;
|
|
83688
83688
|
}
|
|
83689
|
-
if (
|
|
83689
|
+
if (runProperties4["@_i"] === "1") {
|
|
83690
83690
|
style.italic = true;
|
|
83691
83691
|
hasStyle = true;
|
|
83692
83692
|
}
|
|
83693
|
-
if (
|
|
83693
|
+
if (runProperties4["@_u"] && runProperties4["@_u"] !== "none") {
|
|
83694
83694
|
style.underline = true;
|
|
83695
83695
|
hasStyle = true;
|
|
83696
83696
|
}
|
|
83697
|
-
if (
|
|
83698
|
-
style.fontSize = parseInt(String(
|
|
83697
|
+
if (runProperties4["@_sz"]) {
|
|
83698
|
+
style.fontSize = parseInt(String(runProperties4["@_sz"]), 10) / 100;
|
|
83699
83699
|
hasStyle = true;
|
|
83700
83700
|
}
|
|
83701
|
-
if (
|
|
83702
|
-
const textColor = context.parseColor(
|
|
83701
|
+
if (runProperties4["a:solidFill"]) {
|
|
83702
|
+
const textColor = context.parseColor(runProperties4["a:solidFill"]);
|
|
83703
83703
|
if (textColor) {
|
|
83704
83704
|
style.color = textColor;
|
|
83705
83705
|
hasStyle = true;
|
|
@@ -83707,7 +83707,7 @@ function applyRunProperties2(runProperties3, style, context) {
|
|
|
83707
83707
|
}
|
|
83708
83708
|
for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
|
|
83709
83709
|
const typeface = String(
|
|
83710
|
-
|
|
83710
|
+
runProperties4[key2]?.["@_typeface"] ?? ""
|
|
83711
83711
|
).trim();
|
|
83712
83712
|
if (typeface) {
|
|
83713
83713
|
style.fontFamily = typeface;
|
|
@@ -83715,11 +83715,11 @@ function applyRunProperties2(runProperties3, style, context) {
|
|
|
83715
83715
|
break;
|
|
83716
83716
|
}
|
|
83717
83717
|
}
|
|
83718
|
-
hasStyle = applyTextEffects(
|
|
83718
|
+
hasStyle = applyTextEffects(runProperties4, style, context) || hasStyle;
|
|
83719
83719
|
return hasStyle;
|
|
83720
83720
|
}
|
|
83721
|
-
function applyTextEffects(
|
|
83722
|
-
const effectLst =
|
|
83721
|
+
function applyTextEffects(runProperties4, style, context) {
|
|
83722
|
+
const effectLst = runProperties4["a:effectLst"];
|
|
83723
83723
|
if (!effectLst) {
|
|
83724
83724
|
return false;
|
|
83725
83725
|
}
|
|
@@ -112538,6 +112538,9 @@ function isEotFormat(data) {
|
|
|
112538
112538
|
const magic = readUint16LE(data, EOT_MAGIC_OFFSET);
|
|
112539
112539
|
return magic === EOT_MAGIC;
|
|
112540
112540
|
}
|
|
112541
|
+
function readEotFsType(data) {
|
|
112542
|
+
return isEotFormat(data) ? readUint16LE(data, 32) : void 0;
|
|
112543
|
+
}
|
|
112541
112544
|
function parseEotHeader(data) {
|
|
112542
112545
|
if (!isEotFormat(data)) {
|
|
112543
112546
|
return null;
|
|
@@ -112636,6 +112639,9 @@ var init_eot_parser = __esm({
|
|
|
112636
112639
|
});
|
|
112637
112640
|
|
|
112638
112641
|
// pptx/core/utils/deferred-embedded-font.ts
|
|
112642
|
+
function fsTypeField(source2) {
|
|
112643
|
+
return source2.fsType === void 0 ? {} : { fsType: source2.fsType };
|
|
112644
|
+
}
|
|
112639
112645
|
function resolveEmbeddedFontGuid(source2) {
|
|
112640
112646
|
if (isEotFormat(source2.originalPartBytes)) {
|
|
112641
112647
|
return void 0;
|
|
@@ -112735,15 +112741,16 @@ function decodeEmbeddedFontPart(source2) {
|
|
|
112735
112741
|
partPath,
|
|
112736
112742
|
fontGuid,
|
|
112737
112743
|
originalRId: source2.originalRId,
|
|
112738
|
-
originalPartBytes
|
|
112744
|
+
originalPartBytes,
|
|
112745
|
+
...fsTypeField(source2)
|
|
112739
112746
|
};
|
|
112740
112747
|
} catch {
|
|
112741
112748
|
return null;
|
|
112742
112749
|
}
|
|
112743
112750
|
}
|
|
112744
|
-
function createDeferredEmbeddedFont(source2) {
|
|
112751
|
+
function createDeferredEmbeddedFont(source2, options2 = {}) {
|
|
112745
112752
|
const fontGuid = resolveEmbeddedFontGuid(source2);
|
|
112746
|
-
let fields;
|
|
112753
|
+
let fields = options2.withheld ? { dataUrl: "", format: void 0, rawFontData: void 0 } : void 0;
|
|
112747
112754
|
let pending;
|
|
112748
112755
|
const decode = () => {
|
|
112749
112756
|
if (!fields) {
|
|
@@ -112781,7 +112788,8 @@ function createDeferredEmbeddedFont(source2) {
|
|
|
112781
112788
|
partPath: source2.partPath,
|
|
112782
112789
|
fontGuid,
|
|
112783
112790
|
originalRId: source2.originalRId,
|
|
112784
|
-
originalPartBytes: source2.originalPartBytes
|
|
112791
|
+
originalPartBytes: source2.originalPartBytes,
|
|
112792
|
+
...fsTypeField(source2)
|
|
112785
112793
|
};
|
|
112786
112794
|
Object.defineProperties(font, {
|
|
112787
112795
|
load: {
|
|
@@ -112793,11 +112801,11 @@ function createDeferredEmbeddedFont(source2) {
|
|
|
112793
112801
|
});
|
|
112794
112802
|
return font;
|
|
112795
112803
|
}
|
|
112804
|
+
function createWithheldEmbeddedFont(source2) {
|
|
112805
|
+
return createDeferredEmbeddedFont(source2, { withheld: true });
|
|
112806
|
+
}
|
|
112796
112807
|
function shouldSaveEmbeddedFontVerbatim(font) {
|
|
112797
|
-
if (font.
|
|
112798
|
-
return false;
|
|
112799
|
-
}
|
|
112800
|
-
if (!font.originalRId || !font.partPath) {
|
|
112808
|
+
if (!font.originalPartBytes?.length || !font.originalRId || !font.partPath) {
|
|
112801
112809
|
return false;
|
|
112802
112810
|
}
|
|
112803
112811
|
return font.isLoaded === false || !font.rawFontData?.length;
|
|
@@ -112809,6 +112817,99 @@ var init_deferred_embedded_font = __esm({
|
|
|
112809
112817
|
}
|
|
112810
112818
|
});
|
|
112811
112819
|
|
|
112820
|
+
// text/truetype/embedding.ts
|
|
112821
|
+
function embeddingPermission(fsType) {
|
|
112822
|
+
const licence = fsType & EDITABLE ? "editable" : fsType & PREVIEW_PRINT ? "preview-print" : fsType & RESTRICTED ? "restricted" : "installable";
|
|
112823
|
+
return {
|
|
112824
|
+
licence,
|
|
112825
|
+
noSubsetting: (fsType & NO_SUBSETTING) !== 0,
|
|
112826
|
+
bitmapOnly: (fsType & BITMAP_ONLY) !== 0
|
|
112827
|
+
};
|
|
112828
|
+
}
|
|
112829
|
+
function mayDisplayEmbeddedFont(permission) {
|
|
112830
|
+
return permission.licence !== "restricted";
|
|
112831
|
+
}
|
|
112832
|
+
function mayEmbedFontInEditableDocument(permission) {
|
|
112833
|
+
return (permission.licence === "installable" || permission.licence === "editable") && !permission.bitmapOnly;
|
|
112834
|
+
}
|
|
112835
|
+
function readSfntFsType(data, header) {
|
|
112836
|
+
const byte = (offset) => header && offset < header.length ? header[offset] : data[offset];
|
|
112837
|
+
const u16 = (offset) => {
|
|
112838
|
+
const hi = byte(offset);
|
|
112839
|
+
const lo = byte(offset + 1);
|
|
112840
|
+
return hi === void 0 || lo === void 0 ? void 0 : hi << 8 | lo;
|
|
112841
|
+
};
|
|
112842
|
+
const u32 = (offset) => {
|
|
112843
|
+
const hi = u16(offset);
|
|
112844
|
+
const lo = u16(offset + 2);
|
|
112845
|
+
return hi === void 0 || lo === void 0 ? void 0 : hi * 65536 + lo;
|
|
112846
|
+
};
|
|
112847
|
+
let base = 0;
|
|
112848
|
+
if (u32(0) === TTC_TAG) {
|
|
112849
|
+
const first2 = u32(12);
|
|
112850
|
+
if (first2 === void 0) return void 0;
|
|
112851
|
+
base = first2;
|
|
112852
|
+
}
|
|
112853
|
+
const version = u32(base);
|
|
112854
|
+
if (version === void 0 || !SFNT_VERSIONS.has(version)) return void 0;
|
|
112855
|
+
const numTables = u16(base + 4) ?? 0;
|
|
112856
|
+
for (let i2 = 0; i2 < numTables; i2++) {
|
|
112857
|
+
const record2 = base + 12 + i2 * 16;
|
|
112858
|
+
const tag = u32(record2);
|
|
112859
|
+
if (tag === void 0) return void 0;
|
|
112860
|
+
if (tag === OS2_TAG) {
|
|
112861
|
+
const offset = u32(record2 + 8);
|
|
112862
|
+
return offset === void 0 ? void 0 : u16(offset + 8);
|
|
112863
|
+
}
|
|
112864
|
+
}
|
|
112865
|
+
return void 0;
|
|
112866
|
+
}
|
|
112867
|
+
var RESTRICTED, PREVIEW_PRINT, EDITABLE, NO_SUBSETTING, BITMAP_ONLY, SFNT_VERSIONS, TTC_TAG, OS2_TAG;
|
|
112868
|
+
var init_embedding = __esm({
|
|
112869
|
+
"text/truetype/embedding.ts"() {
|
|
112870
|
+
RESTRICTED = 2;
|
|
112871
|
+
PREVIEW_PRINT = 4;
|
|
112872
|
+
EDITABLE = 8;
|
|
112873
|
+
NO_SUBSETTING = 256;
|
|
112874
|
+
BITMAP_ONLY = 512;
|
|
112875
|
+
SFNT_VERSIONS = /* @__PURE__ */ new Set([65536, 1330926671, 1953658213]);
|
|
112876
|
+
TTC_TAG = 1953784678;
|
|
112877
|
+
OS2_TAG = 1330851634;
|
|
112878
|
+
}
|
|
112879
|
+
});
|
|
112880
|
+
|
|
112881
|
+
// pptx/core/utils/embedded-font-permission.ts
|
|
112882
|
+
function readEmbeddedFontPartFsType(partBytes, guid) {
|
|
112883
|
+
const eot = readEotFsType(partBytes);
|
|
112884
|
+
if (eot !== void 0) {
|
|
112885
|
+
return eot;
|
|
112886
|
+
}
|
|
112887
|
+
if (!guid) {
|
|
112888
|
+
return readSfntFsType(partBytes);
|
|
112889
|
+
}
|
|
112890
|
+
const header = deobfuscateFont(
|
|
112891
|
+
partBytes.subarray(0, Math.min(partBytes.length, OBFUSCATED_HEADER_BYTES)),
|
|
112892
|
+
guid
|
|
112893
|
+
);
|
|
112894
|
+
return readSfntFsType(partBytes, header);
|
|
112895
|
+
}
|
|
112896
|
+
function mayDisplayFontWithFsType(fsType) {
|
|
112897
|
+
return fsType === void 0 || mayDisplayEmbeddedFont(embeddingPermission(fsType));
|
|
112898
|
+
}
|
|
112899
|
+
function mayNewlyEmbedFontData(font, fontData) {
|
|
112900
|
+
const fsType = readSfntFsType(fontData) ?? font.fsType;
|
|
112901
|
+
return fsType === void 0 || mayEmbedFontInEditableDocument(embeddingPermission(fsType));
|
|
112902
|
+
}
|
|
112903
|
+
var OBFUSCATED_HEADER_BYTES;
|
|
112904
|
+
var init_embedded_font_permission = __esm({
|
|
112905
|
+
"pptx/core/utils/embedded-font-permission.ts"() {
|
|
112906
|
+
init_embedding();
|
|
112907
|
+
init_eot_parser();
|
|
112908
|
+
init_font_deobfuscation();
|
|
112909
|
+
OBFUSCATED_HEADER_BYTES = 32;
|
|
112910
|
+
}
|
|
112911
|
+
});
|
|
112912
|
+
|
|
112812
112913
|
// pptx/core/core/runtime/header-footer-parts.ts
|
|
112813
112914
|
function asArray3(value) {
|
|
112814
112915
|
if (Array.isArray(value)) {
|
|
@@ -137746,9 +137847,9 @@ function buildGroupPropertiesXml(rawGroupXml, xfrm) {
|
|
|
137746
137847
|
if (!rawProps) {
|
|
137747
137848
|
return { "a:xfrm": xfrm };
|
|
137748
137849
|
}
|
|
137749
|
-
const
|
|
137750
|
-
delete
|
|
137751
|
-
return { "a:xfrm": xfrm, ...
|
|
137850
|
+
const clone4 = cloneXmlNode(rawProps);
|
|
137851
|
+
delete clone4["a:xfrm"];
|
|
137852
|
+
return { "a:xfrm": xfrm, ...clone4 };
|
|
137752
137853
|
}
|
|
137753
137854
|
function appendGroupChildren2(grpXml2, entries) {
|
|
137754
137855
|
const extLst = grpXml2["p:extLst"];
|
|
@@ -138934,8 +139035,8 @@ var init_PptxHandlerRuntimeTextRunEffects = __esm({
|
|
|
138934
139035
|
* Parse hyperlink-related properties (a:hlinkClick, a:hlinkMouseOver) from
|
|
138935
139036
|
* run-level XML and apply them to the given TextStyle.
|
|
138936
139037
|
*/
|
|
138937
|
-
applyHyperlinkStyle(style,
|
|
138938
|
-
const hyperlinkNode =
|
|
139038
|
+
applyHyperlinkStyle(style, runProperties4, relationshipMap) {
|
|
139039
|
+
const hyperlinkNode = runProperties4["a:hlinkClick"];
|
|
138939
139040
|
const hyperlinkRelationshipId = String(
|
|
138940
139041
|
hyperlinkNode?.["@_r:id"] || hyperlinkNode?.["@_id"] || ""
|
|
138941
139042
|
).trim();
|
|
@@ -139003,7 +139104,7 @@ var init_PptxHandlerRuntimeTextRunEffects = __esm({
|
|
|
139003
139104
|
}
|
|
139004
139105
|
}
|
|
139005
139106
|
}
|
|
139006
|
-
const hlinkMouseOver =
|
|
139107
|
+
const hlinkMouseOver = runProperties4["a:hlinkMouseOver"];
|
|
139007
139108
|
if (hlinkMouseOver) {
|
|
139008
139109
|
const mouseOverRelId = String(
|
|
139009
139110
|
hlinkMouseOver["@_r:id"] || hlinkMouseOver["@_id"] || ""
|
|
@@ -139251,8 +139352,8 @@ var init_PptxHandlerRuntimeTextRunEffects = __esm({
|
|
|
139251
139352
|
* (e.g. `a:outerShdw`, `a:glow`, `a:alphaInv`) is captured opaquely as
|
|
139252
139353
|
* raw XML so we don't duplicate the entire effect taxonomy here.
|
|
139253
139354
|
*/
|
|
139254
|
-
applyTextRunEffectDag(style,
|
|
139255
|
-
const effectDag =
|
|
139355
|
+
applyTextRunEffectDag(style, runProperties4) {
|
|
139356
|
+
const effectDag = runProperties4["a:effectDag"];
|
|
139256
139357
|
if (!effectDag) {
|
|
139257
139358
|
return;
|
|
139258
139359
|
}
|
|
@@ -139283,28 +139384,28 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139283
139384
|
"a:grpFill"
|
|
139284
139385
|
];
|
|
139285
139386
|
PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime18 {
|
|
139286
|
-
extractTextRunStyle(
|
|
139387
|
+
extractTextRunStyle(runProperties4, align, relationshipMap, includeDefaultAlignment = true, slidePath) {
|
|
139287
139388
|
const style = includeDefaultAlignment ? { align } : {};
|
|
139288
|
-
if (!
|
|
139389
|
+
if (!runProperties4) {
|
|
139289
139390
|
return style;
|
|
139290
139391
|
}
|
|
139291
|
-
if (
|
|
139292
|
-
const points7 = parseInt(
|
|
139392
|
+
if (runProperties4["@_sz"]) {
|
|
139393
|
+
const points7 = parseInt(runProperties4["@_sz"]) / 100;
|
|
139293
139394
|
style.fontSize = points7 * (96 / 72);
|
|
139294
139395
|
}
|
|
139295
|
-
const bold = this.parseOptionalBooleanAttr(
|
|
139396
|
+
const bold = this.parseOptionalBooleanAttr(runProperties4["@_b"]);
|
|
139296
139397
|
if (bold !== void 0) {
|
|
139297
139398
|
style.bold = bold;
|
|
139298
139399
|
}
|
|
139299
|
-
const italic = this.parseOptionalBooleanAttr(
|
|
139400
|
+
const italic = this.parseOptionalBooleanAttr(runProperties4["@_i"]);
|
|
139300
139401
|
if (italic !== void 0) {
|
|
139301
139402
|
style.italic = italic;
|
|
139302
139403
|
}
|
|
139303
|
-
if (
|
|
139304
|
-
const underlineToken = String(
|
|
139404
|
+
if (runProperties4["@_u"] !== void 0) {
|
|
139405
|
+
const underlineToken = String(runProperties4["@_u"] || "").trim().toLowerCase();
|
|
139305
139406
|
style.underline = underlineToken.length > 0 && underlineToken !== "none" && underlineToken !== "0" && underlineToken !== "false";
|
|
139306
139407
|
if (style.underline) {
|
|
139307
|
-
const rawU = String(
|
|
139408
|
+
const rawU = String(runProperties4["@_u"] || "").trim();
|
|
139308
139409
|
if (rawU.length > 0 && rawU !== "none") {
|
|
139309
139410
|
style.underlineStyle = rawU;
|
|
139310
139411
|
}
|
|
@@ -139312,8 +139413,8 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139312
139413
|
style.underlineExplicitNone = true;
|
|
139313
139414
|
}
|
|
139314
139415
|
}
|
|
139315
|
-
const uFill =
|
|
139316
|
-
const uLn =
|
|
139416
|
+
const uFill = runProperties4["a:uFill"];
|
|
139417
|
+
const uLn = runProperties4["a:uLn"];
|
|
139317
139418
|
const underlineColorSource = uFill?.["a:solidFill"] || uLn?.["a:solidFill"];
|
|
139318
139419
|
if (underlineColorSource) {
|
|
139319
139420
|
const underlineColor = this.parseColor(underlineColorSource);
|
|
@@ -139355,20 +139456,20 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139355
139456
|
style.underlineLine = line2;
|
|
139356
139457
|
}
|
|
139357
139458
|
}
|
|
139358
|
-
if (
|
|
139459
|
+
if (runProperties4["a:uLnTx"] !== void 0) {
|
|
139359
139460
|
style.underlineLineFollowsText = true;
|
|
139360
139461
|
}
|
|
139361
|
-
if (
|
|
139462
|
+
if (runProperties4["a:uFillTx"] !== void 0) {
|
|
139362
139463
|
style.underlineFillFollowsText = true;
|
|
139363
139464
|
}
|
|
139364
|
-
if (
|
|
139365
|
-
const strikeToken = String(
|
|
139465
|
+
if (runProperties4["@_strike"] !== void 0) {
|
|
139466
|
+
const strikeToken = String(runProperties4["@_strike"] || "").trim().toLowerCase();
|
|
139366
139467
|
style.strikethrough = strikeToken.length > 0 && strikeToken !== "nostrike" && strikeToken !== "none" && strikeToken !== "0" && strikeToken !== "false";
|
|
139367
139468
|
if (style.strikethrough) {
|
|
139368
139469
|
style.strikeType = strikeToken === "dblstrike" ? "dblStrike" : "sngStrike";
|
|
139369
139470
|
}
|
|
139370
139471
|
}
|
|
139371
|
-
const textLn =
|
|
139472
|
+
const textLn = runProperties4["a:ln"];
|
|
139372
139473
|
if (textLn) {
|
|
139373
139474
|
const textOutlineW = Number.parseInt(String(textLn["@_w"] || ""), 10);
|
|
139374
139475
|
if (Number.isFinite(textOutlineW) && textOutlineW > 0) {
|
|
@@ -139386,31 +139487,31 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139386
139487
|
}
|
|
139387
139488
|
}
|
|
139388
139489
|
}
|
|
139389
|
-
if (
|
|
139490
|
+
if (runProperties4["a:noFill"] !== void 0) {
|
|
139390
139491
|
style.textFillNone = true;
|
|
139391
|
-
} else if (TEXT_FILL_ELEMENTS.some((name) =>
|
|
139492
|
+
} else if (TEXT_FILL_ELEMENTS.some((name) => runProperties4[name] !== void 0)) {
|
|
139392
139493
|
style.textFillNone = false;
|
|
139393
139494
|
}
|
|
139394
|
-
if (
|
|
139395
|
-
const baselineVal = Number.parseInt(String(
|
|
139495
|
+
if (runProperties4["@_baseline"] !== void 0) {
|
|
139496
|
+
const baselineVal = Number.parseInt(String(runProperties4["@_baseline"]), 10);
|
|
139396
139497
|
if (Number.isFinite(baselineVal)) {
|
|
139397
139498
|
style.baseline = baselineVal;
|
|
139398
139499
|
}
|
|
139399
139500
|
}
|
|
139400
|
-
if (
|
|
139401
|
-
const spcVal = Number.parseInt(String(
|
|
139501
|
+
if (runProperties4["@_spc"] !== void 0) {
|
|
139502
|
+
const spcVal = Number.parseInt(String(runProperties4["@_spc"]), 10);
|
|
139402
139503
|
if (Number.isFinite(spcVal)) {
|
|
139403
139504
|
style.characterSpacing = spcVal;
|
|
139404
139505
|
}
|
|
139405
139506
|
}
|
|
139406
|
-
if (
|
|
139407
|
-
const kernVal = Number.parseInt(String(
|
|
139507
|
+
if (runProperties4["@_kern"] !== void 0) {
|
|
139508
|
+
const kernVal = Number.parseInt(String(runProperties4["@_kern"]), 10);
|
|
139408
139509
|
if (Number.isFinite(kernVal)) {
|
|
139409
139510
|
style.kerning = kernVal;
|
|
139410
139511
|
}
|
|
139411
139512
|
}
|
|
139412
|
-
if (
|
|
139413
|
-
const highlightNode = xmlChild(
|
|
139513
|
+
if (runProperties4["a:highlight"]) {
|
|
139514
|
+
const highlightNode = xmlChild(runProperties4, "a:highlight");
|
|
139414
139515
|
const highlightHex = this.parseColor(highlightNode);
|
|
139415
139516
|
if (highlightHex) {
|
|
139416
139517
|
style.highlightColor = highlightHex;
|
|
@@ -139420,7 +139521,7 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139420
139521
|
style.highlightColorXml = highlightXml;
|
|
139421
139522
|
}
|
|
139422
139523
|
}
|
|
139423
|
-
const textFillVariants = this.extractTextFillVariants(
|
|
139524
|
+
const textFillVariants = this.extractTextFillVariants(runProperties4);
|
|
139424
139525
|
if (textFillVariants.textFillGradient) {
|
|
139425
139526
|
style.textFillGradient = textFillVariants.textFillGradient;
|
|
139426
139527
|
style.textFillGradientStops = textFillVariants.textFillGradientStops;
|
|
@@ -139446,14 +139547,14 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139446
139547
|
style.textFillBlipMode = resolved.mode;
|
|
139447
139548
|
}
|
|
139448
139549
|
}
|
|
139449
|
-
const rtlElement =
|
|
139450
|
-
const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(
|
|
139550
|
+
const rtlElement = runProperties4["a:rtl"];
|
|
139551
|
+
const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(runProperties4, "a:rtl"), "val")) ?? true : this.parseOptionalBooleanAttr(runProperties4["@_rtl"]);
|
|
139451
139552
|
if (runRtl !== void 0) {
|
|
139452
139553
|
style.rtl = runRtl;
|
|
139453
139554
|
}
|
|
139454
|
-
const latin = xmlChild(
|
|
139455
|
-
const eastAsian = xmlChild(
|
|
139456
|
-
const complexScript = xmlChild(
|
|
139555
|
+
const latin = xmlChild(runProperties4, "a:latin");
|
|
139556
|
+
const eastAsian = xmlChild(runProperties4, "a:ea");
|
|
139557
|
+
const complexScript = xmlChild(runProperties4, "a:cs");
|
|
139457
139558
|
const latinTypefaceToken = xmlAttr(latin, "typeface");
|
|
139458
139559
|
const eaTypefaceToken = xmlAttr(eastAsian, "typeface");
|
|
139459
139560
|
const csTypefaceToken = xmlAttr(complexScript, "typeface");
|
|
@@ -139479,7 +139580,7 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139479
139580
|
if (csTypeface) {
|
|
139480
139581
|
style.complexScriptFont = csTypeface;
|
|
139481
139582
|
}
|
|
139482
|
-
const solidFill3 = xmlChild(
|
|
139583
|
+
const solidFill3 = xmlChild(runProperties4, "a:solidFill");
|
|
139483
139584
|
if (solidFill3) {
|
|
139484
139585
|
style.color = this.parseColor(solidFill3);
|
|
139485
139586
|
const colorXml2 = extractColorChoiceXml(solidFill3);
|
|
@@ -139491,59 +139592,59 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139491
139592
|
style.colorRef = colorRef;
|
|
139492
139593
|
}
|
|
139493
139594
|
}
|
|
139494
|
-
this.applyHyperlinkStyle(style,
|
|
139495
|
-
const capAttr = String(
|
|
139595
|
+
this.applyHyperlinkStyle(style, runProperties4, relationshipMap);
|
|
139596
|
+
const capAttr = String(runProperties4["@_cap"] || "").trim().toLowerCase();
|
|
139496
139597
|
if (capAttr === "all" || capAttr === "small") {
|
|
139497
139598
|
style.textCaps = capAttr;
|
|
139498
139599
|
} else if (capAttr === "none") {
|
|
139499
139600
|
style.textCaps = "none";
|
|
139500
139601
|
style.textCapsExplicitNone = true;
|
|
139501
139602
|
}
|
|
139502
|
-
const symNode = xmlChild(
|
|
139603
|
+
const symNode = xmlChild(runProperties4, "a:sym");
|
|
139503
139604
|
if (symNode) {
|
|
139504
139605
|
const symTypeface = this.normalizeTypefaceToken(xmlAttr(symNode, "typeface") || "");
|
|
139505
139606
|
if (symTypeface) {
|
|
139506
139607
|
style.symbolFont = symTypeface;
|
|
139507
139608
|
}
|
|
139508
139609
|
}
|
|
139509
|
-
const langAttr = String(
|
|
139610
|
+
const langAttr = String(runProperties4["@_lang"] || "").trim();
|
|
139510
139611
|
if (langAttr) {
|
|
139511
139612
|
style.language = langAttr;
|
|
139512
139613
|
}
|
|
139513
|
-
const kumimoji = this.parseOptionalBooleanAttr(
|
|
139614
|
+
const kumimoji = this.parseOptionalBooleanAttr(runProperties4["@_kumimoji"]);
|
|
139514
139615
|
if (kumimoji !== void 0) {
|
|
139515
139616
|
style.kumimoji = kumimoji;
|
|
139516
139617
|
}
|
|
139517
|
-
const normalizeH = this.parseOptionalBooleanAttr(
|
|
139618
|
+
const normalizeH = this.parseOptionalBooleanAttr(runProperties4["@_normalizeH"]);
|
|
139518
139619
|
if (normalizeH !== void 0) {
|
|
139519
139620
|
style.normalizeHeight = normalizeH;
|
|
139520
139621
|
}
|
|
139521
|
-
const noProof = this.parseOptionalBooleanAttr(
|
|
139622
|
+
const noProof = this.parseOptionalBooleanAttr(runProperties4["@_noProof"]);
|
|
139522
139623
|
if (noProof !== void 0) {
|
|
139523
139624
|
style.noProof = noProof;
|
|
139524
139625
|
}
|
|
139525
|
-
const dirty = this.parseOptionalBooleanAttr(
|
|
139626
|
+
const dirty = this.parseOptionalBooleanAttr(runProperties4["@_dirty"]);
|
|
139526
139627
|
if (dirty !== void 0) {
|
|
139527
139628
|
style.dirty = dirty;
|
|
139528
139629
|
}
|
|
139529
|
-
const err = this.parseOptionalBooleanAttr(
|
|
139630
|
+
const err = this.parseOptionalBooleanAttr(runProperties4["@_err"]);
|
|
139530
139631
|
if (err !== void 0) {
|
|
139531
139632
|
style.spellingError = err;
|
|
139532
139633
|
}
|
|
139533
|
-
const smtClean = this.parseOptionalBooleanAttr(
|
|
139634
|
+
const smtClean = this.parseOptionalBooleanAttr(runProperties4["@_smtClean"]);
|
|
139534
139635
|
if (smtClean !== void 0) {
|
|
139535
139636
|
style.smartTagClean = smtClean;
|
|
139536
139637
|
}
|
|
139537
|
-
const bmk = String(
|
|
139638
|
+
const bmk = String(runProperties4["@_bmk"] || "").trim();
|
|
139538
139639
|
if (bmk) {
|
|
139539
139640
|
style.bookmark = bmk;
|
|
139540
139641
|
}
|
|
139541
|
-
const altLang = String(
|
|
139642
|
+
const altLang = String(runProperties4["@_altLang"] || "").trim();
|
|
139542
139643
|
if (altLang) {
|
|
139543
139644
|
style.altLanguage = altLang;
|
|
139544
139645
|
}
|
|
139545
|
-
if (
|
|
139546
|
-
const smtIdRaw = Number.parseInt(String(
|
|
139646
|
+
if (runProperties4["@_smtId"] !== void 0) {
|
|
139647
|
+
const smtIdRaw = Number.parseInt(String(runProperties4["@_smtId"]), 10);
|
|
139547
139648
|
if (Number.isFinite(smtIdRaw)) {
|
|
139548
139649
|
style.smartTagId = smtIdRaw;
|
|
139549
139650
|
}
|
|
@@ -139552,16 +139653,16 @@ var init_PptxHandlerRuntimeTextRunStyleExtraction = __esm({
|
|
|
139552
139653
|
this.applyTextFontMetadata(style, eastAsian, "eastAsia");
|
|
139553
139654
|
this.applyTextFontMetadata(style, complexScript, "complexScript");
|
|
139554
139655
|
this.applyTextFontMetadata(style, symNode, "symbol");
|
|
139555
|
-
const runEffectList =
|
|
139656
|
+
const runEffectList = runProperties4["a:effectLst"];
|
|
139556
139657
|
if (runEffectList && typeof runEffectList === "object") {
|
|
139557
139658
|
this.applyTextRunEffects(style, runEffectList);
|
|
139558
139659
|
}
|
|
139559
139660
|
if (includeDefaultAlignment && runEffectList !== void 0 && (typeof runEffectList !== "object" || Object.keys(runEffectList).length === 0)) {
|
|
139560
139661
|
style.textEffectsExplicitNone = true;
|
|
139561
139662
|
}
|
|
139562
|
-
this.applyTextRunEffectDag(style,
|
|
139663
|
+
this.applyTextRunEffectDag(style, runProperties4);
|
|
139563
139664
|
if (includeDefaultAlignment) {
|
|
139564
|
-
const runExtLst =
|
|
139665
|
+
const runExtLst = runProperties4["a:extLst"];
|
|
139565
139666
|
if (runExtLst && typeof runExtLst === "object") {
|
|
139566
139667
|
style.runPropertiesExtLstXml = runExtLst;
|
|
139567
139668
|
}
|
|
@@ -139679,7 +139780,7 @@ var init_PptxHandlerRuntimeTextEditing = __esm({
|
|
|
139679
139780
|
authoredRunStyle: authored,
|
|
139680
139781
|
inheritedRunStyle: paragraphDefaultStyle
|
|
139681
139782
|
});
|
|
139682
|
-
const appendRunSegment = (value,
|
|
139783
|
+
const appendRunSegment = (value, runProperties4) => {
|
|
139683
139784
|
if (value === void 0 || value === null) {
|
|
139684
139785
|
return;
|
|
139685
139786
|
}
|
|
@@ -139688,7 +139789,7 @@ var init_PptxHandlerRuntimeTextEditing = __esm({
|
|
|
139688
139789
|
return;
|
|
139689
139790
|
}
|
|
139690
139791
|
const runStyle2 = withAuthoredSplit(
|
|
139691
|
-
this.extractTextRunStyle(
|
|
139792
|
+
this.extractTextRunStyle(runProperties4, paragraphAlign, relationshipMap)
|
|
139692
139793
|
);
|
|
139693
139794
|
segments.push({
|
|
139694
139795
|
text: runText2,
|
|
@@ -140586,7 +140687,7 @@ var init_PptxHandlerRuntimeSaveTableStyles = __esm({
|
|
|
140586
140687
|
* `paragraphs` gives each paragraph's own alignment; without it only the
|
|
140587
140688
|
* first paragraph takes the cell's.
|
|
140588
140689
|
*/
|
|
140589
|
-
writeTableCellStyle(xmlCell, style, paragraphs) {
|
|
140690
|
+
writeTableCellStyle(xmlCell, style, paragraphs, runsCarryFormatting = false) {
|
|
140590
140691
|
const rawTcPr = xmlCell["a:tcPr"];
|
|
140591
140692
|
const existingTcPr = rawTcPr && typeof rawTcPr === "object" ? rawTcPr : void 0;
|
|
140592
140693
|
const tcPr = existingTcPr ?? {};
|
|
@@ -140633,7 +140734,7 @@ var init_PptxHandlerRuntimeSaveTableStyles = __esm({
|
|
|
140633
140734
|
}
|
|
140634
140735
|
delete tcPr["a:tcMar"];
|
|
140635
140736
|
writeDiagonalBorders(tcPr, style, _PptxHandlerRuntime.EMU_PER_PX);
|
|
140636
|
-
if (!isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
|
|
140737
|
+
if (!runsCarryFormatting && !isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
|
|
140637
140738
|
writeCellTextFormatting(xmlCell, style, this.ensureArray.bind(this), paragraphs);
|
|
140638
140739
|
}
|
|
140639
140740
|
const reordered = reorderObjectKeys(tcPr, TC_PR_BORDERS_ORDER);
|
|
@@ -141401,6 +141502,91 @@ var init_table_xml_rebuild = __esm({
|
|
|
141401
141502
|
}
|
|
141402
141503
|
});
|
|
141403
141504
|
|
|
141505
|
+
// pptx/core/core/runtime/table-cell-run-style-xml.ts
|
|
141506
|
+
function setRunFlag(rPr, attribute5, value, on) {
|
|
141507
|
+
if (value) {
|
|
141508
|
+
rPr[attribute5] = on;
|
|
141509
|
+
} else {
|
|
141510
|
+
delete rPr[attribute5];
|
|
141511
|
+
}
|
|
141512
|
+
}
|
|
141513
|
+
function setRunLatinTypeface(rPr, typeface) {
|
|
141514
|
+
const existing = rPr["a:latin"];
|
|
141515
|
+
const latin = {
|
|
141516
|
+
...existing && typeof existing === "object" ? existing : {},
|
|
141517
|
+
"@_typeface": typeface
|
|
141518
|
+
};
|
|
141519
|
+
const tail = [];
|
|
141520
|
+
for (const key2 of AFTER_LATIN) {
|
|
141521
|
+
if (key2 in rPr) {
|
|
141522
|
+
tail.push([key2, rPr[key2]]);
|
|
141523
|
+
delete rPr[key2];
|
|
141524
|
+
}
|
|
141525
|
+
}
|
|
141526
|
+
delete rPr["a:latin"];
|
|
141527
|
+
rPr["a:latin"] = latin;
|
|
141528
|
+
for (const [key2, value] of tail) {
|
|
141529
|
+
rPr[key2] = value;
|
|
141530
|
+
}
|
|
141531
|
+
}
|
|
141532
|
+
function applyCellRunStyleUpdates(rPr, styleUpdates) {
|
|
141533
|
+
if ("bold" in styleUpdates) {
|
|
141534
|
+
setRunFlag(rPr, "@_b", styleUpdates.bold, "1");
|
|
141535
|
+
}
|
|
141536
|
+
if ("italic" in styleUpdates) {
|
|
141537
|
+
setRunFlag(rPr, "@_i", styleUpdates.italic, "1");
|
|
141538
|
+
}
|
|
141539
|
+
if ("underline" in styleUpdates) {
|
|
141540
|
+
setRunFlag(rPr, "@_u", styleUpdates.underline, "sng");
|
|
141541
|
+
}
|
|
141542
|
+
if ("strikethrough" in styleUpdates) {
|
|
141543
|
+
setRunFlag(rPr, "@_strike", styleUpdates.strikethrough, "sngStrike");
|
|
141544
|
+
}
|
|
141545
|
+
if (typeof styleUpdates.fontSize === "number" && styleUpdates.fontSize > 0) {
|
|
141546
|
+
rPr["@_sz"] = String(Math.round(styleUpdates.fontSize * 100));
|
|
141547
|
+
}
|
|
141548
|
+
if ("color" in styleUpdates && typeof styleUpdates.color === "string") {
|
|
141549
|
+
const hex3 = styleUpdates.color.replace("#", "");
|
|
141550
|
+
const tail = [];
|
|
141551
|
+
for (const key2 of Object.keys(rPr)) {
|
|
141552
|
+
if (key2.startsWith("a:") && !["a:ln"].includes(key2)) {
|
|
141553
|
+
tail.push([key2, rPr[key2]]);
|
|
141554
|
+
delete rPr[key2];
|
|
141555
|
+
}
|
|
141556
|
+
}
|
|
141557
|
+
rPr["a:solidFill"] = { "a:srgbClr": { "@_val": hex3 } };
|
|
141558
|
+
for (const [key2, value] of tail) {
|
|
141559
|
+
if (![
|
|
141560
|
+
"a:solidFill",
|
|
141561
|
+
"a:noFill",
|
|
141562
|
+
"a:gradFill",
|
|
141563
|
+
"a:pattFill",
|
|
141564
|
+
"a:blipFill",
|
|
141565
|
+
"a:grpFill"
|
|
141566
|
+
].includes(key2)) {
|
|
141567
|
+
rPr[key2] = value;
|
|
141568
|
+
}
|
|
141569
|
+
}
|
|
141570
|
+
}
|
|
141571
|
+
if (typeof styleUpdates.fontFamily === "string" && styleUpdates.fontFamily) {
|
|
141572
|
+
setRunLatinTypeface(rPr, styleUpdates.fontFamily);
|
|
141573
|
+
}
|
|
141574
|
+
}
|
|
141575
|
+
var AFTER_LATIN;
|
|
141576
|
+
var init_table_cell_run_style_xml = __esm({
|
|
141577
|
+
"pptx/core/core/runtime/table-cell-run-style-xml.ts"() {
|
|
141578
|
+
AFTER_LATIN = [
|
|
141579
|
+
"a:ea",
|
|
141580
|
+
"a:cs",
|
|
141581
|
+
"a:sym",
|
|
141582
|
+
"a:hlinkClick",
|
|
141583
|
+
"a:hlinkMouseOver",
|
|
141584
|
+
"a:rtl",
|
|
141585
|
+
"a:extLst"
|
|
141586
|
+
];
|
|
141587
|
+
}
|
|
141588
|
+
});
|
|
141589
|
+
|
|
141404
141590
|
// pptx/core/core/runtime/table-structural-ops.ts
|
|
141405
141591
|
var init_table_structural_ops = __esm({
|
|
141406
141592
|
"pptx/core/core/runtime/table-structural-ops.ts"() {
|
|
@@ -141674,9 +141860,11 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
141674
141860
|
*/
|
|
141675
141861
|
serializeTableDataToXml(shape2, tableData, writeRichCellText) {
|
|
141676
141862
|
const writeCellText = (xmlCell, cell2) => {
|
|
141677
|
-
if (
|
|
141678
|
-
|
|
141863
|
+
if (writeRichCellText?.(xmlCell, cell2)) {
|
|
141864
|
+
return true;
|
|
141679
141865
|
}
|
|
141866
|
+
this.writeTableCellText(xmlCell, cell2.text);
|
|
141867
|
+
return false;
|
|
141680
141868
|
};
|
|
141681
141869
|
try {
|
|
141682
141870
|
const graphicData = xmlPath(shape2, "a:graphic", "a:graphicData");
|
|
@@ -141714,14 +141902,12 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
141714
141902
|
if (!xmlCell) {
|
|
141715
141903
|
continue;
|
|
141716
141904
|
}
|
|
141717
|
-
|
|
141718
|
-
writeCellText(xmlCell, cell2);
|
|
141719
|
-
}
|
|
141905
|
+
const richText = cell2.text !== void 0 && writeCellText(xmlCell, cell2);
|
|
141720
141906
|
if (styleChanged) {
|
|
141721
141907
|
clearCellFormattingForStyleChange(xmlCell, cell2.style);
|
|
141722
141908
|
}
|
|
141723
141909
|
if (cell2.style) {
|
|
141724
|
-
this.writeTableCellStyle(xmlCell, cell2.style, cell2.paragraphs);
|
|
141910
|
+
this.writeTableCellStyle(xmlCell, cell2.style, cell2.paragraphs, richText);
|
|
141725
141911
|
}
|
|
141726
141912
|
serializeCellExtraAttributes(xmlCell, cell2.extraAttributes);
|
|
141727
141913
|
}
|
|
@@ -141740,14 +141926,12 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
141740
141926
|
const cell2 = dataRow.cells[cIdx];
|
|
141741
141927
|
const xmlCell = xmlCells[cIdx];
|
|
141742
141928
|
serializeCellMergeAttributes(xmlCell, cell2);
|
|
141743
|
-
|
|
141744
|
-
writeCellText(xmlCell, cell2);
|
|
141745
|
-
}
|
|
141929
|
+
const richText = cell2.text !== void 0 && writeCellText(xmlCell, cell2);
|
|
141746
141930
|
if (styleChanged) {
|
|
141747
141931
|
clearCellFormattingForStyleChange(xmlCell, cell2.style);
|
|
141748
141932
|
}
|
|
141749
141933
|
if (cell2.style) {
|
|
141750
|
-
this.writeTableCellStyle(xmlCell, cell2.style, cell2.paragraphs);
|
|
141934
|
+
this.writeTableCellStyle(xmlCell, cell2.style, cell2.paragraphs, richText);
|
|
141751
141935
|
}
|
|
141752
141936
|
serializeCellExtraAttributes(xmlCell, cell2.extraAttributes);
|
|
141753
141937
|
recordTableParagraphOrder(xmlCell, cell2.textRuns);
|
|
@@ -142917,37 +143101,37 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
142917
143101
|
*/
|
|
142918
143102
|
buildNewSeriesXml(seriesIndex, seriesData, categories, templateSeries, dateCategories, isLineFamily = false) {
|
|
142919
143103
|
if (templateSeries) {
|
|
142920
|
-
const
|
|
142921
|
-
regenerateClonedUniqueId(
|
|
142922
|
-
const idxNode = this.xmlLookupService.getChildByLocalName(
|
|
143104
|
+
const clone4 = JSON.parse(JSON.stringify(templateSeries));
|
|
143105
|
+
regenerateClonedUniqueId(clone4, (key2) => this.compatibilityService.getXmlLocalName(key2));
|
|
143106
|
+
const idxNode = this.xmlLookupService.getChildByLocalName(clone4, "idx");
|
|
142923
143107
|
if (idxNode) {
|
|
142924
143108
|
idxNode["@_val"] = String(seriesIndex);
|
|
142925
143109
|
}
|
|
142926
|
-
const orderNode = this.xmlLookupService.getChildByLocalName(
|
|
143110
|
+
const orderNode = this.xmlLookupService.getChildByLocalName(clone4, "order");
|
|
142927
143111
|
if (orderNode) {
|
|
142928
143112
|
orderNode["@_val"] = String(seriesIndex);
|
|
142929
143113
|
}
|
|
142930
|
-
const txNode = this.xmlLookupService.getChildByLocalName(
|
|
143114
|
+
const txNode = this.xmlLookupService.getChildByLocalName(clone4, "tx");
|
|
142931
143115
|
if (txNode) {
|
|
142932
143116
|
this.updateChartCacheValues(txNode, false, [seriesData.name]);
|
|
142933
143117
|
}
|
|
142934
|
-
const catNode = this.xmlLookupService.getChildByLocalName(
|
|
143118
|
+
const catNode = this.xmlLookupService.getChildByLocalName(clone4, "cat") || this.xmlLookupService.getChildByLocalName(clone4, "xVal");
|
|
142935
143119
|
if (catNode) {
|
|
142936
143120
|
const dateValues = dateCategories?.values.map(String);
|
|
142937
143121
|
this.updateChartCacheValues(catNode, Boolean(dateValues), dateValues ?? categories);
|
|
142938
143122
|
}
|
|
142939
|
-
const valNode = this.xmlLookupService.getChildByLocalName(
|
|
143123
|
+
const valNode = this.xmlLookupService.getChildByLocalName(clone4, "val") || this.xmlLookupService.getChildByLocalName(clone4, "yVal");
|
|
142940
143124
|
if (valNode) {
|
|
142941
143125
|
this.updateChartCacheValues(valNode, true, seriesData.values.map(String));
|
|
142942
143126
|
}
|
|
142943
143127
|
applySeriesGradientToXml(
|
|
142944
|
-
|
|
143128
|
+
clone4,
|
|
142945
143129
|
seriesData.gradientFill,
|
|
142946
143130
|
(key2) => this.compatibilityService.getXmlLocalName(key2),
|
|
142947
143131
|
this.chartGradientWriteOptions(isLineFamily)
|
|
142948
143132
|
);
|
|
142949
143133
|
if (seriesData.color && !(seriesData.gradientFill && !isLineFamily)) {
|
|
142950
|
-
const spPr = this.xmlLookupService.getChildByLocalName(
|
|
143134
|
+
const spPr = this.xmlLookupService.getChildByLocalName(clone4, "spPr");
|
|
142951
143135
|
if (spPr) {
|
|
142952
143136
|
writeSeriesColorToSpPr(
|
|
142953
143137
|
spPr,
|
|
@@ -142958,7 +143142,7 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
142958
143142
|
);
|
|
142959
143143
|
}
|
|
142960
143144
|
}
|
|
142961
|
-
return
|
|
143145
|
+
return clone4;
|
|
142962
143146
|
}
|
|
142963
143147
|
const colorHex = (seriesData.color || "#4472C4").replace("#", "");
|
|
142964
143148
|
const ser = {
|
|
@@ -143784,6 +143968,7 @@ var init_PptxHandlerRuntimeSaveDocumentParts = __esm({
|
|
|
143784
143968
|
init_customer_data_package();
|
|
143785
143969
|
init_deferred_embedded_font();
|
|
143786
143970
|
init_embedded_font_list();
|
|
143971
|
+
init_embedded_font_permission();
|
|
143787
143972
|
init_font_deobfuscation();
|
|
143788
143973
|
init_safe_path();
|
|
143789
143974
|
init_smartart_connector_labels();
|
|
@@ -144348,6 +144533,15 @@ var init_PptxHandlerRuntimeSaveDocumentParts = __esm({
|
|
|
144348
144533
|
rId = variant.originalRId;
|
|
144349
144534
|
bytesToWrite = variant.originalPartBytes;
|
|
144350
144535
|
} else {
|
|
144536
|
+
if (!mayNewlyEmbedFontData(variant, fontData)) {
|
|
144537
|
+
this.compatibilityService.reportWarning({
|
|
144538
|
+
code: "EMBEDDED_FONT_NOT_EMBEDDABLE",
|
|
144539
|
+
message: `Font "${typeface}" was not embedded: its licence (OS/2 fsType) does not allow embedding it in an editable presentation.`,
|
|
144540
|
+
scope: "save",
|
|
144541
|
+
xmlPath: `/p:presentation/p:embeddedFontLst/p:embeddedFont[@typeface="${typeface}"]`
|
|
144542
|
+
});
|
|
144543
|
+
continue;
|
|
144544
|
+
}
|
|
144351
144545
|
guid = variant.fontGuid ?? generateFontGuid();
|
|
144352
144546
|
const fileName = `{${guid}}.fntdata`;
|
|
144353
144547
|
fontPartPath = `ppt/fonts/${fileName}`;
|
|
@@ -144372,6 +144566,9 @@ var init_PptxHandlerRuntimeSaveDocumentParts = __esm({
|
|
|
144372
144566
|
const variantKey = variant.bold && variant.italic ? "p:boldItalic" : variant.bold ? "p:bold" : variant.italic ? "p:italic" : "p:regular";
|
|
144373
144567
|
entry2[variantKey] = { "@_r:id": rId };
|
|
144374
144568
|
}
|
|
144569
|
+
if (Object.keys(entry2).length === 1) {
|
|
144570
|
+
continue;
|
|
144571
|
+
}
|
|
144375
144572
|
embeddedFontEntries.push(entry2);
|
|
144376
144573
|
}
|
|
144377
144574
|
relsRoot.Relationship = relationships3;
|
|
@@ -144382,7 +144579,10 @@ var init_PptxHandlerRuntimeSaveDocumentParts = __esm({
|
|
|
144382
144579
|
"p:embeddedFont": embeddedFontEntries.length === 1 ? embeddedFontEntries[0] : embeddedFontEntries
|
|
144383
144580
|
};
|
|
144384
144581
|
const metadata = explicitFontList ? serializeEmbeddedFontList(explicitFontList) : explicitFonts === void 0 && this.loadedEmbeddedFontList ? serializeEmbeddedFontList(this.loadedEmbeddedFontList) : generatedList;
|
|
144385
|
-
setEmbeddedFontList(
|
|
144582
|
+
setEmbeddedFontList(
|
|
144583
|
+
this.presentationData,
|
|
144584
|
+
metadata === generatedList && embeddedFontEntries.length === 0 ? null : metadata
|
|
144585
|
+
);
|
|
144386
144586
|
}
|
|
144387
144587
|
const ctXml = await this.zip.file("[Content_Types].xml")?.async("string");
|
|
144388
144588
|
if (ctXml) {
|
|
@@ -145900,6 +146100,161 @@ var init_save_picture_fill = __esm({
|
|
|
145900
146100
|
}
|
|
145901
146101
|
});
|
|
145902
146102
|
|
|
146103
|
+
// pptx/core/core/runtime/table-cell-rich-xml.ts
|
|
146104
|
+
function hasTableCellSource(segments) {
|
|
146105
|
+
return segments.some((segment) => segment.tableRun || segment.tableParagraph);
|
|
146106
|
+
}
|
|
146107
|
+
function clone3(value) {
|
|
146108
|
+
return value === void 0 ? value : structuredClone(value);
|
|
146109
|
+
}
|
|
146110
|
+
function sourceRunProperties(source2) {
|
|
146111
|
+
const rPr = source2.xml["a:rPr"];
|
|
146112
|
+
if (rPr === void 0) {
|
|
146113
|
+
return void 0;
|
|
146114
|
+
}
|
|
146115
|
+
return rPr && typeof rPr === "object" ? clone3(rPr) : {};
|
|
146116
|
+
}
|
|
146117
|
+
function runProperties3(segment, source2) {
|
|
146118
|
+
const rPr = sourceRunProperties(source2);
|
|
146119
|
+
const before = source2.style;
|
|
146120
|
+
const after = segment.style ?? {};
|
|
146121
|
+
const updates = {};
|
|
146122
|
+
for (const key2 of DIFF_KEYS) {
|
|
146123
|
+
if (before[key2] !== after[key2]) {
|
|
146124
|
+
updates[key2] = after[key2];
|
|
146125
|
+
}
|
|
146126
|
+
}
|
|
146127
|
+
if (Object.keys(updates).length === 0) {
|
|
146128
|
+
return rPr;
|
|
146129
|
+
}
|
|
146130
|
+
const target = rPr ?? {};
|
|
146131
|
+
if (typeof updates.fontSize === "number") {
|
|
146132
|
+
updates.fontSize = Math.round(updates.fontSize * PT_PER_PX3 * 100) / 100;
|
|
146133
|
+
}
|
|
146134
|
+
applyCellRunStyleUpdates(target, updates);
|
|
146135
|
+
const off = {
|
|
146136
|
+
bold: ["@_b", "0"],
|
|
146137
|
+
italic: ["@_i", "0"],
|
|
146138
|
+
underline: ["@_u", "none"],
|
|
146139
|
+
strikethrough: ["@_strike", "noStrike"]
|
|
146140
|
+
};
|
|
146141
|
+
for (const [key2, [attribute5, value]] of Object.entries(off)) {
|
|
146142
|
+
if (key2 in updates && updates[key2] === false) {
|
|
146143
|
+
target[attribute5] = value;
|
|
146144
|
+
}
|
|
146145
|
+
}
|
|
146146
|
+
if ("baseline" in updates) {
|
|
146147
|
+
if (updates.baseline) {
|
|
146148
|
+
target["@_baseline"] = String(updates.baseline);
|
|
146149
|
+
} else {
|
|
146150
|
+
delete target["@_baseline"];
|
|
146151
|
+
}
|
|
146152
|
+
}
|
|
146153
|
+
if ("characterSpacing" in updates) {
|
|
146154
|
+
if (updates.characterSpacing) {
|
|
146155
|
+
target["@_spc"] = String(updates.characterSpacing);
|
|
146156
|
+
} else {
|
|
146157
|
+
delete target["@_spc"];
|
|
146158
|
+
}
|
|
146159
|
+
}
|
|
146160
|
+
return target;
|
|
146161
|
+
}
|
|
146162
|
+
function textRun2(rPr, text2) {
|
|
146163
|
+
const run2 = {};
|
|
146164
|
+
if (rPr !== void 0) {
|
|
146165
|
+
run2["a:rPr"] = rPr;
|
|
146166
|
+
}
|
|
146167
|
+
run2["a:t"] = text2;
|
|
146168
|
+
return run2;
|
|
146169
|
+
}
|
|
146170
|
+
function segmentChild(segment, runPropertiesFromStyle) {
|
|
146171
|
+
const source2 = segment.tableRun;
|
|
146172
|
+
if (segment.isLineBreak) {
|
|
146173
|
+
const br = source2?.tag === "a:br" && source2.xml ? clone3(source2.xml) : {};
|
|
146174
|
+
return { tag: "a:br", value: br && typeof br === "object" ? br : {} };
|
|
146175
|
+
}
|
|
146176
|
+
if (!segment.text) {
|
|
146177
|
+
return void 0;
|
|
146178
|
+
}
|
|
146179
|
+
if (!source2 || source2.tag === "a:br") {
|
|
146180
|
+
return {
|
|
146181
|
+
tag: "a:r",
|
|
146182
|
+
value: textRun2(runPropertiesFromStyle(segment.style ?? {}), segment.text)
|
|
146183
|
+
};
|
|
146184
|
+
}
|
|
146185
|
+
const rPr = runProperties3(segment, source2);
|
|
146186
|
+
const unchangedField = source2.tag === "a:fld" && segment.fieldType !== void 0 && segment.text === (xmlText(source2.xml["a:t"]) ?? "");
|
|
146187
|
+
if (!unchangedField) {
|
|
146188
|
+
return { tag: "a:r", value: textRun2(rPr, segment.text) };
|
|
146189
|
+
}
|
|
146190
|
+
const field = {};
|
|
146191
|
+
for (const [key2, value] of Object.entries(source2.xml)) {
|
|
146192
|
+
if (key2.startsWith("@_")) {
|
|
146193
|
+
field[key2] = value;
|
|
146194
|
+
}
|
|
146195
|
+
}
|
|
146196
|
+
if (rPr !== void 0) {
|
|
146197
|
+
field["a:rPr"] = rPr;
|
|
146198
|
+
}
|
|
146199
|
+
if (source2.xml["a:pPr"] !== void 0) {
|
|
146200
|
+
field["a:pPr"] = clone3(source2.xml["a:pPr"]);
|
|
146201
|
+
}
|
|
146202
|
+
field["a:t"] = segment.text;
|
|
146203
|
+
return { tag: "a:fld", value: field };
|
|
146204
|
+
}
|
|
146205
|
+
function paragraphsOf(segments) {
|
|
146206
|
+
const paragraphs = [[]];
|
|
146207
|
+
for (const segment of segments) {
|
|
146208
|
+
if (segment.isParagraphBreak) {
|
|
146209
|
+
paragraphs.push([]);
|
|
146210
|
+
} else {
|
|
146211
|
+
paragraphs.at(-1).push(segment);
|
|
146212
|
+
}
|
|
146213
|
+
}
|
|
146214
|
+
return paragraphs;
|
|
146215
|
+
}
|
|
146216
|
+
function buildRichCellParagraphs(segments, runPropertiesFromStyle) {
|
|
146217
|
+
let lastSource;
|
|
146218
|
+
return paragraphsOf(segments).map((paragraphSegments) => {
|
|
146219
|
+
const source2 = paragraphSegments.find((segment) => segment.tableParagraph)?.tableParagraph;
|
|
146220
|
+
const layout = source2 ?? lastSource;
|
|
146221
|
+
lastSource = layout;
|
|
146222
|
+
const paragraph2 = {};
|
|
146223
|
+
if (layout?.["a:pPr"] !== void 0) {
|
|
146224
|
+
paragraph2["a:pPr"] = clone3(layout["a:pPr"]);
|
|
146225
|
+
}
|
|
146226
|
+
const children16 = paragraphSegments.flatMap((segment) => {
|
|
146227
|
+
const child33 = segmentChild(segment, runPropertiesFromStyle);
|
|
146228
|
+
return child33 ? [child33] : [];
|
|
146229
|
+
});
|
|
146230
|
+
writeParagraphChildren(paragraph2, children16);
|
|
146231
|
+
if (layout?.["a:endParaRPr"] !== void 0) {
|
|
146232
|
+
paragraph2["a:endParaRPr"] = clone3(layout["a:endParaRPr"]);
|
|
146233
|
+
}
|
|
146234
|
+
return paragraph2;
|
|
146235
|
+
});
|
|
146236
|
+
}
|
|
146237
|
+
var PT_PER_PX3, DIFF_KEYS;
|
|
146238
|
+
var init_table_cell_rich_xml = __esm({
|
|
146239
|
+
"pptx/core/core/runtime/table-cell-rich-xml.ts"() {
|
|
146240
|
+
init_utils();
|
|
146241
|
+
init_paragraph_child_assembly();
|
|
146242
|
+
init_table_cell_run_style_xml();
|
|
146243
|
+
PT_PER_PX3 = 72 / 96;
|
|
146244
|
+
DIFF_KEYS = [
|
|
146245
|
+
"bold",
|
|
146246
|
+
"italic",
|
|
146247
|
+
"underline",
|
|
146248
|
+
"strikethrough",
|
|
146249
|
+
"color",
|
|
146250
|
+
"fontFamily",
|
|
146251
|
+
"fontSize",
|
|
146252
|
+
"baseline",
|
|
146253
|
+
"characterSpacing"
|
|
146254
|
+
];
|
|
146255
|
+
}
|
|
146256
|
+
});
|
|
146257
|
+
|
|
145903
146258
|
// pptx/core/core/runtime/table-cell-segments-xml.ts
|
|
145904
146259
|
function tableCellSegmentsText(segments) {
|
|
145905
146260
|
return segments.map((segment) => segment.isParagraphBreak ? "\n" : segment.text ?? "").join("");
|
|
@@ -145950,6 +146305,7 @@ var init_PptxHandlerRuntimeSaveElementEmbedding = __esm({
|
|
|
145950
146305
|
init_PptxHandlerRuntimeSaveTextWriter();
|
|
145951
146306
|
init_save_picture_geometry_gate();
|
|
145952
146307
|
init_save_picture_fill();
|
|
146308
|
+
init_table_cell_rich_xml();
|
|
145953
146309
|
init_table_cell_segments_xml();
|
|
145954
146310
|
PptxHandlerRuntime32 = class _PptxHandlerRuntime extends PptxHandlerRuntime31 {
|
|
145955
146311
|
/** Serialize table, chart, and SmartArt data when applicable. */
|
|
@@ -145982,6 +146338,16 @@ var init_PptxHandlerRuntimeSaveElementEmbedding = __esm({
|
|
|
145982
146338
|
if (!segments) {
|
|
145983
146339
|
return false;
|
|
145984
146340
|
}
|
|
146341
|
+
if (hasTableCellSource(segments)) {
|
|
146342
|
+
xmlCell["a:txBody"] = buildCellTextBody(
|
|
146343
|
+
xmlCell["a:txBody"],
|
|
146344
|
+
buildRichCellParagraphs(
|
|
146345
|
+
segments,
|
|
146346
|
+
(style) => this.createRunPropertiesFromTextStyle(style, links?.resolveHyperlinkRelationshipId)
|
|
146347
|
+
)
|
|
146348
|
+
);
|
|
146349
|
+
return true;
|
|
146350
|
+
}
|
|
145985
146351
|
const paragraphs = this.createParagraphsFromTextContent(
|
|
145986
146352
|
cell2.text,
|
|
145987
146353
|
cell2.style?.align ? { align: cell2.style.align } : void 0,
|
|
@@ -163323,6 +163689,7 @@ var PptxHandlerRuntime99;
|
|
|
163323
163689
|
var init_PptxHandlerRuntimeEmbeddedFonts = __esm({
|
|
163324
163690
|
"pptx/core/core/runtime/PptxHandlerRuntimeEmbeddedFonts.ts"() {
|
|
163325
163691
|
init_deferred_embedded_font();
|
|
163692
|
+
init_embedded_font_permission();
|
|
163326
163693
|
init_layout_display_name();
|
|
163327
163694
|
init_strip_parent_dir_segments();
|
|
163328
163695
|
init_xml_access();
|
|
@@ -163426,6 +163793,19 @@ var init_PptxHandlerRuntimeEmbeddedFonts = __esm({
|
|
|
163426
163793
|
originalPartBytes: new Uint8Array(fontBinary),
|
|
163427
163794
|
fontKey
|
|
163428
163795
|
};
|
|
163796
|
+
source2.fsType = readEmbeddedFontPartFsType(
|
|
163797
|
+
source2.originalPartBytes,
|
|
163798
|
+
resolveEmbeddedFontGuid(source2)
|
|
163799
|
+
);
|
|
163800
|
+
if (!mayDisplayFontWithFsType(source2.fsType)) {
|
|
163801
|
+
this.compatibilityService.reportWarning({
|
|
163802
|
+
code: "EMBEDDED_FONT_RESTRICTED",
|
|
163803
|
+
message: `Embedded font "${typeface}" has a restricted licence (OS/2 fsType) and is not used for display; its font part is kept unchanged on save.`,
|
|
163804
|
+
scope: "presentation",
|
|
163805
|
+
xmlPath: fontPath
|
|
163806
|
+
});
|
|
163807
|
+
return createWithheldEmbeddedFont(source2);
|
|
163808
|
+
}
|
|
163429
163809
|
if (this.eagerDecodeEmbeddedFonts) {
|
|
163430
163810
|
return decodeEmbeddedFontPart(source2);
|
|
163431
163811
|
}
|