ooxml-core 1.30.0 → 1.31.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-3OLZT5YW.cjs → PptxHandler-DHQPVTUI.cjs} +2 -2
- package/dist/{PptxHandler-LOFY2PRO.mjs → PptxHandler-E4DDV3FQ.mjs} +1 -1
- package/dist/{PptxHandler-FJHKJEZU.mjs → PptxHandler-KKLAYUGQ.mjs} +2 -2
- package/dist/{PresentationBuilder-LVIVJZIL.cjs → PresentationBuilder-JORMF5CP.cjs} +4 -4
- package/dist/{PresentationBuilder-W5VRPFLM.mjs → PresentationBuilder-Q2Z33LLM.mjs} +2 -2
- package/dist/{PresentationBuilder-23M6WQK3.mjs → PresentationBuilder-YYZYCKTZ.mjs} +1 -1
- package/dist/automation/index.cjs +5829 -3266
- package/dist/automation/index.mjs +5829 -3266
- package/dist/automation/node.cjs +2 -1
- package/dist/automation/node.d.ts.map +1 -1
- package/dist/automation/node.mjs +2 -1
- package/dist/automation/tools/define.d.ts +2 -0
- package/dist/automation/tools/define.d.ts.map +1 -1
- package/dist/automation/tools/types.d.ts +6 -0
- package/dist/automation/tools/types.d.ts.map +1 -1
- package/dist/{chunk-JZ64GVIB.mjs → chunk-6FXOAMNL.mjs} +1 -1
- package/dist/{chunk-SCK5U362.cjs → chunk-B4LXDHBX.cjs} +19 -1
- package/dist/{chunk-5YZFO55V.mjs → chunk-FFJBOR2Y.mjs} +4 -4
- package/dist/{chunk-SCTM27HK.mjs → chunk-GJDFCP2T.mjs} +20 -2
- package/dist/{chunk-HDHUJM5M.mjs → chunk-KWJYMAEF.mjs} +19 -1
- package/dist/{chunk-HK7DVTEF.mjs → chunk-MKDONWNO.mjs} +1 -1
- package/dist/{chunk-UVYWAI4M.mjs → chunk-WZJ25K7P.mjs} +1 -1
- package/dist/collab/index.cjs +35 -4
- package/dist/collab/index.mjs +35 -4
- package/dist/collab/websocket-transport.d.ts +9 -1
- package/dist/collab/websocket-transport.d.ts.map +1 -1
- package/dist/docx/data-binding.d.ts +9 -0
- package/dist/docx/data-binding.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +1 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1383 -609
- package/dist/docx/embedded.mjs +1383 -609
- package/dist/docx/index.cjs +1394 -618
- package/dist/docx/index.mjs +1394 -618
- package/dist/docx/inline-model.d.ts +2 -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/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/equation-object.d.ts +1 -1
- package/dist/docx/layout/equation-object.d.ts.map +1 -1
- package/dist/docx/layout/floats.d.ts +1 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-paragraph.d.ts +4 -0
- package/dist/docx/layout/flow-paragraph.d.ts.map +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +452 -203
- package/dist/docx/layout/index.mjs +452 -203
- package/dist/docx/layout/input.d.ts +12 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/nested-frame-profile.d.ts +3 -1
- package/dist/docx/layout/nested-frame-profile.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts +11 -2
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts +5 -0
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +4 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts +2 -0
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-layout.d.ts +4 -14
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-merged-rows.d.ts +21 -0
- package/dist/docx/layout/table-merged-rows.d.ts.map +1 -0
- package/dist/docx/layout/table-row-split.d.ts +16 -0
- package/dist/docx/layout/table-row-split.d.ts.map +1 -0
- package/dist/docx/layout/wrap.d.ts +2 -0
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +1397 -623
- package/dist/docx/load/index.mjs +1397 -623
- package/dist/docx/model-paragraph.d.ts +4 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +24 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/paragraph-properties.d.ts.map +1 -1
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/run-segmentation.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +4 -0
- package/dist/docx/save-modified.d.ts.map +1 -0
- package/dist/docx/save.d.ts +2 -2
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-formatting-package.d.ts +9 -0
- package/dist/docx/style-formatting-package.d.ts.map +1 -0
- package/dist/docx/style-numbering-package.d.ts +4 -1
- package/dist/docx/style-numbering-package.d.ts.map +1 -1
- package/dist/docx/table-grid.d.ts +35 -0
- package/dist/docx/table-grid.d.ts.map +1 -0
- package/dist/docx/table-structure-cells.d.ts +19 -0
- package/dist/docx/table-structure-cells.d.ts.map +1 -0
- package/dist/docx/table-structure-check.d.ts +12 -0
- package/dist/docx/table-structure-check.d.ts.map +1 -0
- package/dist/docx/table-structure-merge.d.ts +28 -0
- package/dist/docx/table-structure-merge.d.ts.map +1 -0
- package/dist/docx/table-structure.d.ts +30 -0
- package/dist/docx/table-structure.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +717 -256
- 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 +703 -257
- 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/table-structure-guard.d.ts +2 -0
- package/dist/docx/ui/table-structure-guard.d.ts.map +1 -1
- package/dist/docx/word-content-control-docs.d.ts +5 -0
- package/dist/docx/word-content-control-docs.d.ts.map +1 -0
- package/dist/docx/word-corpus-gaps.d.ts +10 -0
- package/dist/docx/word-corpus-gaps.d.ts.map +1 -0
- package/dist/docx/word-measurer.d.ts +6 -0
- package/dist/docx/word-measurer.d.ts.map +1 -0
- package/dist/docx/word-spacing-docs.d.ts +12 -0
- package/dist/docx/word-spacing-docs.d.ts.map +1 -0
- package/dist/docx/word-table-docs.d.ts +9 -0
- package/dist/docx/word-table-docs.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-fallback.d.ts +5 -0
- package/dist/docx/write-fallback.d.ts.map +1 -0
- package/dist/docx/write-table-properties.d.ts +1 -0
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write-table-structure.d.ts +14 -0
- package/dist/docx/write-table-structure.d.ts.map +1 -0
- package/dist/docx/write-table.d.ts +3 -4
- package/dist/docx/write-table.d.ts.map +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.mjs +22 -22
- package/dist/math/index.cjs +22 -22
- package/dist/math/index.mjs +22 -22
- package/dist/math/omml-box-grouped.d.ts.map +1 -1
- package/dist/math/omml-box-layout.d.ts +3 -1
- package/dist/math/omml-box-layout.d.ts.map +1 -1
- package/dist/math/omml-box-structures.d.ts.map +1 -1
- package/dist/math/omml-box.d.ts +2 -0
- package/dist/math/omml-box.d.ts.map +1 -1
- package/dist/math/omml-svg.d.ts +6 -2
- package/dist/math/omml-svg.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +20 -1
- package/dist/pptx/automation/index.d.ts +6 -0
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/index-PdM5zpmu.d.ts.map +1 -1
- package/dist/pptx/cli/index.cjs +19 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/index.cjs +19 -1
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/chat-rooms.d.ts.map +1 -1
- package/dist/teams/chat.d.ts +7 -0
- package/dist/teams/chat.d.ts.map +1 -1
- package/dist/teams/files.d.ts +1 -1
- package/dist/teams/files.d.ts.map +1 -1
- package/dist/teams/index.cjs +2735 -1148
- package/dist/teams/index.d.ts +3 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.mjs +2710 -1148
- package/dist/teams/message-transfer.d.ts +1 -1
- package/dist/teams/message-transfer.d.ts.map +1 -1
- package/dist/teams/protocol.d.ts +30 -0
- package/dist/teams/protocol.d.ts.map +1 -0
- package/dist/teams/schema.d.ts +59 -0
- package/dist/teams/schema.d.ts.map +1 -0
- package/dist/teams/server-config.d.ts +19 -2
- package/dist/teams/server-config.d.ts.map +1 -1
- package/dist/teams/server-file-storage.d.ts +11 -1
- package/dist/teams/server-file-storage.d.ts.map +1 -1
- package/dist/teams/server-session.d.ts +2 -0
- package/dist/teams/server-session.d.ts.map +1 -1
- package/dist/teams/signaling.d.ts +2 -0
- package/dist/teams/signaling.d.ts.map +1 -1
- package/dist/teams/store.d.ts +9 -0
- package/dist/teams/store.d.ts.map +1 -1
- package/dist/teams/stored-file.d.ts +1 -1
- package/dist/teams/stored-file.d.ts.map +1 -1
- package/dist/teams/sync-transport.d.ts.map +1 -1
- package/dist/teams/validate-members.d.ts +28 -0
- package/dist/teams/validate-members.d.ts.map +1 -0
- package/dist/teams/validate-owned.d.ts +20 -0
- package/dist/teams/validate-owned.d.ts.map +1 -0
- package/dist/teams/validate-update.d.ts +70 -0
- package/dist/teams/validate-update.d.ts.map +1 -0
- package/dist/teams/workspace.d.ts +12 -0
- package/dist/teams/workspace.d.ts.map +1 -1
- package/dist/visio/connector-route-walk.d.ts +2 -0
- package/dist/visio/connector-route-walk.d.ts.map +1 -1
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts +2 -0
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-duplicate-line.d.ts +40 -0
- package/dist/visio/edit-duplicate-line.d.ts.map +1 -0
- package/dist/visio/edit-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts +5 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-duplicate.d.ts +2 -1
- package/dist/visio/edit-instance-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-master-move.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts +23 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-text.d.ts +12 -0
- package/dist/visio/edit-recalculate-text.d.ts.map +1 -0
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- package/dist/visio/edit-recalculate.d.ts +15 -3
- 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-stencil-connector-layout.d.ts +1 -1
- package/dist/visio/edit-stencil-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-text-scope.d.ts +4 -1
- package/dist/visio/edit-text-scope.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts +18 -0
- package/dist/visio/formula-analyze.d.ts.map +1 -0
- package/dist/visio/formula-bound.d.ts +4 -0
- package/dist/visio/formula-bound.d.ts.map +1 -0
- package/dist/visio/formula-evaluate.d.ts +2 -9
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-extra-functions.d.ts +23 -0
- package/dist/visio/formula-extra-functions.d.ts.map +1 -0
- package/dist/visio/formula-indirect.d.ts +6 -0
- package/dist/visio/formula-indirect.d.ts.map +1 -0
- package/dist/visio/formula-master.d.ts +1 -0
- package/dist/visio/formula-master.d.ts.map +1 -1
- package/dist/visio/formula-operators.d.ts +6 -0
- package/dist/visio/formula-operators.d.ts.map +1 -0
- package/dist/visio/formula-text-functions.d.ts +5 -1
- package/dist/visio/formula-text-functions.d.ts.map +1 -1
- package/dist/visio/formula.d.ts +12 -0
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +1354 -396
- package/dist/visio/index.mjs +1354 -396
- package/dist/visio/ui/index.cjs +1341 -383
- package/dist/visio/ui/index.mjs +1341 -383
- package/dist/xlsx/collab/apply.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/dirty.d.ts +4 -1
- package/dist/xlsx/collab/dirty.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +551 -106
- package/dist/xlsx/collab/index.mjs +551 -106
- package/dist/xlsx/collab/keyed.d.ts +36 -0
- package/dist/xlsx/collab/keyed.d.ts.map +1 -0
- package/dist/xlsx/collab/names.d.ts +2 -0
- package/dist/xlsx/collab/names.d.ts.map +1 -1
- package/dist/xlsx/collab/part-specs.d.ts +13 -0
- package/dist/xlsx/collab/part-specs.d.ts.map +1 -0
- package/dist/xlsx/collab/schema.d.ts +8 -0
- package/dist/xlsx/collab/schema.d.ts.map +1 -1
- package/dist/xlsx/collab/sheet-parts.d.ts +19 -0
- package/dist/xlsx/collab/sheet-parts.d.ts.map +1 -0
- package/dist/xlsx/collab/sheets.d.ts +6 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -1
- package/dist/xlsx/collab/write.d.ts +3 -0
- package/dist/xlsx/collab/write.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-areas.d.ts +17 -0
- package/dist/xlsx/edit/clipboard-areas.d.ts.map +1 -0
- package/dist/xlsx/edit/custom-views.d.ts +21 -0
- package/dist/xlsx/edit/custom-views.d.ts.map +1 -0
- package/dist/xlsx/edit/data-table.d.ts.map +1 -1
- package/dist/xlsx/edit/history.d.ts +1 -1
- package/dist/xlsx/edit/history.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +2 -0
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/scenario-merge.d.ts +7 -0
- package/dist/xlsx/edit/scenario-merge.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-data-tables.d.ts +7 -0
- package/dist/xlsx/edit/shift-data-tables.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts +7 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/sparkline-grouping.d.ts +10 -0
- package/dist/xlsx/edit/sparkline-grouping.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +21 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/ets-excel-compare.d.ts +24 -0
- package/dist/xlsx/formula/ets-excel-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts +36 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts +15 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts +15 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts +13 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts +6 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts +3 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +4444 -2447
- package/dist/xlsx/index.mjs +4423 -2448
- package/dist/xlsx/layout/form-control-link.d.ts +20 -0
- package/dist/xlsx/layout/form-control-link.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-state.d.ts +49 -0
- package/dist/xlsx/layout/form-control-state.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-view.d.ts +11 -0
- package/dist/xlsx/layout/form-control-view.d.ts.map +1 -0
- package/dist/xlsx/layout/header-footer-edit.d.ts +4 -2
- package/dist/xlsx/layout/header-footer-edit.d.ts.map +1 -1
- package/dist/xlsx/layout/header-footer.d.ts +16 -0
- package/dist/xlsx/layout/header-footer.d.ts.map +1 -1
- package/dist/xlsx/layout/index.d.ts +5 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/ref-evaluator.d.ts +6 -0
- package/dist/xlsx/layout/ref-evaluator.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts +25 -0
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -0
- package/dist/xlsx/layout/shape-view.d.ts +15 -0
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +2134 -1103
- package/dist/xlsx/load/index.mjs +2134 -1103
- package/dist/xlsx/model-custom-views.d.ts +33 -0
- package/dist/xlsx/model-custom-views.d.ts.map +1 -0
- package/dist/xlsx/model-shapes.d.ts +78 -0
- package/dist/xlsx/model-shapes.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +38 -1
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/custom-views.d.ts +5 -0
- package/dist/xlsx/read/custom-views.d.ts.map +1 -0
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/form-control.d.ts +14 -0
- package/dist/xlsx/read/form-control.d.ts.map +1 -0
- package/dist/xlsx/read/header-footer-images.d.ts +5 -0
- package/dist/xlsx/read/header-footer-images.d.ts.map +1 -0
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/read/shape.d.ts +5 -0
- package/dist/xlsx/read/shape.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/workbook-part.d.ts +5 -1
- package/dist/xlsx/read/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet-children.d.ts +3 -0
- package/dist/xlsx/read/worksheet-children.d.ts.map +1 -0
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/sparklines.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/what-if.d.ts +0 -1
- package/dist/xlsx/ui/commands/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts +51 -0
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts +15 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +4411 -2195
- package/dist/xlsx/ui/index.d.ts +2 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +4404 -2194
- package/dist/xlsx/ui/locales/de/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/grid.d.ts.map +1 -1
- package/dist/xlsx/write/custom-views.d.ts +4 -0
- package/dist/xlsx/write/custom-views.d.ts.map +1 -0
- package/dist/xlsx/write/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/form-control.d.ts +4 -0
- package/dist/xlsx/write/form-control.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-data.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 +1 -1
package/dist/docx/ui/index.cjs
CHANGED
|
@@ -25601,6 +25601,34 @@ function chartRun(doc, node, image, base, oldDrawing, oldContainer, allocator) {
|
|
|
25601
25601
|
return void 0;
|
|
25602
25602
|
}
|
|
25603
25603
|
|
|
25604
|
+
// docx/write-fallback.ts
|
|
25605
|
+
var PT_PER_PX2 = 0.75;
|
|
25606
|
+
function setStyleSize(style, name, pt) {
|
|
25607
|
+
const value = `${Math.round(pt * 100) / 100}pt`;
|
|
25608
|
+
const pattern = new RegExp(`(^|;)\\s*${name}\\s*:\\s*[^;]*`, "i");
|
|
25609
|
+
return pattern.test(style) ? style.replace(pattern, (_all, lead) => `${lead}${name}:${value}`) : style;
|
|
25610
|
+
}
|
|
25611
|
+
function patchFallbackSize(content, image, base) {
|
|
25612
|
+
if (!base || image.widthPx === base.widthPx && image.heightPx === base.heightPx) return;
|
|
25613
|
+
const fallback = Array.from(content.childNodes).filter(isElement).find((node) => node.localName === "Fallback");
|
|
25614
|
+
if (!fallback) return;
|
|
25615
|
+
const stack = [fallback];
|
|
25616
|
+
while (stack.length) {
|
|
25617
|
+
const node = stack.pop();
|
|
25618
|
+
const style = node.getAttribute("style");
|
|
25619
|
+
if (style && /(^|;)\s*width\s*:/i.test(style)) {
|
|
25620
|
+
let next = style;
|
|
25621
|
+
if (image.widthPx !== base.widthPx)
|
|
25622
|
+
next = setStyleSize(next, "width", image.widthPx * PT_PER_PX2);
|
|
25623
|
+
if (image.heightPx !== base.heightPx)
|
|
25624
|
+
next = setStyleSize(next, "height", image.heightPx * PT_PER_PX2);
|
|
25625
|
+
node.setAttribute("style", next);
|
|
25626
|
+
continue;
|
|
25627
|
+
}
|
|
25628
|
+
for (const child3 of Array.from(node.childNodes)) if (isElement(child3)) stack.push(child3);
|
|
25629
|
+
}
|
|
25630
|
+
}
|
|
25631
|
+
|
|
25604
25632
|
// docx/chart-ex-edit.ts
|
|
25605
25633
|
function isDocxChartExEditable(chart) {
|
|
25606
25634
|
return !!chart?.chartExSpace && chart.issues.every((issue) => issue.code === "CHARTEX_FAMILY_NOT_DRAWN");
|
|
@@ -25685,6 +25713,13 @@ function createImageRun(doc, image, base, old, allocator) {
|
|
|
25685
25713
|
}
|
|
25686
25714
|
if (base && oldDrawing && image.shape?.editable && base.shape?.editable) {
|
|
25687
25715
|
const next = rebuildShapeDrawing(doc, image, oldDrawing);
|
|
25716
|
+
const choice = oldDrawing.parentNode;
|
|
25717
|
+
if (oldContainer?.localName === "AlternateContent" && choice) {
|
|
25718
|
+
choice.replaceChild(next, oldDrawing);
|
|
25719
|
+
patchFallbackSize(oldContainer, image, base);
|
|
25720
|
+
clearNonProperties(node, oldContainer);
|
|
25721
|
+
return node;
|
|
25722
|
+
}
|
|
25688
25723
|
clearNonProperties(node);
|
|
25689
25724
|
node.appendChild(next);
|
|
25690
25725
|
return node;
|
|
@@ -26517,6 +26552,10 @@ function parseFormatting(pPr) {
|
|
|
26517
26552
|
const line3 = signedTwipValue(getW(spacing2, "line"));
|
|
26518
26553
|
if (before !== void 0) result.spacingBeforeTwips = before;
|
|
26519
26554
|
if (after !== void 0) result.spacingAfterTwips = after;
|
|
26555
|
+
const beforeAuto = parseOnOff(getW(spacing2, "beforeAutospacing"));
|
|
26556
|
+
const afterAuto = parseOnOff(getW(spacing2, "afterAutospacing"));
|
|
26557
|
+
if (beforeAuto !== void 0) result.spacingBeforeAuto = beforeAuto;
|
|
26558
|
+
if (afterAuto !== void 0) result.spacingAfterAuto = afterAuto;
|
|
26520
26559
|
if (line3 !== void 0) result.lineSpacingTwips = line3;
|
|
26521
26560
|
const rule = getW(spacing2, "lineRule");
|
|
26522
26561
|
if (rule === "auto" || rule === "exact" || rule === "atLeast") result.lineSpacingRule = rule;
|
|
@@ -26758,6 +26797,253 @@ function resolveTableStyleFormatting(tableStyleId, catalog, look, rowIndex, rowC
|
|
|
26758
26797
|
return result;
|
|
26759
26798
|
}
|
|
26760
26799
|
|
|
26800
|
+
// docx/tab-stops.ts
|
|
26801
|
+
function parseTabStops(tabs) {
|
|
26802
|
+
const stops = [];
|
|
26803
|
+
for (const tab of tabs ? children2(tabs, "tab") : []) {
|
|
26804
|
+
const align = enumValue(isStTabJc, getW(tab, "val"));
|
|
26805
|
+
const pos = parseSignedTwips(getW(tab, "pos"));
|
|
26806
|
+
if (!align || pos === void 0) continue;
|
|
26807
|
+
const leader = enumValue(isStTabTlc, getW(tab, "leader"));
|
|
26808
|
+
stops.push({ posTwips: pos, align, ...leader ? { leader } : {} });
|
|
26809
|
+
}
|
|
26810
|
+
return stops;
|
|
26811
|
+
}
|
|
26812
|
+
function writeTabStops(doc, props, paragraph, base) {
|
|
26813
|
+
if (base && JSON.stringify(paragraph.tabStops ?? []) === JSON.stringify(base.tabStops ?? []))
|
|
26814
|
+
return;
|
|
26815
|
+
for (const tabs2 of children2(props, "tabs")) props.removeChild(tabs2);
|
|
26816
|
+
if (!paragraph.tabStops?.length) return;
|
|
26817
|
+
const tabs = makeW(doc, "tabs");
|
|
26818
|
+
for (const stop of paragraph.tabStops) {
|
|
26819
|
+
const tab = makeW(doc, "tab");
|
|
26820
|
+
tab.setAttributeNS(WORD_NS, "w:val", stop.align);
|
|
26821
|
+
if (stop.leader) tab.setAttributeNS(WORD_NS, "w:leader", stop.leader);
|
|
26822
|
+
tab.setAttributeNS(WORD_NS, "w:pos", String(stop.posTwips));
|
|
26823
|
+
tabs.appendChild(tab);
|
|
26824
|
+
}
|
|
26825
|
+
props.appendChild(tabs);
|
|
26826
|
+
}
|
|
26827
|
+
var PPR_ORDER = [
|
|
26828
|
+
"pStyle",
|
|
26829
|
+
"keepNext",
|
|
26830
|
+
"keepLines",
|
|
26831
|
+
"pageBreakBefore",
|
|
26832
|
+
"framePr",
|
|
26833
|
+
"widowControl",
|
|
26834
|
+
"numPr",
|
|
26835
|
+
"suppressLineNumbers",
|
|
26836
|
+
"pBdr",
|
|
26837
|
+
"shd",
|
|
26838
|
+
"tabs",
|
|
26839
|
+
"suppressAutoHyphens",
|
|
26840
|
+
"kinsoku",
|
|
26841
|
+
"wordWrap",
|
|
26842
|
+
"overflowPunct",
|
|
26843
|
+
"topLinePunct",
|
|
26844
|
+
"autoSpaceDE",
|
|
26845
|
+
"autoSpaceDN",
|
|
26846
|
+
"bidi",
|
|
26847
|
+
"adjustRightInd",
|
|
26848
|
+
"snapToGrid",
|
|
26849
|
+
"spacing",
|
|
26850
|
+
"ind",
|
|
26851
|
+
"contextualSpacing",
|
|
26852
|
+
"mirrorIndents",
|
|
26853
|
+
"suppressOverlap",
|
|
26854
|
+
"jc",
|
|
26855
|
+
"textDirection",
|
|
26856
|
+
"textAlignment",
|
|
26857
|
+
"textboxTightWrap",
|
|
26858
|
+
"outlineLvl",
|
|
26859
|
+
"divId",
|
|
26860
|
+
"cnfStyle",
|
|
26861
|
+
"rPr",
|
|
26862
|
+
"sectPr",
|
|
26863
|
+
"pPrChange"
|
|
26864
|
+
];
|
|
26865
|
+
function orderParagraphProperties(props) {
|
|
26866
|
+
orderChildren(props, PPR_ORDER);
|
|
26867
|
+
}
|
|
26868
|
+
|
|
26869
|
+
// docx/write-paragraph-decoration.ts
|
|
26870
|
+
var SIDES4 = ["top", "left", "bottom", "right", "between"];
|
|
26871
|
+
function wordColor(color) {
|
|
26872
|
+
const hex = /^#?([0-9a-f]{6})$/i.exec(color ?? "")?.[1];
|
|
26873
|
+
return hex ? hex.toUpperCase() : "auto";
|
|
26874
|
+
}
|
|
26875
|
+
function borderElement(doc, name, side) {
|
|
26876
|
+
const element3 = makeW(doc, name);
|
|
26877
|
+
const set = (local, value) => element3.setAttributeNS(WORD_NS, `w:${local}`, value);
|
|
26878
|
+
set("val", side.style ?? "single");
|
|
26879
|
+
if (side.style !== "none" && side.style !== "nil") {
|
|
26880
|
+
set("sz", String(side.sizeEighthPoints ?? 4));
|
|
26881
|
+
set("space", String(side.spacePoints ?? 1));
|
|
26882
|
+
set("color", wordColor(side.color));
|
|
26883
|
+
if (side.themeColor) set("themeColor", side.themeColor);
|
|
26884
|
+
}
|
|
26885
|
+
return element3;
|
|
26886
|
+
}
|
|
26887
|
+
var sameJson = (a, b) => JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
|
|
26888
|
+
function updateShading(doc, props, paragraph, base) {
|
|
26889
|
+
if (base && paragraph.shadingFill === base.shadingFill) return;
|
|
26890
|
+
for (const element3 of children2(props, "shd")) props.removeChild(element3);
|
|
26891
|
+
if (!paragraph.shadingFill) return;
|
|
26892
|
+
const shd = makeW(doc, "shd");
|
|
26893
|
+
shd.setAttributeNS(WORD_NS, "w:val", "clear");
|
|
26894
|
+
shd.setAttributeNS(WORD_NS, "w:color", "auto");
|
|
26895
|
+
shd.setAttributeNS(WORD_NS, "w:fill", wordColor(paragraph.shadingFill));
|
|
26896
|
+
props.appendChild(shd);
|
|
26897
|
+
}
|
|
26898
|
+
function updateBorders(doc, props, paragraph, base) {
|
|
26899
|
+
if (base && sameJson(paragraph.borders, base.borders)) return;
|
|
26900
|
+
for (const element3 of children2(props, "pBdr")) props.removeChild(element3);
|
|
26901
|
+
const borders = paragraph.borders;
|
|
26902
|
+
if (!borders) return;
|
|
26903
|
+
const pBdr = makeW(doc, "pBdr");
|
|
26904
|
+
for (const side of SIDES4) {
|
|
26905
|
+
const value = borders[side];
|
|
26906
|
+
if (value) pBdr.appendChild(borderElement(doc, side, value));
|
|
26907
|
+
}
|
|
26908
|
+
if (pBdr.childNodes.length) props.appendChild(pBdr);
|
|
26909
|
+
}
|
|
26910
|
+
function writeParagraphDecoration(doc, props, paragraph, base) {
|
|
26911
|
+
updateShading(doc, props, paragraph, base);
|
|
26912
|
+
updateBorders(doc, props, paragraph, base);
|
|
26913
|
+
}
|
|
26914
|
+
|
|
26915
|
+
// docx/write-paragraph-properties.ts
|
|
26916
|
+
function setAttribute4(element3, local, value) {
|
|
26917
|
+
element3.setAttributeNS(WORD_NS, `w:${local}`, value);
|
|
26918
|
+
}
|
|
26919
|
+
function setWordValue(element3, local, value) {
|
|
26920
|
+
if (value === void 0) element3.removeAttributeNS(WORD_NS, local);
|
|
26921
|
+
else setAttribute4(element3, local, String(value));
|
|
26922
|
+
}
|
|
26923
|
+
function updateDirection(doc, props, paragraph, base) {
|
|
26924
|
+
if (base && paragraph.direction === base.direction) return;
|
|
26925
|
+
let bidi = first2(props, "bidi");
|
|
26926
|
+
if (paragraph.direction === void 0) {
|
|
26927
|
+
for (const element3 of children2(props, "bidi")) props.removeChild(element3);
|
|
26928
|
+
} else {
|
|
26929
|
+
if (!bidi) {
|
|
26930
|
+
bidi = makeW(doc, "bidi");
|
|
26931
|
+
props.appendChild(bidi);
|
|
26932
|
+
}
|
|
26933
|
+
setAttribute4(bidi, "val", paragraph.direction === "rtl" ? "1" : "0");
|
|
26934
|
+
}
|
|
26935
|
+
}
|
|
26936
|
+
function updateSpacing(doc, props, paragraph, base) {
|
|
26937
|
+
let spacing2 = first2(props, "spacing");
|
|
26938
|
+
if (!spacing2) {
|
|
26939
|
+
spacing2 = makeW(doc, "spacing");
|
|
26940
|
+
props.appendChild(spacing2);
|
|
26941
|
+
}
|
|
26942
|
+
if (!base || paragraph.spacingBeforeTwips !== base.spacingBeforeTwips)
|
|
26943
|
+
setWordValue(spacing2, "before", paragraph.spacingBeforeTwips);
|
|
26944
|
+
if (!base || paragraph.spacingAfterTwips !== base.spacingAfterTwips)
|
|
26945
|
+
setWordValue(spacing2, "after", paragraph.spacingAfterTwips);
|
|
26946
|
+
if (!base || paragraph.lineSpacingTwips !== base.lineSpacingTwips || paragraph.lineSpacingRule !== base.lineSpacingRule) {
|
|
26947
|
+
setWordValue(spacing2, "line", paragraph.lineSpacingTwips);
|
|
26948
|
+
setWordValue(
|
|
26949
|
+
spacing2,
|
|
26950
|
+
"lineRule",
|
|
26951
|
+
paragraph.lineSpacingRule ?? (paragraph.lineSpacingTwips === void 0 ? void 0 : "auto")
|
|
26952
|
+
);
|
|
26953
|
+
}
|
|
26954
|
+
if (!spacing2.attributes.length && !spacing2.childNodes.length) props.removeChild(spacing2);
|
|
26955
|
+
}
|
|
26956
|
+
function updateIndent(doc, props, paragraph, base) {
|
|
26957
|
+
let indent = first2(props, "ind");
|
|
26958
|
+
if (!indent) {
|
|
26959
|
+
indent = makeW(doc, "ind");
|
|
26960
|
+
props.appendChild(indent);
|
|
26961
|
+
}
|
|
26962
|
+
if (!base || paragraph.indentLeftTwips !== base.indentLeftTwips)
|
|
26963
|
+
setWordValue(indent, "left", paragraph.indentLeftTwips);
|
|
26964
|
+
if (!base || paragraph.indentRightTwips !== base.indentRightTwips)
|
|
26965
|
+
setWordValue(indent, "right", paragraph.indentRightTwips);
|
|
26966
|
+
if (!base || paragraph.indentStartTwips !== base.indentStartTwips)
|
|
26967
|
+
setWordValue(indent, "start", paragraph.indentStartTwips);
|
|
26968
|
+
if (!base || paragraph.indentEndTwips !== base.indentEndTwips)
|
|
26969
|
+
setWordValue(indent, "end", paragraph.indentEndTwips);
|
|
26970
|
+
if (!base || paragraph.firstLineTwips !== base.firstLineTwips)
|
|
26971
|
+
setWordValue(indent, "firstLine", paragraph.firstLineTwips);
|
|
26972
|
+
if (!base || paragraph.hangingTwips !== base.hangingTwips)
|
|
26973
|
+
setWordValue(indent, "hanging", paragraph.hangingTwips);
|
|
26974
|
+
if (!indent.attributes.length) props.removeChild(indent);
|
|
26975
|
+
}
|
|
26976
|
+
function updatePageBreakBefore(doc, props, paragraph, base) {
|
|
26977
|
+
if (base && paragraph.pageBreakBefore === base.pageBreakBefore) return;
|
|
26978
|
+
for (const element3 of children2(props, "pageBreakBefore")) props.removeChild(element3);
|
|
26979
|
+
if (paragraph.pageBreakBefore !== void 0) {
|
|
26980
|
+
const element3 = makeW(doc, "pageBreakBefore");
|
|
26981
|
+
if (!paragraph.pageBreakBefore) element3.setAttributeNS(WORD_NS, "w:val", "0");
|
|
26982
|
+
props.appendChild(element3);
|
|
26983
|
+
}
|
|
26984
|
+
}
|
|
26985
|
+
function updateKeepOptions(doc, props, paragraph, base) {
|
|
26986
|
+
for (const key of [
|
|
26987
|
+
"keepNext",
|
|
26988
|
+
"keepLines",
|
|
26989
|
+
"widowControl",
|
|
26990
|
+
"contextualSpacing",
|
|
26991
|
+
"suppressLineNumbers"
|
|
26992
|
+
]) {
|
|
26993
|
+
if (base && paragraph[key] === base[key]) continue;
|
|
26994
|
+
for (const element4 of children2(props, key)) props.removeChild(element4);
|
|
26995
|
+
const value = paragraph[key];
|
|
26996
|
+
if (value === void 0) continue;
|
|
26997
|
+
const element3 = makeW(doc, key);
|
|
26998
|
+
if (!value) setAttribute4(element3, "val", "0");
|
|
26999
|
+
props.appendChild(element3);
|
|
27000
|
+
}
|
|
27001
|
+
}
|
|
27002
|
+
function updateDropCap(doc, props, paragraph, base) {
|
|
27003
|
+
if (base && JSON.stringify(paragraph.dropCap) === JSON.stringify(base.dropCap)) return;
|
|
27004
|
+
let frame2 = first2(props, "framePr");
|
|
27005
|
+
const cap = paragraph.dropCap;
|
|
27006
|
+
if (!cap) {
|
|
27007
|
+
if (frame2) props.removeChild(frame2);
|
|
27008
|
+
return;
|
|
27009
|
+
}
|
|
27010
|
+
if (!frame2) {
|
|
27011
|
+
frame2 = makeW(doc, "framePr");
|
|
27012
|
+
props.appendChild(frame2);
|
|
27013
|
+
setAttribute4(frame2, "wrap", "around");
|
|
27014
|
+
setAttribute4(frame2, "vAnchor", "text");
|
|
27015
|
+
setAttribute4(frame2, "hAnchor", "text");
|
|
27016
|
+
}
|
|
27017
|
+
setAttribute4(frame2, "dropCap", cap.style);
|
|
27018
|
+
setAttribute4(frame2, "lines", String(cap.lines));
|
|
27019
|
+
setWordValue(frame2, "hSpace", cap.distanceTwips);
|
|
27020
|
+
}
|
|
27021
|
+
function writeParagraphProperties(doc, props, paragraph, base) {
|
|
27022
|
+
updatePageBreakBefore(doc, props, paragraph, base);
|
|
27023
|
+
updateKeepOptions(doc, props, paragraph, base);
|
|
27024
|
+
updateDropCap(doc, props, paragraph, base);
|
|
27025
|
+
updateDirection(doc, props, paragraph, base);
|
|
27026
|
+
writeParagraphDecoration(doc, props, paragraph, base);
|
|
27027
|
+
const spacingKeys = [
|
|
27028
|
+
"spacingBeforeTwips",
|
|
27029
|
+
"spacingAfterTwips",
|
|
27030
|
+
"lineSpacingTwips",
|
|
27031
|
+
"lineSpacingRule"
|
|
27032
|
+
];
|
|
27033
|
+
if (!base || spacingKeys.some((key) => paragraph[key] !== base[key]))
|
|
27034
|
+
updateSpacing(doc, props, paragraph, base);
|
|
27035
|
+
const indentKeys = [
|
|
27036
|
+
"indentLeftTwips",
|
|
27037
|
+
"indentRightTwips",
|
|
27038
|
+
"indentStartTwips",
|
|
27039
|
+
"indentEndTwips",
|
|
27040
|
+
"firstLineTwips",
|
|
27041
|
+
"hangingTwips"
|
|
27042
|
+
];
|
|
27043
|
+
if (!base || indentKeys.some((key) => paragraph[key] !== base[key]))
|
|
27044
|
+
updateIndent(doc, props, paragraph, base);
|
|
27045
|
+
}
|
|
27046
|
+
|
|
26761
27047
|
// docx/content-control.ts
|
|
26762
27048
|
var WORD_2012_NS = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
26763
27049
|
var sdtContent = (sdt) => first2(sdt, "sdtContent");
|
|
@@ -27209,20 +27495,20 @@ function rangeKeys(run) {
|
|
|
27209
27495
|
}
|
|
27210
27496
|
|
|
27211
27497
|
// docx/write-comments.ts
|
|
27212
|
-
function
|
|
27498
|
+
function setAttribute5(element3, local, value) {
|
|
27213
27499
|
element3.setAttributeNS(WORD_NS, `w:${local}`, value);
|
|
27214
27500
|
}
|
|
27215
27501
|
function commentRangeStartNode(doc, id) {
|
|
27216
27502
|
const element3 = makeW(doc, "commentRangeStart");
|
|
27217
|
-
|
|
27503
|
+
setAttribute5(element3, "id", id);
|
|
27218
27504
|
return element3;
|
|
27219
27505
|
}
|
|
27220
27506
|
function commentRangeEndNodes(doc, id) {
|
|
27221
27507
|
const end = makeW(doc, "commentRangeEnd");
|
|
27222
|
-
|
|
27508
|
+
setAttribute5(end, "id", id);
|
|
27223
27509
|
const run = makeW(doc, "r");
|
|
27224
27510
|
const reference = makeW(doc, "commentReference");
|
|
27225
|
-
|
|
27511
|
+
setAttribute5(reference, "id", id);
|
|
27226
27512
|
run.appendChild(reference);
|
|
27227
27513
|
return [end, run];
|
|
27228
27514
|
}
|
|
@@ -27278,79 +27564,68 @@ function rangeEdges(runs, ranges) {
|
|
|
27278
27564
|
}
|
|
27279
27565
|
{
|
|
27280
27566
|
const index = last.get(key);
|
|
27281
|
-
(closes.get(index) ?? closes.set(index, []).get(index)).push(edgeFor(key, index));
|
|
27282
|
-
}
|
|
27283
|
-
}
|
|
27284
|
-
return { opens, closes };
|
|
27285
|
-
}
|
|
27286
|
-
|
|
27287
|
-
// docx/
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
|
|
27294
|
-
|
|
27295
|
-
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
|
|
27304
|
-
|
|
27305
|
-
|
|
27306
|
-
|
|
27307
|
-
|
|
27308
|
-
|
|
27309
|
-
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27313
|
-
|
|
27314
|
-
|
|
27315
|
-
|
|
27316
|
-
|
|
27317
|
-
|
|
27318
|
-
|
|
27319
|
-
|
|
27320
|
-
|
|
27321
|
-
|
|
27322
|
-
|
|
27323
|
-
"
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
|
|
27330
|
-
|
|
27331
|
-
"
|
|
27332
|
-
|
|
27333
|
-
"
|
|
27334
|
-
|
|
27335
|
-
|
|
27336
|
-
|
|
27337
|
-
|
|
27338
|
-
|
|
27339
|
-
|
|
27340
|
-
|
|
27341
|
-
|
|
27342
|
-
|
|
27343
|
-
"textAlignment",
|
|
27344
|
-
"textboxTightWrap",
|
|
27345
|
-
"outlineLvl",
|
|
27346
|
-
"divId",
|
|
27347
|
-
"cnfStyle",
|
|
27348
|
-
"rPr",
|
|
27349
|
-
"sectPr",
|
|
27350
|
-
"pPrChange"
|
|
27351
|
-
];
|
|
27352
|
-
function orderParagraphProperties(props) {
|
|
27353
|
-
orderChildren(props, PPR_ORDER);
|
|
27567
|
+
(closes.get(index) ?? closes.set(index, []).get(index)).push(edgeFor(key, index));
|
|
27568
|
+
}
|
|
27569
|
+
}
|
|
27570
|
+
return { opens, closes };
|
|
27571
|
+
}
|
|
27572
|
+
|
|
27573
|
+
// docx/table-grid.ts
|
|
27574
|
+
var spanOf = (cell) => Math.max(1, cell.gridSpan ?? 1);
|
|
27575
|
+
function tableGrid(table) {
|
|
27576
|
+
const columns = table.grid?.length ?? sumSpans(table.rows[0]);
|
|
27577
|
+
if (!columns || !table.rows.length) return void 0;
|
|
27578
|
+
const rows2 = [];
|
|
27579
|
+
const cover = [];
|
|
27580
|
+
for (let row = 0; row < table.rows.length; row++) {
|
|
27581
|
+
const cells = table.rows[row] ?? [];
|
|
27582
|
+
if (!cells.length || sumSpans(cells) !== columns) return void 0;
|
|
27583
|
+
const placed = [];
|
|
27584
|
+
const line3 = new Array(columns);
|
|
27585
|
+
let col = 0;
|
|
27586
|
+
cells.forEach((cell, index) => {
|
|
27587
|
+
const entry = { cell, row, index, col, span: spanOf(cell) };
|
|
27588
|
+
for (let k = 0; k < entry.span; k++) line3[col + k] = entry;
|
|
27589
|
+
col += entry.span;
|
|
27590
|
+
placed.push(entry);
|
|
27591
|
+
});
|
|
27592
|
+
rows2.push(placed);
|
|
27593
|
+
cover.push(line3);
|
|
27594
|
+
}
|
|
27595
|
+
const grid = { columns, rows: rows2, cover };
|
|
27596
|
+
for (const entry of rows2.flat())
|
|
27597
|
+
if (entry.cell.verticalMerge === "continue") {
|
|
27598
|
+
const above = entry.row > 0 ? cover[entry.row - 1]?.[entry.col] : void 0;
|
|
27599
|
+
if (!above || above.col !== entry.col || above.span !== entry.span) return void 0;
|
|
27600
|
+
if (!above.cell.verticalMerge) return void 0;
|
|
27601
|
+
}
|
|
27602
|
+
return grid;
|
|
27603
|
+
}
|
|
27604
|
+
function sumSpans(cells) {
|
|
27605
|
+
return (cells ?? []).reduce((sum, cell) => sum + spanOf(cell), 0);
|
|
27606
|
+
}
|
|
27607
|
+
function mergeOrigin(grid, entry) {
|
|
27608
|
+
let current = entry;
|
|
27609
|
+
while (current.cell.verticalMerge === "continue" && current.row > 0) {
|
|
27610
|
+
const above = grid.cover[current.row - 1]?.[current.col];
|
|
27611
|
+
if (!above) break;
|
|
27612
|
+
current = above;
|
|
27613
|
+
}
|
|
27614
|
+
return current;
|
|
27615
|
+
}
|
|
27616
|
+
function rowSpanOf(grid, entry) {
|
|
27617
|
+
if (entry.cell.verticalMerge !== "restart") return 1;
|
|
27618
|
+
let height = 1;
|
|
27619
|
+
while (grid.cover[entry.row + height]?.[entry.col]?.cell.verticalMerge === "continue") height++;
|
|
27620
|
+
return height;
|
|
27621
|
+
}
|
|
27622
|
+
function continuationsOf(grid, entry) {
|
|
27623
|
+
const found = [];
|
|
27624
|
+
for (let r = entry.row + 1; ; r++) {
|
|
27625
|
+
const below = grid.cover[r]?.[entry.col];
|
|
27626
|
+
if (below?.cell.verticalMerge !== "continue") return found;
|
|
27627
|
+
found.push(below);
|
|
27628
|
+
}
|
|
27354
27629
|
}
|
|
27355
27630
|
|
|
27356
27631
|
// text/text-diff.ts
|
|
@@ -27826,184 +28101,6 @@ function restoreAnnotations(markers, before, after) {
|
|
|
27826
28101
|
}
|
|
27827
28102
|
}
|
|
27828
28103
|
|
|
27829
|
-
// docx/write-paragraph-decoration.ts
|
|
27830
|
-
var SIDES4 = ["top", "left", "bottom", "right", "between"];
|
|
27831
|
-
function wordColor(color) {
|
|
27832
|
-
const hex = /^#?([0-9a-f]{6})$/i.exec(color ?? "")?.[1];
|
|
27833
|
-
return hex ? hex.toUpperCase() : "auto";
|
|
27834
|
-
}
|
|
27835
|
-
function borderElement(doc, name, side) {
|
|
27836
|
-
const element3 = makeW(doc, name);
|
|
27837
|
-
const set = (local, value) => element3.setAttributeNS(WORD_NS, `w:${local}`, value);
|
|
27838
|
-
set("val", side.style ?? "single");
|
|
27839
|
-
if (side.style !== "none" && side.style !== "nil") {
|
|
27840
|
-
set("sz", String(side.sizeEighthPoints ?? 4));
|
|
27841
|
-
set("space", String(side.spacePoints ?? 1));
|
|
27842
|
-
set("color", wordColor(side.color));
|
|
27843
|
-
if (side.themeColor) set("themeColor", side.themeColor);
|
|
27844
|
-
}
|
|
27845
|
-
return element3;
|
|
27846
|
-
}
|
|
27847
|
-
var sameJson = (a, b) => JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
|
|
27848
|
-
function updateShading(doc, props, paragraph, base) {
|
|
27849
|
-
if (base && paragraph.shadingFill === base.shadingFill) return;
|
|
27850
|
-
for (const element3 of children2(props, "shd")) props.removeChild(element3);
|
|
27851
|
-
if (!paragraph.shadingFill) return;
|
|
27852
|
-
const shd = makeW(doc, "shd");
|
|
27853
|
-
shd.setAttributeNS(WORD_NS, "w:val", "clear");
|
|
27854
|
-
shd.setAttributeNS(WORD_NS, "w:color", "auto");
|
|
27855
|
-
shd.setAttributeNS(WORD_NS, "w:fill", wordColor(paragraph.shadingFill));
|
|
27856
|
-
props.appendChild(shd);
|
|
27857
|
-
}
|
|
27858
|
-
function updateBorders(doc, props, paragraph, base) {
|
|
27859
|
-
if (base && sameJson(paragraph.borders, base.borders)) return;
|
|
27860
|
-
for (const element3 of children2(props, "pBdr")) props.removeChild(element3);
|
|
27861
|
-
const borders = paragraph.borders;
|
|
27862
|
-
if (!borders) return;
|
|
27863
|
-
const pBdr = makeW(doc, "pBdr");
|
|
27864
|
-
for (const side of SIDES4) {
|
|
27865
|
-
const value = borders[side];
|
|
27866
|
-
if (value) pBdr.appendChild(borderElement(doc, side, value));
|
|
27867
|
-
}
|
|
27868
|
-
if (pBdr.childNodes.length) props.appendChild(pBdr);
|
|
27869
|
-
}
|
|
27870
|
-
function writeParagraphDecoration(doc, props, paragraph, base) {
|
|
27871
|
-
updateShading(doc, props, paragraph, base);
|
|
27872
|
-
updateBorders(doc, props, paragraph, base);
|
|
27873
|
-
}
|
|
27874
|
-
|
|
27875
|
-
// docx/write-paragraph-properties.ts
|
|
27876
|
-
function setAttribute5(element3, local, value) {
|
|
27877
|
-
element3.setAttributeNS(WORD_NS, `w:${local}`, value);
|
|
27878
|
-
}
|
|
27879
|
-
function setWordValue(element3, local, value) {
|
|
27880
|
-
if (value === void 0) element3.removeAttributeNS(WORD_NS, local);
|
|
27881
|
-
else setAttribute5(element3, local, String(value));
|
|
27882
|
-
}
|
|
27883
|
-
function updateDirection(doc, props, paragraph, base) {
|
|
27884
|
-
if (base && paragraph.direction === base.direction) return;
|
|
27885
|
-
let bidi = first2(props, "bidi");
|
|
27886
|
-
if (paragraph.direction === void 0) {
|
|
27887
|
-
for (const element3 of children2(props, "bidi")) props.removeChild(element3);
|
|
27888
|
-
} else {
|
|
27889
|
-
if (!bidi) {
|
|
27890
|
-
bidi = makeW(doc, "bidi");
|
|
27891
|
-
props.appendChild(bidi);
|
|
27892
|
-
}
|
|
27893
|
-
setAttribute5(bidi, "val", paragraph.direction === "rtl" ? "1" : "0");
|
|
27894
|
-
}
|
|
27895
|
-
}
|
|
27896
|
-
function updateSpacing(doc, props, paragraph, base) {
|
|
27897
|
-
let spacing2 = first2(props, "spacing");
|
|
27898
|
-
if (!spacing2) {
|
|
27899
|
-
spacing2 = makeW(doc, "spacing");
|
|
27900
|
-
props.appendChild(spacing2);
|
|
27901
|
-
}
|
|
27902
|
-
if (!base || paragraph.spacingBeforeTwips !== base.spacingBeforeTwips)
|
|
27903
|
-
setWordValue(spacing2, "before", paragraph.spacingBeforeTwips);
|
|
27904
|
-
if (!base || paragraph.spacingAfterTwips !== base.spacingAfterTwips)
|
|
27905
|
-
setWordValue(spacing2, "after", paragraph.spacingAfterTwips);
|
|
27906
|
-
if (!base || paragraph.lineSpacingTwips !== base.lineSpacingTwips || paragraph.lineSpacingRule !== base.lineSpacingRule) {
|
|
27907
|
-
setWordValue(spacing2, "line", paragraph.lineSpacingTwips);
|
|
27908
|
-
setWordValue(
|
|
27909
|
-
spacing2,
|
|
27910
|
-
"lineRule",
|
|
27911
|
-
paragraph.lineSpacingRule ?? (paragraph.lineSpacingTwips === void 0 ? void 0 : "auto")
|
|
27912
|
-
);
|
|
27913
|
-
}
|
|
27914
|
-
if (!spacing2.attributes.length && !spacing2.childNodes.length) props.removeChild(spacing2);
|
|
27915
|
-
}
|
|
27916
|
-
function updateIndent(doc, props, paragraph, base) {
|
|
27917
|
-
let indent = first2(props, "ind");
|
|
27918
|
-
if (!indent) {
|
|
27919
|
-
indent = makeW(doc, "ind");
|
|
27920
|
-
props.appendChild(indent);
|
|
27921
|
-
}
|
|
27922
|
-
if (!base || paragraph.indentLeftTwips !== base.indentLeftTwips)
|
|
27923
|
-
setWordValue(indent, "left", paragraph.indentLeftTwips);
|
|
27924
|
-
if (!base || paragraph.indentRightTwips !== base.indentRightTwips)
|
|
27925
|
-
setWordValue(indent, "right", paragraph.indentRightTwips);
|
|
27926
|
-
if (!base || paragraph.indentStartTwips !== base.indentStartTwips)
|
|
27927
|
-
setWordValue(indent, "start", paragraph.indentStartTwips);
|
|
27928
|
-
if (!base || paragraph.indentEndTwips !== base.indentEndTwips)
|
|
27929
|
-
setWordValue(indent, "end", paragraph.indentEndTwips);
|
|
27930
|
-
if (!base || paragraph.firstLineTwips !== base.firstLineTwips)
|
|
27931
|
-
setWordValue(indent, "firstLine", paragraph.firstLineTwips);
|
|
27932
|
-
if (!base || paragraph.hangingTwips !== base.hangingTwips)
|
|
27933
|
-
setWordValue(indent, "hanging", paragraph.hangingTwips);
|
|
27934
|
-
if (!indent.attributes.length) props.removeChild(indent);
|
|
27935
|
-
}
|
|
27936
|
-
function updatePageBreakBefore(doc, props, paragraph, base) {
|
|
27937
|
-
if (base && paragraph.pageBreakBefore === base.pageBreakBefore) return;
|
|
27938
|
-
for (const element3 of children2(props, "pageBreakBefore")) props.removeChild(element3);
|
|
27939
|
-
if (paragraph.pageBreakBefore !== void 0) {
|
|
27940
|
-
const element3 = makeW(doc, "pageBreakBefore");
|
|
27941
|
-
if (!paragraph.pageBreakBefore) element3.setAttributeNS(WORD_NS, "w:val", "0");
|
|
27942
|
-
props.appendChild(element3);
|
|
27943
|
-
}
|
|
27944
|
-
}
|
|
27945
|
-
function updateKeepOptions(doc, props, paragraph, base) {
|
|
27946
|
-
for (const key of [
|
|
27947
|
-
"keepNext",
|
|
27948
|
-
"keepLines",
|
|
27949
|
-
"widowControl",
|
|
27950
|
-
"contextualSpacing",
|
|
27951
|
-
"suppressLineNumbers"
|
|
27952
|
-
]) {
|
|
27953
|
-
if (base && paragraph[key] === base[key]) continue;
|
|
27954
|
-
for (const element4 of children2(props, key)) props.removeChild(element4);
|
|
27955
|
-
const value = paragraph[key];
|
|
27956
|
-
if (value === void 0) continue;
|
|
27957
|
-
const element3 = makeW(doc, key);
|
|
27958
|
-
if (!value) setAttribute5(element3, "val", "0");
|
|
27959
|
-
props.appendChild(element3);
|
|
27960
|
-
}
|
|
27961
|
-
}
|
|
27962
|
-
function updateDropCap(doc, props, paragraph, base) {
|
|
27963
|
-
if (base && JSON.stringify(paragraph.dropCap) === JSON.stringify(base.dropCap)) return;
|
|
27964
|
-
let frame2 = first2(props, "framePr");
|
|
27965
|
-
const cap = paragraph.dropCap;
|
|
27966
|
-
if (!cap) {
|
|
27967
|
-
if (frame2) props.removeChild(frame2);
|
|
27968
|
-
return;
|
|
27969
|
-
}
|
|
27970
|
-
if (!frame2) {
|
|
27971
|
-
frame2 = makeW(doc, "framePr");
|
|
27972
|
-
props.appendChild(frame2);
|
|
27973
|
-
setAttribute5(frame2, "wrap", "around");
|
|
27974
|
-
setAttribute5(frame2, "vAnchor", "text");
|
|
27975
|
-
setAttribute5(frame2, "hAnchor", "text");
|
|
27976
|
-
}
|
|
27977
|
-
setAttribute5(frame2, "dropCap", cap.style);
|
|
27978
|
-
setAttribute5(frame2, "lines", String(cap.lines));
|
|
27979
|
-
setWordValue(frame2, "hSpace", cap.distanceTwips);
|
|
27980
|
-
}
|
|
27981
|
-
function writeParagraphProperties(doc, props, paragraph, base) {
|
|
27982
|
-
updatePageBreakBefore(doc, props, paragraph, base);
|
|
27983
|
-
updateKeepOptions(doc, props, paragraph, base);
|
|
27984
|
-
updateDropCap(doc, props, paragraph, base);
|
|
27985
|
-
updateDirection(doc, props, paragraph, base);
|
|
27986
|
-
writeParagraphDecoration(doc, props, paragraph, base);
|
|
27987
|
-
const spacingKeys = [
|
|
27988
|
-
"spacingBeforeTwips",
|
|
27989
|
-
"spacingAfterTwips",
|
|
27990
|
-
"lineSpacingTwips",
|
|
27991
|
-
"lineSpacingRule"
|
|
27992
|
-
];
|
|
27993
|
-
if (!base || spacingKeys.some((key) => paragraph[key] !== base[key]))
|
|
27994
|
-
updateSpacing(doc, props, paragraph, base);
|
|
27995
|
-
const indentKeys = [
|
|
27996
|
-
"indentLeftTwips",
|
|
27997
|
-
"indentRightTwips",
|
|
27998
|
-
"indentStartTwips",
|
|
27999
|
-
"indentEndTwips",
|
|
28000
|
-
"firstLineTwips",
|
|
28001
|
-
"hangingTwips"
|
|
28002
|
-
];
|
|
28003
|
-
if (!base || indentKeys.some((key) => paragraph[key] !== base[key]))
|
|
28004
|
-
updateIndent(doc, props, paragraph, base);
|
|
28005
|
-
}
|
|
28006
|
-
|
|
28007
28104
|
// docx/bookmarks.ts
|
|
28008
28105
|
function reconcileBookmarks(doc, starts, ends, names, baseNames, nextId) {
|
|
28009
28106
|
const removedIds = /* @__PURE__ */ new Set();
|
|
@@ -28559,6 +28656,10 @@ function parseDirectParagraphProperties(props) {
|
|
|
28559
28656
|
const line3 = signedTwipValue2(getW(spacing2, "line"));
|
|
28560
28657
|
if (before !== void 0) paragraph.spacingBeforeTwips = before;
|
|
28561
28658
|
if (after !== void 0) paragraph.spacingAfterTwips = after;
|
|
28659
|
+
const beforeAuto = parseOnOff(getW(spacing2, "beforeAutospacing"));
|
|
28660
|
+
const afterAuto = parseOnOff(getW(spacing2, "afterAutospacing"));
|
|
28661
|
+
if (beforeAuto !== void 0) paragraph.spacingBeforeAuto = beforeAuto;
|
|
28662
|
+
if (afterAuto !== void 0) paragraph.spacingAfterAuto = afterAuto;
|
|
28562
28663
|
if (line3 !== void 0) {
|
|
28563
28664
|
paragraph.lineSpacingTwips = line3;
|
|
28564
28665
|
}
|
|
@@ -32198,6 +32299,7 @@ var DirtyState = class {
|
|
|
32198
32299
|
this.changed(dirty);
|
|
32199
32300
|
}
|
|
32200
32301
|
};
|
|
32302
|
+
var RESTRUCTURE_TABLE_META = "docx-restructure-table";
|
|
32201
32303
|
function tableStructureGuardPlugin() {
|
|
32202
32304
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
32203
32305
|
const tables = (node) => {
|
|
@@ -32237,7 +32339,8 @@ function tableStructureGuardPlugin() {
|
|
|
32237
32339
|
};
|
|
32238
32340
|
return new prosemirrorState.Plugin({
|
|
32239
32341
|
filterTransaction(transaction, state) {
|
|
32240
|
-
if (!transaction.docChanged) return true;
|
|
32342
|
+
if (!transaction.docChanged || transaction.getMeta(RESTRUCTURE_TABLE_META)) return true;
|
|
32343
|
+
if (transaction.getMeta("history$")) return true;
|
|
32241
32344
|
const after = tables(transaction.doc);
|
|
32242
32345
|
for (const [id, before] of tables(state.doc)) {
|
|
32243
32346
|
if (before.attrs.structureEditable !== false) continue;
|
|
@@ -32249,6 +32352,345 @@ function tableStructureGuardPlugin() {
|
|
|
32249
32352
|
}
|
|
32250
32353
|
});
|
|
32251
32354
|
}
|
|
32355
|
+
|
|
32356
|
+
// docx/table-structure-cells.ts
|
|
32357
|
+
var PARAGRAPH_FORMAT_KEYS2 = [
|
|
32358
|
+
"style",
|
|
32359
|
+
"align",
|
|
32360
|
+
"justification",
|
|
32361
|
+
"direction",
|
|
32362
|
+
"spacingBeforeTwips",
|
|
32363
|
+
"spacingAfterTwips",
|
|
32364
|
+
"lineSpacingTwips",
|
|
32365
|
+
"lineSpacingRule",
|
|
32366
|
+
"indentLeftTwips",
|
|
32367
|
+
"indentRightTwips",
|
|
32368
|
+
"indentStartTwips",
|
|
32369
|
+
"indentEndTwips",
|
|
32370
|
+
"firstLineTwips",
|
|
32371
|
+
"hangingTwips"
|
|
32372
|
+
];
|
|
32373
|
+
function emptyParagraph(newId, like) {
|
|
32374
|
+
const paragraph = { type: "paragraph", id: newId(), runs: [{ text: "" }] };
|
|
32375
|
+
if (like) {
|
|
32376
|
+
const source = like;
|
|
32377
|
+
const target = paragraph;
|
|
32378
|
+
for (const key of PARAGRAPH_FORMAT_KEYS2)
|
|
32379
|
+
if (source[key] !== void 0) target[key] = source[key];
|
|
32380
|
+
}
|
|
32381
|
+
return paragraph;
|
|
32382
|
+
}
|
|
32383
|
+
function emptyCell(newId, like, span, width) {
|
|
32384
|
+
const cell = { paragraphs: [emptyParagraph(newId, like?.paragraphs[0])] };
|
|
32385
|
+
if (span > 1) cell.gridSpan = span;
|
|
32386
|
+
if (width !== void 0) cell.widthTwips = width;
|
|
32387
|
+
if (like) {
|
|
32388
|
+
if (like.verticalAlign) cell.verticalAlign = like.verticalAlign;
|
|
32389
|
+
if (like.shadingFill) cell.shadingFill = like.shadingFill;
|
|
32390
|
+
if (like.shadingThemeFill) cell.shadingThemeFill = structuredClone(like.shadingThemeFill);
|
|
32391
|
+
if (like.borders) cell.borders = structuredClone(like.borders);
|
|
32392
|
+
if (like.margins) cell.margins = structuredClone(like.margins);
|
|
32393
|
+
}
|
|
32394
|
+
return cell;
|
|
32395
|
+
}
|
|
32396
|
+
function copyTable(table) {
|
|
32397
|
+
return structuredClone(table);
|
|
32398
|
+
}
|
|
32399
|
+
function copiedRowProperties(table, from) {
|
|
32400
|
+
const { contentControl: _control, ...properties3 } = table.rowProperties?.[from] ?? {};
|
|
32401
|
+
return structuredClone(properties3);
|
|
32402
|
+
}
|
|
32403
|
+
function paddedRowProperties(table) {
|
|
32404
|
+
return Array.from(
|
|
32405
|
+
{ length: table.rows.length },
|
|
32406
|
+
(_, index) => table.rowProperties?.[index] ?? {}
|
|
32407
|
+
);
|
|
32408
|
+
}
|
|
32409
|
+
function storeRowProperties(table, properties3) {
|
|
32410
|
+
if (properties3.some((entry) => Object.keys(entry).length)) table.rowProperties = properties3;
|
|
32411
|
+
else delete table.rowProperties;
|
|
32412
|
+
}
|
|
32413
|
+
|
|
32414
|
+
// docx/table-structure.ts
|
|
32415
|
+
function normalizeMerges(table) {
|
|
32416
|
+
table.rows.forEach(
|
|
32417
|
+
(row, r) => row.forEach((cell, index) => {
|
|
32418
|
+
if (cell.verticalMerge !== "restart") return;
|
|
32419
|
+
const grid = tableGrid(table);
|
|
32420
|
+
const entry = grid?.rows[r]?.[index];
|
|
32421
|
+
if (grid && entry && !continuationsOf(grid, entry).length) delete cell.verticalMerge;
|
|
32422
|
+
})
|
|
32423
|
+
);
|
|
32424
|
+
}
|
|
32425
|
+
function insertRow(table, row, where, newId) {
|
|
32426
|
+
const grid = tableGrid(table);
|
|
32427
|
+
const reference = grid?.rows[row];
|
|
32428
|
+
if (!grid || !reference) return void 0;
|
|
32429
|
+
const at = where === "above" ? row : row + 1;
|
|
32430
|
+
const next = copyTable(table);
|
|
32431
|
+
const added = reference.map((entry) => {
|
|
32432
|
+
const cell = emptyCell(newId, entry.cell, entry.span, entry.cell.widthTwips);
|
|
32433
|
+
const following = grid.cover[at]?.[entry.col];
|
|
32434
|
+
if (following?.cell.verticalMerge === "continue" && following.span === entry.span)
|
|
32435
|
+
cell.verticalMerge = "continue";
|
|
32436
|
+
return cell;
|
|
32437
|
+
});
|
|
32438
|
+
const properties3 = paddedRowProperties(table);
|
|
32439
|
+
next.rows.splice(at, 0, added);
|
|
32440
|
+
properties3.splice(at, 0, copiedRowProperties(table, row));
|
|
32441
|
+
storeRowProperties(next, properties3);
|
|
32442
|
+
return next;
|
|
32443
|
+
}
|
|
32444
|
+
function deleteRow(table, row) {
|
|
32445
|
+
const grid = tableGrid(table);
|
|
32446
|
+
const cells = grid?.rows[row];
|
|
32447
|
+
if (!grid || !cells || table.rows.length < 2) return void 0;
|
|
32448
|
+
const next = copyTable(table);
|
|
32449
|
+
for (const entry of cells) {
|
|
32450
|
+
if (entry.cell.verticalMerge !== "restart") continue;
|
|
32451
|
+
const [first3] = continuationsOf(grid, entry);
|
|
32452
|
+
const promoted = first3 && next.rows[first3.row]?.[first3.index];
|
|
32453
|
+
if (promoted) promoted.verticalMerge = "restart";
|
|
32454
|
+
}
|
|
32455
|
+
const properties3 = paddedRowProperties(table);
|
|
32456
|
+
next.rows.splice(row, 1);
|
|
32457
|
+
properties3.splice(row, 1);
|
|
32458
|
+
storeRowProperties(next, properties3);
|
|
32459
|
+
normalizeMerges(next);
|
|
32460
|
+
return next;
|
|
32461
|
+
}
|
|
32462
|
+
var widthOf = (table, col) => table.grid?.[col];
|
|
32463
|
+
function insertColumn(table, col, where, newId) {
|
|
32464
|
+
const grid = tableGrid(table);
|
|
32465
|
+
if (!grid || col < 0 || col >= grid.columns) return void 0;
|
|
32466
|
+
const next = copyTable(table);
|
|
32467
|
+
const width = widthOf(table, col);
|
|
32468
|
+
for (let r = 0; r < grid.rows.length; r++) {
|
|
32469
|
+
const anchor = grid.cover[r]?.[col];
|
|
32470
|
+
const target = next.rows[r];
|
|
32471
|
+
if (!anchor || !target) return void 0;
|
|
32472
|
+
if (where === "left" && (anchor.col !== col || anchor.span > 1)) return void 0;
|
|
32473
|
+
const created = emptyCell(
|
|
32474
|
+
newId,
|
|
32475
|
+
anchor.cell,
|
|
32476
|
+
1,
|
|
32477
|
+
anchor.cell.widthTwips !== void 0 ? width : void 0
|
|
32478
|
+
);
|
|
32479
|
+
delete created.verticalMerge;
|
|
32480
|
+
target.splice(anchor.index + (where === "right" ? 1 : 0), 0, created);
|
|
32481
|
+
}
|
|
32482
|
+
if (next.grid && width !== void 0)
|
|
32483
|
+
next.grid.splice(col + (where === "right" ? 1 : 0), 0, width);
|
|
32484
|
+
return tableGrid(next) ? next : void 0;
|
|
32485
|
+
}
|
|
32486
|
+
function deleteColumns(table, first3, last) {
|
|
32487
|
+
const grid = tableGrid(table);
|
|
32488
|
+
if (!grid || first3 < 0 || last >= grid.columns || first3 > last) return void 0;
|
|
32489
|
+
if (last - first3 + 1 >= grid.columns) return void 0;
|
|
32490
|
+
const next = copyTable(table);
|
|
32491
|
+
for (let r = 0; r < grid.rows.length; r++) {
|
|
32492
|
+
const cells = grid.rows[r] ?? [];
|
|
32493
|
+
const inside = cells.filter(
|
|
32494
|
+
(entry) => entry.col <= last && entry.col + entry.span - 1 >= first3
|
|
32495
|
+
);
|
|
32496
|
+
if (inside.some((entry) => entry.col < first3 || entry.col + entry.span - 1 > last))
|
|
32497
|
+
return void 0;
|
|
32498
|
+
const kept = new Set(inside.map((entry) => entry.index));
|
|
32499
|
+
const target = next.rows[r];
|
|
32500
|
+
if (!target) return void 0;
|
|
32501
|
+
next.rows[r] = target.filter((_, index) => !kept.has(index));
|
|
32502
|
+
}
|
|
32503
|
+
if (next.grid) next.grid.splice(first3, last - first3 + 1);
|
|
32504
|
+
normalizeMerges(next);
|
|
32505
|
+
return tableGrid(next) ? next : void 0;
|
|
32506
|
+
}
|
|
32507
|
+
|
|
32508
|
+
// docx/table-structure-merge.ts
|
|
32509
|
+
var isEmpty = (paragraph) => paragraph.runs.every((run) => !run.text && !run.contentControl);
|
|
32510
|
+
var hasContent2 = (cell) => !(cell.paragraphs.length === 1 && cell.paragraphs.every(isEmpty)) || Boolean(cell.sourceBlocks?.some((block) => block.type === "table")) || Boolean(cell.nestedTables?.length);
|
|
32511
|
+
var sumWidths = (table, from, to) => table.grid ? table.grid.slice(from, to + 1).reduce((sum, w) => sum + w, 0) : void 0;
|
|
32512
|
+
function cellsWithin(grid, rect3) {
|
|
32513
|
+
const found = /* @__PURE__ */ new Set();
|
|
32514
|
+
for (let r = rect3.firstRow; r <= rect3.lastRow; r++)
|
|
32515
|
+
for (let c = rect3.firstCol; c <= rect3.lastCol; c++) {
|
|
32516
|
+
const entry = grid.cover[r]?.[c];
|
|
32517
|
+
if (!entry) return void 0;
|
|
32518
|
+
found.add(entry);
|
|
32519
|
+
}
|
|
32520
|
+
for (const entry of found) {
|
|
32521
|
+
if (entry.col < rect3.firstCol || entry.col + entry.span - 1 > rect3.lastCol) return void 0;
|
|
32522
|
+
const origin = entry.cell.verticalMerge === "continue" ? void 0 : entry;
|
|
32523
|
+
if (origin) {
|
|
32524
|
+
if (origin.row + rowSpanOf(grid, origin) - 1 > rect3.lastRow) return void 0;
|
|
32525
|
+
} else if (!found.has(grid.cover[entry.row - 1]?.[entry.col])) return void 0;
|
|
32526
|
+
}
|
|
32527
|
+
return [...found];
|
|
32528
|
+
}
|
|
32529
|
+
function closeRect(table, rect3) {
|
|
32530
|
+
const grid = tableGrid(table);
|
|
32531
|
+
if (!grid) return void 0;
|
|
32532
|
+
let current = { ...rect3 };
|
|
32533
|
+
for (let pass = 0; pass <= grid.columns + grid.rows.length; pass++) {
|
|
32534
|
+
let next = current;
|
|
32535
|
+
for (let r = current.firstRow; r <= current.lastRow; r++)
|
|
32536
|
+
for (let c = current.firstCol; c <= current.lastCol; c++) {
|
|
32537
|
+
const entry = grid.cover[r]?.[c];
|
|
32538
|
+
if (!entry) return void 0;
|
|
32539
|
+
const origin = mergeOrigin(grid, entry);
|
|
32540
|
+
next = {
|
|
32541
|
+
firstRow: Math.min(next.firstRow, origin.row),
|
|
32542
|
+
lastRow: Math.max(next.lastRow, origin.row + rowSpanOf(grid, origin) - 1),
|
|
32543
|
+
firstCol: Math.min(next.firstCol, origin.col),
|
|
32544
|
+
lastCol: Math.max(next.lastCol, origin.col + origin.span - 1)
|
|
32545
|
+
};
|
|
32546
|
+
}
|
|
32547
|
+
if (JSON.stringify(next) === JSON.stringify(current)) return current;
|
|
32548
|
+
current = next;
|
|
32549
|
+
}
|
|
32550
|
+
return current;
|
|
32551
|
+
}
|
|
32552
|
+
function mergeCells(table, rect3, newId) {
|
|
32553
|
+
const grid = tableGrid(table);
|
|
32554
|
+
if (!grid) return void 0;
|
|
32555
|
+
const within2 = cellsWithin(grid, rect3);
|
|
32556
|
+
if (!within2) return void 0;
|
|
32557
|
+
const origins = within2.filter((entry) => entry.cell.verticalMerge !== "continue").sort((a, b) => a.row - b.row || a.col - b.col);
|
|
32558
|
+
const [head, ...absorbed] = origins;
|
|
32559
|
+
if (!head || !absorbed.length) return void 0;
|
|
32560
|
+
if (absorbed.some((entry) => entry.cell.sourceBlocks?.length || entry.cell.nestedTables?.length))
|
|
32561
|
+
return void 0;
|
|
32562
|
+
const next = copyTable(table);
|
|
32563
|
+
const keep = next.rows[head.row]?.[head.index];
|
|
32564
|
+
if (!keep) return void 0;
|
|
32565
|
+
const paragraphs = [...keep.paragraphs];
|
|
32566
|
+
const extra = absorbed.flatMap(
|
|
32567
|
+
(entry) => hasContent2(entry.cell) ? entry.cell.paragraphs.filter((p) => !isEmpty(p)) : []
|
|
32568
|
+
);
|
|
32569
|
+
if (extra.length) {
|
|
32570
|
+
const lead = paragraphs.length === 1 && paragraphs.every(isEmpty) && !hasContent2(keep);
|
|
32571
|
+
keep.paragraphs = lead ? structuredClone(extra) : [...paragraphs, ...structuredClone(extra)];
|
|
32572
|
+
if (lead) keep.paragraphs = [...structuredClone(extra)];
|
|
32573
|
+
}
|
|
32574
|
+
const width = rect3.lastCol - rect3.firstCol + 1;
|
|
32575
|
+
if (width > 1) keep.gridSpan = width;
|
|
32576
|
+
else delete keep.gridSpan;
|
|
32577
|
+
const total = sumWidths(table, rect3.firstCol, rect3.lastCol);
|
|
32578
|
+
if (keep.widthTwips !== void 0 && total !== void 0) keep.widthTwips = total;
|
|
32579
|
+
if (rect3.lastRow > rect3.firstRow) keep.verticalMerge = "restart";
|
|
32580
|
+
else delete keep.verticalMerge;
|
|
32581
|
+
for (let r = rect3.firstRow; r <= rect3.lastRow; r++) {
|
|
32582
|
+
const row = next.rows[r];
|
|
32583
|
+
if (!row) continue;
|
|
32584
|
+
const source = grid.rows[r] ?? [];
|
|
32585
|
+
const inside = source.filter(
|
|
32586
|
+
(entry) => entry.col >= rect3.firstCol && entry.col + entry.span - 1 <= rect3.lastCol
|
|
32587
|
+
);
|
|
32588
|
+
const index = inside[0]?.index ?? 0;
|
|
32589
|
+
const replacement = r === rect3.firstRow ? keep : Object.assign(emptyCell(newId, keep, width, keep.widthTwips), {
|
|
32590
|
+
verticalMerge: "continue"
|
|
32591
|
+
});
|
|
32592
|
+
row.splice(index, inside.length, replacement);
|
|
32593
|
+
}
|
|
32594
|
+
normalizeMerges(next);
|
|
32595
|
+
return next;
|
|
32596
|
+
}
|
|
32597
|
+
function distribute(span, parts) {
|
|
32598
|
+
const base = Math.floor(span / parts);
|
|
32599
|
+
const rest = span % parts;
|
|
32600
|
+
return Array.from({ length: parts }, (_, i) => base + (i < rest ? 1 : 0));
|
|
32601
|
+
}
|
|
32602
|
+
function splitCell(table, row, index, rows2, columns, newId) {
|
|
32603
|
+
const grid = tableGrid(table);
|
|
32604
|
+
const origin = grid?.rows[row]?.[index];
|
|
32605
|
+
if (!grid || !origin || origin.cell.verticalMerge === "continue") return void 0;
|
|
32606
|
+
if (rows2 < 1 || columns < 1 || rows2 === 1 && columns === 1) return void 0;
|
|
32607
|
+
const height = rowSpanOf(grid, origin);
|
|
32608
|
+
if (height > 1 && rows2 !== height && !(rows2 === 1 && columns === 1)) return void 0;
|
|
32609
|
+
if (origin.span > 1 && columns !== origin.span && columns !== 1) return void 0;
|
|
32610
|
+
if (height > 1 && rows2 === 1 && columns > 1) return void 0;
|
|
32611
|
+
const next = copyTable(table);
|
|
32612
|
+
const members = [origin, ...continuationsOf(grid, origin)];
|
|
32613
|
+
const widths = table.grid ? table.grid.slice(origin.col, origin.col + origin.span) : [];
|
|
32614
|
+
const total = widths.reduce((sum, w) => sum + w, 0);
|
|
32615
|
+
const grow = columns > origin.span;
|
|
32616
|
+
const spans = grow ? Array.from({ length: columns }, () => 1) : distribute(origin.span, columns);
|
|
32617
|
+
const partWidth = (i) => {
|
|
32618
|
+
if (origin.cell.widthTwips === void 0 && !total) return void 0;
|
|
32619
|
+
if (grow) return Math.floor(total / columns);
|
|
32620
|
+
let from = origin.col + spans.slice(0, i).reduce((s, v) => s + v, 0);
|
|
32621
|
+
return sumWidths(table, from, from + (spans[i] ?? 1) - 1);
|
|
32622
|
+
};
|
|
32623
|
+
if (grow && next.grid) {
|
|
32624
|
+
const each = Array.from(
|
|
32625
|
+
{ length: columns },
|
|
32626
|
+
(_, i) => i === columns - 1 ? total - Math.floor(total / columns) * (columns - 1) : Math.floor(total / columns)
|
|
32627
|
+
);
|
|
32628
|
+
next.grid.splice(origin.col, 1, ...each);
|
|
32629
|
+
}
|
|
32630
|
+
if (grow)
|
|
32631
|
+
grid.rows.forEach((cells, r) => {
|
|
32632
|
+
if (members.some((m) => m.row === r)) return;
|
|
32633
|
+
const over = cells.find((e) => e.col <= origin.col && origin.col < e.col + e.span);
|
|
32634
|
+
const cell = over && next.rows[r]?.[over.index];
|
|
32635
|
+
if (cell) cell.gridSpan = (cell.gridSpan ?? 1) + columns - 1;
|
|
32636
|
+
});
|
|
32637
|
+
[...members].reverse().forEach((member) => {
|
|
32638
|
+
const target = next.rows[member.row];
|
|
32639
|
+
const cell = target?.[member.index];
|
|
32640
|
+
if (!target || !cell) return;
|
|
32641
|
+
const parts = spans.map((span, i) => {
|
|
32642
|
+
if (i === 0) return cell;
|
|
32643
|
+
const part = emptyCell(newId, cell, span, partWidth(i));
|
|
32644
|
+
if (cell.verticalMerge) part.verticalMerge = cell.verticalMerge;
|
|
32645
|
+
return part;
|
|
32646
|
+
});
|
|
32647
|
+
const own2 = member === origin ? [...cell.paragraphs] : [];
|
|
32648
|
+
if (rows2 === 1 && own2.length > 1)
|
|
32649
|
+
parts.forEach((part, i) => {
|
|
32650
|
+
const mine = i === parts.length - 1 ? own2.slice(i) : own2.slice(i, i + 1);
|
|
32651
|
+
if (mine.length) part.paragraphs = mine;
|
|
32652
|
+
});
|
|
32653
|
+
const first3 = parts[0];
|
|
32654
|
+
if (first3) {
|
|
32655
|
+
if ((spans[0] ?? 1) > 1) first3.gridSpan = spans[0] ?? 1;
|
|
32656
|
+
else delete first3.gridSpan;
|
|
32657
|
+
const w = partWidth(0);
|
|
32658
|
+
if (w !== void 0 && first3.widthTwips !== void 0) first3.widthTwips = w;
|
|
32659
|
+
}
|
|
32660
|
+
target.splice(member.index, 1, ...parts);
|
|
32661
|
+
});
|
|
32662
|
+
if (rows2 > 1) {
|
|
32663
|
+
if (height === 1) stackRows(next, grid, origin, rows2, columns, newId);
|
|
32664
|
+
else for (const member of members) uncouple(next, member, columns);
|
|
32665
|
+
}
|
|
32666
|
+
normalizeMerges(next);
|
|
32667
|
+
return next;
|
|
32668
|
+
}
|
|
32669
|
+
function uncouple(next, member, columns) {
|
|
32670
|
+
const row = next.rows[member.row];
|
|
32671
|
+
if (!row) return;
|
|
32672
|
+
for (let k = 0; k < columns; k++) delete row[member.index + k]?.verticalMerge;
|
|
32673
|
+
}
|
|
32674
|
+
function stackRows(next, grid, origin, rows2, columns, newId) {
|
|
32675
|
+
const source = next.rows[origin.row] ?? [];
|
|
32676
|
+
const splitStart = origin.index;
|
|
32677
|
+
const properties3 = paddedRowProperties(next);
|
|
32678
|
+
for (let step = 1; step < rows2; step++) {
|
|
32679
|
+
const added = source.map((cell, i) => {
|
|
32680
|
+
const own2 = i >= splitStart && i < splitStart + columns;
|
|
32681
|
+
const copy = emptyCell(newId, cell, cell.gridSpan ?? 1, cell.widthTwips);
|
|
32682
|
+
if (!own2) copy.verticalMerge = "continue";
|
|
32683
|
+
return copy;
|
|
32684
|
+
});
|
|
32685
|
+
next.rows.splice(origin.row + step, 0, added);
|
|
32686
|
+
properties3.splice(origin.row + step, 0, copiedRowProperties(next, origin.row));
|
|
32687
|
+
}
|
|
32688
|
+
source.forEach((cell, i) => {
|
|
32689
|
+
if (i >= splitStart && i < splitStart + columns) return;
|
|
32690
|
+
if (!cell.verticalMerge) cell.verticalMerge = "restart";
|
|
32691
|
+
});
|
|
32692
|
+
storeRowProperties(next, properties3);
|
|
32693
|
+
}
|
|
32252
32694
|
var SectionPartsStep = class _SectionPartsStep extends prosemirrorTransform.DocAttrStep {
|
|
32253
32695
|
constructor(value) {
|
|
32254
32696
|
super("sectionParts", value);
|
|
@@ -33494,6 +33936,8 @@ var RIBBON_ACTION_IDS = [
|
|
|
33494
33936
|
"insert-column-left",
|
|
33495
33937
|
"insert-column-right",
|
|
33496
33938
|
"delete-column",
|
|
33939
|
+
"merge-cells",
|
|
33940
|
+
"split-cells",
|
|
33497
33941
|
"delete-table",
|
|
33498
33942
|
"table-properties"
|
|
33499
33943
|
];
|
|
@@ -33689,6 +34133,8 @@ var RIBBON_ACTION_LABELS = {
|
|
|
33689
34133
|
"insert-column-left": "Insert column left",
|
|
33690
34134
|
"insert-column-right": "Insert column right",
|
|
33691
34135
|
"delete-column": "Delete column",
|
|
34136
|
+
"merge-cells": "Merge cells",
|
|
34137
|
+
"split-cells": "Split cells",
|
|
33692
34138
|
"delete-table": "Delete table",
|
|
33693
34139
|
"table-properties": "Table properties"
|
|
33694
34140
|
};
|
|
@@ -34673,6 +35119,7 @@ exports.NotePartsStep = NotePartsStep;
|
|
|
34673
35119
|
exports.PAGE_GAP = PAGE_GAP;
|
|
34674
35120
|
exports.PARAGRAPH_KEEP_KEYS = PARAGRAPH_KEEP_KEYS;
|
|
34675
35121
|
exports.REMOTE_TRANSACTION_META = REMOTE_TRANSACTION_META;
|
|
35122
|
+
exports.RESTRUCTURE_TABLE_META = RESTRUCTURE_TABLE_META;
|
|
34676
35123
|
exports.RIBBON_ACTION_IDS = RIBBON_ACTION_IDS;
|
|
34677
35124
|
exports.RIBBON_ACTION_LABELS = RIBBON_ACTION_LABELS;
|
|
34678
35125
|
exports.SectionPartsStep = SectionPartsStep;
|
|
@@ -34702,6 +35149,7 @@ exports.chartNodeSpec = chartNodeSpec;
|
|
|
34702
35149
|
exports.chooseDate = chooseDate;
|
|
34703
35150
|
exports.chooseListItem = chooseListItem;
|
|
34704
35151
|
exports.clearDirectRunFormatting = clearDirectRunFormatting;
|
|
35152
|
+
exports.closeRect = closeRect;
|
|
34705
35153
|
exports.collectRevisionRanges = collectRevisionRanges;
|
|
34706
35154
|
exports.commentAnchors = commentAnchors;
|
|
34707
35155
|
exports.commentHistoryAttributes = commentHistoryAttributes;
|
|
@@ -34710,6 +35158,7 @@ exports.commentIdsFromMarks = commentIdsFromMarks;
|
|
|
34710
35158
|
exports.commentIdsFromNode = commentIdsFromNode;
|
|
34711
35159
|
exports.commentThreadsFromDoc = commentThreadsFromDoc;
|
|
34712
35160
|
exports.contentControlPlugin = contentControlPlugin;
|
|
35161
|
+
exports.continuationsOf = continuationsOf;
|
|
34713
35162
|
exports.controlAt = controlAt;
|
|
34714
35163
|
exports.controlAtSelection = controlAtSelection;
|
|
34715
35164
|
exports.controlFromData = controlFromData;
|
|
@@ -34722,8 +35171,10 @@ exports.createToggleFormat = createToggleFormat;
|
|
|
34722
35171
|
exports.cssBorderSide = cssBorderSide;
|
|
34723
35172
|
exports.darkTheme = darkTheme;
|
|
34724
35173
|
exports.deleteAroundMarkers = deleteAroundMarkers;
|
|
35174
|
+
exports.deleteColumns = deleteColumns;
|
|
34725
35175
|
exports.deleteComment = deleteComment;
|
|
34726
35176
|
exports.deleteFieldSelection = deleteFieldSelection;
|
|
35177
|
+
exports.deleteRow = deleteRow;
|
|
34727
35178
|
exports.deleteToPlaceholder = deleteToPlaceholder;
|
|
34728
35179
|
exports.dispatchIsolatedCommand = dispatchIsolatedCommand;
|
|
34729
35180
|
exports.documentWordCount = documentWordCount;
|
|
@@ -34753,11 +35204,14 @@ exports.goToPreviousChange = goToPreviousChange;
|
|
|
34753
35204
|
exports.hardBreakNodeSpec = hardBreakNodeSpec;
|
|
34754
35205
|
exports.hasAnyChange = hasAnyChange;
|
|
34755
35206
|
exports.hasChangeAtCursor = hasChangeAtCursor;
|
|
35207
|
+
exports.hasContent = hasContent2;
|
|
34756
35208
|
exports.hasNoteRevisions = hasNoteRevisions;
|
|
34757
35209
|
exports.imageNodeSpec = imageNodeSpec;
|
|
34758
35210
|
exports.inlineNodeRun = inlineNodeRun;
|
|
34759
35211
|
exports.insertChartImage = insertChartImage;
|
|
35212
|
+
exports.insertColumn = insertColumn;
|
|
34760
35213
|
exports.insertContentControl = insertContentControl;
|
|
35214
|
+
exports.insertRow = insertRow;
|
|
34761
35215
|
exports.insertWordHardBreak = insertWordHardBreak;
|
|
34762
35216
|
exports.insertedTextMarks = insertedTextMarks;
|
|
34763
35217
|
exports.isFormsProtected = isFormsProtected;
|
|
@@ -34771,10 +35225,13 @@ exports.linkFromMarks = linkFromMarks;
|
|
|
34771
35225
|
exports.linkMarkSpec = linkMarkSpec;
|
|
34772
35226
|
exports.markSpecs = markSpecs;
|
|
34773
35227
|
exports.marksForRun = marksForRun;
|
|
35228
|
+
exports.mergeCells = mergeCells;
|
|
35229
|
+
exports.mergeOrigin = mergeOrigin;
|
|
34774
35230
|
exports.moveName = moveName;
|
|
34775
35231
|
exports.newControlId = newControlId;
|
|
34776
35232
|
exports.nodeChart = nodeChart;
|
|
34777
35233
|
exports.nodeNumbering = nodeNumbering;
|
|
35234
|
+
exports.normalizeMerges = normalizeMerges;
|
|
34778
35235
|
exports.normalizeRibbonActions = normalizeRibbonActions;
|
|
34779
35236
|
exports.normalizeThemeMode = normalizeThemeMode;
|
|
34780
35237
|
exports.notePartsJson = notePartsJson;
|
|
@@ -34811,6 +35268,7 @@ exports.restoreNoteParts = restoreNoteParts;
|
|
|
34811
35268
|
exports.restoreSectionParts = restoreSectionParts;
|
|
34812
35269
|
exports.reviewMarks = reviewMarks;
|
|
34813
35270
|
exports.ribbonActionIdForLabel = ribbonActionIdForLabel;
|
|
35271
|
+
exports.rowSpanOf = rowSpanOf;
|
|
34814
35272
|
exports.runPropertiesMark = runPropertiesMark;
|
|
34815
35273
|
exports.runToInlineNodes = runToInlineNodes;
|
|
34816
35274
|
exports.sameJson = sameJson2;
|
|
@@ -34820,12 +35278,15 @@ exports.selectFormDropDownAt = selectFormDropDownAt;
|
|
|
34820
35278
|
exports.selectedChart = selectedChart;
|
|
34821
35279
|
exports.setCommentThreads = setCommentThreads;
|
|
34822
35280
|
exports.setReviewRecordingPreferences = setReviewRecordingPreferences;
|
|
35281
|
+
exports.spanOf = spanOf;
|
|
35282
|
+
exports.splitCell = splitCell;
|
|
34823
35283
|
exports.staysInFormFields = staysInFormFields;
|
|
34824
35284
|
exports.svgMarkupSpec = svgMarkupSpec;
|
|
34825
35285
|
exports.swatchColor = swatchColor;
|
|
34826
35286
|
exports.symbolFontPlugin = symbolFontPlugin;
|
|
34827
35287
|
exports.tableCellStyle = tableCellStyle;
|
|
34828
35288
|
exports.tableControlSpans = tableControlSpans;
|
|
35289
|
+
exports.tableGrid = tableGrid;
|
|
34829
35290
|
exports.tableStructureGuardPlugin = tableStructureGuardPlugin;
|
|
34830
35291
|
exports.tableStyle = tableStyle;
|
|
34831
35292
|
exports.themeDrawing = themeDrawing;
|