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
@@ -174,12 +174,14 @@ var OFFICE_TOKENS = {
174
174
  "--office-dialog-max-height": "90vh",
175
175
  "--office-dialog-min-width": "min(320px, 100vw)",
176
176
  "--office-dialog-button-min-width": "76px",
177
- "--office-options-width": "min(820px, 100vw)",
178
- "--office-options-nav-width": "180px",
179
- "--office-options-min-height": "min(440px, 70vh)",
180
- "--office-options-label-width": "180px",
177
+ "--office-options-width": "min(728px, 92vw)",
178
+ "--office-options-nav-width": "172px",
179
+ "--office-options-height": "510px",
180
+ "--office-options-chrome-height": "130px",
181
+ "--office-options-text-width": "180px",
181
182
  "--office-options-row-height": "30px",
182
- "--office-options-number-width": "80px",
183
+ "--office-options-number-width": "112px",
184
+ "--office-options-check-size": "16px",
183
185
  "--office-info-size": "15px",
184
186
  "--office-selection-bar-width": "3px",
185
187
  "--office-backstage-nav-width": "200px",
@@ -0,0 +1,31 @@
1
+ // src/chrome/status-layout.ts
2
+ function statusLayout(width) {
3
+ if (!(width > 0))
4
+ return { words: true, language: true, views: true, compactPage: false, stats: Infinity };
5
+ return {
6
+ words: width >= 440,
7
+ language: width >= 640,
8
+ views: width >= 480,
9
+ compactPage: width < 520,
10
+ stats: width >= 760 ? Infinity : width >= 560 ? 2 : width >= 440 ? 1 : 0
11
+ };
12
+ }
13
+ function watchStatusWidth(element, onChange) {
14
+ if (typeof ResizeObserver === "undefined") return () => {
15
+ };
16
+ let last = -1;
17
+ const observer = new ResizeObserver(() => {
18
+ const width = element.clientWidth;
19
+ if (width === last) return;
20
+ last = width;
21
+ onChange(width);
22
+ });
23
+ observer.observe(element);
24
+ return () => observer.disconnect();
25
+ }
26
+ function compactPageText(text) {
27
+ const numbers = text.match(/\d+/g);
28
+ return numbers && numbers.length === 2 ? numbers.join("/") : text;
29
+ }
30
+
31
+ export { compactPageText, statusLayout, watchStatusWidth };
@@ -73,7 +73,8 @@ export { OFFICE_TOAST_VISIBLE_LIMIT, type OfficeToast, type OfficeToastsState, }
73
73
  export type { OfficePasteOption, OfficePasteOptionsState } from './notices/paste-options.js';
74
74
  export type { OfficeReadOnlyBannerIntent, OfficeReadOnlyBannerState, } from './notices/read-only-banner.js';
75
75
  export { clearOfficeProfile, DEFAULT_OFFICE_PROFILE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, profileInitials, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile, type OfficeProfile, type OfficeProfileChangeEvent, } from './chrome/account-profile.js';
76
- export { clampOptionNumber, type OfficeOptionCategory, type OfficeOptionChoice, type OfficeOptionControl, type OfficeOptionSection, type OfficeOptionsChangeEvent, type OfficeOptionValue, type OfficeOptionValues, } from './dialog/options-dialog.js';
76
+ export { clampOptionNumber, type OfficeOptionCategory, type OfficeOptionChoice, type OfficeOptionControl, type OfficeOptionSection, type OfficeOptionsChangeEvent, type OfficeOptionsLabels, type OfficeOptionValue, type OfficeOptionValues, } from './dialog/options-dialog.js';
77
+ export { optionsLabels, optionText, personalizeSection, unavailableCategory, unavailableControl, userInterfaceSection, type OptionsContext, type UnavailableKind, } from './dialog/options-categories.js';
77
78
  /** Every control of this entry. */
78
79
  export declare const CONTROL_DEFINERS: readonly [import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer];
79
80
  /** Idempotent, SSR-safe (no-op without a DOM). */
@@ -1 +1 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACN,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,iBAAiB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,E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vB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,GACpB,MAAM,6BAA6B,CAAC;AAErC,mCAAmC;AACnC,eAAO,MAAM,gBAAgB,ytCA0CnB,CAAC;AAEX,kDAAkD;AAClD,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAEvE"}
package/dist/controls.js CHANGED
@@ -1,5 +1,5 @@
1
- export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, nextEnabledIndex, parseOfficeSymbolCode, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-735S7V4M.js';
1
+ export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-LAVVSCRJ.js';
2
2
  import './chunk-M6GF5ED2.js';
3
- import './chunk-L7JV5FVE.js';
4
- import './chunk-OGNNNTKI.js';
5
- import './chunk-SPNWHKSR.js';
3
+ import './chunk-KNC2UEUR.js';
4
+ import './chunk-CWBSXK7P.js';
5
+ import './chunk-LD3K2RDN.js';
@@ -0,0 +1,39 @@
1
+ import type { OfficeOptionCategory, OfficeOptionControl, OfficeOptionSection, OfficeOptionsLabels } from './options-dialog.js';
2
+ /**
3
+ * The File > Options categories every product shares, as builders over the product's translate
4
+ * function (English keys, see `optionStrings` in `ooxml-core/i18n`). A product supplies the
5
+ * settings it really honours and takes the rest from here: the Office category order, and the
6
+ * honest "not available yet" panes for what it cannot do, so Word, Excel and Visio read like
7
+ * PowerPoint's Options. Nothing here pretends to work.
8
+ */
9
+ export interface OptionsContext {
10
+ /** Product name for the `{product}` placeholders: "Word", "Excel", "Visio". */
11
+ product: string;
12
+ /** Display-language lookup; identity for English-only products. */
13
+ t(text: string): string;
14
+ }
15
+ export type UnavailableKind = 'proofing' | 'save' | 'language' | 'accessibility' | 'advanced' | 'ribbon' | 'qat' | 'addins' | 'trust';
16
+ interface UnavailableText {
17
+ id: string;
18
+ label: string;
19
+ description: string;
20
+ reason: string;
21
+ }
22
+ /** A pane's English text with `{product}` filled in, translated first. */
23
+ export declare function optionText(context: OptionsContext, text: string): string;
24
+ /**
25
+ * A category the product cannot offer yet: it keeps its place in the list and says why. `text`
26
+ * replaces the shared wording where a product has something more specific to say (its text goes
27
+ * through `t` like the rest).
28
+ */
29
+ export declare function unavailableCategory(context: OptionsContext, kind: UnavailableKind, text?: Partial<Pick<UnavailableText, 'description' | 'reason'>>): OfficeOptionCategory;
30
+ /** A disabled row for something Office offers that this product does not do yet. */
31
+ export declare function unavailableControl(context: OptionsContext, control: OfficeOptionControl, reason: string): OfficeOptionControl;
32
+ /** "User Interface options": Office's three display settings, none of which are drawn yet. */
33
+ export declare function userInterfaceSection(context: OptionsContext): OfficeOptionSection;
34
+ /** "Personalize your copy of Microsoft Office": the product's own name, theme and the like. */
35
+ export declare function personalizeSection(context: OptionsContext, controls: readonly OfficeOptionControl[], description?: string): OfficeOptionSection;
36
+ /** The dialog's own buttons in the product's language. */
37
+ export declare function optionsLabels(context: OptionsContext): OfficeOptionsLabels;
38
+ export {};
39
+ //# sourceMappingURL=options-categories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-categories.d.ts","sourceRoot":"","sources":["../../src/dialog/options-categories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GACxB,UAAU,GACV,MAAM,GACN,UAAU,GACV,eAAe,GACf,UAAU,GACV,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,OAAO,CAAC;AAEX,UAAU,eAAe;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CACf;AA2DD,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,eAAe,EACrB,IAAI,GAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,QAAQ,CAAC,CAAM,GACjE,oBAAoB,CAStB;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,MAAM,GACZ,mBAAmB,CAErB;AAED,8FAA8F;AAC9F,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,mBAAmB,CA6BjF;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,WAAW,CAAC,EAAE,MAAM,GAClB,mBAAmB,CAOrB;AAED,0DAA0D;AAC1D,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,mBAAmB,CAS1E"}
@@ -0,0 +1,49 @@
1
+ import { type TemplateResult } from 'lit';
2
+ /**
3
+ * The control rows of the shared File > Options dialog: toggle, select, number and text, each a
4
+ * `label` row (label start, control end) in the PowerPoint arrangement. Pure templates over a
5
+ * draft record, so the dialog element stays about state and layout.
6
+ */
7
+ export type OfficeOptionValue = boolean | number | string;
8
+ export type OfficeOptionValues = Record<string, OfficeOptionValue>;
9
+ export interface OfficeOptionChoice {
10
+ value: string;
11
+ label: string;
12
+ }
13
+ interface OptionBase {
14
+ /** Key into the values record. */
15
+ key: string;
16
+ label: string;
17
+ /** Optional "(i)" tooltip, as Office's info bubbles. */
18
+ info?: string;
19
+ /** Renders indented under the preceding control. */
20
+ indent?: boolean;
21
+ /** Shown disabled with this reason, for settings the product cannot honour yet. */
22
+ disabled?: string;
23
+ /** Enabled only while the toggle with this key is on (Excel's iterative calculation fields). */
24
+ enabledBy?: string;
25
+ }
26
+ export type OfficeOptionControl = (OptionBase & {
27
+ kind: 'toggle';
28
+ }) | (OptionBase & {
29
+ kind: 'select';
30
+ choices: readonly OfficeOptionChoice[];
31
+ }) | (OptionBase & {
32
+ kind: 'number';
33
+ min: number;
34
+ max: number;
35
+ step?: number;
36
+ unit?: string;
37
+ }) | (OptionBase & {
38
+ kind: 'text';
39
+ maxLength?: number;
40
+ });
41
+ /** Clamp a number edit into range; `undefined` when it is not a finite number. */
42
+ export declare function clampOptionNumber(raw: string, min: number, max: number): number | undefined;
43
+ export interface OptionRowHost {
44
+ readonly draft: OfficeOptionValues;
45
+ set(key: string, value: OfficeOptionValue): void;
46
+ }
47
+ export declare function optionRow(host: OptionRowHost, control: OfficeOptionControl): TemplateResult;
48
+ export {};
49
+ //# sourceMappingURL=options-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-controls.d.ts","sourceRoot":"","sources":["../../src/dialog/options-controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAED,UAAU,UAAU;IACnB,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAC5B,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GACjC,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAA;CAAE,CAAC,GACzE,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACzF,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEvD,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK3F;AAED,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;IACnC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACjD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,GAAG,cAAc,CAqE3F"}
@@ -1,47 +1,25 @@
1
1
  import { type PropertyValues, type TemplateResult } from 'lit';
2
2
  import { OfficeElement } from '../base.js';
3
+ import { type OfficeOptionControl, type OfficeOptionValue, type OfficeOptionValues } from './options-controls.js';
3
4
  /**
4
5
  * Office File > Options dialog. Products describe their categories as data; the element renders
5
- * the category list, the pane and OK/Cancel, and reports the edited values. Generalised from
6
- * pptx-viewer's `VIEWER_OPTIONS_SCHEMA` dialog (render/options) so every viewer shares one.
6
+ * the category list, the pane and Reset/Cancel/OK, and reports the edited values. Generalised from
7
+ * pptx-viewer's `VIEWER_OPTIONS_SCHEMA` dialog (render/options) so every viewer shares one, in the
8
+ * same arrangement: a category rail, a headline, small uppercase section titles and rows with the
9
+ * label at the start and the control at the end.
7
10
  */
8
- export type OfficeOptionValue = boolean | number | string;
9
- export type OfficeOptionValues = Record<string, OfficeOptionValue>;
10
- export interface OfficeOptionChoice {
11
- value: string;
12
- label: string;
13
- }
14
- interface OptionBase {
15
- /** Key into the values record. */
16
- key: string;
17
- label: string;
18
- /** Optional "(i)" tooltip, as Office's info bubbles. */
19
- info?: string;
20
- /** Renders indented under the preceding control. */
21
- indent?: boolean;
22
- /** Shown disabled with this reason, for settings the product cannot honour yet. */
23
- disabled?: string;
24
- }
25
- export type OfficeOptionControl = (OptionBase & {
26
- kind: 'toggle';
27
- }) | (OptionBase & {
28
- kind: 'select';
29
- choices: readonly OfficeOptionChoice[];
30
- }) | (OptionBase & {
31
- kind: 'number';
32
- min: number;
33
- max: number;
34
- step?: number;
35
- unit?: string;
36
- }) | (OptionBase & {
37
- kind: 'text';
38
- maxLength?: number;
39
- });
11
+ export { clampOptionNumber, type OfficeOptionChoice, type OfficeOptionControl, type OfficeOptionValue, type OfficeOptionValues, } from './options-controls.js';
40
12
  export interface OfficeOptionSection {
41
13
  id: string;
42
14
  title: string;
43
15
  description?: string;
44
16
  controls: readonly OfficeOptionControl[];
17
+ /**
18
+ * The product supplies a block of its own under this section's rows (PowerPoint's theme
19
+ * picker): put an element with `slot="<this value>"` in the dialog and it shows there while
20
+ * the category is open.
21
+ */
22
+ slot?: string;
45
23
  }
46
24
  export interface OfficeOptionCategory {
47
25
  id: string;
@@ -51,18 +29,41 @@ export interface OfficeOptionCategory {
51
29
  sections: readonly OfficeOptionSection[];
52
30
  /** The whole category is not available yet; the pane explains why. */
53
31
  disabled?: string;
32
+ /**
33
+ * The product supplies this pane itself (Customize Ribbon): put an element with
34
+ * `slot="pane-<id>"` in the dialog and it shows under the sections while the category is open.
35
+ */
36
+ custom?: boolean;
37
+ }
38
+ /** Translatable chrome of the dialog (English when unset). */
39
+ export interface OfficeOptionsLabels {
40
+ ok: string;
41
+ cancel: string;
42
+ reset: string;
43
+ categories: string;
44
+ close: string;
54
45
  }
55
46
  /** Emitted on OK with every value and the keys that changed. */
56
47
  export type OfficeOptionsChangeEvent = CustomEvent<{
57
48
  values: OfficeOptionValues;
58
49
  changed: string[];
59
50
  }>;
60
- /** Clamp a number edit into range; `undefined` when it is not a finite number. */
61
- export declare function clampOptionNumber(raw: string, min: number, max: number): number | undefined;
62
51
  /**
63
52
  * `<office-ui-options-dialog>`: set `categories` and `values`, then `show()` (or the `open`
64
53
  * attribute). Edits stay in a draft until OK, which emits `office-options-change` and closes;
65
- * Cancel, Escape and the close button discard them. `heading` defaults to "Options".
54
+ * Cancel, Escape and the close button discard them and emit `office-options-cancel`. "Reset all options" (shown when `defaults` is
55
+ * set) puts the defaults in the draft. `heading` defaults to "Options"; `labels` translates the
56
+ * buttons.
57
+ *
58
+ * `live` is PowerPoint's behaviour: every edit applies at once (there is no draft), OK, Escape
59
+ * and the close button keep the edits and Cancel emits `office-options-cancel` for the host to
60
+ * restore its snapshot. "Reset all options" then only emits `office-options-reset`; the host
61
+ * resets and sets `values` again. Live or not, every edit emits `office-option-input` (key and
62
+ * value) and selecting a category emits `office-options-category`.
63
+ *
64
+ * `custom-body` hands the whole body to the host: the frame, heading and close button stay, and
65
+ * whatever the host puts in `slot="body"` replaces the category rail, the pane and the footer.
66
+ * The close button and Escape then behave as they do without it (OK when `live`, else Cancel).
66
67
  */
67
68
  export declare class OfficeUiOptionsDialog extends OfficeElement {
68
69
  static styles: import("lit").CSSResult[];
@@ -75,38 +76,72 @@ export declare class OfficeUiOptionsDialog extends OfficeElement {
75
76
  toAttribute: (value: unknown) => string | null;
76
77
  };
77
78
  };
79
+ live: {
80
+ type: BooleanConstructor;
81
+ reflect: true;
82
+ converter: {
83
+ fromAttribute: (value: string | null) => boolean;
84
+ toAttribute: (value: unknown) => string | null;
85
+ };
86
+ };
87
+ customBody: {
88
+ type: BooleanConstructor;
89
+ reflect: true;
90
+ converter: {
91
+ fromAttribute: (value: string | null) => boolean;
92
+ toAttribute: (value: unknown) => string | null;
93
+ };
94
+ attribute: string;
95
+ };
78
96
  heading: {
79
97
  type: StringConstructor;
80
98
  };
81
99
  categories: {
82
100
  attribute: boolean;
83
101
  };
102
+ defaults: {
103
+ attribute: boolean;
104
+ };
105
+ labels: {
106
+ attribute: boolean;
107
+ };
84
108
  active: {
85
109
  state: boolean;
86
110
  };
87
111
  };
88
112
  open: boolean;
113
+ live: boolean;
114
+ customBody: boolean;
89
115
  heading: string | null;
90
116
  categories: readonly OfficeOptionCategory[];
117
+ defaults: OfficeOptionValues | null;
118
+ labels: Partial<OfficeOptionsLabels>;
91
119
  active: string;
92
120
  private committed;
93
- private draft;
121
+ private draftValues;
94
122
  constructor();
123
+ get draft(): OfficeOptionValues;
95
124
  get values(): OfficeOptionValues;
96
125
  set values(value: OfficeOptionValues);
97
126
  /** The selected category id. */
98
127
  get category(): string;
99
128
  set category(id: string);
100
129
  show(): void;
130
+ /** Closes without applying: the draft is dropped and `office-options-cancel` is emitted. */
101
131
  close(): void;
102
132
  private commit;
133
+ private resetAll;
134
+ /** Panes the product slots in sit outside the dialog's own focus trap: let Tab walk through them. */
135
+ private onPaneKey;
103
136
  private onNavKey;
137
+ /** Native controls and popups follow the theme: dark when `--office-background` is dark. */
138
+ private syncColorScheme;
139
+ protected updated(changed: PropertyValues<this>): void;
104
140
  protected willUpdate(changed: PropertyValues<this>): void;
105
- private set;
106
- private control;
141
+ set(key: string, next: OfficeOptionValue): void;
107
142
  private pane;
108
143
  protected render(): TemplateResult<1>;
144
+ private layout;
109
145
  }
110
146
  export declare const defineOptionsDialog: import("../registry.js").Definer;
111
- export {};
112
147
  //# sourceMappingURL=options-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options-dialog.d.ts","sourceRoot":"","sources":["../../src/dialog/options-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAK7D;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAED,UAAU,UAAU;IACnB,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ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M9C;IAED,OAAO,CAAC,IAAI;IAkBZ,UAAmB,MAAM,sBAqBxB;IAED,OAAO,CAAC,MAAM;CAkDd;AAED,eAAO,MAAM,mBAAmB,+BAI/B,CAAC"}
@@ -0,0 +1,10 @@
1
+ /** Smallest zoom the automatic fit may choose; the status bar slider reaches it as well. */
2
+ export declare const AUTO_FIT_MIN = 25;
3
+ /**
4
+ * The zoom Word for the web and mobile apply on their own: a page wider than the space the canvas
5
+ * offers is scaled to that width, anything else stays at 100%. Returns undefined when the canvas has
6
+ * not been laid out yet (zero width), so callers keep the current zoom.
7
+ */
8
+ export declare function autoFitZoom(availableWidth: number, pageWidth: number): number | undefined;
9
+ /** Pinch scale applied to the zoom at the gesture start, rounded and kept inside the slider range. */
10
+ export declare function pinchZoom(startPercent: number, scale: number, min: number, max: number): number;
@@ -0,0 +1,7 @@
1
+ import type { BackstageHandlers } from './backstage-pages.js';
2
+ /**
3
+ * Word's Customize Ribbon, reduced to showing and hiding: every tab, group and command with a
4
+ * checkbox. Unchecked commands go into `hiddenActions`; groups and tabs left empty disappear.
5
+ * Drawn into `host`, the pane the File > Options dialog shows for the Customize Ribbon category.
6
+ */
7
+ export declare function renderCustomizeRibbon(host: HTMLElement, handlers: BackstageHandlers, t: (text: string) => string): void;
@@ -1,4 +1,4 @@
1
- import type { PageContext } from './backstage-pages.js';
1
+ import type { BackstageHandlers } from './backstage-pages.js';
2
2
  export interface BackstageOptions {
3
3
  locale: string;
4
4
  theme: string;
@@ -9,5 +9,15 @@ export interface BackstageOptions {
9
9
  showThumbnails?: boolean;
10
10
  }
11
11
  export type BackstageOptionKey = keyof BackstageOptions;
12
- /** Editor preferences share the same live controls as the ribbon. */
13
- export declare function renderOptions({ handlers, t, content }: PageContext): void;
12
+ export interface WordOptions {
13
+ readonly element: HTMLElement;
14
+ /** Opens File > Options on a category (General when unset). */
15
+ show(category?: string): void;
16
+ /** Rebuilds the text after the display language changed. */
17
+ relocalize(): void;
18
+ }
19
+ /**
20
+ * The shared Options dialog filled with Word's settings. OK applies the edited values through
21
+ * `handlers.setOption`; Customize Ribbon applies as it is edited and Cancel puts the ribbon back.
22
+ */
23
+ export declare function createWordOptions(handlers: BackstageHandlers, t: (text: string) => string): WordOptions;
@@ -2,7 +2,6 @@ import { PROPERTY_FIELDS, type DocumentModel } from 'ooxml-core/docx';
2
2
  import type { DocumentStats } from 'ooxml-core/docx';
3
3
  import type { FileCommand } from './file-commands.js';
4
4
  import type { BackstageOptions, BackstageOptionKey } from './backstage-options.js';
5
- export { renderOptions } from './backstage-options.js';
6
5
  /** What the File view needs from the editor; every value is read when a page opens. */
7
6
  export interface BackstageHandlers {
8
7
  fileCommand(command: FileCommand, fileName?: string): void;
@@ -34,8 +33,3 @@ export declare function renderOpen({ handlers, t, content }: PageContext): void;
34
33
  export declare function renderSaveAs({ handlers, t, content }: PageContext): void;
35
34
  export declare function renderPrint({ handlers, t, content }: PageContext): void;
36
35
  export declare function renderExport({ handlers, t, content }: PageContext): void;
37
- /**
38
- * Word's Customize Ribbon, reduced to showing and hiding: every tab, group and command with a
39
- * checkbox. Unchecked commands go into `hiddenActions`; groups and tabs left empty disappear.
40
- */
41
- export declare function renderCustomize({ handlers, t, content }: PageContext): void;
@@ -1,8 +1,11 @@
1
1
  import { type BackstageHandlers } from './backstage-pages.js';
2
2
  export type { BackstageHandlers } from './backstage-pages.js';
3
+ /** The File view's pages; `options` and `customize` open the Options dialog instead. */
3
4
  export type BackstagePage = 'home' | 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'export' | 'options' | 'customize';
4
5
  export interface Backstage {
5
6
  element: HTMLElement;
7
+ /** File > Options: a dialog over the document, as PowerPoint and Visio show it. */
8
+ optionsDialog: HTMLElement;
6
9
  open(page?: BackstagePage): void;
7
10
  close(): void;
8
11
  readonly isOpen: boolean;
@@ -0,0 +1,7 @@
1
+ import type { EditorCore } from './editor-core.js';
2
+ /**
3
+ * A press on the bare canvas (the gutter beside the pages, or around the Draft paper) lands on no
4
+ * text, so the browser would focus the canvas and leave typing nowhere. Word puts the caret at the
5
+ * nearest text instead; do the same in both surfaces.
6
+ */
7
+ export declare function attachCanvasClick(core: EditorCore): void;
@@ -0,0 +1,7 @@
1
+ /** The 6 x 7 grid of days that shows `month`, weeks starting on Sunday. */
2
+ export declare function calendarDays(year: number, month: number): Date[];
3
+ /**
4
+ * Opens the calendar under `anchor`. `selected` marks the current value and sets the month shown;
5
+ * `language` is a BCP 47 tag for month and weekday names.
6
+ */
7
+ export declare function openCalendarPopover(anchor: HTMLElement, selected: Date | undefined, language: string, choose: (date: Date) => void): void;
@@ -0,0 +1,7 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { ContentControl } from 'ooxml-core/docx';
3
+ import type { FormatDialog } from './font-dialog.js';
4
+ /** List entries typed one per line keep the stored value of an entry whose text did not change. */
5
+ export declare function parseListEntries(text: string, existing?: ContentControl['items']): NonNullable<ContentControl['items']>;
6
+ /** Developer > Properties: the title, tag, locking and kind-specific settings of the selected control. */
7
+ export declare function createContentControlDialog(getView: () => EditorView | undefined): FormatDialog;
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'prosemirror-state';
2
+ export declare function contentControlViewPlugin(): Plugin;
@@ -9,6 +9,7 @@ import { CollaborationSession } from './collaboration-session.js';
9
9
  import type { EditorTheme, EditorThemeMode } from 'ooxml-core/docx/ui';
10
10
  import type { EditorLocale } from './localization.js';
11
11
  import type { PrintEditingBridge } from './print-editing.js';
12
+ import type { PrintFloats } from './print-float-selection.js';
12
13
  import type { PrintLayoutController } from './print-layout-view.js';
13
14
  import type { ReviewDisplayMode } from './review-display.js';
14
15
  import type { ReviewController } from './review-controller.js';
@@ -34,6 +35,12 @@ export interface ShellParts {
34
35
  chrome?: EditorChrome;
35
36
  printLayout?: PrintLayoutController;
36
37
  printEditing?: PrintEditingBridge;
38
+ /** Detaches in-page header and footer editing. */
39
+ printStoryEditing?: () => void;
40
+ /** Detaches in-page footnote and endnote editing. */
41
+ printNoteEditing?: () => void;
42
+ /** Selection frame and gestures for floating pictures on the pages. */
43
+ printFloats?: PrintFloats;
37
44
  navigator?: PageNavigator;
38
45
  headings?: HeadingNavigator;
39
46
  }
@@ -0,0 +1,17 @@
1
+ import { type EditorState } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
+ export interface SelectedEquation {
4
+ pos: number;
5
+ latex: string;
6
+ display: boolean;
7
+ }
8
+ /** The equation node the selection is on, with its content as LaTeX. */
9
+ export declare function selectedEquation(state: EditorState): SelectedEquation | undefined;
10
+ /** Whether `latex` produces an equation; the dialog previews and validates through this. */
11
+ export declare function equationMarkup(latex: string, display: boolean): string | undefined;
12
+ export type EquationResult = 'done' | 'invalid' | 'unavailable';
13
+ /** Word makes an equation typed on its own line a display equation and one in text inline. */
14
+ export declare function aloneOnItsLine(state: EditorState): boolean;
15
+ export declare function insertEquation(view: EditorView, latex: string, display?: boolean): EquationResult;
16
+ /** Replaces the equation at `pos` with new LaTeX, as one undo step, keeping it selected. */
17
+ export declare function updateEquation(view: EditorView, pos: number, latex: string, display: boolean): EquationResult;
@@ -0,0 +1,7 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { FormatDialog } from './font-dialog.js';
3
+ /**
4
+ * Insert > Equation: type LaTeX (or a Word linear-format equation that uses the same commands)
5
+ * and watch the equation take shape. With an equation selected the dialog edits it.
6
+ */
7
+ export declare function createEquationDialog(getView: () => EditorView | undefined): FormatDialog;
@@ -8,7 +8,7 @@ import { type PageSetupHost } from './page-setup-dialog.js';
8
8
  import { type ZoomHost } from './zoom-dialog.js';
9
9
  import { type LineNumberHost } from './line-number-dialog.js';
10
10
  import { type ColumnsHost } from './columns-dialog.js';
11
- export type FormatDialogKind = 'font' | 'paragraph' | 'bookmark' | 'pageSetup' | 'caption' | 'crossReference' | 'zoom' | 'borders' | 'tableProperties' | 'lineNumbers' | 'textBox' | 'pageBorders' | 'watermark' | 'dropCap' | 'columns' | 'multilevelList' | 'tracking';
11
+ export type FormatDialogKind = 'font' | 'paragraph' | 'bookmark' | 'pageSetup' | 'caption' | 'crossReference' | 'zoom' | 'borders' | 'tableProperties' | 'lineNumbers' | 'textBox' | 'contentControl' | 'equation' | 'shapeText' | 'pageBorders' | 'watermark' | 'dropCap' | 'columns' | 'multilevelList' | 'tracking';
12
12
  export interface FormatDialogsHost {
13
13
  view(): EditorView | undefined;
14
14
  /** Header/footer edits use the main document's history; notes use their own. */
@@ -3,6 +3,7 @@ import type { EditorView } from 'prosemirror-view';
3
3
  import type { DocumentModel, PendingMediaPart } from 'ooxml-core/docx';
4
4
  import { type LinkDialog } from './link-dialog.js';
5
5
  import { type PictureDialog } from './picture-dialog.js';
6
+ import { ShapeTool } from './shape-draw.js';
6
7
  import type { RibbonAction } from './ribbon.js';
7
8
  import { type EditorLocale } from './localization.js';
8
9
  export interface InsertControllerHost {
@@ -25,6 +26,8 @@ export declare class InsertController {
25
26
  readonly pictureInput: HTMLInputElement;
26
27
  /** Bytes for pictures inserted since the document was loaded; passed to save. */
27
28
  readonly pendingMedia: Map<string, PendingMediaPart>;
29
+ /** The shape Insert > Shapes armed for the next drag on the page. */
30
+ readonly shapeTool: ShapeTool;
28
31
  private showHidden;
29
32
  private showMarks;
30
33
  private showGridlines;
@@ -34,6 +37,7 @@ export declare class InsertController {
34
37
  handle(action: RibbonAction): boolean;
35
38
  /** Ctrl+K opens the link dialog; Ctrl/Cmd+Click follows a link like Word. */
36
39
  plugins(): Plugin[];
40
+ private runShapeAction;
37
41
  handleClick(view: EditorView, pos: number, event: MouseEvent): boolean;
38
42
  /** Media bytes for rendering: pictures inserted in this session first, then the loaded package. */
39
43
  media(partName: string, loaded?: ReadonlyMap<string, Uint8Array>): Uint8Array | undefined;
@@ -180,6 +180,7 @@ export declare const enApp: {
180
180
  readonly 'Theme Colors': 'Theme Colors';
181
181
  readonly 'Standard Colors': 'Standard Colors';
182
182
  readonly 'More Colors…': 'More Colors…';
183
+ readonly More: 'More';
183
184
  readonly 'No Color': 'No Color';
184
185
  readonly 'Dark Red': 'Dark Red';
185
186
  readonly 'Light Green': 'Light Green';