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
|
@@ -75,6 +75,125 @@ function cloneXmlObject(value) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// pptx/core/utils/custom-show-actions.ts
|
|
79
|
+
var UNSIGNED_INT_MAX = 4294967295;
|
|
80
|
+
function isUnsignedInt(id) {
|
|
81
|
+
return /^\d+$/.test(id) && Number(id) <= UNSIGNED_INT_MAX;
|
|
82
|
+
}
|
|
83
|
+
function normalizeCustomShowIds(shows) {
|
|
84
|
+
const used = /* @__PURE__ */ new Set();
|
|
85
|
+
let max = -1;
|
|
86
|
+
for (const show of shows) {
|
|
87
|
+
if (isUnsignedInt(show.id) && !used.has(show.id)) {
|
|
88
|
+
used.add(show.id);
|
|
89
|
+
max = Math.max(max, Number(show.id));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const kept = /* @__PURE__ */ new Set();
|
|
93
|
+
const idMap = /* @__PURE__ */ new Map();
|
|
94
|
+
const next = shows.map((show) => {
|
|
95
|
+
if (isUnsignedInt(show.id) && !kept.has(show.id)) {
|
|
96
|
+
kept.add(show.id);
|
|
97
|
+
return show;
|
|
98
|
+
}
|
|
99
|
+
const id = String(++max);
|
|
100
|
+
if (!idMap.has(show.id)) {
|
|
101
|
+
idMap.set(show.id, id);
|
|
102
|
+
}
|
|
103
|
+
return { ...show, id };
|
|
104
|
+
});
|
|
105
|
+
return {
|
|
106
|
+
shows: idMap.size > 0 || next.some((s, i2) => s !== shows[i2]) ? next : [...shows],
|
|
107
|
+
idMap
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function customShowActionId(action) {
|
|
111
|
+
if (!action || !action.toLowerCase().includes("ppaction://customshow")) {
|
|
112
|
+
return void 0;
|
|
113
|
+
}
|
|
114
|
+
const match = action.match(/[?&]id=([^&]*)/i);
|
|
115
|
+
return match ? decodeURIComponent(match[1]) : void 0;
|
|
116
|
+
}
|
|
117
|
+
function rewriteAction(action, rewrite) {
|
|
118
|
+
const id = customShowActionId(action);
|
|
119
|
+
if (id === void 0) {
|
|
120
|
+
return { changed: false, action };
|
|
121
|
+
}
|
|
122
|
+
const next = rewrite(id);
|
|
123
|
+
if (next === id) {
|
|
124
|
+
return { changed: false, action };
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
changed: true,
|
|
128
|
+
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, `$1${encodeURIComponent(next)}`)
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function mapElement(element, rewrite) {
|
|
132
|
+
let changed = 0;
|
|
133
|
+
let next = element;
|
|
134
|
+
const edit = () => {
|
|
135
|
+
if (next === element) {
|
|
136
|
+
next = { ...element };
|
|
137
|
+
}
|
|
138
|
+
return next;
|
|
139
|
+
};
|
|
140
|
+
for (const key of ["actionClick", "actionHover"]) {
|
|
141
|
+
const current = element[key];
|
|
142
|
+
const result = rewriteAction(current?.action, rewrite);
|
|
143
|
+
if (current && result.changed) {
|
|
144
|
+
changed++;
|
|
145
|
+
if (result.action === void 0) {
|
|
146
|
+
delete edit()[key];
|
|
147
|
+
} else {
|
|
148
|
+
edit()[key] = { ...current, action: result.action };
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const segments = "textSegments" in element ? element.textSegments : void 0;
|
|
153
|
+
if (segments?.some((s) => customShowActionId(s.style?.hyperlinkAction) !== void 0)) {
|
|
154
|
+
edit().textSegments = segments.map((segment) => {
|
|
155
|
+
const result = rewriteAction(segment.style?.hyperlinkAction, rewrite);
|
|
156
|
+
if (!result.changed) {
|
|
157
|
+
return segment;
|
|
158
|
+
}
|
|
159
|
+
changed++;
|
|
160
|
+
if (result.action !== void 0) {
|
|
161
|
+
return { ...segment, style: { ...segment.style, hyperlinkAction: result.action } };
|
|
162
|
+
}
|
|
163
|
+
const {
|
|
164
|
+
hyperlink: _h,
|
|
165
|
+
hyperlinkRId: _r,
|
|
166
|
+
hyperlinkTooltip: _t,
|
|
167
|
+
hyperlinkAction: _a,
|
|
168
|
+
hyperlinkTargetSlideIndex: _i,
|
|
169
|
+
...style
|
|
170
|
+
} = segment.style;
|
|
171
|
+
return { ...segment, style };
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (element.type === "group") {
|
|
175
|
+
const children12 = element.children.map((child17) => mapElement(child17, rewrite));
|
|
176
|
+
if (children12.some((c) => c.changed > 0)) {
|
|
177
|
+
edit().children = children12.map((c) => c.element);
|
|
178
|
+
changed += children12.reduce((n, c) => n + c.changed, 0);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return { element: next, changed };
|
|
182
|
+
}
|
|
183
|
+
function mapCustomShowActions(slides, rewrite) {
|
|
184
|
+
let changed = 0;
|
|
185
|
+
const next = slides.map((slide) => {
|
|
186
|
+
const results = slide.elements.map((element) => mapElement(element, rewrite));
|
|
187
|
+
const n = results.reduce((sum, r) => sum + r.changed, 0);
|
|
188
|
+
if (n === 0) {
|
|
189
|
+
return slide;
|
|
190
|
+
}
|
|
191
|
+
changed += n;
|
|
192
|
+
return { ...slide, elements: results.map((r) => r.element) };
|
|
193
|
+
});
|
|
194
|
+
return { slides: next, changed };
|
|
195
|
+
}
|
|
196
|
+
|
|
78
197
|
// pptx/core/types/theme.ts
|
|
79
198
|
var THEME_COLOR_SCHEME_KEYS = [
|
|
80
199
|
"dk1",
|
|
@@ -1879,7 +1998,7 @@ function mimeTypeForOleFile(fileNameOrExtension) {
|
|
|
1879
1998
|
return OLE_EXTENSION_MIME_MAP.get(ext) ?? fallback;
|
|
1880
1999
|
}
|
|
1881
2000
|
|
|
1882
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2001
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
|
|
1883
2002
|
var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
|
|
1884
2003
|
var ENDOFCHAIN = 4294967294;
|
|
1885
2004
|
var FREESECT = 4294967295;
|
|
@@ -1899,16 +2018,18 @@ var Ole2ParseError = class extends Error {
|
|
|
1899
2018
|
}
|
|
1900
2019
|
};
|
|
1901
2020
|
|
|
1902
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
1903
|
-
var
|
|
1904
|
-
function
|
|
1905
|
-
const ticks = view.getBigUint64(offset, true);
|
|
2021
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-filetime.js
|
|
2022
|
+
var EPOCH = 116444736000000000n;
|
|
2023
|
+
function fileTimeDate(ticks) {
|
|
1906
2024
|
if (ticks === 0n)
|
|
1907
2025
|
return void 0;
|
|
1908
|
-
const
|
|
1909
|
-
const
|
|
2026
|
+
const delta2 = ticks - EPOCH;
|
|
2027
|
+
const ms = delta2 >= 0n ? delta2 / 10000n : (delta2 - 9999n) / 10000n;
|
|
2028
|
+
const date = new Date(Number(ms));
|
|
1910
2029
|
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
1911
2030
|
}
|
|
2031
|
+
|
|
2032
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
|
|
1912
2033
|
function decodeSlot(dir, id, majorVersion, warnings) {
|
|
1913
2034
|
const view = new DataView(dir.buffer, dir.byteOffset + id * DIR_ENTRY_SIZE, DIR_ENTRY_SIZE);
|
|
1914
2035
|
const nameLen = view.getUint16(64, true);
|
|
@@ -1944,8 +2065,10 @@ function decodeSlot(dir, id, majorVersion, warnings) {
|
|
|
1944
2065
|
childId: link(76),
|
|
1945
2066
|
clsid: new Uint8Array(view.buffer.slice(view.byteOffset + 80, view.byteOffset + 96)),
|
|
1946
2067
|
stateBits: view.getUint32(96, true),
|
|
1947
|
-
created:
|
|
1948
|
-
modified:
|
|
2068
|
+
created: fileTimeDate(view.getBigUint64(100, true)),
|
|
2069
|
+
modified: fileTimeDate(view.getBigUint64(108, true)),
|
|
2070
|
+
createdFileTime: view.getBigUint64(100, true),
|
|
2071
|
+
modifiedFileTime: view.getBigUint64(108, true),
|
|
1949
2072
|
startSector: view.getUint32(116, true),
|
|
1950
2073
|
size,
|
|
1951
2074
|
parentId: -1
|
|
@@ -2061,7 +2184,7 @@ function findStreamByName(entries, name, isReadable) {
|
|
|
2061
2184
|
return top.find((entry) => entry.name === name) ?? top.find((entry) => sameName(entry.name, name)) ?? entries.find((entry) => entry.name === name && isReadable(entry));
|
|
2062
2185
|
}
|
|
2063
2186
|
|
|
2064
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2187
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
|
|
2065
2188
|
function parseOle2(buffer, options = {}) {
|
|
2066
2189
|
const strict = options.strict === true;
|
|
2067
2190
|
const data = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
|
|
@@ -2208,7 +2331,11 @@ function parseOle2(buffer, options = {}) {
|
|
|
2208
2331
|
}
|
|
2209
2332
|
if (firstDirectorySector > MAXREGSECT)
|
|
2210
2333
|
throw new Ole2ParseError("Missing directory chain");
|
|
2211
|
-
const
|
|
2334
|
+
const directoryBytes = readMetadataChain(firstDirectorySector, "directory");
|
|
2335
|
+
if (strict && majorVersion === 4 && view.getUint32(40, true) !== directoryBytes.length / sectorSize) {
|
|
2336
|
+
throw new Ole2ParseError("Unexpected directory sector count");
|
|
2337
|
+
}
|
|
2338
|
+
const entries = readDirectory(directoryBytes, majorVersion, strict, warnings);
|
|
2212
2339
|
for (const entry of entries) {
|
|
2213
2340
|
if (majorVersion === 4 && (!Number.isSafeInteger(entry.size) || entry.size > sectorCount * sectorSize)) {
|
|
2214
2341
|
throw new Ole2ParseError("Stream size exceeds supported file bounds");
|
|
@@ -2413,7 +2540,7 @@ function unwrapOleEmbedding(bytes) {
|
|
|
2413
2540
|
return { data: bytes };
|
|
2414
2541
|
}
|
|
2415
2542
|
|
|
2416
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2543
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
|
|
2417
2544
|
function compareDirEntryNames(a, b) {
|
|
2418
2545
|
const ua = a.toUpperCase();
|
|
2419
2546
|
const ub = b.toUpperCase();
|
|
@@ -2480,7 +2607,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
|
|
|
2480
2607
|
}
|
|
2481
2608
|
}
|
|
2482
2609
|
|
|
2483
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2610
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
|
|
2484
2611
|
function writeHeader(outView, outBytes, params) {
|
|
2485
2612
|
outBytes.set(OLE_MAGIC, 0);
|
|
2486
2613
|
outView.setUint16(24, 62, true);
|
|
@@ -2573,7 +2700,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
|
|
|
2573
2700
|
}
|
|
2574
2701
|
}
|
|
2575
2702
|
|
|
2576
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
2703
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
|
|
2577
2704
|
function buildOle2(streams2, rootClsid, miniStreamCutoff = 4096) {
|
|
2578
2705
|
const sectorSize = 512;
|
|
2579
2706
|
const miniSectorSize = 64;
|
|
@@ -3452,7 +3579,7 @@ function preservesSpreadsheetXmlWhitespace(tagName) {
|
|
|
3452
3579
|
return SPREADSHEET_WHITESPACE_PRESERVING_TAGS.has(tagName);
|
|
3453
3580
|
}
|
|
3454
3581
|
|
|
3455
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
3582
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
|
|
3456
3583
|
(() => {
|
|
3457
3584
|
const table = new Uint32Array(256);
|
|
3458
3585
|
for (let n = 0; n < 256; n++) {
|
|
@@ -34466,7 +34593,7 @@ var EncryptedFileError = class extends Error {
|
|
|
34466
34593
|
}
|
|
34467
34594
|
};
|
|
34468
34595
|
|
|
34469
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
34596
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
|
|
34470
34597
|
function getSubtle() {
|
|
34471
34598
|
if (typeof globalThis.crypto !== "undefined" && globalThis.crypto.subtle) {
|
|
34472
34599
|
return globalThis.crypto.subtle;
|
|
@@ -44987,10 +45114,10 @@ function annotateCustomGeometryCommandOrder(xml, parsed) {
|
|
|
44987
45114
|
}
|
|
44988
45115
|
}
|
|
44989
45116
|
}
|
|
44990
|
-
function orderedPathCommandEntries(path,
|
|
45117
|
+
function orderedPathCommandEntries(path, ensureArray7) {
|
|
44991
45118
|
const commandItems = (key) => {
|
|
44992
45119
|
const value = path[key];
|
|
44993
|
-
const items =
|
|
45120
|
+
const items = ensureArray7(value);
|
|
44994
45121
|
return items.length === 0 && localName6(key) === "close" && value !== void 0 ? [value] : items;
|
|
44995
45122
|
};
|
|
44996
45123
|
const order = commandOrder.get(path);
|
|
@@ -49586,114 +49713,6 @@ function applyCommentMentions(node, mentions, extension, replace) {
|
|
|
49586
49713
|
return rebuilt;
|
|
49587
49714
|
}
|
|
49588
49715
|
|
|
49589
|
-
// pptx/core/core/runtime/table-structural-helpers.ts
|
|
49590
|
-
var DEFAULT_ROW_HEIGHT_PX = 40;
|
|
49591
|
-
var DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_PX * chunk5W2QL4SB_cjs.EMU_PER_PX;
|
|
49592
|
-
function ensureArray7(value) {
|
|
49593
|
-
if (value === void 0 || value === null) {
|
|
49594
|
-
return [];
|
|
49595
|
-
}
|
|
49596
|
-
return Array.isArray(value) ? value : [value];
|
|
49597
|
-
}
|
|
49598
|
-
function createDefaultXmlCell() {
|
|
49599
|
-
return {
|
|
49600
|
-
"a:txBody": {
|
|
49601
|
-
"a:bodyPr": {},
|
|
49602
|
-
"a:lstStyle": {},
|
|
49603
|
-
"a:p": {
|
|
49604
|
-
// Match PowerPoint's "Insert Table" default: every paragraph-end
|
|
49605
|
-
// run carries `lang="en-US" dirty="0"`.
|
|
49606
|
-
"a:endParaRPr": { "@_lang": "en-US", "@_dirty": "0" }
|
|
49607
|
-
}
|
|
49608
|
-
},
|
|
49609
|
-
"a:tcPr": {}
|
|
49610
|
-
};
|
|
49611
|
-
}
|
|
49612
|
-
function getTblFromRawXml(rawXml) {
|
|
49613
|
-
const graphicData = rawXml["a:graphic"]?.["a:graphicData"];
|
|
49614
|
-
return graphicData?.["a:tbl"];
|
|
49615
|
-
}
|
|
49616
|
-
|
|
49617
|
-
// pptx/core/core/runtime/table-cell-text-xml.ts
|
|
49618
|
-
var xmlArray = (value) => ensureArray7(value);
|
|
49619
|
-
function flattenCellTxBodyText(txBody, ensureArray8) {
|
|
49620
|
-
if (!txBody) {
|
|
49621
|
-
return "";
|
|
49622
|
-
}
|
|
49623
|
-
const paragraphs = ensureArray8(txBody["a:p"]);
|
|
49624
|
-
const lines = [];
|
|
49625
|
-
for (const paragraph of paragraphs) {
|
|
49626
|
-
const runs = ensureArray8(paragraph?.["a:r"]);
|
|
49627
|
-
const fields = ensureArray8(paragraph?.["a:fld"]);
|
|
49628
|
-
let lineText = "";
|
|
49629
|
-
for (const run of runs) {
|
|
49630
|
-
lineText += xmlText(run?.["a:t"]) ?? "";
|
|
49631
|
-
}
|
|
49632
|
-
for (const field of fields) {
|
|
49633
|
-
lineText += xmlText(field?.["a:t"]) ?? "";
|
|
49634
|
-
}
|
|
49635
|
-
lines.push(lineText);
|
|
49636
|
-
}
|
|
49637
|
-
return lines.join("\n");
|
|
49638
|
-
}
|
|
49639
|
-
function tableCellTextBodyMatches(txBody, text2, ensureArray8 = xmlArray) {
|
|
49640
|
-
return Boolean(
|
|
49641
|
-
txBody && ensureArray8(txBody["a:p"]).length > 0 && flattenCellTxBodyText(txBody, ensureArray8) === text2
|
|
49642
|
-
);
|
|
49643
|
-
}
|
|
49644
|
-
function rebuildCellTextBody(existingTxBody, text2) {
|
|
49645
|
-
const existingParagraphs = ensureArray7(
|
|
49646
|
-
existingTxBody?.["a:p"]
|
|
49647
|
-
);
|
|
49648
|
-
const firstParagraph = existingParagraphs.length > 0 ? existingParagraphs[0] : void 0;
|
|
49649
|
-
const existingRuns = firstParagraph ? ensureArray7(firstParagraph["a:r"]) : [];
|
|
49650
|
-
const firstRunProps = existingRuns.length > 0 ? existingRuns[0]["a:rPr"] : void 0;
|
|
49651
|
-
const newRun = {};
|
|
49652
|
-
if (firstRunProps !== void 0) {
|
|
49653
|
-
newRun["a:rPr"] = firstRunProps;
|
|
49654
|
-
}
|
|
49655
|
-
newRun["a:t"] = text2;
|
|
49656
|
-
const newParagraph = {};
|
|
49657
|
-
if (firstParagraph?.["a:pPr"] !== void 0) {
|
|
49658
|
-
newParagraph["a:pPr"] = firstParagraph["a:pPr"];
|
|
49659
|
-
}
|
|
49660
|
-
newParagraph["a:r"] = newRun;
|
|
49661
|
-
const newTxBody = {};
|
|
49662
|
-
if (existingTxBody?.["a:bodyPr"] !== void 0) {
|
|
49663
|
-
newTxBody["a:bodyPr"] = existingTxBody["a:bodyPr"];
|
|
49664
|
-
}
|
|
49665
|
-
if (existingTxBody?.["a:lstStyle"] !== void 0) {
|
|
49666
|
-
newTxBody["a:lstStyle"] = existingTxBody["a:lstStyle"];
|
|
49667
|
-
}
|
|
49668
|
-
newTxBody["a:p"] = newParagraph;
|
|
49669
|
-
return newTxBody;
|
|
49670
|
-
}
|
|
49671
|
-
|
|
49672
|
-
// pptx/core/core/runtime/table-cell-rawxml-ops.ts
|
|
49673
|
-
function updateCellTextInRawXml(element, rowIndex, colIndex, text2) {
|
|
49674
|
-
if (!element.rawXml) {
|
|
49675
|
-
return void 0;
|
|
49676
|
-
}
|
|
49677
|
-
const newRawXml = structuredClone(element.rawXml);
|
|
49678
|
-
const table = getTblFromRawXml(newRawXml);
|
|
49679
|
-
if (!table) {
|
|
49680
|
-
return void 0;
|
|
49681
|
-
}
|
|
49682
|
-
const rows = ensureArray7(table["a:tr"]);
|
|
49683
|
-
if (rowIndex < 0 || rowIndex >= rows.length) {
|
|
49684
|
-
return void 0;
|
|
49685
|
-
}
|
|
49686
|
-
const cells = ensureArray7(rows[rowIndex]["a:tc"]);
|
|
49687
|
-
if (colIndex < 0 || colIndex >= cells.length) {
|
|
49688
|
-
return void 0;
|
|
49689
|
-
}
|
|
49690
|
-
cells[colIndex]["a:txBody"] = rebuildCellTextBody(
|
|
49691
|
-
cells[colIndex]["a:txBody"],
|
|
49692
|
-
text2
|
|
49693
|
-
);
|
|
49694
|
-
return newRawXml;
|
|
49695
|
-
}
|
|
49696
|
-
|
|
49697
49716
|
exports.ARTISTIC_PRIMARY_ATTRIBUTE = ARTISTIC_PRIMARY_ATTRIBUTE;
|
|
49698
49717
|
exports.BLIP_FILL_ORDER = BLIP_FILL_ORDER;
|
|
49699
49718
|
exports.CAMERA_PRESETS = CAMERA_PRESETS;
|
|
@@ -49703,7 +49722,6 @@ exports.DEFAULT_COLOR_MAP = DEFAULT_COLOR_MAP;
|
|
|
49703
49722
|
exports.DEFAULT_FONT_ADVANCE_TABLE = DEFAULT_FONT_ADVANCE_TABLE;
|
|
49704
49723
|
exports.DEFAULT_GENERATED_DIAGRAM_SCHEME = DEFAULT_GENERATED_DIAGRAM_SCHEME;
|
|
49705
49724
|
exports.DEFAULT_MAX_UNCOMPRESSED_BYTES = DEFAULT_MAX_UNCOMPRESSED_BYTES;
|
|
49706
|
-
exports.DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_EMU;
|
|
49707
49725
|
exports.DIAGRAM_DATA_XMLNS = DIAGRAM_DATA_XMLNS;
|
|
49708
49726
|
exports.DIAGRAM_DRAWING_CONTENT_TYPE = DIAGRAM_DRAWING_CONTENT_TYPE;
|
|
49709
49727
|
exports.DIAGRAM_DRAWING_REL_TYPE = DIAGRAM_DRAWING_REL_TYPE;
|
|
@@ -49812,7 +49830,6 @@ exports.containsConvertibleStrictNamespaceAttribute = containsConvertibleStrictN
|
|
|
49812
49830
|
exports.convertMetafileToDataUrl = convertMetafileToDataUrl;
|
|
49813
49831
|
exports.convertXmlToStrict = convertXmlToStrict;
|
|
49814
49832
|
exports.createBuiltinVariables = createBuiltinVariables;
|
|
49815
|
-
exports.createDefaultXmlCell = createDefaultXmlCell;
|
|
49816
49833
|
exports.createLineStyleGate = createLineStyleGate;
|
|
49817
49834
|
exports.createOfficeGuid = createOfficeGuid;
|
|
49818
49835
|
exports.cropShapeForPresetGeometry = cropShapeForPresetGeometry;
|
|
@@ -49841,7 +49858,6 @@ exports.encodePasswordUtf16LE = encodePasswordUtf16LE;
|
|
|
49841
49858
|
exports.encodeXmlAttributeValue = encodeXmlAttributeValue;
|
|
49842
49859
|
exports.encodeXmlTextValue = encodeXmlTextValue;
|
|
49843
49860
|
exports.encryptPptx = encryptPptx;
|
|
49844
|
-
exports.ensureArray = ensureArray7;
|
|
49845
49861
|
exports.ensureArrayValue = ensureArrayValue;
|
|
49846
49862
|
exports.ensureXmlChild = ensureXmlChild;
|
|
49847
49863
|
exports.ensureXmlChildOrCreate = ensureXmlChildOrCreate;
|
|
@@ -49862,13 +49878,11 @@ exports.findKey = findKey6;
|
|
|
49862
49878
|
exports.findThemeEffectScheme = findThemeEffectScheme;
|
|
49863
49879
|
exports.first = first;
|
|
49864
49880
|
exports.firstParagraphRuns = firstParagraphRuns;
|
|
49865
|
-
exports.flattenCellTxBodyText = flattenCellTxBodyText;
|
|
49866
49881
|
exports.formatAutoNumberMarker = formatAutoNumberMarker;
|
|
49867
49882
|
exports.formatSchemeKey = formatSchemeKey;
|
|
49868
49883
|
exports.generateFontGuid = generateFontGuid;
|
|
49869
49884
|
exports.generatedDrawingDigest = generatedDrawingDigest;
|
|
49870
49885
|
exports.getSignaturePathsToStrip = getSignaturePathsToStrip;
|
|
49871
|
-
exports.getTblFromRawXml = getTblFromRawXml;
|
|
49872
49886
|
exports.guardZip = guardZip;
|
|
49873
49887
|
exports.hasLocalName = hasLocalName;
|
|
49874
49888
|
exports.hash = hash;
|
|
@@ -49888,6 +49902,7 @@ exports.isTemplateElementId = isTemplateElementId;
|
|
|
49888
49902
|
exports.isXmlNode = isXmlNode;
|
|
49889
49903
|
exports.loadThemeVariants = loadThemeVariants;
|
|
49890
49904
|
exports.lookupPresetShape = lookupPresetShape;
|
|
49905
|
+
exports.mapCustomShowActions = mapCustomShowActions;
|
|
49891
49906
|
exports.measureTextWidth = measureTextWidth;
|
|
49892
49907
|
exports.mergeAttributeEffectNode = mergeAttributeEffectNode;
|
|
49893
49908
|
exports.mergeEffectNode = mergeEffectNode;
|
|
@@ -49896,6 +49911,7 @@ exports.mergeSmartArtPointXml = mergeSmartArtPointXml;
|
|
|
49896
49911
|
exports.mimeTypeForOleFile = mimeTypeForOleFile;
|
|
49897
49912
|
exports.newSmartArtGuid = newSmartArtGuid;
|
|
49898
49913
|
exports.nextRelationshipId = nextRelationshipId;
|
|
49914
|
+
exports.normalizeCustomShowIds = normalizeCustomShowIds;
|
|
49899
49915
|
exports.normalizeNamespaceUri = normalizeNamespaceUri;
|
|
49900
49916
|
exports.normalizeStShapeType = normalizeStShapeType;
|
|
49901
49917
|
exports.normalizeStrictXml = normalizeStrictXml;
|
|
@@ -50051,7 +50067,6 @@ exports.stripXmlOrderSuffix = stripXmlOrderSuffix;
|
|
|
50051
50067
|
exports.supportsChartGradientFill = supportsChartGradientFill;
|
|
50052
50068
|
exports.svgToCustomGeometryPaths = svgToCustomGeometryPaths;
|
|
50053
50069
|
exports.syncPictureShapeTypeWithCropShape = syncPictureShapeTypeWithCropShape;
|
|
50054
|
-
exports.tableCellTextBodyMatches = tableCellTextBodyMatches;
|
|
50055
50070
|
exports.themeColorRefFromColorChoice = themeColorRefFromColorChoice;
|
|
50056
50071
|
exports.themeColorRefFromSchemeClr = themeColorRefFromSchemeClr;
|
|
50057
50072
|
exports.themeColorRefToSolidFillWithOpacity = themeColorRefToSolidFillWithOpacity;
|
|
@@ -50059,7 +50074,6 @@ exports.themeColorRefToXml = themeColorRefToXml;
|
|
|
50059
50074
|
exports.uint32LE = uint32LE;
|
|
50060
50075
|
exports.unwrapAlternateContent = unwrapAlternateContent;
|
|
50061
50076
|
exports.unwrapOleEmbedding = unwrapOleEmbedding;
|
|
50062
|
-
exports.updateCellTextInRawXml = updateCellTextInRawXml;
|
|
50063
50077
|
exports.updateSmartArtNodeText = updateSmartArtNodeText;
|
|
50064
50078
|
exports.upsertChartAxisChild = upsertChartAxisChild;
|
|
50065
50079
|
exports.withDiagramPictureSources = withDiagramPictureSources;
|