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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLO55N7VL_cjs = require('./chunk-LO55N7VL.cjs');
|
|
4
|
+
var chunk25IJEN7R_cjs = require('./chunk-25IJEN7R.cjs');
|
|
5
|
+
var chunkMMULWQOM_cjs = require('./chunk-MMULWQOM.cjs');
|
|
6
|
+
|
|
7
|
+
// pptx/editor/render/table-cell-source.ts
|
|
8
|
+
var CELL_CONTENT_TAGS = /* @__PURE__ */ new Set(["a:r", "a:br", "a:fld"]);
|
|
9
|
+
function tableCellSourceXml(element, row, col) {
|
|
10
|
+
const tbl = element.rawXml ? chunk25IJEN7R_cjs.getTblFromRawXml(element.rawXml) : void 0;
|
|
11
|
+
const rows = chunk25IJEN7R_cjs.ensureArray(tbl?.["a:tr"]);
|
|
12
|
+
const cells = chunk25IJEN7R_cjs.ensureArray(rows[row]?.["a:tc"]);
|
|
13
|
+
return cells[col];
|
|
14
|
+
}
|
|
15
|
+
function pairTableCellSource(runs, cellXml) {
|
|
16
|
+
const txBody = cellXml?.["a:txBody"];
|
|
17
|
+
if (!txBody || typeof txBody !== "object") {
|
|
18
|
+
return void 0;
|
|
19
|
+
}
|
|
20
|
+
const paragraphs = chunk25IJEN7R_cjs.ensureArray(txBody["a:p"]).map(
|
|
21
|
+
(paragraph2) => paragraph2 && typeof paragraph2 === "object" ? paragraph2 : {}
|
|
22
|
+
);
|
|
23
|
+
const entries = paragraphs.map(
|
|
24
|
+
(paragraph2) => chunkLO55N7VL_cjs.paragraphContentEntries(paragraph2, CELL_CONTENT_TAGS).entries
|
|
25
|
+
);
|
|
26
|
+
const paired = [];
|
|
27
|
+
let paragraph = 0;
|
|
28
|
+
let entry = 0;
|
|
29
|
+
for (const run of runs) {
|
|
30
|
+
if (run.isParagraphBreak) {
|
|
31
|
+
if (entry !== (entries[paragraph]?.length ?? 0)) {
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
paragraph++;
|
|
35
|
+
entry = 0;
|
|
36
|
+
paired.push(void 0);
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const next = entries[paragraph]?.[entry++];
|
|
40
|
+
if (!next) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
const [tag, item] = next;
|
|
44
|
+
const node = item && typeof item === "object" ? item : {};
|
|
45
|
+
const expected = run.isLineBreak ? "a:br" : run.isField ? "a:fld" : "a:r";
|
|
46
|
+
if (tag !== expected || tag !== "a:br" && (chunkMMULWQOM_cjs.xmlText(node["a:t"]) ?? "") !== run.text) {
|
|
47
|
+
return void 0;
|
|
48
|
+
}
|
|
49
|
+
paired.push({ tag: expected, xml: node });
|
|
50
|
+
}
|
|
51
|
+
if (paragraph !== paragraphs.length - 1 || entry !== (entries[paragraph]?.length ?? 0)) {
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
return { paragraphs, runs: paired };
|
|
55
|
+
}
|
|
56
|
+
function withRunStyle(source, style) {
|
|
57
|
+
return source ? { ...source, style: { ...style } } : void 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
exports.pairTableCellSource = pairTableCellSource;
|
|
61
|
+
exports.tableCellSourceXml = tableCellSourceXml;
|
|
62
|
+
exports.withRunStyle = withRunStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-
|
|
2
|
-
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-
|
|
3
|
-
import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-
|
|
1
|
+
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-63RAF3TS.mjs';
|
|
2
|
+
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, countExistingLayouts, addLayoutToSlideMaster, addLayoutContentType, createLayout, STANDARD_LAYOUTS, generateLayoutXml, layoutRelsXml, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, clonePartGraph, buildBlankPresentationArchive, FILL_CHOICE_ELEMENTS, relativePartTarget, PptxXmlBuilder } from './chunk-BIMV5FVL.mjs';
|
|
3
|
+
import { SP_PR_ORDER, EMU_PER_PIXEL, EMU_PER_INCH, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, buildXml, buildRelationshipsXml, bytesToBase64, base64ToBytes, LN_CHILD_ORDER, BLIP_FILL_ORDER, EFFECT_LST_ORDER, SHAPE_STYLE_ORDER, TC_PR_BORDERS_ORDER, hasTextProperties, nextRelationshipId, escAttr, NS } from './chunk-GZL4ERW3.mjs';
|
|
4
4
|
import { openPptxZip, openZip } from './chunk-U7YXYOA7.mjs';
|
|
5
5
|
import { cloneSlide, cloneElement } from './chunk-VDUNZTJC.mjs';
|
|
6
6
|
|
|
@@ -14696,7 +14696,7 @@ async function setPresentationRunText(bytes, slideIndex, elementId, runIndex, te
|
|
|
14696
14696
|
async function createPresentationFromOutline(slides, options = {}) {
|
|
14697
14697
|
if (!(slides instanceof Array) || !slides.length || slides.length > 200)
|
|
14698
14698
|
throw new Error("A presentation outline has 1 to 200 slides");
|
|
14699
|
-
const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-
|
|
14699
|
+
const { PresentationBuilder: PresentationBuilder2 } = await import('./PresentationBuilder-T6YKWPF7.mjs');
|
|
14700
14700
|
const { handler, data, createSlide } = await PresentationBuilder2.create({
|
|
14701
14701
|
...options.title ? { title: options.title } : {}
|
|
14702
14702
|
});
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from './chunk-VRVHM6TJ.mjs';
|
|
2
|
+
import { setCellText } from './chunk-FX6WL42B.mjs';
|
|
3
|
+
import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
|
|
4
|
+
|
|
5
|
+
function withTableData(element, transform, edit) {
|
|
6
|
+
const tableData = element.tableData;
|
|
7
|
+
if (!tableData) {
|
|
8
|
+
return element;
|
|
9
|
+
}
|
|
10
|
+
const next = transform(tableData);
|
|
11
|
+
if (next === tableData) {
|
|
12
|
+
return element;
|
|
13
|
+
}
|
|
14
|
+
const updated = { ...element, tableData: next };
|
|
15
|
+
if (element.rawXml) {
|
|
16
|
+
const rawXml = rebuildTableStructureInRawXml(element, next, edit);
|
|
17
|
+
if (rawXml) {
|
|
18
|
+
updated.rawXml = rawXml;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return updated;
|
|
22
|
+
}
|
|
23
|
+
function setTableElementCellText(element, rowIndex, colIndex, text) {
|
|
24
|
+
const updated = setCellText(element, rowIndex, colIndex, text);
|
|
25
|
+
if (updated === element || !element.rawXml) {
|
|
26
|
+
return updated;
|
|
27
|
+
}
|
|
28
|
+
const rawXml = updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
29
|
+
return rawXml ? { ...updated, rawXml } : updated;
|
|
30
|
+
}
|
|
31
|
+
function insertTableElementRow(element, rowIdx, position) {
|
|
32
|
+
return withTableData(element, (data) => insertTableRow(data, rowIdx, position), {
|
|
33
|
+
axis: "row",
|
|
34
|
+
action: "insert",
|
|
35
|
+
index: position === "above" ? rowIdx : rowIdx + 1
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function removeTableElementRow(element, rowIdx) {
|
|
39
|
+
return withTableData(element, (data) => deleteTableRow(data, rowIdx), {
|
|
40
|
+
axis: "row",
|
|
41
|
+
action: "delete",
|
|
42
|
+
index: rowIdx
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function insertTableElementColumn(element, colIdx, position) {
|
|
46
|
+
return withTableData(element, (data) => insertTableColumn(data, colIdx, position), {
|
|
47
|
+
axis: "column",
|
|
48
|
+
action: "insert",
|
|
49
|
+
index: position === "left" ? colIdx : colIdx + 1
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function removeTableElementColumn(element, colIdx) {
|
|
53
|
+
return withTableData(element, (data) => deleteTableColumn(data, colIdx), {
|
|
54
|
+
axis: "column",
|
|
55
|
+
action: "delete",
|
|
56
|
+
index: colIdx
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function appendTableElementRow(element) {
|
|
60
|
+
const rowCount = element.tableData?.rows.length ?? 0;
|
|
61
|
+
if (rowCount === 0) {
|
|
62
|
+
return element;
|
|
63
|
+
}
|
|
64
|
+
return insertTableElementRow(element, rowCount - 1, "below");
|
|
65
|
+
}
|
|
66
|
+
function removeLastTableElementRow(element) {
|
|
67
|
+
const rowCount = element.tableData?.rows.length ?? 0;
|
|
68
|
+
if (rowCount === 0) {
|
|
69
|
+
return element;
|
|
70
|
+
}
|
|
71
|
+
return removeTableElementRow(element, rowCount - 1);
|
|
72
|
+
}
|
|
73
|
+
function appendTableElementColumn(element) {
|
|
74
|
+
const colCount = element.tableData?.columnWidths.length ?? 0;
|
|
75
|
+
if (colCount === 0) {
|
|
76
|
+
return element;
|
|
77
|
+
}
|
|
78
|
+
return insertTableElementColumn(element, colCount - 1, "right");
|
|
79
|
+
}
|
|
80
|
+
function removeLastTableElementColumn(element) {
|
|
81
|
+
const colCount = element.tableData?.columnWidths.length ?? 0;
|
|
82
|
+
if (colCount === 0) {
|
|
83
|
+
return element;
|
|
84
|
+
}
|
|
85
|
+
return removeTableElementColumn(element, colCount - 1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { appendTableElementColumn, appendTableElementRow, insertTableElementColumn, insertTableElementRow, removeLastTableElementColumn, removeLastTableElementRow, removeTableElementColumn, removeTableElementRow, setTableElementCellText };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EMU_PER_PX } from './chunk-CA7KCNL3.mjs';
|
|
2
|
+
|
|
3
|
+
// pptx/core/core/runtime/table-structural-helpers.ts
|
|
4
|
+
var DEFAULT_ROW_HEIGHT_PX = 40;
|
|
5
|
+
var DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_PX * EMU_PER_PX;
|
|
6
|
+
function ensureArray(value) {
|
|
7
|
+
if (value === void 0 || value === null) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
return Array.isArray(value) ? value : [value];
|
|
11
|
+
}
|
|
12
|
+
function createDefaultXmlCell() {
|
|
13
|
+
return {
|
|
14
|
+
"a:txBody": {
|
|
15
|
+
"a:bodyPr": {},
|
|
16
|
+
"a:lstStyle": {},
|
|
17
|
+
"a:p": {
|
|
18
|
+
// Match PowerPoint's "Insert Table" default: every paragraph-end
|
|
19
|
+
// run carries `lang="en-US" dirty="0"`.
|
|
20
|
+
"a:endParaRPr": { "@_lang": "en-US", "@_dirty": "0" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"a:tcPr": {}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function getTblFromRawXml(rawXml) {
|
|
27
|
+
const graphicData = rawXml["a:graphic"]?.["a:graphicData"];
|
|
28
|
+
return graphicData?.["a:tbl"];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, ensureArray, getTblFromRawXml };
|
|
@@ -38,6 +38,7 @@ function updateIntersectingMerges(source, rows, edit) {
|
|
|
38
38
|
...cell,
|
|
39
39
|
text: content.text,
|
|
40
40
|
textRuns: content.textRuns,
|
|
41
|
+
textSegments: content.textSegments,
|
|
41
42
|
paragraphs: content.paragraphs,
|
|
42
43
|
style: promote ? cell.style ?? anchor.style : cell.style,
|
|
43
44
|
rowSpan: firstRow && height > 1 ? height : void 0,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// pptx/core/core/runtime/table-cell-segments-xml.ts
|
|
4
|
+
function tableCellSegmentsText(segments) {
|
|
5
|
+
return segments.map((segment) => segment.isParagraphBreak ? "\n" : segment.text ?? "").join("");
|
|
6
|
+
}
|
|
7
|
+
function tableCellSegmentsForSave(cell) {
|
|
8
|
+
const segments = cell.textSegments;
|
|
9
|
+
if (!segments || segments.length === 0) {
|
|
10
|
+
return void 0;
|
|
11
|
+
}
|
|
12
|
+
return tableCellSegmentsText(segments) === cell.text ? segments : void 0;
|
|
13
|
+
}
|
|
14
|
+
function buildCellTextBody(existingTxBody, paragraphs) {
|
|
15
|
+
const existing = existingTxBody && typeof existingTxBody === "object" ? existingTxBody : void 0;
|
|
16
|
+
const txBody = {};
|
|
17
|
+
txBody["a:bodyPr"] = existing?.["a:bodyPr"] ?? {};
|
|
18
|
+
txBody["a:lstStyle"] = existing?.["a:lstStyle"] ?? {};
|
|
19
|
+
txBody["a:p"] = paragraphs.length === 1 ? paragraphs[0] : paragraphs;
|
|
20
|
+
return txBody;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.buildCellTextBody = buildCellTextBody;
|
|
24
|
+
exports.tableCellSegmentsForSave = tableCellSegmentsForSave;
|
|
25
|
+
exports.tableCellSegmentsText = tableCellSegmentsText;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk25IJEN7R_cjs = require('./chunk-25IJEN7R.cjs');
|
|
4
|
+
var chunkMMULWQOM_cjs = require('./chunk-MMULWQOM.cjs');
|
|
5
|
+
|
|
6
|
+
// pptx/core/core/runtime/table-cell-text-xml.ts
|
|
7
|
+
var xmlArray = (value) => chunk25IJEN7R_cjs.ensureArray(value);
|
|
8
|
+
function flattenCellTxBodyText(txBody, ensureArray2) {
|
|
9
|
+
if (!txBody) {
|
|
10
|
+
return "";
|
|
11
|
+
}
|
|
12
|
+
const paragraphs = ensureArray2(txBody["a:p"]);
|
|
13
|
+
const lines = [];
|
|
14
|
+
for (const paragraph of paragraphs) {
|
|
15
|
+
const runs = ensureArray2(paragraph?.["a:r"]);
|
|
16
|
+
const fields = ensureArray2(paragraph?.["a:fld"]);
|
|
17
|
+
let lineText = "";
|
|
18
|
+
for (const run of runs) {
|
|
19
|
+
lineText += chunkMMULWQOM_cjs.xmlText(run?.["a:t"]) ?? "";
|
|
20
|
+
}
|
|
21
|
+
for (const field of fields) {
|
|
22
|
+
lineText += chunkMMULWQOM_cjs.xmlText(field?.["a:t"]) ?? "";
|
|
23
|
+
}
|
|
24
|
+
lines.push(lineText);
|
|
25
|
+
}
|
|
26
|
+
return lines.join("\n");
|
|
27
|
+
}
|
|
28
|
+
function tableCellTextBodyMatches(txBody, text, ensureArray2 = xmlArray) {
|
|
29
|
+
return Boolean(
|
|
30
|
+
txBody && ensureArray2(txBody["a:p"]).length > 0 && flattenCellTxBodyText(txBody, ensureArray2) === text
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function rebuildCellTextBody(existingTxBody, text) {
|
|
34
|
+
const existingParagraphs = chunk25IJEN7R_cjs.ensureArray(
|
|
35
|
+
existingTxBody?.["a:p"]
|
|
36
|
+
);
|
|
37
|
+
const firstParagraph = existingParagraphs.length > 0 ? existingParagraphs[0] : void 0;
|
|
38
|
+
const existingRuns = firstParagraph ? chunk25IJEN7R_cjs.ensureArray(firstParagraph["a:r"]) : [];
|
|
39
|
+
const firstRunProps = existingRuns.length > 0 ? existingRuns[0]["a:rPr"] : void 0;
|
|
40
|
+
const newRun = {};
|
|
41
|
+
if (firstRunProps !== void 0) {
|
|
42
|
+
newRun["a:rPr"] = firstRunProps;
|
|
43
|
+
}
|
|
44
|
+
newRun["a:t"] = text;
|
|
45
|
+
const newParagraph = {};
|
|
46
|
+
if (firstParagraph?.["a:pPr"] !== void 0) {
|
|
47
|
+
newParagraph["a:pPr"] = firstParagraph["a:pPr"];
|
|
48
|
+
}
|
|
49
|
+
newParagraph["a:r"] = newRun;
|
|
50
|
+
const newTxBody = {};
|
|
51
|
+
if (existingTxBody?.["a:bodyPr"] !== void 0) {
|
|
52
|
+
newTxBody["a:bodyPr"] = existingTxBody["a:bodyPr"];
|
|
53
|
+
}
|
|
54
|
+
if (existingTxBody?.["a:lstStyle"] !== void 0) {
|
|
55
|
+
newTxBody["a:lstStyle"] = existingTxBody["a:lstStyle"];
|
|
56
|
+
}
|
|
57
|
+
newTxBody["a:p"] = newParagraph;
|
|
58
|
+
return newTxBody;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// pptx/core/core/runtime/table-cell-run-style-xml.ts
|
|
62
|
+
function setRunFlag(rPr, attribute, value, on) {
|
|
63
|
+
if (value) {
|
|
64
|
+
rPr[attribute] = on;
|
|
65
|
+
} else {
|
|
66
|
+
delete rPr[attribute];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var AFTER_LATIN = [
|
|
70
|
+
"a:ea",
|
|
71
|
+
"a:cs",
|
|
72
|
+
"a:sym",
|
|
73
|
+
"a:hlinkClick",
|
|
74
|
+
"a:hlinkMouseOver",
|
|
75
|
+
"a:rtl",
|
|
76
|
+
"a:extLst"
|
|
77
|
+
];
|
|
78
|
+
function setRunLatinTypeface(rPr, typeface) {
|
|
79
|
+
const existing = rPr["a:latin"];
|
|
80
|
+
const latin = {
|
|
81
|
+
...existing && typeof existing === "object" ? existing : {},
|
|
82
|
+
"@_typeface": typeface
|
|
83
|
+
};
|
|
84
|
+
const tail = [];
|
|
85
|
+
for (const key of AFTER_LATIN) {
|
|
86
|
+
if (key in rPr) {
|
|
87
|
+
tail.push([key, rPr[key]]);
|
|
88
|
+
delete rPr[key];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
delete rPr["a:latin"];
|
|
92
|
+
rPr["a:latin"] = latin;
|
|
93
|
+
for (const [key, value] of tail) {
|
|
94
|
+
rPr[key] = value;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function applyCellRunStyleUpdates(rPr, styleUpdates) {
|
|
98
|
+
if ("bold" in styleUpdates) {
|
|
99
|
+
setRunFlag(rPr, "@_b", styleUpdates.bold, "1");
|
|
100
|
+
}
|
|
101
|
+
if ("italic" in styleUpdates) {
|
|
102
|
+
setRunFlag(rPr, "@_i", styleUpdates.italic, "1");
|
|
103
|
+
}
|
|
104
|
+
if ("underline" in styleUpdates) {
|
|
105
|
+
setRunFlag(rPr, "@_u", styleUpdates.underline, "sng");
|
|
106
|
+
}
|
|
107
|
+
if ("strikethrough" in styleUpdates) {
|
|
108
|
+
setRunFlag(rPr, "@_strike", styleUpdates.strikethrough, "sngStrike");
|
|
109
|
+
}
|
|
110
|
+
if (typeof styleUpdates.fontSize === "number" && styleUpdates.fontSize > 0) {
|
|
111
|
+
rPr["@_sz"] = String(Math.round(styleUpdates.fontSize * 100));
|
|
112
|
+
}
|
|
113
|
+
if ("color" in styleUpdates && typeof styleUpdates.color === "string") {
|
|
114
|
+
const hex = styleUpdates.color.replace("#", "");
|
|
115
|
+
const tail = [];
|
|
116
|
+
for (const key of Object.keys(rPr)) {
|
|
117
|
+
if (key.startsWith("a:") && !["a:ln"].includes(key)) {
|
|
118
|
+
tail.push([key, rPr[key]]);
|
|
119
|
+
delete rPr[key];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
rPr["a:solidFill"] = { "a:srgbClr": { "@_val": hex } };
|
|
123
|
+
for (const [key, value] of tail) {
|
|
124
|
+
if (![
|
|
125
|
+
"a:solidFill",
|
|
126
|
+
"a:noFill",
|
|
127
|
+
"a:gradFill",
|
|
128
|
+
"a:pattFill",
|
|
129
|
+
"a:blipFill",
|
|
130
|
+
"a:grpFill"
|
|
131
|
+
].includes(key)) {
|
|
132
|
+
rPr[key] = value;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (typeof styleUpdates.fontFamily === "string" && styleUpdates.fontFamily) {
|
|
137
|
+
setRunLatinTypeface(rPr, styleUpdates.fontFamily);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// pptx/core/core/runtime/table-cell-rawxml-ops.ts
|
|
142
|
+
function updateCellTextInRawXml(element, rowIndex, colIndex, text) {
|
|
143
|
+
if (!element.rawXml) {
|
|
144
|
+
return void 0;
|
|
145
|
+
}
|
|
146
|
+
const newRawXml = structuredClone(element.rawXml);
|
|
147
|
+
const table = chunk25IJEN7R_cjs.getTblFromRawXml(newRawXml);
|
|
148
|
+
if (!table) {
|
|
149
|
+
return void 0;
|
|
150
|
+
}
|
|
151
|
+
const rows = chunk25IJEN7R_cjs.ensureArray(table["a:tr"]);
|
|
152
|
+
if (rowIndex < 0 || rowIndex >= rows.length) {
|
|
153
|
+
return void 0;
|
|
154
|
+
}
|
|
155
|
+
const cells = chunk25IJEN7R_cjs.ensureArray(rows[rowIndex]["a:tc"]);
|
|
156
|
+
if (colIndex < 0 || colIndex >= cells.length) {
|
|
157
|
+
return void 0;
|
|
158
|
+
}
|
|
159
|
+
cells[colIndex]["a:txBody"] = rebuildCellTextBody(
|
|
160
|
+
cells[colIndex]["a:txBody"],
|
|
161
|
+
text
|
|
162
|
+
);
|
|
163
|
+
return newRawXml;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
exports.applyCellRunStyleUpdates = applyCellRunStyleUpdates;
|
|
167
|
+
exports.flattenCellTxBodyText = flattenCellTxBodyText;
|
|
168
|
+
exports.tableCellTextBodyMatches = tableCellTextBodyMatches;
|
|
169
|
+
exports.updateCellTextInRawXml = updateCellTextInRawXml;
|