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,115 @@
1
+ import type { Equality } from './equality.js';
2
+ import type { HandleSpec } from './handle.js';
3
+ /** How `bindElement` forwards one prop to the element. */
4
+ export type ForwardPolicy =
5
+ /** Written on every update: settings the user cannot change inside the element. */
6
+ 'always'
7
+ /** Written the first time and then only when the prop changed since it was last written. */
8
+ | 'changed'
9
+ /**
10
+ * Like `changed`, but an undefined prop is skipped and not remembered, so the element keeps
11
+ * what the user chose (File > Open renames the document; a later re-render must not undo it).
12
+ */
13
+ | 'defined'
14
+ /** Not forwarded by the kit: the product's mount function owns it (ordering, supersession). */
15
+ | 'manual';
16
+ export interface PropRule<E = never, V = unknown> {
17
+ readonly forward: ForwardPolicy;
18
+ /** Compared and written in place of an undefined prop. */
19
+ readonly fallback?: V;
20
+ /** Default `Object.is`. */
21
+ readonly same?: Equality<V>;
22
+ /** Counts as already written at mount, so an equal first value is not written. */
23
+ readonly initial?: V;
24
+ /** Writes the value; default `element[key] = value`. */
25
+ readonly apply?: (element: E, value: V) => void;
26
+ }
27
+ /**
28
+ * Two-way binding of an event to a prop (`v-model:readOnly`, Angular `[(readOnly)]`): the adapter
29
+ * emits `value(...args)` back to the prop when it differs from the prop's current value.
30
+ */
31
+ export interface EventModel {
32
+ readonly prop: string;
33
+ readonly value: (...args: never[]) => unknown;
34
+ }
35
+ export interface EventRule<O extends string = string> {
36
+ /** The handler option the event calls (`onDocumentChange`). */
37
+ readonly option: O;
38
+ /** The handler's arguments; default the event's `detail` alone. */
39
+ readonly args?: (event: CustomEvent) => readonly unknown[];
40
+ readonly model?: EventModel;
41
+ }
42
+ /** Argument shapes shared by the products' events. */
43
+ export declare const eventArgs: {
44
+ /** The unwrapped detail (the default). */
45
+ readonly detail: (event: CustomEvent) => readonly unknown[];
46
+ /** The event itself, for cancelable events (`file-command`: call `preventDefault()`). */
47
+ readonly event: (event: CustomEvent) => readonly unknown[];
48
+ /** `(detail, event)`: the detail, plus the event to cancel (`teams-open-file`). */
49
+ readonly detailAndEvent: (event: CustomEvent) => readonly unknown[];
50
+ /** `(readOnly, detail)` for `readonly-change`. */
51
+ readonly readOnly: (event: CustomEvent<{
52
+ readOnly: boolean;
53
+ }>) => readonly unknown[];
54
+ /** One field of the detail (`dirty-change` carries `{ dirty }`). */
55
+ readonly field: (name: string) => (event: CustomEvent) => readonly unknown[];
56
+ };
57
+ /**
58
+ * `readonly-change` with `v-model:readOnly`: the model mirrors the host's own switch
59
+ * (`detail.hostReadOnly`), never a collaboration role lock.
60
+ */
61
+ export declare const readOnlyChange: EventRule<'onReadOnlyChange'>;
62
+ /**
63
+ * The contract of one product binding. `props` lists every forwarded prop in forwarding order,
64
+ * `events` maps each element event to its handler option, `handle` lists the handle members.
65
+ */
66
+ export interface BindingContract<E = never, P extends object = Record<string, unknown>, H = unknown, N extends string = string, O extends string = string> {
67
+ readonly props: {
68
+ readonly [K in keyof P]-?: PropRule<E, P[K]>;
69
+ };
70
+ readonly events: {
71
+ readonly [K in N]: EventRule<O>;
72
+ };
73
+ readonly handle: HandleSpec<H>;
74
+ }
75
+ /** What every product's mount function returns: options in, teardown out. */
76
+ export interface MountedBinding<O> {
77
+ update(options: O): void;
78
+ destroy(): void;
79
+ }
80
+ /** Any contract, for the functions that only read its names. */
81
+ export interface AnyContract {
82
+ readonly props: object;
83
+ readonly events: Readonly<Record<string, EventRule>>;
84
+ readonly handle: object;
85
+ }
86
+ export declare function propKeys(contract: Pick<AnyContract, 'props'>): string[];
87
+ export declare function eventNames(contract: Pick<AnyContract, 'events'>): string[];
88
+ /** The handler option names (`onDocumentChange`), in event order. */
89
+ export declare function optionNames(contract: Pick<AnyContract, 'events'>): string[];
90
+ /** Svelte callback props are the lower-case option: `onDocumentChange` is `ondocumentchange`. */
91
+ export declare const svelteHandlerName: (option: string) => string;
92
+ /** Angular outputs drop the `on`: `onDocumentChange` is `documentChange`. */
93
+ export declare const angularOutputName: (option: string) => string;
94
+ /**
95
+ * Copies the contract's props out of a framework's props or component instance. `undefined`
96
+ * values are copied too (meaning "not provided") unless `definedOnly` drops them.
97
+ */
98
+ export declare function pickProps<P extends object>(contract: Pick<AnyContract, 'props'>, source: object, definedOnly?: boolean): P;
99
+ /** Maps handlers keyed by event name onto the contract's handler options. */
100
+ export declare function eventOptions<O extends object>(contract: Pick<AnyContract, 'events'>, handlers: object): O;
101
+ /**
102
+ * Reads the handler options out of a framework's props, where each one is named `nameOf(option)`
103
+ * (identity for React and Solid, `svelteHandlerName` for Svelte). `extra` adds options that are
104
+ * not element events (`onReady`).
105
+ */
106
+ export declare function handlerOptions<O extends object>(contract: Pick<AnyContract, 'events'>, source: object, nameOf?: (option: string) => string, extra?: readonly string[]): O;
107
+ /** Props plus handler options: what a product's mount function takes. */
108
+ export declare function contractOptions<O extends object>(contract: Pick<AnyContract, 'props' | 'events'>, source: object, nameOf?: (option: string) => string, extra?: readonly string[]): O;
109
+ /**
110
+ * Handler options that emit an Angular component's outputs: each option emits the output named
111
+ * `angularOutputName(option)` with the handler's first argument. A modelled event emits only its
112
+ * model (`readOnlyChange` with the host's switch) and only when the input differs. `overrides`
113
+ * replaces individual options (an output that carries two values).
114
+ */
115
+ export declare function angularOutputs<O extends object>(contract: Pick<AnyContract, 'events'>, component: object, extra?: readonly string[], overrides?: Partial<O>): O;
@@ -0,0 +1,9 @@
1
+ /** Compares two values the way a prop forwarder does. */
2
+ export type Equality<T = unknown> = (a: T, b: T) => boolean;
3
+ /** Same items in the same order; `undefined` and `null` count as an empty list. */
4
+ export declare function sameList(a: readonly unknown[] | undefined | null, b: readonly unknown[] | undefined | null): boolean;
5
+ /**
6
+ * Shallow, by value: an inline object (`themeColors`) passed on every render is not a change.
7
+ * `undefined` and `null` count as an empty object.
8
+ */
9
+ export declare function shallowEqual(a: object | undefined | null, b: object | undefined | null): boolean;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * How one handle member behaves while nothing is mounted:
3
+ * - `get`: a property; reading it throws (or gives `undefined` with `lenientGetters`).
4
+ * - `call`: a method; calling it throws.
5
+ * - `async`: a method returning a promise; calling it rejects.
6
+ * - `optional-call`: a method that does nothing (`markClean` before mount is harmless).
7
+ * - `{ fallback }`: a property that reads `fallback` (`dirty` is `false`).
8
+ */
9
+ export type HandleMember = 'get' | 'call' | 'async' | 'optional-call' | {
10
+ readonly fallback: unknown;
11
+ };
12
+ /** One entry per member of the handle `H`; a missing member is a compile error. */
13
+ export type HandleSpec<H> = {
14
+ readonly [K in keyof H]-?: HandleMember;
15
+ };
16
+ export interface DeferredHandleOptions {
17
+ /** The error thrown before mount and after unmount. Default `Editor is not mounted`. */
18
+ readonly message?: string;
19
+ /** `get` members read `undefined` instead of throwing (Vue templates read refs before mount). */
20
+ readonly lenientGetters?: boolean;
21
+ }
22
+ /** The member names of a handle spec, in declaration order. */
23
+ export declare function handleKeys<H>(spec: HandleSpec<H>): (keyof H & string)[];
24
+ /**
25
+ * A handle for adapters whose binding may not be mounted yet: every member reads the current
26
+ * binding, so one handle object serves the whole lifetime of the component.
27
+ */
28
+ export declare function deferredHandle<H>(spec: HandleSpec<H>, current: () => H | null | undefined, options?: DeferredHandleOptions): H;
29
+ /**
30
+ * Defines the handle members on a class prototype (an Angular component), reading the binding of
31
+ * each instance through `current`. Declare the members on the class with an interface merge.
32
+ */
33
+ export declare function installHandle<H, T>(prototype: T, spec: HandleSpec<H>, current: (self: T) => H | null | undefined, options?: DeferredHandleOptions): void;
@@ -0,0 +1,6 @@
1
+ export { angularOutputName, angularOutputs, contractOptions, eventArgs, eventNames, eventOptions, handlerOptions, optionNames, pickProps, propKeys, readOnlyChange, svelteHandlerName, type AnyContract, type BindingContract, type EventModel, type EventRule, type ForwardPolicy, type MountedBinding, type PropRule, } from './contract.js';
2
+ export { bindElement, listenEvents, syncClassName, type BindElementOptions, type BoundElement, type Unlisten, } from './bind-element.js';
3
+ export { sameList, shallowEqual, type Equality } from './equality.js';
4
+ export { deferredHandle, handleKeys, installHandle, type DeferredHandleOptions, type HandleMember, type HandleSpec, } from './handle.js';
5
+ export { createSrcLoader, nameFromUrl, type SrcLoader } from './src-loader.js';
6
+ export { createPropTracker, type PropTracker } from './tracker.js';
@@ -0,0 +1,21 @@
1
+ import { type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from 'react';
2
+ import type { MountedBinding } from './contract.js';
3
+ import { type DeferredHandleOptions, type HandleSpec } from './handle.js';
4
+ export interface ReactBindingConfig<Props, O, B, H> {
5
+ displayName: string;
6
+ /** The members the component's `ref` exposes. */
7
+ handle: HandleSpec<H>;
8
+ handleOptions?: DeferredHandleOptions;
9
+ /** Creates the element inside `host`; the binding it returns also serves the handle. */
10
+ mount(host: HTMLDivElement, options: O): B;
11
+ /** The mount options for a render's props; default the props themselves. */
12
+ options?: (props: Props) => O;
13
+ /** Attributes of the host `<div>`; default `{ className: props.className }`. */
14
+ host?: (props: Props) => Record<string, unknown>;
15
+ }
16
+ /**
17
+ * A `forwardRef` component that mounts once, forwards every render's props through
18
+ * `binding.update` (the binding itself skips unchanged values) and exposes a handle that throws a
19
+ * clear error before mount.
20
+ */
21
+ export declare function createReactBinding<Props extends object, H, O = Props, B extends MountedBinding<O> = MountedBinding<O>>(config: ReactBindingConfig<Props, O, B, H>): ForwardRefExoticComponent<PropsWithoutRef<Props> & RefAttributes<H>>;
@@ -0,0 +1,39 @@
1
+ import { deferredHandle } from '../chunk-KJMAVPQB.js';
2
+ import { forwardRef, useRef, useEffect, useImperativeHandle, createElement } from 'react';
3
+
4
+ var defaultHost = (props) => ({
5
+ className: props.className
6
+ });
7
+ function createReactBinding(config) {
8
+ const toOptions = config.options ?? ((props) => props);
9
+ const hostProps = config.host ?? defaultHost;
10
+ const component = forwardRef(function Binding(props, ref) {
11
+ const host = useRef(null);
12
+ const binding = useRef(null);
13
+ useEffect(() => {
14
+ const mounted = config.mount(host.current, toOptions(props));
15
+ binding.current = mounted;
16
+ return () => {
17
+ binding.current = null;
18
+ mounted.destroy();
19
+ };
20
+ }, []);
21
+ useEffect(() => {
22
+ binding.current?.update(toOptions(props));
23
+ }, [props]);
24
+ useImperativeHandle(
25
+ ref,
26
+ () => deferredHandle(
27
+ config.handle,
28
+ () => binding.current,
29
+ config.handleOptions
30
+ ),
31
+ []
32
+ );
33
+ return createElement("div", { ref: host, ...hostProps(props) });
34
+ });
35
+ component.displayName = config.displayName;
36
+ return component;
37
+ }
38
+
39
+ export { createReactBinding };
@@ -0,0 +1,14 @@
1
+ import type { MountedBinding } from './contract.js';
2
+ import { type DeferredHandleOptions, type HandleSpec } from './handle.js';
3
+ export interface SolidBindingConfig<Props, O, B, H> {
4
+ handle: HandleSpec<H>;
5
+ handleOptions?: DeferredHandleOptions;
6
+ mount(host: HTMLDivElement, options: O): B;
7
+ /** The mount options; reading each prop here is what makes the effect track it. */
8
+ options(props: Props): O;
9
+ /** The callback prop that receives the handle once mounted. Default `editorRef`. */
10
+ ref?: string;
11
+ }
12
+ export declare function createSolidBinding<Props extends {
13
+ class?: string | undefined;
14
+ }, H, O, B extends MountedBinding<O> = MountedBinding<O>>(config: SolidBindingConfig<Props, O, B, H>): (props: Props) => HTMLDivElement;
@@ -0,0 +1,27 @@
1
+ import { deferredHandle } from '../chunk-KJMAVPQB.js';
2
+ import { createSignal, onMount, createEffect, onCleanup } from 'solid-js';
3
+
4
+ function createSolidBinding(config) {
5
+ const refName = config.ref ?? "editorRef";
6
+ return function Binding(props) {
7
+ const host = document.createElement("div");
8
+ const [binding, setBinding] = createSignal();
9
+ onMount(() => {
10
+ const mounted = config.mount(host, config.options(props));
11
+ setBinding(() => mounted);
12
+ const ref = props[refName];
13
+ if (typeof ref === "function")
14
+ ref(deferredHandle(config.handle, () => mounted, config.handleOptions));
15
+ });
16
+ createEffect(() => {
17
+ const current = binding();
18
+ if (!current) return;
19
+ host.className = props.class ?? "";
20
+ current.update(config.options(props));
21
+ });
22
+ onCleanup(() => binding()?.destroy());
23
+ return host;
24
+ };
25
+ }
26
+
27
+ export { createSolidBinding };
@@ -0,0 +1,14 @@
1
+ /** The file name in a URL's last path segment; the raw segment when it is not valid %-encoding. */
2
+ export declare function nameFromUrl(url: string): string | undefined;
3
+ export interface SrcLoader {
4
+ /** Fetches `url` and loads it, superseding any fetch still in flight. */
5
+ fetch(url: string, fileName: string | undefined): void;
6
+ /** Drops the fetch in flight (new bytes or a model arrived, `src` was cleared, or destroy). */
7
+ cancel(): void;
8
+ }
9
+ /**
10
+ * Every failure in the chain (fetch throwing, HTTP errors, reading the body, naming) is reported
11
+ * through `report`; a superseded fetch is aborted and neither loads nor reports. Without an explicit
12
+ * file name the URL's last segment names the file.
13
+ */
14
+ export declare function createSrcLoader(load: (bytes: Uint8Array, fileName: string | undefined) => Promise<void>, report: (error: unknown) => void): SrcLoader;
@@ -0,0 +1,14 @@
1
+ import type { Equality } from './equality.js';
2
+ /**
3
+ * Remembers the last value forwarded for each prop. Calling it returns true the first time and then
4
+ * only when the prop itself changed, so a parent re-render never undoes a value the user changed
5
+ * inside the element (Editing / Viewing, File > Open renaming the document, Customize Ribbon).
6
+ */
7
+ export interface PropTracker<K extends string = string> {
8
+ <T>(key: K, value: T, same?: Equality<T>): boolean;
9
+ /** Records `value` as already forwarded, so an equal first value is not written. */
10
+ seed(key: K, value: unknown): void;
11
+ /** The value last forwarded for `key`; `undefined` before the first. */
12
+ sent(key: K): unknown;
13
+ }
14
+ export declare function createPropTracker<K extends string = string>(): PropTracker<K>;
@@ -0,0 +1,35 @@
1
+ import { type ComponentObjectPropsOptions } from 'vue';
2
+ import { type AnyContract, type MountedBinding } from './contract.js';
3
+ import { type DeferredHandleOptions, type HandleSpec } from './handle.js';
4
+ type Emit = (event: string, ...args: unknown[]) => void;
5
+ export interface VueBindingConfig<PO, O, B, H> {
6
+ name: string;
7
+ /** Vue's runtime prop declarations (types, Boolean casting, defaults). */
8
+ props: PO;
9
+ /** Generates the emits and the default mount options. */
10
+ contract: Pick<AnyContract, 'props' | 'events'>;
11
+ /** Options that are not element events, emitted under their own name (`{ ready: 'onReady' }`). */
12
+ callbacks?: Readonly<Record<string, string>>;
13
+ /** Replaces the generated emits. */
14
+ emits?: readonly string[];
15
+ handle: HandleSpec<H>;
16
+ /** Default `{ lenientGetters: true }`: a template may read `element` before mount. */
17
+ handleOptions?: DeferredHandleOptions;
18
+ mount(host: HTMLElement, options: O): B;
19
+ /** Replaces the generated mount options (props plus one emitting handler per event). */
20
+ options?: (props: Record<string, unknown>, emit: Emit) => O;
21
+ }
22
+ /** The emits a contract generates: every event, `update:<prop>` per model, then the callbacks. */
23
+ export declare function vueEmits(contract: Pick<AnyContract, 'events'>, callbacks?: Readonly<Record<string, string>>): string[];
24
+ /** Handler options that re-emit each event (and its model) from a Vue component. */
25
+ export declare function vueEmitters(contract: Pick<AnyContract, 'events'>, props: Record<string, unknown>, emit: Emit, callbacks?: Readonly<Record<string, string>>): Record<string, (...args: unknown[]) => void>;
26
+ export declare function defineVueBinding<PO extends ComponentObjectPropsOptions, H, O = Record<string, unknown>, B extends MountedBinding<O> = MountedBinding<O>>(config: VueBindingConfig<PO, O, B, H>): import("vue").DefineComponent<ComponentObjectPropsOptions<{
27
+ [x: string]: unknown;
28
+ }> extends PO ? {} : import("vue").ExtractPropTypes<PO>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<ComponentObjectPropsOptions<{
31
+ [x: string]: unknown;
32
+ }> extends PO ? {} : import("vue").ExtractPropTypes<PO>> & Readonly<{
33
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
34
+ }>, import("vue").ExtractDefaultPropTypes<PO>, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ export {};
@@ -0,0 +1,65 @@
1
+ import { pickProps } from '../chunk-NDUD5JJB.js';
2
+ import { deferredHandle } from '../chunk-KJMAVPQB.js';
3
+ import { defineComponent, ref, shallowRef, onMounted, watch, onBeforeUnmount, h } from 'vue';
4
+
5
+ function vueEmits(contract, callbacks = {}) {
6
+ const models = Object.values(contract.events).flatMap(
7
+ (rule) => rule.model ? [`update:${rule.model.prop}`] : []
8
+ );
9
+ return [...Object.keys(contract.events), ...models, ...Object.keys(callbacks)];
10
+ }
11
+ function vueEmitters(contract, props, emit, callbacks = {}) {
12
+ const options = {};
13
+ for (const [name, rule] of Object.entries(contract.events)) {
14
+ const model = rule.model;
15
+ options[rule.option] = (...args) => {
16
+ emit(name, ...args);
17
+ if (!model) return;
18
+ const value = model.value(...args);
19
+ if (value !== props[model.prop]) emit(`update:${model.prop}`, value);
20
+ };
21
+ }
22
+ for (const [name, option] of Object.entries(callbacks))
23
+ options[option] = (...args) => emit(name, ...args);
24
+ return options;
25
+ }
26
+ function defineVueBinding(config) {
27
+ const callbacks = config.callbacks ?? {};
28
+ const keys = Object.keys(config.props);
29
+ return defineComponent({
30
+ name: config.name,
31
+ props: config.props,
32
+ emits: [...config.emits ?? vueEmits(config.contract, callbacks)],
33
+ setup(props, { emit, expose }) {
34
+ const values = props;
35
+ const host = ref();
36
+ const binding = shallowRef();
37
+ const options = () => config.options ? config.options(values, emit) : {
38
+ ...pickProps(config.contract, values),
39
+ ...vueEmitters(config.contract, values, emit, callbacks)
40
+ };
41
+ onMounted(() => {
42
+ binding.value = config.mount(host.value, options());
43
+ });
44
+ watch(
45
+ () => keys.map((key) => values[key]),
46
+ () => binding.value?.update(options())
47
+ );
48
+ onBeforeUnmount(() => {
49
+ const mounted = binding.value;
50
+ binding.value = void 0;
51
+ mounted?.destroy();
52
+ });
53
+ expose(
54
+ deferredHandle(
55
+ config.handle,
56
+ () => binding.value,
57
+ config.handleOptions ?? { lenientGetters: true }
58
+ )
59
+ );
60
+ return () => h("div", { ref: host });
61
+ }
62
+ });
63
+ }
64
+
65
+ export { defineVueBinding, vueEmits, vueEmitters };
@@ -0,0 +1,3 @@
1
+ export { bindElement, createPropTracker, createSrcLoader, listenEvents, nameFromUrl, sameList, shallowEqual, syncClassName } from './chunk-CDAXY5KC.js';
2
+ export { angularOutputName, angularOutputs, contractOptions, eventArgs, eventNames, eventOptions, handlerOptions, optionNames, pickProps, propKeys, readOnlyChange, svelteHandlerName } from './chunk-NDUD5JJB.js';
3
+ export { deferredHandle, handleKeys, installHandle } from './chunk-KJMAVPQB.js';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Keyboard behaviour of the chart data sheet, as a pure decision so it is tested without a DOM.
3
+ * It follows the spreadsheet PowerPoint opens for Edit Data:
4
+ *
5
+ * - a focused cell is `ready`: arrows move to the neighbouring cell, typing replaces the text
6
+ * and enters `enter` mode, F2 enters `edit` mode with the caret at the end;
7
+ * - in `enter` mode arrows commit and move, in `edit` mode they move the caret;
8
+ * - Enter commits and moves down (Shift+Enter up), Tab right (Shift+Tab left); Tab past the last
9
+ * column and Shift+Tab before the first leave the sheet, as they would leave any field;
10
+ * - Escape restores the cell's text and returns to `ready`.
11
+ *
12
+ * Cells use the grid coordinates of `ooxml-core/chart` `data-sheet`: row 0 is the series names,
13
+ * column 0 the category labels, and the corner cell (0, 0) does not exist.
14
+ */
15
+ export type ChartDataSheetMode = 'ready' | 'enter' | 'edit';
16
+ export interface ChartDataSheetKey {
17
+ key: string;
18
+ shiftKey?: boolean;
19
+ ctrlKey?: boolean;
20
+ metaKey?: boolean;
21
+ altKey?: boolean;
22
+ }
23
+ export type ChartDataSheetKeyAction = {
24
+ type: 'move';
25
+ row: number;
26
+ col: number;
27
+ } | {
28
+ type: 'edit';
29
+ } | {
30
+ type: 'revert';
31
+ } | {
32
+ type: 'typing';
33
+ } | {
34
+ type: 'native';
35
+ };
36
+ /** What a key does in a cell at (`row`, `col`) of a sheet `rows` x `cols` (corner included). */
37
+ export declare function chartDataSheetKeyAction(key: ChartDataSheetKey, mode: ChartDataSheetMode, row: number, col: number, rows: number, cols: number): ChartDataSheetKeyAction;
38
+ //# sourceMappingURL=data-sheet-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sheet-keys.d.ts","sourceRoot":"","sources":["../../src/chart/data-sheet-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,MAAM,uBAAuB,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAwBtB,gGAAgG;AAChG,wBAAgB,uBAAuB,CACtC,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,kBAAkB,EACxB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACV,uBAAuB,CAyBzB"}
@@ -0,0 +1,36 @@
1
+ import type { ChartDataSheet, ChartDataSheetEdit } from 'ooxml-core/chart';
2
+ /**
3
+ * Translated text of the sheet. `{number}`, `{name}`, `{series}` and `{categories}` in a template
4
+ * (or the i18next form, `{{number}}`) are replaced with the cell's position, series name and the
5
+ * counts.
6
+ */
7
+ export interface OfficeChartDataSheetLabels {
8
+ heading: string;
9
+ addCategory: string;
10
+ addSeries: string;
11
+ addCategoryShort: string;
12
+ addSeriesShort: string;
13
+ removeCategory: string;
14
+ removeSeries: string;
15
+ categories: string;
16
+ seriesName: string;
17
+ categoryLabel: string;
18
+ valueCell: string;
19
+ summary: string;
20
+ invalidNumber: string;
21
+ }
22
+ export declare const CHART_DATA_SHEET_ENGLISH: OfficeChartDataSheetLabels;
23
+ /** The cell the host marks (a chart part picked on the canvas): a value, or a whole series. */
24
+ export interface OfficeChartDataSheetHighlight {
25
+ series: number;
26
+ point?: number;
27
+ }
28
+ /** Detail of `office-chart-data-change`: the edits in order, and the sheet after them. */
29
+ export interface OfficeChartDataChange {
30
+ edits: ChartDataSheetEdit[];
31
+ data: ChartDataSheet;
32
+ }
33
+ export type OfficeChartDataChangeEvent = CustomEvent<OfficeChartDataChange>;
34
+ /** Fills a label template's `{key}` (or `{{key}}`) placeholders. */
35
+ export declare function fill(template: string, values: Record<string, string | number>): string;
36
+ //# sourceMappingURL=data-sheet-labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sheet-labels.d.ts","sourceRoot":"","sources":["../../src/chart/data-sheet-labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,wBAAwB,EAAE,0BActC,CAAC;AAEF,+FAA+F;AAC/F,MAAM,WAAW,6BAA6B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,0FAA0F;AAC1F,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,IAAI,EAAE,cAAc,CAAC;CACrB;AACD,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAE5E,oEAAoE;AACpE,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAItF"}
@@ -0,0 +1,68 @@
1
+ import { type ChartDataSheet, type ChartDataSheetEdit } from 'ooxml-core/chart';
2
+ import { OfficeElement } from '../base.js';
3
+ import { type OfficeChartDataSheetHighlight, type OfficeChartDataSheetLabels } from './data-sheet-labels.js';
4
+ export type { OfficeChartDataChange, OfficeChartDataChangeEvent, OfficeChartDataSheetHighlight, OfficeChartDataSheetLabels, } from './data-sheet-labels.js';
5
+ /**
6
+ * `<office-ui-chart-data-sheet>`: the categories x series table of a chart's "Edit Data" view,
7
+ * shared by every product. Series names run across the header row, category labels down the
8
+ * first column, values in between; the toolbar adds a category or a series and each header has a
9
+ * remove button while more than one is left. Arrow keys, Enter, Tab, F2 and Escape behave as in
10
+ * the spreadsheet PowerPoint opens; pasting a tab-separated block (from Excel, Word or this sheet)
11
+ * fills cells from the focused one, adding the series and categories it needs. Values are read and
12
+ * shown in `locale`'s number convention (the browser's when unset, as Office follows the system's); a value that is not a number is refused and the cell
13
+ * restored. The host sets `data` (`{ categories, series: [{ name, values }] }`), `labels`
14
+ * (translated), `highlight` and `disabled`, and maps `office-chart-data-change`
15
+ * `{ edits, data }` onto its own chart model; the sheet shows the edited data at once and takes
16
+ * whatever `data` the host sets next.
17
+ */
18
+ export declare class OfficeUiChartDataSheet extends OfficeElement {
19
+ static styles: import("lit").CSSResult[];
20
+ static properties: {
21
+ data: {
22
+ attribute: boolean;
23
+ };
24
+ highlight: {
25
+ attribute: boolean;
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ reflect: boolean;
30
+ };
31
+ locale: {
32
+ type: StringConstructor;
33
+ };
34
+ };
35
+ data: ChartDataSheet;
36
+ highlight: OfficeChartDataSheetHighlight | null;
37
+ disabled: boolean;
38
+ locale: string;
39
+ private text;
40
+ private mode;
41
+ private invalid;
42
+ private highlightKey;
43
+ constructor();
44
+ get labels(): OfficeChartDataSheetLabels;
45
+ set labels(value: Partial<OfficeChartDataSheetLabels>);
46
+ /** The number convention: `locale`, else the browser's, as Office follows the system locale. */
47
+ private get language();
48
+ private parse;
49
+ /** The text a cell shows for the current data. */
50
+ private cellText;
51
+ /**
52
+ * Applies `edits` to the shown data and emits them. Product subclasses override this to map
53
+ * the edits onto their own model as well.
54
+ */
55
+ protected emitEdits(edits: ChartDataSheetEdit[]): void;
56
+ private position;
57
+ private commit;
58
+ private focusCell;
59
+ private onKeyDown;
60
+ private onFocus;
61
+ private onPaste;
62
+ protected updated(): void;
63
+ private cell;
64
+ private removeButton;
65
+ protected render(): import("lit").TemplateResult<1>;
66
+ }
67
+ export declare const defineChartDataSheet: import("../registry.js").Definer;
68
+ //# sourceMappingURL=data-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sheet.d.ts","sourceRoot":"","sources":["../../src/chart/data-sheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAGvD,OAAO,EAIN,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EACX,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,GAC1B,MAAM,qBAAqB,CAAC;AAI7B;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACxD,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;QACzB,IAAI;YAAI,SAAS;;QACjB,SAAS;YAAI,SAAS;;QACtB,QAAQ;YAAI,IAAI;YAAW,OAAO;;QAClC,MAAM;YAAI,IAAI;;MACb;IACM,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IAEvB,OAAO,CAAC,IAAI,CAAuC;IACnD,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,YAAY,CAAuB;IAE3C,cAMC;IAED,IAAI,MAAM,IAAI,0BAA0B,CAEvC;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,0BAA0B,CAAC,EAGpD;IAED,gGAAgG;IAChG,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,KAAK,CAAyE;IAEtF,kDAAkD;IAClD,OAAO,CAAC,QAAQ;IAOhB;;;OAGG;IACH,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAKrD;IAED,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,SAAS;IA6BjB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IASf,UAAmB,OAAO,IAAI,IAAI,CAUjC;IAED,OAAO,CAAC,IAAI;IAmBZ,OAAO,CAAC,YAAY;IAWpB,UAAmB,MAAM,oCAqFxB;CACD;AAED,eAAO,MAAM,oBAAoB,+BAGhC,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The Chart Design galleries every product shares: Chart Styles (the curated presets of
3
+ * `ooxml-core/chart` `style-presets`), Change Colors (Colorful Palettes 1-4 and Monochromatic
4
+ * Palettes 1-13, `color-palettes`) and Quick Layout (Layout 1-11, `quick-layouts`). Each builder
5
+ * returns DOM-free section data with English labels and SVG tiles; a product maps it onto its own
6
+ * ribbon gallery (PowerPoint's `RibbonGalleryModule`, Excel's gallery control) and translates the
7
+ * label templates, then applies a pick through its chart edit path (`chart/edit`
8
+ * `applyChartStylePreset`, `applyChartColorPalette`, `applyChartQuickLayout`, or the product's own
9
+ * model mapping of them).
10
+ *
11
+ * @module chart/design-galleries
12
+ */
13
+ import { type ChartColorScheme } from 'ooxml-core/chart';
14
+ /** One gallery tile. `label` is English; `labelTemplate` + `labelParams` translate it. */
15
+ export interface ChartGalleryItem {
16
+ id: string;
17
+ label: string;
18
+ labelTemplate: string;
19
+ labelParams?: Record<string, number>;
20
+ previewSvg: string;
21
+ applied: boolean;
22
+ }
23
+ export interface ChartGallerySection {
24
+ id: string;
25
+ /** English section title, when the gallery has sections. */
26
+ title?: string;
27
+ columns: number;
28
+ tileWidth: number;
29
+ tileHeight: number;
30
+ items: ChartGalleryItem[];
31
+ }
32
+ export declare const CHART_STYLE_TILE: {
33
+ readonly width: 60;
34
+ readonly height: 44;
35
+ };
36
+ export declare const CHART_COLOR_TILE: {
37
+ readonly width: 96;
38
+ readonly height: 14;
39
+ };
40
+ export declare const CHART_LAYOUT_TILE: {
41
+ readonly width: 56;
42
+ readonly height: 44;
43
+ };
44
+ /** Chart Styles: one section of the curated presets; `appliedId` marks the current one. */
45
+ export declare function chartStyleGallerySection(appliedId?: string): ChartGallerySection;
46
+ /** Change Colors: the Colorful and Monochromatic sections resolved under `scheme`. */
47
+ export declare function chartColorGallerySections(scheme: ChartColorScheme, appliedId?: number): ChartGallerySection[];
48
+ /** Quick Layout: Layout 1-11; `appliedN` marks the layout the chart shows. */
49
+ export declare function chartQuickLayoutGallerySection(appliedN?: number): ChartGallerySection;
50
+ /** The layout number of a Quick Layout item id (`layout5` is 5), or `undefined`. */
51
+ export declare function chartQuickLayoutItemNumber(id: string): number | undefined;
52
+ //# sourceMappingURL=design-galleries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-galleries.d.ts","sourceRoot":"","sources":["../../src/chart/design-galleries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAMN,KAAK,gBAAgB,EACrB,MAAM,kBAAkB,CAAC;AAI1B,0FAA0F;AAC1F,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB;aAAK,KAAK,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAC;AACnE,eAAO,MAAM,gBAAgB;aAAK,KAAK,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAC;AACnE,eAAO,MAAM,iBAAiB;aAAK,KAAK,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAC;AAEpE,2FAA2F;AAC3F,wBAAgB,wBAAwB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAchF;AAwBD,sFAAsF;AACtF,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,gBAAgB,EACxB,SAAS,CAAC,EAAE,MAAM,GAChB,mBAAmB,EAAE,CAWvB;AAED,8EAA8E;AAC9E,wBAAgB,8BAA8B,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAerF;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIzE"}
@@ -0,0 +1,7 @@
1
+ import type { ChartFormatSection } from './format-pane-types.js';
2
+ import type { ChartFormatThreeDView } from './format-pane-view.js';
3
+ /** `ST_BevelPresetType`, in PowerPoint's gallery order. */
4
+ export declare const CHART_BEVEL_TYPES: readonly ['circle', 'relaxedInset', 'cross', 'coolSlant', 'angle', 'softRound', 'convex', 'slope', 'divot', 'riblet', 'hardEdge', 'artDeco'];
5
+ /** The 3-D Format section for an element with `threeD` as its current 3-D settings. */
6
+ export declare function threeDSection(threeD: ChartFormatThreeDView): ChartFormatSection;
7
+ //# sourceMappingURL=format-pane-3d.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-3d.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-3d.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAuC,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,KAAK,EAAwB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,YAC7B,QAAQ,EACR,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,EACX,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,SAAS,CACA,CAAC;AAwEX,uFAAuF;AACvF,wBAAgB,aAAa,CAAC,MAAM,EAAE,qBAAqB,GAAG,kBAAkB,CA+C/E"}