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,120 @@
1
+ /**
2
+ * Shared session model for the read-only banner (`pptx-ui-read-only-banner`).
3
+ *
4
+ * `readOnlyRecommendation` says whether a loaded deck asks to be opened read-only. What the user
5
+ * does about it during the session (hide the banner, lift the lock with Edit anyway or the right
6
+ * password, open and cancel the password prompt) is the same in every binding, so it lives here.
7
+ * The session is a plain value each host keeps in its own reactive container:
8
+ * {@link reduceReadOnlySession} is the only place it changes, {@link readOnlyLocked} and
9
+ * {@link readOnlyBannerVisible} derive the edit gate and the banner from it,
10
+ * {@link readOnlyBannerState} builds the element's state, {@link readOnlySessionActions} binds the
11
+ * banner's actions (Unlock through {@link runReadOnlyPasswordCheck}) to the host's store and
12
+ * {@link dispatchReadOnlyBannerIntent} routes the element's requests.
13
+ *
14
+ * DOM-free and framework-free.
15
+ */
16
+ import type { PptxModifyVerifier } from 'ooxml-core/pptx';
17
+ import type { ChromeTranslate, ReadOnlyBannerPasswordError, ReadOnlyBannerViewState } from './chrome-controls-state.js';
18
+ import type { ModifyPasswordCheckResult } from './modify-password-check.js';
19
+ import type { ReadOnlyRecommendation } from './read-only-recommendation.js';
20
+ /** What the user has done about the current deck's read-only recommendation. */
21
+ export interface ReadOnlySession {
22
+ /** The banner is closed: Dismiss, Edit anyway or the right password. */
23
+ readonly bannerHidden: boolean;
24
+ /** Edit anyway (or the right password) lifted the lock. Dismiss never does. */
25
+ readonly editAnyway: boolean;
26
+ /** The inline password form replaces Edit anyway and Dismiss. */
27
+ readonly passwordPromptOpen: boolean;
28
+ /** Why the last check failed; null before one and after Cancel, a reopen or success. */
29
+ readonly passwordError: ReadOnlyBannerPasswordError | null;
30
+ /** A submitted password is being checked. */
31
+ readonly checkingPassword: boolean;
32
+ /**
33
+ * Which check a result belongs to. A new load, Cancel and every new check move it on, so a
34
+ * check that finishes after one of them is dropped instead of unlocking the wrong deck.
35
+ */
36
+ readonly passwordCheck: number;
37
+ }
38
+ /** A session before the user has done anything. */
39
+ export declare const INITIAL_READ_ONLY_SESSION: ReadOnlySession;
40
+ export type ReadOnlySessionEvent =
41
+ /** A new deck: everything starts over and a check still running is dropped. */
42
+ {
43
+ readonly type: 'reset';
44
+ }
45
+ /** Edit anyway: the password prompt when the deck requires one, otherwise unlock. */
46
+ | {
47
+ readonly type: 'editAnyway';
48
+ readonly requiresPassword: boolean;
49
+ }
50
+ /** Dismiss: hide the banner, keep the lock. */
51
+ | {
52
+ readonly type: 'dismiss';
53
+ }
54
+ /** The prompt's Cancel: close it, forget the error, drop a check still running. */
55
+ | {
56
+ readonly type: 'cancelPassword';
57
+ }
58
+ /** Unlock: start a check. Ignored while one is already running. */
59
+ | {
60
+ readonly type: 'checkStarted';
61
+ }
62
+ /** A check finished; applied only while it is still the current one. */
63
+ | {
64
+ readonly type: 'checkFinished';
65
+ readonly check: number;
66
+ readonly result: ModifyPasswordCheckResult;
67
+ };
68
+ /** The one transition function. Returns `session` itself when the event changes nothing. */
69
+ export declare function reduceReadOnlySession(session: ReadOnlySession, event: ReadOnlySessionEvent): ReadOnlySession;
70
+ /** The recommendation fields the derived flags read; null or undefined means none. */
71
+ export type ReadOnlySessionRecommendation = Pick<ReadOnlyRecommendation, 'kind' | 'defaultReadOnly'> | null | undefined;
72
+ /** Whether editing is locked: the deck recommends read-only and nothing lifted it. */
73
+ export declare function readOnlyLocked(recommendation: ReadOnlySessionRecommendation, session: Pick<ReadOnlySession, 'editAnyway'>): boolean;
74
+ /** Whether the banner shows: the deck recommends read-only and the banner is still open. */
75
+ export declare function readOnlyBannerVisible(recommendation: ReadOnlySessionRecommendation, session: Pick<ReadOnlySession, 'bannerHidden'>): boolean;
76
+ /** The banner element's state for a recommendation and the session's prompt. */
77
+ export declare function readOnlyBannerState(recommendation: Pick<ReadOnlyRecommendation, 'kind' | 'messageKey'>, session: Pick<ReadOnlySession, 'passwordPromptOpen' | 'passwordError' | 'checkingPassword'>, translate?: ChromeTranslate): ReadOnlyBannerViewState;
78
+ /** Where a host keeps its session. `get` must return what the last `set` stored. */
79
+ export interface ReadOnlySessionStore {
80
+ get(): ReadOnlySession;
81
+ set(next: ReadOnlySession): void;
82
+ }
83
+ /** Apply one event to a store; a no-op event leaves the store untouched. */
84
+ export declare function applyReadOnlySessionEvent(store: ReadOnlySessionStore, event: ReadOnlySessionEvent): void;
85
+ export type ModifyPasswordCheck = (verifier: PptxModifyVerifier | undefined, password: string) => Promise<ModifyPasswordCheckResult>;
86
+ /**
87
+ * Unlock: check `password` against the deck's verifier through the transitions. A second submit
88
+ * while a check runs does nothing, and a result that arrives after a new load or Cancel is
89
+ * dropped. `check` defaults to `checkModifyPassword`; a check that throws counts as one this
90
+ * viewer cannot run.
91
+ */
92
+ export declare function runReadOnlyPasswordCheck(store: ReadOnlySessionStore, verifier: PptxModifyVerifier | undefined, password: string, check?: ModifyPasswordCheck): Promise<void>;
93
+ /** What the actions read from the host when they run. */
94
+ export interface ReadOnlySessionSource {
95
+ /** The loaded deck's recommendation; its `requiresPassword` decides what Edit anyway does. */
96
+ recommendation(): Pick<ReadOnlyRecommendation, 'requiresPassword'> | null | undefined;
97
+ /** The loaded deck's `p:modifyVerifier`, which Unlock checks. */
98
+ modifyVerifier(): PptxModifyVerifier | undefined;
99
+ }
100
+ /** A host's banner actions; also usable as {@link ReadOnlyBannerIntentHandlers}. */
101
+ export interface ReadOnlySessionActions {
102
+ /** A new deck loaded. */
103
+ reset(): void;
104
+ editAnyway(): void;
105
+ dismiss(): void;
106
+ cancelPassword(): void;
107
+ submitPassword(password: string): Promise<void>;
108
+ }
109
+ /** The banner's actions over a host's store, each one a transition. */
110
+ export declare function readOnlySessionActions(store: ReadOnlySessionStore, source: ReadOnlySessionSource): ReadOnlySessionActions;
111
+ /** A host's handler per banner request; a request without one does nothing. */
112
+ export interface ReadOnlyBannerIntentHandlers {
113
+ editAnyway?: (() => void) | undefined;
114
+ dismiss?: (() => void) | undefined;
115
+ cancelPassword?: (() => void) | undefined;
116
+ submitPassword?: ((password: string) => void) | undefined;
117
+ }
118
+ /** Route the banner's `read-only-request` event to the host's handler for it. */
119
+ export declare function dispatchReadOnlyBannerIntent(event: Event, handlers: ReadOnlyBannerIntentHandlers): void;
120
+ //# sourceMappingURL=read-only-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-only-session.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/read-only-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EACX,eAAe,EAEf,2BAA2B,EAC3B,uBAAuB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,gFAAgF;AAChF,MAAM,WAAW,eAAe;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,wFAAwF;IACxF,QAAQ,CAAC,aAAa,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAC3D,6CAA6C;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAC/B;AAED,mDAAmD;AACnD,eAAO,MAAM,yBAAyB,EAAE,eAOtC,CAAC;AAEH,MAAM,MAAM,oBAAoB;AAC/B,+EAA+E;AAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE;AAC5B,qFAAqF;GACnF;IAAE,QAAQ,CAAC,IAAI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AAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC1D;AAED,iFAAiF;AACjF,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,4BAA4B,GACpC,IAAI,CAgBN"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Chart Design > Change Colors: Colorful Palettes 1-4 and Monochromatic
3
3
  * Palettes 1-13 (`Chart.ChartColor` 10..26), resolved per series exactly as
4
- * PowerPoint derives them (see `chart-color-palette-catalog.ts`).
4
+ * PowerPoint derives them (`ooxml-core/chart` `color-palettes`); the tiles
5
+ * are the shared Chart Design gallery (`src/ui/src/chart/design-galleries`).
5
6
  *
6
7
  * A pick writes each series' colour explicitly, as PowerPoint does
7
8
  * (`c:ser/c:spPr/a:solidFill`); the core save path rewrites an existing
@@ -17,7 +18,7 @@
17
18
  * @module render/ribbon-galleries/chart-colors-gallery
18
19
  */
19
20
  import type { PptxChartData } from 'ooxml-core/pptx';
20
- import type { ChartColorPalette } from './chart-color-palette-catalog.js';
21
+ import { type ChartColorPalette } from 'ooxml-core/chart';
21
22
  import type { RibbonGalleryModule } from './gallery-module.js';
22
23
  import type { RibbonGalleryContext } from './gallery-types.js';
23
24
  /** `chartData` recoloured with `palette` under the deck's colour scheme. */
@@ -1 +1 @@
1
- {"version":3,"file":"chart-colors-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-colors-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAGlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAOvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,oBAAoB,EAAqB,MAAM,iBAAiB,CAAC;AAa/E,4EAA4E;AAC5E,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,oBAAoB,GACvB,aAAa,CAyBf;AAuCD,eAAO,MAAM,oBAAoB,EAAE,mBAsClC,CAAC"}
1
+ {"version":3,"file":"chart-colors-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-colors-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAIN,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,oBAAoB,EAAqB,MAAM,iBAAiB,CAAC;AAW/E,4EAA4E;AAC5E,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,oBAAoB,GACvB,aAAa,CAyBf;AAkBD,eAAO,MAAM,oBAAoB,EAAE,mBA6ClC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * Chart Design > Quick Layout: Layout 1-11, each a set of chart elements
3
- * switched on or off together (`chart-quick-layout-catalog.ts`, measured via
4
- * COM on a column chart). A pick toggles the matching `PptxChartData` fields
3
+ * switched on or off together (`ooxml-core/chart` `quick-layouts`, measured via
4
+ * COM on a column chart; the tiles are the shared Chart Design gallery,
5
+ * `src/ui/src/chart/design-galleries`). `chart/edit` `applyChartQuickLayout`
6
+ * is the same layout over a `ChartSpace`; this module maps it onto
7
+ * `PptxChartData`. A pick toggles the matching `PptxChartData` fields
5
8
  * through the same helpers the "Chart Elements" quick action uses; gap width
6
9
  * and overlap only apply to bar / column charts. Line and area charts take the
7
10
  * same element set (PowerPoint's own line layouts are not separately
@@ -10,7 +13,7 @@
10
13
  * @module render/ribbon-galleries/chart-quick-layout-gallery
11
14
  */
12
15
  import type { PptxChartData } from 'ooxml-core/pptx';
13
- import type { ChartQuickLayout } from './chart-quick-layout-catalog.js';
16
+ import { type ChartQuickLayout } from 'ooxml-core/chart';
14
17
  import type { RibbonGalleryModule } from './gallery-module.js';
15
18
  /** `chartData` with Quick Layout `layout` applied. */
16
19
  export declare function applyChartQuickLayout(chartData: PptxChartData, layout: ChartQuickLayout): PptxChartData;
@@ -1 +1 @@
1
- {"version":3,"file":"chart-quick-layout-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-quick-layout-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAEX,aAAa,EAGb,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAoB5D,sDAAsD;AACtD,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,gBAAgB,GACtB,aAAa,CAgDf;AA4BD,eAAO,MAAM,0BAA0B,EAAE,mBAuCxC,CAAC"}
1
+ {"version":3,"file":"chart-quick-layout-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-quick-layout-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAEX,aAAa,EAGb,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAGN,KAAK,gBAAgB,EACrB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAiB5D,sDAAsD;AACtD,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,gBAAgB,GACtB,aAAa,CAgDf;AA4BD,eAAO,MAAM,0BAA0B,EAAE,mBA4CxC,CAAC"}
@@ -4,7 +4,8 @@
4
4
  * ribbon gallery. A pick is `applyChartStylePreset`, then each series' new
5
5
  * palette colour is pinned on `series.color` as well: the core save path only
6
6
  * rewrites an existing `c:ser/c:spPr` fill when `series.color` is set, so
7
- * without it the saved file would keep the pre-pick colours.
7
+ * without it the saved file would keep the pre-pick colours. The tiles and
8
+ * their data are the shared Chart Design gallery (`src/ui/src/chart/design-galleries`).
8
9
  *
9
10
  * @module render/ribbon-galleries/chart-styles-gallery
10
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chart-styles-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-styles-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAIlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAkB5D,kFAAkF;AAClF,wBAAgB,4BAA4B,CAC3C,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,MAAM,GACd,aAAa,GAAG,IAAI,CAUtB;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAuClC,CAAC"}
1
+ {"version":3,"file":"chart-styles-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/chart-styles-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AAIlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAM5D,kFAAkF;AAClF,wBAAgB,4BAA4B,CAC3C,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,MAAM,GACd,aAAa,GAAG,IAAI,CAUtB;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAqClC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"gallery-placements.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/gallery-placements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACtC,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC3C,KAAK,EAAE,aAAa,CAAC;IACrB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC7C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAC;CAC3C;AAED,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,EAAE,SAAS,eAAe,EAAgC,CAAC;AAE3F,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACzC,qBAAqB,EACrB,SAAS,2BAA2B,EAAE,CA+UtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,sBAAsB,EAehE,CAAC;AAEF,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,qBAAqB,EAAE,CAiB7F;AAED,oEAAoE;AACpE,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,QAAQ,CAAC,EAAE,qBAAqB,GAC9B,qBAAqB,EAAE,CAIzB;AAED,8CAA8C;AAC9C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAExE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,EACtD,MAAM,EAAE,CAAC,GAAG,qBAAqB,EACjC,iBAAiB,EAAE,SAAS,qBAAqB,EAAE,EACnD,QAAQ,EAAE,CAAC,GACT,CAAC,GAAG,qBAAqB,CAM3B"}
1
+ {"version":3,"file":"gallery-placements.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/gallery-placements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACtC,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC3C,KAAK,EAAE,aAAa,CAAC;IACrB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC7C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAC;CAC3C;AAED,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,EAAE,SAAS,eAAe,EAAgC,CAAC;AAE3F,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACzC,qBAAqB,EACrB,SAAS,2BAA2B,EAAE,CAyVtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,sBAAsB,EAehE,CAAC;AAEF,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,qBAAqB,EAAE,CAiB7F;AAED,oEAAoE;AACpE,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,QAAQ,CAAC,EAAE,qBAAqB,GAC9B,qBAAqB,EAAE,CAIzB;AAED,8CAA8C;AAC9C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAExE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,EACtD,MAAM,EAAE,CAAC,GAAG,qBAAqB,EACjC,iBAAiB,EAAE,SAAS,qBAAqB,EAAE,EACnD,QAAQ,EAAE,CAAC,GACT,CAAC,GAAG,qBAAqB,CAM3B"}
@@ -20,7 +20,7 @@ export type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles'
20
20
  /** The inspector's Text Warp (WordArt Transform) picker. */
21
21
  | 'textWarp'
22
22
  /** The inspector's Quick Styles (shape style presets) picker. */
23
- | 'quickStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'tableSelect' | 'tableViewGridlines' | 'tableDeleteRows' | 'tableDeleteColumns' | 'tableInsertAbove' | 'tableInsertBelow' | 'tableInsertLeft' | 'tableInsertRight' | 'tableMergeCells' | 'tableSplitCells' | 'tableDistributeRows' | 'tableDistributeColumns' | 'tableAlignLeft' | 'tableAlignCenter' | 'tableAlignRight' | 'tableAlignTop' | 'tableAlignMiddle' | 'tableAlignBottom' | 'tableTextDirection' | 'tableCellMargins' | 'tableSize' | 'tableArrange' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'smartArtLayouts' | 'smartArtAddShape' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert' | 'themes' | 'themeVariants' | 'themeColors' | 'themeFonts' | 'themeEffects' | 'themeBackgrounds';
23
+ | 'quickStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'tableSelect' | 'tableViewGridlines' | 'tableDeleteRows' | 'tableDeleteColumns' | 'tableInsertAbove' | 'tableInsertBelow' | 'tableInsertLeft' | 'tableInsertRight' | 'tableMergeCells' | 'tableSplitCells' | 'tableDistributeRows' | 'tableDistributeColumns' | 'tableAlignLeft' | 'tableAlignCenter' | 'tableAlignRight' | 'tableAlignTop' | 'tableAlignMiddle' | 'tableAlignBottom' | 'tableTextDirection' | 'tableCellMargins' | 'tableSize' | 'tableArrange' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'smartArtLayouts' | 'smartArtAddShape' | 'smartArtAddShapeBefore' | 'smartArtAddShapeAbove' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert' | 'themes' | 'themeVariants' | 'themeColors' | 'themeFonts' | 'themeEffects' | 'themeBackgrounds';
24
24
  /** One tile. */
25
25
  export interface RibbonGalleryItem {
26
26
  /** Stable within its gallery; what `applyRibbonGalleryItem` takes. */
@@ -1 +1 @@
1
- {"version":3,"file":"gallery-types.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/gallery-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,SAAS,EACT,MAAM,iBAAiB,CAAC;AAEzB,uCAAuC;AACvC,MAAM,MAAM,eAAe,GACxB,aAAa,GACb,cAAc,GACd,eAAe;AACjB,4DAA4D;GAC1D,UAAU;AACZ,iEAAiE;GAC/D,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,wBAAwB,GACxB,SAAS,GACT,WAAW,GACX,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,qBAAqB,GACrB,wBAAwB,GACxB,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,iBAAiB,GACjB,QAAQ,GACR,eAAe,GACf,aAAa,GACb,YAAY,GACZ,cAAc,GACd,kBAAkB,CAAC;AAEtB,gBAAgB;AAChB,MAAM,WAAW,iBAAiB;IACjC,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,QAAQ,EAAE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S,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3B,GACD;IACA,wEAAwE;IACxE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,oBAAoB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,wFAAwF;IACxF,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,6DAA6D;IAC7D,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC;CACzB,GACD;IACA,gFAAgF;IAChF,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,kBAAkB,CAAC;CAC3B,GACD;IACA,+FAA+F;IAC/F,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"gallery-types.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/gallery-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,SAAS,EACT,MAAM,iBAAiB,CAAC;AAEzB,uCAAuC;AACv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AC;IACzB,WAAW,EAAE,oBAAoB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,wFAAwF;IACxF,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,6DAA6D;IAC7D,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC;CACzB,GACD;IACA,gFAAgF;IAChF,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,kBAAkB,CAAC;CAC3B,GACD;IACA,+FAA+F;IAC/F,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACjC,CAAC"}
@@ -1,11 +1,3 @@
1
- /**
2
- * SmartArt Design > Change Colors: the colour schemes the core SmartArt model
3
- * carries (`SmartArtColorScheme`), named and grouped after PowerPoint's
4
- * gallery (see `smartart-gallery-patch.ts`). A pick sets
5
- * `smartArtData.colorScheme` through the shared inspector patch.
6
- *
7
- * @module render/ribbon-galleries/smartart-colors-gallery
8
- */
9
1
  import type { RibbonGalleryModule } from './gallery-module.js';
10
2
  export declare const SMARTART_COLORS_GALLERY: RibbonGalleryModule;
11
3
  //# sourceMappingURL=smartart-colors-gallery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-colors-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-colors-gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAyB5D,eAAO,MAAM,uBAAuB,EAAE,mBAkErC,CAAC"}
1
+ {"version":3,"file":"smartart-colors-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-colors-gallery.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAY5D,eAAO,MAAM,uBAAuB,EAAE,mBAkErC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { RibbonGalleryModule } from './gallery-module.js';
2
2
  import type { RibbonGalleryId } from './gallery-types.js';
3
3
  /** Gallery ids that are SmartArt command buttons. */
4
- export type SmartArtCommandGalleryId = Extract<RibbonGalleryId, 'smartArtAddShape' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert'>;
4
+ export type SmartArtCommandGalleryId = Extract<RibbonGalleryId, 'smartArtAddShape' | 'smartArtAddShapeBefore' | 'smartArtAddShapeAbove' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert'>;
5
5
  /** The SmartArt command entries, keyed by gallery id, for the registry. */
6
6
  export declare const SMARTART_COMMAND_MODULES: Record<SmartArtCommandGalleryId, RibbonGalleryModule>;
7
7
  //# sourceMappingURL=smartart-commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-commands.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-commands.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAGX,eAAe,EACf,MAAM,iBAAiB,CAAC;AAoLzB,qDAAqD;AACrD,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC7C,eAAe,EACb,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,iBAAiB,CACnB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,EAEhC,MAAM,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"smartart-commands.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-commands.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAGX,eAAe,EACf,MAAM,iBAAiB,CAAC;AA4MzB,qDAAqD;AACrD,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC7C,eAAe,EACb,kBAAkB,GAClB,wBAAwB,GACxB,uBAAuB,GACvB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,iBAAiB,CACnB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,EAEhC,MAAM,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { PptxElement, SmartArtLayoutType, PptxSmartArtData, PptxThemeColorScheme, SmartArtColorScheme, SmartArtStyle } from 'ooxml-core/pptx';
1
+ import type { DiagramColorEntry } from 'ooxml-core/diagram';
2
+ import type { PptxElement, SmartArtLayoutType, PptxSmartArtData, SmartArtColorScheme, SmartArtStyle } from 'ooxml-core/pptx';
2
3
  /** `data` with `patch` merged, drawing shapes rebuilt when a structural edit cleared them. */
3
4
  export declare function applySmartArtDataPatch(data: PptxSmartArtData, patch: Partial<PptxSmartArtData>, box?: {
4
5
  width: number;
@@ -31,8 +32,9 @@ export interface SmartArtColorEntry {
31
32
  name: string;
32
33
  labelKey: string;
33
34
  /** Theme accents the scheme fills nodes with, in cycle order. */
34
- accents: ReadonlyArray<keyof PptxThemeColorScheme>;
35
+ accents: DiagramColorEntry['accents'];
35
36
  }
37
+ /** The product-neutral catalogue (`ooxml-core/diagram`) with the pptx dictionary keys. */
36
38
  export declare const SMARTART_COLOR_ENTRIES: readonly SmartArtColorEntry[];
37
39
  export interface SmartArtStyleEntry {
38
40
  id: SmartArtStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-gallery-patch.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-gallery-patch.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACX,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,MAAM,iBAAiB,CAAC;AAMzB,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAChC,GAAG,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,SAAS,SAAc,GACrB,gBAAgB,CAmBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,kBAAkB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAoB3B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,kBAAkB,GACxB,gBAAgB,CAKlB;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAC9B;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,GAAG,IAAI,CAW3D;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,mBAAmB,CAAC;IACxB,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,OAAO,EAAE,aAAa,CAAC,MAAM,oBAAoB,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAoC/D,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAQ/D,CAAC;AAEF,iGAAiG;AACjG,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAEvC"}
1
+ {"version":3,"file":"smartart-gallery-patch.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-gallery-patch.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EACX,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,MAAM,iBAAiB,CAAC;AAMzB,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAChC,GAAG,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,SAAS,SAAc,GACrB,gBAAgB,CAmBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,kBAAkB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAoB3B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,kBAAkB,GACxB,gBAAgB,CAKlB;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAC9B;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,GAAG,IAAI,CAW3D;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,mBAAmB,CAAC;IACxB,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;CACtC;AAWD,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAE/D,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAQD,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAE/D,CAAC;AAEF,iGAAiG;AACjG,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAEvC"}
@@ -1,13 +1,8 @@
1
1
  /**
2
- * SmartArt Design gallery tiles: a three-box process diagram, filled in a
3
- * colour scheme's theme accents, or in Accent 1 with a style's effect.
2
+ * SmartArt Design gallery tiles (colour schemes and styles). The drawing is product-neutral and
3
+ * lives in `src/ui/src/smartart/tiles.ts`; this module keeps the PowerPoint import path.
4
4
  *
5
5
  * @module render/ribbon-galleries/smartart-gallery-tiles
6
6
  */
7
- import type { SmartArtStyle } from 'ooxml-core/pptx';
8
- /** Three boxes with arrow gaps, filled with `fills` (cycled) and an optional effect. */
9
- export declare function smartArtTileSvg(id: string, fills: readonly string[], style: SmartArtStyle, size: {
10
- width: number;
11
- height: number;
12
- }): string;
7
+ export { smartArtTileSvg } from '../../../smartart/tiles.js';
13
8
  //# sourceMappingURL=smartart-gallery-tiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-gallery-tiles.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-gallery-tiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD,wFAAwF;AACxF,wBAAgB,eAAe,CAC9B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC,MAAM,CA6BR"}
1
+ {"version":3,"file":"smartart-gallery-tiles.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-gallery-tiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,6 +1,8 @@
1
- /** A layout family's tile; unknown families fall back to a row of three boxes. */
2
- export declare function smartArtLayoutTileSvg(type: string, fill: string | undefined, size: {
3
- width: number;
4
- height: number;
5
- }): string;
1
+ /**
2
+ * SmartArt Design > Layouts gallery tiles. The drawing is product-neutral and lives in
3
+ * `src/ui/src/smartart/tiles.ts`; this module keeps the PowerPoint import path.
4
+ *
5
+ * @module render/ribbon-galleries/smartart-layout-tiles
6
+ */
7
+ export { smartArtLayoutTileSvg } from '../../../smartart/tiles.js';
6
8
  //# sourceMappingURL=smartart-layout-tiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-layout-tiles.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-layout-tiles.ts"],"names":[],"mappings":"AA2IA,kFAAkF;AAClF,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC,MAAM,CAKR"}
1
+ {"version":3,"file":"smartart-layout-tiles.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-layout-tiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"smartart-layouts-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-layouts-gallery.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAY5D;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM3D;AA8DD,eAAO,MAAM,wBAAwB,EAAE,mBA2DtC,CAAC"}
1
+ {"version":3,"file":"smartart-layouts-gallery.d.ts","sourceRoot":"","sources":["../../../../src/pptx/render/ribbon-galleries/smartart-layouts-gallery.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAY5D;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM3D;AAkDD,eAAO,MAAM,wBAAwB,EAAE,mBA2DtC,CAAC"}
@@ -44,6 +44,8 @@ export interface RibbonInsertState {
44
44
  commentAvailable?: boolean;
45
45
  /** The host can open the Slide Templates dialog: New Slide's menu then always ends with it. */
46
46
  slideTemplatesAvailable?: boolean;
47
+ /** The host mounts the Insert Chart dialog: the Chart menu then ends with "Insert Chart...". */
48
+ chartDialogAvailable?: boolean;
47
49
  /** The layouts New Slide offers; empty leaves the gallery out and inserts the host default. */
48
50
  layouts?: readonly InsertSlideLayout[];
49
51
  /** The active slide's layout, marked in the New Slide gallery. */
@@ -84,6 +86,10 @@ export type RibbonInsertIntent = {
84
86
  | {
85
87
  kind: 'slideTemplates';
86
88
  }
89
+ /** Insert Chart... at the end of the Chart menu: the host opens the Insert Chart dialog. */
90
+ | {
91
+ kind: 'chartDialog';
92
+ }
87
93
  /** Insert Table from the grid picker: rows by columns. */
88
94
  | {
89
95
  kind: 'table';
@@ -1 +1 @@
1
- {"version":3,"file":"ribbon-insert-state.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/ribbon-insert-state.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAC5B,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,cAAc,GACd,SAAS,CAAC;AAEb,gFAAgF;AAChF,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,CAAC,EAAE,MAAM,GAClB,iBAAiB,GAAG,SAAS,CAG/B;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;aAAK,IAAI,EAAE,CAAC;aAAE,OAAO,EAAE,EAAE;CAAW,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E;;;GAGG;AACH,M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B,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAuD9F"}
1
+ {"version":3,"file":"ribbon-insert-state.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/ribbon-insert-state.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAC5B,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,cAAc,GACd,SAAS,CAAC;AAEb,gFAAgF;AAChF,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,CAAC,EAAE,MAAM,GAClB,iBAAiB,GAAG,SAAS,CAG/B;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;aAAK,IAAI,EAAE,CAAC;aAAE,OAAO,EAAE,EAAE;CAAW,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,YAAY,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,uFAAuF;IACvF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,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AAA;CAAE;AACzB,0DAA0D;GACxD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,iDAAiD;IACjD,GAAG,EAAE,WAAW,CAAC;CACjB;AAID,eAAO,MAAM,eAAe,EAAE,SAAS,iBAAiB,EAwFvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS;IAAE,EAAE,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,WAAW,CAAA;CAAE,EAKjF,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAavE,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,WAAW,GAAG,MAAM,CAGhF;AAcD,wFAAwF;AACxF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CA2D9F"}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * smart-art-presets.ts: the SmartArt insert-gallery catalogue, shared across
3
- * bindings. Pure data + types; consumed by each binding's insert dialog and
4
- * preview thumbnails. Each preset names a core {@link SmartArtLayout}, the
5
- * sidebar category it lives under, a label, and the default node texts inserted
6
- * when the user picks it without editing.
2
+ * smart-art-presets.ts: the SmartArt insert-gallery catalogue as PowerPoint names it. The
3
+ * catalogue itself is product-neutral (`DIAGRAM_INSERT_PRESETS` / `DIAGRAM_INSERT_CATEGORIES` in
4
+ * `ooxml-core/diagram`); this module adds the pptx translation keys and keeps the historical
5
+ * `PRESETS` / `CATEGORIES` import surface every binding and test uses.
7
6
  */
7
+ import type { DiagramInsertCategory } from 'ooxml-core/diagram';
8
8
  import type { SmartArtLayout } from 'ooxml-core/pptx';
9
9
  /** The five categories surfaced in the dialog's left sidebar. */
10
- export type SmartArtCategory = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship';
10
+ export type SmartArtCategory = DiagramInsertCategory;
11
11
  /** A single entry in the SmartArt insert gallery. */
12
12
  export interface SmartArtPreset {
13
13
  /** Core layout kind this preset inserts. */
@@ -21,6 +21,12 @@ export interface SmartArtPreset {
21
21
  /** Default node texts to seed the new SmartArt with. */
22
22
  defaultItems: string[];
23
23
  }
24
+ /** Dictionary key of a preset's name. */
25
+ export declare const smartArtPresetLabelKey: (layout: string) => string;
26
+ /** Dictionary key of an insert category's name. */
27
+ export declare const smartArtCategoryLabelKey: (category: string) => string;
28
+ /** Dictionary key of an insert category's description. */
29
+ export declare const smartArtCategoryDescriptionKey: (category: string) => string;
24
30
  export declare const PRESETS: SmartArtPreset[];
25
31
  /** Sidebar tabs, in display order. */
26
32
  export declare const CATEGORIES: Array<{
@@ -1 +1 @@
1
- {"version":3,"file":"smart-art-presets.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/smart-art-presets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,iEAAiE;AACjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAC;AAE3F,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC9B,4CAA4C;IAC5C,MAAM,EAAE,cAAc,CAAC;IACvB,wCAAwC;IACxC,K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,sCAAsC;AACtC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAKpF,CAAC"}
@@ -0,0 +1,59 @@
1
+ import type { PptxSmartArtData, PptxSmartArtNodeStyle } from 'ooxml-core/pptx';
2
+ type Translate = (key: string, params?: Record<string, string | number>) => string;
3
+ /** One outline line, in the shape `office-ui-smartart-text-pane` takes. */
4
+ export interface SmartArtTextPaneLine {
5
+ id: string;
6
+ text: string;
7
+ level: number;
8
+ /** The item number of a top-level line, a bullet for a deeper one. */
9
+ marker: string;
10
+ label: string;
11
+ style?: PptxSmartArtNodeStyle;
12
+ canMoveUp: boolean;
13
+ canMoveDown: boolean;
14
+ canRemove: boolean;
15
+ /** Sub-items are added under top-level lines only. */
16
+ canAddChild: boolean;
17
+ }
18
+ /** What the pane shows for a diagram. */
19
+ export interface SmartArtTextPaneView {
20
+ lines: SmartArtTextPaneLine[];
21
+ /** The layout holds no more top-level shapes. */
22
+ appendDisabled: boolean;
23
+ /** The layout's shape-count hint, the extra connections note and the keyboard hint. */
24
+ notes: string[];
25
+ }
26
+ /** A request from the pane, as the pptx alias reads it from the element's events. */
27
+ export type SmartArtTextPaneRequest = {
28
+ kind: 'text';
29
+ id: string;
30
+ text: string;
31
+ } | {
32
+ kind: 'add' | 'remove' | 'promote' | 'demote' | 'addChild';
33
+ id: string;
34
+ } | {
35
+ kind: 'move';
36
+ id: string;
37
+ direction: 1 | -1;
38
+ } | {
39
+ kind: 'append';
40
+ } | {
41
+ kind: 'style';
42
+ id: string;
43
+ style: Partial<PptxSmartArtNodeStyle>;
44
+ };
45
+ /** The edited data and the line to focus after it lands. */
46
+ export interface SmartArtTextPaneEdit {
47
+ data: PptxSmartArtData;
48
+ focusNodeId?: string;
49
+ }
50
+ /** The outline, notes and append state for `data`. */
51
+ export declare function smartArtTextPaneView(data: PptxSmartArtData, t: Translate): SmartArtTextPaneView;
52
+ /**
53
+ * The edit a pane request makes, or `undefined` when it changes nothing or the layout refuses it
54
+ * (removing a shape the layout needs, appending past its maximum). `subItemText` labels a new
55
+ * sub-item.
56
+ */
57
+ export declare function applySmartArtTextPaneRequest(data: PptxSmartArtData, request: SmartArtTextPaneRequest, subItemText: string): SmartArtTextPaneEdit | undefined;
58
+ export {};
59
+ //# sourceMappingURL=smartart-text-pane-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartart-text-pane-model.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/smartart-text-pane-model.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAqB/E,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,oBAAoB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,iDAAiD;IACjD,cAAc,EAAE,OAAO,CAAC;IACxB,uFAAuF;IACvF,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,qFAAqF;AACrF,MAAM,MAAM,uBAAuB,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC1E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;CAAE,CAAC;AAExE,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAQD,sDAAsD;AACtD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,oBAAoB,CA2C/F;AA2BD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC3C,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,uBAAuB,EAChC,WAAW,EAAE,MAAM,GACjB,oBAAoB,GAAG,SAAS,CAgDlC"}
@@ -0,0 +1,32 @@
1
+ import type { SnapBox, SnapGuide } from './snap-guides.js';
2
+ /**
3
+ * The span-guide move snap: the box snaps to the closest edge or centre of the
4
+ * other boxes (drawing span guides that cover both), then to the grid, then to
5
+ * the user's ruler guides. The Angular canvas draws this model; it moved here
6
+ * from `SlideCanvasComponent` with its move gesture, which now runs on the
7
+ * shared `createGestureController` and plugs this in as its `snapMove`.
8
+ */
9
+ /** A user ruler guide: `axis: 'x'` is a vertical line at x = `pos`. */
10
+ export interface SpanSnapRulerGuide {
11
+ axis: 'x' | 'y';
12
+ pos: number;
13
+ }
14
+ export interface SpanSnapMoveOptions {
15
+ /** The other boxes on the stage (the moving one left out). */
16
+ others: readonly SnapBox[];
17
+ /** Snap distance in slide px (the screen distance divided by the zoom). */
18
+ threshold: number;
19
+ snapToShape: boolean;
20
+ /** Grid spacing applied after the shape snap, or null for no grid snap. */
21
+ gridSize: number | null;
22
+ /** Ruler guides applied last, or null when guide snapping is off. */
23
+ rulerGuides: readonly SpanSnapRulerGuide[] | null;
24
+ }
25
+ /** Where a moving box lands and the span guides to draw for it. */
26
+ export interface SpanSnapMoveResult {
27
+ x: number;
28
+ y: number;
29
+ guides: SnapGuide[];
30
+ }
31
+ export declare function snapMoveToSpanGuides(box: SnapBox, options: SpanSnapMoveOptions): SpanSnapMoveResult;
32
+ //# sourceMappingURL=span-snap-move.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"span-snap-move.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/span-snap-move.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAGxD;;;;;;GAMG;AAEH,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,GAAG,GAAG,GAAG,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IACnC,8DAA8D;IAC9D,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IAC3B,2EAA2E;IAC3E,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,qEAAqE;IACrE,WAAW,EAAE,SAAS,kBAAkB,EAAE,GAAG,IAAI,CAAC;CAClD;AAED,mEAAmE;AACnE,MAAM,WAAW,kBAAkB;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,SAAS,EAAE,CAAC;CACpB;AAyBD,wBAAgB,oBAAoB,CACnC,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,mBAAmB,GAC1B,kBAAkB,CAmBpB"}
@@ -15,6 +15,23 @@ export interface ThemeColorGridView {
15
15
  * or else the colour, selects.
16
16
  */
17
17
  export declare function themeColorGridView(columns: readonly ThemeColorSwatchColumn[], selectedRef: PptxThemeColorRef | undefined, selectedHex: string | undefined): ThemeColorGridView;
18
+ type Translate = (key: string, params?: Record<string, string | number>) => string;
19
+ /** What a recent-colours row's `pptx-ui-color-grid` shows: Recent Colors and nothing else. */
20
+ export interface RecentColorsGridView {
21
+ palette: [];
22
+ standardColors: [];
23
+ recentColors: readonly string[];
24
+ label: string;
25
+ recentHeading: string;
26
+ recentLabel: (hex: string) => string;
27
+ }
28
+ /**
29
+ * The "Recent Colors" row under an inspector colour picker, as a `pptx-ui-color-grid` with only
30
+ * that section: every binding sets these fields (and `data-testid="pptx-color-recent"`) and
31
+ * hides the row while the list is empty, so the row looks, reads and is named the same
32
+ * everywhere. A pick arrives as `office-color-pick` with source `recent`.
33
+ */
34
+ export declare function recentColorsGridView(colors: readonly string[], t: Translate): RecentColorsGridView;
18
35
  /** The hex and theme reference to store for a pick from that grid; undefined for any other pick. */
19
36
  export declare function themeColorGridCommit(columns: readonly ThemeColorSwatchColumn[], pick: OfficeColorPick): ThemeColorPickerCommit | undefined;
20
37
  //# sourceMappingURL=theme-color-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-color-grid.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/theme-color-grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAGN,KAAK,sBAAsB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;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,SAAS,sBAAsB,EAAE,EAC1C,WAAW,EAAE,iBAAiB,GAAG,SAAS,EAC1C,WAAW,EAAE,MAAM,GAAG,SAAS,GAC7B,kBAAkB,CAqBpB;AAED,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEnF,8FAA8F;AAC9F,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,EAAE,CAAC;IACZ,cAAc,EAAE,EAAE,CAAC;IACnB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,CAAC,EAAE,SAAS,GACV,oBAAoB,CAUtB;AAED,oGAAoG;AACpG,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,SAAS,sBAAsB,EAAE,EAC1C,IAAI,EAAE,eAAe,GACnB,sBAAsB,GAAG,SAAS,CAYpC"}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @fileoverview The payloads of the viewer events every binding reports the same way.
3
3
  *
4
- * Each binding keeps its own autosave engine and so its own internal status shape (a bare string
5
- * in Vue and Svelte, a `{ state }` object in React and Angular, a string without `disabled` in
6
- * Vanilla). The host-facing `autosaveStatus` event must not leak that difference, so every
7
- * binding maps what it holds through {@link autosaveStatusKind} before reporting it.
4
+ * Every binding runs the shared autosave engine (`PptxAutosaveStatus`, which also has a
5
+ * `disabled` state); some render only its `state` string. The host-facing `autosaveStatus` event
6
+ * must not leak that difference, so every binding maps what it holds through
7
+ * {@link autosaveStatusKind} before reporting it.
8
8
  *
9
9
  * @module render/viewer-event-payloads
10
10
  */