ooxml-ui 1.24.0 → 1.26.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 (365) hide show
  1. package/README.md +83 -19
  2. package/custom-elements.json +355 -1
  3. package/dist/bindings/bind-element.d.ts +29 -0
  4. package/dist/bindings/contract.d.ts +115 -0
  5. package/dist/bindings/equality.d.ts +9 -0
  6. package/dist/bindings/handle.d.ts +33 -0
  7. package/dist/bindings/index.d.ts +6 -0
  8. package/dist/bindings/react.d.ts +21 -0
  9. package/dist/bindings/react.js +39 -0
  10. package/dist/bindings/solid.d.ts +14 -0
  11. package/dist/bindings/solid.js +27 -0
  12. package/dist/bindings/src-loader.d.ts +14 -0
  13. package/dist/bindings/tracker.d.ts +14 -0
  14. package/dist/bindings/vue.d.ts +35 -0
  15. package/dist/bindings/vue.js +65 -0
  16. package/dist/bindings.js +3 -0
  17. package/dist/chart/data-sheet-keys.d.ts +38 -0
  18. package/dist/chart/data-sheet-keys.d.ts.map +1 -0
  19. package/dist/chart/data-sheet-labels.d.ts +36 -0
  20. package/dist/chart/data-sheet-labels.d.ts.map +1 -0
  21. package/dist/chart/data-sheet.d.ts +68 -0
  22. package/dist/chart/data-sheet.d.ts.map +1 -0
  23. package/dist/chart/design-galleries.d.ts +52 -0
  24. package/dist/chart/design-galleries.d.ts.map +1 -0
  25. package/dist/chart/format-pane-3d.d.ts +7 -0
  26. package/dist/chart/format-pane-3d.d.ts.map +1 -0
  27. package/dist/chart/format-pane-api.d.ts +17 -0
  28. package/dist/chart/format-pane-api.d.ts.map +1 -0
  29. package/dist/chart/format-pane-axis.d.ts +5 -0
  30. package/dist/chart/format-pane-axis.d.ts.map +1 -0
  31. package/dist/chart/format-pane-common.d.ts +23 -0
  32. package/dist/chart/format-pane-common.d.ts.map +1 -0
  33. package/dist/{pptx/render/chart-format/chart-format-pane-effects.d.ts → chart/format-pane-effects.d.ts} +5 -11
  34. package/dist/chart/format-pane-effects.d.ts.map +1 -0
  35. package/dist/chart/format-pane-fields.d.ts +29 -0
  36. package/dist/chart/format-pane-fields.d.ts.map +1 -0
  37. package/dist/chart/format-pane-fill-kinds.d.ts +16 -0
  38. package/dist/chart/format-pane-fill-kinds.d.ts.map +1 -0
  39. package/dist/chart/format-pane-fill-line.d.ts +13 -0
  40. package/dist/chart/format-pane-fill-line.d.ts.map +1 -0
  41. package/dist/chart/format-pane-fixture.test-util.d.ts +3 -0
  42. package/dist/chart/format-pane-intent.d.ts +24 -0
  43. package/dist/chart/format-pane-intent.d.ts.map +1 -0
  44. package/dist/chart/format-pane-locales/de.d.ts +3 -0
  45. package/dist/chart/format-pane-locales/de.d.ts.map +1 -0
  46. package/dist/chart/format-pane-locales/en.d.ts +3 -0
  47. package/dist/chart/format-pane-locales/en.d.ts.map +1 -0
  48. package/dist/chart/format-pane-locales/es.d.ts +3 -0
  49. package/dist/chart/format-pane-locales/es.d.ts.map +1 -0
  50. package/dist/chart/format-pane-locales/fr.d.ts +3 -0
  51. package/dist/chart/format-pane-locales/fr.d.ts.map +1 -0
  52. package/dist/chart/format-pane-locales/index.d.ts +7 -0
  53. package/dist/chart/format-pane-locales/index.d.ts.map +1 -0
  54. package/dist/chart/format-pane-locales/zh-CN.d.ts +3 -0
  55. package/dist/chart/format-pane-locales/zh-CN.d.ts.map +1 -0
  56. package/dist/chart/format-pane-model.d.ts +23 -0
  57. package/dist/chart/format-pane-model.d.ts.map +1 -0
  58. package/dist/chart/format-pane-options.d.ts +14 -0
  59. package/dist/chart/format-pane-options.d.ts.map +1 -0
  60. package/dist/chart/format-pane-space.d.ts +21 -0
  61. package/dist/chart/format-pane-space.d.ts.map +1 -0
  62. package/dist/chart/format-pane-targets.d.ts +25 -0
  63. package/dist/chart/format-pane-targets.d.ts.map +1 -0
  64. package/dist/chart/format-pane-text.d.ts +7 -0
  65. package/dist/chart/format-pane-text.d.ts.map +1 -0
  66. package/dist/chart/format-pane-translate.d.ts +10 -0
  67. package/dist/chart/format-pane-translate.d.ts.map +1 -0
  68. package/dist/chart/format-pane-types.d.ts +118 -0
  69. package/dist/chart/format-pane-types.d.ts.map +1 -0
  70. package/dist/chart/format-pane-view.d.ts +212 -0
  71. package/dist/chart/format-pane-view.d.ts.map +1 -0
  72. package/dist/chart/format-pane.d.ts +128 -0
  73. package/dist/chart/format-pane.d.ts.map +1 -0
  74. package/dist/chart/gallery-tiles.d.ts +23 -0
  75. package/dist/chart/gallery-tiles.d.ts.map +1 -0
  76. package/dist/chart-format-locales.js +1 -0
  77. package/dist/chunk-CDAXY5KC.js +118 -0
  78. package/dist/chunk-FN7IF6M6.js +25 -0
  79. package/dist/{chunk-4AARUBIF.js → chunk-HGLCXNCT.js} +50 -24
  80. package/dist/chunk-KJMAVPQB.js +53 -0
  81. package/dist/{chunk-A277D2OJ.js → chunk-KSOHDEUI.js} +1 -1
  82. package/dist/chunk-NDUD5JJB.js +79 -0
  83. package/dist/chunk-P4FRKIPE.js +953 -0
  84. package/dist/chunk-VM6ZTKB3.js +1134 -0
  85. package/dist/{chunk-DQEV4EMA.js → chunk-WDOWQKKC.js} +2722 -276
  86. package/dist/{chunk-Y67BTA5W.js → chunk-WH3EGA3S.js} +10 -3
  87. package/dist/controls.d.ts +9 -2
  88. package/dist/controls.d.ts.map +1 -1
  89. package/dist/controls.js +3 -1
  90. package/dist/dialog/dialog.d.ts +6 -0
  91. package/dist/dialog/dialog.d.ts.map +1 -1
  92. package/dist/dialog/progress-dialog.d.ts +42 -0
  93. package/dist/dialog/progress-dialog.d.ts.map +1 -0
  94. package/dist/docx/chart-commands.d.ts +22 -0
  95. package/dist/docx/chart-design-ribbon.d.ts +4 -0
  96. package/dist/docx/chart-dialogs.d.ts +11 -0
  97. package/dist/docx/chart-format-pane.d.ts +22 -0
  98. package/dist/docx/context-menu-items.d.ts +2 -0
  99. package/dist/docx/editor-core.d.ts +3 -0
  100. package/dist/docx/format-dialogs.d.ts +4 -2
  101. package/dist/docx/image-media.d.ts +9 -1
  102. package/dist/docx/insert-controller.d.ts +5 -0
  103. package/dist/docx/locales/charts.d.ts +51 -0
  104. package/dist/docx/locales/en.d.ts +113 -0
  105. package/dist/docx/locales/smartart.d.ts +77 -0
  106. package/dist/docx/localization-strings.d.ts +113 -0
  107. package/dist/docx/resize-handle.d.ts +23 -0
  108. package/dist/docx/ribbon-action.d.ts +15 -0
  109. package/dist/docx/ribbon-icons.d.ts +13 -0
  110. package/dist/docx/smartart-commands.d.ts +26 -0
  111. package/dist/docx/smartart-controller.d.ts +35 -0
  112. package/dist/docx/smartart-design-ribbon.d.ts +7 -0
  113. package/dist/docx/smartart-dialog.d.ts +12 -0
  114. package/dist/docx/smartart-node-view.d.ts +6 -3
  115. package/dist/docx.js +1674 -546
  116. package/dist/form/color-grid.d.ts +8 -1
  117. package/dist/form/color-grid.d.ts.map +1 -1
  118. package/dist/index.d.ts +1 -1
  119. package/dist/index.js +10 -5
  120. package/dist/pptx/ai/bridge-factory.d.ts +77 -0
  121. package/dist/pptx/ai/bridge-factory.d.ts.map +1 -0
  122. package/dist/pptx/ai/index.cjs +443 -164
  123. package/dist/pptx/ai/index.d.ts +4 -0
  124. package/dist/pptx/ai/index.d.ts.map +1 -1
  125. package/dist/pptx/ai/index.mjs +437 -165
  126. package/dist/pptx/ai/panel-controller.d.ts +104 -0
  127. package/dist/pptx/ai/panel-controller.d.ts.map +1 -0
  128. package/dist/pptx/{chart-3d-view-scene-RYL7F65H.cjs → chart-3d-view-scene-N7UQOYFI.cjs} +38 -38
  129. package/dist/pptx/{chart-3d-view-scene-CDIMM5T3.mjs → chart-3d-view-scene-ZUGA3DKM.mjs} +2 -2
  130. package/dist/pptx/{chunk-PIIYTRLE.mjs → chunk-34LEUH5R.mjs} +1 -1
  131. package/dist/pptx/{chunk-G3UVZ5FO.cjs → chunk-6KLPQQYP.cjs} +1 -0
  132. package/dist/pptx/{chunk-B5FR65LB.mjs → chunk-AMW2AR7J.mjs} +48 -2
  133. package/dist/pptx/chunk-CWHK7HF4.mjs +751 -0
  134. package/dist/pptx/{chunk-ZO43VVWQ.cjs → chunk-FM4C4MBJ.cjs} +49 -1
  135. package/dist/pptx/{chunk-LCB46TH2.cjs → chunk-H5IPNKX6.cjs} +12 -12
  136. package/dist/pptx/{chunk-SQQJLXTZ.cjs → chunk-HAO5PKWK.cjs} +8048 -4240
  137. package/dist/pptx/{chunk-3UOENEK7.mjs → chunk-IWUIGVWT.mjs} +7836 -4095
  138. package/dist/pptx/{chunk-ZNXKAINY.mjs → chunk-LB3A3GF6.mjs} +1150 -222
  139. package/dist/pptx/chunk-LUDEAPHZ.cjs +776 -0
  140. package/dist/pptx/{chunk-A2X5BP7J.cjs → chunk-OOQMIQT3.cjs} +1151 -221
  141. package/dist/pptx/chunk-WM5SW737.mjs +27 -0
  142. package/dist/pptx/{chunk-73OUATE4.mjs → chunk-WQA3KZRB.mjs} +1 -1
  143. package/dist/pptx/chunk-Y6DO6SVT.cjs +29 -0
  144. package/dist/pptx/dom/index.cjs +503 -1123
  145. package/dist/pptx/dom/index.d.ts +1 -0
  146. package/dist/pptx/dom/index.d.ts.map +1 -1
  147. package/dist/pptx/dom/index.mjs +12 -704
  148. package/dist/pptx/dom/smartart-insert-preview.d.ts +15 -0
  149. package/dist/pptx/dom/smartart-insert-preview.d.ts.map +1 -0
  150. package/dist/pptx/export/html2canvas-clone.cjs +10 -2
  151. package/dist/pptx/export/html2canvas-clone.d.ts +24 -0
  152. package/dist/pptx/export/html2canvas-clone.d.ts.map +1 -1
  153. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  154. package/dist/pptx/i18n/index.cjs +6 -6
  155. package/dist/pptx/i18n/index.mjs +1 -1
  156. package/dist/pptx/i18n/translations-en-chart-format.d.ts.map +1 -1
  157. package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
  158. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  159. package/dist/pptx/index.cjs +3523 -3238
  160. package/dist/pptx/index.mjs +6 -5
  161. package/dist/pptx/render/autosave-inline-draft.d.ts +27 -0
  162. package/dist/pptx/render/autosave-inline-draft.d.ts.map +1 -0
  163. package/dist/pptx/render/autosave-policy.d.ts +6 -7
  164. package/dist/pptx/render/autosave-policy.d.ts.map +1 -1
  165. package/dist/pptx/render/autosave-tick.d.ts +6 -0
  166. package/dist/pptx/render/autosave-tick.d.ts.map +1 -1
  167. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  168. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  169. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts +10 -2
  170. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts.map +1 -1
  171. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts +4 -2
  172. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts.map +1 -1
  173. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts +4 -91
  174. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts.map +1 -1
  175. package/dist/pptx/render/chart-format/chart-format-source.d.ts +14 -0
  176. package/dist/pptx/render/chart-format/chart-format-source.d.ts.map +1 -0
  177. package/dist/pptx/render/chart-format/chart-format-targets.d.ts +16 -19
  178. package/dist/pptx/render/chart-format/chart-format-targets.d.ts.map +1 -1
  179. package/dist/pptx/render/chart-format/index.d.ts +2 -1
  180. package/dist/pptx/render/chart-format/index.d.ts.map +1 -1
  181. package/dist/pptx/render/chart-overlays.cjs +7 -7
  182. package/dist/pptx/render/chart-overlays.mjs +1 -1
  183. package/dist/pptx/render/chart-quick-action-styles.d.ts +4 -1
  184. package/dist/pptx/render/chart-quick-action-styles.d.ts.map +1 -1
  185. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  186. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  187. package/dist/pptx/render/chart-view-model.cjs +44 -44
  188. package/dist/pptx/render/chart-view-model.mjs +1 -1
  189. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  190. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  191. package/dist/pptx/render/collaboration-provider.d.ts +80 -0
  192. package/dist/pptx/render/collaboration-provider.d.ts.map +1 -0
  193. package/dist/pptx/render/collaboration-yjs-session.d.ts +48 -0
  194. package/dist/pptx/render/collaboration-yjs-session.d.ts.map +1 -0
  195. package/dist/pptx/render/controller/autosave-controller.d.ts +133 -0
  196. package/dist/pptx/render/controller/autosave-controller.d.ts.map +1 -0
  197. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts +68 -0
  198. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts.map +1 -0
  199. package/dist/pptx/render/controller/collaboration-session-controller.d.ts +89 -0
  200. package/dist/pptx/render/controller/collaboration-session-controller.d.ts.map +1 -0
  201. package/dist/pptx/render/controller/controller.d.ts +44 -0
  202. package/dist/pptx/render/controller/controller.d.ts.map +1 -0
  203. package/dist/pptx/render/controller/history-controller.d.ts +54 -0
  204. package/dist/pptx/render/controller/history-controller.d.ts.map +1 -0
  205. package/dist/pptx/render/controller/index.d.ts +17 -0
  206. package/dist/pptx/render/controller/index.d.ts.map +1 -0
  207. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +2 -0
  208. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  209. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +2 -0
  210. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  211. package/dist/pptx/render/editor-gesture-frames.d.ts +59 -0
  212. package/dist/pptx/render/editor-gesture-frames.d.ts.map +1 -0
  213. package/dist/pptx/render/editor-gestures.d.ts +39 -38
  214. package/dist/pptx/render/editor-gestures.d.ts.map +1 -1
  215. package/dist/pptx/render/editor-history.d.ts +1 -1
  216. package/dist/pptx/render/editor-history.d.ts.map +1 -1
  217. package/dist/pptx/render/editor-key-dispatch.d.ts +68 -0
  218. package/dist/pptx/render/editor-key-dispatch.d.ts.map +1 -0
  219. package/dist/pptx/render/effects-helpers.d.ts +8 -1
  220. package/dist/pptx/render/effects-helpers.d.ts.map +1 -1
  221. package/dist/pptx/render/effects-shadow-helpers.d.ts +7 -0
  222. package/dist/pptx/render/effects-shadow-helpers.d.ts.map +1 -1
  223. package/dist/pptx/render/export-progress.d.ts +12 -0
  224. package/dist/pptx/render/export-progress.d.ts.map +1 -1
  225. package/dist/pptx/render/group-press-target.d.ts +37 -0
  226. package/dist/pptx/render/group-press-target.d.ts.map +1 -0
  227. package/dist/pptx/render/index.d.ts +13 -0
  228. package/dist/pptx/render/index.d.ts.map +1 -1
  229. package/dist/pptx/render/insert-chart-preview.d.ts +15 -0
  230. package/dist/pptx/render/insert-chart-preview.d.ts.map +1 -0
  231. package/dist/pptx/render/insert-chart.d.ts +21 -1
  232. package/dist/pptx/render/insert-chart.d.ts.map +1 -1
  233. package/dist/pptx/render/inspector/element-geometry-fields.d.ts +28 -0
  234. package/dist/pptx/render/inspector/element-geometry-fields.d.ts.map +1 -0
  235. package/dist/pptx/render/inspector/index.d.ts +18 -0
  236. package/dist/pptx/render/inspector/index.d.ts.map +1 -0
  237. package/dist/pptx/render/inspector/inspector-field-model.d.ts +125 -0
  238. package/dist/pptx/render/inspector/inspector-field-model.d.ts.map +1 -0
  239. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts +8 -0
  240. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts.map +1 -0
  241. package/dist/pptx/render/inspector/shape-effect-fields.d.ts +27 -0
  242. package/dist/pptx/render/inspector/shape-effect-fields.d.ts.map +1 -0
  243. package/dist/pptx/render/inspector/shape-effect-sections.d.ts +7 -0
  244. package/dist/pptx/render/inspector/shape-effect-sections.d.ts.map +1 -0
  245. package/dist/pptx/render/inspector/shape-line-fields.d.ts +20 -0
  246. package/dist/pptx/render/inspector/shape-line-fields.d.ts.map +1 -0
  247. package/dist/pptx/render/inspector/text-box-fields.d.ts +24 -0
  248. package/dist/pptx/render/inspector/text-box-fields.d.ts.map +1 -0
  249. package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
  250. package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
  251. package/dist/pptx/render/presentation-show-step.d.ts +105 -0
  252. package/dist/pptx/render/presentation-show-step.d.ts.map +1 -0
  253. package/dist/pptx/render/read-only-session.d.ts +120 -0
  254. package/dist/pptx/render/read-only-session.d.ts.map +1 -0
  255. package/dist/pptx/render/ribbon-galleries/chart-colors-gallery.d.ts +3 -2
  256. package/dist/pptx/render/ribbon-galleries/chart-colors-gallery.d.ts.map +1 -1
  257. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-gallery.d.ts +6 -3
  258. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-gallery.d.ts.map +1 -1
  259. package/dist/pptx/render/ribbon-galleries/chart-styles-gallery.d.ts +2 -1
  260. package/dist/pptx/render/ribbon-galleries/chart-styles-gallery.d.ts.map +1 -1
  261. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
  262. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts +1 -1
  263. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts.map +1 -1
  264. package/dist/pptx/render/ribbon-galleries/smartart-colors-gallery.d.ts +0 -8
  265. package/dist/pptx/render/ribbon-galleries/smartart-colors-gallery.d.ts.map +1 -1
  266. package/dist/pptx/render/ribbon-galleries/smartart-commands.d.ts +1 -1
  267. package/dist/pptx/render/ribbon-galleries/smartart-commands.d.ts.map +1 -1
  268. package/dist/pptx/render/ribbon-galleries/smartart-gallery-patch.d.ts +4 -2
  269. package/dist/pptx/render/ribbon-galleries/smartart-gallery-patch.d.ts.map +1 -1
  270. package/dist/pptx/render/ribbon-galleries/smartart-gallery-tiles.d.ts +3 -8
  271. package/dist/pptx/render/ribbon-galleries/smartart-gallery-tiles.d.ts.map +1 -1
  272. package/dist/pptx/render/ribbon-galleries/smartart-layout-tiles.d.ts +7 -5
  273. package/dist/pptx/render/ribbon-galleries/smartart-layout-tiles.d.ts.map +1 -1
  274. package/dist/pptx/render/ribbon-galleries/smartart-layouts-gallery.d.ts.map +1 -1
  275. package/dist/pptx/render/ribbon-insert-state.d.ts +6 -0
  276. package/dist/pptx/render/ribbon-insert-state.d.ts.map +1 -1
  277. package/dist/pptx/render/smart-art-presets.d.ts +12 -6
  278. package/dist/pptx/render/smart-art-presets.d.ts.map +1 -1
  279. package/dist/pptx/render/smartart-text-pane-model.d.ts +59 -0
  280. package/dist/pptx/render/smartart-text-pane-model.d.ts.map +1 -0
  281. package/dist/pptx/render/span-snap-move.d.ts +32 -0
  282. package/dist/pptx/render/span-snap-move.d.ts.map +1 -0
  283. package/dist/pptx/render/theme-color-grid.d.ts +17 -0
  284. package/dist/pptx/render/theme-color-grid.d.ts.map +1 -1
  285. package/dist/pptx/render/viewer-event-payloads.d.ts +4 -4
  286. package/dist/pptx/smartart-insert-preview-5ZTZYAZR.cjs +48 -0
  287. package/dist/pptx/smartart-insert-preview-HMSNUWDO.mjs +39 -0
  288. package/dist/pptx/web-components/chart-data-sheet.d.ts +47 -0
  289. package/dist/pptx/web-components/chart-data-sheet.d.ts.map +1 -0
  290. package/dist/pptx/web-components/chart-format-pane.d.ts +7 -5
  291. package/dist/pptx/web-components/chart-format-pane.d.ts.map +1 -1
  292. package/dist/pptx/web-components/host-styles.d.ts.map +1 -1
  293. package/dist/pptx/web-components/index.d.ts +7 -0
  294. package/dist/pptx/web-components/index.d.ts.map +1 -1
  295. package/dist/pptx/web-components/insert-chart-dialog.d.ts +25 -0
  296. package/dist/pptx/web-components/insert-chart-dialog.d.ts.map +1 -0
  297. package/dist/pptx/web-components/insert-dialog-frame.d.ts +25 -0
  298. package/dist/pptx/web-components/insert-dialog-frame.d.ts.map +1 -0
  299. package/dist/pptx/web-components/insert-smartart-dialog.d.ts +26 -0
  300. package/dist/pptx/web-components/insert-smartart-dialog.d.ts.map +1 -0
  301. package/dist/pptx/web-components/mobile-insert.d.ts.map +1 -1
  302. package/dist/pptx/web-components/office-alias-types.d.ts +6 -1
  303. package/dist/pptx/web-components/office-alias-types.d.ts.map +1 -1
  304. package/dist/pptx/web-components/office-aliases.d.ts +5 -0
  305. package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
  306. package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
  307. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  308. package/dist/pptx/web-components/ribbon-insert-view.d.ts.map +1 -1
  309. package/dist/pptx/web-components/smartart-text-pane.d.ts +38 -0
  310. package/dist/pptx/web-components/smartart-text-pane.d.ts.map +1 -0
  311. package/dist/smartart/galleries.d.ts +17 -0
  312. package/dist/smartart/smartart-picker.d.ts +97 -0
  313. package/dist/smartart/smartart-picker.d.ts.map +1 -0
  314. package/dist/smartart/smartart-text-pane-tools.d.ts +51 -0
  315. package/dist/smartart/smartart-text-pane-tools.d.ts.map +1 -0
  316. package/dist/smartart/smartart-text-pane.d.ts +121 -0
  317. package/dist/smartart/smartart-text-pane.d.ts.map +1 -0
  318. package/dist/smartart/text-pane-controller.d.ts +51 -0
  319. package/dist/smartart/tiles.d.ts +17 -0
  320. package/dist/smartart/tiles.d.ts.map +1 -0
  321. package/dist/smartart.d.ts +5 -0
  322. package/dist/smartart.js +2 -1
  323. package/dist/teams/app/bind.d.ts +30 -0
  324. package/dist/teams/app/index.d.ts +1 -1
  325. package/dist/teams.js +7 -2
  326. package/dist/visio/ribbon-action.d.ts +5 -2
  327. package/dist/visio/viewer-chart-editor.d.ts +38 -0
  328. package/dist/visio/viewer-insert.d.ts +7 -2
  329. package/dist/visio.js +197 -17
  330. package/dist/xlsx/chart-format-pane.d.ts +10 -0
  331. package/dist/xlsx/chart-format-source.d.ts +17 -0
  332. package/dist/xlsx/commands/chart-design.d.ts +55 -0
  333. package/dist/xlsx/dialogs/insert-smartart.d.ts +4 -0
  334. package/dist/xlsx/grid/smartart.d.ts +4 -1
  335. package/dist/xlsx/ribbon/tabs/contextual.d.ts +6 -0
  336. package/dist/xlsx/smartart-controller.d.ts +14 -0
  337. package/dist/xlsx.js +789 -468
  338. package/package.json +47 -4
  339. package/dist/chunk-QBXYGKPB.js +0 -224
  340. package/dist/pptx/render/chart-format/chart-format-pane-3d.d.ts +0 -13
  341. package/dist/pptx/render/chart-format/chart-format-pane-3d.d.ts.map +0 -1
  342. package/dist/pptx/render/chart-format/chart-format-pane-axis.d.ts +0 -12
  343. package/dist/pptx/render/chart-format/chart-format-pane-axis.d.ts.map +0 -1
  344. package/dist/pptx/render/chart-format/chart-format-pane-common.d.ts +0 -14
  345. package/dist/pptx/render/chart-format/chart-format-pane-common.d.ts.map +0 -1
  346. package/dist/pptx/render/chart-format/chart-format-pane-effects.d.ts.map +0 -1
  347. package/dist/pptx/render/chart-format/chart-format-pane-fill-kinds.d.ts +0 -15
  348. package/dist/pptx/render/chart-format/chart-format-pane-fill-kinds.d.ts.map +0 -1
  349. package/dist/pptx/render/chart-format/chart-format-pane-fill-line.d.ts +0 -12
  350. package/dist/pptx/render/chart-format/chart-format-pane-fill-line.d.ts.map +0 -1
  351. package/dist/pptx/render/chart-format/chart-format-pane-options.d.ts +0 -13
  352. package/dist/pptx/render/chart-format/chart-format-pane-options.d.ts.map +0 -1
  353. package/dist/pptx/render/chart-format/chart-format-pane-text.d.ts +0 -14
  354. package/dist/pptx/render/chart-format/chart-format-pane-text.d.ts.map +0 -1
  355. package/dist/pptx/render/ribbon-galleries/chart-color-palette-catalog.d.ts +0 -3
  356. package/dist/pptx/render/ribbon-galleries/chart-color-palette-catalog.d.ts.map +0 -1
  357. package/dist/pptx/render/ribbon-galleries/chart-gallery-tiles.d.ts +0 -24
  358. package/dist/pptx/render/ribbon-galleries/chart-gallery-tiles.d.ts.map +0 -1
  359. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-catalog.d.ts +0 -22
  360. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-catalog.d.ts.map +0 -1
  361. package/dist/pptx/web-components/chart-format-pane-fields.d.ts +0 -17
  362. package/dist/pptx/web-components/chart-format-pane-fields.d.ts.map +0 -1
  363. package/dist/xlsx/chart-area-pane.d.ts +0 -9
  364. package/dist/xlsx/chart-series-pane.d.ts +0 -8
  365. package/dist/xlsx/commands/chart-colors.d.ts +0 -19
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ var chunkLUDEAPHZ_cjs = require('./chunk-LUDEAPHZ.cjs');
4
+ require('./chunk-HAO5PKWK.cjs');
5
+ require('./chunk-WSTWYZFM.cjs');
6
+ require('./chunk-2JEQHIAL.cjs');
7
+ require('./chunk-IOR4KOGN.cjs');
8
+ require('./chunk-X7FS7XHU.cjs');
9
+ require('./chunk-XFQ2RD4I.cjs');
10
+ require('./chunk-52LKIMK3.cjs');
11
+ require('./chunk-H5IPNKX6.cjs');
12
+ require('./chunk-XOAXPD2W.cjs');
13
+ require('./chunk-P27CIE4O.cjs');
14
+ require('./chunk-BSGCZ4JZ.cjs');
15
+ require('./chunk-43NFRLCD.cjs');
16
+ require('./chunk-IOOI63TH.cjs');
17
+ require('./chunk-ZJFN5POF.cjs');
18
+ require('./chunk-B4GBGPNL.cjs');
19
+ require('./chunk-WB25PCHQ.cjs');
20
+ require('./chunk-W3X2UVYQ.cjs');
21
+ require('./chunk-6KLPQQYP.cjs');
22
+ require('./chunk-FOE75Z6N.cjs');
23
+ require('./chunk-NTXHQHCS.cjs');
24
+ require('./chunk-JJP5HOLA.cjs');
25
+ require('./chunk-QWF3PGUX.cjs');
26
+ require('./chunk-FM4C4MBJ.cjs');
27
+ require('./chunk-G4WRLFMJ.cjs');
28
+ require('./chunk-73IDQGYI.cjs');
29
+ require('./chunk-X4FNVH7J.cjs');
30
+ require('./chunk-FGKPZFLL.cjs');
31
+ require('./chunk-UPN5FFKP.cjs');
32
+ require('./chunk-FQUX6AUU.cjs');
33
+ require('./chunk-OJFD3SHS.cjs');
34
+ require('./chunk-USBRSEJK.cjs');
35
+ require('./chunk-3ESFHUZI.cjs');
36
+ require('./chunk-U47LRWDT.cjs');
37
+ require('./chunk-OOQMIQT3.cjs');
38
+ require('./chunk-Y6DO6SVT.cjs');
39
+ require('./chunk-PBZWDEXQ.cjs');
40
+ require('./chunk-HJ3JZXOL.cjs');
41
+ require('./chunk-EW5DW5KR.cjs');
42
+
43
+
44
+
45
+ Object.defineProperty(exports, "buildSmartArtInsertPreview", {
46
+ enumerable: true,
47
+ get: function () { return chunkLUDEAPHZ_cjs.buildSmartArtInsertPreview; }
48
+ });
@@ -0,0 +1,39 @@
1
+ export { buildSmartArtInsertPreview } from './chunk-CWHK7HF4.mjs';
2
+ import './chunk-IWUIGVWT.mjs';
3
+ import './chunk-A63ASSCH.mjs';
4
+ import './chunk-DMWNOP4E.mjs';
5
+ import './chunk-WSR2S2MY.mjs';
6
+ import './chunk-GVH4QN7R.mjs';
7
+ import './chunk-6B3UUVRS.mjs';
8
+ import './chunk-APQ3OOAT.mjs';
9
+ import './chunk-WQA3KZRB.mjs';
10
+ import './chunk-RQJOOXRG.mjs';
11
+ import './chunk-PI47Z46K.mjs';
12
+ import './chunk-QX6XPYVA.mjs';
13
+ import './chunk-72P6AWRA.mjs';
14
+ import './chunk-KY75GY5O.mjs';
15
+ import './chunk-L55MIOBC.mjs';
16
+ import './chunk-7DIZOCO4.mjs';
17
+ import './chunk-SMSCEGAE.mjs';
18
+ import './chunk-7BHPBO2O.mjs';
19
+ import './chunk-34LEUH5R.mjs';
20
+ import './chunk-IB6ZM2E2.mjs';
21
+ import './chunk-JA7WYSRE.mjs';
22
+ import './chunk-V4YMLIGL.mjs';
23
+ import './chunk-MNSWEXYO.mjs';
24
+ import './chunk-AMW2AR7J.mjs';
25
+ import './chunk-2V5ATMMB.mjs';
26
+ import './chunk-A62C6PSL.mjs';
27
+ import './chunk-3ZI57W7O.mjs';
28
+ import './chunk-IXFG46KB.mjs';
29
+ import './chunk-IEAO7N4E.mjs';
30
+ import './chunk-XAOEDYA5.mjs';
31
+ import './chunk-PMURSMHH.mjs';
32
+ import './chunk-T7FRLIDM.mjs';
33
+ import './chunk-MK2ASJSY.mjs';
34
+ import './chunk-AEQGGKRZ.mjs';
35
+ import './chunk-LB3A3GF6.mjs';
36
+ import './chunk-WM5SW737.mjs';
37
+ import './chunk-PEDGPFLR.mjs';
38
+ import './chunk-7JBQPQ6G.mjs';
39
+ import './chunk-WHUMPYEM.mjs';
@@ -0,0 +1,47 @@
1
+ import type { ChartDataSheetEdit } from 'ooxml-core/chart';
2
+ import type { PptxChartData } from 'ooxml-core/pptx';
3
+ import type { OfficeChartDataSheetLabels, OfficeUiChartDataSheet } from '../../chart/data-sheet.js';
4
+ type Translate = (key: string, params?: Record<string, string | number>) => string;
5
+ /** What a binding passes to `pptx-ui-chart-data-sheet` through `state`. */
6
+ export interface ChartDataSheetViewState {
7
+ chartData: PptxChartData | undefined;
8
+ canEdit: boolean;
9
+ /**
10
+ * File > Options > Advanced > "Properties follow chart data point for current workbook":
11
+ * whether removing a category re-indexes per-point formatting (default `true`).
12
+ */
13
+ followDataPoint?: boolean;
14
+ /** The chart part picked on the canvas: a value cell, or a series' name cell. */
15
+ highlight?: {
16
+ seriesIndex: number;
17
+ pointIndex?: number;
18
+ } | null;
19
+ /** BCP-47 language the values are read and shown in (default: the browser's). */
20
+ locale?: string;
21
+ translate?: Translate;
22
+ }
23
+ /** Detail of `pptx-chart-data-change`: the chart data after the edits, ready to commit. */
24
+ export interface ChartDataSheetChange {
25
+ chartData: PptxChartData;
26
+ edits: ChartDataSheetEdit[];
27
+ }
28
+ export type ChartDataSheetChangeEvent = CustomEvent<ChartDataSheetChange>;
29
+ export interface PptxUiChartDataSheetElement extends OfficeUiChartDataSheet {
30
+ state: ChartDataSheetViewState;
31
+ }
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ 'pptx-ui-chart-data-sheet': PptxUiChartDataSheetElement;
35
+ }
36
+ }
37
+ /** The sheet's text from the pptx dictionary (the keys every binding's grid used). */
38
+ export declare function chartDataSheetLabels(t: Translate): OfficeChartDataSheetLabels;
39
+ /**
40
+ * `pptx-ui-chart-data-sheet`: the shared chart data sheet fed a pptx chart. A binding sets
41
+ * `state` and commits the `pptx-chart-data-change` detail's `chartData` through its own update
42
+ * path; the edits go through the pptx chart grid policy (`chartDataApplySheetEdits`), so series
43
+ * and point formatting survive every edit.
44
+ */
45
+ export declare function definePptxChartDataSheet(registry: CustomElementRegistry): void;
46
+ export {};
47
+ //# sourceMappingURL=chart-data-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-data-sheet.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/chart-data-sheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGjG,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEnF,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACvC,SAAS,EAAE,aAAa,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iFAAiF;IACjF,SAAS,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAChE,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACpC,SAAS,EAAE,aAAa,CAAC;IACzB,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC5B;AACD,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAE1E,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IAC1E,KAAK,EAAE,uBAAuB,CAAC;CAC/B;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,0BAA0B,EAAE,2BAA2B,CAAC;KACxD;CACD;AAED,sFAAsF;AACtF,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,SAAS,GAAG,0BAA0B,CAgB7E;AAID;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAkD9E"}
@@ -24,11 +24,13 @@ declare global {
24
24
  }
25
25
  /**
26
26
  * `pptx-ui-chart-format-pane`: PowerPoint's chart Format task pane (Format
27
- * Chart Area, Format Data Series, Format Axis, ...). It owns the view and
28
- * turns each committed field into a whole new chart model through the shared
29
- * `applyChartFormatField`; the host applies it and keeps history. Docked at
30
- * the editor's right edge, a bottom sheet on narrow screens; `inline` lays it
31
- * out in flow.
27
+ * Chart Area, Format Data Series, Format Axis, ...), a thin subclass of the
28
+ * shared `office-ui-chart-format-pane`. It reads `chartData` through
29
+ * {@link pptxChartFormatSource} and maps each committed edit onto the pptx
30
+ * chart operations (`applyChartFormatEdit`), firing `chart-format-change`
31
+ * with the whole new chart model; the host applies it and keeps history.
32
+ * Docked at the editor's right edge, a bottom sheet on narrow screens;
33
+ * `inline` lays it out in flow. Keeps PowerPoint's tags, events and ids.
32
34
  */
33
35
  export declare function definePptxChartFormatPane(registry: CustomElementRegistry): void;
34
36
  //# sourceMappingURL=chart-format-pane.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-format-pane.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/chart-format-pane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAoBrD,MAAM,MAAM,wBAAwB,GAAG,CACtC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EA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AAyF;AACzF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC;IAAE,SAAS,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAC/F,gDAAgD;AAChD,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AACrE,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,2BAA2B,EAAE,4BAA4B,CAAC;KAC1D;CACD;AAID;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAsE/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"host-styles.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/host-styles.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,QA+CvB,CAAC"}
1
+ {"version":3,"file":"host-styles.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/host-styles.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,QAgDvB,CAAC"}
@@ -1,9 +1,15 @@
1
1
  export { slideClipboardLabels } from './slide-clipboard.js';
2
2
  export type { PptxUiSlideClipboardElement } from './slide-clipboard.js';
3
+ export { smartArtTextPaneLabels } from './smartart-text-pane.js';
4
+ export type { PptxUiSmartArtTextPaneElement, SmartArtTextPaneChange, SmartArtTextPaneChangeEvent, SmartArtTextPaneViewState, } from './smartart-text-pane.js';
3
5
  export type { PptxUiThemeEditorElement, ThemeEditorApplyEvent } from './theme-editor.js';
6
+ export type { InsertChartDialogDetail, InsertChartDialogInsertEvent, PptxUiInsertChartDialogElement, } from './insert-chart-dialog.js';
7
+ export type { InsertSmartArtDialogDetail, InsertSmartArtDialogInsertEvent, PptxUiInsertSmartArtDialogElement, } from './insert-smartart-dialog.js';
4
8
  export type { ChartFormatChangeEvent, ChartFormatPaneTranslate, ChartFormatTargetEvent, PptxUiChartFormatPaneElement, } from './chart-format-pane.js';
5
9
  export type { CompatToastsRequestEvent, PptxUiCompatToastsElement } from './office-alias-types.js';
6
10
  export type { PptxUiColorGridElement } from './office-aliases.js';
11
+ export { chartDataSheetLabels } from './chart-data-sheet.js';
12
+ export type { ChartDataSheetChange, ChartDataSheetChangeEvent, ChartDataSheetViewState, PptxUiChartDataSheetElement, } from './chart-data-sheet.js';
7
13
  export type { DialogFooterRequestEvent, PptxUiDialogFooterElement } from './office-alias-types.js';
8
14
  export type { MobileBarRequestEvent, PptxUiMobileBarElement } from './mobile-bar.js';
9
15
  export type { MobileInsertRequestEvent, PptxUiMobileInsertElement } from './mobile-insert.js';
@@ -12,6 +18,7 @@ export type { PasteOptionsRequestEvent, PptxUiPasteOptionsElement } from './offi
12
18
  export type { PptxUiPresentToolbarElement, PresentToolbarRequestEvent } from './present-toolbar.js';
13
19
  export type { PptxUiPresenterConsoleElement, PresenterConsoleRequestEvent, } from './presenter-console.js';
14
20
  export type { PptxUiReadOnlyBannerElement, ReadOnlyBannerRequestEvent } from './office-alias-types.js';
21
+ export type { PptxUiExportProgressElement } from './office-alias-types.js';
15
22
  export { attachRibbonOverflow, reflowRibbon } from './ribbon-overflow.js';
16
23
  export type { RibbonRowOptions } from './ribbon-overflow.js';
17
24
  export { HOME_LAUNCHER_GROUPS, homeLaunchers } from './ribbon-launchers.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AA4DrE,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACtF,YAAY,EACX,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,wBAAwB,EAAE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iB,CAAC;AAChE,YAAY,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EACX,6BAA6B,EAC7B,2BAA2B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,YAAY,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACpG,YAAY,EACX,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,EACN,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,YAAY,EACX,6BAA6B,EAC7B,2BAA2B,GAC3B,MAAM,sBAAsB,CAAC;AA8D9B,oFAAoF;AACpF,wBAAgB,uBAAuB,IAAI,IAAI,CA0B9C"}
@@ -0,0 +1,25 @@
1
+ import type { InsertChartGrouping, InsertChartKind } from '../render/index.js';
2
+ import type { InsertDialogTranslate } from './insert-dialog-frame.js';
3
+ /** What Insert hands the host: build the chart with `createDefaultChartElement(kind, _, rest)`. */
4
+ export interface InsertChartDialogDetail {
5
+ kind: InsertChartKind;
6
+ title: string;
7
+ grouping: InsertChartGrouping;
8
+ }
9
+ export type InsertChartDialogInsertEvent = CustomEvent<InsertChartDialogDetail>;
10
+ export interface PptxUiInsertChartDialogElement extends HTMLElement {
11
+ open: boolean;
12
+ /** The chart type selected when the dialog opens. */
13
+ kind: InsertChartKind;
14
+ translateLabel: InsertDialogTranslate | undefined;
15
+ }
16
+ /**
17
+ * `pptx-ui-insert-chart-dialog`: PowerPoint's Insert Chart dialog, the shared
18
+ * `office-ui-chart-picker` (type gallery with live previews drawn by the slide's chart
19
+ * renderer, grouping, title) in the shared dialog. Controlled: the host sets `open` (and
20
+ * optionally `kind` and `translateLabel`); Insert emits `insert-chart` with
21
+ * {@link InsertChartDialogDetail}, and every close (Insert, Cancel, Escape, the backdrop)
22
+ * emits `dialog-close` so the host clears its open state. The host inserts the chart.
23
+ */
24
+ export declare function definePptxInsertChartDialog(registry: CustomElementRegistry): void;
25
+ //# sourceMappingURL=insert-chart-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-chart-dialog.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/insert-chart-dialog.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,KAAK,EAAqB,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,mGAAmG;AACnG,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,mBAAmB,CAAC;CAC9B;AACD,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,uBAAuB,CAAC,CAAC;AAEhF,MAAM,WAAW,8BAA+B,SAAQ,WAAW;IAClE,IAAI,EAAE,OAAO,CAAC;IACd,qDAAqD;IACrD,IAAI,EAAE,eAAe,CAAC;IACtB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAClD;AAKD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CA0JjF"}
@@ -0,0 +1,25 @@
1
+ import type { OfficeUiDialog } from '../../dialog/dialog.js';
2
+ import type { OfficeDialogFooterState } from '../../dialog/dialog-footer.js';
3
+ /** Translates a dictionary key; an untranslated key comes back unchanged. */
4
+ export type InsertDialogTranslate = (key: string) => string;
5
+ /** `translate(key)`, or the English fallback while the key has no entry. */
6
+ export declare function insertDialogText(translate: InsertDialogTranslate | undefined, key: string, fallback: string): string;
7
+ type Dialog = OfficeUiDialog;
8
+ type Footer = HTMLElement & {
9
+ state: OfficeDialogFooterState;
10
+ focusAction(id: string): void;
11
+ };
12
+ /**
13
+ * The frame of a PowerPoint insert dialog: the shared `office-ui-dialog` (heading, Escape,
14
+ * backdrop, focus trap) around a shared picker, with Cancel and Insert in an
15
+ * `office-ui-dialog-footer`. Rendered in the host element's light DOM so the dialog's focus
16
+ * trap sees the picker's controls. `onClose` runs whenever the dialog closes itself.
17
+ */
18
+ export interface InsertDialogFrame {
19
+ dialog: Dialog;
20
+ footer: Footer;
21
+ sync(heading: string, closeLabel: string, cancel: string, insert: string, canInsert: boolean): void;
22
+ }
23
+ export declare function createInsertDialogFrame(host: HTMLElement, body: HTMLElement, onInsert: () => void, onClose: () => void): InsertDialogFrame;
24
+ export {};
25
+ //# sourceMappingURL=insert-dialog-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-dialog-frame.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/insert-dialog-frame.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,6EAA6E;AAC7E,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;AAE5D,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAC5C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACd,MAAM,CAGR;AAED,KAAK,MAAM,GAAG,cAAc,CAAC;AAC7B,KAAK,MAAM,GAAG,WAAW,GAAG;IAAE,KAAK,EAAE,uBAAuB,CAAC;IAAC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAE9F;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CACH,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,GAChB,IAAI,CAAC;CACR;AAED,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,EAAE,MAAM,IAAI,GACjB,iBAAiB,CAoCnB"}
@@ -0,0 +1,26 @@
1
+ import type { SmartArtLayout } from 'ooxml-core/pptx';
2
+ import type { OfficeSmartArtPreview } from '../../smartart/smartart-picker.js';
3
+ import type { InsertDialogTranslate } from './insert-dialog-frame.js';
4
+ /** What Insert hands the host: the layout and the node texts to seed it with. */
5
+ export interface InsertSmartArtDialogDetail {
6
+ layout: SmartArtLayout;
7
+ items: string[];
8
+ }
9
+ export type InsertSmartArtDialogInsertEvent = CustomEvent<InsertSmartArtDialogDetail>;
10
+ export interface PptxUiInsertSmartArtDialogElement extends HTMLElement {
11
+ open: boolean;
12
+ translateLabel: InsertDialogTranslate | undefined;
13
+ /** Replaces the live previews (tests, or a host that draws its own). */
14
+ drawPreview: OfficeSmartArtPreview | undefined;
15
+ }
16
+ /**
17
+ * `pptx-ui-insert-smartart-dialog`: PowerPoint's Insert SmartArt dialog, the shared
18
+ * `office-ui-smartart-picker` (categories, layout gallery, description pane and the node texts)
19
+ * in the shared dialog. Tiles start as layout-family drawings and switch to live renders of the
20
+ * diagram each preset inserts once the slide renderer has loaded (on first open). Controlled: the
21
+ * host sets `open` (and `translateLabel`); Insert, a double click or Enter on a tile emits
22
+ * `insert-smartart` with {@link InsertSmartArtDialogDetail}, and every close emits
23
+ * `dialog-close` so the host clears its open state. The host inserts the diagram.
24
+ */
25
+ export declare function definePptxInsertSmartArtDialog(registry: CustomElementRegistry): void;
26
+ //# sourceMappingURL=insert-smartart-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert-smartart-dialog.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/insert-smartart-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAA0B,MAAM,gCAAgC,CAAC;AAQpG,OAAO,KAAK,EAAqB,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,iFAAiF;AACjF,MAAM,WAAW,0BAA0B;IAC1C,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AACD,MAAM,MAAM,+BAA+B,GAAG,WAAW,CAAC,0BAA0B,CAAC,CAAC;AAEtF,MAAM,WAAW,iCAAkC,SAAQ,WAAW;IACrE,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAClD,wEAAwE;IACxE,WAAW,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC/C;AAID;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAsLpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-insert.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/mobile-insert.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGX,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,WAAW,CAAC;AAOnB,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC7D,KAAK,EAAE,iBAAiB,CAAC;IACzB,mEAAmE;IACnE,KAAK,IAAI,IAAI,CAAC;CACd;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,yBAAyB,CAAC;KACnD;CACD;AA6BD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAmM5E"}
1
+ {"version":3,"file":"mobile-insert.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/mobile-insert.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGX,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,WAAW,CAAC;AAOnB,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC7D,KAAK,EAAE,iBAAiB,CAAC;IACzB,mEAAmE;IACnE,KAAK,IAAI,IAAI,CAAC;CACd;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,yBAAyB,CAAC;KACnD;CACD;AA6BD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CA0M5E"}
@@ -1,4 +1,4 @@
1
- import type { CompatToastsIntent, CompatToastsViewState, DialogFooterIntent, DialogFooterViewState, PasteOptionsIntent, PasteOptionsViewState, ReadOnlyBannerIntent, ReadOnlyBannerViewState, RibbonControlId } from '../render/index.js';
1
+ import type { CompatToastsIntent, CompatToastsViewState, DialogFooterIntent, DialogFooterViewState, ExportProgressViewState, PasteOptionsIntent, PasteOptionsViewState, ReadOnlyBannerIntent, ReadOnlyBannerViewState, RibbonControlId } from '../render/index.js';
2
2
  import type { ContextMenuCloseDetail, ContextMenuRequestDetail, ContextMenuViewState } from './context-menu-model.js';
3
3
  /**
4
4
  * Public types of the `pptx-ui-*` tags implemented by `ooxml-ui` (see `office-aliases.ts`).
@@ -22,6 +22,10 @@ export type ReadOnlyBannerRequestEvent = CustomEvent<ReadOnlyBannerIntent>;
22
22
  export interface PptxUiReadOnlyBannerElement extends HTMLElement {
23
23
  state: ReadOnlyBannerViewState;
24
24
  }
25
+ /** `export-cancel` carries no detail: the host aborts the export and closes the modal. */
26
+ export interface PptxUiExportProgressElement extends HTMLElement {
27
+ state: ExportProgressViewState;
28
+ }
25
29
  export type RibbonCommandRequestEvent = CustomEvent<{
26
30
  id: RibbonControlId;
27
31
  }>;
@@ -41,6 +45,7 @@ declare global {
41
45
  'pptx-ui-dialog-footer': PptxUiDialogFooterElement;
42
46
  'pptx-ui-paste-options': PptxUiPasteOptionsElement;
43
47
  'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
48
+ 'pptx-ui-export-progress': PptxUiExportProgressElement;
44
49
  }
45
50
  }
46
51
  //# sourceMappingURL=office-alias-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"office-alias-types.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-alias-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACX,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC7D,KAAK,EAAE,qBAAqB,CAAC;CAC7B;AAED,M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,GAAG,WAAW,CAAC,sBAAsB,CAAC,CAAC;AACxE,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC5D,KAAK,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC;IAAE,EAAE,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAE9F,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,yBAAyB,CAAC;QACnD,sBAAsB,EAAE,wBAAwB,CAAC;QACjD,uBAAuB,EAAE,yBAAyB,CAAC;QACnD,uBAAuB,EAAE,yBAAyB,CAAC;QACnD,0BAA0B,EAAE,2BAA2B,CAAC;QACxD,yBAAyB,EAAE,2BAA2B,CAAC;KACvD;CACD"}
@@ -48,5 +48,10 @@ export declare function definePptxRibbonGroup(registry: CustomElementRegistry):
48
48
  * and markers limited to the `data-pptx-*` namespace.
49
49
  */
50
50
  export declare function definePptxContextMenu(registry: CustomElementRegistry): void;
51
+ /**
52
+ * The export progress modal: the shared progress dialog under its pptx name, `export-cancel` and
53
+ * the `pptx-export-progress-*` test ids, with the pptx export strings.
54
+ */
55
+ export declare function definePptxExportProgress(registry: CustomElementRegistry): void;
51
56
  export {};
52
57
  //# sourceMappingURL=office-aliases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"office-aliases.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-aliases.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAiBxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D;;;;;;GAMG;AAEH,KAAK,IAAI,GAAG,wBAAwB,CAAC;AASrC,wBAAgB,IAAI,CACnB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,EAC1C,G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A6F;AAC7F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAQtE;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAmB5E;AAKD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAyB5E;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CA8C5E;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAgD9E;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CA6C5E;AAWD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAsE7E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAgC3E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAgB3E;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CA4B9E"}
@@ -5,7 +5,7 @@
5
5
  * (the `--pptx-*` theme lives on the viewer root, not `:root`), so a viewer theme, a title-bar
6
6
  * override of `--pptx-switch-*` or any host override keeps working unchanged.
7
7
  */
8
- export declare const OFFICE_ALIAS_TAGS: readonly ['pptx-ui-checkbox', 'pptx-ui-switch', 'pptx-ui-radio', 'pptx-ui-search', 'pptx-ui-color-grid', 'pptx-ui-select', 'pptx-ui-ribbon-toggle', 'pptx-ui-dialog-footer', 'pptx-ui-compat-toasts', 'pptx-ui-read-only-banner', 'pptx-ui-paste-options', 'pptx-ui-ribbon-command', 'pptx-ui-ribbon-group', 'pptx-ui-context-menu', 'pptx-ui-title-bar', 'pptx-ui-status-bar', 'pptx-ui-ribbon-gallery', 'pptx-ui-ribbon-actions', 'pptx-ui-options-dialog'];
8
+ export declare const OFFICE_ALIAS_TAGS: readonly ['pptx-ui-checkbox', 'pptx-ui-switch', 'pptx-ui-radio', 'pptx-ui-search', 'pptx-ui-color-grid', 'pptx-ui-chart-data-sheet', 'pptx-ui-select', 'pptx-ui-ribbon-toggle', 'pptx-ui-dialog-footer', 'pptx-ui-compat-toasts', 'pptx-ui-read-only-banner', 'pptx-ui-export-progress', 'pptx-ui-paste-options', 'pptx-ui-ribbon-command', 'pptx-ui-ribbon-group', 'pptx-ui-context-menu', 'pptx-ui-title-bar', 'pptx-ui-status-bar', 'pptx-ui-ribbon-gallery', 'pptx-ui-ribbon-actions', 'pptx-ui-options-dialog', 'pptx-ui-smartart-text-pane'];
9
9
  /**
10
10
  * The bridge for one alias, as `:host` rules in its own shadow root. It must travel with the
11
11
  * element: controls rendered inside another shadow root (the title bar's search and AutoSave
@@ -1 +1 @@
1
- {"version":3,"file":"office-token-bridge.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-token-bridge.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAC7B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,CACf,CAAC;AA6HX;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAqCzE;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+NAG/B,CAAC"}
1
+ {"version":3,"file":"office-token-bridge.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-token-bridge.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAC7B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,CACnB,CAAC;AAoIX;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAqCzE;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+NAG/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ribbon-insert-view.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/ribbon-insert-view.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAGX,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,qBAAqB,CAAC;AAqBtE,4FAA4F;AAC5F,wBAAgB,sBAAsB,CACrC,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI;;kBA4ZxB,iBAAiB;;EAoCtC"}
1
+ {"version":3,"file":"ribbon-insert-view.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/ribbon-insert-view.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAGX,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,qBAAqB,CAAC;AAuBtE,4FAA4F;AAC5F,wBAAgB,sBAAsB,CACrC,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI;;kBA0axB,iBAAiB;;EAoCtC"}
@@ -0,0 +1,38 @@
1
+ import type { PptxSmartArtData } from 'ooxml-core/pptx';
2
+ import type { OfficeSmartArtTextPaneLabels, OfficeUiSmartArtTextPane } from '../../smartart/smartart-text-pane.js';
3
+ type Translate = (key: string, params?: Record<string, string | number>) => string;
4
+ /** What a binding passes to `pptx-ui-smartart-text-pane` through `state`. */
5
+ export interface SmartArtTextPaneViewState {
6
+ smartArtData: PptxSmartArtData | undefined;
7
+ canEdit: boolean;
8
+ translate?: Translate;
9
+ }
10
+ /**
11
+ * Detail of `pptx-smartart-data-change`: the SmartArt data after the edit, ready to commit, and
12
+ * the colour a style edit picked (for the recent colours list).
13
+ */
14
+ export interface SmartArtTextPaneChange {
15
+ smartArtData: PptxSmartArtData;
16
+ recentColor?: string;
17
+ }
18
+ export type SmartArtTextPaneChangeEvent = CustomEvent<SmartArtTextPaneChange>;
19
+ export interface PptxUiSmartArtTextPaneElement extends OfficeUiSmartArtTextPane {
20
+ state: SmartArtTextPaneViewState;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'pptx-ui-smartart-text-pane': PptxUiSmartArtTextPaneElement;
25
+ }
26
+ }
27
+ /** The pane's text from the pptx dictionary (the keys every binding's text pane used). */
28
+ export declare function smartArtTextPaneLabels(t: Translate, count: number): OfficeSmartArtTextPaneLabels;
29
+ /**
30
+ * `pptx-ui-smartart-text-pane`: the shared SmartArt text pane fed a pptx diagram, with
31
+ * PowerPoint's inspector tools (append, move, sub-item, remove, per-node style). A binding sets
32
+ * `state` and commits the `pptx-smartart-data-change` detail's `smartArtData` through its own
33
+ * update path; the edits go through the pptx SmartArt facades (`smartart-text-pane-model`), so
34
+ * every binding edits a diagram the same way.
35
+ */
36
+ export declare function definePptxSmartArtTextPane(registry: CustomElementRegistry): void;
37
+ export {};
38
+ //# sourceMappingURL=smartart-text-pane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartart-text-pane.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/smartart-text-pane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,iBAAiB,CAAC;AAE/E,OAAO,KAAK,EAKX,4BAA4B,EAC5B,wBAAwB,EACxB,MAAM,mCAAmC,CAAC;AAK3C,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEnF,6EAA6E;AAC7E,MAAM,WAAW,yBAAyB;IACzC,YAAY,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACtC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,2BAA2B,GAAG,WAAW,CAAC,sBAAsB,CAAC,CAAC;AAE9E,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC9E,KAAK,EAAE,yBAAyB,CAAC;CACjC;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,4BAA4B,EAAE,6BAA6B,CAAC;KAC5D;CACD;AAED,0FAA0F;AAC1F,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,4BAA4B,CAkBhG;AAwBD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAoEhF"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The SmartArt Design galleries (Change Colors, SmartArt Styles) as `office-ui-gallery` state, for
3
+ * any product: the catalogue comes from `ooxml-core/diagram`, the tiles from `./tiles`. A product
4
+ * passes its theme's accent colours, the diagram's current scheme or style, and a translator
5
+ * that receives the English name. PowerPoint builds its ribbon galleries from the same catalogue
6
+ * and tiles (`pptx/render/ribbon-galleries/smartart-*-gallery.ts`).
7
+ */
8
+ import { type DiagramColorEntry, type DiagramColorScheme, type DiagramStyleIntensity } from 'ooxml-core/diagram';
9
+ import type { OfficeGalleryState } from '../ribbon/gallery.js';
10
+ /** Resolved theme accents, `accent1` to `accent6`, as CSS colours. */
11
+ export type SmartArtAccents = Partial<Record<DiagramColorEntry['accents'][number], string>>;
12
+ /** Receives an English name and returns it translated. */
13
+ export type SmartArtGalleryTranslate = (english: string) => string;
14
+ /** Change Colors: one section per group of schemes, each tile filled with the scheme's accents. */
15
+ export declare function smartArtColorsGalleryState(accents: SmartArtAccents, current: DiagramColorScheme | undefined, t?: SmartArtGalleryTranslate): OfficeGalleryState;
16
+ /** SmartArt Styles: the style intensities the model carries, drawn in Accent 1. */
17
+ export declare function smartArtStylesGalleryState(accent1: string | undefined, current: DiagramStyleIntensity | undefined, t?: SmartArtGalleryTranslate): OfficeGalleryState;
@@ -0,0 +1,97 @@
1
+ import { OfficeElement } from '../base.js';
2
+ /** A category of the list on the left. `description` is shown under the chosen layout. */
3
+ export interface OfficeSmartArtCategory {
4
+ id: string;
5
+ label: string;
6
+ description?: string | undefined;
7
+ }
8
+ /** One layout of the gallery. `family` picks the default tile drawing (list, process, ...). */
9
+ export interface OfficeSmartArtLayout {
10
+ id: string;
11
+ category: string;
12
+ label: string;
13
+ family?: string | undefined;
14
+ /** The node texts the items editor starts from when the layout is chosen. */
15
+ defaultItems?: readonly string[] | undefined;
16
+ }
17
+ /** What the picker edits: the chosen layout and, with the items editor, the node texts. */
18
+ export interface OfficeSmartArtValue {
19
+ layout: string;
20
+ items: string[];
21
+ }
22
+ /**
23
+ * Draws a layout's preview: SVG markup (parsed with executable parts removed) or an element the
24
+ * host built (a live render), or null for the default family tile. `tile` is true for a gallery
25
+ * tile, false for the large preview beside it; `size` is the box in pixels.
26
+ */
27
+ export type OfficeSmartArtPreview = (layout: OfficeSmartArtLayout, size: {
28
+ width: number;
29
+ height: number;
30
+ }, tile: boolean) => string | Element | null | undefined;
31
+ export interface OfficeSmartArtPickerLabels {
32
+ categories: string;
33
+ layouts: string;
34
+ items: string;
35
+ }
36
+ /**
37
+ * `<office-ui-smartart-picker>`: the body of every product's Insert SmartArt dialog: a category
38
+ * list, a gallery of layout tiles (`role="listbox"`), and a pane with the chosen layout's large
39
+ * preview, name and its category's description. The product owns the dialog around it, the OK and
40
+ * Cancel buttons and the diagram model. The host sets `categories`, `layouts` and `labels`
41
+ * (translated), and optionally `drawPreview` (a live render; without it each tile draws its
42
+ * layout family in `accent`). `items-editor` adds a text box of node texts, one per line, seeded
43
+ * from the chosen layout's `defaultItems`. Read and write the choice with `value` and the shown
44
+ * category with `category`; choosing a category selects its first layout.
45
+ *
46
+ * Emits `office-smartart-change` with the value on every choice or edit, and
47
+ * `office-smartart-activate` with the value when a tile is double-clicked or Enter is pressed on
48
+ * it (the host inserts, as OK would).
49
+ */
50
+ export declare class OfficeUiSmartArtPicker extends OfficeElement {
51
+ static styles: import("lit").CSSResult[];
52
+ static properties: {
53
+ itemsEditor: {
54
+ type: BooleanConstructor;
55
+ attribute: string;
56
+ };
57
+ accent: {
58
+ type: StringConstructor;
59
+ };
60
+ };
61
+ /** Shows the node texts editor. */
62
+ itemsEditor: boolean;
63
+ /** The fill of the default tiles (a CSS hex or rgb colour). */
64
+ accent: string | null;
65
+ private categoryList;
66
+ private layoutList;
67
+ private text;
68
+ private draw;
69
+ private shown;
70
+ private choice;
71
+ private readonly previews;
72
+ constructor();
73
+ get categories(): readonly OfficeSmartArtCategory[];
74
+ set categories(value: readonly OfficeSmartArtCategory[]);
75
+ get layouts(): readonly OfficeSmartArtLayout[];
76
+ set layouts(value: readonly OfficeSmartArtLayout[]);
77
+ get labels(): OfficeSmartArtPickerLabels;
78
+ set labels(value: Partial<OfficeSmartArtPickerLabels>);
79
+ get drawPreview(): OfficeSmartArtPreview | undefined;
80
+ set drawPreview(value: OfficeSmartArtPreview | undefined);
81
+ /** The category whose layouts the gallery shows. */
82
+ get category(): string;
83
+ set category(value: string);
84
+ /** The choice; `items` leaves out blank lines and surrounding spaces. */
85
+ get value(): OfficeSmartArtValue;
86
+ set value(value: OfficeSmartArtValue);
87
+ /** Shows `id`'s layouts and selects the first, unless the choice is already one of them. */
88
+ private showCategory;
89
+ private pick;
90
+ private chooseCategory;
91
+ private visible;
92
+ private onTileKey;
93
+ private preview;
94
+ protected render(): import("lit").TemplateResult<1>;
95
+ }
96
+ export declare const defineSmartArtPicker: import("../registry.js").Definer;
97
+ //# sourceMappingURL=smartart-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartart-picker.d.ts","sourceRoot":"","sources":["../../src/smartart/smartart-picker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAMvD,0FAA0F;AAC1F,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,+FAA+F;AAC/F,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7C;AAED,2FAA2F;AAC3F,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CACnC,MAAM,EAAE,o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AE,qBAAqB,GAAG,SAAS,EAIvD;IACD,oDAAoD;IACpD,IAAI,QAAQ,IAAI,MAAM,CAErB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAGzB;IACD,yEAAyE;IACzE,IAAI,KAAK,IAAI,mBAAmB,CAG/B;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAKnC;IAED,4FAA4F;IAC5F,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,OAAO;IAkBf,UAAmB,MAAM,oCAoExB;CACD;AAED,eAAO,MAAM,oBAAoB,+BAGhC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { type TemplateResult } from 'lit';
2
+ /** A node's own look, as the per-line style tools show and edit it. */
3
+ export interface OfficeSmartArtNodeStyle {
4
+ fillColor?: string;
5
+ fontColor?: string;
6
+ bold?: boolean;
7
+ italic?: boolean;
8
+ }
9
+ /** `office-smartart-node-move` detail: the node and the direction among its siblings. */
10
+ export interface OfficeSmartArtNodeMove {
11
+ id: string;
12
+ direction: -1 | 1;
13
+ }
14
+ /** `office-smartart-node-style` detail: the node and the part of its style that changed. */
15
+ export interface OfficeSmartArtNodeStyleChange {
16
+ id: string;
17
+ style: OfficeSmartArtNodeStyle;
18
+ }
19
+ /** The strings of the line tools (shown only when the pane's `tools` is set). */
20
+ export interface OfficeSmartArtTextPaneToolLabels {
21
+ /** The header button that appends a top-level node. */
22
+ add: string;
23
+ moveUp: string;
24
+ moveDown: string;
25
+ addChild: string;
26
+ remove: string;
27
+ /** Tooltip of the remove button when the node cannot be removed. */
28
+ removeUnavailable: string;
29
+ fill: string;
30
+ fontColor: string;
31
+ bold: string;
32
+ italic: string;
33
+ }
34
+ /** What the tools need of a line; the flags default to allowed. */
35
+ export interface OfficeSmartArtToolNode {
36
+ id: string;
37
+ text: string;
38
+ label?: string;
39
+ style?: OfficeSmartArtNodeStyle;
40
+ canMoveUp?: boolean;
41
+ canMoveDown?: boolean;
42
+ canRemove?: boolean;
43
+ canAddChild?: boolean;
44
+ }
45
+ type Fire = (name: string, detail: unknown) => void;
46
+ /** The buttons after a line's text: move up, move down, add a sub-item and remove. */
47
+ export declare function renderLineActions(node: OfficeSmartArtToolNode, name: string, text: OfficeSmartArtTextPaneToolLabels, disabled: boolean, fire: Fire): TemplateResult;
48
+ /** The style row under a line: fill and text colour swatches, bold and italic toggles. */
49
+ export declare function renderLineStyle(node: OfficeSmartArtToolNode, name: string, text: OfficeSmartArtTextPaneToolLabels, disabled: boolean, fire: Fire): TemplateResult;
50
+ export {};
51
+ //# sourceMappingURL=smartart-text-pane-tools.d.ts.map