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
package/dist/teams/index.cjs
CHANGED
|
@@ -8620,6 +8620,46 @@ var init_filter_columns = __esm({
|
|
|
8620
8620
|
}
|
|
8621
8621
|
});
|
|
8622
8622
|
|
|
8623
|
+
// xlsx/read/sort-state.ts
|
|
8624
|
+
function readSortState(node2, dxfs) {
|
|
8625
|
+
const range = parseRange(att(node2, "ref") ?? "");
|
|
8626
|
+
if (!node2 || !range) return void 0;
|
|
8627
|
+
const conditions = [];
|
|
8628
|
+
for (const child5 of xChildren(node2, "sortCondition")) {
|
|
8629
|
+
const ref = parseRange(att(child5, "ref") ?? "");
|
|
8630
|
+
if (!ref) continue;
|
|
8631
|
+
const condition = { ref };
|
|
8632
|
+
if (boolAttr(child5, "descending", false)) condition.descending = true;
|
|
8633
|
+
const by = att(child5, "sortBy");
|
|
8634
|
+
if (by && SORT_BY.has(by) && by !== "value") condition.sortBy = by;
|
|
8635
|
+
const customList = att(child5, "customList");
|
|
8636
|
+
if (customList) condition.customList = customList;
|
|
8637
|
+
const dxfId = numAttr(child5, "dxfId");
|
|
8638
|
+
if (dxfId !== void 0) {
|
|
8639
|
+
condition.dxfId = dxfId;
|
|
8640
|
+
}
|
|
8641
|
+
const iconSet = att(child5, "iconSet");
|
|
8642
|
+
if (iconSet) condition.iconSet = iconSet;
|
|
8643
|
+
const iconId = numAttr(child5, "iconId");
|
|
8644
|
+
if (iconId !== void 0) condition.iconId = iconId;
|
|
8645
|
+
conditions.push(condition);
|
|
8646
|
+
}
|
|
8647
|
+
return {
|
|
8648
|
+
range,
|
|
8649
|
+
...boolAttr(node2, "columnSort", false) ? { columnSort: true } : {},
|
|
8650
|
+
...boolAttr(node2, "caseSensitive", false) ? { caseSensitive: true } : {},
|
|
8651
|
+
conditions
|
|
8652
|
+
};
|
|
8653
|
+
}
|
|
8654
|
+
var SORT_BY;
|
|
8655
|
+
var init_sort_state = __esm({
|
|
8656
|
+
"xlsx/read/sort-state.ts"() {
|
|
8657
|
+
init_address();
|
|
8658
|
+
init_xml_util();
|
|
8659
|
+
SORT_BY = /* @__PURE__ */ new Set(["value", "cellColor", "fontColor", "icon"]);
|
|
8660
|
+
}
|
|
8661
|
+
});
|
|
8662
|
+
|
|
8623
8663
|
// xlsx/read/style-parts.ts
|
|
8624
8664
|
function parseColor(element3, palette) {
|
|
8625
8665
|
if (!element3) return void 0;
|
|
@@ -8798,23 +8838,41 @@ function readSheetView(sheetViews) {
|
|
|
8798
8838
|
const cols = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
|
|
8799
8839
|
if (rows || cols) view.freeze = { rows, cols };
|
|
8800
8840
|
}
|
|
8841
|
+
const split2 = pane && state === "split";
|
|
8842
|
+
if (split2) {
|
|
8843
|
+
const x = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
|
|
8844
|
+
const y = Math.max(0, Math.round(numAttr(pane, "ySplit") ?? 0));
|
|
8845
|
+
if (x || y) {
|
|
8846
|
+
view.split = { x, y };
|
|
8847
|
+
const first2 = parseAddress(att(node2, "topLeftCell") ?? "");
|
|
8848
|
+
if (first2) view.split.topLeft = first2;
|
|
8849
|
+
const active = att(pane, "activePane");
|
|
8850
|
+
if (active && PANES.has(active))
|
|
8851
|
+
view.split.activePane = active;
|
|
8852
|
+
}
|
|
8853
|
+
}
|
|
8801
8854
|
const topLeft = parseAddress(
|
|
8802
|
-
(frozen ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
|
|
8855
|
+
(frozen || split2 ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
|
|
8803
8856
|
);
|
|
8804
8857
|
if (topLeft) view.topLeft = topLeft;
|
|
8805
8858
|
const selections = xChildren(node2, "selection");
|
|
8806
8859
|
const activePane = att(pane, "activePane") ?? "topLeft";
|
|
8807
8860
|
const selection = selections.find((sel) => (att(sel, "pane") ?? "topLeft") === activePane) ?? selections[0];
|
|
8808
|
-
if (selection)
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
}
|
|
8861
|
+
if (selection) view.selection = readSelection(selection);
|
|
8862
|
+
if (view.split) {
|
|
8863
|
+
for (const other of selections) {
|
|
8864
|
+
const name2 = att(other, "pane") ?? "topLeft";
|
|
8865
|
+
if (other === selection || !PANES.has(name2)) continue;
|
|
8866
|
+
(view.split.paneSelections ??= {})[name2] = readSelection(other);
|
|
8867
|
+
}
|
|
8815
8868
|
}
|
|
8816
8869
|
return view;
|
|
8817
8870
|
}
|
|
8871
|
+
function readSelection(selection) {
|
|
8872
|
+
const ranges = parseSqref(att(selection, "sqref") ?? att(selection, "activeCell") ?? "A1");
|
|
8873
|
+
const active = parseAddress(att(selection, "activeCell") ?? "") ?? ranges[0]?.start ?? { row: 0, col: 0 };
|
|
8874
|
+
return { active, ranges: ranges.length ? ranges : [{ start: active, end: { ...active } }] };
|
|
8875
|
+
}
|
|
8818
8876
|
function readSheetFormat(format) {
|
|
8819
8877
|
const result2 = {
|
|
8820
8878
|
defaultRowHeight: numAttr(format, "defaultRowHeight") ?? 15
|
|
@@ -8837,6 +8895,8 @@ function readAutoFilter(node2, dxfs) {
|
|
|
8837
8895
|
const filter2 = { range };
|
|
8838
8896
|
const columns = xChildren(node2, "filterColumn").map((column2) => readFilterColumn(column2));
|
|
8839
8897
|
if (columns.length) filter2.columns = columns;
|
|
8898
|
+
const sortState = readSortState(xFirst(node2, "sortState"));
|
|
8899
|
+
if (sortState) filter2.sortState = sortState;
|
|
8840
8900
|
return filter2;
|
|
8841
8901
|
}
|
|
8842
8902
|
function readHeaderFooter(node2) {
|
|
@@ -8899,12 +8959,13 @@ function readProtection(node2) {
|
|
|
8899
8959
|
if (allow.length) protection.allow = allow.sort();
|
|
8900
8960
|
return protection;
|
|
8901
8961
|
}
|
|
8902
|
-
var defaultSheetView, readTabColor, readFitToPage, FORMAT_FLAGS, HEADER_FOOTER_TEXT, HEADER_FOOTER_FLAGS, ORIENTATIONS, PROTECTION_META;
|
|
8962
|
+
var defaultSheetView, readTabColor, readFitToPage, PANES, FORMAT_FLAGS, HEADER_FOOTER_TEXT, HEADER_FOOTER_FLAGS, ORIENTATIONS, PROTECTION_META;
|
|
8903
8963
|
var init_sheet_props = __esm({
|
|
8904
8964
|
"xlsx/read/sheet-props.ts"() {
|
|
8905
8965
|
init_address();
|
|
8906
8966
|
init_password_hash();
|
|
8907
8967
|
init_filter_columns();
|
|
8968
|
+
init_sort_state();
|
|
8908
8969
|
init_style_parts();
|
|
8909
8970
|
init_xml_util();
|
|
8910
8971
|
defaultSheetView = () => ({
|
|
@@ -8916,6 +8977,7 @@ var init_sheet_props = __esm({
|
|
|
8916
8977
|
});
|
|
8917
8978
|
readTabColor = (sheetPr, palette) => parseColor(xFirst(sheetPr, "tabColor"), palette);
|
|
8918
8979
|
readFitToPage = (sheetPr) => boolAttr(xFirst(sheetPr, "pageSetUpPr"), "fitToPage") ?? false;
|
|
8980
|
+
PANES = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight"]);
|
|
8919
8981
|
FORMAT_FLAGS = ["zeroHeight", "customHeight", "thickTop", "thickBottom"];
|
|
8920
8982
|
HEADER_FOOTER_TEXT = {
|
|
8921
8983
|
header: "oddHeader",
|
|
@@ -30201,7 +30263,7 @@ var init_date = __esm({
|
|
|
30201
30263
|
});
|
|
30202
30264
|
|
|
30203
30265
|
// xlsx/read/tables.ts
|
|
30204
|
-
function parseTable(xml, partName) {
|
|
30266
|
+
function parseTable(xml, partName, dxfs) {
|
|
30205
30267
|
const root = parseXml(xml, { label: "XLSX table" }).documentElement;
|
|
30206
30268
|
const range = parseRange(att(root, "ref") ?? "");
|
|
30207
30269
|
if (!range) return void 0;
|
|
@@ -30242,8 +30304,10 @@ function parseTable(xml, partName) {
|
|
|
30242
30304
|
}
|
|
30243
30305
|
return table2;
|
|
30244
30306
|
}
|
|
30245
|
-
function readColumnFilters(root, table2) {
|
|
30307
|
+
function readColumnFilters(root, table2, dxfs) {
|
|
30246
30308
|
const filter2 = xFirst(root, "autoFilter");
|
|
30309
|
+
const sortState = readSortState(xFirst(filter2, "sortState") ?? xFirst(root, "sortState"));
|
|
30310
|
+
if (sortState) table2.sortState = sortState;
|
|
30247
30311
|
for (const node2 of filter2 ? xChildren(filter2, "filterColumn") : []) {
|
|
30248
30312
|
const column2 = table2.columns[numAttr(node2, "colId") ?? -1];
|
|
30249
30313
|
const filters = xChildren(node2, "filters");
|
|
@@ -30269,6 +30333,7 @@ var init_tables = __esm({
|
|
|
30269
30333
|
"xlsx/read/tables.ts"() {
|
|
30270
30334
|
init_xml2();
|
|
30271
30335
|
init_address();
|
|
30336
|
+
init_sort_state();
|
|
30272
30337
|
init_formula_text();
|
|
30273
30338
|
init_xml_util();
|
|
30274
30339
|
}
|
|
@@ -45720,6 +45785,10 @@ function criteriaOf(column2) {
|
|
|
45720
45785
|
function unresolvedFilter(filter2) {
|
|
45721
45786
|
return filter2 && {
|
|
45722
45787
|
range: filter2.range,
|
|
45788
|
+
sortState: filter2.sortState && {
|
|
45789
|
+
...filter2.sortState,
|
|
45790
|
+
conditions: filter2.sortState.conditions.map(({ style: _style, ...rest }) => rest)
|
|
45791
|
+
},
|
|
45723
45792
|
columns: filter2.columns?.map((column2) => ({
|
|
45724
45793
|
offset: column2.offset,
|
|
45725
45794
|
sourceXml: column2.sourceXml,
|
|
@@ -45808,6 +45877,59 @@ var init_filter_columns2 = __esm({
|
|
|
45808
45877
|
}
|
|
45809
45878
|
});
|
|
45810
45879
|
|
|
45880
|
+
// xlsx/write/sort-state.ts
|
|
45881
|
+
function sortStateXml(state, styles) {
|
|
45882
|
+
if (!state) return "";
|
|
45883
|
+
const levels = state.conditions.map((c2) => {
|
|
45884
|
+
const dxfId = c2.style && styles ? styles.dxfId(c2.style) : c2.dxfId;
|
|
45885
|
+
return el("sortCondition", {
|
|
45886
|
+
descending: c2.descending || void 0,
|
|
45887
|
+
sortBy: c2.sortBy && c2.sortBy !== "value" ? c2.sortBy : void 0,
|
|
45888
|
+
ref: formatRange(c2.ref),
|
|
45889
|
+
customList: c2.customList,
|
|
45890
|
+
dxfId,
|
|
45891
|
+
iconSet: c2.iconSet,
|
|
45892
|
+
iconId: c2.iconId
|
|
45893
|
+
});
|
|
45894
|
+
}).join("");
|
|
45895
|
+
return el(
|
|
45896
|
+
"sortState",
|
|
45897
|
+
{
|
|
45898
|
+
columnSort: state.columnSort || void 0,
|
|
45899
|
+
caseSensitive: state.caseSensitive || void 0,
|
|
45900
|
+
ref: formatRange(state.range)
|
|
45901
|
+
},
|
|
45902
|
+
levels
|
|
45903
|
+
);
|
|
45904
|
+
}
|
|
45905
|
+
function sheetSortStateXml(sheet, styles) {
|
|
45906
|
+
if (!sheet.sortState) return "";
|
|
45907
|
+
const kept = sheet.preserved.get("sortState")?.[0];
|
|
45908
|
+
if (kept) {
|
|
45909
|
+
try {
|
|
45910
|
+
const source3 = readSortState(parseXml(kept, { label: "XLSX worksheet" }).documentElement);
|
|
45911
|
+
if (sameModel(bareSortState(source3), bareSortState(sheet.sortState))) return "";
|
|
45912
|
+
} catch {
|
|
45913
|
+
}
|
|
45914
|
+
}
|
|
45915
|
+
return sortStateXml(sheet.sortState, styles);
|
|
45916
|
+
}
|
|
45917
|
+
var bareSortState, unresolvedTable;
|
|
45918
|
+
var init_sort_state2 = __esm({
|
|
45919
|
+
"xlsx/write/sort-state.ts"() {
|
|
45920
|
+
init_xml2();
|
|
45921
|
+
init_address();
|
|
45922
|
+
init_sort_state();
|
|
45923
|
+
init_snapshot();
|
|
45924
|
+
init_xml_out();
|
|
45925
|
+
bareSortState = (state) => state && {
|
|
45926
|
+
...state,
|
|
45927
|
+
conditions: state.conditions.map(({ style: _style, ...rest }) => rest)
|
|
45928
|
+
};
|
|
45929
|
+
unresolvedTable = (table2) => table2 && { ...table2, sortState: bareSortState(table2.sortState) };
|
|
45930
|
+
}
|
|
45931
|
+
});
|
|
45932
|
+
|
|
45811
45933
|
// xlsx/write/sheet-props.ts
|
|
45812
45934
|
function sheetPrXml(sheet) {
|
|
45813
45935
|
const source3 = snapshotElement(sheet, "sheetPr");
|
|
@@ -45832,6 +45954,19 @@ function dimensionXml(sheet) {
|
|
|
45832
45954
|
const used = usedRange(sheet);
|
|
45833
45955
|
return `<dimension ref="${used ? formatRange(used) : "A1"}"/>`;
|
|
45834
45956
|
}
|
|
45957
|
+
function splitActivePane(split2) {
|
|
45958
|
+
const both = split2.x > 0 && split2.y > 0;
|
|
45959
|
+
const valid2 = both ? ["topLeft", "topRight", "bottomLeft", "bottomRight"] : split2.y > 0 ? ["topLeft", "bottomLeft"] : ["topLeft", "topRight"];
|
|
45960
|
+
if (split2.activePane && valid2.includes(split2.activePane)) return split2.activePane;
|
|
45961
|
+
return both ? "bottomRight" : split2.y > 0 ? "bottomLeft" : "topRight";
|
|
45962
|
+
}
|
|
45963
|
+
function selectionXml(selection, pane) {
|
|
45964
|
+
return el("selection", {
|
|
45965
|
+
pane,
|
|
45966
|
+
activeCell: formatAddress(selection.active),
|
|
45967
|
+
sqref: sqref(selection.ranges) || formatAddress(selection.active)
|
|
45968
|
+
});
|
|
45969
|
+
}
|
|
45835
45970
|
function sheetViewsXml(sheet, tabSelected) {
|
|
45836
45971
|
const source3 = snapshotElement(sheet, "sheetViews");
|
|
45837
45972
|
if (source3 && sameModel(readSheetView(source3), sheet.view)) {
|
|
@@ -45860,20 +45995,31 @@ function sheetViewsXml(sheet, tabSelected) {
|
|
|
45860
45995
|
state: "frozen"
|
|
45861
45996
|
});
|
|
45862
45997
|
}
|
|
45863
|
-
|
|
45864
|
-
|
|
45865
|
-
|
|
45866
|
-
|
|
45867
|
-
|
|
45998
|
+
const split2 = view.split && (view.split.x > 0 || view.split.y > 0) ? view.split : void 0;
|
|
45999
|
+
if (split2 && !pane) {
|
|
46000
|
+
const { x, y } = split2;
|
|
46001
|
+
pane = splitActivePane(split2);
|
|
46002
|
+
inner += el("pane", {
|
|
46003
|
+
xSplit: x || void 0,
|
|
46004
|
+
ySplit: y || void 0,
|
|
46005
|
+
topLeftCell: view.topLeft ? formatAddress(view.topLeft) : void 0,
|
|
46006
|
+
activePane: pane,
|
|
46007
|
+
state: "split"
|
|
45868
46008
|
});
|
|
45869
46009
|
}
|
|
46010
|
+
if (split2) {
|
|
46011
|
+
for (const name2 of ["topLeft", "topRight", "bottomLeft", "bottomRight"]) {
|
|
46012
|
+
const own = name2 === pane ? view.selection : split2.paneSelections?.[name2];
|
|
46013
|
+
if (own) inner += selectionXml(own, name2);
|
|
46014
|
+
}
|
|
46015
|
+
} else if (view.selection) inner += selectionXml(view.selection, pane);
|
|
45870
46016
|
const attributes2 = attrs({
|
|
45871
46017
|
tabSelected: tabSelected || void 0,
|
|
45872
46018
|
showGridLines: view.showGridLines ? void 0 : false,
|
|
45873
46019
|
showRowColHeaders: view.showHeaders ? void 0 : false,
|
|
45874
46020
|
showZeros: view.showZeros ? void 0 : false,
|
|
45875
46021
|
rightToLeft: view.rightToLeft || void 0,
|
|
45876
|
-
topLeftCell: !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
|
|
46022
|
+
topLeftCell: split2 ? split2.topLeft ? formatAddress(split2.topLeft) : void 0 : !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
|
|
45877
46023
|
showFormulas: view.showFormulas || void 0,
|
|
45878
46024
|
view: view.mode,
|
|
45879
46025
|
zoomScale: view.zoom !== 100 ? view.zoom : void 0,
|
|
@@ -45957,7 +46103,7 @@ function autoFilterXml(sheet, styles) {
|
|
|
45957
46103
|
return snapshotXml(sheet, "autoFilter") ?? "";
|
|
45958
46104
|
const width = filter2.range.end.col - filter2.range.start.col + 1;
|
|
45959
46105
|
const columns = (filter2.columns ?? []).filter((column2) => column2.offset >= 0 && column2.offset < width).sort((a2, b) => a2.offset - b.offset).map((column2) => filterColumnXml(column2, styles)).join("");
|
|
45960
|
-
const sort2 = source3 && sameModel(readAutoFilter(source3)?.range, filter2.range) ? elements(source3).filter((node2) => node2.localName === "sortState" || node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
|
|
46106
|
+
const sort2 = filter2.sortState ? sortStateXml(filter2.sortState, styles) + extLstOf(source3) : source3 && sameModel(readAutoFilter(source3)?.range, filter2.range) ? elements(source3).filter((node2) => node2.localName === "sortState" || node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
|
|
45961
46107
|
return el("autoFilter", { ref: formatRange(filter2.range) }, columns + sort2);
|
|
45962
46108
|
}
|
|
45963
46109
|
function mergeCellsXml(sheet) {
|
|
@@ -45965,7 +46111,7 @@ function mergeCellsXml(sheet) {
|
|
|
45965
46111
|
const cells2 = sheet.merges.map((range) => `<mergeCell ref="${formatRange(range)}"/>`).join("");
|
|
45966
46112
|
return `<mergeCells count="${sheet.merges.length}">${cells2}</mergeCells>`;
|
|
45967
46113
|
}
|
|
45968
|
-
var sqref;
|
|
46114
|
+
var sqref, extLstOf;
|
|
45969
46115
|
var init_sheet_props2 = __esm({
|
|
45970
46116
|
"xlsx/write/sheet-props.ts"() {
|
|
45971
46117
|
init_xml2();
|
|
@@ -45974,12 +46120,14 @@ var init_sheet_props2 = __esm({
|
|
|
45974
46120
|
init_sheet_props();
|
|
45975
46121
|
init_xml_util();
|
|
45976
46122
|
init_filter_columns2();
|
|
46123
|
+
init_sort_state2();
|
|
45977
46124
|
init_attr_merge();
|
|
45978
46125
|
init_password_hash2();
|
|
45979
46126
|
init_snapshot();
|
|
45980
46127
|
init_style_xml();
|
|
45981
46128
|
init_xml_out();
|
|
45982
46129
|
sqref = (ranges) => ranges.map((range) => formatRange(range)).join(" ");
|
|
46130
|
+
extLstOf = (source3) => source3 ? elements(source3).filter((node2) => node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
|
|
45983
46131
|
}
|
|
45984
46132
|
});
|
|
45985
46133
|
|
|
@@ -47163,7 +47311,7 @@ function syncColumnFilters(doc, filter2, table2) {
|
|
|
47163
47311
|
}
|
|
47164
47312
|
});
|
|
47165
47313
|
}
|
|
47166
|
-
function patchAutoFilter(doc, root, table2, before, names2) {
|
|
47314
|
+
function patchAutoFilter(doc, root, table2, before, names2, styles) {
|
|
47167
47315
|
const existing = xKid(root, "autoFilter");
|
|
47168
47316
|
if (!table2.headerRow) {
|
|
47169
47317
|
if (existing) root.removeChild(existing);
|
|
@@ -47184,6 +47332,19 @@ function patchAutoFilter(doc, root, table2, before, names2) {
|
|
|
47184
47332
|
syncColumnFilters(doc, filter2, table2);
|
|
47185
47333
|
if (!existing) insertBefore(root, filter2, ["sortState", "tableColumns"]);
|
|
47186
47334
|
const sort2 = xKid(filter2, "sortState") ?? xKid(root, "sortState");
|
|
47335
|
+
if (table2.sortState) {
|
|
47336
|
+
const kept = sort2 && bareSortState(readSortState(sort2));
|
|
47337
|
+
if (!sameModel(kept, bareSortState(table2.sortState))) {
|
|
47338
|
+
sort2?.parentNode?.removeChild(sort2);
|
|
47339
|
+
const xml = sortStateXml(table2.sortState, styles).replace(
|
|
47340
|
+
"<sortState",
|
|
47341
|
+
`<sortState xmlns="${NS.x}"`
|
|
47342
|
+
);
|
|
47343
|
+
const fresh = doc.importNode(parseXml(xml, { label: "XLSX table" }).documentElement, true);
|
|
47344
|
+
insertBefore(filter2, fresh, ["extLst"]);
|
|
47345
|
+
return;
|
|
47346
|
+
}
|
|
47347
|
+
}
|
|
47187
47348
|
if (!sort2) return;
|
|
47188
47349
|
const moved = before.start.row !== table2.range.start.row || before.start.col !== table2.range.start.col || before.end.col !== table2.range.end.col;
|
|
47189
47350
|
if (moved) {
|
|
@@ -47268,7 +47429,7 @@ function patchStyleInfo(doc, root, table2) {
|
|
|
47268
47429
|
info.setAttribute("showRowStripes", flag(table2.showRowStripes, true));
|
|
47269
47430
|
info.setAttribute("showColumnStripes", flag(table2.showColumnStripes, false));
|
|
47270
47431
|
}
|
|
47271
|
-
function patchTableXml(sourceXml, sheet, table2, id, names2) {
|
|
47432
|
+
function patchTableXml(sourceXml, sheet, table2, id, names2, styles) {
|
|
47272
47433
|
let doc;
|
|
47273
47434
|
try {
|
|
47274
47435
|
doc = parseXml(sourceXml, { label: "XLSX table" });
|
|
@@ -47290,7 +47451,7 @@ function patchTableXml(sourceXml, sheet, table2, id, names2) {
|
|
|
47290
47451
|
root.removeAttribute("totalsRowCount");
|
|
47291
47452
|
if (!root.hasAttribute("totalsRowShown")) root.setAttribute("totalsRowShown", "0");
|
|
47292
47453
|
}
|
|
47293
|
-
patchAutoFilter(doc, root, table2, before, names2);
|
|
47454
|
+
patchAutoFilter(doc, root, table2, before, names2, styles);
|
|
47294
47455
|
patchColumns(doc, root, sheet, table2, names2);
|
|
47295
47456
|
patchStyleInfo(doc, root, table2);
|
|
47296
47457
|
return buildXml(doc);
|
|
@@ -47301,8 +47462,11 @@ var init_table_patch = __esm({
|
|
|
47301
47462
|
init_xml2();
|
|
47302
47463
|
init_address();
|
|
47303
47464
|
init_formula_text();
|
|
47465
|
+
init_sort_state();
|
|
47304
47466
|
init_tables();
|
|
47305
47467
|
init_table_filter();
|
|
47468
|
+
init_snapshot();
|
|
47469
|
+
init_sort_state2();
|
|
47306
47470
|
init_xml_out();
|
|
47307
47471
|
xKids = (parent, local) => elements(parent).filter((e) => e.localName === local);
|
|
47308
47472
|
xKid = (parent, local) => xKids(parent, local)[0];
|
|
@@ -47333,12 +47497,13 @@ function resolveTableColumns(sheet, table2) {
|
|
|
47333
47497
|
}
|
|
47334
47498
|
return { names: names2, headerText };
|
|
47335
47499
|
}
|
|
47336
|
-
function tableXml(table2, id, names2) {
|
|
47500
|
+
function tableXml(table2, id, names2, styles) {
|
|
47337
47501
|
const range = formatRange(table2.range);
|
|
47338
47502
|
const filterEnd = { ...table2.range.end, row: table2.range.end.row - (table2.totalsRow ? 1 : 0) };
|
|
47339
47503
|
const criteria = table2.columns.map((column2, index2) => column2.filter ? filterColumnXml2(index2, column2.filter) : "").join("");
|
|
47340
47504
|
const filterRef = formatRange({ start: table2.range.start, end: filterEnd });
|
|
47341
|
-
const
|
|
47505
|
+
const sort2 = sortStateXml(table2.sortState, styles);
|
|
47506
|
+
const filter2 = table2.headerRow ? criteria || sort2 ? `<autoFilter ref="${filterRef}">${criteria}${sort2}</autoFilter>` : `<autoFilter ref="${filterRef}"/>` : "";
|
|
47342
47507
|
const columns = names2.map((name2, index2) => {
|
|
47343
47508
|
const column2 = table2.columns[index2];
|
|
47344
47509
|
const calculated = column2?.calculatedColumnFormula ? `<calculatedColumnFormula>${escapeText2(addFuturePrefixes(column2.calculatedColumnFormula))}</calculatedColumnFormula>` : "";
|
|
@@ -47401,6 +47566,7 @@ var init_tables2 = __esm({
|
|
|
47401
47566
|
init_address();
|
|
47402
47567
|
init_formula_text();
|
|
47403
47568
|
init_table_filter();
|
|
47569
|
+
init_sort_state2();
|
|
47404
47570
|
init_xml_out();
|
|
47405
47571
|
headerTextOf = (value) => typeof value === "string" ? value : typeof value === "number" || typeof value === "boolean" ? String(value).toUpperCase() : void 0;
|
|
47406
47572
|
SUBTOTAL_CODES = {
|
|
@@ -47505,7 +47671,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
|
|
|
47505
47671
|
const totals = totalsRowFormulas(sheet, table2, names2);
|
|
47506
47672
|
for (const [key, formula2] of totals) formulas.set(key, formula2);
|
|
47507
47673
|
let id = table2.id;
|
|
47508
|
-
const unchanged = table2.partName && sourceXml && !writer.has(table2.partName) && !ctx.tableIds.has(id) && forced.size === 0 && totals.size === 0 && table2 === original && sameModel(before, table2);
|
|
47674
|
+
const unchanged = table2.partName && sourceXml && !writer.has(table2.partName) && !ctx.tableIds.has(id) && forced.size === 0 && totals.size === 0 && table2 === original && sameModel(unresolvedTable(before), unresolvedTable(table2));
|
|
47509
47675
|
let part;
|
|
47510
47676
|
if (unchanged && table2.partName) {
|
|
47511
47677
|
part = table2.partName;
|
|
@@ -47513,7 +47679,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
|
|
|
47513
47679
|
} else {
|
|
47514
47680
|
while (ctx.tableIds.has(id) || id < 1) id++;
|
|
47515
47681
|
part = table2.partName && !writer.has(table2.partName) ? table2.partName : writer.uniqueName((n) => `xl/tables/table${n}.xml`, ctx.reserved);
|
|
47516
|
-
const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names2)) ?? tableXml(table2, id, names2);
|
|
47682
|
+
const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names2, ctx.styles)) ?? tableXml(table2, id, names2, ctx.styles);
|
|
47517
47683
|
writer.add(part, xml, CONTENT_TYPES.table);
|
|
47518
47684
|
}
|
|
47519
47685
|
ctx.tableIds.add(id);
|
|
@@ -47557,6 +47723,7 @@ var init_sheet_parts = __esm({
|
|
|
47557
47723
|
init_drawing4();
|
|
47558
47724
|
init_snapshot();
|
|
47559
47725
|
init_vml_ids();
|
|
47726
|
+
init_sort_state2();
|
|
47560
47727
|
init_table_patch();
|
|
47561
47728
|
init_tables2();
|
|
47562
47729
|
}
|
|
@@ -47595,6 +47762,22 @@ var init_scenarios = __esm({
|
|
|
47595
47762
|
}
|
|
47596
47763
|
});
|
|
47597
47764
|
|
|
47765
|
+
// xlsx/write/ignored-errors.ts
|
|
47766
|
+
function ignoredErrorsXml(list2) {
|
|
47767
|
+
const items = (list2 ?? []).filter((e) => e.ranges.length && e.flags.length);
|
|
47768
|
+
if (!items.length) return "";
|
|
47769
|
+
const body = items.map((e) => {
|
|
47770
|
+
const flags = e.flags.map((flag2) => ` ${flag2}="1"`).join("");
|
|
47771
|
+
return `<ignoredError sqref="${e.ranges.map(formatRange).join(" ")}"${flags}/>`;
|
|
47772
|
+
}).join("");
|
|
47773
|
+
return `<ignoredErrors>${body}</ignoredErrors>`;
|
|
47774
|
+
}
|
|
47775
|
+
var init_ignored_errors = __esm({
|
|
47776
|
+
"xlsx/write/ignored-errors.ts"() {
|
|
47777
|
+
init_address();
|
|
47778
|
+
}
|
|
47779
|
+
});
|
|
47780
|
+
|
|
47598
47781
|
// xlsx/write/worksheet.ts
|
|
47599
47782
|
function writeWorksheet(ctx, sheet, index2, partName) {
|
|
47600
47783
|
const { writer, source: source3 } = ctx;
|
|
@@ -47641,7 +47824,9 @@ function writeWorksheet(ctx, sheet, index2, partName) {
|
|
|
47641
47824
|
blocks.set("scenarios", scenariosXml(sheet.scenarios));
|
|
47642
47825
|
blocks.set("customSheetViews", customSheetViewsXml(sheet.customViews));
|
|
47643
47826
|
blocks.set("autoFilter", autoFilterXml(sheet, ctx.styles));
|
|
47827
|
+
blocks.set("sortState", sheetSortStateXml(sheet, ctx.styles));
|
|
47644
47828
|
blocks.set("mergeCells", mergeCellsXml(sheet));
|
|
47829
|
+
blocks.set("ignoredErrors", ignoredErrorsXml(sheet.ignoredErrors));
|
|
47645
47830
|
blocks.set("conditionalFormatting", conditionalFormatsXml(sheet.conditionalFormats, ctx.styles));
|
|
47646
47831
|
blocks.set("dataValidations", dataValidationsXml(sheet.dataValidations));
|
|
47647
47832
|
const links = sheet.hyperlinks.map((link) => {
|
|
@@ -47700,9 +47885,11 @@ var init_worksheet2 = __esm({
|
|
|
47700
47885
|
init_page_setup();
|
|
47701
47886
|
init_sheet_data();
|
|
47702
47887
|
init_sheet_parts();
|
|
47888
|
+
init_sort_state2();
|
|
47703
47889
|
init_sheet_props2();
|
|
47704
47890
|
init_scenarios();
|
|
47705
47891
|
init_custom_views2();
|
|
47892
|
+
init_ignored_errors();
|
|
47706
47893
|
init_worksheet_children();
|
|
47707
47894
|
init_xml_out();
|
|
47708
47895
|
REGENERATED = /* @__PURE__ */ new Set([
|