ooxml-ui 1.12.3 → 1.14.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 (325) hide show
  1. package/custom-elements.json +395 -5
  2. package/dist/chrome/status-layout.d.ts +23 -0
  3. package/dist/{chunk-S6ZXU442.js → chunk-7E3HU7RL.js} +1 -1
  4. package/dist/{chunk-PXIYHFZ5.js → chunk-ANPFMQ6E.js} +1 -1
  5. package/dist/{chunk-UKXJLI3N.js → chunk-C3MXKNNK.js} +2431 -311
  6. package/dist/{chunk-MML6EKFH.js → chunk-C5F7454A.js} +5 -5
  7. package/dist/{chunk-OGNNNTKI.js → chunk-CWBSXK7P.js} +1 -1
  8. package/dist/{chunk-LHS5DYLT.js → chunk-DSQBXLMO.js} +1 -1
  9. package/dist/{chunk-L7JV5FVE.js → chunk-KNC2UEUR.js} +1 -1
  10. package/dist/{chunk-735S7V4M.js → chunk-LAVVSCRJ.js} +415 -116
  11. package/dist/{chunk-SPNWHKSR.js → chunk-LD3K2RDN.js} +7 -5
  12. package/dist/chunk-UBBC5FH7.js +31 -0
  13. package/dist/controls.d.ts +2 -1
  14. package/dist/controls.d.ts.map +1 -1
  15. package/dist/controls.js +4 -4
  16. package/dist/dialog/options-categories.d.ts +39 -0
  17. package/dist/dialog/options-categories.d.ts.map +1 -0
  18. package/dist/dialog/options-controls.d.ts +49 -0
  19. package/dist/dialog/options-controls.d.ts.map +1 -0
  20. package/dist/dialog/options-dialog.d.ts +76 -41
  21. package/dist/dialog/options-dialog.d.ts.map +1 -1
  22. package/dist/docx/auto-fit.d.ts +10 -0
  23. package/dist/docx/backstage-customize.d.ts +7 -0
  24. package/dist/docx/backstage-options.d.ts +13 -3
  25. package/dist/docx/backstage-pages.d.ts +0 -6
  26. package/dist/docx/backstage.d.ts +3 -0
  27. package/dist/docx/canvas-click.d.ts +7 -0
  28. package/dist/docx/content-control-calendar.d.ts +7 -0
  29. package/dist/docx/content-control-dialog.d.ts +7 -0
  30. package/dist/docx/content-control-view.d.ts +2 -0
  31. package/dist/docx/editor-core.d.ts +7 -0
  32. package/dist/docx/equation-commands.d.ts +17 -0
  33. package/dist/docx/equation-dialog.d.ts +7 -0
  34. package/dist/docx/format-dialogs.d.ts +1 -1
  35. package/dist/docx/insert-controller.d.ts +4 -0
  36. package/dist/docx/locales/en-app.d.ts +1 -0
  37. package/dist/docx/locales/en.d.ts +123 -0
  38. package/dist/docx/locales/objects.d.ts +37 -0
  39. package/dist/docx/locales/options.d.ts +11 -0
  40. package/dist/docx/locales/shapes.d.ts +101 -0
  41. package/dist/docx/localization-strings.d.ts +123 -0
  42. package/dist/docx/note-editor.d.ts +7 -1
  43. package/dist/docx/page-controller.d.ts +17 -3
  44. package/dist/docx/parts-controller.d.ts +27 -1
  45. package/dist/docx/print-caret-affinity.d.ts +15 -0
  46. package/dist/docx/print-editing-index.d.ts +1 -0
  47. package/dist/docx/print-editing.d.ts +4 -1
  48. package/dist/docx/print-float-geometry.d.ts +28 -0
  49. package/dist/docx/print-float-locate.d.ts +25 -0
  50. package/dist/docx/print-float-selection.d.ts +24 -0
  51. package/dist/docx/print-float-text.d.ts +8 -0
  52. package/dist/docx/print-keyboard-navigation.d.ts +4 -3
  53. package/dist/docx/print-layout-view.d.ts +8 -0
  54. package/dist/docx/print-layout.d.ts +1 -1
  55. package/dist/docx/print-note-editing.d.ts +47 -0
  56. package/dist/docx/print-page-window.d.ts +2 -1
  57. package/dist/docx/print-picture.d.ts +7 -0
  58. package/dist/docx/print-story-editing.d.ts +16 -0
  59. package/dist/docx/print-vertical-step.d.ts +7 -0
  60. package/dist/docx/ribbon-action.d.ts +15 -0
  61. package/dist/docx/ribbon-icons.d.ts +3 -0
  62. package/dist/docx/schema.d.ts +1 -1
  63. package/dist/docx/shape-commands.d.ts +40 -0
  64. package/dist/docx/shape-draw.d.ts +12 -0
  65. package/dist/docx/shape-format-ribbon.d.ts +4 -0
  66. package/dist/docx/shape-node-view.d.ts +4 -0
  67. package/dist/docx/shape-picker.d.ts +5 -0
  68. package/dist/docx/shape-text-dialog.d.ts +4 -0
  69. package/dist/docx/status-bar.d.ts +1 -1
  70. package/dist/docx/table-model-adapter.d.ts +1 -1
  71. package/dist/docx/table-navigation.d.ts +8 -0
  72. package/dist/docx.js +3578 -595
  73. package/dist/index.d.ts +1 -1
  74. package/dist/index.js +9 -9
  75. package/dist/pptx/{chart-3d-view-scene-MYQRQDNF.mjs → chart-3d-view-scene-BEAJCQIS.mjs} +2 -2
  76. package/dist/pptx/{chart-3d-view-scene-WX23DR2E.cjs → chart-3d-view-scene-CFUVOILD.cjs} +38 -38
  77. package/dist/pptx/{chunk-VFPVEVF4.cjs → chunk-2JTHIDMD.cjs} +173 -873
  78. package/dist/pptx/{chunk-ZN4T6CYA.cjs → chunk-4NBVWV6I.cjs} +134 -0
  79. package/dist/pptx/{chunk-TTX4TDHU.cjs → chunk-5DUBDWOU.cjs} +5580 -2709
  80. package/dist/pptx/{chunk-C5OJXCCB.cjs → chunk-5UGJC25J.cjs} +1 -1
  81. package/dist/pptx/{chunk-NAFUYAQP.mjs → chunk-DWUC6LZK.mjs} +1 -1
  82. package/dist/pptx/{chunk-5OMQM4GF.mjs → chunk-GUAP5VUN.mjs} +4799 -1979
  83. package/dist/pptx/{chunk-K3S2A64B.cjs → chunk-HULZNSHL.cjs} +13 -13
  84. package/dist/pptx/{chunk-FRB6BRVU.mjs → chunk-OJXPN2WX.mjs} +134 -0
  85. package/dist/pptx/{chunk-QCP2XYJW.mjs → chunk-P3YE5LT2.mjs} +1 -1
  86. package/dist/pptx/{chunk-DPOES4WM.mjs → chunk-VXKFXPCU.mjs} +116 -829
  87. package/dist/pptx/dom/index.cjs +253 -253
  88. package/dist/pptx/dom/index.mjs +8 -8
  89. package/dist/pptx/export/html2canvas-clone.cjs +2 -2
  90. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  91. package/dist/pptx/i18n/index.cjs +6 -6
  92. package/dist/pptx/i18n/index.mjs +1 -1
  93. package/dist/pptx/i18n/translations-en-table-layout.d.ts +3 -0
  94. package/dist/pptx/i18n/translations-en-table-layout.d.ts.map +1 -0
  95. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  96. package/dist/pptx/index.cjs +3280 -3084
  97. package/dist/pptx/index.mjs +5 -5
  98. package/dist/pptx/render/chart-auto-title.d.ts +10 -15
  99. package/dist/pptx/render/chart-auto-title.d.ts.map +1 -1
  100. package/dist/pptx/render/chart-cartesian-bubbles.d.ts.map +1 -1
  101. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  102. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  103. package/dist/pptx/render/chart-data-label-text.d.ts +1 -1
  104. package/dist/pptx/render/chart-error-bars.d.ts.map +1 -1
  105. package/dist/pptx/render/chart-helpers.d.ts +3 -10
  106. package/dist/pptx/render/chart-helpers.d.ts.map +1 -1
  107. package/dist/pptx/render/chart-overlays-trendline-fit.d.ts +7 -9
  108. package/dist/pptx/render/chart-overlays-trendline-fit.d.ts.map +1 -1
  109. package/dist/pptx/render/chart-overlays.cjs +7 -7
  110. package/dist/pptx/render/chart-overlays.mjs +1 -1
  111. package/dist/pptx/render/chart-stock-candles.d.ts +0 -21
  112. package/dist/pptx/render/chart-stock-candles.d.ts.map +1 -1
  113. package/dist/pptx/render/chart-style-palette.d.ts +3 -28
  114. package/dist/pptx/render/chart-style-palette.d.ts.map +1 -1
  115. package/dist/pptx/render/chart-sunburst-hierarchy.d.ts +8 -28
  116. package/dist/pptx/render/chart-sunburst-hierarchy.d.ts.map +1 -1
  117. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  118. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  119. package/dist/pptx/render/chart-treemap-hierarchy.d.ts +7 -9
  120. package/dist/pptx/render/chart-treemap-hierarchy.d.ts.map +1 -1
  121. package/dist/pptx/render/chart-trendlines.d.ts +3 -17
  122. package/dist/pptx/render/chart-trendlines.d.ts.map +1 -1
  123. package/dist/pptx/render/chart-view-model-points.d.ts +2 -23
  124. package/dist/pptx/render/chart-view-model-points.d.ts.map +1 -1
  125. package/dist/pptx/render/chart-view-model.cjs +44 -44
  126. package/dist/pptx/render/chart-view-model.mjs +1 -1
  127. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  128. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  129. package/dist/pptx/render/comment-navigation.d.ts +51 -0
  130. package/dist/pptx/render/comment-navigation.d.ts.map +1 -0
  131. package/dist/pptx/render/customization/customization-catalog.d.ts +9 -2
  132. package/dist/pptx/render/customization/customization-catalog.d.ts.map +1 -1
  133. package/dist/pptx/render/customization/customization-controller.d.ts +9 -1
  134. package/dist/pptx/render/customization/customization-controller.d.ts.map +1 -1
  135. package/dist/pptx/render/customization/customization-descriptions.d.ts +5 -1
  136. package/dist/pptx/render/customization/customization-descriptions.d.ts.map +1 -1
  137. package/dist/pptx/render/customization/customization-entry-points.d.ts +46 -0
  138. package/dist/pptx/render/customization/customization-entry-points.d.ts.map +1 -0
  139. package/dist/pptx/render/customization/customization-reference.d.ts.map +1 -1
  140. package/dist/pptx/render/customization/customization-regions.d.ts +131 -0
  141. package/dist/pptx/render/customization/customization-regions.d.ts.map +1 -0
  142. package/dist/pptx/render/customization/customization-resolve-regions.d.ts +11 -0
  143. package/dist/pptx/render/customization/customization-resolve-regions.d.ts.map +1 -0
  144. package/dist/pptx/render/customization/customization-resolve.d.ts +21 -2
  145. package/dist/pptx/render/customization/customization-resolve.d.ts.map +1 -1
  146. package/dist/pptx/render/customization/customization-surfaces.d.ts +21 -0
  147. package/dist/pptx/render/customization/customization-surfaces.d.ts.map +1 -1
  148. package/dist/pptx/render/customization/customization-types.d.ts +28 -2
  149. package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
  150. package/dist/pptx/render/customization/index.d.ts +2 -0
  151. package/dist/pptx/render/customization/index.d.ts.map +1 -1
  152. package/dist/pptx/render/customization/ribbon-control-catalog-core.d.ts +34 -2
  153. package/dist/pptx/render/customization/ribbon-control-catalog-core.d.ts.map +1 -1
  154. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +61 -0
  155. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  156. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +95 -2
  157. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  158. package/dist/pptx/render/customization/ribbon-control-visibility.d.ts +6 -1
  159. package/dist/pptx/render/customization/ribbon-control-visibility.d.ts.map +1 -1
  160. package/dist/pptx/render/editor-chrome/ribbon-css.d.ts +1 -1
  161. package/dist/pptx/render/editor-chrome/ribbon-css.d.ts.map +1 -1
  162. package/dist/pptx/render/index.d.ts +3 -1
  163. package/dist/pptx/render/index.d.ts.map +1 -1
  164. package/dist/pptx/render/morph-plan.d.ts.map +1 -1
  165. package/dist/pptx/render/ole-actions.d.ts +5 -3
  166. package/dist/pptx/render/ole-actions.d.ts.map +1 -1
  167. package/dist/pptx/render/options/index.d.ts +2 -0
  168. package/dist/pptx/render/options/index.d.ts.map +1 -1
  169. package/dist/pptx/render/options/options-dialog-binding.d.ts +60 -0
  170. package/dist/pptx/render/options/options-dialog-binding.d.ts.map +1 -0
  171. package/dist/pptx/render/options/options-dialog-model.d.ts +35 -0
  172. package/dist/pptx/render/options/options-dialog-model.d.ts.map +1 -0
  173. package/dist/pptx/render/review-comment-commands.d.ts +42 -0
  174. package/dist/pptx/render/review-comment-commands.d.ts.map +1 -0
  175. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
  176. package/dist/pptx/render/ribbon-galleries/gallery-registry.d.ts.map +1 -1
  177. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts +9 -1
  178. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts.map +1 -1
  179. package/dist/pptx/render/ribbon-galleries/index.d.ts +2 -0
  180. package/dist/pptx/render/ribbon-galleries/index.d.ts.map +1 -1
  181. package/dist/pptx/render/ribbon-galleries/table-layout-commands.d.ts +7 -0
  182. package/dist/pptx/render/ribbon-galleries/table-layout-commands.d.ts.map +1 -0
  183. package/dist/pptx/render/ribbon-galleries/table-layout-ops.d.ts +64 -0
  184. package/dist/pptx/render/ribbon-galleries/table-layout-ops.d.ts.map +1 -0
  185. package/dist/pptx/render/ribbon-galleries/table-text-direction-gallery.d.ts +3 -0
  186. package/dist/pptx/render/ribbon-galleries/table-text-direction-gallery.d.ts.map +1 -0
  187. package/dist/pptx/render/ribbon-insert-layout.d.ts +56 -0
  188. package/dist/pptx/render/ribbon-insert-layout.d.ts.map +1 -0
  189. package/dist/pptx/render/ribbon-insert-state.d.ts +42 -2
  190. package/dist/pptx/render/ribbon-insert-state.d.ts.map +1 -1
  191. package/dist/pptx/render/ribbon-review-commands.d.ts +7 -0
  192. package/dist/pptx/render/ribbon-review-commands.d.ts.map +1 -1
  193. package/dist/pptx/render/toolbar-actions.d.ts +1 -1
  194. package/dist/pptx/render/toolbar-actions.d.ts.map +1 -1
  195. package/dist/pptx/render/viewer-props-manifest.d.ts +54 -0
  196. package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -0
  197. package/dist/pptx/web-components/index.d.ts.map +1 -1
  198. package/dist/pptx/web-components/office-aliases.d.ts +13 -0
  199. package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
  200. package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
  201. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  202. package/dist/pptx/web-components/options-dialog.d.ts +7 -0
  203. package/dist/pptx/web-components/options-dialog.d.ts.map +1 -0
  204. package/dist/pptx/web-components/ribbon-insert-dom.d.ts +28 -1
  205. package/dist/pptx/web-components/ribbon-insert-dom.d.ts.map +1 -1
  206. package/dist/pptx/web-components/ribbon-insert-icons.d.ts.map +1 -1
  207. package/dist/pptx/web-components/ribbon-insert-styles.d.ts.map +1 -1
  208. package/dist/pptx/web-components/ribbon-insert-table-picker.d.ts +16 -0
  209. package/dist/pptx/web-components/ribbon-insert-table-picker.d.ts.map +1 -0
  210. package/dist/pptx/web-components/ribbon-insert-view.d.ts +2 -1
  211. package/dist/pptx/web-components/ribbon-insert-view.d.ts.map +1 -1
  212. package/dist/pptx/web-components/ribbon-overflow.d.ts.map +1 -1
  213. package/dist/presence.js +3 -3
  214. package/dist/ribbon/auto-collapse.d.ts +8 -0
  215. package/dist/ribbon/auto-collapse.d.ts.map +1 -0
  216. package/dist/ribbon/group-overflow.d.ts +7 -0
  217. package/dist/ribbon/group-overflow.d.ts.map +1 -1
  218. package/dist/ribbon/overflow.d.ts +7 -0
  219. package/dist/ribbon/overflow.d.ts.map +1 -1
  220. package/dist/ribbon/ribbon-tabs.d.ts +5 -0
  221. package/dist/ribbon/ribbon-tabs.d.ts.map +1 -1
  222. package/dist/ribbon/scroll-more.d.ts +17 -0
  223. package/dist/ribbon/scroll-more.d.ts.map +1 -0
  224. package/dist/smartart.js +3 -3
  225. package/dist/teams/activity-feed.d.ts +36 -0
  226. package/dist/teams/app/activity.d.ts +5 -0
  227. package/dist/teams/app/calendar-app.d.ts +2 -0
  228. package/dist/teams/app/chat-app.d.ts +11 -0
  229. package/dist/teams/app/chat-people-dialog.d.ts +38 -0
  230. package/dist/teams/app/controller.d.ts +3 -2
  231. package/dist/teams/app/dialog-base.d.ts +18 -0
  232. package/dist/teams/app/meeting-details.d.ts +63 -0
  233. package/dist/teams/app/meeting-dialog.d.ts +103 -0
  234. package/dist/teams/app/new-chat-dialog.d.ts +42 -0
  235. package/dist/teams/app/notify-delivery.d.ts +28 -0
  236. package/dist/teams/app/pinned-bar.d.ts +24 -0
  237. package/dist/teams/app/profile-menu.d.ts +18 -1
  238. package/dist/teams/app/settings-notifications.d.ts +9 -0
  239. package/dist/teams/app/store.d.ts +1 -1
  240. package/dist/teams/app/teams-app.d.ts +72 -5
  241. package/dist/teams/app/teams-settings.d.ts +5 -1
  242. package/dist/teams/app/thread-pane.d.ts +1 -1
  243. package/dist/teams/app-rail.d.ts +17 -3
  244. package/dist/teams/avatar.d.ts +2 -2
  245. package/dist/teams/base.d.ts +2 -0
  246. package/dist/teams/calendar-agenda.d.ts +30 -0
  247. package/dist/teams/calendar-view.d.ts +61 -0
  248. package/dist/teams/chat-composer.d.ts +32 -2
  249. package/dist/teams/chat-list.d.ts +41 -3
  250. package/dist/teams/chat-sidebar.d.ts +25 -0
  251. package/dist/teams/index.d.ts +6 -1
  252. package/dist/teams/people-picker.d.ts +37 -0
  253. package/dist/teams.js +6 -6
  254. package/dist/theme.js +2 -2
  255. package/dist/tokens.d.ts +7 -5
  256. package/dist/tokens.d.ts.map +1 -1
  257. package/dist/visio/locales/de-commands.d.ts +2 -0
  258. package/dist/visio/locales/de-text.d.ts +2 -0
  259. package/dist/visio/locales/en-commands.d.ts +2 -0
  260. package/dist/visio/locales/en-text.d.ts +2 -0
  261. package/dist/visio/locales/es-commands.d.ts +2 -0
  262. package/dist/visio/locales/es-text.d.ts +2 -0
  263. package/dist/visio/locales/fr-commands.d.ts +2 -0
  264. package/dist/visio/locales/fr-text.d.ts +2 -0
  265. package/dist/visio/locales/zh-CN-commands.d.ts +2 -0
  266. package/dist/visio/locales/zh-CN-text.d.ts +2 -0
  267. package/dist/visio/ribbon-home.d.ts +1 -1
  268. package/dist/visio/ribbon-locale.d.ts +11 -0
  269. package/dist/visio/ribbon-localize.d.ts +9 -0
  270. package/dist/visio/ribbon-tab-cue.d.ts +8 -0
  271. package/dist/visio/shapes-document.d.ts +5 -0
  272. package/dist/visio/shapes-files-ui.d.ts +13 -0
  273. package/dist/visio/shapes-master-list.d.ts +5 -0
  274. package/dist/visio/shapes-sections.d.ts +1 -4
  275. package/dist/visio/stencil-files.d.ts +36 -0
  276. package/dist/visio/styles.d.ts +1 -1
  277. package/dist/visio/viewer-chrome.d.ts +3 -3
  278. package/dist/visio/viewer-element.d.ts +2 -0
  279. package/dist/visio/viewer-gesture-state.d.ts +54 -0
  280. package/dist/visio/viewer-options-categories.d.ts +8 -0
  281. package/dist/visio/viewer-options.d.ts +3 -7
  282. package/dist/visio/viewer-touch-gestures.d.ts +17 -0
  283. package/dist/visio/viewer-touch-hit.d.ts +3 -0
  284. package/dist/visio/viewer-touch-long-press.d.ts +13 -0
  285. package/dist/visio/viewer-touch-math.d.ts +44 -0
  286. package/dist/visio.js +2425 -295
  287. package/dist/xlsx/backstage/index.d.ts +3 -0
  288. package/dist/xlsx/backstage/options-customize.d.ts +7 -0
  289. package/dist/xlsx/backstage/options-dialog.d.ts +13 -0
  290. package/dist/xlsx/commands/slicers.d.ts +9 -0
  291. package/dist/xlsx/commands/view.d.ts +3 -0
  292. package/dist/xlsx/dialogs/pivot-field-settings.d.ts +7 -0
  293. package/dist/xlsx/dialogs/pivot-group-dates.d.ts +6 -0
  294. package/dist/xlsx/dialogs/pivot-group.d.ts +3 -0
  295. package/dist/xlsx/dialogs/pivot-rows.d.ts +21 -0
  296. package/dist/xlsx/dialogs/pivot-values.d.ts +1 -1
  297. package/dist/xlsx/dialogs/scenario-manager.d.ts +2 -0
  298. package/dist/xlsx/dialogs/slicers.d.ts +9 -0
  299. package/dist/xlsx/dialogs/styles.d.ts +1 -1
  300. package/dist/xlsx/dialogs/what-if.d.ts +5 -0
  301. package/dist/xlsx/grid/page-break-layer.d.ts +3 -0
  302. package/dist/xlsx/grid/slicer.d.ts +22 -0
  303. package/dist/xlsx/grid/styles.d.ts +1 -1
  304. package/dist/xlsx/grid/timeline.d.ts +12 -0
  305. package/dist/xlsx/modules.d.ts +1 -0
  306. package/dist/xlsx/page-views/index.d.ts +7 -0
  307. package/dist/xlsx/page-views/page-layout-bands.d.ts +17 -0
  308. package/dist/xlsx/page-views/page-layout-css.d.ts +1 -0
  309. package/dist/xlsx/page-views/page-layout-editor.d.ts +21 -0
  310. package/dist/xlsx/page-views/page-layout-rulers.d.ts +3 -0
  311. package/dist/xlsx/page-views/page-layout-view.d.ts +8 -0
  312. package/dist/xlsx/print-pages.d.ts +7 -1
  313. package/dist/xlsx/ribbon/ribbon.d.ts +1 -1
  314. package/dist/xlsx/ribbon/tabs/contextual.d.ts +4 -0
  315. package/dist/xlsx/status-bar.d.ts +1 -1
  316. package/dist/xlsx.js +3015 -546
  317. package/package.json +2 -2
  318. package/dist/pptx/render/chart-number-format-pattern.d.ts +0 -35
  319. package/dist/pptx/render/chart-number-format-pattern.d.ts.map +0 -1
  320. package/dist/pptx/render/chart-number-format.d.ts +0 -21
  321. package/dist/pptx/render/chart-number-format.d.ts.map +0 -1
  322. package/dist/pptx/render/chart-waterfall-layout.d.ts +0 -20
  323. package/dist/pptx/render/chart-waterfall-layout.d.ts.map +0 -1
  324. package/dist/teams/app/navigation-drawer.d.ts +0 -26
  325. package/dist/xlsx/backstage/pages-options.d.ts +0 -7
@@ -0,0 +1,24 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ export { locateFloat, selectedFloat } from './print-float-locate.js';
3
+ export interface PrintFloatHost {
4
+ /** The `.dve-print-pages` element. */
5
+ pages: HTMLElement;
6
+ /** The editing surface whose keys a selected float takes over. */
7
+ paper: HTMLElement;
8
+ view(): EditorView | undefined;
9
+ printActive(): boolean;
10
+ }
11
+ export interface PrintFloats {
12
+ /** Redraws the selection frame; call after transactions and layouts. */
13
+ refresh(): void;
14
+ destroy(): void;
15
+ }
16
+ /**
17
+ * Floating pictures, shapes and text boxes on Print Layout pages are selectable like in Word: a press selects the object
18
+ * (the same node selection the Draft surface uses) and draws a frame with eight handles; dragging
19
+ * moves it, corner handles resize it (keeping the aspect ratio for pictures; a second press on a shape
20
+ * that holds text, or a double-click on any shape, edits its text in place), arrow keys nudge it and Delete
21
+ * removes it. Each gesture is one transaction, so it is one undo step. Pictures behind the text
22
+ * are only taken where no text is, so a press on text still places the caret.
23
+ */
24
+ export declare function attachPrintFloatSelection(host: PrintFloatHost): PrintFloats;
@@ -0,0 +1,8 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ /**
3
+ * Edits the text of a floating shape or text box in place on its page: a textarea laid over the
4
+ * shape, one paragraph per line. Enter adds a line, Escape cancels, Ctrl+Enter or leaving the
5
+ * field applies it as one transaction (one undo step). Returns a function that applies and closes the editor
6
+ * ; undefined when the shape's text cannot be edited.
7
+ */
8
+ export declare function editShapeText(view: EditorView, element: HTMLElement, lines: string[], onClose: () => void): (() => void) | undefined;
@@ -1,18 +1,19 @@
1
1
  import type { EditorView } from 'prosemirror-view';
2
2
  import type { PrintEditingIndex } from './print-editing-index.js';
3
+ import { type CaretAffinity } from './print-caret-affinity.js';
3
4
  interface Options {
4
5
  active(): boolean;
5
6
  getView(): EditorView | undefined;
6
7
  index: PrintEditingIndex;
7
8
  position(id: string, offset: number): number | undefined;
8
- select(id: string, offset: number, extend?: boolean): boolean;
9
+ select(id: string, offset: number, extend?: boolean, affinity?: CaretAffinity): boolean;
9
10
  resolveHit(target: Element, x: number): {
10
11
  blockId: string;
11
12
  offset: number;
12
13
  } | null;
13
14
  scrollContainer: HTMLElement;
14
- preferredPage(): string | undefined;
15
- setPreferredPage(page: string | undefined): void;
15
+ /** Affinity of the current caret. */
16
+ affinity(): CaretAffinity;
16
17
  }
17
18
  export declare function printKeyboardNavigation(options: Options): (event: KeyboardEvent) => void;
18
19
  export {};
@@ -12,6 +12,8 @@ export interface PrintLayoutController {
12
12
  offset: number;
13
13
  } | null;
14
14
  scheduleRelayout(model: DocumentModel): void;
15
+ /** Lays out now, dropping a pending debounced layout (a document swap must not show stale pages). */
16
+ relayoutNow(model: DocumentModel): void;
15
17
  /** Recomputes which page is most visible; call on the scroll container's `scroll` event. */
16
18
  refreshCurrentPage(): void;
17
19
  pageStatus(): {
@@ -30,6 +32,12 @@ export interface PrintLayoutController {
30
32
  approximations(): string[];
31
33
  /** Lays out immediately (no debounce) and opens the browser print dialog for the paginated render. */
32
34
  print(model: DocumentModel, note: (message: string) => void): void;
35
+ /**
36
+ * Holds layout while an in-page header, footer or note editor is open (a relayout would replace
37
+ * the page it lives in); releasing lays out the latest model. `page` (a zero-based index) stays
38
+ * mounted while held, so scrolling a long document does not tear the open editor down.
39
+ */
40
+ holdLayout(held: boolean, page?: number): void;
33
41
  destroy(): void;
34
42
  }
35
43
  export declare function createPrintLayoutController(scrollContainer: HTMLElement, onRequestCursor: (blockId: string, offset: number) => void, pictureUrl?: PictureUrl, onLayout?: () => void, getReviewMode?: () => ReviewDisplayMode, isEditing?: () => boolean): PrintLayoutController;
@@ -8,7 +8,7 @@ export interface PrintLayoutHandle {
8
8
  /** The scrollable element holding one sheet per page; mount this in the DOM. */
9
9
  element: HTMLElement;
10
10
  pageCount: number;
11
- showPages(center: number, pinned?: number): void;
11
+ showPages(center: number, pinned?: number | readonly (number | undefined)[]): void;
12
12
  renderAll(): void;
13
13
  pageSnapshot(index: number): HTMLElement | undefined;
14
14
  /**
@@ -0,0 +1,47 @@
1
+ import type { DocumentModel } from 'ooxml-core/docx';
2
+ import type { EditorView } from 'prosemirror-view';
3
+ import type { NoteKind } from './note-commands.js';
4
+ import type { PartsController } from './parts-controller.js';
5
+ export interface PrintNoteHost {
6
+ /** The `.dve-print-pages` element. */
7
+ pages: HTMLElement;
8
+ parts: Pick<PartsController, 'editNoteOnPage' | 'closeOpenStory'>;
9
+ model(): DocumentModel;
10
+ /** The body editor, which keeps the caret outside the note. */
11
+ view(): EditorView | undefined;
12
+ printActive(): boolean;
13
+ /** `page` is the zero-based index of the page the open editor lives on. */
14
+ holdLayout(held: boolean, page?: number): void;
15
+ /** Mounts the page that holds a paragraph (virtualised documents). */
16
+ showBlock(id: string, offset: number): void;
17
+ }
18
+ interface NoteRef {
19
+ kind: NoteKind;
20
+ id: string;
21
+ /** Id of the note's first paragraph (where the automatic number mark sits). */
22
+ firstId: string;
23
+ }
24
+ /** Paragraph id to owning note, for every footnote and endnote paragraph in the model. */
25
+ export declare function noteParagraphs(model: DocumentModel): Map<string, NoteRef>;
26
+ /** The note a body reference mark under `target` points at, when it is one. */
27
+ export declare function referenceUnder(view: EditorView, target: Element): {
28
+ kind: NoteKind;
29
+ id: string;
30
+ } | undefined;
31
+ /** Position just after the body reference to a note, with the id of its paragraph. */
32
+ export declare function referencePosition(view: EditorView, ref: {
33
+ kind: NoteKind;
34
+ id: string;
35
+ }): {
36
+ pos: number;
37
+ blockId: string;
38
+ offset: number;
39
+ } | undefined;
40
+ /**
41
+ * Notes on Print Layout pages. A press on a note's text opens the note's own editor over it with
42
+ * the caret there; Escape, or a press anywhere else, returns to the body. Double-clicking a
43
+ * reference mark in the body jumps to its note, and double-clicking the number in the note jumps
44
+ * back to the reference, as in Word.
45
+ */
46
+ export declare function attachPrintNoteEditing(host: PrintNoteHost): () => void;
47
+ export {};
@@ -10,7 +10,8 @@ export declare class PrintPageWindow {
10
10
  mount(index: number): void;
11
11
  private unmount;
12
12
  private changed;
13
- show(center: number, pinned?: number): void;
13
+ /** Mounts the pages around `center`; `pinned` pages stay mounted wherever the window is. */
14
+ show(center: number, pinned?: number | readonly (number | undefined)[]): void;
14
15
  all(): void;
15
16
  snapshot(index: number): HTMLElement | undefined;
16
17
  }
@@ -1,5 +1,12 @@
1
1
  /** Resolves a package picture part to a displayable URL; undefined draws a placeholder box. */
2
2
  export type PictureUrl = (partName: string, contentType: string) => string | undefined;
3
+ /**
4
+ * Strips the active content from a chart SVG before it is imported into the
5
+ * page: `<script>` and `<foreignObject>` elements, every `on*` event-handler
6
+ * attribute, and `href` / `xlink:href` values other than fragments or
7
+ * `data:image` URLs. Mirrors the rules of `src/core/docx/ui/chart-spec.ts`.
8
+ */
9
+ export declare function sanitizeChartSvg(svg: Element): void;
3
10
  export declare function pictureElement(object: {
4
11
  partName: string;
5
12
  contentType: string;
@@ -0,0 +1,16 @@
1
+ import type { DocumentModel } from 'ooxml-core/docx';
2
+ import type { PartsController } from './parts-controller.js';
3
+ export interface PrintStoryHost {
4
+ /** The `.dve-print-pages` element. */
5
+ pages: HTMLElement;
6
+ parts: Pick<PartsController, 'editOnPage' | 'closeOpenStory'>;
7
+ model(): DocumentModel;
8
+ printActive(): boolean;
9
+ /** `page` is the zero-based index of the page the open editor lives on. */
10
+ holdLayout(held: boolean, page?: number): void;
11
+ }
12
+ /**
13
+ * Double-clicking a page's header or footer area edits it in place, as in Word: the body dims, the
14
+ * Header & Footer ribbon tab appears, and Escape or a double-click on the body closes it.
15
+ */
16
+ export declare function attachPrintStoryEditing(host: PrintStoryHost): () => void;
@@ -0,0 +1,7 @@
1
+ import type { PrintEditingIndex } from './print-editing-index.js';
2
+ /**
3
+ * The line one step up or down from `line`. Outside tables that is the next rendered line; inside a
4
+ * table it stays in the cell, then moves to the cell of the next row under the same x, and leaves
5
+ * the table past its last or first row. Entering a table lands in the cell under `x`.
6
+ */
7
+ export declare function stepVertical(index: PrintEditingIndex, line: HTMLElement, direction: number, x: number): HTMLElement;
@@ -167,6 +167,21 @@ export type RibbonAction = {
167
167
  key: 'toggle' | 'add' | 'delete' | 'previous' | 'next';
168
168
  } | {
169
169
  type: 'insertPicture';
170
+ } | {
171
+ type: 'shapePicker';
172
+ } | {
173
+ type: 'drawShape';
174
+ preset: string;
175
+ } | {
176
+ type: 'shape';
177
+ key: 'fill' | 'outline' | 'weight' | 'width' | 'height' | 'wrap';
178
+ value: string | number;
179
+ } | {
180
+ type: 'insertEquation';
181
+ id: 'area' | 'quadratic' | 'pythagorean' | 'binomial';
182
+ } | {
183
+ type: 'insertContentControl';
184
+ value: 'richText' | 'text' | 'checkbox' | 'dropDownList' | 'comboBox' | 'date';
170
185
  } | {
171
186
  type: 'formatPicture';
172
187
  } | {
@@ -118,6 +118,9 @@ declare const paths: {
118
118
  readonly watermark: 'M5 18L19 6 M7 8h4 M13 16h4';
119
119
  readonly pageBorders: 'M4 4h16v16H4z M7 7h10v10H7z';
120
120
  readonly textBox: 'M4 5h16v14H4z M8 10h8 M8 14h5';
121
+ readonly shapes: 'M4 14h8v6H4z M17 7.5a4 4 0 1 0 0 .01 M10 11l4-8 4 8z';
122
+ readonly equation: 'M18 5H7l6 7-6 7h11';
123
+ readonly contentControl: 'M4 7h16v12H4z M4 7V4h7v3 M8 12h8 M8 15h5';
121
124
  readonly pageColor: 'M6 3h9l3 3v15H6z M9 11h6v6H9z';
122
125
  readonly hyphenation: 'M4 6h16 M4 11h9 M16 11h4 M4 16h16 M13 11h3';
123
126
  readonly caret: 'M7 10l5 5 5-5';
@@ -3,4 +3,4 @@ export { wordHighlightColors } from 'ooxml-core/docx/ui';
3
3
  /** Single line spacing as a multiple of the font size, close to Calibri's and Arial's metrics. */
4
4
  export declare const NATURAL_LINE_HEIGHT = 1.2;
5
5
  export declare function paragraphStyle(attrs: Record<string, unknown>): string;
6
- export declare const schema: Schema<"doc" | "equation" | "fieldMarker" | "hardBreak" | "image" | "nestedTablePreview" | "noteReference" | "pageBreak" | "paragraph" | "table" | "tableCell" | "tableRow" | "text", "bold" | "characterStyle" | "comment" | "deletion" | "field" | "font" | "highlight" | "inlineCommentAnchors" | "insertion" | "italic" | "language" | "link" | "runProperties" | "runRtl" | "strike" | "underline" | "verticalAlign">;
6
+ export declare const schema: Schema<"doc" | "equation" | "fieldMarker" | "hardBreak" | "image" | "nestedTablePreview" | "noteReference" | "pageBreak" | "paragraph" | "table" | "tableCell" | "tableRow" | "text", "bold" | "characterStyle" | "comment" | "contentControl" | "deletion" | "field" | "font" | "highlight" | "inlineCommentAnchors" | "insertion" | "italic" | "language" | "link" | "runProperties" | "runRtl" | "strike" | "underline" | "verticalAlign">;
@@ -0,0 +1,40 @@
1
+ import { type EditorState } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
+ import { type PicturePlacement, type ShapeSpec } from 'ooxml-core/docx';
4
+ export interface SelectedShape {
5
+ pos: number;
6
+ spec: ShapeSpec;
7
+ widthPx: number;
8
+ heightPx: number;
9
+ anchored: boolean;
10
+ placement: PicturePlacement | undefined;
11
+ }
12
+ /** The shape the selection is on (an image atom that carries a shape), if any. */
13
+ export declare function selectedShape(state: EditorState): SelectedShape | undefined;
14
+ /** Shape Fill: a `#rrggbb` colour, `none`, or `default` for the theme style's fill. */
15
+ export declare function setShapeFill(view: EditorView, value: string): boolean;
16
+ /** Shape Outline: a `#rrggbb` colour, `none`, or `default`. Keeps the weight and dash. */
17
+ export declare function setShapeOutline(view: EditorView, value: string): boolean;
18
+ /** Shape Outline > Weight, in points. */
19
+ export declare function setShapeWeight(view: EditorView, points: number): boolean;
20
+ export declare function setShapeText(view: EditorView, lines: string[]): boolean;
21
+ export declare function setShapeSize(view: EditorView, widthPx?: number, heightPx?: number): boolean;
22
+ export type ShapeWrap = 'inline' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'front';
23
+ /** Wrap Text: the wrapping of the shape, or In Line with Text. */
24
+ export declare function setShapeWrap(view: EditorView, wrap: ShapeWrap): boolean;
25
+ /** The Wrap Text choice that describes the selected shape. */
26
+ export declare function shapeWrapOf(shape: SelectedShape): ShapeWrap;
27
+ export interface DrawnRect {
28
+ /** Offset from the left edge of the text column and the top of the paragraph, in CSS pixels. */
29
+ x: number;
30
+ y: number;
31
+ widthPx: number;
32
+ heightPx: number;
33
+ flipH?: boolean;
34
+ flipV?: boolean;
35
+ }
36
+ /**
37
+ * Places a drawn shape as a floating shape in front of text, anchored to the paragraph holding
38
+ * `pos`, and selects it. Returns whether a shape was inserted.
39
+ */
40
+ export declare function insertDrawnShape(view: EditorView, preset: string, pos: number, rect: Partial<DrawnRect> & Pick<DrawnRect, 'x' | 'y'>): boolean;
@@ -0,0 +1,12 @@
1
+ import { Plugin } from 'prosemirror-state';
2
+ /** Which shape the next drag on the page draws (set from Insert > Shapes), shared by the editor. */
3
+ export declare class ShapeTool {
4
+ private current;
5
+ private readonly listeners;
6
+ get preset(): string | undefined;
7
+ arm(preset: string): void;
8
+ disarm(): void;
9
+ onChange(listener: () => void): () => void;
10
+ }
11
+ /** The plugin that turns a drag on the page into a shape while `tool` is armed. */
12
+ export declare function shapeDrawPlugin(tool: ShapeTool): Plugin;
@@ -0,0 +1,4 @@
1
+ import type { EditorState } from 'prosemirror-state';
2
+ export declare function buildShapeFormatPanel(panel: HTMLElement): void;
3
+ /** Shows the tab while a shape is selected (switching to it on entry) and fills its controls. */
4
+ export declare function syncShapeFormat(toolbar: HTMLElement, state: EditorState, editable: boolean): void;
@@ -0,0 +1,4 @@
1
+ import type { Node as ProseMirrorNode } from 'prosemirror-model';
2
+ import type { EditorView, NodeView } from 'prosemirror-view';
3
+ import { type ThemeCatalog } from 'ooxml-core/docx';
4
+ export declare function shapeNodeView(initial: ProseMirrorNode, view: EditorView, getPos: () => number | undefined, theme: () => ThemeCatalog | undefined): NodeView;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Opens the shape gallery under `anchor`. `onPick` receives the preset; the caller then lets the
3
+ * user draw it on the page. Arrow keys move through the cells and Enter chooses.
4
+ */
5
+ export declare function openShapePicker(anchor: HTMLElement, onPick: (preset: string) => void, onClose: () => void): void;
@@ -0,0 +1,4 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { FormatDialog } from './font-dialog.js';
3
+ /** Shape Format > Add Text: the text inside the selected shape, one paragraph per line. */
4
+ export declare function createShapeTextDialog(getView: () => EditorView | undefined): FormatDialog;
@@ -13,7 +13,7 @@ export interface StatusBar {
13
13
  /** Redraws every label after the editor locale changed. */
14
14
  relocalize(): void;
15
15
  }
16
- export declare const ZOOM_MIN = 50;
16
+ export declare const ZOOM_MIN = 25;
17
17
  export declare const ZOOM_MAX = 200;
18
18
  /**
19
19
  * Word-style status bar: page/words/language on the left, views and zoom on the right. The shared
@@ -1,6 +1,6 @@
1
1
  import type { Node as ProseMirrorNode } from 'prosemirror-model';
2
2
  import type { Paragraph, Table, TableStyleCatalog } from 'ooxml-core/docx';
3
- export declare function tableNode(block: Table, paragraphNode: (paragraph: Paragraph) => ProseMirrorNode, tableStyles?: TableStyleCatalog): ProseMirrorNode;
3
+ export declare function tableNode(block: Table, paragraphNode: (paragraph: Paragraph) => ProseMirrorNode, tableStyles?: TableStyleCatalog, nested?: boolean): ProseMirrorNode;
4
4
  /** Reads editable formatting from nodes rather than a stale prior model. */
5
5
  export declare function tableFormattingFromNode(node: ProseMirrorNode): {
6
6
  rowProperties: Table['rowProperties'];
@@ -0,0 +1,8 @@
1
+ import { type Command } from 'prosemirror-state';
2
+ /**
3
+ * Word's Tab and Shift+Tab inside a table: move to the next or previous cell in reading order and
4
+ * select its text. Tab in the last cell adds a row when the table's structure may change; a
5
+ * structure-locked table (merged cells) keeps the caret where it is. Cells of nested tables take
6
+ * part in the reading order, and Tab in the last nested cell continues in the enclosing table.
7
+ */
8
+ export declare function cellTab(direction: 1 | -1): Command;