ooxml-core 0.3.0 → 0.4.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 (451) hide show
  1. package/README.md +15 -14
  2. package/dist/docx/load/index.cjs +11 -11
  3. package/dist/docx/load/index.mjs +11 -11
  4. package/dist/index.cjs +34 -1
  5. package/dist/index.mjs +34 -1
  6. package/dist/opc/index.cjs +18 -1
  7. package/dist/opc/index.mjs +18 -1
  8. package/dist/opc/relationship-types.d.ts +17 -0
  9. package/dist/opc/relationship-types.d.ts.map +1 -1
  10. package/dist/pptx/cli/index.cjs +122 -105
  11. package/dist/pptx/cli/index.mjs +122 -105
  12. package/dist/pptx/index.cjs +144 -127
  13. package/dist/pptx/index.d.ts +8 -8
  14. package/dist/pptx/index.d.ts.map +1 -1
  15. package/dist/pptx/index.mjs +144 -127
  16. package/dist/visio/geometry.d.ts.map +1 -1
  17. package/dist/visio/index.cjs +66 -6
  18. package/dist/visio/index.mjs +66 -6
  19. package/dist/visio/rounded-geometry.d.ts +9 -0
  20. package/dist/visio/rounded-geometry.d.ts.map +1 -1
  21. package/dist/xlsx/address.d.ts +42 -0
  22. package/dist/xlsx/address.d.ts.map +1 -0
  23. package/dist/xlsx/cell-styles.d.ts +25 -0
  24. package/dist/xlsx/cell-styles.d.ts.map +1 -0
  25. package/dist/xlsx/cells.d.ts +25 -0
  26. package/dist/xlsx/cells.d.ts.map +1 -0
  27. package/dist/xlsx/edit/annotations.d.ts +17 -0
  28. package/dist/xlsx/edit/annotations.d.ts.map +1 -0
  29. package/dist/xlsx/edit/band-formulas.d.ts +9 -0
  30. package/dist/xlsx/edit/band-formulas.d.ts.map +1 -0
  31. package/dist/xlsx/edit/borders.d.ts +8 -0
  32. package/dist/xlsx/edit/borders.d.ts.map +1 -0
  33. package/dist/xlsx/edit/calc-mode.d.ts +11 -0
  34. package/dist/xlsx/edit/calc-mode.d.ts.map +1 -0
  35. package/dist/xlsx/edit/cell-shift.d.ts +11 -0
  36. package/dist/xlsx/edit/cell-shift.d.ts.map +1 -0
  37. package/dist/xlsx/edit/cell-style.d.ts +9 -0
  38. package/dist/xlsx/edit/cell-style.d.ts.map +1 -0
  39. package/dist/xlsx/edit/cell-values.d.ts +21 -0
  40. package/dist/xlsx/edit/cell-values.d.ts.map +1 -0
  41. package/dist/xlsx/edit/charts.d.ts +22 -0
  42. package/dist/xlsx/edit/charts.d.ts.map +1 -0
  43. package/dist/xlsx/edit/clipboard-html-parse.d.ts +12 -0
  44. package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -0
  45. package/dist/xlsx/edit/clipboard-html.d.ts +8 -0
  46. package/dist/xlsx/edit/clipboard-html.d.ts.map +1 -0
  47. package/dist/xlsx/edit/clipboard-text.d.ts +8 -0
  48. package/dist/xlsx/edit/clipboard-text.d.ts.map +1 -0
  49. package/dist/xlsx/edit/clipboard.d.ts +16 -0
  50. package/dist/xlsx/edit/clipboard.d.ts.map +1 -0
  51. package/dist/xlsx/edit/columns.d.ts +11 -0
  52. package/dist/xlsx/edit/columns.d.ts.map +1 -0
  53. package/dist/xlsx/edit/conditional-formats.d.ts +17 -0
  54. package/dist/xlsx/edit/conditional-formats.d.ts.map +1 -0
  55. package/dist/xlsx/edit/context.d.ts +42 -0
  56. package/dist/xlsx/edit/context.d.ts.map +1 -0
  57. package/dist/xlsx/edit/deps.d.ts +4 -0
  58. package/dist/xlsx/edit/deps.d.ts.map +1 -0
  59. package/dist/xlsx/edit/dimensions.d.ts +13 -0
  60. package/dist/xlsx/edit/dimensions.d.ts.map +1 -0
  61. package/dist/xlsx/edit/drawings.d.ts +10 -0
  62. package/dist/xlsx/edit/drawings.d.ts.map +1 -0
  63. package/dist/xlsx/edit/duplicates.d.ts +17 -0
  64. package/dist/xlsx/edit/duplicates.d.ts.map +1 -0
  65. package/dist/xlsx/edit/fill-series.d.ts +16 -0
  66. package/dist/xlsx/edit/fill-series.d.ts.map +1 -0
  67. package/dist/xlsx/edit/fill.d.ts +14 -0
  68. package/dist/xlsx/edit/fill.d.ts.map +1 -0
  69. package/dist/xlsx/edit/filter.d.ts +17 -0
  70. package/dist/xlsx/edit/filter.d.ts.map +1 -0
  71. package/dist/xlsx/edit/find.d.ts +17 -0
  72. package/dist/xlsx/edit/find.d.ts.map +1 -0
  73. package/dist/xlsx/edit/format.d.ts +13 -0
  74. package/dist/xlsx/edit/format.d.ts.map +1 -0
  75. package/dist/xlsx/edit/history.d.ts +75 -0
  76. package/dist/xlsx/edit/history.d.ts.map +1 -0
  77. package/dist/xlsx/edit/index.d.ts +23 -0
  78. package/dist/xlsx/edit/index.d.ts.map +1 -0
  79. package/dist/xlsx/edit/merge.d.ts +11 -0
  80. package/dist/xlsx/edit/merge.d.ts.map +1 -0
  81. package/dist/xlsx/edit/outline.d.ts +14 -0
  82. package/dist/xlsx/edit/outline.d.ts.map +1 -0
  83. package/dist/xlsx/edit/page.d.ts +11 -0
  84. package/dist/xlsx/edit/page.d.ts.map +1 -0
  85. package/dist/xlsx/edit/protection.d.ts +26 -0
  86. package/dist/xlsx/edit/protection.d.ts.map +1 -0
  87. package/dist/xlsx/edit/range-math.d.ts +33 -0
  88. package/dist/xlsx/edit/range-math.d.ts.map +1 -0
  89. package/dist/xlsx/edit/row-autofit.d.ts +17 -0
  90. package/dist/xlsx/edit/row-autofit.d.ts.map +1 -0
  91. package/dist/xlsx/edit/session-calc.d.ts +24 -0
  92. package/dist/xlsx/edit/session-calc.d.ts.map +1 -0
  93. package/dist/xlsx/edit/session.d.ts +5 -0
  94. package/dist/xlsx/edit/session.d.ts.map +1 -0
  95. package/dist/xlsx/edit/sheets.d.ts +19 -0
  96. package/dist/xlsx/edit/sheets.d.ts.map +1 -0
  97. package/dist/xlsx/edit/shift-formulas.d.ts +14 -0
  98. package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -0
  99. package/dist/xlsx/edit/shift-sheet.d.ts +15 -0
  100. package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -0
  101. package/dist/xlsx/edit/sort.d.ts +17 -0
  102. package/dist/xlsx/edit/sort.d.ts.map +1 -0
  103. package/dist/xlsx/edit/structure.d.ts +10 -0
  104. package/dist/xlsx/edit/structure.d.ts.map +1 -0
  105. package/dist/xlsx/edit/table-edits.d.ts +25 -0
  106. package/dist/xlsx/edit/table-edits.d.ts.map +1 -0
  107. package/dist/xlsx/edit/table-rows.d.ts +11 -0
  108. package/dist/xlsx/edit/table-rows.d.ts.map +1 -0
  109. package/dist/xlsx/edit/tables.d.ts +11 -0
  110. package/dist/xlsx/edit/tables.d.ts.map +1 -0
  111. package/dist/xlsx/edit/test-context.d.ts +15 -0
  112. package/dist/xlsx/edit/test-context.d.ts.map +1 -0
  113. package/dist/xlsx/edit/types-clipboard.d.ts +66 -0
  114. package/dist/xlsx/edit/types-clipboard.d.ts.map +1 -0
  115. package/dist/xlsx/edit/types.d.ts +188 -0
  116. package/dist/xlsx/edit/types.d.ts.map +1 -0
  117. package/dist/xlsx/edit/validation.d.ts +21 -0
  118. package/dist/xlsx/edit/validation.d.ts.map +1 -0
  119. package/dist/xlsx/edit/view.d.ts +12 -0
  120. package/dist/xlsx/edit/view.d.ts.map +1 -0
  121. package/dist/xlsx/formula/array-context.d.ts +7 -0
  122. package/dist/xlsx/formula/array-context.d.ts.map +1 -0
  123. package/dist/xlsx/formula/ast.d.ts +108 -0
  124. package/dist/xlsx/formula/ast.d.ts.map +1 -0
  125. package/dist/xlsx/formula/call.d.ts +13 -0
  126. package/dist/xlsx/formula/call.d.ts.map +1 -0
  127. package/dist/xlsx/formula/coerce.d.ts +22 -0
  128. package/dist/xlsx/formula/coerce.d.ts.map +1 -0
  129. package/dist/xlsx/formula/context.d.ts +74 -0
  130. package/dist/xlsx/formula/context.d.ts.map +1 -0
  131. package/dist/xlsx/formula/date-serial.d.ts +26 -0
  132. package/dist/xlsx/formula/date-serial.d.ts.map +1 -0
  133. package/dist/xlsx/formula/engine-core.d.ts +19 -0
  134. package/dist/xlsx/formula/engine-core.d.ts.map +1 -0
  135. package/dist/xlsx/formula/engine-host.d.ts +51 -0
  136. package/dist/xlsx/formula/engine-host.d.ts.map +1 -0
  137. package/dist/xlsx/formula/engine-types.d.ts +31 -0
  138. package/dist/xlsx/formula/engine-types.d.ts.map +1 -0
  139. package/dist/xlsx/formula/engine-util.d.ts +10 -0
  140. package/dist/xlsx/formula/engine-util.d.ts.map +1 -0
  141. package/dist/xlsx/formula/engine.d.ts +6 -0
  142. package/dist/xlsx/formula/engine.d.ts.map +1 -0
  143. package/dist/xlsx/formula/evaluator.d.ts +17 -0
  144. package/dist/xlsx/formula/evaluator.d.ts.map +1 -0
  145. package/dist/xlsx/formula/functions/array-shape.d.ts +3 -0
  146. package/dist/xlsx/formula/functions/array-shape.d.ts.map +1 -0
  147. package/dist/xlsx/formula/functions/array.d.ts +6 -0
  148. package/dist/xlsx/formula/functions/array.d.ts.map +1 -0
  149. package/dist/xlsx/formula/functions/criteria.d.ts +22 -0
  150. package/dist/xlsx/formula/functions/criteria.d.ts.map +1 -0
  151. package/dist/xlsx/formula/functions/date-calc.d.ts +14 -0
  152. package/dist/xlsx/formula/functions/date-calc.d.ts.map +1 -0
  153. package/dist/xlsx/formula/functions/datetime.d.ts +3 -0
  154. package/dist/xlsx/formula/functions/datetime.d.ts.map +1 -0
  155. package/dist/xlsx/formula/functions/depreciation.d.ts +4 -0
  156. package/dist/xlsx/formula/functions/depreciation.d.ts.map +1 -0
  157. package/dist/xlsx/formula/functions/dist-core.d.ts +22 -0
  158. package/dist/xlsx/formula/functions/dist-core.d.ts.map +1 -0
  159. package/dist/xlsx/formula/functions/distributions-more.d.ts +4 -0
  160. package/dist/xlsx/formula/functions/distributions-more.d.ts.map +1 -0
  161. package/dist/xlsx/formula/functions/distributions.d.ts +3 -0
  162. package/dist/xlsx/formula/functions/distributions.d.ts.map +1 -0
  163. package/dist/xlsx/formula/functions/engineering.d.ts +3 -0
  164. package/dist/xlsx/formula/functions/engineering.d.ts.map +1 -0
  165. package/dist/xlsx/formula/functions/financial-core.d.ts +8 -0
  166. package/dist/xlsx/formula/functions/financial-core.d.ts.map +1 -0
  167. package/dist/xlsx/formula/functions/financial.d.ts +3 -0
  168. package/dist/xlsx/formula/functions/financial.d.ts.map +1 -0
  169. package/dist/xlsx/formula/functions/helpers.d.ts +44 -0
  170. package/dist/xlsx/formula/functions/helpers.d.ts.map +1 -0
  171. package/dist/xlsx/formula/functions/info.d.ts +3 -0
  172. package/dist/xlsx/formula/functions/info.d.ts.map +1 -0
  173. package/dist/xlsx/formula/functions/lambda.d.ts +3 -0
  174. package/dist/xlsx/formula/functions/lambda.d.ts.map +1 -0
  175. package/dist/xlsx/formula/functions/logical.d.ts +7 -0
  176. package/dist/xlsx/formula/functions/logical.d.ts.map +1 -0
  177. package/dist/xlsx/formula/functions/lookup-core.d.ts +32 -0
  178. package/dist/xlsx/formula/functions/lookup-core.d.ts.map +1 -0
  179. package/dist/xlsx/formula/functions/lookup.d.ts +8 -0
  180. package/dist/xlsx/formula/functions/lookup.d.ts.map +1 -0
  181. package/dist/xlsx/formula/functions/math-combin.d.ts +5 -0
  182. package/dist/xlsx/formula/functions/math-combin.d.ts.map +1 -0
  183. package/dist/xlsx/formula/functions/math-more.d.ts +4 -0
  184. package/dist/xlsx/formula/functions/math-more.d.ts.map +1 -0
  185. package/dist/xlsx/formula/functions/math-sum.d.ts +6 -0
  186. package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -0
  187. package/dist/xlsx/formula/functions/math.d.ts +7 -0
  188. package/dist/xlsx/formula/functions/math.d.ts.map +1 -0
  189. package/dist/xlsx/formula/functions/matrix.d.ts +3 -0
  190. package/dist/xlsx/formula/functions/matrix.d.ts.map +1 -0
  191. package/dist/xlsx/formula/functions/reference.d.ts +3 -0
  192. package/dist/xlsx/formula/functions/reference.d.ts.map +1 -0
  193. package/dist/xlsx/formula/functions/registry.d.ts +8 -0
  194. package/dist/xlsx/formula/functions/registry.d.ts.map +1 -0
  195. package/dist/xlsx/formula/functions/statistical-count.d.ts +3 -0
  196. package/dist/xlsx/formula/functions/statistical-count.d.ts.map +1 -0
  197. package/dist/xlsx/formula/functions/statistical-more.d.ts +10 -0
  198. package/dist/xlsx/formula/functions/statistical-more.d.ts.map +1 -0
  199. package/dist/xlsx/formula/functions/statistical-shape.d.ts +4 -0
  200. package/dist/xlsx/formula/functions/statistical-shape.d.ts.map +1 -0
  201. package/dist/xlsx/formula/functions/statistical-spread.d.ts +4 -0
  202. package/dist/xlsx/formula/functions/statistical-spread.d.ts.map +1 -0
  203. package/dist/xlsx/formula/functions/statistical.d.ts +3 -0
  204. package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -0
  205. package/dist/xlsx/formula/functions/stats-core.d.ts +30 -0
  206. package/dist/xlsx/formula/functions/stats-core.d.ts.map +1 -0
  207. package/dist/xlsx/formula/functions/text-convert.d.ts +4 -0
  208. package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -0
  209. package/dist/xlsx/formula/functions/text-extra.d.ts +3 -0
  210. package/dist/xlsx/formula/functions/text-extra.d.ts.map +1 -0
  211. package/dist/xlsx/formula/functions/text.d.ts +3 -0
  212. package/dist/xlsx/formula/functions/text.d.ts.map +1 -0
  213. package/dist/xlsx/formula/functions/types.d.ts +30 -0
  214. package/dist/xlsx/formula/functions/types.d.ts.map +1 -0
  215. package/dist/xlsx/formula/functions/workdays.d.ts +3 -0
  216. package/dist/xlsx/formula/functions/workdays.d.ts.map +1 -0
  217. package/dist/xlsx/formula/graph.d.ts +50 -0
  218. package/dist/xlsx/formula/graph.d.ts.map +1 -0
  219. package/dist/xlsx/formula/index.d.ts +14 -0
  220. package/dist/xlsx/formula/index.d.ts.map +1 -0
  221. package/dist/xlsx/formula/lexemes.d.ts +41 -0
  222. package/dist/xlsx/formula/lexemes.d.ts.map +1 -0
  223. package/dist/xlsx/formula/move.d.ts +23 -0
  224. package/dist/xlsx/formula/move.d.ts.map +1 -0
  225. package/dist/xlsx/formula/operators.d.ts +15 -0
  226. package/dist/xlsx/formula/operators.d.ts.map +1 -0
  227. package/dist/xlsx/formula/parser.d.ts +4 -0
  228. package/dist/xlsx/formula/parser.d.ts.map +1 -0
  229. package/dist/xlsx/formula/references.d.ts +36 -0
  230. package/dist/xlsx/formula/references.d.ts.map +1 -0
  231. package/dist/xlsx/formula/scc.d.ts +6 -0
  232. package/dist/xlsx/formula/scc.d.ts.map +1 -0
  233. package/dist/xlsx/formula/sheet-scan.d.ts +10 -0
  234. package/dist/xlsx/formula/sheet-scan.d.ts.map +1 -0
  235. package/dist/xlsx/formula/spill.d.ts +32 -0
  236. package/dist/xlsx/formula/spill.d.ts.map +1 -0
  237. package/dist/xlsx/formula/store.d.ts +10 -0
  238. package/dist/xlsx/formula/store.d.ts.map +1 -0
  239. package/dist/xlsx/formula/structured-to-a1.d.ts +18 -0
  240. package/dist/xlsx/formula/structured-to-a1.d.ts.map +1 -0
  241. package/dist/xlsx/formula/structured.d.ts +4 -0
  242. package/dist/xlsx/formula/structured.d.ts.map +1 -0
  243. package/dist/xlsx/formula/table-refs.d.ts +7 -0
  244. package/dist/xlsx/formula/table-refs.d.ts.map +1 -0
  245. package/dist/xlsx/formula/test-helpers.d.ts +32 -0
  246. package/dist/xlsx/formula/test-helpers.d.ts.map +1 -0
  247. package/dist/xlsx/formula/text-number.d.ts +11 -0
  248. package/dist/xlsx/formula/text-number.d.ts.map +1 -0
  249. package/dist/xlsx/formula/tokenizer.d.ts +21 -0
  250. package/dist/xlsx/formula/tokenizer.d.ts.map +1 -0
  251. package/dist/xlsx/formula/transform.d.ts +49 -0
  252. package/dist/xlsx/formula/transform.d.ts.map +1 -0
  253. package/dist/xlsx/formula/values.d.ts +63 -0
  254. package/dist/xlsx/formula/values.d.ts.map +1 -0
  255. package/dist/xlsx/index.cjs +20579 -0
  256. package/dist/xlsx/index.d.ts +14 -0
  257. package/dist/xlsx/index.d.ts.map +1 -0
  258. package/dist/xlsx/index.mjs +20396 -0
  259. package/dist/xlsx/layout/autofit.d.ts +12 -0
  260. package/dist/xlsx/layout/autofit.d.ts.map +1 -0
  261. package/dist/xlsx/layout/axis-metrics.d.ts +39 -0
  262. package/dist/xlsx/layout/axis-metrics.d.ts.map +1 -0
  263. package/dist/xlsx/layout/cell-view.d.ts +21 -0
  264. package/dist/xlsx/layout/cell-view.d.ts.map +1 -0
  265. package/dist/xlsx/layout/cf-evaluator.d.ts +26 -0
  266. package/dist/xlsx/layout/cf-evaluator.d.ts.map +1 -0
  267. package/dist/xlsx/layout/cf-helpers.d.ts +8 -0
  268. package/dist/xlsx/layout/cf-helpers.d.ts.map +1 -0
  269. package/dist/xlsx/layout/cf-values.d.ts +25 -0
  270. package/dist/xlsx/layout/cf-values.d.ts.map +1 -0
  271. package/dist/xlsx/layout/chart-colors.d.ts +6 -0
  272. package/dist/xlsx/layout/chart-colors.d.ts.map +1 -0
  273. package/dist/xlsx/layout/chart-scale.d.ts +25 -0
  274. package/dist/xlsx/layout/chart-scale.d.ts.map +1 -0
  275. package/dist/xlsx/layout/chart-svg-cartesian.d.ts +5 -0
  276. package/dist/xlsx/layout/chart-svg-cartesian.d.ts.map +1 -0
  277. package/dist/xlsx/layout/chart-svg-radial.d.ts +7 -0
  278. package/dist/xlsx/layout/chart-svg-radial.d.ts.map +1 -0
  279. package/dist/xlsx/layout/chart-svg-util.d.ts +29 -0
  280. package/dist/xlsx/layout/chart-svg-util.d.ts.map +1 -0
  281. package/dist/xlsx/layout/chart-svg.d.ts +7 -0
  282. package/dist/xlsx/layout/chart-svg.d.ts.map +1 -0
  283. package/dist/xlsx/layout/chart-view.d.ts +42 -0
  284. package/dist/xlsx/layout/chart-view.d.ts.map +1 -0
  285. package/dist/xlsx/layout/colors.d.ts +20 -0
  286. package/dist/xlsx/layout/colors.d.ts.map +1 -0
  287. package/dist/xlsx/layout/index.d.ts +21 -0
  288. package/dist/xlsx/layout/index.d.ts.map +1 -0
  289. package/dist/xlsx/layout/metrics.d.ts +41 -0
  290. package/dist/xlsx/layout/metrics.d.ts.map +1 -0
  291. package/dist/xlsx/layout/navigate.d.ts +6 -0
  292. package/dist/xlsx/layout/navigate.d.ts.map +1 -0
  293. package/dist/xlsx/layout/ref-evaluator.d.ts +16 -0
  294. package/dist/xlsx/layout/ref-evaluator.d.ts.map +1 -0
  295. package/dist/xlsx/layout/row-autofit.d.ts +17 -0
  296. package/dist/xlsx/layout/row-autofit.d.ts.map +1 -0
  297. package/dist/xlsx/layout/sheet-queries.d.ts +37 -0
  298. package/dist/xlsx/layout/sheet-queries.d.ts.map +1 -0
  299. package/dist/xlsx/layout/style-view.d.ts +18 -0
  300. package/dist/xlsx/layout/style-view.d.ts.map +1 -0
  301. package/dist/xlsx/layout/tint.d.ts +26 -0
  302. package/dist/xlsx/layout/tint.d.ts.map +1 -0
  303. package/dist/xlsx/layout/types.d.ts +106 -0
  304. package/dist/xlsx/layout/types.d.ts.map +1 -0
  305. package/dist/xlsx/layout/units.d.ts +37 -0
  306. package/dist/xlsx/layout/units.d.ts.map +1 -0
  307. package/dist/xlsx/layout/viewport.d.ts +27 -0
  308. package/dist/xlsx/layout/viewport.d.ts.map +1 -0
  309. package/dist/xlsx/load/csv.d.ts +29 -0
  310. package/dist/xlsx/load/csv.d.ts.map +1 -0
  311. package/dist/xlsx/load/detect.d.ts +22 -0
  312. package/dist/xlsx/load/detect.d.ts.map +1 -0
  313. package/dist/xlsx/load/index.cjs +15619 -0
  314. package/dist/xlsx/load/index.d.ts +4 -0
  315. package/dist/xlsx/load/index.d.ts.map +1 -0
  316. package/dist/xlsx/load/index.mjs +15603 -0
  317. package/dist/xlsx/load/legacy-xls-sheet.d.ts +14 -0
  318. package/dist/xlsx/load/legacy-xls-sheet.d.ts.map +1 -0
  319. package/dist/xlsx/load/legacy-xls-styles.d.ts +9 -0
  320. package/dist/xlsx/load/legacy-xls-styles.d.ts.map +1 -0
  321. package/dist/xlsx/load/legacy-xls.d.ts +10 -0
  322. package/dist/xlsx/load/legacy-xls.d.ts.map +1 -0
  323. package/dist/xlsx/model.d.ts +535 -0
  324. package/dist/xlsx/model.d.ts.map +1 -0
  325. package/dist/xlsx/numfmt/builtins.d.ts +15 -0
  326. package/dist/xlsx/numfmt/builtins.d.ts.map +1 -0
  327. package/dist/xlsx/numfmt/compile.d.ts +26 -0
  328. package/dist/xlsx/numfmt/compile.d.ts.map +1 -0
  329. package/dist/xlsx/numfmt/date.d.ts +34 -0
  330. package/dist/xlsx/numfmt/date.d.ts.map +1 -0
  331. package/dist/xlsx/numfmt/decimal.d.ts +27 -0
  332. package/dist/xlsx/numfmt/decimal.d.ts.map +1 -0
  333. package/dist/xlsx/numfmt/decimals.d.ts +10 -0
  334. package/dist/xlsx/numfmt/decimals.d.ts.map +1 -0
  335. package/dist/xlsx/numfmt/format.d.ts +13 -0
  336. package/dist/xlsx/numfmt/format.d.ts.map +1 -0
  337. package/dist/xlsx/numfmt/fraction.d.ts +38 -0
  338. package/dist/xlsx/numfmt/fraction.d.ts.map +1 -0
  339. package/dist/xlsx/numfmt/general.d.ts +8 -0
  340. package/dist/xlsx/numfmt/general.d.ts.map +1 -0
  341. package/dist/xlsx/numfmt/index.d.ts +8 -0
  342. package/dist/xlsx/numfmt/index.d.ts.map +1 -0
  343. package/dist/xlsx/numfmt/input-date.d.ts +16 -0
  344. package/dist/xlsx/numfmt/input-date.d.ts.map +1 -0
  345. package/dist/xlsx/numfmt/input.d.ts +23 -0
  346. package/dist/xlsx/numfmt/input.d.ts.map +1 -0
  347. package/dist/xlsx/numfmt/number.d.ts +38 -0
  348. package/dist/xlsx/numfmt/number.d.ts.map +1 -0
  349. package/dist/xlsx/numfmt/tokenizer.d.ts +6 -0
  350. package/dist/xlsx/numfmt/tokenizer.d.ts.map +1 -0
  351. package/dist/xlsx/numfmt/types.d.ts +87 -0
  352. package/dist/xlsx/numfmt/types.d.ts.map +1 -0
  353. package/dist/xlsx/read/builtin-formats.d.ts +10 -0
  354. package/dist/xlsx/read/builtin-formats.d.ts.map +1 -0
  355. package/dist/xlsx/read/chart.d.ts +7 -0
  356. package/dist/xlsx/read/chart.d.ts.map +1 -0
  357. package/dist/xlsx/read/comments.d.ts +10 -0
  358. package/dist/xlsx/read/comments.d.ts.map +1 -0
  359. package/dist/xlsx/read/conditional.d.ts +6 -0
  360. package/dist/xlsx/read/conditional.d.ts.map +1 -0
  361. package/dist/xlsx/read/dates.d.ts +6 -0
  362. package/dist/xlsx/read/dates.d.ts.map +1 -0
  363. package/dist/xlsx/read/drawing.d.ts +10 -0
  364. package/dist/xlsx/read/drawing.d.ts.map +1 -0
  365. package/dist/xlsx/read/formula-storage.d.ts +5 -0
  366. package/dist/xlsx/read/formula-storage.d.ts.map +1 -0
  367. package/dist/xlsx/read/formula-text.d.ts +15 -0
  368. package/dist/xlsx/read/formula-text.d.ts.map +1 -0
  369. package/dist/xlsx/read/index.d.ts +3 -0
  370. package/dist/xlsx/read/index.d.ts.map +1 -0
  371. package/dist/xlsx/read/load.d.ts +7 -0
  372. package/dist/xlsx/read/load.d.ts.map +1 -0
  373. package/dist/xlsx/read/metadata.d.ts +8 -0
  374. package/dist/xlsx/read/metadata.d.ts.map +1 -0
  375. package/dist/xlsx/read/package.d.ts +60 -0
  376. package/dist/xlsx/read/package.d.ts.map +1 -0
  377. package/dist/xlsx/read/print-options.d.ts +7 -0
  378. package/dist/xlsx/read/print-options.d.ts.map +1 -0
  379. package/dist/xlsx/read/shared-strings.d.ts +13 -0
  380. package/dist/xlsx/read/shared-strings.d.ts.map +1 -0
  381. package/dist/xlsx/read/sheet-data.d.ts +15 -0
  382. package/dist/xlsx/read/sheet-data.d.ts.map +1 -0
  383. package/dist/xlsx/read/sheet-props.d.ts +21 -0
  384. package/dist/xlsx/read/sheet-props.d.ts.map +1 -0
  385. package/dist/xlsx/read/style-parts.d.ts +20 -0
  386. package/dist/xlsx/read/style-parts.d.ts.map +1 -0
  387. package/dist/xlsx/read/styles.d.ts +17 -0
  388. package/dist/xlsx/read/styles.d.ts.map +1 -0
  389. package/dist/xlsx/read/tables.d.ts +4 -0
  390. package/dist/xlsx/read/tables.d.ts.map +1 -0
  391. package/dist/xlsx/read/theme.d.ts +11 -0
  392. package/dist/xlsx/read/theme.d.ts.map +1 -0
  393. package/dist/xlsx/read/workbook-part.d.ts +23 -0
  394. package/dist/xlsx/read/workbook-part.d.ts.map +1 -0
  395. package/dist/xlsx/read/worksheet.d.ts +18 -0
  396. package/dist/xlsx/read/worksheet.d.ts.map +1 -0
  397. package/dist/xlsx/read/xml-util.d.ts +28 -0
  398. package/dist/xlsx/read/xml-util.d.ts.map +1 -0
  399. package/dist/xlsx/styles.d.ts +27 -0
  400. package/dist/xlsx/styles.d.ts.map +1 -0
  401. package/dist/xlsx/time-period.d.ts +9 -0
  402. package/dist/xlsx/time-period.d.ts.map +1 -0
  403. package/dist/xlsx/workbook.d.ts +26 -0
  404. package/dist/xlsx/workbook.d.ts.map +1 -0
  405. package/dist/xlsx/write/chart-patch.d.ts +9 -0
  406. package/dist/xlsx/write/chart-patch.d.ts.map +1 -0
  407. package/dist/xlsx/write/chart.d.ts +9 -0
  408. package/dist/xlsx/write/chart.d.ts.map +1 -0
  409. package/dist/xlsx/write/comments.d.ts +23 -0
  410. package/dist/xlsx/write/comments.d.ts.map +1 -0
  411. package/dist/xlsx/write/conditional.d.ts +5 -0
  412. package/dist/xlsx/write/conditional.d.ts.map +1 -0
  413. package/dist/xlsx/write/drawing.d.ts +10 -0
  414. package/dist/xlsx/write/drawing.d.ts.map +1 -0
  415. package/dist/xlsx/write/dynamic-array.d.ts +16 -0
  416. package/dist/xlsx/write/dynamic-array.d.ts.map +1 -0
  417. package/dist/xlsx/write/index.d.ts +2 -0
  418. package/dist/xlsx/write/index.d.ts.map +1 -0
  419. package/dist/xlsx/write/package-writer.d.ts +31 -0
  420. package/dist/xlsx/write/package-writer.d.ts.map +1 -0
  421. package/dist/xlsx/write/save.d.ts +8 -0
  422. package/dist/xlsx/write/save.d.ts.map +1 -0
  423. package/dist/xlsx/write/shared-strings.d.ts +13 -0
  424. package/dist/xlsx/write/shared-strings.d.ts.map +1 -0
  425. package/dist/xlsx/write/sheet-data.d.ts +19 -0
  426. package/dist/xlsx/write/sheet-data.d.ts.map +1 -0
  427. package/dist/xlsx/write/sheet-parts.d.ts +34 -0
  428. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -0
  429. package/dist/xlsx/write/sheet-props.d.ts +16 -0
  430. package/dist/xlsx/write/sheet-props.d.ts.map +1 -0
  431. package/dist/xlsx/write/snapshot.d.ts +9 -0
  432. package/dist/xlsx/write/snapshot.d.ts.map +1 -0
  433. package/dist/xlsx/write/style-xml.d.ts +13 -0
  434. package/dist/xlsx/write/style-xml.d.ts.map +1 -0
  435. package/dist/xlsx/write/styles.d.ts +24 -0
  436. package/dist/xlsx/write/styles.d.ts.map +1 -0
  437. package/dist/xlsx/write/tables.d.ts +18 -0
  438. package/dist/xlsx/write/tables.d.ts.map +1 -0
  439. package/dist/xlsx/write/theme.d.ts +9 -0
  440. package/dist/xlsx/write/theme.d.ts.map +1 -0
  441. package/dist/xlsx/write/workbook-part.d.ts +16 -0
  442. package/dist/xlsx/write/workbook-part.d.ts.map +1 -0
  443. package/dist/xlsx/write/worksheet.d.ts +6 -0
  444. package/dist/xlsx/write/worksheet.d.ts.map +1 -0
  445. package/dist/xlsx/write/xml-out.d.ts +25 -0
  446. package/dist/xlsx/write/xml-out.d.ts.map +1 -0
  447. package/dist/xml/index.cjs +16 -0
  448. package/dist/xml/index.mjs +16 -0
  449. package/dist/xml/namespaces.d.ts +16 -0
  450. package/dist/xml/namespaces.d.ts.map +1 -1
  451. package/package.json +16 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # ooxml-core
4
4
 
5
5
  **Read, edit, validate and write Office Open XML documents in TypeScript.**
6
- One package, one XML model, every format: Word, PowerPoint and the shared building blocks beneath them. Spreadsheets, Visio and more are planned.
6
+ One package, one XML model, every format: Word, PowerPoint, Excel and the shared building blocks beneath them. Visio and more are planned.
7
7
 
8
8
  [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
9
9
  [![CI](https://github.com/ChristopherVR/ooxml/actions/workflows/ci.yml/badge.svg)](https://github.com/ChristopherVR/ooxml/actions/workflows/ci.yml)
@@ -28,24 +28,25 @@ One package, one XML model, every format: Word, PowerPoint and the shared buildi
28
28
 
29
29
  ## One package, many areas
30
30
 
31
- `ooxml-core` is a **single published package**. Every area is a subpath import, so you only load what you use, and the formats are symmetrical: `docx` and `pptx` are each imported through their own subpaths, and the root entry groups only the shared building blocks by namespace.
31
+ `ooxml-core` is a **single published package**. Every area is a subpath import, so you only load what you use, and the formats are symmetrical: `docx`, `pptx` and `xlsx` are each imported through their own subpaths, and the root entry groups only the shared building blocks by namespace.
32
32
 
33
33
  ```ts
34
34
  import { parseXml } from 'ooxml-core/xml'; // one area
35
35
  import { xml, opc } from 'ooxml-core'; // or by namespace (shared building blocks)
36
36
  ```
37
37
 
38
- | Area | What it is |
39
- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
40
- | `xml` | The shared XML model: strict DOM parsing and serialization, namespaces, namespace-aware helpers. |
41
- | `opc` | Open Packaging Conventions: relationships, content types, part paths, zip helpers, safe hyperlinks. |
42
- | `units` | Branded EMU, twip and point types, constants and conversions. |
43
- | `color` | Hex, RGB, HSL and linear colour primitives, OOXML percent and angle parsing. |
44
- | `geometry` | DrawingML preset shapes, connection sites, clip paths, callouts and boolean shape operations. |
45
- | `diagram` | SmartArt (DiagramML), format-neutral: data model, layout/colour/quick-style parts, the cached `dsp:drawing` shape tree, relationship resolution and a loader. Used by `docx`; `pptx` re-imports its parsers. |
46
- | `collab` | Format-neutral real-time collaboration on Yjs: session and provider lifecycle, awareness/presence, transport-neutral sync (WebSocket, in-memory, any byte channel), update codecs, ordering helpers, asset sync and the product adapter seam. See `docs/collab-area.md`. |
47
- | `docx` | WordprocessingML: model, parser, preserving serializer, editing, validation. Also `/docx/embedded`. `/docx/layout` is the DOM-free pagination engine (an approximation of Word, not parity) and `/docx/load` detects and loads DOCX and legacy .doc (ole2 inlined). |
48
- | `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`. |
38
+ | Area | What it is |
39
+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
40
+ | `xml` | The shared XML model: strict DOM parsing and serialization, namespaces, namespace-aware helpers. |
41
+ | `opc` | Open Packaging Conventions: relationships, content types, part paths, zip helpers, safe hyperlinks. |
42
+ | `units` | Branded EMU, twip and point types, constants and conversions. |
43
+ | `color` | Hex, RGB, HSL and linear colour primitives, OOXML percent and angle parsing. |
44
+ | `geometry` | DrawingML preset shapes, connection sites, clip paths, callouts and boolean shape operations. |
45
+ | `diagram` | SmartArt (DiagramML), format-neutral: data model, layout/colour/quick-style parts, the cached `dsp:drawing` shape tree, relationship resolution and a loader. Used by `docx`; `pptx` re-imports its parsers. |
46
+ | `collab` | Format-neutral real-time collaboration on Yjs: session and provider lifecycle, awareness/presence, transport-neutral sync (WebSocket, in-memory, any byte channel), update codecs, ordering helpers, asset sync and the product adapter seam. See `docs/collab-area.md`. |
47
+ | `docx` | WordprocessingML: model, parser, preserving serializer, editing, validation. Also `/docx/embedded`. `/docx/layout` is the DOM-free pagination engine (an approximation of Word, not parity) and `/docx/load` detects and loads DOCX and legacy .doc (ole2 inlined). |
48
+ | `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`. |
49
+ | `xlsx` | SpreadsheetML: workbook model, `.xlsx`/`.xlsm` reader and preserving writer, formula engine (dependency graph, dynamic arrays, 380+ functions), Excel number formats, editing commands with undo, and the DOM-free grid layout (sizes, colours, conditional formats, charts as SVG). `/xlsx/load` detects and loads `.xlsx`, `.xlsm`, legacy `.xls` (ole2 inlined) and CSV. An approximation of Excel, not parity. |
49
50
 
50
51
  Legacy binary formats (`.doc`, `.xls`, `.ppt`) and the compound-file container live in the sibling package [`ole2`](https://github.com/ChristopherVR/ole2); this package never contains binary codecs, and `ole2` never contains modern OOXML.
51
52
 
@@ -96,7 +97,7 @@ const part = resolvePartPath('word/document.xml', rels.get('rId5')!.target);
96
97
  The shared areas come first, then more formats on the same foundation:
97
98
 
98
99
  - **Shared layers:** DrawingML (fills, lines, effects, text, theme), charts, diagrams (SmartArt), maths, encryption primitives and schema-generated types, each as an area, written once for every format.
99
- - **More formats:** `xlsx` (SpreadsheetML), Visio (`.vsdx`, also an OPC package), and further Office Open XML parts as they are needed. Each arrives as its own area.
100
+ - **More formats:** Visio (`.vsdx`, also an OPC package), and further Office Open XML parts as they are needed. Each arrives as its own area.
100
101
  - **One XML model:** the `pptx` area still uses its own XML object model and is compiled with relaxed TypeScript flags while it is migrated onto the shared `xml` area and tightened. New code is strict.
101
102
  - **Collaboration:** the Yjs and sync protocol that the viewers share will live here as a `collab` area.
102
103
 
@@ -7634,7 +7634,7 @@ function createDocument() {
7634
7634
  };
7635
7635
  }
7636
7636
 
7637
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
7637
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
7638
7638
  var FC_LCB_INDEX = {
7639
7639
  plcfbteChpx: 12,
7640
7640
  plcfbtePapx: 13,
@@ -7703,7 +7703,7 @@ function patchDocFib(wordDoc, fib, patch) {
7703
7703
  view.setUint32(papxOff + 4, patch.plcfbtePapx.lcb, true);
7704
7704
  }
7705
7705
 
7706
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
7706
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
7707
7707
  var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
7708
7708
  var ENDOFCHAIN = 4294967294;
7709
7709
  var FREESECT = 4294967295;
@@ -7721,7 +7721,7 @@ var Ole2ParseError = class extends Error {
7721
7721
  }
7722
7722
  };
7723
7723
 
7724
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
7724
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
7725
7725
  function parseOle2(buffer) {
7726
7726
  const data = new Uint8Array(buffer);
7727
7727
  const view = new DataView(buffer);
@@ -7899,7 +7899,7 @@ function parseOle2(buffer) {
7899
7899
  return { entries, getStream };
7900
7900
  }
7901
7901
 
7902
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
7902
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
7903
7903
  function compareDirEntryNames(a, b) {
7904
7904
  if (a.length !== b.length) {
7905
7905
  return a.length - b.length;
@@ -7945,7 +7945,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
7945
7945
  }
7946
7946
  }
7947
7947
 
7948
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
7948
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
7949
7949
  function writeHeader(outView, outBytes, params) {
7950
7950
  outBytes.set(OLE_MAGIC, 0);
7951
7951
  outView.setUint16(24, 62, true);
@@ -8037,7 +8037,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
8037
8037
  }
8038
8038
  }
8039
8039
 
8040
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
8040
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
8041
8041
  function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
8042
8042
  const sectorSize = 512;
8043
8043
  const miniSectorSize = 64;
@@ -8203,7 +8203,7 @@ function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
8203
8203
  return output;
8204
8204
  }
8205
8205
 
8206
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
8206
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
8207
8207
  function unwrapDocBytes(bytes) {
8208
8208
  if (bytes.length < 8 || bytes[0] !== 208 || bytes[1] !== 207 || bytes[2] !== 17 || bytes[3] !== 224 || bytes[4] !== 161 || bytes[5] !== 177 || bytes[6] !== 26 || bytes[7] !== 225) {
8209
8209
  return void 0;
@@ -8244,7 +8244,7 @@ function unwrapDocBytes(bytes) {
8244
8244
  }
8245
8245
  }
8246
8246
 
8247
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
8247
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
8248
8248
  var PAGE_SIZE = 512;
8249
8249
  function parseBteTable(tableStream, at) {
8250
8250
  const view = new DataView(tableStream.buffer, tableStream.byteOffset, tableStream.byteLength);
@@ -8352,7 +8352,7 @@ function buildSingleRunChpxPage(fcStart, fcEnd, blob) {
8352
8352
  return page;
8353
8353
  }
8354
8354
 
8355
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
8355
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
8356
8356
  var CP1252_HIGH_BLOCK = [
8357
8357
  8364,
8358
8358
  129,
@@ -8420,7 +8420,7 @@ function encodeCp1252(text) {
8420
8420
  return Uint8Array.from(bytes);
8421
8421
  }
8422
8422
 
8423
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
8423
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
8424
8424
  var CLXT_PRC = 1;
8425
8425
  var CLXT_PCDT = 2;
8426
8426
  function parsePieceTable(tableStream, clx) {
@@ -8582,7 +8582,7 @@ function buildClxBytes(pieces) {
8582
8582
  return bytes;
8583
8583
  }
8584
8584
 
8585
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
8585
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
8586
8586
  var RISKY_PLCF_INDICES = [3, 4, 5, 16, 17, 18, 19, 20];
8587
8587
  var RISKY_STTB_INDICES = [21, 22, 23];
8588
8588
  function hasUnsupportedFeatures(wordDoc, fib) {
@@ -7628,7 +7628,7 @@ function createDocument() {
7628
7628
  };
7629
7629
  }
7630
7630
 
7631
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
7631
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
7632
7632
  var FC_LCB_INDEX = {
7633
7633
  plcfbteChpx: 12,
7634
7634
  plcfbtePapx: 13,
@@ -7697,7 +7697,7 @@ function patchDocFib(wordDoc, fib, patch) {
7697
7697
  view.setUint32(papxOff + 4, patch.plcfbtePapx.lcb, true);
7698
7698
  }
7699
7699
 
7700
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
7700
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
7701
7701
  var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
7702
7702
  var ENDOFCHAIN = 4294967294;
7703
7703
  var FREESECT = 4294967295;
@@ -7715,7 +7715,7 @@ var Ole2ParseError = class extends Error {
7715
7715
  }
7716
7716
  };
7717
7717
 
7718
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
7718
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
7719
7719
  function parseOle2(buffer) {
7720
7720
  const data = new Uint8Array(buffer);
7721
7721
  const view = new DataView(buffer);
@@ -7893,7 +7893,7 @@ function parseOle2(buffer) {
7893
7893
  return { entries, getStream };
7894
7894
  }
7895
7895
 
7896
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
7896
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
7897
7897
  function compareDirEntryNames(a, b) {
7898
7898
  if (a.length !== b.length) {
7899
7899
  return a.length - b.length;
@@ -7939,7 +7939,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
7939
7939
  }
7940
7940
  }
7941
7941
 
7942
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
7942
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
7943
7943
  function writeHeader(outView, outBytes, params) {
7944
7944
  outBytes.set(OLE_MAGIC, 0);
7945
7945
  outView.setUint16(24, 62, true);
@@ -8031,7 +8031,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
8031
8031
  }
8032
8032
  }
8033
8033
 
8034
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
8034
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
8035
8035
  function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
8036
8036
  const sectorSize = 512;
8037
8037
  const miniSectorSize = 64;
@@ -8197,7 +8197,7 @@ function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
8197
8197
  return output;
8198
8198
  }
8199
8199
 
8200
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
8200
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
8201
8201
  function unwrapDocBytes(bytes) {
8202
8202
  if (bytes.length < 8 || bytes[0] !== 208 || bytes[1] !== 207 || bytes[2] !== 17 || bytes[3] !== 224 || bytes[4] !== 161 || bytes[5] !== 177 || bytes[6] !== 26 || bytes[7] !== 225) {
8203
8203
  return void 0;
@@ -8238,7 +8238,7 @@ function unwrapDocBytes(bytes) {
8238
8238
  }
8239
8239
  }
8240
8240
 
8241
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
8241
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
8242
8242
  var PAGE_SIZE = 512;
8243
8243
  function parseBteTable(tableStream, at) {
8244
8244
  const view = new DataView(tableStream.buffer, tableStream.byteOffset, tableStream.byteLength);
@@ -8346,7 +8346,7 @@ function buildSingleRunChpxPage(fcStart, fcEnd, blob) {
8346
8346
  return page;
8347
8347
  }
8348
8348
 
8349
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
8349
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
8350
8350
  var CP1252_HIGH_BLOCK = [
8351
8351
  8364,
8352
8352
  129,
@@ -8414,7 +8414,7 @@ function encodeCp1252(text) {
8414
8414
  return Uint8Array.from(bytes);
8415
8415
  }
8416
8416
 
8417
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
8417
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
8418
8418
  var CLXT_PRC = 1;
8419
8419
  var CLXT_PCDT = 2;
8420
8420
  function parsePieceTable(tableStream, clx) {
@@ -8576,7 +8576,7 @@ function buildClxBytes(pieces) {
8576
8576
  return bytes;
8577
8577
  }
8578
8578
 
8579
- // node_modules/.bun/@christophervr+ole2@0.3.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
8579
+ // node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
8580
8580
  var RISKY_PLCF_INDICES = [3, 4, 5, 16, 17, 18, 19, 20];
8581
8581
  var RISKY_STTB_INDICES = [21, 22, 23];
8582
8582
  function hasUnsupportedFeatures(wordDoc, fib) {
package/dist/index.cjs CHANGED
@@ -391,7 +391,24 @@ var RELATIONSHIP_TYPES = {
391
391
  diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
392
392
  coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
393
393
  extendedProperties: `${BASE}/extended-properties`,
394
- customXml: `${BASE}/customXml`
394
+ customXml: `${BASE}/customXml`,
395
+ worksheet: `${BASE}/worksheet`,
396
+ chartsheet: `${BASE}/chartsheet`,
397
+ dialogsheet: `${BASE}/dialogsheet`,
398
+ xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
399
+ sharedStrings: `${BASE}/sharedStrings`,
400
+ drawing: `${BASE}/drawing`,
401
+ table: `${BASE}/table`,
402
+ threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
403
+ person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
404
+ vmlDrawing: `${BASE}/vmlDrawing`,
405
+ calcChain: `${BASE}/calcChain`,
406
+ vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
407
+ pivotTable: `${BASE}/pivotTable`,
408
+ pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
409
+ externalLink: `${BASE}/externalLink`,
410
+ printerSettings: `${BASE}/printerSettings`,
411
+ sheetMetadata: `${BASE}/sheetMetadata`
395
412
  };
396
413
 
397
414
  // src/xml/index.ts
@@ -453,6 +470,22 @@ var NS = {
453
470
  o: "urn:schemas-microsoft-com:office:office",
454
471
  /** Word VML extensions. */
455
472
  w10: "urn:schemas-microsoft-com:office:word",
473
+ /** SpreadsheetML drawing (`xdr:wsDr`, cell anchors). */
474
+ xdr: "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
475
+ /** SpreadsheetML 2009 extensions (`x14:conditionalFormatting`, `x14:dataBar`). */
476
+ x14: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",
477
+ /** SpreadsheetML 2009 attribute extensions (`x14ac:dyDescent`). */
478
+ x14ac: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
479
+ /** SpreadsheetML revision ids (`xr:uid`). */
480
+ xr: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
481
+ /** Excel threaded comments and persons. */
482
+ tc: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",
483
+ /** Legacy VML Excel client data (`x:ClientData`). */
484
+ xv: "urn:schemas-microsoft-com:office:excel",
485
+ /** Extended (app) properties. */
486
+ extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
487
+ /** Dublin Core terms (`dcterms:created`). */
488
+ dcterms: "http://purl.org/dc/terms/",
456
489
  /** XML itself (`xml:space`). */
457
490
  xml: "http://www.w3.org/XML/1998/namespace"
458
491
  };
package/dist/index.mjs CHANGED
@@ -389,7 +389,24 @@ var RELATIONSHIP_TYPES = {
389
389
  diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
390
390
  coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
391
391
  extendedProperties: `${BASE}/extended-properties`,
392
- customXml: `${BASE}/customXml`
392
+ customXml: `${BASE}/customXml`,
393
+ worksheet: `${BASE}/worksheet`,
394
+ chartsheet: `${BASE}/chartsheet`,
395
+ dialogsheet: `${BASE}/dialogsheet`,
396
+ xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
397
+ sharedStrings: `${BASE}/sharedStrings`,
398
+ drawing: `${BASE}/drawing`,
399
+ table: `${BASE}/table`,
400
+ threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
401
+ person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
402
+ vmlDrawing: `${BASE}/vmlDrawing`,
403
+ calcChain: `${BASE}/calcChain`,
404
+ vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
405
+ pivotTable: `${BASE}/pivotTable`,
406
+ pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
407
+ externalLink: `${BASE}/externalLink`,
408
+ printerSettings: `${BASE}/printerSettings`,
409
+ sheetMetadata: `${BASE}/sheetMetadata`
393
410
  };
394
411
 
395
412
  // src/xml/index.ts
@@ -451,6 +468,22 @@ var NS = {
451
468
  o: "urn:schemas-microsoft-com:office:office",
452
469
  /** Word VML extensions. */
453
470
  w10: "urn:schemas-microsoft-com:office:word",
471
+ /** SpreadsheetML drawing (`xdr:wsDr`, cell anchors). */
472
+ xdr: "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
473
+ /** SpreadsheetML 2009 extensions (`x14:conditionalFormatting`, `x14:dataBar`). */
474
+ x14: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",
475
+ /** SpreadsheetML 2009 attribute extensions (`x14ac:dyDescent`). */
476
+ x14ac: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
477
+ /** SpreadsheetML revision ids (`xr:uid`). */
478
+ xr: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
479
+ /** Excel threaded comments and persons. */
480
+ tc: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",
481
+ /** Legacy VML Excel client data (`x:ClientData`). */
482
+ xv: "urn:schemas-microsoft-com:office:excel",
483
+ /** Extended (app) properties. */
484
+ extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
485
+ /** Dublin Core terms (`dcterms:created`). */
486
+ dcterms: "http://purl.org/dc/terms/",
454
487
  /** XML itself (`xml:space`). */
455
488
  xml: "http://www.w3.org/XML/1998/namespace"
456
489
  };
@@ -33,7 +33,24 @@ var RELATIONSHIP_TYPES = {
33
33
  diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
34
34
  coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
35
35
  extendedProperties: `${BASE}/extended-properties`,
36
- customXml: `${BASE}/customXml`
36
+ customXml: `${BASE}/customXml`,
37
+ worksheet: `${BASE}/worksheet`,
38
+ chartsheet: `${BASE}/chartsheet`,
39
+ dialogsheet: `${BASE}/dialogsheet`,
40
+ xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
41
+ sharedStrings: `${BASE}/sharedStrings`,
42
+ drawing: `${BASE}/drawing`,
43
+ table: `${BASE}/table`,
44
+ threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
45
+ person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
46
+ vmlDrawing: `${BASE}/vmlDrawing`,
47
+ calcChain: `${BASE}/calcChain`,
48
+ vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
49
+ pivotTable: `${BASE}/pivotTable`,
50
+ pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
51
+ externalLink: `${BASE}/externalLink`,
52
+ printerSettings: `${BASE}/printerSettings`,
53
+ sheetMetadata: `${BASE}/sheetMetadata`
37
54
  };
38
55
 
39
56
  // src/xml/namespaces.ts
@@ -31,7 +31,24 @@ var RELATIONSHIP_TYPES = {
31
31
  diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
32
32
  coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
33
33
  extendedProperties: `${BASE}/extended-properties`,
34
- customXml: `${BASE}/customXml`
34
+ customXml: `${BASE}/customXml`,
35
+ worksheet: `${BASE}/worksheet`,
36
+ chartsheet: `${BASE}/chartsheet`,
37
+ dialogsheet: `${BASE}/dialogsheet`,
38
+ xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
39
+ sharedStrings: `${BASE}/sharedStrings`,
40
+ drawing: `${BASE}/drawing`,
41
+ table: `${BASE}/table`,
42
+ threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
43
+ person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
44
+ vmlDrawing: `${BASE}/vmlDrawing`,
45
+ calcChain: `${BASE}/calcChain`,
46
+ vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
47
+ pivotTable: `${BASE}/pivotTable`,
48
+ pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
49
+ externalLink: `${BASE}/externalLink`,
50
+ printerSettings: `${BASE}/printerSettings`,
51
+ sheetMetadata: `${BASE}/sheetMetadata`
35
52
  };
36
53
 
37
54
  // src/xml/namespaces.ts
@@ -29,6 +29,23 @@ export declare const RELATIONSHIP_TYPES: {
29
29
  readonly coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
30
30
  readonly extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
31
31
  readonly customXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
32
+ readonly worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
33
+ readonly chartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";
34
+ readonly dialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";
35
+ readonly xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";
36
+ readonly sharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";
37
+ readonly drawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
38
+ readonly table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table";
39
+ readonly threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
40
+ readonly person: "http://schemas.microsoft.com/office/2017/10/relationships/person";
41
+ readonly vmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing";
42
+ readonly calcChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain";
43
+ readonly vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject";
44
+ readonly pivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";
45
+ readonly pivotCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";
46
+ readonly externalLink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
47
+ readonly printerSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings";
48
+ readonly sheetMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";
32
49
  };
33
50
  export type RelationshipTypeKey = keyof typeof RELATIONSHIP_TYPES;
34
51
  //# sourceMappingURL=relationship-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"relationship-types.d.ts","sourceRoot":"","sources":["../../src/opc/relationship-types.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"relationship-types.d.ts","sourceRoot":"","sources":["../../src/opc/relationship-types.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDrB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC"}