ooxml-core 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PptxHandler-5UDSMCBG.cjs +14 -0
- package/dist/PptxHandler-TTRTAQAR.mjs +5 -0
- package/dist/{PptxHandler-Q7CFNKOU.mjs → PptxHandler-XCYX5DVX.mjs} +2 -2
- package/dist/{PresentationBuilder-VP2637RH.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
- package/dist/{PresentationBuilder-SADKXDWC.mjs → PresentationBuilder-IVLUEB4K.mjs} +2 -2
- package/dist/{PresentationBuilder-PJMQRZI6.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
- package/dist/automation/index.cjs +47556 -43468
- package/dist/automation/index.mjs +47556 -43468
- package/dist/{chunk-2LTIDUXH.cjs → chunk-A27O7M5X.cjs} +147 -133
- package/dist/{chunk-Y2RH4QWG.mjs → chunk-EGBNPVBA.mjs} +1542 -721
- package/dist/{chunk-QRXMYOVN.mjs → chunk-GNGL4BO7.mjs} +66 -44
- package/dist/chunk-LSO5SSFX.mjs +112 -0
- package/dist/chunk-MB3TYNMV.mjs +28 -0
- package/dist/{chunk-EBBWRRSB.mjs → chunk-MK2IBZU6.mjs} +1 -1
- package/dist/{chunk-BDZR4DZ6.cjs → chunk-PA5ADSTX.cjs} +1329 -1306
- package/dist/{chunk-BQGLWC6N.mjs → chunk-RI56PFGL.mjs} +67 -44
- package/dist/{chunk-3LMHYL4W.mjs → chunk-RPJHMPEL.mjs} +1 -1
- package/dist/{chunk-JQVOUS6B.mjs → chunk-TJXK4D4U.mjs} +4 -4
- package/dist/{chunk-6LJW76BZ.mjs → chunk-UQMAPY6D.mjs} +147 -128
- package/dist/chunk-XF6ZRA2D.cjs +120 -0
- package/dist/crypto/index.cjs +23 -15
- package/dist/crypto/index.mjs +23 -15
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +519 -161
- package/dist/docx/embedded.mjs +519 -161
- package/dist/docx/find-pattern.d.ts +33 -0
- package/dist/docx/find-pattern.d.ts.map +1 -0
- package/dist/docx/find-replacement.d.ts +16 -0
- package/dist/docx/find-replacement.d.ts.map +1 -0
- package/dist/docx/find-syntax.d.ts +13 -0
- package/dist/docx/find-syntax.d.ts.map +1 -0
- package/dist/docx/find-wildcards.d.ts +8 -0
- package/dist/docx/find-wildcards.d.ts.map +1 -0
- package/dist/docx/form-field-model.d.ts +39 -0
- package/dist/docx/form-field-model.d.ts.map +1 -1
- package/dist/docx/index.cjs +3157 -994
- package/dist/docx/index.d.ts +3 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +3153 -995
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +30 -8
- package/dist/docx/layout/index.mjs +30 -8
- package/dist/docx/layout/input.d.ts +2 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +6706 -1322
- package/dist/docx/load/index.mjs +6706 -1322
- package/dist/docx/load/legacy-doc/binary-save.d.ts +4 -0
- package/dist/docx/load/legacy-doc/binary-save.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/blocks.d.ts +19 -0
- package/dist/docx/load/legacy-doc/blocks.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/borders.d.ts +7 -0
- package/dist/docx/load/legacy-doc/borders.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/context.d.ts +65 -0
- package/dist/docx/load/legacy-doc/context.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/drawing.d.ts +15 -0
- package/dist/docx/load/legacy-doc/drawing.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/error.d.ts +5 -0
- package/dist/docx/load/legacy-doc/error.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/inline.d.ts +7 -0
- package/dist/docx/load/legacy-doc/inline.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/numbering-part.d.ts +3 -0
- package/dist/docx/load/legacy-doc/numbering-part.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/package.d.ts +8 -0
- package/dist/docx/load/legacy-doc/package.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/para-props.d.ts +6 -0
- package/dist/docx/load/legacy-doc/para-props.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/run-props.d.ts +8 -0
- package/dist/docx/load/legacy-doc/run-props.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/sections.d.ts +23 -0
- package/dist/docx/load/legacy-doc/sections.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/styles-part.d.ts +3 -0
- package/dist/docx/load/legacy-doc/styles-part.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/table.d.ts +6 -0
- package/dist/docx/load/legacy-doc/table.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/xml.d.ts +21 -0
- package/dist/docx/load/legacy-doc/xml.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc.d.ts +5 -4
- package/dist/docx/load/legacy-doc.d.ts.map +1 -1
- package/dist/docx/model-paragraph.d.ts +5 -0
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +3 -0
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/numbering-editing.d.ts +11 -1
- package/dist/docx/numbering-editing.d.ts.map +1 -1
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/numbering-model.d.ts +17 -0
- package/dist/docx/numbering-model.d.ts.map +1 -1
- package/dist/docx/numbering-package.d.ts +2 -2
- package/dist/docx/numbering-package.d.ts.map +1 -1
- package/dist/docx/numbering-parse.d.ts +2 -1
- package/dist/docx/numbering-parse.d.ts.map +1 -1
- package/dist/docx/numbering-picture-save.d.ts +13 -0
- package/dist/docx/numbering-picture-save.d.ts.map +1 -0
- package/dist/docx/numbering-picture.d.ts +18 -0
- package/dist/docx/numbering-picture.d.ts.map +1 -0
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/permission-markers.d.ts +19 -0
- package/dist/docx/permission-markers.d.ts.map +1 -0
- package/dist/docx/permissions.d.ts +11 -0
- package/dist/docx/permissions.d.ts.map +1 -0
- package/dist/docx/protection-legacy.d.ts +13 -0
- package/dist/docx/protection-legacy.d.ts.map +1 -0
- package/dist/docx/protection.d.ts +30 -0
- package/dist/docx/protection.d.ts.map +1 -0
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/settings.d.ts +6 -1
- package/dist/docx/settings.d.ts.map +1 -1
- package/dist/docx/ui/customization.d.ts.map +1 -1
- package/dist/docx/ui/edit-restriction.d.ts +53 -0
- package/dist/docx/ui/edit-restriction.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +548 -18
- package/dist/docx/ui/index.d.ts +4 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +528 -19
- 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/write-paragraph.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +1 -0
- package/dist/drawingml/index.mjs +1 -0
- package/dist/drawingml/write-theme.d.ts +2 -0
- package/dist/drawingml/write-theme.d.ts.map +1 -1
- package/dist/index.cjs +342 -96
- package/dist/index.mjs +343 -97
- package/dist/opc/index.cjs +5 -0
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +5 -1
- package/dist/opc/zlib.d.ts +6 -0
- package/dist/opc/zlib.d.ts.map +1 -0
- package/dist/pptx/automation/index.cjs +1919 -758
- package/dist/pptx/automation/index.d.ts +37 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +252 -10
- package/dist/pptx/automation/schemas/index.cjs +26 -0
- package/dist/pptx/automation/schemas/index.d.ts +26 -1
- package/dist/pptx/automation/schemas/index.d.ts.map +1 -0
- package/dist/pptx/automation/schemas/index.mjs +1 -1
- package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +1 -1
- package/dist/pptx/chunks/{index-BuMPQDQb.d.ts → index-pLLN4OTz.d.ts} +37 -10
- package/dist/pptx/chunks/{index-BuMPQDQb.d.ts.map → index-pLLN4OTz.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +281 -116
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +133 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts +42 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -0
- package/dist/pptx/editor/render/custom-show-operations.mjs +119 -0
- package/dist/pptx/editor/render/find-replace.cjs +15 -14
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +2 -1
- package/dist/pptx/editor/render/slide-operations.cjs +9 -8
- package/dist/pptx/editor/render/slide-operations.mjs +3 -2
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/index.cjs +1656 -761
- package/dist/pptx/index.d.ts +2 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +213 -26
- package/dist/teams/index.mjs +213 -26
- package/dist/text/index.cjs +241 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +240 -1
- package/dist/text/truetype/parse.d.ts +36 -0
- package/dist/text/truetype/parse.d.ts.map +1 -0
- package/dist/text/truetype/subset.d.ts +16 -0
- package/dist/text/truetype/subset.d.ts.map +1 -0
- package/dist/visio/action-formula.d.ts +21 -0
- package/dist/visio/action-formula.d.ts.map +1 -0
- package/dist/visio/action-menu.d.ts +8 -0
- package/dist/visio/action-menu.d.ts.map +1 -0
- package/dist/visio/bevel-3d.d.ts +61 -0
- package/dist/visio/bevel-3d.d.ts.map +1 -0
- package/dist/visio/cell-formula.d.ts.map +1 -1
- package/dist/visio/cff-masters.d.ts +17 -0
- package/dist/visio/cff-masters.d.ts.map +1 -0
- package/dist/visio/cff-recalc.d.ts +17 -0
- package/dist/visio/cff-recalc.d.ts.map +1 -0
- package/dist/visio/container-relationships.d.ts +40 -6
- package/dist/visio/container-relationships.d.ts.map +1 -1
- package/dist/visio/control-formula.d.ts +13 -0
- package/dist/visio/control-formula.d.ts.map +1 -0
- package/dist/visio/data-connections.d.ts +32 -0
- package/dist/visio/data-connections.d.ts.map +1 -0
- package/dist/visio/data-recordsets.d.ts +7 -0
- package/dist/visio/data-recordsets.d.ts.map +1 -1
- package/dist/visio/data-refresh.d.ts +33 -0
- package/dist/visio/data-refresh.d.ts.map +1 -0
- package/dist/visio/edit-action.d.ts +22 -0
- package/dist/visio/edit-action.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +9 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector-glue.d.ts +24 -1
- package/dist/visio/edit-connector-glue.d.ts.map +1 -1
- package/dist/visio/edit-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-connector-org.d.ts +11 -0
- package/dist/visio/edit-connector-org.d.ts.map +1 -0
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector-world.d.ts +25 -0
- package/dist/visio/edit-connector-world.d.ts.map +1 -0
- package/dist/visio/edit-connector.d.ts +5 -1
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-container-fit.d.ts +15 -2
- package/dist/visio/edit-container-fit.d.ts.map +1 -1
- package/dist/visio/edit-container-members.d.ts +12 -0
- package/dist/visio/edit-container-members.d.ts.map +1 -1
- package/dist/visio/edit-container-options.d.ts +33 -0
- package/dist/visio/edit-container-options.d.ts.map +1 -0
- package/dist/visio/edit-control.d.ts +28 -0
- package/dist/visio/edit-control.d.ts.map +1 -0
- package/dist/visio/edit-data-commands.d.ts +5 -0
- package/dist/visio/edit-data-commands.d.ts.map +1 -1
- package/dist/visio/edit-data-parts.d.ts +2 -0
- package/dist/visio/edit-data-parts.d.ts.map +1 -1
- package/dist/visio/edit-data.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts +2 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts.d.ts +8 -0
- package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
- package/dist/visio/edit-formatting-commands.d.ts +4 -0
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-resize-instances.d.ts +43 -0
- package/dist/visio/edit-group-resize-instances.d.ts.map +1 -0
- package/dist/visio/edit-group-resize.d.ts +1 -0
- package/dist/visio/edit-group-resize.d.ts.map +1 -1
- package/dist/visio/edit-group-rotation.d.ts +8 -0
- package/dist/visio/edit-group-rotation.d.ts.map +1 -1
- package/dist/visio/edit-instance-checks.d.ts.map +1 -1
- package/dist/visio/edit-instance-geometry.d.ts +13 -0
- package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-sheet.d.ts.map +1 -1
- package/dist/visio/edit-master-add.d.ts +3 -0
- package/dist/visio/edit-master-add.d.ts.map +1 -1
- package/dist/visio/edit-master-drop.d.ts.map +1 -1
- package/dist/visio/edit-master-media.d.ts +22 -0
- package/dist/visio/edit-master-media.d.ts.map +1 -0
- package/dist/visio/edit-master-scope.d.ts.map +1 -1
- package/dist/visio/edit-package.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-commands.d.ts +26 -0
- package/dist/visio/edit-page-theme-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-part.d.ts +6 -0
- package/dist/visio/edit-page-theme-part.d.ts.map +1 -0
- package/dist/visio/edit-page-theme.d.ts +9 -1
- package/dist/visio/edit-page-theme.d.ts.map +1 -1
- package/dist/visio/edit-picture-adjust.d.ts +32 -0
- package/dist/visio/edit-picture-adjust.d.ts.map +1 -0
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-sheet-cells.d.ts +23 -0
- package/dist/visio/edit-sheet-cells.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector.d.ts +7 -2
- package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
- package/dist/visio/edit-stencil-import.d.ts +1 -1
- package/dist/visio/edit-stencil-import.d.ts.map +1 -1
- package/dist/visio/edit-style-admission.d.ts +6 -0
- package/dist/visio/edit-style-admission.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-clone.d.ts +7 -0
- package/dist/visio/edit-swimlane-clone.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-commands.d.ts +91 -0
- package/dist/visio/edit-swimlane-commands.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-layout.d.ts +71 -0
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-ops.d.ts +12 -0
- package/dist/visio/edit-swimlane-ops.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-shapes.d.ts +42 -0
- package/dist/visio/edit-swimlane-shapes.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-turn.d.ts +9 -0
- package/dist/visio/edit-swimlane-turn.d.ts.map +1 -0
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/effects.d.ts +3 -2
- package/dist/visio/effects.d.ts.map +1 -1
- package/dist/visio/geometry.d.ts +2 -1
- package/dist/visio/geometry.d.ts.map +1 -1
- package/dist/visio/index.cjs +12115 -7631
- package/dist/visio/index.d.ts +13 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +12101 -7632
- package/dist/visio/infinite-line.d.ts +17 -0
- package/dist/visio/infinite-line.d.ts.map +1 -0
- package/dist/visio/model.d.ts +62 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/package-kind.d.ts +34 -0
- package/dist/visio/package-kind.d.ts.map +1 -0
- package/dist/visio/page-theme.d.ts +7 -0
- package/dist/visio/page-theme.d.ts.map +1 -1
- package/dist/visio/paragraphs.d.ts +1 -1
- package/dist/visio/paragraphs.d.ts.map +1 -1
- package/dist/visio/parser.d.ts +2 -2
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/shadow.d.ts +2 -1
- package/dist/visio/shadow.d.ts.map +1 -1
- package/dist/visio/shape-sections-types.d.ts +71 -0
- package/dist/visio/shape-sections-types.d.ts.map +1 -0
- package/dist/visio/shape-sections.d.ts +11 -0
- package/dist/visio/shape-sections.d.ts.map +1 -0
- package/dist/visio/shape-structure.d.ts +14 -1
- package/dist/visio/shape-structure.d.ts.map +1 -1
- package/dist/visio/shapes.d.ts +7 -1
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/stencil-file.d.ts +2 -2
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/swimlane-membership.d.ts +12 -0
- package/dist/visio/swimlane-membership.d.ts.map +1 -0
- package/dist/visio/swimlane-stack.d.ts +67 -0
- package/dist/visio/swimlane-stack.d.ts.map +1 -0
- package/dist/visio/tab-stops.d.ts +20 -0
- package/dist/visio/tab-stops.d.ts.map +1 -0
- package/dist/visio/theme-builtins.d.ts +3 -0
- package/dist/visio/theme-builtins.d.ts.map +1 -1
- package/dist/visio/theme-effects.d.ts +19 -0
- package/dist/visio/theme-effects.d.ts.map +1 -0
- package/dist/visio/theme-font.d.ts +13 -0
- package/dist/visio/theme-font.d.ts.map +1 -0
- package/dist/visio/theme-line.d.ts +10 -0
- package/dist/visio/theme-line.d.ts.map +1 -1
- package/dist/visio/theme-write.d.ts.map +1 -1
- package/dist/visio/theme.d.ts +7 -0
- package/dist/visio/theme.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-config.d.ts +46 -0
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-items.d.ts +23 -0
- package/dist/visio/ui/data-graphic-items.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +14 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +10 -1
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/data-visualizer-edits.d.ts +22 -0
- package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -0
- package/dist/visio/ui/data-visualizer.d.ts +47 -0
- package/dist/visio/ui/data-visualizer.d.ts.map +1 -0
- package/dist/visio/ui/diagram-parts.d.ts +8 -1
- package/dist/visio/ui/diagram-parts.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/guides.d.ts +9 -1
- package/dist/visio/ui/guides.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +44031 -38653
- package/dist/visio/ui/index.d.ts +10 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +43976 -38654
- package/dist/visio/ui/org-chart-edit.d.ts +52 -0
- package/dist/visio/ui/org-chart-edit.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-import.d.ts +35 -0
- package/dist/visio/ui/org-chart-import.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-layout.d.ts +43 -0
- package/dist/visio/ui/org-chart-layout.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts +11 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-template.d.ts +7 -0
- package/dist/visio/ui/org-chart-template.d.ts.map +1 -0
- package/dist/visio/ui/org-chart.d.ts +63 -0
- package/dist/visio/ui/org-chart.d.ts.map +1 -0
- package/dist/visio/ui/resize-snap.d.ts +51 -0
- package/dist/visio/ui/resize-snap.d.ts.map +1 -0
- package/dist/visio/ui/sample-drawing.d.ts +26 -0
- package/dist/visio/ui/sample-drawing.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/selection-connectors.d.ts +10 -0
- package/dist/visio/ui/selection-connectors.d.ts.map +1 -0
- package/dist/visio/ui/selection-resize.d.ts +2 -2
- package/dist/visio/ui/selection-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-group.d.ts +3 -1
- package/dist/visio/ui/shape-group.d.ts.map +1 -1
- package/dist/visio/ui/shape-move.d.ts.map +1 -1
- package/dist/visio/ui/shape-resize.d.ts +29 -1
- package/dist/visio/ui/shape-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-rotation.d.ts +3 -1
- package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/swimlane.d.ts +37 -0
- package/dist/visio/ui/swimlane.d.ts.map +1 -0
- package/dist/visio/ui/templates.d.ts +30 -0
- package/dist/visio/ui/templates.d.ts.map +1 -0
- package/dist/xlsx/audit/ast-text.d.ts +12 -0
- package/dist/xlsx/audit/ast-text.d.ts.map +1 -0
- package/dist/xlsx/audit/error-check.d.ts +23 -0
- package/dist/xlsx/audit/error-check.d.ts.map +1 -0
- package/dist/xlsx/audit/evaluate-steps.d.ts +48 -0
- package/dist/xlsx/audit/evaluate-steps.d.ts.map +1 -0
- package/dist/xlsx/audit/index.d.ts +6 -0
- package/dist/xlsx/audit/index.d.ts.map +1 -0
- package/dist/xlsx/audit/trace.d.ts +59 -0
- package/dist/xlsx/audit/trace.d.ts.map +1 -0
- package/dist/xlsx/audit/watch.d.ts +17 -0
- package/dist/xlsx/audit/watch.d.ts.map +1 -0
- package/dist/xlsx/edit/filter.d.ts +5 -2
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +4 -1
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/sort-choices.d.ts +23 -0
- package/dist/xlsx/edit/sort-choices.d.ts.map +1 -0
- package/dist/xlsx/edit/sort-keys.d.ts +49 -0
- package/dist/xlsx/edit/sort-keys.d.ts.map +1 -0
- package/dist/xlsx/edit/sort-reapply.d.ts +11 -0
- package/dist/xlsx/edit/sort-reapply.d.ts.map +1 -0
- package/dist/xlsx/edit/sort.d.ts +14 -12
- package/dist/xlsx/edit/sort.d.ts.map +1 -1
- package/dist/xlsx/edit/types.d.ts +7 -6
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/edit/view.d.ts +9 -1
- package/dist/xlsx/edit/view.d.ts.map +1 -1
- package/dist/xlsx/filter-criteria.d.ts +2 -1
- package/dist/xlsx/filter-criteria.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-types.d.ts +8 -0
- package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
- package/dist/xlsx/formula/engine.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +5478 -4220
- package/dist/xlsx/index.d.ts +1 -0
- package/dist/xlsx/index.d.ts.map +1 -1
- package/dist/xlsx/index.mjs +5450 -4221
- package/dist/xlsx/layout/index.d.ts +1 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/split.d.ts +55 -0
- package/dist/xlsx/layout/split.d.ts.map +1 -0
- package/dist/xlsx/layout/viewport.d.ts +2 -0
- package/dist/xlsx/layout/viewport.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +305 -109
- package/dist/xlsx/load/index.mjs +305 -109
- package/dist/xlsx/model-sort.d.ts +27 -0
- package/dist/xlsx/model-sort.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +39 -1
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/ignored-errors.d.ts +4 -0
- package/dist/xlsx/read/ignored-errors.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/read/sort-state.d.ts +5 -0
- package/dist/xlsx/read/sort-state.d.ts.map +1 -0
- package/dist/xlsx/read/tables.d.ts +2 -2
- package/dist/xlsx/read/tables.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/sort-lists.d.ts +6 -0
- package/dist/xlsx/sort-lists.d.ts.map +1 -0
- package/dist/xlsx/ui/audit-state.d.ts +19 -0
- package/dist/xlsx/ui/audit-state.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/audit.d.ts +3 -0
- package/dist/xlsx/ui/commands/audit.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/audit.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/audit.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +6 -1
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/geometry.d.ts +29 -1
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +10761 -9573
- package/dist/xlsx/ui/index.d.ts +1 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +10755 -9574
- package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
- package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -1
- package/dist/xlsx/write/filter-columns.d.ts +14 -0
- package/dist/xlsx/write/filter-columns.d.ts.map +1 -1
- package/dist/xlsx/write/ignored-errors.d.ts +3 -0
- package/dist/xlsx/write/ignored-errors.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/write/sort-state.d.ts +55 -0
- package/dist/xlsx/write/sort-state.d.ts.map +1 -0
- package/dist/xlsx/write/table-patch.d.ts +2 -1
- package/dist/xlsx/write/table-patch.d.ts.map +1 -1
- package/dist/xlsx/write/tables.d.ts +2 -1
- package/dist/xlsx/write/tables.d.ts.map +1 -1
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/PptxHandler-MGKMIK22.cjs +0 -13
- package/dist/PptxHandler-TEC7SWBU.mjs +0 -4
- package/dist/chunk-MHNETXQB.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OOXML_PERCENT_UNITS, OOXML_ANGLE_UNITS_PER_DEGREE, EMU_PER_PX, EMU_PER_PIXEL } from './chunk-CA7KCNL3.mjs';
|
|
2
2
|
import JSZip from 'jszip';
|
|
3
3
|
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
4
4
|
import { XMLBuilder, XMLParser } from 'fast-xml-parser';
|
|
@@ -69,6 +69,125 @@ function cloneXmlObject(value) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
// pptx/core/utils/custom-show-actions.ts
|
|
73
|
+
var UNSIGNED_INT_MAX = 4294967295;
|
|
74
|
+
function isUnsignedInt(id) {
|
|
75
|
+
return /^\d+$/.test(id) && Number(id) <= UNSIGNED_INT_MAX;
|
|
76
|
+
}
|
|
77
|
+
function normalizeCustomShowIds(shows) {
|
|
78
|
+
const used = /* @__PURE__ */ new Set();
|
|
79
|
+
let max = -1;
|
|
80
|
+
for (const show of shows) {
|
|
81
|
+
if (isUnsignedInt(show.id) && !used.has(show.id)) {
|
|
82
|
+
used.add(show.id);
|
|
83
|
+
max = Math.max(max, Number(show.id));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const kept = /* @__PURE__ */ new Set();
|
|
87
|
+
const idMap = /* @__PURE__ */ new Map();
|
|
88
|
+
const next = shows.map((show) => {
|
|
89
|
+
if (isUnsignedInt(show.id) && !kept.has(show.id)) {
|
|
90
|
+
kept.add(show.id);
|
|
91
|
+
return show;
|
|
92
|
+
}
|
|
93
|
+
const id = String(++max);
|
|
94
|
+
if (!idMap.has(show.id)) {
|
|
95
|
+
idMap.set(show.id, id);
|
|
96
|
+
}
|
|
97
|
+
return { ...show, id };
|
|
98
|
+
});
|
|
99
|
+
return {
|
|
100
|
+
shows: idMap.size > 0 || next.some((s, i2) => s !== shows[i2]) ? next : [...shows],
|
|
101
|
+
idMap
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function customShowActionId(action) {
|
|
105
|
+
if (!action || !action.toLowerCase().includes("ppaction://customshow")) {
|
|
106
|
+
return void 0;
|
|
107
|
+
}
|
|
108
|
+
const match = action.match(/[?&]id=([^&]*)/i);
|
|
109
|
+
return match ? decodeURIComponent(match[1]) : void 0;
|
|
110
|
+
}
|
|
111
|
+
function rewriteAction(action, rewrite) {
|
|
112
|
+
const id = customShowActionId(action);
|
|
113
|
+
if (id === void 0) {
|
|
114
|
+
return { changed: false, action };
|
|
115
|
+
}
|
|
116
|
+
const next = rewrite(id);
|
|
117
|
+
if (next === id) {
|
|
118
|
+
return { changed: false, action };
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
changed: true,
|
|
122
|
+
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, `$1${encodeURIComponent(next)}`)
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function mapElement(element, rewrite) {
|
|
126
|
+
let changed = 0;
|
|
127
|
+
let next = element;
|
|
128
|
+
const edit = () => {
|
|
129
|
+
if (next === element) {
|
|
130
|
+
next = { ...element };
|
|
131
|
+
}
|
|
132
|
+
return next;
|
|
133
|
+
};
|
|
134
|
+
for (const key of ["actionClick", "actionHover"]) {
|
|
135
|
+
const current = element[key];
|
|
136
|
+
const result = rewriteAction(current?.action, rewrite);
|
|
137
|
+
if (current && result.changed) {
|
|
138
|
+
changed++;
|
|
139
|
+
if (result.action === void 0) {
|
|
140
|
+
delete edit()[key];
|
|
141
|
+
} else {
|
|
142
|
+
edit()[key] = { ...current, action: result.action };
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const segments = "textSegments" in element ? element.textSegments : void 0;
|
|
147
|
+
if (segments?.some((s) => customShowActionId(s.style?.hyperlinkAction) !== void 0)) {
|
|
148
|
+
edit().textSegments = segments.map((segment) => {
|
|
149
|
+
const result = rewriteAction(segment.style?.hyperlinkAction, rewrite);
|
|
150
|
+
if (!result.changed) {
|
|
151
|
+
return segment;
|
|
152
|
+
}
|
|
153
|
+
changed++;
|
|
154
|
+
if (result.action !== void 0) {
|
|
155
|
+
return { ...segment, style: { ...segment.style, hyperlinkAction: result.action } };
|
|
156
|
+
}
|
|
157
|
+
const {
|
|
158
|
+
hyperlink: _h,
|
|
159
|
+
hyperlinkRId: _r,
|
|
160
|
+
hyperlinkTooltip: _t,
|
|
161
|
+
hyperlinkAction: _a,
|
|
162
|
+
hyperlinkTargetSlideIndex: _i,
|
|
163
|
+
...style
|
|
164
|
+
} = segment.style;
|
|
165
|
+
return { ...segment, style };
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
if (element.type === "group") {
|
|
169
|
+
const children12 = element.children.map((child17) => mapElement(child17, rewrite));
|
|
170
|
+
if (children12.some((c) => c.changed > 0)) {
|
|
171
|
+
edit().children = children12.map((c) => c.element);
|
|
172
|
+
changed += children12.reduce((n, c) => n + c.changed, 0);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return { element: next, changed };
|
|
176
|
+
}
|
|
177
|
+
function mapCustomShowActions(slides, rewrite) {
|
|
178
|
+
let changed = 0;
|
|
179
|
+
const next = slides.map((slide) => {
|
|
180
|
+
const results = slide.elements.map((element) => mapElement(element, rewrite));
|
|
181
|
+
const n = results.reduce((sum, r) => sum + r.changed, 0);
|
|
182
|
+
if (n === 0) {
|
|
183
|
+
return slide;
|
|
184
|
+
}
|
|
185
|
+
changed += n;
|
|
186
|
+
return { ...slide, elements: results.map((r) => r.element) };
|
|
187
|
+
});
|
|
188
|
+
return { slides: next, changed };
|
|
189
|
+
}
|
|
190
|
+
|
|
72
191
|
// pptx/core/types/theme.ts
|
|
73
192
|
var THEME_COLOR_SCHEME_KEYS = [
|
|
74
193
|
"dk1",
|
|
@@ -1873,7 +1992,7 @@ function mimeTypeForOleFile(fileNameOrExtension) {
|
|
|
1873
1992
|
return OLE_EXTENSION_MIME_MAP.get(ext) ?? fallback;
|
|
1874
1993
|
}
|
|
1875
1994
|
|
|
1876
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
1995
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
|
|
1877
1996
|
var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
|
|
1878
1997
|
var ENDOFCHAIN = 4294967294;
|
|
1879
1998
|
var FREESECT = 4294967295;
|
|
@@ -1893,16 +2012,18 @@ var Ole2ParseError = class extends Error {
|
|
|
1893
2012
|
}
|
|
1894
2013
|
};
|
|
1895
2014
|
|
|
1896
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
1897
|
-
var
|
|
1898
|
-
function
|
|
1899
|
-
const ticks = view.getBigUint64(offset, true);
|
|
2015
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-filetime.js
|
|
2016
|
+
var EPOCH = 116444736000000000n;
|
|
2017
|
+
function fileTimeDate(ticks) {
|
|
1900
2018
|
if (ticks === 0n)
|
|
1901
2019
|
return void 0;
|
|
1902
|
-
const
|
|
1903
|
-
const
|
|
2020
|
+
const delta2 = ticks - EPOCH;
|
|
2021
|
+
const ms = delta2 >= 0n ? delta2 / 10000n : (delta2 - 9999n) / 10000n;
|
|
2022
|
+
const date = new Date(Number(ms));
|
|
1904
2023
|
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
1905
2024
|
}
|
|
2025
|
+
|
|
2026
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
|
|
1906
2027
|
function decodeSlot(dir, id, majorVersion, warnings) {
|
|
1907
2028
|
const view = new DataView(dir.buffer, dir.byteOffset + id * DIR_ENTRY_SIZE, DIR_ENTRY_SIZE);
|
|
1908
2029
|
const nameLen = view.getUint16(64, true);
|
|
@@ -1938,8 +2059,10 @@ function decodeSlot(dir, id, majorVersion, warnings) {
|
|
|
1938
2059
|
childId: link(76),
|
|
1939
2060
|
clsid: new Uint8Array(view.buffer.slice(view.byteOffset + 80, view.byteOffset + 96)),
|
|
1940
2061
|
stateBits: view.getUint32(96, true),
|
|
1941
|
-
created:
|
|
1942
|
-
modified:
|
|
2062
|
+
created: fileTimeDate(view.getBigUint64(100, true)),
|
|
2063
|
+
modified: fileTimeDate(view.getBigUint64(108, true)),
|
|
2064
|
+
createdFileTime: view.getBigUint64(100, true),
|
|
2065
|
+
modifiedFileTime: view.getBigUint64(108, true),
|
|
1943
2066
|
startSector: view.getUint32(116, true),
|
|
1944
2067
|
size,
|
|
1945
2068
|
parentId: -1
|
|
@@ -2055,7 +2178,7 @@ function findStreamByName(entries, name, isReadable) {
|
|
|
2055
2178
|
return top.find((entry) => entry.name === name) ?? top.find((entry) => sameName(entry.name, name)) ?? entries.find((entry) => entry.name === name && isReadable(entry));
|
|
2056
2179
|
}
|
|
2057
2180
|
|
|
2058
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2181
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
|
|
2059
2182
|
function parseOle2(buffer, options = {}) {
|
|
2060
2183
|
const strict = options.strict === true;
|
|
2061
2184
|
const data = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
|
|
@@ -2202,7 +2325,11 @@ function parseOle2(buffer, options = {}) {
|
|
|
2202
2325
|
}
|
|
2203
2326
|
if (firstDirectorySector > MAXREGSECT)
|
|
2204
2327
|
throw new Ole2ParseError("Missing directory chain");
|
|
2205
|
-
const
|
|
2328
|
+
const directoryBytes = readMetadataChain(firstDirectorySector, "directory");
|
|
2329
|
+
if (strict && majorVersion === 4 && view.getUint32(40, true) !== directoryBytes.length / sectorSize) {
|
|
2330
|
+
throw new Ole2ParseError("Unexpected directory sector count");
|
|
2331
|
+
}
|
|
2332
|
+
const entries = readDirectory(directoryBytes, majorVersion, strict, warnings);
|
|
2206
2333
|
for (const entry of entries) {
|
|
2207
2334
|
if (majorVersion === 4 && (!Number.isSafeInteger(entry.size) || entry.size > sectorCount * sectorSize)) {
|
|
2208
2335
|
throw new Ole2ParseError("Stream size exceeds supported file bounds");
|
|
@@ -2407,7 +2534,7 @@ function unwrapOleEmbedding(bytes) {
|
|
|
2407
2534
|
return { data: bytes };
|
|
2408
2535
|
}
|
|
2409
2536
|
|
|
2410
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2537
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
|
|
2411
2538
|
function compareDirEntryNames(a, b) {
|
|
2412
2539
|
const ua = a.toUpperCase();
|
|
2413
2540
|
const ub = b.toUpperCase();
|
|
@@ -2474,7 +2601,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
|
|
|
2474
2601
|
}
|
|
2475
2602
|
}
|
|
2476
2603
|
|
|
2477
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2604
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
|
|
2478
2605
|
function writeHeader(outView, outBytes, params) {
|
|
2479
2606
|
outBytes.set(OLE_MAGIC, 0);
|
|
2480
2607
|
outView.setUint16(24, 62, true);
|
|
@@ -2567,7 +2694,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
|
|
|
2567
2694
|
}
|
|
2568
2695
|
}
|
|
2569
2696
|
|
|
2570
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2697
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
|
|
2571
2698
|
function buildOle2(streams2, rootClsid, miniStreamCutoff = 4096) {
|
|
2572
2699
|
const sectorSize = 512;
|
|
2573
2700
|
const miniSectorSize = 64;
|
|
@@ -3446,7 +3573,7 @@ function preservesSpreadsheetXmlWhitespace(tagName) {
|
|
|
3446
3573
|
return SPREADSHEET_WHITESPACE_PRESERVING_TAGS.has(tagName);
|
|
3447
3574
|
}
|
|
3448
3575
|
|
|
3449
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
3576
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
|
|
3450
3577
|
(() => {
|
|
3451
3578
|
const table = new Uint32Array(256);
|
|
3452
3579
|
for (let n = 0; n < 256; n++) {
|
|
@@ -34460,7 +34587,7 @@ var EncryptedFileError = class extends Error {
|
|
|
34460
34587
|
}
|
|
34461
34588
|
};
|
|
34462
34589
|
|
|
34463
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
34590
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
|
|
34464
34591
|
function getSubtle() {
|
|
34465
34592
|
if (typeof globalThis.crypto !== "undefined" && globalThis.crypto.subtle) {
|
|
34466
34593
|
return globalThis.crypto.subtle;
|
|
@@ -44981,10 +45108,10 @@ function annotateCustomGeometryCommandOrder(xml, parsed) {
|
|
|
44981
45108
|
}
|
|
44982
45109
|
}
|
|
44983
45110
|
}
|
|
44984
|
-
function orderedPathCommandEntries(path,
|
|
45111
|
+
function orderedPathCommandEntries(path, ensureArray7) {
|
|
44985
45112
|
const commandItems = (key) => {
|
|
44986
45113
|
const value = path[key];
|
|
44987
|
-
const items =
|
|
45114
|
+
const items = ensureArray7(value);
|
|
44988
45115
|
return items.length === 0 && localName6(key) === "close" && value !== void 0 ? [value] : items;
|
|
44989
45116
|
};
|
|
44990
45117
|
const order = commandOrder.get(path);
|
|
@@ -49580,112 +49707,4 @@ function applyCommentMentions(node, mentions, extension, replace) {
|
|
|
49580
49707
|
return rebuilt;
|
|
49581
49708
|
}
|
|
49582
49709
|
|
|
49583
|
-
|
|
49584
|
-
var DEFAULT_ROW_HEIGHT_PX = 40;
|
|
49585
|
-
var DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_PX * EMU_PER_PX;
|
|
49586
|
-
function ensureArray7(value) {
|
|
49587
|
-
if (value === void 0 || value === null) {
|
|
49588
|
-
return [];
|
|
49589
|
-
}
|
|
49590
|
-
return Array.isArray(value) ? value : [value];
|
|
49591
|
-
}
|
|
49592
|
-
function createDefaultXmlCell() {
|
|
49593
|
-
return {
|
|
49594
|
-
"a:txBody": {
|
|
49595
|
-
"a:bodyPr": {},
|
|
49596
|
-
"a:lstStyle": {},
|
|
49597
|
-
"a:p": {
|
|
49598
|
-
// Match PowerPoint's "Insert Table" default: every paragraph-end
|
|
49599
|
-
// run carries `lang="en-US" dirty="0"`.
|
|
49600
|
-
"a:endParaRPr": { "@_lang": "en-US", "@_dirty": "0" }
|
|
49601
|
-
}
|
|
49602
|
-
},
|
|
49603
|
-
"a:tcPr": {}
|
|
49604
|
-
};
|
|
49605
|
-
}
|
|
49606
|
-
function getTblFromRawXml(rawXml) {
|
|
49607
|
-
const graphicData = rawXml["a:graphic"]?.["a:graphicData"];
|
|
49608
|
-
return graphicData?.["a:tbl"];
|
|
49609
|
-
}
|
|
49610
|
-
|
|
49611
|
-
// pptx/core/core/runtime/table-cell-text-xml.ts
|
|
49612
|
-
var xmlArray = (value) => ensureArray7(value);
|
|
49613
|
-
function flattenCellTxBodyText(txBody, ensureArray8) {
|
|
49614
|
-
if (!txBody) {
|
|
49615
|
-
return "";
|
|
49616
|
-
}
|
|
49617
|
-
const paragraphs = ensureArray8(txBody["a:p"]);
|
|
49618
|
-
const lines = [];
|
|
49619
|
-
for (const paragraph of paragraphs) {
|
|
49620
|
-
const runs = ensureArray8(paragraph?.["a:r"]);
|
|
49621
|
-
const fields = ensureArray8(paragraph?.["a:fld"]);
|
|
49622
|
-
let lineText = "";
|
|
49623
|
-
for (const run of runs) {
|
|
49624
|
-
lineText += xmlText(run?.["a:t"]) ?? "";
|
|
49625
|
-
}
|
|
49626
|
-
for (const field of fields) {
|
|
49627
|
-
lineText += xmlText(field?.["a:t"]) ?? "";
|
|
49628
|
-
}
|
|
49629
|
-
lines.push(lineText);
|
|
49630
|
-
}
|
|
49631
|
-
return lines.join("\n");
|
|
49632
|
-
}
|
|
49633
|
-
function tableCellTextBodyMatches(txBody, text2, ensureArray8 = xmlArray) {
|
|
49634
|
-
return Boolean(
|
|
49635
|
-
txBody && ensureArray8(txBody["a:p"]).length > 0 && flattenCellTxBodyText(txBody, ensureArray8) === text2
|
|
49636
|
-
);
|
|
49637
|
-
}
|
|
49638
|
-
function rebuildCellTextBody(existingTxBody, text2) {
|
|
49639
|
-
const existingParagraphs = ensureArray7(
|
|
49640
|
-
existingTxBody?.["a:p"]
|
|
49641
|
-
);
|
|
49642
|
-
const firstParagraph = existingParagraphs.length > 0 ? existingParagraphs[0] : void 0;
|
|
49643
|
-
const existingRuns = firstParagraph ? ensureArray7(firstParagraph["a:r"]) : [];
|
|
49644
|
-
const firstRunProps = existingRuns.length > 0 ? existingRuns[0]["a:rPr"] : void 0;
|
|
49645
|
-
const newRun = {};
|
|
49646
|
-
if (firstRunProps !== void 0) {
|
|
49647
|
-
newRun["a:rPr"] = firstRunProps;
|
|
49648
|
-
}
|
|
49649
|
-
newRun["a:t"] = text2;
|
|
49650
|
-
const newParagraph = {};
|
|
49651
|
-
if (firstParagraph?.["a:pPr"] !== void 0) {
|
|
49652
|
-
newParagraph["a:pPr"] = firstParagraph["a:pPr"];
|
|
49653
|
-
}
|
|
49654
|
-
newParagraph["a:r"] = newRun;
|
|
49655
|
-
const newTxBody = {};
|
|
49656
|
-
if (existingTxBody?.["a:bodyPr"] !== void 0) {
|
|
49657
|
-
newTxBody["a:bodyPr"] = existingTxBody["a:bodyPr"];
|
|
49658
|
-
}
|
|
49659
|
-
if (existingTxBody?.["a:lstStyle"] !== void 0) {
|
|
49660
|
-
newTxBody["a:lstStyle"] = existingTxBody["a:lstStyle"];
|
|
49661
|
-
}
|
|
49662
|
-
newTxBody["a:p"] = newParagraph;
|
|
49663
|
-
return newTxBody;
|
|
49664
|
-
}
|
|
49665
|
-
|
|
49666
|
-
// pptx/core/core/runtime/table-cell-rawxml-ops.ts
|
|
49667
|
-
function updateCellTextInRawXml(element, rowIndex, colIndex, text2) {
|
|
49668
|
-
if (!element.rawXml) {
|
|
49669
|
-
return void 0;
|
|
49670
|
-
}
|
|
49671
|
-
const newRawXml = structuredClone(element.rawXml);
|
|
49672
|
-
const table = getTblFromRawXml(newRawXml);
|
|
49673
|
-
if (!table) {
|
|
49674
|
-
return void 0;
|
|
49675
|
-
}
|
|
49676
|
-
const rows = ensureArray7(table["a:tr"]);
|
|
49677
|
-
if (rowIndex < 0 || rowIndex >= rows.length) {
|
|
49678
|
-
return void 0;
|
|
49679
|
-
}
|
|
49680
|
-
const cells = ensureArray7(rows[rowIndex]["a:tc"]);
|
|
49681
|
-
if (colIndex < 0 || colIndex >= cells.length) {
|
|
49682
|
-
return void 0;
|
|
49683
|
-
}
|
|
49684
|
-
cells[colIndex]["a:txBody"] = rebuildCellTextBody(
|
|
49685
|
-
cells[colIndex]["a:txBody"],
|
|
49686
|
-
text2
|
|
49687
|
-
);
|
|
49688
|
-
return newRawXml;
|
|
49689
|
-
}
|
|
49690
|
-
|
|
49691
|
-
export { ARTISTIC_PRIMARY_ATTRIBUTE, BLIP_FILL_ORDER, CAMERA_PRESETS, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_GENERATED_DIAGRAM_SCHEME, DEFAULT_MAX_UNCOMPRESSED_BYTES, DEFAULT_ROW_HEIGHT_EMU, DIAGRAM_DATA_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIAGRAM_XML_PROLOG, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, GENERATED_DIAGRAM_CACHE_NS, IncorrectPasswordError, LIGHT_DIRECTIONS, LIGHT_RIGS, LN_CHILD_ORDER, MAX_SHAPE_ID, MAX_ZIP_ENTRY_COUNT, NS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, RC4_ALG_ID, RELATIONSHIP_TYPES, RUN_PROPERTIES_ORDER, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, ZipBombError, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, appendInSchemaOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCommentMentions, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, attr, backgroundRefNode, backgroundStyleColorMap, backgroundStylePreset, backgroundStyleRefIsCurrent, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildRelationshipsXml, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildXml, captureDiagramPictures, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, children2 as children, cloneElement, cloneSlide, cloneXmlObject, collectAllText, collectTransitionText, colorsEqual, concatArrays, connectionLabel, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createDefaultXmlCell, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeBase64, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, descendants2 as descendants, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diagramPictureRelationships, drawingColorXml, drawingEffectsXml, drawingFillXml, drawingLineXml, effectChild, effectIsPurelyStyleMatrix, elements, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArray7 as ensureArray, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, escapeDiagramXml, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractCxSeriesColor, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillElementOf, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, findThemeEffectScheme, first, firstParagraphRuns, flattenCellTxBodyText, formatAutoNumberMarker, formatSchemeKey, generateFontGuid, generatedDrawingDigest, getSignaturePathsToStrip, getTblFromRawXml, guardZip, hasLocalName, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isDarkColorMap, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, loadThemeVariants, lookupPresetShape, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, nextRelationshipId, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, openPptxZip, openZip, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartManualLayout, parseChartUniqueId, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxAxes, parseCxChartSeries, parseCxDataLabels, parseCxRegionMapOptions, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramColors, parseDiagramDataModel, parseDiagramDrawing, parseDiagramLayoutSummary, parseDiagramQuickStyle, parseDiagramRelationshipIds, parseDrawingColorIn, parseDrawingEffects, parseDrawingFill, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLine, parseDrawingLineDash, parseDrawingMediaReference, parseDrawingRichTextBody, parseDrawingTextBody, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseRelationships, parseSeriesDataLabels, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, parseXml, patchDrawingColorIn, patchDrawingLine, picturePercentage, positiveFixedAngleAttribute, pptxActionToElementAction, preservesXmlWhitespace, previewDiagramLayout, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, reResolveElementsForColorMapChange, readChartManualLayoutValues, readCommentMentions, readPathListCommandOrder, readPictureEffect, readScene3DValues, readText3DValues, reapplyAlternateContentToTree, rebaseCommentMentions, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relAttr, relationshipsPartFor, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveDiagramLayoutCategory, resolveDrawingColor, resolveLayoutDisplayName, resolveParagraphAlignment, resolvePartPath, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveThemeEffectStyle, resolveThemeFillStyle, resolveThemeLineStyle, resolveTxPrDefRPr, restorePathListCommandOrder, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, setDrawingFillXml, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, slideBackgroundStyleRefFromNode, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, tableCellTextBodyMatches, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateSmartArtNodeText, upsertChartAxisChild, withDiagramPictureSources, withThemePlaceholderColor, wrapFormatSchemeXml, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeGeneratedDiagramDrawing, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlHasChild, xmlPath, xmlText, zlibStore };
|
|
49710
|
+
export { ARTISTIC_PRIMARY_ATTRIBUTE, BLIP_FILL_ORDER, CAMERA_PRESETS, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_GENERATED_DIAGRAM_SCHEME, DEFAULT_MAX_UNCOMPRESSED_BYTES, DIAGRAM_DATA_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIAGRAM_XML_PROLOG, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, GENERATED_DIAGRAM_CACHE_NS, IncorrectPasswordError, LIGHT_DIRECTIONS, LIGHT_RIGS, LN_CHILD_ORDER, MAX_SHAPE_ID, MAX_ZIP_ENTRY_COUNT, NS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, RC4_ALG_ID, RELATIONSHIP_TYPES, RUN_PROPERTIES_ORDER, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, ZipBombError, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, appendInSchemaOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCommentMentions, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, attr, backgroundRefNode, backgroundStyleColorMap, backgroundStylePreset, backgroundStyleRefIsCurrent, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildRelationshipsXml, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildXml, captureDiagramPictures, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, children2 as children, cloneElement, cloneSlide, cloneXmlObject, collectAllText, collectTransitionText, colorsEqual, concatArrays, connectionLabel, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeBase64, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, descendants2 as descendants, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diagramPictureRelationships, drawingColorXml, drawingEffectsXml, drawingFillXml, drawingLineXml, effectChild, effectIsPurelyStyleMatrix, elements, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, escapeDiagramXml, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractCxSeriesColor, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillElementOf, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, findThemeEffectScheme, first, firstParagraphRuns, formatAutoNumberMarker, formatSchemeKey, generateFontGuid, generatedDrawingDigest, getSignaturePathsToStrip, guardZip, hasLocalName, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isDarkColorMap, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, loadThemeVariants, lookupPresetShape, mapCustomShowActions, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, nextRelationshipId, normalizeCustomShowIds, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, openPptxZip, openZip, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartManualLayout, parseChartUniqueId, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxAxes, parseCxChartSeries, parseCxDataLabels, parseCxRegionMapOptions, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramColors, parseDiagramDataModel, parseDiagramDrawing, parseDiagramLayoutSummary, parseDiagramQuickStyle, parseDiagramRelationshipIds, parseDrawingColorIn, parseDrawingEffects, parseDrawingFill, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLine, parseDrawingLineDash, parseDrawingMediaReference, parseDrawingRichTextBody, parseDrawingTextBody, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseRelationships, parseSeriesDataLabels, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, parseXml, patchDrawingColorIn, patchDrawingLine, picturePercentage, positiveFixedAngleAttribute, pptxActionToElementAction, preservesXmlWhitespace, previewDiagramLayout, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, reResolveElementsForColorMapChange, readChartManualLayoutValues, readCommentMentions, readPathListCommandOrder, readPictureEffect, readScene3DValues, readText3DValues, reapplyAlternateContentToTree, rebaseCommentMentions, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relAttr, relationshipsPartFor, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveDiagramLayoutCategory, resolveDrawingColor, resolveLayoutDisplayName, resolveParagraphAlignment, resolvePartPath, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveThemeEffectStyle, resolveThemeFillStyle, resolveThemeLineStyle, resolveTxPrDefRPr, restorePathListCommandOrder, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, setDrawingFillXml, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, slideBackgroundStyleRefFromNode, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateSmartArtNodeText, upsertChartAxisChild, withDiagramPictureSources, withThemePlaceholderColor, wrapFormatSchemeXml, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeGeneratedDiagramDrawing, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlHasChild, xmlPath, xmlText, zlibStore };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkA27O7M5X_cjs = require('./chunk-A27O7M5X.cjs');
|
|
4
|
+
var chunk5W2QL4SB_cjs = require('./chunk-5W2QL4SB.cjs');
|
|
5
|
+
|
|
6
|
+
// pptx/core/core/runtime/table-structural-helpers.ts
|
|
7
|
+
var DEFAULT_ROW_HEIGHT_PX = 40;
|
|
8
|
+
var DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_PX * chunk5W2QL4SB_cjs.EMU_PER_PX;
|
|
9
|
+
function ensureArray(value) {
|
|
10
|
+
if (value === void 0 || value === null) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
return Array.isArray(value) ? value : [value];
|
|
14
|
+
}
|
|
15
|
+
function createDefaultXmlCell() {
|
|
16
|
+
return {
|
|
17
|
+
"a:txBody": {
|
|
18
|
+
"a:bodyPr": {},
|
|
19
|
+
"a:lstStyle": {},
|
|
20
|
+
"a:p": {
|
|
21
|
+
// Match PowerPoint's "Insert Table" default: every paragraph-end
|
|
22
|
+
// run carries `lang="en-US" dirty="0"`.
|
|
23
|
+
"a:endParaRPr": { "@_lang": "en-US", "@_dirty": "0" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"a:tcPr": {}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function getTblFromRawXml(rawXml) {
|
|
30
|
+
const graphicData = rawXml["a:graphic"]?.["a:graphicData"];
|
|
31
|
+
return graphicData?.["a:tbl"];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// pptx/core/core/runtime/table-cell-text-xml.ts
|
|
35
|
+
var xmlArray = (value) => ensureArray(value);
|
|
36
|
+
function flattenCellTxBodyText(txBody, ensureArray2) {
|
|
37
|
+
if (!txBody) {
|
|
38
|
+
return "";
|
|
39
|
+
}
|
|
40
|
+
const paragraphs = ensureArray2(txBody["a:p"]);
|
|
41
|
+
const lines = [];
|
|
42
|
+
for (const paragraph of paragraphs) {
|
|
43
|
+
const runs = ensureArray2(paragraph?.["a:r"]);
|
|
44
|
+
const fields = ensureArray2(paragraph?.["a:fld"]);
|
|
45
|
+
let lineText = "";
|
|
46
|
+
for (const run of runs) {
|
|
47
|
+
lineText += chunkA27O7M5X_cjs.xmlText(run?.["a:t"]) ?? "";
|
|
48
|
+
}
|
|
49
|
+
for (const field of fields) {
|
|
50
|
+
lineText += chunkA27O7M5X_cjs.xmlText(field?.["a:t"]) ?? "";
|
|
51
|
+
}
|
|
52
|
+
lines.push(lineText);
|
|
53
|
+
}
|
|
54
|
+
return lines.join("\n");
|
|
55
|
+
}
|
|
56
|
+
function tableCellTextBodyMatches(txBody, text, ensureArray2 = xmlArray) {
|
|
57
|
+
return Boolean(
|
|
58
|
+
txBody && ensureArray2(txBody["a:p"]).length > 0 && flattenCellTxBodyText(txBody, ensureArray2) === text
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function rebuildCellTextBody(existingTxBody, text) {
|
|
62
|
+
const existingParagraphs = ensureArray(
|
|
63
|
+
existingTxBody?.["a:p"]
|
|
64
|
+
);
|
|
65
|
+
const firstParagraph = existingParagraphs.length > 0 ? existingParagraphs[0] : void 0;
|
|
66
|
+
const existingRuns = firstParagraph ? ensureArray(firstParagraph["a:r"]) : [];
|
|
67
|
+
const firstRunProps = existingRuns.length > 0 ? existingRuns[0]["a:rPr"] : void 0;
|
|
68
|
+
const newRun = {};
|
|
69
|
+
if (firstRunProps !== void 0) {
|
|
70
|
+
newRun["a:rPr"] = firstRunProps;
|
|
71
|
+
}
|
|
72
|
+
newRun["a:t"] = text;
|
|
73
|
+
const newParagraph = {};
|
|
74
|
+
if (firstParagraph?.["a:pPr"] !== void 0) {
|
|
75
|
+
newParagraph["a:pPr"] = firstParagraph["a:pPr"];
|
|
76
|
+
}
|
|
77
|
+
newParagraph["a:r"] = newRun;
|
|
78
|
+
const newTxBody = {};
|
|
79
|
+
if (existingTxBody?.["a:bodyPr"] !== void 0) {
|
|
80
|
+
newTxBody["a:bodyPr"] = existingTxBody["a:bodyPr"];
|
|
81
|
+
}
|
|
82
|
+
if (existingTxBody?.["a:lstStyle"] !== void 0) {
|
|
83
|
+
newTxBody["a:lstStyle"] = existingTxBody["a:lstStyle"];
|
|
84
|
+
}
|
|
85
|
+
newTxBody["a:p"] = newParagraph;
|
|
86
|
+
return newTxBody;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// pptx/core/core/runtime/table-cell-rawxml-ops.ts
|
|
90
|
+
function updateCellTextInRawXml(element, rowIndex, colIndex, text) {
|
|
91
|
+
if (!element.rawXml) {
|
|
92
|
+
return void 0;
|
|
93
|
+
}
|
|
94
|
+
const newRawXml = structuredClone(element.rawXml);
|
|
95
|
+
const table = getTblFromRawXml(newRawXml);
|
|
96
|
+
if (!table) {
|
|
97
|
+
return void 0;
|
|
98
|
+
}
|
|
99
|
+
const rows = ensureArray(table["a:tr"]);
|
|
100
|
+
if (rowIndex < 0 || rowIndex >= rows.length) {
|
|
101
|
+
return void 0;
|
|
102
|
+
}
|
|
103
|
+
const cells = ensureArray(rows[rowIndex]["a:tc"]);
|
|
104
|
+
if (colIndex < 0 || colIndex >= cells.length) {
|
|
105
|
+
return void 0;
|
|
106
|
+
}
|
|
107
|
+
cells[colIndex]["a:txBody"] = rebuildCellTextBody(
|
|
108
|
+
cells[colIndex]["a:txBody"],
|
|
109
|
+
text
|
|
110
|
+
);
|
|
111
|
+
return newRawXml;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
exports.DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_EMU;
|
|
115
|
+
exports.createDefaultXmlCell = createDefaultXmlCell;
|
|
116
|
+
exports.ensureArray = ensureArray;
|
|
117
|
+
exports.flattenCellTxBodyText = flattenCellTxBodyText;
|
|
118
|
+
exports.getTblFromRawXml = getTblFromRawXml;
|
|
119
|
+
exports.tableCellTextBodyMatches = tableCellTextBodyMatches;
|
|
120
|
+
exports.updateCellTextInRawXml = updateCellTextInRawXml;
|
package/dist/crypto/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var xmldom = require('@xmldom/xmldom');
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
5
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
|
|
6
6
|
var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
|
|
7
7
|
var ENDOFCHAIN = 4294967294;
|
|
8
8
|
var FREESECT = 4294967295;
|
|
@@ -22,16 +22,18 @@ var Ole2ParseError = class extends Error {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
const ticks = view.getBigUint64(offset, true);
|
|
25
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-filetime.js
|
|
26
|
+
var EPOCH = 116444736000000000n;
|
|
27
|
+
function fileTimeDate(ticks) {
|
|
29
28
|
if (ticks === 0n)
|
|
30
29
|
return void 0;
|
|
31
|
-
const
|
|
32
|
-
const
|
|
30
|
+
const delta = ticks - EPOCH;
|
|
31
|
+
const ms = delta >= 0n ? delta / 10000n : (delta - 9999n) / 10000n;
|
|
32
|
+
const date = new Date(Number(ms));
|
|
33
33
|
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
|
|
35
37
|
function decodeSlot(dir, id, majorVersion, warnings) {
|
|
36
38
|
const view = new DataView(dir.buffer, dir.byteOffset + id * DIR_ENTRY_SIZE, DIR_ENTRY_SIZE);
|
|
37
39
|
const nameLen = view.getUint16(64, true);
|
|
@@ -67,8 +69,10 @@ function decodeSlot(dir, id, majorVersion, warnings) {
|
|
|
67
69
|
childId: link(76),
|
|
68
70
|
clsid: new Uint8Array(view.buffer.slice(view.byteOffset + 80, view.byteOffset + 96)),
|
|
69
71
|
stateBits: view.getUint32(96, true),
|
|
70
|
-
created:
|
|
71
|
-
modified:
|
|
72
|
+
created: fileTimeDate(view.getBigUint64(100, true)),
|
|
73
|
+
modified: fileTimeDate(view.getBigUint64(108, true)),
|
|
74
|
+
createdFileTime: view.getBigUint64(100, true),
|
|
75
|
+
modifiedFileTime: view.getBigUint64(108, true),
|
|
72
76
|
startSector: view.getUint32(116, true),
|
|
73
77
|
size,
|
|
74
78
|
parentId: -1
|
|
@@ -184,7 +188,7 @@ function findStreamByName(entries, name, isReadable) {
|
|
|
184
188
|
return top.find((entry) => entry.name === name) ?? top.find((entry) => sameName(entry.name, name)) ?? entries.find((entry) => entry.name === name && isReadable(entry));
|
|
185
189
|
}
|
|
186
190
|
|
|
187
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
191
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
|
|
188
192
|
function parseOle2(buffer, options = {}) {
|
|
189
193
|
const strict = options.strict === true;
|
|
190
194
|
const data = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
|
|
@@ -331,7 +335,11 @@ function parseOle2(buffer, options = {}) {
|
|
|
331
335
|
}
|
|
332
336
|
if (firstDirectorySector > MAXREGSECT)
|
|
333
337
|
throw new Ole2ParseError("Missing directory chain");
|
|
334
|
-
const
|
|
338
|
+
const directoryBytes = readMetadataChain(firstDirectorySector, "directory");
|
|
339
|
+
if (strict && majorVersion === 4 && view.getUint32(40, true) !== directoryBytes.length / sectorSize) {
|
|
340
|
+
throw new Ole2ParseError("Unexpected directory sector count");
|
|
341
|
+
}
|
|
342
|
+
const entries = readDirectory(directoryBytes, majorVersion, strict, warnings);
|
|
335
343
|
for (const entry of entries) {
|
|
336
344
|
if (majorVersion === 4 && (!Number.isSafeInteger(entry.size) || entry.size > sectorCount * sectorSize)) {
|
|
337
345
|
throw new Ole2ParseError("Stream size exceeds supported file bounds");
|
|
@@ -439,7 +447,7 @@ function createOfficeGuid() {
|
|
|
439
447
|
return `{${uuid.toUpperCase()}}`;
|
|
440
448
|
}
|
|
441
449
|
|
|
442
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
450
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
|
|
443
451
|
function getSubtle() {
|
|
444
452
|
if (typeof globalThis.crypto !== "undefined" && globalThis.crypto.subtle) {
|
|
445
453
|
return globalThis.crypto.subtle;
|
|
@@ -2679,7 +2687,7 @@ var EncryptedFileError = class extends Error {
|
|
|
2679
2687
|
}
|
|
2680
2688
|
};
|
|
2681
2689
|
|
|
2682
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2690
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
|
|
2683
2691
|
function compareDirEntryNames(a, b) {
|
|
2684
2692
|
const ua = a.toUpperCase();
|
|
2685
2693
|
const ub = b.toUpperCase();
|
|
@@ -2746,7 +2754,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
|
|
|
2746
2754
|
}
|
|
2747
2755
|
}
|
|
2748
2756
|
|
|
2749
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2757
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
|
|
2750
2758
|
function writeHeader(outView, outBytes, params) {
|
|
2751
2759
|
outBytes.set(OLE_MAGIC, 0);
|
|
2752
2760
|
outView.setUint16(24, 62, true);
|
|
@@ -2839,7 +2847,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
|
|
|
2839
2847
|
}
|
|
2840
2848
|
}
|
|
2841
2849
|
|
|
2842
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2850
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
|
|
2843
2851
|
function buildOle2(streams2, rootClsid, miniStreamCutoff = 4096) {
|
|
2844
2852
|
const sectorSize = 512;
|
|
2845
2853
|
const miniSectorSize = 64;
|