ooxml-core 1.32.1 → 1.34.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-XCYX5DVX.mjs +7 -0
- package/dist/{PresentationBuilder-5NFBUP7Y.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
- package/dist/{PresentationBuilder-S6HXHKEJ.mjs → PresentationBuilder-IVLUEB4K.mjs} +4 -4
- package/dist/{PresentationBuilder-3CH5TR4W.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
- package/dist/automation/index.cjs +47133 -42384
- package/dist/automation/index.mjs +47133 -42384
- package/dist/chart/funnel-geometry.d.ts +1 -1
- package/dist/chart/funnel-geometry.d.ts.map +1 -1
- package/dist/chart/index.cjs +5743 -3820
- package/dist/chart/index.mjs +5736 -3821
- package/dist/chart/region-map/alias.d.ts +12 -0
- package/dist/chart/region-map/alias.d.ts.map +1 -0
- package/dist/chart/region-map/cache.d.ts +20 -0
- package/dist/chart/region-map/cache.d.ts.map +1 -0
- package/dist/chart/region-map/colors.d.ts +4 -0
- package/dist/chart/region-map/colors.d.ts.map +1 -0
- package/dist/chart/region-map/data.d.ts +45 -0
- package/dist/chart/region-map/data.d.ts.map +1 -0
- package/dist/chart/region-map/geographic-projection.d.ts +4 -0
- package/dist/chart/region-map/geographic-projection.d.ts.map +1 -0
- package/dist/chart/region-map/geometry.d.ts +10 -0
- package/dist/chart/region-map/geometry.d.ts.map +1 -0
- package/dist/chart/region-map/index.cjs +892 -0
- package/dist/chart/region-map/index.d.ts +12 -0
- package/dist/chart/region-map/index.d.ts.map +1 -0
- package/dist/chart/region-map/index.mjs +870 -0
- package/dist/chart/region-map/projection.d.ts +19 -0
- package/dist/chart/region-map/projection.d.ts.map +1 -0
- package/dist/chart/region-map/types.d.ts +39 -0
- package/dist/chart/region-map/types.d.ts.map +1 -0
- package/dist/chart/region-map/value-color-positions.d.ts +4 -0
- package/dist/chart/region-map/value-color-positions.d.ts.map +1 -0
- package/dist/chart/region-map/value-colors.d.ts +4 -0
- package/dist/chart/region-map/value-colors.d.ts.map +1 -0
- package/dist/chart/region-map/world-regions.d.ts +22 -0
- package/dist/chart/region-map/world-regions.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-camera.d.ts +26 -0
- package/dist/chart/render/chart-3d-camera.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-layout.d.ts +27 -0
- package/dist/chart/render/chart-3d-layout.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-marks.d.ts +10 -0
- package/dist/chart/render/chart-3d-marks.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-mesh.d.ts +32 -0
- package/dist/chart/render/chart-3d-mesh.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-pie.d.ts +16 -0
- package/dist/chart/render/chart-3d-pie.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-projection.d.ts +37 -0
- package/dist/chart/render/chart-3d-projection.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-scene.d.ts +9 -0
- package/dist/chart/render/chart-3d-scene.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-shading.d.ts +10 -0
- package/dist/chart/render/chart-3d-shading.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-surface.d.ts +5 -0
- package/dist/chart/render/chart-3d-surface.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-svg.d.ts +7 -0
- package/dist/chart/render/chart-3d-svg.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-walls.d.ts +13 -0
- package/dist/chart/render/chart-3d-walls.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-funnel.d.ts.map +1 -1
- package/dist/chart/render/chart-svg-region-map.d.ts +4 -0
- package/dist/chart/render/chart-svg-region-map.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-text-metrics.d.ts +2 -0
- package/dist/chart/render/chart-svg-text-metrics.d.ts.map +1 -1
- package/dist/chart/render/chart-svg.d.ts.map +1 -1
- package/dist/chart/render/chart-view.d.ts +5 -1
- package/dist/chart/render/chart-view.d.ts.map +1 -1
- package/dist/chart/render/index.d.ts +5 -0
- package/dist/chart/render/index.d.ts.map +1 -1
- package/dist/chart/render/render-space.d.ts.map +1 -1
- package/dist/chart/render/summary-ex-formatting.d.ts +5 -0
- package/dist/chart/render/summary-ex-formatting.d.ts.map +1 -0
- package/dist/chart/render/summary-ex-series.d.ts.map +1 -1
- package/dist/chart/render/summary-from-chartex.d.ts.map +1 -1
- package/dist/chart/render/summary-from-space.d.ts.map +1 -1
- package/dist/chart/render/summary.d.ts +5 -1
- package/dist/chart/render/summary.d.ts.map +1 -1
- package/dist/chunk-2N7RZQLC.mjs +8 -0
- package/dist/{chunk-Q6NM64J2.cjs → chunk-A27O7M5X.cjs} +4938 -1083
- package/dist/{chunk-4R65YYAD.mjs → chunk-EGBNPVBA.mjs} +6256 -2277
- package/dist/{chunk-3H5UAJB3.mjs → chunk-GNGL4BO7.mjs} +935 -568
- package/dist/chunk-LSO5SSFX.mjs +112 -0
- package/dist/chunk-MB3TYNMV.mjs +28 -0
- package/dist/{chunk-N6424WKA.mjs → chunk-MK2IBZU6.mjs} +1 -1
- package/dist/{chunk-X6VNUBES.cjs → chunk-PA5ADSTX.cjs} +2124 -1791
- package/dist/{chunk-IOTGRLJH.mjs → chunk-RI56PFGL.mjs} +933 -600
- package/dist/{chunk-NAWLWKOJ.mjs → chunk-RPJHMPEL.mjs} +2 -2
- package/dist/{chunk-UYMSFJQZ.mjs → chunk-TJXK4D4U.mjs} +5 -5
- package/dist/{chunk-O7SVHLD7.mjs → chunk-UQMAPY6D.mjs} +4901 -1077
- package/dist/{chunk-54S5A5PZ.mjs → chunk-VDUNZTJC.mjs} +36 -1
- package/dist/chunk-XF6ZRA2D.cjs +120 -0
- package/dist/crypto/index.cjs +23 -15
- package/dist/crypto/index.mjs +23 -15
- package/dist/diagram/drawing-resolve.d.ts.map +1 -1
- package/dist/diagram/drawing-view.d.ts +6 -0
- package/dist/diagram/drawing-view.d.ts.map +1 -1
- package/dist/diagram/engine/engine-to-result.d.ts.map +1 -1
- package/dist/diagram/index.cjs +786 -145
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +783 -147
- package/dist/diagram/layout/smartart-layout-types.d.ts +7 -0
- package/dist/diagram/layout/smartart-layout-types.d.ts.map +1 -1
- package/dist/diagram/layout-preview.d.ts +4 -0
- package/dist/diagram/layout-preview.d.ts.map +1 -1
- package/dist/diagram/layout-role-style.d.ts +4 -0
- package/dist/diagram/layout-role-style.d.ts.map +1 -0
- package/dist/diagram/load.d.ts.map +1 -1
- package/dist/diagram/picture-layout.d.ts +23 -0
- package/dist/diagram/picture-layout.d.ts.map +1 -0
- package/dist/diagram/types.d.ts +6 -0
- package/dist/diagram/types.d.ts.map +1 -1
- package/dist/diagram/write/cache.d.ts +1 -0
- package/dist/diagram/write/cache.d.ts.map +1 -1
- package/dist/digest/crc32.d.ts +2 -0
- package/dist/digest/crc32.d.ts.map +1 -0
- package/dist/digest/index.cjs +11 -0
- package/dist/digest/index.d.ts +1 -0
- package/dist/digest/index.d.ts.map +1 -1
- package/dist/digest/index.mjs +11 -1
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/diagram-cache.d.ts.map +1 -1
- package/dist/docx/diagram-save.d.ts.map +1 -1
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1394 -366
- package/dist/docx/embedded.mjs +1394 -366
- 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 +6107 -1728
- package/dist/docx/index.d.ts +3 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +6103 -1729
- package/dist/docx/inline-model.d.ts +4 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/layout/adapt-floats.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2338 -554
- package/dist/docx/layout/index.mjs +2338 -554
- package/dist/docx/layout/input.d.ts +5 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +3 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +7593 -1539
- package/dist/docx/load/index.mjs +7593 -1539
- 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 +3617 -1097
- 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 +3597 -1098
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-paragraph.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +708 -111
- package/dist/drawingml/index.d.ts +7 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +698 -113
- package/dist/drawingml/picture-artistic.d.ts +14 -0
- package/dist/drawingml/picture-artistic.d.ts.map +1 -0
- package/dist/drawingml/picture-effects.d.ts +4 -1
- package/dist/drawingml/picture-effects.d.ts.map +1 -1
- package/dist/drawingml/picture-fill.d.ts.map +1 -1
- package/dist/drawingml/picture-hsl-pixels.d.ts +4 -0
- package/dist/drawingml/picture-hsl-pixels.d.ts.map +1 -0
- package/dist/drawingml/picture-layout.d.ts +25 -0
- package/dist/drawingml/picture-layout.d.ts.map +1 -0
- package/dist/drawingml/picture-standard-effects.d.ts +15 -0
- package/dist/drawingml/picture-standard-effects.d.ts.map +1 -0
- package/dist/drawingml/picture-transfer.d.ts +11 -0
- package/dist/drawingml/picture-transfer.d.ts.map +1 -0
- package/dist/drawingml/raster-image.d.ts +29 -0
- package/dist/drawingml/raster-image.d.ts.map +1 -0
- package/dist/drawingml/types.d.ts +1 -0
- package/dist/drawingml/types.d.ts.map +1 -1
- package/dist/drawingml/write-pattern-picture.d.ts.map +1 -1
- package/dist/drawingml/write-theme.d.ts +2 -0
- package/dist/drawingml/write-theme.d.ts.map +1 -1
- package/dist/geometry/index.cjs +38 -0
- package/dist/geometry/index.d.ts +1 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +36 -1
- package/dist/geometry/picture-tile.d.ts +29 -0
- package/dist/geometry/picture-tile.d.ts.map +1 -0
- package/dist/index.cjs +15671 -12934
- package/dist/index.mjs +15671 -12934
- package/dist/pptx/automation/index.cjs +9313 -3688
- package/dist/pptx/automation/index.d.ts +40 -6
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +254 -12
- 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/{elements-mSCZ84Tc.d.ts → elements-f3UbFph-.d.ts} +7 -2
- package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-DnWlmYCy.d.ts → index-BnH2QjYm.d.ts} +4 -4
- package/dist/pptx/chunks/{index-DnWlmYCy.d.ts.map → index-BnH2QjYm.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-D-FdgqrP.d.ts → index-Bp-1pGo1.d.ts} +4 -4
- package/dist/pptx/chunks/{index-D-FdgqrP.d.ts.map → index-Bp-1pGo1.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DKybuHPT.d.ts → index-pLLN4OTz.d.ts} +62 -24
- package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +1 -0
- package/dist/pptx/chunks/{smart-art-DLumQo90.d.ts → smart-art-CmOrPLLQ.d.ts} +86 -2
- package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts → text-operations-D5sgspO6.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts.map → text-operations-D5sgspO6.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +7477 -2848
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +6 -6
- package/dist/pptx/converter/index.cjs +3895 -503
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- 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 +2 -2
- 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/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +8447 -3693
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +7 -7
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.mjs +2 -2
- package/dist/teams/index.cjs +2176 -751
- package/dist/teams/index.mjs +2176 -751
- 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/cell-formula.d.ts +5 -1
- package/dist/visio/cell-formula.d.ts.map +1 -1
- package/dist/visio/collab/index.cjs +3 -1
- package/dist/visio/collab/index.mjs +3 -1
- package/dist/visio/container-relationships.d.ts +53 -0
- package/dist/visio/container-relationships.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-commands.d.ts +6 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-container-fit.d.ts +32 -0
- package/dist/visio/edit-container-fit.d.ts.map +1 -0
- package/dist/visio/edit-container-members.d.ts +33 -0
- package/dist/visio/edit-container-members.d.ts.map +1 -0
- 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-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-delete.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts +24 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts.d.ts +11 -2
- package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts +4 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-resize.d.ts.map +1 -1
- package/dist/visio/edit-instance-checks.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-recalculate-index.d.ts +13 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- package/dist/visio/edit-recalculate.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- 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 +64 -0
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-ops.d.ts +11 -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/formula-analyze.d.ts +2 -0
- package/dist/visio/formula-analyze.d.ts.map +1 -1
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-master.d.ts +1 -0
- package/dist/visio/formula-master.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 +12207 -7779
- package/dist/visio/index.d.ts +8 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +12201 -7780
- package/dist/visio/infinite-line.d.ts +17 -0
- package/dist/visio/infinite-line.d.ts.map +1 -0
- package/dist/visio/media.d.ts +4 -23
- package/dist/visio/media.d.ts.map +1 -1
- package/dist/visio/model.d.ts +46 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/package-common.d.ts +1 -1
- package/dist/visio/package-common.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/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-structure.d.ts +19 -3
- 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-stack.d.ts +65 -0
- package/dist/visio/swimlane-stack.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.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 +45 -0
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +9 -0
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/diagram-parts.d.ts +20 -2
- 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 +14266 -10008
- package/dist/visio/ui/index.d.ts +4 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +14231 -10009
- package/dist/visio/ui/org-chart.d.ts +75 -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-resize.d.ts +2 -2
- package/dist/visio/ui/selection-resize.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/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 +26 -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/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-ex.d.ts +1 -0
- package/dist/xlsx/edit/chart-ex.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts +8 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +5 -1
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session-calc.d.ts +5 -0
- package/dist/xlsx/edit/session-calc.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/text-columns.d.ts +21 -0
- package/dist/xlsx/edit/text-columns.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +10 -5
- 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/embedded-chart-ex-space.d.ts +18 -0
- package/dist/xlsx/embedded-chart-ex-space.d.ts.map +1 -0
- package/dist/xlsx/filter-criteria.d.ts +23 -0
- package/dist/xlsx/filter-criteria.d.ts.map +1 -0
- package/dist/xlsx/filter-dynamic.d.ts +8 -0
- package/dist/xlsx/filter-dynamic.d.ts.map +1 -0
- package/dist/xlsx/filter-menu.d.ts +49 -0
- package/dist/xlsx/filter-menu.d.ts.map +1 -0
- package/dist/xlsx/filter-rows.d.ts +4 -4
- package/dist/xlsx/filter-rows.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 +7259 -3079
- package/dist/xlsx/index.d.ts +5 -0
- package/dist/xlsx/index.d.ts.map +1 -1
- package/dist/xlsx/index.mjs +7213 -3079
- 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 +2170 -688
- package/dist/xlsx/load/index.mjs +2170 -688
- package/dist/xlsx/model-filter.d.ts +54 -0
- package/dist/xlsx/model-filter.d.ts.map +1 -0
- 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 +81 -4
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/chart.d.ts.map +1 -1
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/filter-columns.d.ts +5 -0
- package/dist/xlsx/read/filter-columns.d.ts.map +1 -0
- 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/shared-strings.d.ts +5 -3
- package/dist/xlsx/read/shared-strings.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-props.d.ts +2 -2
- 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/filters.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/filters.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/i18n/tools.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/dialogs/grid-chart.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 +9454 -5323
- 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 +9448 -5324
- 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/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/filter-columns.d.ts +53 -0
- package/dist/xlsx/write/filter-columns.d.ts.map +1 -0
- 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/shared-strings.d.ts +4 -4
- package/dist/xlsx/write/shared-strings.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.d.ts +2 -1
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/write/smart-art-cache.d.ts.map +1 -1
- package/dist/xlsx/write/smart-art.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/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/package.json +7 -2
- package/dist/PptxHandler-QY5VL3CY.mjs +0 -7
- package/dist/PptxHandler-SJ5ZUIUX.mjs +0 -4
- package/dist/PptxHandler-TESZUH66.cjs +0 -13
- package/dist/chunk-3GXV5MPC.mjs +0 -41
- package/dist/chunk-MHNETXQB.mjs +0 -1
- package/dist/pptx/chunks/elements-mSCZ84Tc.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DKybuHPT.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-DLumQo90.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-
|
|
1
|
+
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-BnH2QjYm.js";
|
|
2
2
|
export { type ConversionOptions, type ConversionResult, DocumentConverter, type FileSystemAdapter, type JsonAssetAccumulator, MediaContext, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, type PptxConverterOptions, type PptxJsonAssetStats, PptxJsonConverter, type PptxJsonConverterOptions, type PptxJsonDocument, PptxJsonFormatError, type PptxJsonSerializeOptions, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, type SlideProcessorOptions, type SvgExportOptions, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, dataUrlToMediaBytes, decodeJsonValue, decodePptxJsonText, deriveOutputPath, deserializePptxFromJson, encodeJsonValue, generateMediaFilename, getDirectory, isPptxJsonText, normalizePath, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
2
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-
|
|
3
|
-
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-
|
|
2
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-MK2IBZU6.mjs';
|
|
3
|
+
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-EGBNPVBA.mjs';
|
|
4
4
|
import '../../chunk-EYCM7RVL.mjs';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-VDUNZTJC.mjs';
|
|
6
6
|
import '../../chunk-7DJEJTN7.mjs';
|
|
7
7
|
import '../../chunk-7P6ASYW6.mjs';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkA27O7M5X_cjs = require('../../../chunk-A27O7M5X.cjs');
|
|
4
|
+
require('../../../chunk-XZPZHXV4.cjs');
|
|
5
|
+
require('../../../chunk-5W2QL4SB.cjs');
|
|
6
|
+
|
|
7
|
+
// pptx/editor/render/custom-show-operations.ts
|
|
8
|
+
function nextCustomShowId(shows) {
|
|
9
|
+
let max = -1;
|
|
10
|
+
for (const show of shows) {
|
|
11
|
+
const n = Number(show.id);
|
|
12
|
+
if (Number.isInteger(n) && n > max) {
|
|
13
|
+
max = n;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return String(max + 1);
|
|
17
|
+
}
|
|
18
|
+
function uniqueCustomShowName(shows, name, exceptId) {
|
|
19
|
+
const base = name.trim() || "Custom Show";
|
|
20
|
+
const taken = new Set(
|
|
21
|
+
shows.filter((s) => s.id !== exceptId).map((s) => s.name.trim().toLowerCase())
|
|
22
|
+
);
|
|
23
|
+
if (!taken.has(base.toLowerCase())) {
|
|
24
|
+
return base;
|
|
25
|
+
}
|
|
26
|
+
for (let n = 2; ; n++) {
|
|
27
|
+
const candidate = `${base} (${n})`;
|
|
28
|
+
if (!taken.has(candidate.toLowerCase())) {
|
|
29
|
+
return candidate;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function replaceShow(shows, id, update) {
|
|
34
|
+
let edited;
|
|
35
|
+
const next = shows.map((show) => {
|
|
36
|
+
if (show.id !== id) {
|
|
37
|
+
return show;
|
|
38
|
+
}
|
|
39
|
+
edited = update(show);
|
|
40
|
+
return edited;
|
|
41
|
+
});
|
|
42
|
+
return { shows: edited ? next : [...shows], show: edited };
|
|
43
|
+
}
|
|
44
|
+
function createCustomShow(shows, name, slideRIds = []) {
|
|
45
|
+
const show = {
|
|
46
|
+
id: nextCustomShowId(shows),
|
|
47
|
+
name: uniqueCustomShowName(shows, name),
|
|
48
|
+
slideRIds: [...slideRIds]
|
|
49
|
+
};
|
|
50
|
+
return { shows: [...shows, show], show };
|
|
51
|
+
}
|
|
52
|
+
function renameCustomShow(shows, id, name) {
|
|
53
|
+
return replaceShow(shows, id, (show) => ({
|
|
54
|
+
...show,
|
|
55
|
+
name: uniqueCustomShowName(shows, name, id)
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
function setCustomShowSlides(shows, id, slideRIds) {
|
|
59
|
+
return replaceShow(shows, id, (show) => ({ ...show, slideRIds: [...slideRIds] }));
|
|
60
|
+
}
|
|
61
|
+
function addSlidesToCustomShow(shows, id, slideRIds, index) {
|
|
62
|
+
return replaceShow(shows, id, (show) => {
|
|
63
|
+
const at = Math.max(0, Math.min(index ?? show.slideRIds.length, show.slideRIds.length));
|
|
64
|
+
const list = [...show.slideRIds];
|
|
65
|
+
list.splice(at, 0, ...slideRIds);
|
|
66
|
+
return { ...show, slideRIds: list };
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function removeSlidesFromCustomShow(shows, id, positions) {
|
|
70
|
+
const drop = new Set(positions);
|
|
71
|
+
return replaceShow(shows, id, (show) => ({
|
|
72
|
+
...show,
|
|
73
|
+
slideRIds: show.slideRIds.filter((_, i) => !drop.has(i))
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
function moveCustomShowSlide(shows, id, from, to) {
|
|
77
|
+
return replaceShow(shows, id, (show) => {
|
|
78
|
+
if (from < 0 || from >= show.slideRIds.length) {
|
|
79
|
+
return show;
|
|
80
|
+
}
|
|
81
|
+
const list = [...show.slideRIds];
|
|
82
|
+
const [moved] = list.splice(from, 1);
|
|
83
|
+
list.splice(Math.max(0, Math.min(to, list.length)), 0, moved);
|
|
84
|
+
return { ...show, slideRIds: list };
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function copyCustomShow(shows, id, name) {
|
|
88
|
+
const source = shows.find((s) => s.id === id);
|
|
89
|
+
if (!source) {
|
|
90
|
+
return { shows: [...shows], show: void 0 };
|
|
91
|
+
}
|
|
92
|
+
const show = {
|
|
93
|
+
id: nextCustomShowId(shows),
|
|
94
|
+
name: uniqueCustomShowName(shows, name ?? `Copy of ${source.name}`),
|
|
95
|
+
slideRIds: [...source.slideRIds]
|
|
96
|
+
};
|
|
97
|
+
return { shows: [...shows, show], show };
|
|
98
|
+
}
|
|
99
|
+
function deleteCustomShow(shows, id) {
|
|
100
|
+
const show = shows.find((s) => s.id === id);
|
|
101
|
+
return { shows: shows.filter((s) => s.id !== id), show };
|
|
102
|
+
}
|
|
103
|
+
function pruneCustomShowSlides(shows, slides) {
|
|
104
|
+
const live = new Set(slides.map((s) => s.rId));
|
|
105
|
+
return shows.map(
|
|
106
|
+
(show) => show.slideRIds.every((r) => live.has(r)) ? show : { ...show, slideRIds: show.slideRIds.filter((r) => live.has(r)) }
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
function customShowSlides(show, slides) {
|
|
110
|
+
const byRId = new Map(slides.map((s) => [s.rId, s]));
|
|
111
|
+
return show.slideRIds.flatMap((r) => {
|
|
112
|
+
const slide = byRId.get(r);
|
|
113
|
+
return slide ? [slide] : [];
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function clearCustomShowActions(slides, id) {
|
|
117
|
+
const result = chunkA27O7M5X_cjs.mapCustomShowActions(slides, (target) => target === id ? null : target);
|
|
118
|
+
return { slides: result.slides, cleared: result.changed };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
exports.addSlidesToCustomShow = addSlidesToCustomShow;
|
|
122
|
+
exports.clearCustomShowActions = clearCustomShowActions;
|
|
123
|
+
exports.copyCustomShow = copyCustomShow;
|
|
124
|
+
exports.createCustomShow = createCustomShow;
|
|
125
|
+
exports.customShowSlides = customShowSlides;
|
|
126
|
+
exports.deleteCustomShow = deleteCustomShow;
|
|
127
|
+
exports.moveCustomShowSlide = moveCustomShowSlide;
|
|
128
|
+
exports.nextCustomShowId = nextCustomShowId;
|
|
129
|
+
exports.pruneCustomShowSlides = pruneCustomShowSlides;
|
|
130
|
+
exports.removeSlidesFromCustomShow = removeSlidesFromCustomShow;
|
|
131
|
+
exports.renameCustomShow = renameCustomShow;
|
|
132
|
+
exports.setCustomShowSlides = setCustomShowSlides;
|
|
133
|
+
exports.uniqueCustomShowName = uniqueCustomShowName;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PptxCustomShow, PptxSlide } from "ooxml-core/pptx";
|
|
2
|
+
//#region pptx/editor/render/custom-show-operations.d.ts
|
|
3
|
+
/** Result of an edit that targets one show. `show` is undefined when the id is unknown. */
|
|
4
|
+
export interface CustomShowEditResult {
|
|
5
|
+
shows: PptxCustomShow[];
|
|
6
|
+
show: PptxCustomShow | undefined;
|
|
7
|
+
}
|
|
8
|
+
/** The next free numeric `p:custShow/@id`: one above the largest numeric id in use. */
|
|
9
|
+
export declare function nextCustomShowId(shows: readonly PptxCustomShow[]): string;
|
|
10
|
+
/** `name`, or `name (2)`, `name (3)`... when another show (not `exceptId`) already uses it. */
|
|
11
|
+
export declare function uniqueCustomShowName(shows: readonly PptxCustomShow[], name: string, exceptId?: string): string;
|
|
12
|
+
/** Append a new show. A name already in use gets a numeric suffix. */
|
|
13
|
+
export declare function createCustomShow(shows: readonly PptxCustomShow[], name: string, slideRIds?: readonly string[]): CustomShowEditResult;
|
|
14
|
+
/** Rename a show; a clash with another show's name gets a numeric suffix. */
|
|
15
|
+
export declare function renameCustomShow(shows: readonly PptxCustomShow[], id: string, name: string): CustomShowEditResult;
|
|
16
|
+
/** Replace a show's whole slide list. */
|
|
17
|
+
export declare function setCustomShowSlides(shows: readonly PptxCustomShow[], id: string, slideRIds: readonly string[]): CustomShowEditResult;
|
|
18
|
+
/** Insert slides at `index` (default: the end), as the dialog's "Add" button does. */
|
|
19
|
+
export declare function addSlidesToCustomShow(shows: readonly PptxCustomShow[], id: string, slideRIds: readonly string[], index?: number): CustomShowEditResult;
|
|
20
|
+
/** Remove the entries at the given positions of a show's slide list. */
|
|
21
|
+
export declare function removeSlidesFromCustomShow(shows: readonly PptxCustomShow[], id: string, positions: readonly number[]): CustomShowEditResult;
|
|
22
|
+
/** Move one entry of a show's slide list (the dialog's up and down arrows). */
|
|
23
|
+
export declare function moveCustomShowSlide(shows: readonly PptxCustomShow[], id: string, from: number, to: number): CustomShowEditResult;
|
|
24
|
+
/** Copy a show under a fresh id; the default name is "Copy of <name>" like PowerPoint. */
|
|
25
|
+
export declare function copyCustomShow(shows: readonly PptxCustomShow[], id: string, name?: string): CustomShowEditResult;
|
|
26
|
+
/** Remove a show. Use {@link clearCustomShowActions} for the actions that jump into it. */
|
|
27
|
+
export declare function deleteCustomShow(shows: readonly PptxCustomShow[], id: string): CustomShowEditResult;
|
|
28
|
+
/** Drop slide references whose slide is gone (after a slide delete). */
|
|
29
|
+
export declare function pruneCustomShowSlides(shows: readonly PptxCustomShow[], slides: readonly Pick<PptxSlide, 'rId'>[]): PptxCustomShow[];
|
|
30
|
+
/** The slides a show plays, in show order, skipping references that no longer resolve. */
|
|
31
|
+
export declare function customShowSlides<T extends Pick<PptxSlide, 'rId'>>(show: PptxCustomShow, slides: readonly T[]): T[];
|
|
32
|
+
/**
|
|
33
|
+
* Remove the click and hover actions and text hyperlinks that jump into custom show `id`
|
|
34
|
+
* (`ppaction://customshow?id=N`), so deleting the show leaves no dangling jump.
|
|
35
|
+
* Returns new slides (unchanged slides keep their identity) and how many were cleared.
|
|
36
|
+
*/
|
|
37
|
+
export declare function clearCustomShowActions(slides: readonly PptxSlide[], id: string): {
|
|
38
|
+
slides: PptxSlide[];
|
|
39
|
+
cleared: number;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
//# sourceMappingURL=custom-show-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-show-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/custom-show-operations.ts"],"mappings":";;;iBAmBiB;EAChB,OAAO;EACP,MAAM;;;wBAIS,iBAAiB,gBAAgB;;wBAYjC,qBACf,gBAAgB,kBAChB,cACA;;wBAkCe,iBACf,gBAAgB,kBAChB,cACA,gCACE;;wBAUa,iBACf,gBAAgB,kBAChB,YACA,eACE;;wBAQa,oBACf,gBAAgB,kBAChB,YACA,+BACE;;wBAKa,sBACf,gBAAgB,kBAChB,YACA,8BACA,iBACE;;wBAUa,2BACf,gBAAgB,kBAChB,YACA,+BACE;;wBASa,oBACf,gBAAgB,kBAChB,YACA,cACA,aACE;;wBAaa,eACf,gBAAgB,kBAChB,YACA,gBACE;;wBAea,iBACf,gBAAgB,kBAChB,aACE;;wBAMa,sBACf,gBAAgB,kBAChB,iBAAiB,KAAK,sBACpB;;wBAUa,iBAAiB,UAAU,KAAK,mBAC/C,MAAM,gBACN,iBAAiB,MACf;;;;;;wBAaa,uBACf,iBAAiB,aACjB;EACI,QAAQ;EAAa"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { mapCustomShowActions } from '../../../chunk-UQMAPY6D.mjs';
|
|
2
|
+
import '../../../chunk-GXHKNSZX.mjs';
|
|
3
|
+
import '../../../chunk-CA7KCNL3.mjs';
|
|
4
|
+
|
|
5
|
+
// pptx/editor/render/custom-show-operations.ts
|
|
6
|
+
function nextCustomShowId(shows) {
|
|
7
|
+
let max = -1;
|
|
8
|
+
for (const show of shows) {
|
|
9
|
+
const n = Number(show.id);
|
|
10
|
+
if (Number.isInteger(n) && n > max) {
|
|
11
|
+
max = n;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return String(max + 1);
|
|
15
|
+
}
|
|
16
|
+
function uniqueCustomShowName(shows, name, exceptId) {
|
|
17
|
+
const base = name.trim() || "Custom Show";
|
|
18
|
+
const taken = new Set(
|
|
19
|
+
shows.filter((s) => s.id !== exceptId).map((s) => s.name.trim().toLowerCase())
|
|
20
|
+
);
|
|
21
|
+
if (!taken.has(base.toLowerCase())) {
|
|
22
|
+
return base;
|
|
23
|
+
}
|
|
24
|
+
for (let n = 2; ; n++) {
|
|
25
|
+
const candidate = `${base} (${n})`;
|
|
26
|
+
if (!taken.has(candidate.toLowerCase())) {
|
|
27
|
+
return candidate;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function replaceShow(shows, id, update) {
|
|
32
|
+
let edited;
|
|
33
|
+
const next = shows.map((show) => {
|
|
34
|
+
if (show.id !== id) {
|
|
35
|
+
return show;
|
|
36
|
+
}
|
|
37
|
+
edited = update(show);
|
|
38
|
+
return edited;
|
|
39
|
+
});
|
|
40
|
+
return { shows: edited ? next : [...shows], show: edited };
|
|
41
|
+
}
|
|
42
|
+
function createCustomShow(shows, name, slideRIds = []) {
|
|
43
|
+
const show = {
|
|
44
|
+
id: nextCustomShowId(shows),
|
|
45
|
+
name: uniqueCustomShowName(shows, name),
|
|
46
|
+
slideRIds: [...slideRIds]
|
|
47
|
+
};
|
|
48
|
+
return { shows: [...shows, show], show };
|
|
49
|
+
}
|
|
50
|
+
function renameCustomShow(shows, id, name) {
|
|
51
|
+
return replaceShow(shows, id, (show) => ({
|
|
52
|
+
...show,
|
|
53
|
+
name: uniqueCustomShowName(shows, name, id)
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
function setCustomShowSlides(shows, id, slideRIds) {
|
|
57
|
+
return replaceShow(shows, id, (show) => ({ ...show, slideRIds: [...slideRIds] }));
|
|
58
|
+
}
|
|
59
|
+
function addSlidesToCustomShow(shows, id, slideRIds, index) {
|
|
60
|
+
return replaceShow(shows, id, (show) => {
|
|
61
|
+
const at = Math.max(0, Math.min(index ?? show.slideRIds.length, show.slideRIds.length));
|
|
62
|
+
const list = [...show.slideRIds];
|
|
63
|
+
list.splice(at, 0, ...slideRIds);
|
|
64
|
+
return { ...show, slideRIds: list };
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function removeSlidesFromCustomShow(shows, id, positions) {
|
|
68
|
+
const drop = new Set(positions);
|
|
69
|
+
return replaceShow(shows, id, (show) => ({
|
|
70
|
+
...show,
|
|
71
|
+
slideRIds: show.slideRIds.filter((_, i) => !drop.has(i))
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
function moveCustomShowSlide(shows, id, from, to) {
|
|
75
|
+
return replaceShow(shows, id, (show) => {
|
|
76
|
+
if (from < 0 || from >= show.slideRIds.length) {
|
|
77
|
+
return show;
|
|
78
|
+
}
|
|
79
|
+
const list = [...show.slideRIds];
|
|
80
|
+
const [moved] = list.splice(from, 1);
|
|
81
|
+
list.splice(Math.max(0, Math.min(to, list.length)), 0, moved);
|
|
82
|
+
return { ...show, slideRIds: list };
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function copyCustomShow(shows, id, name) {
|
|
86
|
+
const source = shows.find((s) => s.id === id);
|
|
87
|
+
if (!source) {
|
|
88
|
+
return { shows: [...shows], show: void 0 };
|
|
89
|
+
}
|
|
90
|
+
const show = {
|
|
91
|
+
id: nextCustomShowId(shows),
|
|
92
|
+
name: uniqueCustomShowName(shows, name ?? `Copy of ${source.name}`),
|
|
93
|
+
slideRIds: [...source.slideRIds]
|
|
94
|
+
};
|
|
95
|
+
return { shows: [...shows, show], show };
|
|
96
|
+
}
|
|
97
|
+
function deleteCustomShow(shows, id) {
|
|
98
|
+
const show = shows.find((s) => s.id === id);
|
|
99
|
+
return { shows: shows.filter((s) => s.id !== id), show };
|
|
100
|
+
}
|
|
101
|
+
function pruneCustomShowSlides(shows, slides) {
|
|
102
|
+
const live = new Set(slides.map((s) => s.rId));
|
|
103
|
+
return shows.map(
|
|
104
|
+
(show) => show.slideRIds.every((r) => live.has(r)) ? show : { ...show, slideRIds: show.slideRIds.filter((r) => live.has(r)) }
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function customShowSlides(show, slides) {
|
|
108
|
+
const byRId = new Map(slides.map((s) => [s.rId, s]));
|
|
109
|
+
return show.slideRIds.flatMap((r) => {
|
|
110
|
+
const slide = byRId.get(r);
|
|
111
|
+
return slide ? [slide] : [];
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function clearCustomShowActions(slides, id) {
|
|
115
|
+
const result = mapCustomShowActions(slides, (target) => target === id ? null : target);
|
|
116
|
+
return { slides: result.slides, cleared: result.changed };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { addSlidesToCustomShow, clearCustomShowActions, copyCustomShow, createCustomShow, customShowSlides, deleteCustomShow, moveCustomShowSlide, nextCustomShowId, pruneCustomShowSlides, removeSlidesFromCustomShow, renameCustomShow, setCustomShowSlides, uniqueCustomShowName };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXF6ZRA2D_cjs = require('../../../chunk-XF6ZRA2D.cjs');
|
|
4
|
+
var chunkA27O7M5X_cjs = require('../../../chunk-A27O7M5X.cjs');
|
|
4
5
|
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
5
6
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
6
7
|
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
@@ -145,10 +146,10 @@ function* findSlideTextTargets(slide, includeNotes = false, includeChartTitles =
|
|
|
145
146
|
function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
146
147
|
if (!element.rawXml) return void 0;
|
|
147
148
|
const rawXml = structuredClone(element.rawXml);
|
|
148
|
-
const table =
|
|
149
|
-
const row =
|
|
150
|
-
const cell =
|
|
151
|
-
const paragraphs =
|
|
149
|
+
const table = chunkXF6ZRA2D_cjs.getTblFromRawXml(rawXml);
|
|
150
|
+
const row = chunkXF6ZRA2D_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
151
|
+
const cell = chunkXF6ZRA2D_cjs.ensureArray(row?.["a:tc"])[colIndex];
|
|
152
|
+
const paragraphs = chunkXF6ZRA2D_cjs.ensureArray(
|
|
152
153
|
cell?.["a:txBody"]?.["a:p"]
|
|
153
154
|
);
|
|
154
155
|
let paragraphIndex = 0, runIndex = 0, fieldIndex = 0;
|
|
@@ -163,7 +164,7 @@ function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
|
163
164
|
if (previous.isLineBreak) continue;
|
|
164
165
|
const paragraph = paragraphs[paragraphIndex];
|
|
165
166
|
const key = previous.isField ? "a:fld" : "a:r";
|
|
166
|
-
const xmlRun =
|
|
167
|
+
const xmlRun = chunkXF6ZRA2D_cjs.ensureArray(paragraph?.[key])[previous.isField ? fieldIndex++ : runIndex++];
|
|
167
168
|
if (!xmlRun) return void 0;
|
|
168
169
|
if (previous.text !== runs[index].text) xmlRun["a:t"] = runs[index].text;
|
|
169
170
|
}
|
|
@@ -173,7 +174,7 @@ function updateNode(nodes, nodeId, text) {
|
|
|
173
174
|
return nodes.map((node) => {
|
|
174
175
|
if (node.id === nodeId) {
|
|
175
176
|
const originalParagraphs = node.paragraphs ?? (node.runs?.length ? [{ items: node.runs.map((run) => ({ kind: "run", run })) }] : void 0);
|
|
176
|
-
const paragraphs = originalParagraphs ?
|
|
177
|
+
const paragraphs = originalParagraphs ? chunkA27O7M5X_cjs.reconcileSmartArtTextParagraphs(originalParagraphs, text) : void 0;
|
|
177
178
|
return { ...node, text, ...paragraphs ? { paragraphs } : {} };
|
|
178
179
|
}
|
|
179
180
|
if (!node.children) return node;
|
|
@@ -252,14 +253,14 @@ function replaceLeaf(element, match, replacement) {
|
|
|
252
253
|
);
|
|
253
254
|
if (!runs) return element;
|
|
254
255
|
let text = runs.map((run) => run.isParagraphBreak ? "\n" : run.isLineBreak ? "" : run.text).join("");
|
|
255
|
-
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) :
|
|
256
|
+
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) : chunkXF6ZRA2D_cjs.updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
256
257
|
if (rawXml) {
|
|
257
|
-
const table =
|
|
258
|
-
const xmlRow =
|
|
259
|
-
const xmlCell =
|
|
260
|
-
text =
|
|
258
|
+
const table = chunkXF6ZRA2D_cjs.getTblFromRawXml(rawXml);
|
|
259
|
+
const xmlRow = chunkXF6ZRA2D_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
260
|
+
const xmlCell = chunkXF6ZRA2D_cjs.ensureArray(xmlRow?.["a:tc"])[colIndex];
|
|
261
|
+
text = chunkXF6ZRA2D_cjs.flattenCellTxBodyText(
|
|
261
262
|
xmlCell?.["a:txBody"],
|
|
262
|
-
(value) =>
|
|
263
|
+
(value) => chunkXF6ZRA2D_cjs.ensureArray(value)
|
|
263
264
|
);
|
|
264
265
|
}
|
|
265
266
|
const rows = [...element.tableData.rows], cells = [...row.cells];
|
|
@@ -273,7 +274,7 @@ function replaceLeaf(element, match, replacement) {
|
|
|
273
274
|
if (!node || match.startOffset < 0 || match.startOffset + match.length > node.text.length)
|
|
274
275
|
return element;
|
|
275
276
|
const text = node.text.slice(0, match.startOffset) + replacement + node.text.slice(match.startOffset + match.length);
|
|
276
|
-
const next =
|
|
277
|
+
const next = chunkA27O7M5X_cjs.updateSmartArtNodeText({ ...data, nodes }, node.id, text);
|
|
277
278
|
const drawingShapes = next.drawingShapes?.map((shape, index) => {
|
|
278
279
|
if (shape === data.drawingShapes?.[index] || !shape.textSegments) return shape;
|
|
279
280
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../chunks/index-
|
|
2
|
-
import { C as PptxSlide } from "../../chunks/text-operations-
|
|
1
|
+
import "../../chunks/index-pLLN4OTz.js";
|
|
2
|
+
import { C as PptxSlide } from "../../chunks/text-operations-D5sgspO6.js";
|
|
3
3
|
//#region pptx/editor/render/find-replace.d.ts
|
|
4
4
|
/** Identifies a single match of the find query at segment-level precision. */
|
|
5
5
|
export interface FindResult {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText
|
|
1
|
+
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText } from '../../../chunk-LSO5SSFX.mjs';
|
|
2
|
+
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-UQMAPY6D.mjs';
|
|
2
3
|
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
3
4
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
4
5
|
import { remapTextToSegments } from '../../../chunk-CBNKBVX5.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../chunk-
|
|
4
|
-
|
|
3
|
+
require('../../../chunk-PA5ADSTX.cjs');
|
|
4
|
+
require('../../../chunk-XF6ZRA2D.cjs');
|
|
5
|
+
var chunkA27O7M5X_cjs = require('../../../chunk-A27O7M5X.cjs');
|
|
5
6
|
require('../../../chunk-XZPZHXV4.cjs');
|
|
6
7
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
7
8
|
|
|
@@ -20,7 +21,7 @@ function reassignElementId(element) {
|
|
|
20
21
|
return newElement;
|
|
21
22
|
}
|
|
22
23
|
function duplicateSlide(slide, newSlideNumber) {
|
|
23
|
-
const cloned =
|
|
24
|
+
const cloned = chunkA27O7M5X_cjs.cloneSlide(slide);
|
|
24
25
|
cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
|
|
25
26
|
cloned.id = `slide${newSlideNumber}`;
|
|
26
27
|
cloned.rId = `rId${newSlideNumber + 1}`;
|
|
@@ -50,7 +51,7 @@ function duplicateSlide(slide, newSlideNumber) {
|
|
|
50
51
|
function captureSlideClipboard(slides, ids) {
|
|
51
52
|
return ids.flatMap((id) => {
|
|
52
53
|
const slide = slides.find((candidate) => candidate.id === id);
|
|
53
|
-
return slide ? [
|
|
54
|
+
return slide ? [chunkA27O7M5X_cjs.cloneSlide(slide)] : [];
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
@@ -61,14 +62,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
|
61
62
|
})),
|
|
62
63
|
sourceIds: clipboard.map((slide) => slide.id),
|
|
63
64
|
insertAt,
|
|
64
|
-
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(
|
|
65
|
+
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunkA27O7M5X_cjs.cloneElement))
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
function insertSlidePaste(slides, request) {
|
|
68
69
|
const index = Math.max(0, Math.min(slides.length, request.insertAt));
|
|
69
70
|
const next = [
|
|
70
71
|
...slides.slice(0, index),
|
|
71
|
-
...request.copies.map(
|
|
72
|
+
...request.copies.map(chunkA27O7M5X_cjs.cloneSlide),
|
|
72
73
|
...slides.slice(index)
|
|
73
74
|
];
|
|
74
75
|
return next.map(
|
|
@@ -78,12 +79,12 @@ function insertSlidePaste(slides, request) {
|
|
|
78
79
|
function applySlidePasteTemplates(mapping, request) {
|
|
79
80
|
const next = { ...mapping };
|
|
80
81
|
request.copies.forEach((copy, index) => {
|
|
81
|
-
next[copy.id] = (request.templateElements[index] ?? []).map(
|
|
82
|
+
next[copy.id] = (request.templateElements[index] ?? []).map(chunkA27O7M5X_cjs.cloneElement);
|
|
82
83
|
});
|
|
83
84
|
return next;
|
|
84
85
|
}
|
|
85
86
|
function captureSlideClipboardTemplates(mapping, ids) {
|
|
86
|
-
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(
|
|
87
|
+
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunkA27O7M5X_cjs.cloneElement)]));
|
|
87
88
|
}
|
|
88
89
|
function makeSlideId(idGenerator) {
|
|
89
90
|
if (idGenerator) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import '../../../chunk-
|
|
2
|
-
import
|
|
1
|
+
import '../../../chunk-RI56PFGL.mjs';
|
|
2
|
+
import '../../../chunk-LSO5SSFX.mjs';
|
|
3
|
+
import { cloneSlide, cloneElement } from '../../../chunk-UQMAPY6D.mjs';
|
|
3
4
|
import '../../../chunk-GXHKNSZX.mjs';
|
|
4
5
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
5
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunk7XYVFUB3_cjs = require('../../../chunk-7XYVFUB3.cjs');
|
|
4
3
|
var chunkFRUB573B_cjs = require('../../../chunk-FRUB573B.cjs');
|
|
4
|
+
var chunk7XYVFUB3_cjs = require('../../../chunk-7XYVFUB3.cjs');
|
|
5
5
|
var pptx = require('ooxml-core/pptx');
|
|
6
6
|
|
|
7
7
|
function withTableData(element, transform, edit) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { setCellText } from '../../../chunk-NBMXEVHL.mjs';
|
|
2
1
|
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-3IT6ZD7K.mjs';
|
|
2
|
+
import { setCellText } from '../../../chunk-NBMXEVHL.mjs';
|
|
3
3
|
import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
|
|
4
4
|
|
|
5
5
|
function withTableData(element, transform, edit) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle } from "../../chunks/text-P9xVnXXf.js";
|
|
2
|
-
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-f3UbFph-.js";
|
|
3
3
|
//#region pptx/editor/render/text-runs-style-patch.d.ts
|
|
4
4
|
/** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
|
|
5
5
|
export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle, r as TextSegment } from "../../chunks/text-P9xVnXXf.js";
|
|
2
|
-
import { m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { m as PptxElement } from "../../chunks/elements-f3UbFph-.js";
|
|
3
3
|
import { TextDecorationFlag } from "./text-content-style.js";
|
|
4
4
|
//#region pptx/editor/render/text-style-scope.d.ts
|
|
5
5
|
/**
|