ooxml-core 1.50.2 → 1.51.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.
Files changed (361) hide show
  1. package/README.md +11 -0
  2. package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
  3. package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
  4. package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
  5. package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
  6. package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
  7. package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
  8. package/dist/automation/index.cjs +5806 -4494
  9. package/dist/automation/index.mjs +5806 -4494
  10. package/dist/chunk-25IJEN7R.cjs +36 -0
  11. package/dist/chunk-25JN3ZQM.mjs +58 -0
  12. package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
  13. package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
  14. package/dist/chunk-554UZLPS.mjs +237 -0
  15. package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
  16. package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
  17. package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
  18. package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
  19. package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
  20. package/dist/chunk-GI4Y6BBX.mjs +21 -0
  21. package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
  22. package/dist/chunk-HWL2AGLD.cjs +98 -0
  23. package/dist/chunk-HZAB3YDO.cjs +234 -0
  24. package/dist/chunk-IDATIFCG.mjs +226 -0
  25. package/dist/chunk-LO55N7VL.cjs +247 -0
  26. package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
  27. package/dist/chunk-MUNEIE2J.cjs +62 -0
  28. package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
  29. package/dist/chunk-TOBK5FC4.mjs +88 -0
  30. package/dist/chunk-UV4LMGVZ.mjs +31 -0
  31. package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
  32. package/dist/chunk-W7LVJC32.cjs +25 -0
  33. package/dist/chunk-WAZ7T2BL.cjs +169 -0
  34. package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
  35. package/dist/docx/auto-number-fields.d.ts +22 -0
  36. package/dist/docx/auto-number-fields.d.ts.map +1 -0
  37. package/dist/docx/block-parser.d.ts.map +1 -1
  38. package/dist/docx/character-styles.d.ts.map +1 -1
  39. package/dist/docx/clipboard/css.d.ts +21 -0
  40. package/dist/docx/clipboard/css.d.ts.map +1 -0
  41. package/dist/docx/clipboard/html-tokens.d.ts +38 -0
  42. package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
  43. package/dist/docx/clipboard/index.d.ts +6 -0
  44. package/dist/docx/clipboard/index.d.ts.map +1 -0
  45. package/dist/docx/clipboard/word-fields.d.ts +13 -0
  46. package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
  47. package/dist/docx/clipboard/word-fragment.d.ts +14 -0
  48. package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
  49. package/dist/docx/clipboard/word-html.d.ts +22 -0
  50. package/dist/docx/clipboard/word-html.d.ts.map +1 -0
  51. package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
  52. package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
  53. package/dist/docx/clipboard/word-lists.d.ts +13 -0
  54. package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
  55. package/dist/docx/clipboard/word-runs.d.ts +18 -0
  56. package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
  57. package/dist/docx/clipboard/word-styles.d.ts +35 -0
  58. package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
  59. package/dist/docx/compare/build.d.ts +48 -0
  60. package/dist/docx/compare/build.d.ts.map +1 -0
  61. package/dist/docx/compare/compare.d.ts +18 -0
  62. package/dist/docx/compare/compare.d.ts.map +1 -0
  63. package/dist/docx/compare/context.d.ts +42 -0
  64. package/dist/docx/compare/context.d.ts.map +1 -0
  65. package/dist/docx/compare/diff.d.ts +20 -0
  66. package/dist/docx/compare/diff.d.ts.map +1 -0
  67. package/dist/docx/compare/index.d.ts +4 -0
  68. package/dist/docx/compare/index.d.ts.map +1 -0
  69. package/dist/docx/compare/slide.d.ts +9 -0
  70. package/dist/docx/compare/slide.d.ts.map +1 -0
  71. package/dist/docx/compare/spans.d.ts +13 -0
  72. package/dist/docx/compare/spans.d.ts.map +1 -0
  73. package/dist/docx/compare/story.d.ts +7 -0
  74. package/dist/docx/compare/story.d.ts.map +1 -0
  75. package/dist/docx/compare/table.d.ts +23 -0
  76. package/dist/docx/compare/table.d.ts.map +1 -0
  77. package/dist/docx/compare/tokens.d.ts +50 -0
  78. package/dist/docx/compare/tokens.d.ts.map +1 -0
  79. package/dist/docx/compare/types.d.ts +51 -0
  80. package/dist/docx/compare/types.d.ts.map +1 -0
  81. package/dist/docx/compatibility.d.ts +46 -0
  82. package/dist/docx/compatibility.d.ts.map +1 -0
  83. package/dist/docx/computed-fields.d.ts +39 -0
  84. package/dist/docx/computed-fields.d.ts.map +1 -0
  85. package/dist/docx/doc-property-field.d.ts +17 -0
  86. package/dist/docx/doc-property-field.d.ts.map +1 -0
  87. package/dist/docx/document-parts.d.ts +2 -0
  88. package/dist/docx/document-parts.d.ts.map +1 -1
  89. package/dist/docx/drawing-wrap.d.ts +21 -0
  90. package/dist/docx/drawing-wrap.d.ts.map +1 -0
  91. package/dist/docx/drawing.d.ts.map +1 -1
  92. package/dist/docx/embedded.cjs +3965 -2313
  93. package/dist/docx/embedded.mjs +3965 -2313
  94. package/dist/docx/field-format.d.ts +45 -0
  95. package/dist/docx/field-format.d.ts.map +1 -0
  96. package/dist/docx/field-result-spans.d.ts +62 -0
  97. package/dist/docx/field-result-spans.d.ts.map +1 -0
  98. package/dist/docx/field-runs.d.ts.map +1 -1
  99. package/dist/docx/field-stories.d.ts +9 -0
  100. package/dist/docx/field-stories.d.ts.map +1 -0
  101. package/dist/docx/find-stories.d.ts +27 -0
  102. package/dist/docx/find-stories.d.ts.map +1 -0
  103. package/dist/docx/highlight.d.ts +19 -0
  104. package/dist/docx/highlight.d.ts.map +1 -1
  105. package/dist/docx/hyperlink.d.ts +7 -0
  106. package/dist/docx/hyperlink.d.ts.map +1 -1
  107. package/dist/docx/index.cjs +7359 -3476
  108. package/dist/docx/index.d.ts +13 -1
  109. package/dist/docx/index.d.ts.map +1 -1
  110. package/dist/docx/index.mjs +7327 -3476
  111. package/dist/docx/inline-model.d.ts +21 -0
  112. package/dist/docx/inline-model.d.ts.map +1 -1
  113. package/dist/docx/inline-slots.d.ts.map +1 -1
  114. package/dist/docx/inspect-document.d.ts +21 -0
  115. package/dist/docx/inspect-document.d.ts.map +1 -0
  116. package/dist/docx/kinsoku-settings.d.ts +9 -0
  117. package/dist/docx/kinsoku-settings.d.ts.map +1 -0
  118. package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
  119. package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
  120. package/dist/docx/layout/adapt-table.d.ts.map +1 -1
  121. package/dist/docx/layout/adapter.d.ts.map +1 -1
  122. package/dist/docx/layout/computed-field-runs.d.ts +8 -0
  123. package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
  124. package/dist/docx/layout/floats.d.ts +3 -1
  125. package/dist/docx/layout/floats.d.ts.map +1 -1
  126. package/dist/docx/layout/flow-floating-table.d.ts +13 -0
  127. package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
  128. package/dist/docx/layout/flow-table.d.ts +1 -1
  129. package/dist/docx/layout/flow-table.d.ts.map +1 -1
  130. package/dist/docx/layout/index.cjs +2280 -941
  131. package/dist/docx/layout/index.mjs +2276 -942
  132. package/dist/docx/layout/input.d.ts +50 -0
  133. package/dist/docx/layout/input.d.ts.map +1 -1
  134. package/dist/docx/layout/layout.d.ts.map +1 -1
  135. package/dist/docx/layout/page-cursor.d.ts.map +1 -1
  136. package/dist/docx/layout/page-flow.d.ts.map +1 -1
  137. package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
  138. package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
  139. package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
  140. package/dist/docx/layout/result.d.ts +12 -0
  141. package/dist/docx/layout/result.d.ts.map +1 -1
  142. package/dist/docx/layout/section-flow.d.ts.map +1 -1
  143. package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
  144. package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
  145. package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
  146. package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
  147. package/dist/docx/layout/table-autofit.d.ts +10 -0
  148. package/dist/docx/layout/table-autofit.d.ts.map +1 -0
  149. package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
  150. package/dist/docx/layout/text-breaks.d.ts +38 -13
  151. package/dist/docx/layout/text-breaks.d.ts.map +1 -1
  152. package/dist/docx/layout/wrap.d.ts +1 -1
  153. package/dist/docx/layout/wrap.d.ts.map +1 -1
  154. package/dist/docx/list-number-fields.d.ts +25 -0
  155. package/dist/docx/list-number-fields.d.ts.map +1 -0
  156. package/dist/docx/load/index.cjs +4355 -2703
  157. package/dist/docx/load/index.mjs +4355 -2703
  158. package/dist/docx/model-paragraph.d.ts +12 -1
  159. package/dist/docx/model-paragraph.d.ts.map +1 -1
  160. package/dist/docx/model.d.ts +26 -1
  161. package/dist/docx/model.d.ts.map +1 -1
  162. package/dist/docx/note-convert.d.ts +45 -0
  163. package/dist/docx/note-convert.d.ts.map +1 -0
  164. package/dist/docx/numbering-counters.d.ts +17 -0
  165. package/dist/docx/numbering-counters.d.ts.map +1 -0
  166. package/dist/docx/numbering-format.d.ts +11 -2
  167. package/dist/docx/numbering-format.d.ts.map +1 -1
  168. package/dist/docx/outline-numbering.d.ts +6 -0
  169. package/dist/docx/outline-numbering.d.ts.map +1 -0
  170. package/dist/docx/package-information-save.d.ts +9 -0
  171. package/dist/docx/package-information-save.d.ts.map +1 -0
  172. package/dist/docx/package-information.d.ts +43 -0
  173. package/dist/docx/package-information.d.ts.map +1 -0
  174. package/dist/docx/package-properties.d.ts +5 -0
  175. package/dist/docx/package-properties.d.ts.map +1 -0
  176. package/dist/docx/paragraph-styles.d.ts +2 -0
  177. package/dist/docx/paragraph-styles.d.ts.map +1 -1
  178. package/dist/docx/parse-revisions.d.ts +2 -0
  179. package/dist/docx/parse-revisions.d.ts.map +1 -1
  180. package/dist/docx/parse-table-floating.d.ts +5 -0
  181. package/dist/docx/parse-table-floating.d.ts.map +1 -0
  182. package/dist/docx/parse-table.d.ts.map +1 -1
  183. package/dist/docx/parse.d.ts.map +1 -1
  184. package/dist/docx/part-relationships.d.ts.map +1 -1
  185. package/dist/docx/personal-information.d.ts +18 -0
  186. package/dist/docx/personal-information.d.ts.map +1 -0
  187. package/dist/docx/picture-crop-edit.d.ts +18 -0
  188. package/dist/docx/picture-crop-edit.d.ts.map +1 -0
  189. package/dist/docx/picture-watermark.d.ts +29 -0
  190. package/dist/docx/picture-watermark.d.ts.map +1 -0
  191. package/dist/docx/relationship-allocator.d.ts.map +1 -1
  192. package/dist/docx/remove-document-information.d.ts +8 -0
  193. package/dist/docx/remove-document-information.d.ts.map +1 -0
  194. package/dist/docx/revision-commands.d.ts +6 -1
  195. package/dist/docx/revision-commands.d.ts.map +1 -1
  196. package/dist/docx/revision-ids.d.ts.map +1 -1
  197. package/dist/docx/run-language.d.ts +9 -0
  198. package/dist/docx/run-language.d.ts.map +1 -0
  199. package/dist/docx/run-properties-snapshot.d.ts +9 -0
  200. package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
  201. package/dist/docx/run-style-model.d.ts +4 -0
  202. package/dist/docx/run-style-model.d.ts.map +1 -1
  203. package/dist/docx/save-modified.d.ts +2 -1
  204. package/dist/docx/save-modified.d.ts.map +1 -1
  205. package/dist/docx/save.d.ts.map +1 -1
  206. package/dist/docx/style-ref-fields.d.ts +1 -8
  207. package/dist/docx/style-ref-fields.d.ts.map +1 -1
  208. package/dist/docx/symbol-field.d.ts +21 -0
  209. package/dist/docx/symbol-field.d.ts.map +1 -0
  210. package/dist/docx/table-cell-write.d.ts.map +1 -1
  211. package/dist/docx/table-defaults.d.ts +2 -0
  212. package/dist/docx/table-defaults.d.ts.map +1 -1
  213. package/dist/docx/table-margins.d.ts +18 -0
  214. package/dist/docx/table-margins.d.ts.map +1 -0
  215. package/dist/docx/table-model.d.ts +23 -0
  216. package/dist/docx/table-model.d.ts.map +1 -1
  217. package/dist/docx/table-structure-check.d.ts.map +1 -1
  218. package/dist/docx/table-styles.d.ts.map +1 -1
  219. package/dist/docx/ui/index.cjs +787 -435
  220. package/dist/docx/ui/index.d.ts +1 -0
  221. package/dist/docx/ui/index.d.ts.map +1 -1
  222. package/dist/docx/ui/index.mjs +784 -436
  223. package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
  224. package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
  225. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  226. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  227. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  228. package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
  229. package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
  230. package/dist/docx/ui/run-adapter.d.ts.map +1 -1
  231. package/dist/docx/ui/schema-marks.d.ts +2 -19
  232. package/dist/docx/ui/schema-marks.d.ts.map +1 -1
  233. package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
  234. package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
  235. package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
  236. package/dist/docx/write-drawing-wrap.d.ts +22 -0
  237. package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
  238. package/dist/docx/write-drawing.d.ts.map +1 -1
  239. package/dist/docx/write-revisions.d.ts +3 -1
  240. package/dist/docx/write-revisions.d.ts.map +1 -1
  241. package/dist/docx/write-shape.d.ts.map +1 -1
  242. package/dist/docx/write-table-properties.d.ts.map +1 -1
  243. package/dist/docx/write.d.ts.map +1 -1
  244. package/dist/drawingml/html-text-paste.d.ts +28 -0
  245. package/dist/drawingml/html-text-paste.d.ts.map +1 -0
  246. package/dist/drawingml/html-text-style.d.ts +18 -0
  247. package/dist/drawingml/html-text-style.d.ts.map +1 -0
  248. package/dist/drawingml/index.cjs +762 -0
  249. package/dist/drawingml/index.d.ts +1 -0
  250. package/dist/drawingml/index.d.ts.map +1 -1
  251. package/dist/drawingml/index.mjs +760 -1
  252. package/dist/index.cjs +1147 -251
  253. package/dist/index.mjs +1147 -251
  254. package/dist/pptx/automation/index.cjs +561 -180
  255. package/dist/pptx/automation/index.d.ts +4 -4
  256. package/dist/pptx/automation/index.mjs +6 -5
  257. package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
  258. package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
  259. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
  260. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
  261. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
  262. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
  263. package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
  264. package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
  265. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
  266. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
  267. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
  268. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
  269. package/dist/pptx/cli/index.cjs +504 -124
  270. package/dist/pptx/cli/index.d.ts +1 -1
  271. package/dist/pptx/cli/index.mjs +4 -4
  272. package/dist/pptx/converter/index.d.ts +1 -1
  273. package/dist/pptx/converter/index.mjs +2 -2
  274. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  275. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  276. package/dist/pptx/editor/render/find-replace.cjs +16 -15
  277. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  278. package/dist/pptx/editor/render/find-replace.mjs +3 -2
  279. package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
  280. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
  281. package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
  282. package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
  283. package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
  284. package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
  285. package/dist/pptx/editor/render/slide-operations.cjs +12 -9
  286. package/dist/pptx/editor/render/slide-operations.mjs +6 -3
  287. package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
  288. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  289. package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
  290. package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
  291. package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
  292. package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
  293. package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
  294. package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
  295. package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
  296. package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
  297. package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
  298. package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
  299. package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
  300. package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
  301. package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
  302. package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
  303. package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
  304. package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
  305. package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
  306. package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
  307. package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
  308. package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
  309. package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
  310. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  311. package/dist/pptx/editor/render/table-layout.d.ts +2 -2
  312. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  313. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  314. package/dist/pptx/editor/render/table-merge.cjs +5 -5
  315. package/dist/pptx/editor/render/table-merge.mjs +1 -1
  316. package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
  317. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
  318. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
  319. package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
  320. package/dist/pptx/index.cjs +519 -201
  321. package/dist/pptx/index.d.ts +7 -7
  322. package/dist/pptx/index.mjs +5 -5
  323. package/dist/pptx/node/index.d.ts +1 -1
  324. package/dist/pptx/smartart-layouts/index.d.ts +2 -2
  325. package/dist/teams/index.cjs +35 -25
  326. package/dist/teams/index.mjs +35 -25
  327. package/dist/text/complex-breaks.d.ts +24 -0
  328. package/dist/text/complex-breaks.d.ts.map +1 -0
  329. package/dist/text/east-asian.d.ts +32 -0
  330. package/dist/text/east-asian.d.ts.map +1 -0
  331. package/dist/text/html-tokens.d.ts +45 -0
  332. package/dist/text/html-tokens.d.ts.map +1 -0
  333. package/dist/text/index.cjs +477 -62
  334. package/dist/text/index.d.ts +5 -0
  335. package/dist/text/index.d.ts.map +1 -1
  336. package/dist/text/index.mjs +456 -63
  337. package/dist/text/kinsoku.d.ts +55 -0
  338. package/dist/text/kinsoku.d.ts.map +1 -0
  339. package/dist/text/truetype/embedding.d.ts +42 -0
  340. package/dist/text/truetype/embedding.d.ts.map +1 -0
  341. package/dist/text/windows-1252.d.ts +10 -0
  342. package/dist/text/windows-1252.d.ts.map +1 -0
  343. package/dist/xlsx/collab/index.cjs +10 -6
  344. package/dist/xlsx/collab/index.mjs +10 -6
  345. package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
  346. package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
  347. package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
  348. package/dist/xlsx/index.cjs +96 -51
  349. package/dist/xlsx/index.mjs +96 -51
  350. package/dist/xlsx/load/index.cjs +10 -6
  351. package/dist/xlsx/load/index.mjs +10 -6
  352. package/dist/xlsx/ui/index.cjs +97 -52
  353. package/dist/xlsx/ui/index.mjs +97 -52
  354. package/package.json +1 -1
  355. package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
  356. package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
  357. package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
  358. package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
  359. package/dist/chunk-X4RL5AZ7.cjs +0 -120
  360. package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
  361. package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
@@ -1,88 +1,3 @@
1
- import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-O3YGBYGZ.mjs';
2
- import { setCellText } from '../../../chunk-NBMXEVHL.mjs';
3
- import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
4
-
5
- function withTableData(element, transform, edit) {
6
- const tableData = element.tableData;
7
- if (!tableData) {
8
- return element;
9
- }
10
- const next = transform(tableData);
11
- if (next === tableData) {
12
- return element;
13
- }
14
- const updated = { ...element, tableData: next };
15
- if (element.rawXml) {
16
- const rawXml = rebuildTableStructureInRawXml(element, next, edit);
17
- if (rawXml) {
18
- updated.rawXml = rawXml;
19
- }
20
- }
21
- return updated;
22
- }
23
- function setTableElementCellText(element, rowIndex, colIndex, text) {
24
- const updated = setCellText(element, rowIndex, colIndex, text);
25
- if (updated === element || !element.rawXml) {
26
- return updated;
27
- }
28
- const rawXml = updateCellTextInRawXml(element, rowIndex, colIndex, text);
29
- return rawXml ? { ...updated, rawXml } : updated;
30
- }
31
- function insertTableElementRow(element, rowIdx, position) {
32
- return withTableData(element, (data) => insertTableRow(data, rowIdx, position), {
33
- axis: "row",
34
- action: "insert",
35
- index: position === "above" ? rowIdx : rowIdx + 1
36
- });
37
- }
38
- function removeTableElementRow(element, rowIdx) {
39
- return withTableData(element, (data) => deleteTableRow(data, rowIdx), {
40
- axis: "row",
41
- action: "delete",
42
- index: rowIdx
43
- });
44
- }
45
- function insertTableElementColumn(element, colIdx, position) {
46
- return withTableData(element, (data) => insertTableColumn(data, colIdx, position), {
47
- axis: "column",
48
- action: "insert",
49
- index: position === "left" ? colIdx : colIdx + 1
50
- });
51
- }
52
- function removeTableElementColumn(element, colIdx) {
53
- return withTableData(element, (data) => deleteTableColumn(data, colIdx), {
54
- axis: "column",
55
- action: "delete",
56
- index: colIdx
57
- });
58
- }
59
- function appendTableElementRow(element) {
60
- const rowCount = element.tableData?.rows.length ?? 0;
61
- if (rowCount === 0) {
62
- return element;
63
- }
64
- return insertTableElementRow(element, rowCount - 1, "below");
65
- }
66
- function removeLastTableElementRow(element) {
67
- const rowCount = element.tableData?.rows.length ?? 0;
68
- if (rowCount === 0) {
69
- return element;
70
- }
71
- return removeTableElementRow(element, rowCount - 1);
72
- }
73
- function appendTableElementColumn(element) {
74
- const colCount = element.tableData?.columnWidths.length ?? 0;
75
- if (colCount === 0) {
76
- return element;
77
- }
78
- return insertTableElementColumn(element, colCount - 1, "right");
79
- }
80
- function removeLastTableElementColumn(element) {
81
- const colCount = element.tableData?.columnWidths.length ?? 0;
82
- if (colCount === 0) {
83
- return element;
84
- }
85
- return removeTableElementColumn(element, colCount - 1);
86
- }
87
-
88
- export { appendTableElementColumn, appendTableElementRow, insertTableElementColumn, insertTableElementRow, removeLastTableElementColumn, removeLastTableElementRow, removeTableElementColumn, removeTableElementRow, setTableElementCellText };
1
+ export { appendTableElementColumn, appendTableElementRow, insertTableElementColumn, insertTableElementRow, removeLastTableElementColumn, removeLastTableElementRow, removeTableElementColumn, removeTableElementRow, setTableElementCellText } from '../../../chunk-TOBK5FC4.mjs';
2
+ import '../../../chunk-VRVHM6TJ.mjs';
3
+ import '../../../chunk-FX6WL42B.mjs';
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var chunkHWL2AGLD_cjs = require('../../../chunk-HWL2AGLD.cjs');
4
+ require('../../../chunk-CVUMILG3.cjs');
5
+ require('../../../chunk-2IO523MM.cjs');
6
+
7
+ // pptx/editor/render/table-grid-fill.ts
8
+ function fillTableCells(element, fill) {
9
+ let next = element;
10
+ for (let index = 0; index < fill.addRows; index++) {
11
+ next = chunkHWL2AGLD_cjs.appendTableElementRow(next);
12
+ }
13
+ for (let index = 0; index < fill.addColumns; index++) {
14
+ const columns = next.tableData?.columnWidths.length ?? 0;
15
+ if (columns === 0) {
16
+ break;
17
+ }
18
+ next = chunkHWL2AGLD_cjs.insertTableElementColumn(next, columns - 1, "right");
19
+ }
20
+ for (const write of fill.writes) {
21
+ const cell = next.tableData?.rows[write.row]?.cells[write.col];
22
+ if (!cell || cell.hMerge || cell.vMerge || cell.text === write.text) {
23
+ continue;
24
+ }
25
+ next = chunkHWL2AGLD_cjs.setTableElementCellText(next, write.row, write.col, write.text);
26
+ }
27
+ return next;
28
+ }
29
+
30
+ exports.fillTableCells = fillTableCells;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * table-grid-fill.ts: write a block of plain-text values into a table,
3
+ * growing it first when the block runs past the last row or column. This is
4
+ * the document half of pasting tab-separated text (cells copied from a
5
+ * spreadsheet as plain text) into a table; the parse and the plan of which
6
+ * cells to write live in the UI layer.
7
+ *
8
+ * Each written cell takes the text in its own formatting (the destination
9
+ * formatting PowerPoint uses for plain text): `setTableElementCellText`
10
+ * keeps the cell's first run properties in `rawXml` and its cell style.
11
+ *
12
+ * @module render/table-grid-fill
13
+ */
14
+ import { TablePptxElement } from "ooxml-core/pptx";
15
+ /** One value to write, in grid coordinates of the grown table. */
16
+ export interface TableGridWrite {
17
+ row: number;
18
+ col: number;
19
+ text: string;
20
+ }
21
+ /** Rows and columns to append, then the cells to write. */
22
+ export interface TableGridFill {
23
+ addRows: number;
24
+ addColumns: number;
25
+ writes: readonly TableGridWrite[];
26
+ }
27
+ /**
28
+ * Apply a grid fill as one element update: append `addRows` rows below the
29
+ * last row and `addColumns` columns right of the last column (each copying
30
+ * its neighbour's formatting, as Insert Below / Insert Right do), then write
31
+ * every value. Returns the element itself when nothing changes.
32
+ */
33
+ export declare function fillTableCells(element: TablePptxElement, fill: TableGridFill): TablePptxElement;
34
+ //# sourceMappingURL=table-grid-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-grid-fill.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-grid-fill.ts"],"mappings":";;;;;;;;;;;;;;;iBAsBiB;EAChB;EACA;EACA;;;iBAIgB;EAChB;EACA;EACA,iBAAiB;;;;;;;;wBASF,eAAe,SAAS,kBAAkB,MAAM,gBAAgB"}
@@ -0,0 +1,28 @@
1
+ import { appendTableElementRow, insertTableElementColumn, setTableElementCellText } from '../../../chunk-TOBK5FC4.mjs';
2
+ import '../../../chunk-VRVHM6TJ.mjs';
3
+ import '../../../chunk-FX6WL42B.mjs';
4
+
5
+ // pptx/editor/render/table-grid-fill.ts
6
+ function fillTableCells(element, fill) {
7
+ let next = element;
8
+ for (let index = 0; index < fill.addRows; index++) {
9
+ next = appendTableElementRow(next);
10
+ }
11
+ for (let index = 0; index < fill.addColumns; index++) {
12
+ const columns = next.tableData?.columnWidths.length ?? 0;
13
+ if (columns === 0) {
14
+ break;
15
+ }
16
+ next = insertTableElementColumn(next, columns - 1, "right");
17
+ }
18
+ for (const write of fill.writes) {
19
+ const cell = next.tableData?.rows[write.row]?.cells[write.col];
20
+ if (!cell || cell.hMerge || cell.vMerge || cell.text === write.text) {
21
+ continue;
22
+ }
23
+ next = setTableElementCellText(next, write.row, write.col, write.text);
24
+ }
25
+ return next;
26
+ }
27
+
28
+ export { fillTableCells };
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var chunkCODMW5KF_cjs = require('../../../chunk-CODMW5KF.cjs');
3
+ var chunkCVUMILG3_cjs = require('../../../chunk-CVUMILG3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DEFAULT_INSERTED_ROW_HEIGHT", {
8
8
  enumerable: true,
9
- get: function () { return chunkCODMW5KF_cjs.DEFAULT_INSERTED_ROW_HEIGHT; }
9
+ get: function () { return chunkCVUMILG3_cjs.DEFAULT_INSERTED_ROW_HEIGHT; }
10
10
  });
11
11
  Object.defineProperty(exports, "deleteTableColumn", {
12
12
  enumerable: true,
13
- get: function () { return chunkCODMW5KF_cjs.deleteTableColumn; }
13
+ get: function () { return chunkCVUMILG3_cjs.deleteTableColumn; }
14
14
  });
15
15
  Object.defineProperty(exports, "deleteTableRow", {
16
16
  enumerable: true,
17
- get: function () { return chunkCODMW5KF_cjs.deleteTableRow; }
17
+ get: function () { return chunkCVUMILG3_cjs.deleteTableRow; }
18
18
  });
19
19
  Object.defineProperty(exports, "insertTableColumn", {
20
20
  enumerable: true,
21
- get: function () { return chunkCODMW5KF_cjs.insertTableColumn; }
21
+ get: function () { return chunkCVUMILG3_cjs.insertTableColumn; }
22
22
  });
23
23
  Object.defineProperty(exports, "insertTableRow", {
24
24
  enumerable: true,
25
- get: function () { return chunkCODMW5KF_cjs.insertTableRow; }
25
+ get: function () { return chunkCVUMILG3_cjs.insertTableRow; }
26
26
  });
@@ -1,6 +1,6 @@
1
1
  /** Shared logical table edits for the editor and the PPTX automation tools. */
2
- import { jr as PptxTableData } from "../../chunks/presentation-DOaYIW-l.js";
3
- import "../../chunks/index-BCy58n13.js";
2
+ import { jr as PptxTableData } from "../../chunks/presentation-BvnVkFPJ.js";
3
+ import "../../chunks/index-8ZfPndYR.js";
4
4
  /** Default pixel height assigned to a freshly inserted row. */
5
5
  export declare const DEFAULT_INSERTED_ROW_HEIGHT = 40;
6
6
  /** Insert a row and extend each vertical merge crossing the insertion point. */
@@ -1 +1 @@
1
- {"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;;;qBAKa;;wBAoFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
1
+ {"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;;;qBAKa;;wBAqFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
@@ -1 +1 @@
1
- export { DEFAULT_INSERTED_ROW_HEIGHT, deleteTableColumn, deleteTableRow, insertTableColumn, insertTableRow } from '../../../chunk-O3YGBYGZ.mjs';
1
+ export { DEFAULT_INSERTED_ROW_HEIGHT, deleteTableColumn, deleteTableRow, insertTableColumn, insertTableRow } from '../../../chunk-VRVHM6TJ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7XYVFUB3_cjs = require('../../../chunk-7XYVFUB3.cjs');
3
+ var chunk2IO523MM_cjs = require('../../../chunk-2IO523MM.cjs');
4
4
 
5
5
  // pptx/editor/render/table-merge.ts
6
6
  function computeBoundingRect(cells) {
@@ -168,7 +168,7 @@ function mergeCells(cells, tableData) {
168
168
  }
169
169
  if (ri === rect.startRow && ci === rect.startCol) {
170
170
  return {
171
- ...cell.text === combinedText ? cell : chunk7XYVFUB3_cjs.withCellText(cell, combinedText),
171
+ ...cell.text === combinedText ? cell : chunk2IO523MM_cjs.withCellText(cell, combinedText),
172
172
  gridSpan: colCount > 1 ? colCount : void 0,
173
173
  rowSpan: rowCount > 1 ? rowCount : void 0,
174
174
  hMerge: void 0,
@@ -177,7 +177,7 @@ function mergeCells(cells, tableData) {
177
177
  }
178
178
  if (ri === rect.startRow) {
179
179
  return {
180
- ...chunk7XYVFUB3_cjs.withCellText(cell, ""),
180
+ ...chunk2IO523MM_cjs.withCellText(cell, ""),
181
181
  hMerge: true,
182
182
  vMerge: void 0,
183
183
  gridSpan: void 0,
@@ -186,7 +186,7 @@ function mergeCells(cells, tableData) {
186
186
  }
187
187
  if (ci === rect.startCol) {
188
188
  return {
189
- ...chunk7XYVFUB3_cjs.withCellText(cell, ""),
189
+ ...chunk2IO523MM_cjs.withCellText(cell, ""),
190
190
  vMerge: true,
191
191
  hMerge: void 0,
192
192
  gridSpan: void 0,
@@ -194,7 +194,7 @@ function mergeCells(cells, tableData) {
194
194
  };
195
195
  }
196
196
  return {
197
- ...chunk7XYVFUB3_cjs.withCellText(cell, ""),
197
+ ...chunk2IO523MM_cjs.withCellText(cell, ""),
198
198
  hMerge: true,
199
199
  vMerge: true,
200
200
  gridSpan: void 0,
@@ -1,4 +1,4 @@
1
- import { withCellText } from '../../../chunk-NBMXEVHL.mjs';
1
+ import { withCellText } from '../../../chunk-FX6WL42B.mjs';
2
2
 
3
3
  // pptx/editor/render/table-merge.ts
4
4
  function computeBoundingRect(cells) {
@@ -1,5 +1,5 @@
1
- import { wc as TextSegment } from "../../chunks/presentation-DOaYIW-l.js";
2
- import "../../chunks/index-BCy58n13.js";
1
+ import { Tc as TextSegment } from "../../chunks/presentation-BvnVkFPJ.js";
2
+ import "../../chunks/index-8ZfPndYR.js";
3
3
  /** The boolean run decorations the ribbon toggles. */
4
4
  export type TextDecorationFlag = 'bold' | 'italic' | 'underline' | 'strikethrough';
5
5
  export declare const TEXT_DECORATION_FLAGS: readonly TextDecorationFlag[];
@@ -1,5 +1,5 @@
1
- import { At as PptxElementWithText, Dt as PptxElement, Tc as TextStyle } from "../../chunks/presentation-DOaYIW-l.js";
2
- import "../../chunks/index-BCy58n13.js";
1
+ import { At as PptxElementWithText, Dt as PptxElement, Ec as TextStyle } from "../../chunks/presentation-BvnVkFPJ.js";
2
+ import "../../chunks/index-8ZfPndYR.js";
3
3
  /** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
4
4
  export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
5
5
  //# sourceMappingURL=text-runs-style-patch.d.ts.map
@@ -16,8 +16,8 @@
16
16
  * `text-decoration` cannot keep painting underline over a run that was just
17
17
  * un-underlined.
18
18
  */
19
- import { Dt as PptxElement, Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-DOaYIW-l.js";
20
- import "../../chunks/index-BCy58n13.js";
19
+ import { Dt as PptxElement, Ec as TextStyle, Tc as TextSegment } from "../../chunks/presentation-BvnVkFPJ.js";
20
+ import "../../chunks/index-8ZfPndYR.js";
21
21
  import { TextDecorationFlag } from "./text-content-style.js";
22
22
  /**
23
23
  * Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
@@ -1,5 +1,5 @@
1
- import { Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-DOaYIW-l.js";
2
- import "../../chunks/index-BCy58n13.js";
1
+ import { Ec as TextStyle, Tc as TextSegment } from "../../chunks/presentation-BvnVkFPJ.js";
2
+ import "../../chunks/index-8ZfPndYR.js";
3
3
  /**
4
4
  * Keep a runless paragraph's future body formatting in the same style edit.
5
5
  * `options.inherited` is the text box style the run inherits unset fields