ooxml-ui 1.25.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 (353) hide show
  1. package/README.md +82 -19
  2. package/custom-elements.json +321 -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-X5XR45BK.js → chunk-HGLCXNCT.js} +50 -24
  80. package/dist/chunk-KJMAVPQB.js +53 -0
  81. package/dist/{chunk-S736N64L.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-SC44SOIS.js → chunk-WDOWQKKC.js} +2601 -275
  86. package/dist/{chunk-5ZFOSFCK.js → chunk-WH3EGA3S.js} +9 -3
  87. package/dist/controls.d.ts +7 -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/docx/chart-commands.d.ts +22 -0
  93. package/dist/docx/chart-design-ribbon.d.ts +4 -0
  94. package/dist/docx/chart-dialogs.d.ts +11 -0
  95. package/dist/docx/chart-format-pane.d.ts +22 -0
  96. package/dist/docx/context-menu-items.d.ts +2 -0
  97. package/dist/docx/editor-core.d.ts +3 -0
  98. package/dist/docx/format-dialogs.d.ts +4 -2
  99. package/dist/docx/image-media.d.ts +9 -1
  100. package/dist/docx/insert-controller.d.ts +5 -0
  101. package/dist/docx/locales/charts.d.ts +51 -0
  102. package/dist/docx/locales/en.d.ts +113 -0
  103. package/dist/docx/locales/smartart.d.ts +77 -0
  104. package/dist/docx/localization-strings.d.ts +113 -0
  105. package/dist/docx/resize-handle.d.ts +23 -0
  106. package/dist/docx/ribbon-action.d.ts +15 -0
  107. package/dist/docx/ribbon-icons.d.ts +13 -0
  108. package/dist/docx/smartart-commands.d.ts +26 -0
  109. package/dist/docx/smartart-controller.d.ts +35 -0
  110. package/dist/docx/smartart-design-ribbon.d.ts +7 -0
  111. package/dist/docx/smartart-dialog.d.ts +12 -0
  112. package/dist/docx/smartart-node-view.d.ts +6 -3
  113. package/dist/docx.js +1664 -542
  114. package/dist/form/color-grid.d.ts +8 -1
  115. package/dist/form/color-grid.d.ts.map +1 -1
  116. package/dist/index.d.ts +1 -1
  117. package/dist/index.js +10 -5
  118. package/dist/pptx/ai/bridge-factory.d.ts +77 -0
  119. package/dist/pptx/ai/bridge-factory.d.ts.map +1 -0
  120. package/dist/pptx/ai/index.cjs +443 -164
  121. package/dist/pptx/ai/index.d.ts +4 -0
  122. package/dist/pptx/ai/index.d.ts.map +1 -1
  123. package/dist/pptx/ai/index.mjs +437 -165
  124. package/dist/pptx/ai/panel-controller.d.ts +104 -0
  125. package/dist/pptx/ai/panel-controller.d.ts.map +1 -0
  126. package/dist/pptx/{chart-3d-view-scene-RYL7F65H.cjs → chart-3d-view-scene-N7UQOYFI.cjs} +38 -38
  127. package/dist/pptx/{chart-3d-view-scene-CDIMM5T3.mjs → chart-3d-view-scene-ZUGA3DKM.mjs} +2 -2
  128. package/dist/pptx/{chunk-PIIYTRLE.mjs → chunk-34LEUH5R.mjs} +1 -1
  129. package/dist/pptx/{chunk-G3UVZ5FO.cjs → chunk-6KLPQQYP.cjs} +1 -0
  130. package/dist/pptx/{chunk-SCURBCNQ.mjs → chunk-AMW2AR7J.mjs} +1 -1
  131. package/dist/pptx/chunk-CWHK7HF4.mjs +751 -0
  132. package/dist/pptx/{chunk-J642EKDV.cjs → chunk-FM4C4MBJ.cjs} +1 -1
  133. package/dist/pptx/{chunk-LCB46TH2.cjs → chunk-H5IPNKX6.cjs} +12 -12
  134. package/dist/pptx/{chunk-4TFSELNQ.cjs → chunk-HAO5PKWK.cjs} +7671 -4138
  135. package/dist/pptx/{chunk-QTLP3MX7.mjs → chunk-IWUIGVWT.mjs} +7468 -3993
  136. package/dist/pptx/{chunk-ZNXKAINY.mjs → chunk-LB3A3GF6.mjs} +1150 -222
  137. package/dist/pptx/chunk-LUDEAPHZ.cjs +776 -0
  138. package/dist/pptx/{chunk-A2X5BP7J.cjs → chunk-OOQMIQT3.cjs} +1151 -221
  139. package/dist/pptx/chunk-WM5SW737.mjs +27 -0
  140. package/dist/pptx/{chunk-73OUATE4.mjs → chunk-WQA3KZRB.mjs} +1 -1
  141. package/dist/pptx/chunk-Y6DO6SVT.cjs +29 -0
  142. package/dist/pptx/dom/index.cjs +503 -1123
  143. package/dist/pptx/dom/index.d.ts +1 -0
  144. package/dist/pptx/dom/index.d.ts.map +1 -1
  145. package/dist/pptx/dom/index.mjs +12 -704
  146. package/dist/pptx/dom/smartart-insert-preview.d.ts +15 -0
  147. package/dist/pptx/dom/smartart-insert-preview.d.ts.map +1 -0
  148. package/dist/pptx/export/html2canvas-clone.cjs +4 -4
  149. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  150. package/dist/pptx/i18n/index.cjs +6 -6
  151. package/dist/pptx/i18n/index.mjs +1 -1
  152. package/dist/pptx/i18n/translations-en-chart-format.d.ts.map +1 -1
  153. package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
  154. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  155. package/dist/pptx/index.cjs +3490 -3249
  156. package/dist/pptx/index.mjs +6 -5
  157. package/dist/pptx/render/autosave-inline-draft.d.ts +27 -0
  158. package/dist/pptx/render/autosave-inline-draft.d.ts.map +1 -0
  159. package/dist/pptx/render/autosave-policy.d.ts +6 -7
  160. package/dist/pptx/render/autosave-policy.d.ts.map +1 -1
  161. package/dist/pptx/render/autosave-tick.d.ts +6 -0
  162. package/dist/pptx/render/autosave-tick.d.ts.map +1 -1
  163. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  164. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  165. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts +10 -2
  166. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts.map +1 -1
  167. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts +4 -2
  168. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts.map +1 -1
  169. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts +4 -91
  170. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts.map +1 -1
  171. package/dist/pptx/render/chart-format/chart-format-source.d.ts +14 -0
  172. package/dist/pptx/render/chart-format/chart-format-source.d.ts.map +1 -0
  173. package/dist/pptx/render/chart-format/chart-format-targets.d.ts +16 -19
  174. package/dist/pptx/render/chart-format/chart-format-targets.d.ts.map +1 -1
  175. package/dist/pptx/render/chart-format/index.d.ts +2 -1
  176. package/dist/pptx/render/chart-format/index.d.ts.map +1 -1
  177. package/dist/pptx/render/chart-overlays.cjs +7 -7
  178. package/dist/pptx/render/chart-overlays.mjs +1 -1
  179. package/dist/pptx/render/chart-quick-action-styles.d.ts +4 -1
  180. package/dist/pptx/render/chart-quick-action-styles.d.ts.map +1 -1
  181. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  182. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  183. package/dist/pptx/render/chart-view-model.cjs +44 -44
  184. package/dist/pptx/render/chart-view-model.mjs +1 -1
  185. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  186. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  187. package/dist/pptx/render/collaboration-provider.d.ts +80 -0
  188. package/dist/pptx/render/collaboration-provider.d.ts.map +1 -0
  189. package/dist/pptx/render/collaboration-yjs-session.d.ts +48 -0
  190. package/dist/pptx/render/collaboration-yjs-session.d.ts.map +1 -0
  191. package/dist/pptx/render/controller/autosave-controller.d.ts +133 -0
  192. package/dist/pptx/render/controller/autosave-controller.d.ts.map +1 -0
  193. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts +68 -0
  194. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts.map +1 -0
  195. package/dist/pptx/render/controller/collaboration-session-controller.d.ts +89 -0
  196. package/dist/pptx/render/controller/collaboration-session-controller.d.ts.map +1 -0
  197. package/dist/pptx/render/controller/controller.d.ts +44 -0
  198. package/dist/pptx/render/controller/controller.d.ts.map +1 -0
  199. package/dist/pptx/render/controller/history-controller.d.ts +54 -0
  200. package/dist/pptx/render/controller/history-controller.d.ts.map +1 -0
  201. package/dist/pptx/render/controller/index.d.ts +17 -0
  202. package/dist/pptx/render/controller/index.d.ts.map +1 -0
  203. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +2 -0
  204. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  205. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +2 -0
  206. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  207. package/dist/pptx/render/editor-gesture-frames.d.ts +59 -0
  208. package/dist/pptx/render/editor-gesture-frames.d.ts.map +1 -0
  209. package/dist/pptx/render/editor-gestures.d.ts +39 -38
  210. package/dist/pptx/render/editor-gestures.d.ts.map +1 -1
  211. package/dist/pptx/render/editor-history.d.ts +1 -1
  212. package/dist/pptx/render/editor-history.d.ts.map +1 -1
  213. package/dist/pptx/render/editor-key-dispatch.d.ts +68 -0
  214. package/dist/pptx/render/editor-key-dispatch.d.ts.map +1 -0
  215. package/dist/pptx/render/effects-helpers.d.ts +8 -1
  216. package/dist/pptx/render/effects-helpers.d.ts.map +1 -1
  217. package/dist/pptx/render/effects-shadow-helpers.d.ts +7 -0
  218. package/dist/pptx/render/effects-shadow-helpers.d.ts.map +1 -1
  219. package/dist/pptx/render/group-press-target.d.ts +37 -0
  220. package/dist/pptx/render/group-press-target.d.ts.map +1 -0
  221. package/dist/pptx/render/index.d.ts +12 -0
  222. package/dist/pptx/render/index.d.ts.map +1 -1
  223. package/dist/pptx/render/insert-chart-preview.d.ts +15 -0
  224. package/dist/pptx/render/insert-chart-preview.d.ts.map +1 -0
  225. package/dist/pptx/render/insert-chart.d.ts +21 -1
  226. package/dist/pptx/render/insert-chart.d.ts.map +1 -1
  227. package/dist/pptx/render/inspector/element-geometry-fields.d.ts +28 -0
  228. package/dist/pptx/render/inspector/element-geometry-fields.d.ts.map +1 -0
  229. package/dist/pptx/render/inspector/index.d.ts +18 -0
  230. package/dist/pptx/render/inspector/index.d.ts.map +1 -0
  231. package/dist/pptx/render/inspector/inspector-field-model.d.ts +125 -0
  232. package/dist/pptx/render/inspector/inspector-field-model.d.ts.map +1 -0
  233. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts +8 -0
  234. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts.map +1 -0
  235. package/dist/pptx/render/inspector/shape-effect-fields.d.ts +27 -0
  236. package/dist/pptx/render/inspector/shape-effect-fields.d.ts.map +1 -0
  237. package/dist/pptx/render/inspector/shape-effect-sections.d.ts +7 -0
  238. package/dist/pptx/render/inspector/shape-effect-sections.d.ts.map +1 -0
  239. package/dist/pptx/render/inspector/shape-line-fields.d.ts +20 -0
  240. package/dist/pptx/render/inspector/shape-line-fields.d.ts.map +1 -0
  241. package/dist/pptx/render/inspector/text-box-fields.d.ts +24 -0
  242. package/dist/pptx/render/inspector/text-box-fields.d.ts.map +1 -0
  243. package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
  244. package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
  245. package/dist/pptx/render/presentation-show-step.d.ts +105 -0
  246. package/dist/pptx/render/presentation-show-step.d.ts.map +1 -0
  247. package/dist/pptx/render/ribbon-galleries/chart-colors-gallery.d.ts +3 -2
  248. package/dist/pptx/render/ribbon-galleries/chart-colors-gallery.d.ts.map +1 -1
  249. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-gallery.d.ts +6 -3
  250. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-gallery.d.ts.map +1 -1
  251. package/dist/pptx/render/ribbon-galleries/chart-styles-gallery.d.ts +2 -1
  252. package/dist/pptx/render/ribbon-galleries/chart-styles-gallery.d.ts.map +1 -1
  253. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
  254. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts +1 -1
  255. package/dist/pptx/render/ribbon-galleries/gallery-types.d.ts.map +1 -1
  256. package/dist/pptx/render/ribbon-galleries/smartart-colors-gallery.d.ts +0 -8
  257. package/dist/pptx/render/ribbon-galleries/smartart-colors-gallery.d.ts.map +1 -1
  258. package/dist/pptx/render/ribbon-galleries/smartart-commands.d.ts +1 -1
  259. package/dist/pptx/render/ribbon-galleries/smartart-commands.d.ts.map +1 -1
  260. package/dist/pptx/render/ribbon-galleries/smartart-gallery-patch.d.ts +4 -2
  261. package/dist/pptx/render/ribbon-galleries/smartart-gallery-patch.d.ts.map +1 -1
  262. package/dist/pptx/render/ribbon-galleries/smartart-gallery-tiles.d.ts +3 -8
  263. package/dist/pptx/render/ribbon-galleries/smartart-gallery-tiles.d.ts.map +1 -1
  264. package/dist/pptx/render/ribbon-galleries/smartart-layout-tiles.d.ts +7 -5
  265. package/dist/pptx/render/ribbon-galleries/smartart-layout-tiles.d.ts.map +1 -1
  266. package/dist/pptx/render/ribbon-galleries/smartart-layouts-gallery.d.ts.map +1 -1
  267. package/dist/pptx/render/ribbon-insert-state.d.ts +6 -0
  268. package/dist/pptx/render/ribbon-insert-state.d.ts.map +1 -1
  269. package/dist/pptx/render/smart-art-presets.d.ts +12 -6
  270. package/dist/pptx/render/smart-art-presets.d.ts.map +1 -1
  271. package/dist/pptx/render/smartart-text-pane-model.d.ts +59 -0
  272. package/dist/pptx/render/smartart-text-pane-model.d.ts.map +1 -0
  273. package/dist/pptx/render/span-snap-move.d.ts +32 -0
  274. package/dist/pptx/render/span-snap-move.d.ts.map +1 -0
  275. package/dist/pptx/render/theme-color-grid.d.ts +17 -0
  276. package/dist/pptx/render/theme-color-grid.d.ts.map +1 -1
  277. package/dist/pptx/render/viewer-event-payloads.d.ts +4 -4
  278. package/dist/pptx/smartart-insert-preview-5ZTZYAZR.cjs +48 -0
  279. package/dist/pptx/smartart-insert-preview-HMSNUWDO.mjs +39 -0
  280. package/dist/pptx/web-components/chart-data-sheet.d.ts +47 -0
  281. package/dist/pptx/web-components/chart-data-sheet.d.ts.map +1 -0
  282. package/dist/pptx/web-components/chart-format-pane.d.ts +7 -5
  283. package/dist/pptx/web-components/chart-format-pane.d.ts.map +1 -1
  284. package/dist/pptx/web-components/host-styles.d.ts.map +1 -1
  285. package/dist/pptx/web-components/index.d.ts +6 -0
  286. package/dist/pptx/web-components/index.d.ts.map +1 -1
  287. package/dist/pptx/web-components/insert-chart-dialog.d.ts +25 -0
  288. package/dist/pptx/web-components/insert-chart-dialog.d.ts.map +1 -0
  289. package/dist/pptx/web-components/insert-dialog-frame.d.ts +25 -0
  290. package/dist/pptx/web-components/insert-dialog-frame.d.ts.map +1 -0
  291. package/dist/pptx/web-components/insert-smartart-dialog.d.ts +26 -0
  292. package/dist/pptx/web-components/insert-smartart-dialog.d.ts.map +1 -0
  293. package/dist/pptx/web-components/mobile-insert.d.ts.map +1 -1
  294. package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
  295. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  296. package/dist/pptx/web-components/ribbon-insert-view.d.ts.map +1 -1
  297. package/dist/pptx/web-components/smartart-text-pane.d.ts +38 -0
  298. package/dist/pptx/web-components/smartart-text-pane.d.ts.map +1 -0
  299. package/dist/smartart/galleries.d.ts +17 -0
  300. package/dist/smartart/smartart-picker.d.ts +97 -0
  301. package/dist/smartart/smartart-picker.d.ts.map +1 -0
  302. package/dist/smartart/smartart-text-pane-tools.d.ts +51 -0
  303. package/dist/smartart/smartart-text-pane-tools.d.ts.map +1 -0
  304. package/dist/smartart/smartart-text-pane.d.ts +121 -0
  305. package/dist/smartart/smartart-text-pane.d.ts.map +1 -0
  306. package/dist/smartart/text-pane-controller.d.ts +51 -0
  307. package/dist/smartart/tiles.d.ts +17 -0
  308. package/dist/smartart/tiles.d.ts.map +1 -0
  309. package/dist/smartart.d.ts +5 -0
  310. package/dist/smartart.js +2 -1
  311. package/dist/teams/app/bind.d.ts +30 -0
  312. package/dist/teams/app/index.d.ts +1 -1
  313. package/dist/teams.js +7 -2
  314. package/dist/visio/ribbon-action.d.ts +5 -2
  315. package/dist/visio/viewer-chart-editor.d.ts +38 -0
  316. package/dist/visio/viewer-insert.d.ts +7 -2
  317. package/dist/visio.js +197 -17
  318. package/dist/xlsx/chart-format-pane.d.ts +10 -0
  319. package/dist/xlsx/chart-format-source.d.ts +17 -0
  320. package/dist/xlsx/commands/chart-design.d.ts +55 -0
  321. package/dist/xlsx/dialogs/insert-smartart.d.ts +4 -0
  322. package/dist/xlsx/grid/smartart.d.ts +4 -1
  323. package/dist/xlsx/ribbon/tabs/contextual.d.ts +6 -0
  324. package/dist/xlsx/smartart-controller.d.ts +14 -0
  325. package/dist/xlsx.js +789 -468
  326. package/package.json +47 -4
  327. package/dist/chunk-QBXYGKPB.js +0 -224
  328. package/dist/pptx/render/chart-format/chart-format-pane-3d.d.ts +0 -13
  329. package/dist/pptx/render/chart-format/chart-format-pane-3d.d.ts.map +0 -1
  330. package/dist/pptx/render/chart-format/chart-format-pane-axis.d.ts +0 -12
  331. package/dist/pptx/render/chart-format/chart-format-pane-axis.d.ts.map +0 -1
  332. package/dist/pptx/render/chart-format/chart-format-pane-common.d.ts +0 -14
  333. package/dist/pptx/render/chart-format/chart-format-pane-common.d.ts.map +0 -1
  334. package/dist/pptx/render/chart-format/chart-format-pane-effects.d.ts.map +0 -1
  335. package/dist/pptx/render/chart-format/chart-format-pane-fill-kinds.d.ts +0 -15
  336. package/dist/pptx/render/chart-format/chart-format-pane-fill-kinds.d.ts.map +0 -1
  337. package/dist/pptx/render/chart-format/chart-format-pane-fill-line.d.ts +0 -12
  338. package/dist/pptx/render/chart-format/chart-format-pane-fill-line.d.ts.map +0 -1
  339. package/dist/pptx/render/chart-format/chart-format-pane-options.d.ts +0 -13
  340. package/dist/pptx/render/chart-format/chart-format-pane-options.d.ts.map +0 -1
  341. package/dist/pptx/render/chart-format/chart-format-pane-text.d.ts +0 -14
  342. package/dist/pptx/render/chart-format/chart-format-pane-text.d.ts.map +0 -1
  343. package/dist/pptx/render/ribbon-galleries/chart-color-palette-catalog.d.ts +0 -3
  344. package/dist/pptx/render/ribbon-galleries/chart-color-palette-catalog.d.ts.map +0 -1
  345. package/dist/pptx/render/ribbon-galleries/chart-gallery-tiles.d.ts +0 -24
  346. package/dist/pptx/render/ribbon-galleries/chart-gallery-tiles.d.ts.map +0 -1
  347. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-catalog.d.ts +0 -22
  348. package/dist/pptx/render/ribbon-galleries/chart-quick-layout-catalog.d.ts.map +0 -1
  349. package/dist/pptx/web-components/chart-format-pane-fields.d.ts +0 -17
  350. package/dist/pptx/web-components/chart-format-pane-fields.d.ts.map +0 -1
  351. package/dist/xlsx/chart-area-pane.d.ts +0 -9
  352. package/dist/xlsx/chart-series-pane.d.ts +0 -8
  353. package/dist/xlsx/commands/chart-colors.d.ts +0 -19
@@ -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"}
@@ -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-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'];
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,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,CACf,CAAC;AAmIX;;;;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,oBAAoB,EAC5B,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,IAAI,EAAE,OAAO,KACT,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzC,MAAM,WAAW,0BAA0B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACd;AAeD;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACxD,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;QACzB,WAAW;YAAI,IAAI;YAAW,SAAS;;QACvC,MAAM;YAAI,IAAI;;MACb;IACF,mCAAmC;IAC3B,WAAW,EAAE,OAAO,CAAC;IAC7B,+DAA+D;IACvD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,UAAU,CAAuC;IACzD,OAAO,CAAC,IAAI,CAAuC;IACnD,OAAO,CAAC,IAAI,CAAoC;IAChD,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,MAAM,CAAkD;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAE9D,cAIC;IAED,IAAI,UAAU,IAAI,SAAS,sBAAsB,EAAE,CAElD;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,EAItD;IACD,IAAI,OAAO,IAAI,SAAS,oBAAoB,EAAE,CAE7C;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,EAKjD;IACD,IAAI,MAAM,IAAI,0BAA0B,CAEvC;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,0BAA0B,CAAC,EAGpD;IACD,IAAI,WAAW,IAAI,qBAAqB,GAAG,SAAS,CAEnD;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartart-text-pane-tools.d.ts","sourceRoot":"","sources":["../../src/smartart/smartart-text-pane-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,uEAAuE;AACvE,MAAM,WAAW,uBAAuB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,yFAAyF;AACzF,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;CAClB;AAED,4FAA4F;AAC5F,MAAM,WAAW,6BAA6B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,uBAAuB,CAAC;CAC/B;AAED,iFAAiF;AACjF,MAAM,WAAW,gCAAgC;IAChD,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CACf;AAED,mEAAmE;AACnE,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD,KAAK,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAEpD,sFAAsF;AACtF,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gCAAgC,EACtC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,IAAI,GACR,cAAc,CAuChB;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAC9B,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gCAAgC,EACtC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,IAAI,GACR,cAAc,CAsChB"}
@@ -0,0 +1,121 @@
1
+ import { type PropertyValues } from 'lit';
2
+ import { OfficeElement } from '../base.js';
3
+ import { type OfficeSmartArtNodeStyle, type OfficeSmartArtTextPaneToolLabels } from './smartart-text-pane-tools.js';
4
+ export type { OfficeSmartArtNodeMove, OfficeSmartArtNodeStyle, OfficeSmartArtNodeStyleChange, OfficeSmartArtTextPaneToolLabels, } from './smartart-text-pane-tools.js';
5
+ /** One line of the outline: a node's text at its depth (0 for a top-level node). */
6
+ export interface OfficeSmartArtTextNode {
7
+ id: string;
8
+ text: string;
9
+ level: number;
10
+ /** Shown instead of the round bullet, e.g. the item number ("1") of a top-level line. */
11
+ marker?: string;
12
+ /** Accessible name of the line (default: its text, or the placeholder). */
13
+ label?: string;
14
+ /** The node's own look, shown and edited by the style tools. */
15
+ style?: OfficeSmartArtNodeStyle;
16
+ /** Tool availability; each defaults to allowed. `canRemove` also gates Backspace and Delete. */
17
+ canMoveUp?: boolean;
18
+ canMoveDown?: boolean;
19
+ canRemove?: boolean;
20
+ /** False hides the add sub-item tool for this line. */
21
+ canAddChild?: boolean;
22
+ }
23
+ /** `office-smartart-text-change` detail. */
24
+ export interface OfficeSmartArtTextChange {
25
+ id: string;
26
+ text: string;
27
+ }
28
+ /**
29
+ * Detail of the node events (`office-smartart-node-add`, `-remove`, `-promote`, `-demote`,
30
+ * `-select`): the node the key was pressed on.
31
+ */
32
+ export interface OfficeSmartArtNodeRequest {
33
+ id: string;
34
+ }
35
+ export interface OfficeSmartArtTextPaneLabels extends OfficeSmartArtTextPaneToolLabels {
36
+ title: string;
37
+ /** Shown in an empty line, as Office shows `[Text]`. */
38
+ placeholder: string;
39
+ close: string;
40
+ /** Accessible name of the outline. */
41
+ outline: string;
42
+ /** Shown when the diagram has no nodes. */
43
+ empty: string;
44
+ }
45
+ /**
46
+ * `<office-ui-smartart-text-pane>`: the SmartArt text pane every product shares. It shows the
47
+ * diagram's nodes as an outline of text lines indented by level and turns keys into requests the
48
+ * host applies to its diagram model (the pane never edits the model itself):
49
+ *
50
+ * - typing fires `office-smartart-text-change` (`{ id, text }`);
51
+ * - Enter fires `office-smartart-node-add` (add a node after this one, same level);
52
+ * - Tab and Shift+Tab fire `office-smartart-node-demote` and `office-smartart-node-promote`;
53
+ * - Backspace or Delete in an empty line fires `office-smartart-node-remove` (unless the line's
54
+ * `canRemove` is false);
55
+ * - focusing a line fires `office-smartart-node-select`; Up and Down move between lines.
56
+ *
57
+ * The node events carry `{ id }`. The host sets `nodes` again after applying a request and
58
+ * `selected` to the node to focus (the new node after Enter, the previous one after Backspace).
59
+ * `closable` adds a close button that fires `office-smartart-text-pane-close`. Strings come
60
+ * translated through `labels`.
61
+ *
62
+ * `tools` adds PowerPoint's inspector tools: a header button that fires
63
+ * `office-smartart-node-append`, and per line move up and down (`office-smartart-node-move`,
64
+ * `{ id, direction }`), add sub-item (`office-smartart-node-add-child`), remove
65
+ * (`office-smartart-node-remove`) and a style row (fill and text colour, bold, italic) that fires
66
+ * `office-smartart-node-style` (`{ id, style }`). `disabled` makes the pane read-only, `notes`
67
+ * adds hint lines under the outline and `appendDisabled` disables the header button.
68
+ */
69
+ export declare class OfficeUiSmartArtTextPane extends OfficeElement {
70
+ static styles: import("lit").CSSResult[];
71
+ static properties: {
72
+ closable: {
73
+ type: BooleanConstructor;
74
+ };
75
+ selected: {
76
+ type: StringConstructor;
77
+ };
78
+ disabled: {
79
+ type: BooleanConstructor;
80
+ };
81
+ tools: {
82
+ type: BooleanConstructor;
83
+ };
84
+ appendDisabled: {
85
+ type: BooleanConstructor;
86
+ attribute: string;
87
+ };
88
+ };
89
+ /** Shows the close button. */
90
+ closable: boolean;
91
+ /** Read-only: lines and tools are disabled and keys request nothing. */
92
+ disabled: boolean;
93
+ /** Shows the append button and the per-line tools. */
94
+ tools: boolean;
95
+ /** Disables the append button (e.g. the layout holds no more shapes). */
96
+ appendDisabled: boolean;
97
+ /** The id of the node whose line has (or gets) the focus. */
98
+ selected: string | null;
99
+ private list;
100
+ private text;
101
+ private hints;
102
+ private focusPending;
103
+ /** Tracked from focus events: reading a shadow root's `activeElement` is not safe everywhere. */
104
+ private focusWithin;
105
+ constructor();
106
+ /** Hint lines shown under the outline. */
107
+ get notes(): readonly string[];
108
+ set notes(value: readonly string[]);
109
+ get nodes(): readonly OfficeSmartArtTextNode[];
110
+ set nodes(value: readonly OfficeSmartArtTextNode[]);
111
+ get labels(): OfficeSmartArtTextPaneLabels;
112
+ set labels(value: Partial<OfficeSmartArtTextPaneLabels>);
113
+ /** Moves the focus to the selected node's line (or the first line). */
114
+ focusSelected(): void;
115
+ private inputs;
116
+ private onKey;
117
+ protected updated(changed: PropertyValues<this>): void;
118
+ protected render(): import("lit").TemplateResult<1>;
119
+ }
120
+ export declare const defineSmartArtTextPane: import("../registry.js").Definer;
121
+ //# sourceMappingURL=smartart-text-pane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartart-text-pane.d.ts","sourceRoot":"","sources":["../../src/smartart/smartart-text-pane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAGvD,OAAO,EAGN,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACX,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,GAChC,MAAM,4BAA4B,CAAC;AAEpC,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,gGAAgG;IAChG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,4CAA4C;AAC5C,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACzC,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;IACrF,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;CACd;AAoBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,wBAAyB,SAAQ,aAAa;IAC1D,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;QACzB,QAAQ;YAAI,IAAI;;QAChB,QAAQ;YAAI,IAAI;;QAChB,QAAQ;YAAI,IAAI;;QAChB,KAAK;YAAI,IAAI;;QACb,cAAc;YAAI,IAAI;YAAW,SAAS;;MACzC;IACF,8BAA8B;IACtB,QAAQ,EAAE,OAAO,CAAC;IAC1B,wEAAwE;IAChE,QAAQ,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IAC9C,KAAK,EAAE,OAAO,CAAC;IACvB,yEAAyE;IACjE,cAAc,EAAE,OAAO,CAAC;IAChC,6DAA6D;IACrD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,OAAO,CAAC,IAAI,CAAyC;IACrD,OAAO,CAAC,IAAI,CAAyC;IACrD,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,YAAY,CAAS;IAC7B,iGAAiG;IACjG,OAAO,CAAC,WAAW,CAAS;IAE5B,cASC;IAED,0CAA0C;IAC1C,IAAI,KAAK,IAAI,SAAS,MAAM,EAAE,CAE7B;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAGjC;IAED,IAAI,KAAK,IAAI,SAAS,sBAAsB,EAAE,CAE7C;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,EAGjD;IACD,IAAI,MAAM,IAAI,4BAA4B,CAEzC;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,4BAA4B,CAAC,EAGtD;IAED,uEAAuE;IACvE,aAAa,IAAI,IAAI,CAGpB;IAED,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,KAAK;IAyBb,UAAmB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAiB9D;IAED,UAAmB,MAAM,oCAwExB;CACD;AAED,eAAO,MAAM,sBAAsB,+BAGlC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { type DiagramDesignCommandKey, type DiagramHostNode, type DiagramNodeEdit } from 'ooxml-core/diagram';
2
+ import { type OfficeSmartArtTextNode, type OfficeSmartArtTextPaneLabels } from './smartart-text-pane.js';
3
+ export interface SmartArtTextPaneHost {
4
+ /** The selected diagram's nodes in tree order, or undefined when no SmartArt is selected. */
5
+ nodes(): readonly DiagramHostNode[] | undefined;
6
+ /**
7
+ * Applies one command to the selected diagram. Returns the node it created or acted on, `''`
8
+ * when it changed the diagram without one, and undefined when nothing changed.
9
+ */
10
+ edit(edit: DiagramNodeEdit): string | undefined;
11
+ /** Typing in a line (hosts may join keystrokes into one undo step). */
12
+ setText(id: string, text: string): void;
13
+ /** The pane opened or closed (the host refreshes its ribbon and focus). */
14
+ toggled(open: boolean): void;
15
+ }
16
+ type TextPane = HTMLElement & {
17
+ nodes: OfficeSmartArtTextNode[];
18
+ selected: string | null;
19
+ closable: boolean;
20
+ labels: Partial<OfficeSmartArtTextPaneLabels>;
21
+ focusSelected(): void;
22
+ };
23
+ /** One product's text pane and the node the SmartArt Design commands act on. */
24
+ export declare class SmartArtTextPaneController {
25
+ private readonly host;
26
+ readonly pane: TextPane;
27
+ private paneOpen;
28
+ /** The node the text pane (and so Add Shape, Promote...) acts on. */
29
+ private current;
30
+ constructor(doc: Document, host: SmartArtTextPaneHost, className: string);
31
+ get open(): boolean;
32
+ /** Opens or closes the pane (Text Pane toggle); focuses its current line on opening. */
33
+ setOpen(open: boolean): void;
34
+ /** Puts the pane on a node (a newly inserted diagram's first node, for example). */
35
+ select(nodeId: string | null): void;
36
+ /** The node commands act on: the text pane's, else the diagram's last node. */
37
+ currentNode(): string | undefined;
38
+ /**
39
+ * Runs a SmartArt Design node command on the current node; returns false for the commands that
40
+ * are not node edits (`textPane`, `changeLayout`) or when nothing is selected.
41
+ */
42
+ runCommand(key: DiagramDesignCommandKey): boolean;
43
+ private apply;
44
+ /** Shows the pane for the selected diagram while it is open, with its current outline. */
45
+ sync(): void;
46
+ /** Translated pane strings; `t` looks up the shared SmartArt UI keys. */
47
+ setLabels(t: (key: string) => string): void;
48
+ /** A new document: no current node, and the pane closed. */
49
+ reset(): void;
50
+ }
51
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * SmartArt gallery tiles every product draws: a small diagram per layout family (list, process,
3
+ * cycle, hierarchy, ...) in Accent 1, and a three-box process filled in a colour scheme's accents
4
+ * or in Accent 1 with a style's effect, both on a white card. SVG markup only, from trusted
5
+ * geometry and sanitised colours. Moved from the PowerPoint UI
6
+ * (`pptx/render/ribbon-galleries/smartart-layout-tiles.ts` and `smartart-gallery-tiles.ts`).
7
+ */
8
+ import type { DiagramStyleIntensity } from 'ooxml-core/diagram';
9
+ export interface SmartArtTileSize {
10
+ width: number;
11
+ height: number;
12
+ }
13
+ /** A layout family's tile; unknown families fall back to a row of three boxes. */
14
+ export declare function smartArtLayoutTileSvg(type: string, fill: string | undefined, size: SmartArtTileSize): string;
15
+ /** Three boxes with arrow gaps, filled with `fills` (cycled) and an optional effect. */
16
+ export declare function smartArtTileSvg(id: string, fills: readonly string[], style: DiagramStyleIntensity, size: SmartArtTileSize): string;
17
+ //# sourceMappingURL=tiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tiles.d.ts","sourceRoot":"","sources":["../../src/smartart/tiles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhE,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAqID,kFAAkF;AAClF,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,gBAAgB,GACpB,MAAM,CAKR;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAC9B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,EAAE,qBAAqB,EAC5B,IAAI,EAAE,gBAAgB,GACpB,MAAM,CA6BR"}
@@ -1 +1,6 @@
1
1
  export * from './smartart/smartart.js';
2
+ export * from './smartart/smartart-picker.js';
3
+ export * from './smartart/smartart-text-pane.js';
4
+ export * from './smartart/tiles.js';
5
+ export * from './smartart/galleries.js';
6
+ export * from './smartart/text-pane-controller.js';
package/dist/smartart.js CHANGED
@@ -1,3 +1,4 @@
1
- export { OfficeUiSmartArt, defineSmartArt, renderDiagramDrawing } from './chunk-QBXYGKPB.js';
1
+ export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-P4FRKIPE.js';
2
+ import './chunk-FN7IF6M6.js';
2
3
  import './chunk-QLHCGV4C.js';
3
4
  import './chunk-XL77FR4B.js';
@@ -1,4 +1,5 @@
1
1
  import type { TeamsServerConfig } from 'ooxml-core/teams';
2
+ import { type BindingContract } from '../../bindings/index.js';
2
3
  import type { FileOpeners, FileUploader, OpenFileDetail, TeamsApp } from './teams-app.js';
3
4
  import type { FileEmbeds } from './content-preview.js';
4
5
  export interface TeamsProps {
@@ -26,7 +27,36 @@ export interface TeamsProps {
26
27
  config: TeamsServerConfig;
27
28
  }) => void;
28
29
  }
30
+ type TeamsPropKey = 'workspaceId' | 'userName' | 'userId' | 'locale' | 'config' | 'uploadFile' | 'openers' | 'embeds';
31
+ /** The props, events and (empty) handle of every Teams binding; the element is the handle. */
32
+ export declare const TEAMS_CONTRACT: BindingContract<TeamsApp, Pick<TeamsProps, TeamsPropKey>, Record<never, never>, 'teams-ready' | 'teams-open-file' | 'teams-config-change', 'onReady' | 'onOpenFile' | 'onConfigChange'>;
29
33
  /** Push props onto the element. Only changed values are written, so frameworks can call it freely. */
30
34
  export declare function applyTeamsProps(el: TeamsApp, props: TeamsProps, prev?: TeamsProps): void;
31
35
  /** Subscribe to the element's events; the latest handlers are read through `get`. */
32
36
  export declare function listenTeamsEvents(el: TeamsApp, get: () => TeamsProps): () => void;
37
+ /** The props of `<teams-app>` plus the class list of its host element. */
38
+ export type TeamsElementProps = TeamsProps & {
39
+ className?: string | undefined;
40
+ };
41
+ /**
42
+ * Copies the defined, shared props out of a framework's props/instance object. `undefined` means
43
+ * "not provided"; `config` keeps an explicit `null`. Handlers are not copied: events go through
44
+ * the `get` callback of `bindTeams`.
45
+ */
46
+ export declare function pickTeamsProps(source: {
47
+ [K in TeamsPropKey]?: TeamsProps[K] | undefined;
48
+ } & {
49
+ className?: string | undefined;
50
+ }): TeamsElementProps;
51
+ export interface TeamsBinding {
52
+ /** Apply props; only values that changed since the last call are written. */
53
+ update(next: TeamsElementProps): void;
54
+ /** Stop listening for events. The element is left to the framework that owns it. */
55
+ destroy(): void;
56
+ }
57
+ /**
58
+ * Wires `el` to a framework's props: `update` pushes changed props (and the host class), and the
59
+ * element's events call the handlers returned by `get` at event time.
60
+ */
61
+ export declare function bindTeams(el: TeamsApp, get: () => TeamsElementProps): TeamsBinding;
62
+ export {};
@@ -5,6 +5,6 @@ export { TeamsChannelTab, defineTeamsChannelTab } from './channel-tab.js';
5
5
  export { TeamsFilesPanel, defineTeamsFilesPanel } from './files-panel.js';
6
6
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './presentation-preview.js';
7
7
  export { TeamsContentPreview, defineTeamsContentPreview, type FileEmbeds, type SaveFileCopy, } from './content-preview.js';
8
- export { applyTeamsProps, listenTeamsEvents, type TeamsProps } from './bind.js';
8
+ export { applyTeamsProps, bindTeams, listenTeamsEvents, pickTeamsProps, TEAMS_CONTRACT, type TeamsBinding, type TeamsElementProps, type TeamsProps, } from './bind.js';
9
9
  export * from './store.js';
10
10
  export { loadConfig, loadIdentity, safeStorage, saveConfig, saveIdentity } from './storage.js';
package/dist/teams.js CHANGED
@@ -1,8 +1,13 @@
1
- export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-X5XR45BK.js';
1
+ export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-HGLCXNCT.js';
2
2
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-FHO7TEWA.js';
3
+ import './chunk-CDAXY5KC.js';
4
+ import './chunk-NDUD5JJB.js';
5
+ import './chunk-KJMAVPQB.js';
3
6
  import './chunk-T5ARELU2.js';
4
- import './chunk-SC44SOIS.js';
7
+ import './chunk-WDOWQKKC.js';
5
8
  import './chunk-M6GF5ED2.js';
9
+ import './chunk-VM6ZTKB3.js';
6
10
  import './chunk-YZH2QS7J.js';
11
+ import './chunk-FN7IF6M6.js';
7
12
  import './chunk-QLHCGV4C.js';
8
13
  import './chunk-XL77FR4B.js';
@@ -54,8 +54,11 @@ export type VisioFormattingAction = {
54
54
  };
55
55
  /** Text dialogs and tools: Home launchers and Text Block, Insert Symbol/Field, Review proofing. */
56
56
  export type VisioTextFeature = 'text-dialog' | 'paragraph-dialog' | 'text-block' | 'symbol' | 'field' | 'spelling' | 'language';
57
- /** Insert-tab items that act on the page or the selected shape. */
58
- export type VisioInsertItem = 'picture' | 'chart' | 'link' | 'screen-tip';
57
+ /**
58
+ * Insert-tab items that act on the page or the selected shape; `chart-data` and `chart-format`
59
+ * open Edit Data and Format Chart for a selected chart object.
60
+ */
61
+ export type VisioInsertItem = 'picture' | 'chart' | 'chart-data' | 'chart-format' | 'link' | 'screen-tip';
59
62
  /** Review and Process tab commands: comments, shape reports, diagram checks and subprocesses. */
60
63
  export type VisioReviewCommand = 'check-accessibility' | 'alt-text' | 'page-alt-text' | 'new-comment' | 'page-comment' | 'comments-pane' | 'shape-reports' | 'check-diagram' | 'issues-window' | 'ignore-issue' | 'rule-set' | 'subprocess-new' | 'subprocess-existing' | 'subprocess-selection';
61
64
  /** Insert > Diagram Parts: a container or callout in one of its styles. */