ooxml-ui 1.25.0 → 1.26.1

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 +82 -19
  2. package/custom-elements.json +321 -1
  3. package/dist/bindings/bind-element.d.ts +29 -0
  4. package/dist/bindings/contract.d.ts +115 -0
  5. package/dist/bindings/equality.d.ts +9 -0
  6. package/dist/bindings/handle.d.ts +33 -0
  7. package/dist/bindings/index.d.ts +6 -0
  8. package/dist/bindings/react.d.ts +21 -0
  9. package/dist/bindings/react.js +39 -0
  10. package/dist/bindings/solid.d.ts +14 -0
  11. package/dist/bindings/solid.js +27 -0
  12. package/dist/bindings/src-loader.d.ts +14 -0
  13. package/dist/bindings/tracker.d.ts +14 -0
  14. package/dist/bindings/vue.d.ts +35 -0
  15. package/dist/bindings/vue.js +65 -0
  16. package/dist/bindings.js +3 -0
  17. package/dist/building-block-styles.d.ts +0 -1
  18. package/dist/chart/data-sheet-keys.d.ts +38 -0
  19. package/dist/chart/data-sheet-keys.d.ts.map +1 -0
  20. package/dist/chart/data-sheet-labels.d.ts +36 -0
  21. package/dist/chart/data-sheet-labels.d.ts.map +1 -0
  22. package/dist/chart/data-sheet.d.ts +68 -0
  23. package/dist/chart/data-sheet.d.ts.map +1 -0
  24. package/dist/chart/design-galleries.d.ts +52 -0
  25. package/dist/chart/design-galleries.d.ts.map +1 -0
  26. package/dist/chart/format-pane-3d.d.ts +6 -0
  27. package/dist/chart/format-pane-3d.d.ts.map +1 -0
  28. package/dist/chart/format-pane-api.d.ts +17 -0
  29. package/dist/chart/format-pane-api.d.ts.map +1 -0
  30. package/dist/chart/format-pane-axis.d.ts +5 -0
  31. package/dist/chart/format-pane-axis.d.ts.map +1 -0
  32. package/dist/chart/format-pane-common.d.ts +22 -0
  33. package/dist/chart/format-pane-common.d.ts.map +1 -0
  34. package/dist/{pptx/render/chart-format/chart-format-pane-effects.d.ts → chart/format-pane-effects.d.ts} +5 -11
  35. package/dist/chart/format-pane-effects.d.ts.map +1 -0
  36. package/dist/chart/format-pane-fields.d.ts +29 -0
  37. package/dist/chart/format-pane-fields.d.ts.map +1 -0
  38. package/dist/chart/format-pane-fill-kinds.d.ts +16 -0
  39. package/dist/chart/format-pane-fill-kinds.d.ts.map +1 -0
  40. package/dist/chart/format-pane-fill-line.d.ts +12 -0
  41. package/dist/chart/format-pane-fill-line.d.ts.map +1 -0
  42. package/dist/chart/format-pane-fixture.test-util.d.ts +3 -0
  43. package/dist/chart/format-pane-intent.d.ts +24 -0
  44. package/dist/chart/format-pane-intent.d.ts.map +1 -0
  45. package/dist/chart/format-pane-locales/de.d.ts +3 -0
  46. package/dist/chart/format-pane-locales/de.d.ts.map +1 -0
  47. package/dist/chart/format-pane-locales/en.d.ts +3 -0
  48. package/dist/chart/format-pane-locales/en.d.ts.map +1 -0
  49. package/dist/chart/format-pane-locales/es.d.ts +3 -0
  50. package/dist/chart/format-pane-locales/es.d.ts.map +1 -0
  51. package/dist/chart/format-pane-locales/fr.d.ts +2 -0
  52. package/dist/chart/format-pane-locales/fr.d.ts.map +1 -0
  53. package/dist/chart/format-pane-locales/index.d.ts +6 -0
  54. package/dist/chart/format-pane-locales/index.d.ts.map +1 -0
  55. package/dist/chart/format-pane-locales/zh-CN.d.ts +3 -0
  56. package/dist/chart/format-pane-locales/zh-CN.d.ts.map +1 -0
  57. package/dist/chart/format-pane-model.d.ts +23 -0
  58. package/dist/chart/format-pane-model.d.ts.map +1 -0
  59. package/dist/chart/format-pane-options.d.ts +14 -0
  60. package/dist/chart/format-pane-options.d.ts.map +1 -0
  61. package/dist/chart/format-pane-space.d.ts +21 -0
  62. package/dist/chart/format-pane-space.d.ts.map +1 -0
  63. package/dist/chart/format-pane-targets.d.ts +25 -0
  64. package/dist/chart/format-pane-targets.d.ts.map +1 -0
  65. package/dist/chart/format-pane-text.d.ts +7 -0
  66. package/dist/chart/format-pane-text.d.ts.map +1 -0
  67. package/dist/chart/format-pane-translate.d.ts +9 -0
  68. package/dist/chart/format-pane-translate.d.ts.map +1 -0
  69. package/dist/chart/format-pane-types.d.ts +118 -0
  70. package/dist/chart/format-pane-types.d.ts.map +1 -0
  71. package/dist/chart/format-pane-view.d.ts +212 -0
  72. package/dist/chart/format-pane-view.d.ts.map +1 -0
  73. package/dist/chart/format-pane.d.ts +128 -0
  74. package/dist/chart/format-pane.d.ts.map +1 -0
  75. package/dist/chart/gallery-tiles.d.ts +23 -0
  76. package/dist/chart/gallery-tiles.d.ts.map +1 -0
  77. package/dist/chart-format-locales.js +1 -0
  78. package/dist/chrome/backstage.d.ts +1 -2
  79. package/dist/chrome/find-bar.d.ts +1 -2
  80. package/dist/chunk-CDAXY5KC.js +118 -0
  81. package/dist/chunk-FN7IF6M6.js +25 -0
  82. package/dist/{chunk-X5XR45BK.js → chunk-HGLCXNCT.js} +50 -24
  83. package/dist/chunk-KJMAVPQB.js +53 -0
  84. package/dist/{chunk-S736N64L.js → chunk-KSOHDEUI.js} +1 -1
  85. package/dist/chunk-NDUD5JJB.js +79 -0
  86. package/dist/chunk-P4FRKIPE.js +953 -0
  87. package/dist/chunk-VM6ZTKB3.js +1134 -0
  88. package/dist/{chunk-SC44SOIS.js → chunk-WDOWQKKC.js} +2601 -275
  89. package/dist/{chunk-5ZFOSFCK.js → chunk-WH3EGA3S.js} +9 -3
  90. package/dist/controls.d.ts +7 -2
  91. package/dist/controls.d.ts.map +1 -1
  92. package/dist/controls.js +3 -1
  93. package/dist/dialog/chart-picker.d.ts +1 -2
  94. package/dist/dialog/dialog.d.ts +6 -0
  95. package/dist/dialog/dialog.d.ts.map +1 -1
  96. package/dist/dialog/options-categories.d.ts +0 -1
  97. package/dist/docx/chart-commands.d.ts +22 -0
  98. package/dist/docx/chart-design-ribbon.d.ts +4 -0
  99. package/dist/docx/chart-dialogs.d.ts +11 -0
  100. package/dist/docx/chart-format-pane.d.ts +22 -0
  101. package/dist/docx/context-menu-items.d.ts +2 -0
  102. package/dist/docx/editor-core.d.ts +3 -0
  103. package/dist/docx/format-dialogs.d.ts +4 -2
  104. package/dist/docx/image-media.d.ts +9 -1
  105. package/dist/docx/insert-controller.d.ts +5 -0
  106. package/dist/docx/locales/charts.d.ts +51 -0
  107. package/dist/docx/locales/en.d.ts +113 -0
  108. package/dist/docx/locales/smartart.d.ts +77 -0
  109. package/dist/docx/localization-strings.d.ts +113 -0
  110. package/dist/docx/resize-handle.d.ts +23 -0
  111. package/dist/docx/ribbon-action.d.ts +15 -0
  112. package/dist/docx/ribbon-icons.d.ts +13 -0
  113. package/dist/docx/smartart-commands.d.ts +26 -0
  114. package/dist/docx/smartart-controller.d.ts +35 -0
  115. package/dist/docx/smartart-design-ribbon.d.ts +7 -0
  116. package/dist/docx/smartart-dialog.d.ts +12 -0
  117. package/dist/docx/smartart-node-view.d.ts +6 -3
  118. package/dist/docx.js +1664 -542
  119. package/dist/form/color-grid.d.ts +8 -1
  120. package/dist/form/color-grid.d.ts.map +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +10 -5
  123. package/dist/menu/command-search.d.ts +1 -2
  124. package/dist/menu/menu-separator.d.ts +1 -2
  125. package/dist/notices/toasts.d.ts +1 -2
  126. package/dist/pptx/ai/bridge-factory.d.ts +77 -0
  127. package/dist/pptx/ai/bridge-factory.d.ts.map +1 -0
  128. package/dist/pptx/ai/index.cjs +443 -164
  129. package/dist/pptx/ai/index.d.ts +4 -0
  130. package/dist/pptx/ai/index.d.ts.map +1 -1
  131. package/dist/pptx/ai/index.mjs +437 -165
  132. package/dist/pptx/ai/panel-controller.d.ts +104 -0
  133. package/dist/pptx/ai/panel-controller.d.ts.map +1 -0
  134. package/dist/pptx/{chart-3d-view-scene-RYL7F65H.cjs → chart-3d-view-scene-N7UQOYFI.cjs} +38 -38
  135. package/dist/pptx/{chart-3d-view-scene-CDIMM5T3.mjs → chart-3d-view-scene-ZUGA3DKM.mjs} +2 -2
  136. package/dist/pptx/{chunk-PIIYTRLE.mjs → chunk-34LEUH5R.mjs} +1 -1
  137. package/dist/pptx/{chunk-G3UVZ5FO.cjs → chunk-6KLPQQYP.cjs} +1 -0
  138. package/dist/pptx/{chunk-SCURBCNQ.mjs → chunk-AMW2AR7J.mjs} +1 -1
  139. package/dist/pptx/chunk-BC23E73O.cjs +776 -0
  140. package/dist/pptx/{chunk-4TFSELNQ.cjs → chunk-BGABXFCV.cjs} +7673 -4140
  141. package/dist/pptx/chunk-CZUEATSN.mjs +751 -0
  142. package/dist/pptx/{chunk-J642EKDV.cjs → chunk-FM4C4MBJ.cjs} +1 -1
  143. package/dist/pptx/{chunk-LCB46TH2.cjs → chunk-H5IPNKX6.cjs} +12 -12
  144. package/dist/pptx/{chunk-ZNXKAINY.mjs → chunk-LB3A3GF6.mjs} +1150 -222
  145. package/dist/pptx/{chunk-QTLP3MX7.mjs → chunk-NHRL2D4I.mjs} +7470 -3995
  146. package/dist/pptx/{chunk-A2X5BP7J.cjs → chunk-OOQMIQT3.cjs} +1151 -221
  147. package/dist/pptx/chunk-WM5SW737.mjs +27 -0
  148. package/dist/pptx/{chunk-73OUATE4.mjs → chunk-WQA3KZRB.mjs} +1 -1
  149. package/dist/pptx/chunk-Y6DO6SVT.cjs +29 -0
  150. package/dist/pptx/dom/index.cjs +503 -1123
  151. package/dist/pptx/dom/index.d.ts +1 -0
  152. package/dist/pptx/dom/index.d.ts.map +1 -1
  153. package/dist/pptx/dom/index.mjs +12 -704
  154. package/dist/pptx/dom/smartart-insert-preview.d.ts +15 -0
  155. package/dist/pptx/dom/smartart-insert-preview.d.ts.map +1 -0
  156. package/dist/pptx/export/html2canvas-clone.cjs +4 -4
  157. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  158. package/dist/pptx/i18n/index.cjs +6 -6
  159. package/dist/pptx/i18n/index.mjs +1 -1
  160. package/dist/pptx/i18n/translations-en-chart-format.d.ts.map +1 -1
  161. package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
  162. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  163. package/dist/pptx/index.cjs +3490 -3249
  164. package/dist/pptx/index.mjs +6 -5
  165. package/dist/pptx/render/autosave-inline-draft.d.ts +27 -0
  166. package/dist/pptx/render/autosave-inline-draft.d.ts.map +1 -0
  167. package/dist/pptx/render/autosave-policy.d.ts +6 -7
  168. package/dist/pptx/render/autosave-policy.d.ts.map +1 -1
  169. package/dist/pptx/render/autosave-tick.d.ts +6 -0
  170. package/dist/pptx/render/autosave-tick.d.ts.map +1 -1
  171. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  172. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  173. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts +10 -2
  174. package/dist/pptx/render/chart-format/chart-format-pane-edit.d.ts.map +1 -1
  175. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts +4 -2
  176. package/dist/pptx/render/chart-format/chart-format-pane-model.d.ts.map +1 -1
  177. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts +4 -91
  178. package/dist/pptx/render/chart-format/chart-format-pane-types.d.ts.map +1 -1
  179. package/dist/pptx/render/chart-format/chart-format-source.d.ts +14 -0
  180. package/dist/pptx/render/chart-format/chart-format-source.d.ts.map +1 -0
  181. package/dist/pptx/render/chart-format/chart-format-targets.d.ts +16 -19
  182. package/dist/pptx/render/chart-format/chart-format-targets.d.ts.map +1 -1
  183. package/dist/pptx/render/chart-format/index.d.ts +2 -1
  184. package/dist/pptx/render/chart-format/index.d.ts.map +1 -1
  185. package/dist/pptx/render/chart-overlays.cjs +7 -7
  186. package/dist/pptx/render/chart-overlays.mjs +1 -1
  187. package/dist/pptx/render/chart-quick-action-styles.d.ts +4 -1
  188. package/dist/pptx/render/chart-quick-action-styles.d.ts.map +1 -1
  189. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  190. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  191. package/dist/pptx/render/chart-view-model.cjs +44 -44
  192. package/dist/pptx/render/chart-view-model.mjs +1 -1
  193. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  194. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  195. package/dist/pptx/render/collaboration-provider.d.ts +80 -0
  196. package/dist/pptx/render/collaboration-provider.d.ts.map +1 -0
  197. package/dist/pptx/render/collaboration-yjs-session.d.ts +48 -0
  198. package/dist/pptx/render/collaboration-yjs-session.d.ts.map +1 -0
  199. package/dist/pptx/render/controller/autosave-controller.d.ts +133 -0
  200. package/dist/pptx/render/controller/autosave-controller.d.ts.map +1 -0
  201. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts +68 -0
  202. package/dist/pptx/render/controller/autosave-recovery-controller.d.ts.map +1 -0
  203. package/dist/pptx/render/controller/collaboration-session-controller.d.ts +89 -0
  204. package/dist/pptx/render/controller/collaboration-session-controller.d.ts.map +1 -0
  205. package/dist/pptx/render/controller/controller.d.ts +44 -0
  206. package/dist/pptx/render/controller/controller.d.ts.map +1 -0
  207. package/dist/pptx/render/controller/history-controller.d.ts +54 -0
  208. package/dist/pptx/render/controller/history-controller.d.ts.map +1 -0
  209. package/dist/pptx/render/controller/index.d.ts +17 -0
  210. package/dist/pptx/render/controller/index.d.ts.map +1 -0
  211. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +2 -0
  212. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  213. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +2 -0
  214. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  215. package/dist/pptx/render/editor-gesture-frames.d.ts +59 -0
  216. package/dist/pptx/render/editor-gesture-frames.d.ts.map +1 -0
  217. package/dist/pptx/render/editor-gestures.d.ts +39 -38
  218. package/dist/pptx/render/editor-gestures.d.ts.map +1 -1
  219. package/dist/pptx/render/editor-history.d.ts +1 -1
  220. package/dist/pptx/render/editor-history.d.ts.map +1 -1
  221. package/dist/pptx/render/editor-key-dispatch.d.ts +68 -0
  222. package/dist/pptx/render/editor-key-dispatch.d.ts.map +1 -0
  223. package/dist/pptx/render/effects-helpers.d.ts +8 -1
  224. package/dist/pptx/render/effects-helpers.d.ts.map +1 -1
  225. package/dist/pptx/render/effects-shadow-helpers.d.ts +7 -0
  226. package/dist/pptx/render/effects-shadow-helpers.d.ts.map +1 -1
  227. package/dist/pptx/render/group-press-target.d.ts +37 -0
  228. package/dist/pptx/render/group-press-target.d.ts.map +1 -0
  229. package/dist/pptx/render/index.d.ts +12 -0
  230. package/dist/pptx/render/index.d.ts.map +1 -1
  231. package/dist/pptx/render/insert-chart-preview.d.ts +15 -0
  232. package/dist/pptx/render/insert-chart-preview.d.ts.map +1 -0
  233. package/dist/pptx/render/insert-chart.d.ts +21 -1
  234. package/dist/pptx/render/insert-chart.d.ts.map +1 -1
  235. package/dist/pptx/render/inspector/element-geometry-fields.d.ts +28 -0
  236. package/dist/pptx/render/inspector/element-geometry-fields.d.ts.map +1 -0
  237. package/dist/pptx/render/inspector/index.d.ts +18 -0
  238. package/dist/pptx/render/inspector/index.d.ts.map +1 -0
  239. package/dist/pptx/render/inspector/inspector-field-model.d.ts +125 -0
  240. package/dist/pptx/render/inspector/inspector-field-model.d.ts.map +1 -0
  241. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts +8 -0
  242. package/dist/pptx/render/inspector/shape-effect-fields-more.d.ts.map +1 -0
  243. package/dist/pptx/render/inspector/shape-effect-fields.d.ts +27 -0
  244. package/dist/pptx/render/inspector/shape-effect-fields.d.ts.map +1 -0
  245. package/dist/pptx/render/inspector/shape-effect-sections.d.ts +7 -0
  246. package/dist/pptx/render/inspector/shape-effect-sections.d.ts.map +1 -0
  247. package/dist/pptx/render/inspector/shape-line-fields.d.ts +20 -0
  248. package/dist/pptx/render/inspector/shape-line-fields.d.ts.map +1 -0
  249. package/dist/pptx/render/inspector/text-box-fields.d.ts +24 -0
  250. package/dist/pptx/render/inspector/text-box-fields.d.ts.map +1 -0
  251. package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
  252. package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
  253. package/dist/pptx/render/presentation-show-step.d.ts +105 -0
  254. package/dist/pptx/render/presentation-show-step.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-galleries/themes-gallery.d.ts.map +1 -1
  276. package/dist/pptx/render/ribbon-insert-state.d.ts +6 -0
  277. package/dist/pptx/render/ribbon-insert-state.d.ts.map +1 -1
  278. package/dist/pptx/render/smart-art-presets.d.ts +12 -6
  279. package/dist/pptx/render/smart-art-presets.d.ts.map +1 -1
  280. package/dist/pptx/render/smartart-text-pane-model.d.ts +59 -0
  281. package/dist/pptx/render/smartart-text-pane-model.d.ts.map +1 -0
  282. package/dist/pptx/render/span-snap-move.d.ts +32 -0
  283. package/dist/pptx/render/span-snap-move.d.ts.map +1 -0
  284. package/dist/pptx/render/theme-color-grid.d.ts +17 -0
  285. package/dist/pptx/render/theme-color-grid.d.ts.map +1 -1
  286. package/dist/pptx/render/viewer-event-payloads.d.ts +4 -4
  287. package/dist/pptx/smartart-insert-preview-TJEN4WYF.mjs +39 -0
  288. package/dist/pptx/smartart-insert-preview-TYCMBIUH.cjs +48 -0
  289. package/dist/pptx/web-components/chart-data-sheet.d.ts +47 -0
  290. package/dist/pptx/web-components/chart-data-sheet.d.ts.map +1 -0
  291. package/dist/pptx/web-components/chart-format-pane.d.ts +7 -5
  292. package/dist/pptx/web-components/chart-format-pane.d.ts.map +1 -1
  293. package/dist/pptx/web-components/host-styles.d.ts.map +1 -1
  294. package/dist/pptx/web-components/index.d.ts +6 -0
  295. package/dist/pptx/web-components/index.d.ts.map +1 -1
  296. package/dist/pptx/web-components/insert-chart-dialog.d.ts +25 -0
  297. package/dist/pptx/web-components/insert-chart-dialog.d.ts.map +1 -0
  298. package/dist/pptx/web-components/insert-dialog-frame.d.ts +25 -0
  299. package/dist/pptx/web-components/insert-dialog-frame.d.ts.map +1 -0
  300. package/dist/pptx/web-components/insert-smartart-dialog.d.ts +26 -0
  301. package/dist/pptx/web-components/insert-smartart-dialog.d.ts.map +1 -0
  302. package/dist/pptx/web-components/mobile-insert.d.ts.map +1 -1
  303. package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
  304. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  305. package/dist/pptx/web-components/ribbon-insert-view.d.ts.map +1 -1
  306. package/dist/pptx/web-components/smartart-text-pane.d.ts +38 -0
  307. package/dist/pptx/web-components/smartart-text-pane.d.ts.map +1 -0
  308. package/dist/ribbon/keytip-run.d.ts +0 -1
  309. package/dist/ribbon/ribbon-stack.d.ts +1 -2
  310. package/dist/smartart/galleries.d.ts +17 -0
  311. package/dist/smartart/smartart-picker.d.ts +97 -0
  312. package/dist/smartart/smartart-picker.d.ts.map +1 -0
  313. package/dist/smartart/smartart-text-pane-tools.d.ts +51 -0
  314. package/dist/smartart/smartart-text-pane-tools.d.ts.map +1 -0
  315. package/dist/smartart/smartart-text-pane.d.ts +121 -0
  316. package/dist/smartart/smartart-text-pane.d.ts.map +1 -0
  317. package/dist/smartart/text-pane-controller.d.ts +51 -0
  318. package/dist/smartart/tiles.d.ts +17 -0
  319. package/dist/smartart/tiles.d.ts.map +1 -0
  320. package/dist/smartart.d.ts +5 -0
  321. package/dist/smartart.js +2 -1
  322. package/dist/teams/app/bind.d.ts +30 -0
  323. package/dist/teams/app/index.d.ts +1 -1
  324. package/dist/teams.js +7 -2
  325. package/dist/theme.d.ts +0 -1
  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 @@
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"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The chart Format pane's neutral model, for products that build their own
3
+ * source or apply its edits: descriptor types, the source and view contracts,
4
+ * the model builder, the `ChartSpace` source and the field-to-intent mapping.
5
+ *
6
+ * @module chart/format-pane-api
7
+ */
8
+ export type * from './format-pane-types.js';
9
+ export type * from './format-pane-view.js';
10
+ export { translateChartFormatText, hexForInput, type ChartFormatTranslate, } from './format-pane-common.js';
11
+ export { chartFormatPaneTitle, chartFormatTargetLabel, chartFormatTargetOptions, type ChartFormatDescribe, } from './format-pane-targets.js';
12
+ export { buildChartFormatModel, chartFormatSourceTabs, resolveChartFormatSourceTarget, } from './format-pane-model.js';
13
+ export { chartFormatFieldIntent, defaultPaneGradient, drawingColorFromHex, drawingGradientFrom, } from './format-pane-intent.js';
14
+ export { chartSpaceFormatSource, type ChartSpaceFormatSourceOptions } from './format-pane-space.js';
15
+ export { chartFormatLocale, chartFormatTranslator } from './format-pane-translate.js';
16
+ export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings, type ChartFormatLocale, } from './format-pane-locales/index.js';
17
+ //# sourceMappingURL=format-pane-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-api.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-api.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,oBAAoB,CAAC;AACxC,OAAO,EACN,wBAAwB,EACxB,WAAW,EACX,KAAK,oBAAoB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,mBAAmB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,KAAK,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EACN,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,iBAAiB,GACtB,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ChartFormatSection } from './format-pane-types.js';
2
+ import type { ChartFormatAxisView } from './format-pane-view.js';
3
+ /** Axis Options, Tick Marks, Labels and Number sections for `axis`. */
4
+ export declare function axisOptions(axis: ChartFormatAxisView): ChartFormatSection[];
5
+ //# sourceMappingURL=format-pane-axis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-axis.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-axis.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAyB9D,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,mBAAmB,GAAG,kBAAkB,EAAE,CAsI3E"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Caption and colour helpers every chart Format pane section shares. Captions
3
+ * carry `chartFormat.*` keys with English fallbacks; a product's translator
4
+ * maps them onto its own dictionary (PowerPoint prefixes `pptx.`, Excel looks
5
+ * the English text up).
6
+ *
7
+ * @module chart/format-pane-common
8
+ */
9
+ import type { ChartFormatChoice, ChartFormatText } from './format-pane-types.js';
10
+ export declare const t: (key: string, fallback: string) => ChartFormatText;
11
+ export declare const choice: (value: string, key: string, fallback: string, extra?: Partial<ChartFormatChoice>) => ChartFormatChoice;
12
+ /** Percent 0..100 for display. */
13
+ export declare const pct: (value: number | undefined) => number;
14
+ /** `#RRGGBB` for an `<input type=color>`; unknown colours fall back to black. */
15
+ export declare function hexForInput(color: string | undefined, fallback?: string): string;
16
+ /**
17
+ * A translator: the caption's key, its parameters and the English fallback. It returns the key
18
+ * itself (or an empty string) when it has no translation, so the fallback is used.
19
+ */
20
+ export type ChartFormatTranslate = (key: string, params?: Readonly<Record<string, string | number>>, fallback?: string) => string;
21
+ /** Resolves a caption with `tr`, filling `{{name}}` parameters in either result. */
22
+ export declare function translateChartFormatText(value: ChartFormatText, tr: ChartFormatTranslate): string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-common.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE9E,eAAO,MAAM,CAAC,QAAS,MAAM,YAAY,MAAM,KAAG,eAGhD,CAAC;AAEH,eAAO,MAAM,MAAM,UACX,MAAM,OACR,MAAM,YACD,MAAM,UACR,OAAO,CAAC,iBAAiB,CAAC,KAChC,iBAAmE,CAAC;AAEvE,kCAAkC;AAClC,eAAO,MAAM,GAAG,UAAW,MAAM,GAAG,SAAS,KAAG,MAAgC,CAAC;AAEjF,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,SAAY,GAAG,MAAM,CAKnF;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAClC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAClD,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;AAKZ,oFAAoF;AACpF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,oBAAoB,GAAG,MAAM,CAUjG"}
@@ -1,11 +1,5 @@
1
- /**
2
- * The Effects tab of a chart Format pane: Shadow, Glow, Soft Edges and, for
3
- * elements that have one, the 3-D Format section.
4
- *
5
- * @module render/chart-format/chart-format-pane-effects
6
- */
7
- import type { ChartElementFormatView } from 'ooxml-core/pptx';
8
- import type { ChartFormatSection } from './chart-format-pane-types.js';
1
+ import type { ChartFormatSection } from './format-pane-types.js';
2
+ import type { ChartFormatEffectsView, ChartFormatElementView } from './format-pane-view.js';
9
3
  /** PowerPoint's "Outer: Offset Bottom Right" preset, what ticking Shadow applies. */
10
4
  export declare const DEFAULT_CHART_SHADOW: {
11
5
  readonly color: '#000000';
@@ -20,12 +14,12 @@ export declare const DEFAULT_CHART_GLOW: {
20
14
  readonly transparency: 60;
21
15
  readonly radius: 5;
22
16
  };
23
- type Effects = ChartElementFormatView['effects'];
17
+ type Effects = ChartFormatEffectsView;
24
18
  /** The Shadow section; field ids start with `${prefix}shadow.` (`text.` for Text Effects). */
25
19
  export declare function shadowSection(prefix: string, shadow: Effects['shadow']): ChartFormatSection;
26
20
  /** The Glow section; field ids start with `${prefix}glow.`. */
27
21
  export declare function glowSection(prefix: string, glow: Effects['glow']): ChartFormatSection;
28
22
  /** The Effects tab's sections. */
29
- export declare function effectsSections(view: ChartElementFormatView): ChartFormatSection[];
23
+ export declare function effectsSections(view: ChartFormatElementView): ChartFormatSection[];
30
24
  export {};
31
- //# sourceMappingURL=chart-format-pane-effects.d.ts.map
25
+ //# sourceMappingURL=format-pane-effects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-effects.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-effects.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEzF,qFAAqF;AACrF,eAAO,MAAM,oBAAoB;aAChC,KAAK,EAAE,SAAS;aAChB,YAAY,EAAE,EAAE;aAChB,IAAI,EAAE,CAAC;aACP,QAAQ,EAAE,CAAC;aACX,KAAK,EAAE,EAAE;CACA,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,kBAAkB;aAAK,KAAK,EAAE,SAAS;aAAE,YAAY,EAAE,EAAE;aAAE,MAAM,EAAE,CAAC;CAAW,CAAC;AAqB7F,KAAK,OAAO,GAAG,sBAAsB,CAAC;AAEtC,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAmC3F;AAED,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,kBAAkB,CAiCrF;AAED,kCAAkC;AAClC,wBAAgB,eAAe,CAAC,IAAI,EAAE,sBAAsB,GAAG,kBAAkB,EAAE,CAYlF"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Templates for the fields of the chart Format pane, drawn from their
3
+ * descriptors (moved from PowerPoint's imperative
4
+ * `web-components/chart-format-pane-fields.ts`). Choice controls use the tags
5
+ * the element names, so a product subclass keeps its own (`pptx-ui-radio`...).
6
+ * Values of boxes and selects are written by the element after each render
7
+ * (`data-value`), skipping the control being typed in.
8
+ *
9
+ * @module chart/format-pane-fields
10
+ */
11
+ import { type TemplateResult } from 'lit';
12
+ import type { ChartFormatField, ChartFormatFieldValue, ChartFormatText } from './format-pane-types.js';
13
+ export interface ChartFormatControlTags {
14
+ select: string;
15
+ radio: string;
16
+ checkbox: string;
17
+ }
18
+ export interface FieldContext {
19
+ tags: ChartFormatControlTags;
20
+ tr(text: ChartFormatText): string;
21
+ change(id: string, value: ChartFormatFieldValue): void;
22
+ /** Shows `value` in the box of field `id` without committing it. */
23
+ preview(id: string, value: number, text: string): void;
24
+ locked: boolean;
25
+ autoLabel: string;
26
+ }
27
+ /** The template of one field. */
28
+ export declare function fieldTemplate(field: ChartFormatField, ctx: FieldContext): TemplateResult;
29
+ //# sourceMappingURL=format-pane-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-fields.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEpG,MAAM,WAAW,sBAAsB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,sBAAsB,CAAC;IAC7B,EAAE,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACvD,oEAAoE;IACpE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACvD,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB;AA8ID,iCAAiC;AACjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,GAAG,cAAc,CAoBxF"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The detail fields of the gradient, pattern and picture choices of a chart
3
+ * Format pane's Fill, Line and Text Fill sections.
4
+ *
5
+ * @module chart/format-pane-fill-kinds
6
+ */
7
+ import type { ChartGradientFill } from 'ooxml-core/chart';
8
+ import type { ChartFormatChoice, ChartFormatField } from './format-pane-types.js';
9
+ import type { ChartFormatFillView } from './format-pane-view.js';
10
+ /** Type, stops and angle of a gradient; field ids are `${prefix}.gradient*`. */
11
+ export declare function gradientFields(prefix: string, gradient: ChartGradientFill): ChartFormatField[];
12
+ /** Preset (one of `presets`), foreground and background of a pattern fill. */
13
+ export declare function patternFields(pattern: NonNullable<ChartFormatFillView['pattern']>, presets: readonly ChartFormatChoice[]): ChartFormatField[];
14
+ /** Picture source, transparency and tiling of a picture fill. */
15
+ export declare function pictureFields(picture: ChartFormatFillView['picture']): ChartFormatField[];
16
+ //# sourceMappingURL=format-pane-fill-kinds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-fill-kinds.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-fill-kinds.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,EAAE,CAuC9F;AAED,8EAA8E;AAC9E,wBAAgB,aAAa,CAC5B,OAAO,EAAE,WAAW,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,EACpD,OAAO,EAAE,SAAS,iBAAiB,EAAE,GACnC,gBAAgB,EAAE,CAsBpB;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAgCzF"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The Fill & Line tab of a chart Format pane. Choices the element's source
3
+ * cannot write (`support`) are left out rather than offered and refused.
4
+ *
5
+ * @module chart/format-pane-fill-line
6
+ */
7
+ import type { ChartFormatTarget } from 'ooxml-core/chart';
8
+ import type { ChartFormatSection } from './format-pane-types.js';
9
+ import type { ChartFormatElementView, ChartFormatSource } from './format-pane-view.js';
10
+ export declare const ARROWS: Array<[string, string]>;
11
+ /** The Fill & Line tab's sections. */
12
+ export declare function fillLineSections(view: ChartFormatElementView, target: ChartFormatTarget, source?: Pick<ChartFormatSource, 'patternPresets' | 'slots'>): ChartFormatSection[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-fill-line.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-fill-line.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,KAAK,EAAqB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA6BpF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAO1C,CAAC;AA4LF,sCAAsC;AACtC,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,sBAAsB,EAC5B,MAAM,EAAE,iBAAiB,EACzB,MAAM,GAAE,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,OAAO,CAAM,GAC9D,kBAAkB,EAAE,CAItB"}
@@ -0,0 +1,3 @@
1
+ /** A small Office-shaped column chart part for the chart Format pane tests. */
2
+ import { type ChartSpace } from 'ooxml-core/chart';
3
+ export declare function columnSpace(): ChartSpace;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Turns one field change of a chart Format pane into a typed chart edit
3
+ * intent (`ChartEditIntent` of `ooxml-core/chart`), the request every product
4
+ * understands: `applyChartEditIntent` runs it over a `ChartSpace`, other
5
+ * products map it onto their own edit path. Returns `null` for a value that is
6
+ * not usable (an empty or out-of-range number) and for a field no neutral
7
+ * operation covers yet (pattern and picture fills, effects, 3-D, text, the
8
+ * secondary axis): those stay with the product that offers them.
9
+ *
10
+ * @module chart/format-pane-intent
11
+ */
12
+ import type { ChartEditIntent, ChartFormatTarget, ChartGradientFill } from 'ooxml-core/chart';
13
+ import type { DrawingColor, DrawingFill } from 'ooxml-core/drawingml';
14
+ import type { ChartFormatFieldValue } from './format-pane-types.js';
15
+ import type { ChartFormatElementView } from './format-pane-view.js';
16
+ /** `#RRGGBB` as a DrawingML colour, with the transparency (0..100) as `alpha`. */
17
+ export declare function drawingColorFromHex(hex: string, transparency?: number): DrawingColor | null;
18
+ /** A pane gradient (hex stops, percent positions) as a DrawingML gradient fill. */
19
+ export declare function drawingGradientFrom(gradient: ChartGradientFill): DrawingFill | null;
20
+ /** Office's two-stop gradient from `color` towards white, what picking Gradient fill starts with. */
21
+ export declare function defaultPaneGradient(color?: string): ChartGradientFill;
22
+ /** The intent of field `field` set to `value` on `target`, or `null` (see the module notes). */
23
+ export declare function chartFormatFieldIntent(view: ChartFormatElementView, target: ChartFormatTarget, field: string, value: ChartFormatFieldValue): ChartEditIntent | null;
24
+ //# sourceMappingURL=format-pane-intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-intent.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAEX,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAQjE,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,SAAI,GAAG,YAAY,GAAG,IAAI,CAStF;AAED,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,WAAW,GAAG,IAAI,CASnF;AAED,qGAAqG;AACrG,wBAAgB,mBAAmB,CAAC,KAAK,SAAY,GAAG,iBAAiB,CASxE;AA+MD,gGAAgG;AAChG,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,sBAAsB,EAC5B,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,qBAAqB,GAC1B,eAAe,GAAG,IAAI,CAoCxB"}
@@ -0,0 +1,3 @@
1
+ /** German captions of the shared chart Format pane, by `chartFormat.*` key. */
2
+ export declare const chartFormatDe: Readonly<Record<string, string>>;
3
+ //# sourceMappingURL=de.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/de.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8N1D,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** English captions of the shared chart Format pane, by `chartFormat.*` key. */
2
+ export declare const chartFormatEn: Readonly<Record<string, string>>;
3
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/en.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8N1D,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Spanish captions of the shared chart Format pane, by `chartFormat.*` key. */
2
+ export declare const chartFormatEs: Readonly<Record<string, string>>;
3
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/es.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8N1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** French captions of the shared chart Format pane, by `chartFormat.*` key. */
2
+ export declare const chartFormatFr: Readonly<Record<string, string>>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/fr.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8N1D,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const CHART_FORMAT_LOCALES: readonly ['en', 'fr', 'de', 'es', 'zh-CN'];
2
+ export type ChartFormatLocale = (typeof CHART_FORMAT_LOCALES)[number];
3
+ /** `chartFormat.*` key -> caption, per locale. */
4
+ export declare const CHART_FORMAT_STRINGS: Readonly<Record<ChartFormatLocale, Readonly<Record<string, string>>>>;
5
+ /** `strings` with every key prefixed (PowerPoint's dictionary keeps them as `pptx.chartFormat.*`). */
6
+ export declare function prefixChartFormatStrings(strings: Readonly<Record<string, string>>, prefix: string): Record<string, string>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB,YAAI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAU,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAC1C,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAO3D,CAAC;AAEF,sGAAsG;AACtG,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,MAAM,EAAE,MAAM,GACZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB"}
@@ -0,0 +1,3 @@
1
+ /** Simplified Chinese captions of the shared chart Format pane, by `chartFormat.*` key. */
2
+ export declare const chartFormatZhCN: Readonly<Record<string, string>>;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/zh-CN.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8N5D,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Builds the descriptor of a chart Format task pane for one chart element
3
+ * from a {@link ChartFormatSource}. Moved from PowerPoint's
4
+ * `render/chart-format/chart-format-pane-model.ts`, which now passes its own
5
+ * source.
6
+ *
7
+ * @module chart/format-pane-model
8
+ */
9
+ import type { ChartFormatTarget } from 'ooxml-core/chart';
10
+ import type { ChartFormatPaneMode, ChartFormatPaneModel, ChartFormatTab, ChartFormatTabId, ChartFormatTargetOption } from './format-pane-types.js';
11
+ import type { ChartFormatSource } from './format-pane-view.js';
12
+ /** `key` when it names an element of `source`, else its first target (the chart area). */
13
+ export declare function resolveChartFormatSourceTarget(source: ChartFormatSource | undefined, key: string | undefined): ChartFormatTargetOption;
14
+ /** The tabs `target` shows in `mode`, in Office's order. */
15
+ export declare function chartFormatSourceTabs(source: ChartFormatSource, target: ChartFormatTarget, mode?: ChartFormatPaneMode): ChartFormatTab[];
16
+ /**
17
+ * The pane for `targetKey` with `tab` open, in Chart Options or Text Options
18
+ * `mode`. A stale target falls back to the source's first target, Text Options
19
+ * on an element without text to Chart Options, and a tab the target lacks to
20
+ * the mode's first tab. A `flat` source gets every chart section on one page.
21
+ */
22
+ export declare function buildChartFormatModel(source: ChartFormatSource, targetKey: string | undefined, tab?: ChartFormatTabId, mode?: ChartFormatPaneMode): ChartFormatPaneModel;
23
+ //# sourceMappingURL=format-pane-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-model.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-model.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQ1D,OAAO,KAAK,EACX,mBAAmB,EACnB,oBAAoB,EAEpB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAA0B,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEpF,0FAA0F;AAC1F,wBAAgB,8BAA8B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,uBAAuB,CAKzB;AAmBD,4DAA4D;AAC5D,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,iBAAiB,EACzB,IAAI,GAAE,mBAA6B,GACjC,cAAc,EAAE,CAOlB;AAsBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,GAAG,GAAE,gBAA6B,EAClC,IAAI,GAAE,mBAA6B,GACjC,oBAAoB,CAsBtB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The element-specific Options tab of a chart Format pane: Series Options,
3
+ * Axis Options, Legend Options and Label Options.
4
+ *
5
+ * @module chart/format-pane-options
6
+ */
7
+ import type { ChartFormatTarget } from 'ooxml-core/chart';
8
+ import type { ChartFormatSection } from './format-pane-types.js';
9
+ import type { ChartFormatSource } from './format-pane-view.js';
10
+ type OptionsSource = Pick<ChartFormatSource, 'seriesOptions' | 'axisOptions' | 'legendOptions' | 'labelOptions'>;
11
+ /** The Options tab's sections for `target`, or `undefined` when the target has no options. */
12
+ export declare function optionsSections(source: OptionsSource, target: ChartFormatTarget): ChartFormatSection[] | undefined;
13
+ export {};
14
+ //# sourceMappingURL=format-pane-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-options.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,KAAK,EAAoB,kBAAkB,EAAmB,MAAM,qBAAqB,CAAC;AACjG,OAAO,KAAK,EAKX,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AA+M5B,KAAK,aAAa,GAAG,IAAI,CACxB,iBAAiB,EACjB,eAAe,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAClE,CAAC;AAEF,8FAA8F;AAC9F,wBAAgB,eAAe,CAC9B,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,iBAAiB,GACvB,kBAAkB,EAAE,GAAG,SAAS,CAqBlC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * A chart Format pane source over a `ChartSpace` (`ooxml-core/chart`): the
3
+ * neutral view every product can give the pane once its chart model is a
4
+ * `ChartSpace`. It offers what the neutral edit operations write (fill, line,
5
+ * series, axis, legend and label options) and leaves out effects, 3-D, text,
6
+ * pattern and picture fills and the secondary axis, which have no neutral
7
+ * operation yet. Colours resolve through `theme` when given; a theme colour
8
+ * without one shows as unset.
9
+ *
10
+ * @module chart/format-pane-space
11
+ */
12
+ import type { ChartSpace } from 'ooxml-core/chart';
13
+ import type { DrawingColorTheme } from 'ooxml-core/drawingml';
14
+ import type { ChartFormatSource } from './format-pane-view.js';
15
+ export interface ChartSpaceFormatSourceOptions {
16
+ /** Resolves scheme colours (`accent1`, `dk1`...) to hex. */
17
+ theme?: DrawingColorTheme;
18
+ }
19
+ /** The Format pane source of `space`. */
20
+ export declare function chartSpaceFormatSource(space: ChartSpace, options?: ChartSpaceFormatSourceOptions): ChartFormatSource;
21
+ //# sourceMappingURL=format-pane-space.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-space.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-space.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAIX,UAAU,EAEV,MAAM,kBAAkB,CAAC;AAO1B,OAAO,KAAK,EAEX,iBAAiB,EAGjB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,KAAK,EAOX,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,6BAA6B;IAC7C,4DAA4D;IAC5D,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAuGD,yCAAyC;AACzC,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,6BAAkC,GACzC,iBAAiB,CA8FnB"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Captions of the chart elements a Format pane can target, in the words
3
+ * PowerPoint and Excel use in the element picker and the pane heading. Moved
4
+ * from PowerPoint's `render/chart-format/chart-format-targets.ts`; the
5
+ * chart-specific facts (axis orientation, series names) come from the source.
6
+ *
7
+ * @module chart/format-pane-targets
8
+ */
9
+ import type { ChartFormatTarget } from 'ooxml-core/chart';
10
+ import type { ChartFormatTargetOption, ChartFormatText } from './format-pane-types.js';
11
+ import type { ChartFormatAxisInfo } from './format-pane-view.js';
12
+ /** The chart facts captions need. */
13
+ export interface ChartFormatDescribe {
14
+ axis(axisIndex: number): ChartFormatAxisInfo | undefined;
15
+ seriesName(seriesIndex: number): string;
16
+ }
17
+ /** The picker caption of `target`. */
18
+ export declare function chartFormatTargetLabel(target: ChartFormatTarget, describe: ChartFormatDescribe): ChartFormatText;
19
+ /** The pane heading for `target` ("Format Chart Area", "Format Axis", ...). */
20
+ export declare function chartFormatPaneTitle(target: ChartFormatTarget): ChartFormatText;
21
+ /** Picker entries for `targets`, captioned. */
22
+ export declare function chartFormatTargetOptions(targets: readonly ChartFormatTarget[], describe: ChartFormatDescribe): ChartFormatTargetOption[];
23
+ /** The chart area entry, what a stale or missing key falls back to. */
24
+ export declare const CHART_AREA_TARGET: ChartFormatTargetOption;
25
+ //# sourceMappingURL=format-pane-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-targets.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-targets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,qCAAqC;AACrC,MAAM,WAAW,mBAAmB;IACnC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACzD,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;AAmBD,sCAAsC;AACtC,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,mBAAmB,GAC3B,eAAe,CAkCjB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAqB/E;AAED,+CAA+C;AAC/C,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,QAAQ,EAAE,mBAAmB,GAC3B,uBAAuB,EAAE,CAM3B;AAED,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,EAAE,uBAI/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ChartFormatSection, ChartFormatTab } from './format-pane-types.js';
2
+ import type { ChartFormatTextView } from './format-pane-view.js';
3
+ /** The Text Options tabs, in PowerPoint's order. */
4
+ export declare function chartTextTabs(): ChartFormatTab[];
5
+ /** The sections of Text Options tab `tab`. */
6
+ export declare function textOptionsSections(text: ChartFormatTextView, tab: 'textFill' | 'textEffects' | 'textBox'): ChartFormatSection[];
7
+ //# sourceMappingURL=format-pane-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-text.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-text.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAoB,kBAAkB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,oDAAoD;AACpD,wBAAgB,aAAa,IAAI,cAAc,EAAE,CAMhD;AAmID,8CAA8C;AAC9C,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,mBAAmB,EACzB,GAAG,EAAE,UAAU,GAAG,aAAa,GAAG,SAAS,GACzC,kBAAkB,EAAE,CAKtB"}
@@ -0,0 +1,9 @@
1
+ import type { ChartFormatTranslate } from './format-pane-common.js';
2
+ import { type ChartFormatLocale } from './format-pane-locales/index.js';
3
+ /** A supported pane locale for any BCP 47 tag (`fr-CA` is French), English otherwise. */
4
+ export declare const chartFormatLocale: (value: string | null | undefined) => ChartFormatLocale;
5
+ /**
6
+ * Translates `chartFormat.*` captions for `locale`. `override` (a product's translator) wins
7
+ * where it knows the key, that is where it returns neither the key nor an empty string.
8
+ */
9
+ export declare function chartFormatTranslator(locale: string | null | undefined, override?: ChartFormatTranslate): ChartFormatTranslate;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-translate.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-translate.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,6BAA6B,CAAC;AAErC,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,iBAClB,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,QAAQ,CAAC,EAAE,oBAAoB,GAC7B,oBAAoB,CAOtB"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Framework-neutral descriptor of a chart Format task pane: icon tabs, then
3
+ * collapsible sections of fields. `office-ui-chart-format-pane` draws it; the
4
+ * product applies each field change (as a typed chart edit intent where it can).
5
+ * Moved from PowerPoint's `render/chart-format/chart-format-pane-types.ts`.
6
+ *
7
+ * @module chart/format-pane-types
8
+ */
9
+ import type { ChartFormatTarget, ChartFormatTargetKey } from 'ooxml-core/chart';
10
+ /** A translatable caption: key, `{{name}}` parameters and the English fallback. */
11
+ export interface ChartFormatText {
12
+ key: string;
13
+ fallback: string;
14
+ params?: Readonly<Record<string, string | number>>;
15
+ /** Parameters that are themselves captions ("{{axis}} Major Gridlines"). */
16
+ paramTexts?: Readonly<Record<string, ChartFormatText>>;
17
+ }
18
+ /** One entry of the element picker. */
19
+ export interface ChartFormatTargetOption {
20
+ key: ChartFormatTargetKey;
21
+ target: ChartFormatTarget;
22
+ label: ChartFormatText;
23
+ }
24
+ /**
25
+ * The pane's icon tabs. Chart Options: Fill & Line, Effects and the element's
26
+ * Options. Text Options: Text Fill & Outline, Text Effects and Textbox.
27
+ */
28
+ export type ChartFormatTabId = 'fillLine' | 'effects' | 'options' | 'textFill' | 'textEffects' | 'textBox';
29
+ /** Which half of the pane is showing: the element's own format or its text. */
30
+ export type ChartFormatPaneMode = 'chart' | 'text';
31
+ export interface ChartFormatTab {
32
+ id: ChartFormatTabId;
33
+ label: ChartFormatText;
34
+ }
35
+ /** One choice of a radio group or select. */
36
+ export interface ChartFormatChoice {
37
+ value: string;
38
+ label: ChartFormatText;
39
+ disabled?: boolean;
40
+ /** Why the choice is unavailable. */
41
+ hint?: ChartFormatText;
42
+ }
43
+ interface FieldBase {
44
+ /** Stable id, e.g. `fill.color`; what a field change carries. */
45
+ id: string;
46
+ label: ChartFormatText;
47
+ disabled?: boolean;
48
+ hint?: ChartFormatText;
49
+ }
50
+ export type ChartFormatField = (FieldBase & {
51
+ kind: 'radio';
52
+ value: string;
53
+ choices: ChartFormatChoice[];
54
+ }) | (FieldBase & {
55
+ kind: 'select';
56
+ value: string;
57
+ choices: ChartFormatChoice[];
58
+ }) | (FieldBase & {
59
+ kind: 'color';
60
+ value: string;
61
+ }) | (FieldBase & {
62
+ kind: 'number';
63
+ /** `''` is Automatic for a field with `auto`. */
64
+ value: number | '';
65
+ min?: number;
66
+ max?: number;
67
+ step?: number;
68
+ /** Unit suffix shown after the box ("pt", "%", "°"). */
69
+ unit?: string;
70
+ /** Empty means Automatic: the box shows the placeholder and clearing it is allowed. */
71
+ auto?: boolean;
72
+ /** Also draw a slider over `min`..`max` (Excel's spacing and transparency rows). */
73
+ slider?: boolean;
74
+ }) | (FieldBase & {
75
+ kind: 'checkbox';
76
+ value: boolean;
77
+ }) | (FieldBase & {
78
+ kind: 'text';
79
+ value: string;
80
+ }) | (FieldBase & {
81
+ /** A file chooser; the change carries the chosen file as a `data:` URL. */
82
+ kind: 'file';
83
+ /** `accept` of the file input, e.g. `image/*`. */
84
+ accept: string;
85
+ /** Caption of the button that opens the chooser. */
86
+ button: ChartFormatText;
87
+ /** Whether a file is already chosen (the pane shows it as set). */
88
+ value: boolean;
89
+ });
90
+ export interface ChartFormatSection {
91
+ id: string;
92
+ title: ChartFormatText;
93
+ fields: ChartFormatField[];
94
+ /** A note under the fields (an honest "not supported yet"). */
95
+ note?: ChartFormatText;
96
+ /** The host draws this section's body: the pane renders a `<slot>` of this name. */
97
+ slot?: string;
98
+ }
99
+ export interface ChartFormatPaneModel {
100
+ title: ChartFormatText;
101
+ targetKey: ChartFormatTargetKey;
102
+ target: ChartFormatTarget;
103
+ targets: ChartFormatTargetOption[];
104
+ /** Caption of the element picker. */
105
+ picker: ChartFormatText;
106
+ /** Empty when the source shows every section on one page. */
107
+ tabs: ChartFormatTab[];
108
+ activeTab: ChartFormatTabId;
109
+ sections: ChartFormatSection[];
110
+ /** Chart Options or Text Options. */
111
+ mode: ChartFormatPaneMode;
112
+ /** The element has text, so Text Options is available. */
113
+ textOptions: boolean;
114
+ }
115
+ /** The value a field change carries. */
116
+ export type ChartFormatFieldValue = string | number | boolean | '';
117
+ export {};
118
+ //# sourceMappingURL=format-pane-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-pane-types.d.ts","sourceRoot":"","sources":["../../src/chart/format-pane-types.ts"],"names":[],"mappings":"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"}