@sheetxl/studio-mui 0.8.0-beta.7 → 1.0.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 (284) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{B57WM1X24rsvTF_o.mjs → 2dGXbxSvPxpMpoQB.mjs} +2 -2
  3. package/browser/esm/AKfq7wiKunwYv5Co.mjs +87 -0
  4. package/browser/esm/{DyNZEBlugP-x15kP.mjs → B16SyYhTCohin7vO.mjs} +4 -4
  5. package/browser/esm/B4qh8uSPezvUgs_C.mjs +414 -0
  6. package/browser/esm/BGR0Hv_mjOPfYxiD.mjs +975 -0
  7. package/browser/esm/{DR95Rgl8ItgWla8V.mjs → BVbTWo0j5ttMcIWs.mjs} +3 -3
  8. package/browser/esm/BctMjTuii_LaWmHJ.mjs +119 -0
  9. package/browser/esm/{CH7ZfljN7ru0Y9Wg.mjs → Bf-pwjpYBKNwL4f8.mjs} +4 -4
  10. package/browser/esm/Bh7XfTPJIFjaL6fa.mjs +13 -0
  11. package/browser/esm/BjH_mK6445rm6PL1.mjs +94 -0
  12. package/browser/esm/BqJSEK805PP8lILC.mjs +197 -0
  13. package/browser/esm/BrIWEn7tabhEreBm.mjs +973 -0
  14. package/browser/esm/{D88iVsgfDG9k-qf_.mjs → BsFK55lPALVUu31_.mjs} +5 -5
  15. package/browser/esm/{3L04oqyfyjRxhmzg.mjs → C0PinnqWu_JwK9l_.mjs} +33 -31
  16. package/browser/esm/C1KcphZVjVAE638t.mjs +415 -0
  17. package/browser/esm/{C36WT3I3aIR8y7I6.mjs → C3V7EwPHHPx9aEkE.mjs} +47 -48
  18. package/browser/esm/CCAPeyEqlStPrh6B.mjs +294 -0
  19. package/browser/esm/CF2Az5oBVjAigMRt.mjs +68 -0
  20. package/browser/esm/CIqEqDyl8JZRMblX.mjs +225 -0
  21. package/browser/esm/CJERhz_1u40JkHfH.mjs +235 -0
  22. package/browser/esm/CNtF9Fix0G6BEVEl.mjs +424 -0
  23. package/browser/esm/{D7HOLngE_1FYF6y6.mjs → CWP52da2iNOs3Qtz.mjs} +82 -94
  24. package/browser/esm/CWpF_0HjYiRiddX6.mjs +31 -0
  25. package/browser/esm/CbedwfwBLBaagGD-.mjs +360 -0
  26. package/browser/esm/{DNhLiDpvz3lAR190.mjs → Cc9tcBSYzJIv-dZw.mjs} +156 -109
  27. package/browser/esm/CcPLziOAdWTbG7xx.mjs +141 -0
  28. package/browser/esm/CdRnGw_9tvkn9d9o.mjs +335 -0
  29. package/browser/esm/{BWAIbfQZ6h5xVLdB.mjs → CgLDSZ8XvBqAB-Y2.mjs} +20 -18
  30. package/browser/esm/CgZLR7ijzsUoawf8.mjs +1281 -0
  31. package/browser/esm/Cn6OsV-MbO0rIM-o.mjs +442 -0
  32. package/browser/esm/{0Rpk1T56LoSnDrmq.mjs → CnDnNU6GGzM05K8w.mjs} +4 -4
  33. package/browser/esm/CnVHQ6i6a8VCMsn1.mjs +106 -0
  34. package/browser/esm/D06He-Tw4moPdM5f.mjs +103 -0
  35. package/browser/esm/D9lQwTAJ9RO60ovS.mjs +72 -0
  36. package/browser/esm/{D3BwGfI_IEjay0dA.mjs → D9xw1YuRJUjPMaqA.mjs} +2 -2
  37. package/browser/esm/DBr6lCvWLLwnzSGy.mjs +386 -0
  38. package/browser/esm/DEdHwT-2JZO9HyZN.mjs +14 -0
  39. package/browser/esm/DH4SdW-02-I8082_.mjs +14 -0
  40. package/browser/esm/DHbnrUh5rdi62fgO.mjs +516 -0
  41. package/browser/esm/DJRKcOT0Xv-1r0OP.mjs +161 -0
  42. package/browser/esm/DPycoTH_4RNdK2hu.mjs +252 -0
  43. package/browser/esm/{CpTqhDZotYaKGbLl.mjs → DXQTN_6-MvPivCrz.mjs} +8 -6
  44. package/browser/esm/DaNVYYZLCql8_n0i.mjs +831 -0
  45. package/browser/esm/Dakiv-oEU8ty2ILI.mjs +77 -0
  46. package/browser/esm/DfCd-MxLjE3gZ5jl.mjs +392 -0
  47. package/browser/esm/DhZqt49Ue-lveZv3.mjs +2692 -0
  48. package/browser/esm/DkxgFV6jJb6pO6lM.mjs +490 -0
  49. package/browser/esm/{B_PhUn6yySwXt2wo.mjs → QKDgV7kur90Bzexo.mjs} +14 -13
  50. package/browser/esm/R8q92QTpUT-sB4Nq.mjs +8547 -0
  51. package/browser/esm/RaV_j7qhH97TUb6P.mjs +1550 -0
  52. package/browser/esm/S-MJsifSUY334In9.mjs +8 -0
  53. package/browser/esm/UW74C3TpyGhFEOFO.mjs +267 -0
  54. package/browser/esm/W-jkQJTDojDSK93k.mjs +242 -0
  55. package/browser/esm/czz-Du13p5saoAex.mjs +318 -0
  56. package/browser/esm/{DErAKw-lIK3RY8m-.mjs → ilgUW6eI60262DJU.mjs} +2 -2
  57. package/browser/esm/index.mjs +1910 -289
  58. package/browser/esm/kbx_7Y2kVGMGIWtW.mjs +633 -0
  59. package/browser/esm/vCWRBUPIH8HXlYjO.mjs +94 -0
  60. package/browser/esm/w0DasqEtSJvoQVk2.mjs +517 -0
  61. package/browser/esm/w5dY32V2IxkbDBsT.mjs +225 -0
  62. package/licenses/dependencies.txt +113 -366
  63. package/node/esm/7GlVS1uyKRUAAjw9.mjs +1831 -0
  64. package/node/esm/B0mjDApnDOWo9UGr.mjs +412 -0
  65. package/node/esm/B19kx8jtLWU7WYCa.mjs +142 -0
  66. package/node/esm/BAFf7hg6qgFyQDW8.mjs +73 -0
  67. package/node/esm/BDdBcx7cNTM1hIXu.mjs +972 -0
  68. package/node/esm/BGBolrjPvNncjS1h.mjs +94 -0
  69. package/node/esm/BI3dFg_vx1Vgxgps.mjs +516 -0
  70. package/node/esm/BO19LMEPFqVsK1xu.mjs +267 -0
  71. package/node/esm/BSrtVTtNqcTg8QKK.mjs +68 -0
  72. package/node/esm/BcLccq7CvZiJXCDZ.mjs +319 -0
  73. package/node/esm/BeZ1ZY1UJepW8u1f.mjs +118 -0
  74. package/node/esm/BkLwJxkD4pyrume5.mjs +425 -0
  75. package/node/esm/{YKY4d8_Ckc8nPQqI.mjs → Bl_AT6xOKzBqc3PT.mjs} +10 -10
  76. package/node/esm/{DQtpY5kX99aMHygs.mjs → Bqah1dCUEhmRmY3c.mjs} +2 -2
  77. package/node/esm/Bv5awmbwVUdl4rma.mjs +106 -0
  78. package/node/esm/C3mSFWiCu7iONlk6.mjs +638 -0
  79. package/node/esm/CAJhvJU0gj93fPWl.mjs +141 -0
  80. package/node/esm/CJobW3iRAQ5vHeQr.mjs +14 -0
  81. package/node/esm/{BbXHuDHRHOW_6Sbs.mjs → CSJTM9SCqIDkHlpm.mjs} +21 -21
  82. package/node/esm/CUnv4ewRTvuP0si8.mjs +1276 -0
  83. package/node/esm/CWnezGEPuX9UeJ8E.mjs +385 -0
  84. package/node/esm/{Cul_Vgip2OE8yFBQ.mjs → CarjiReyjevcMdlI.mjs} +190 -141
  85. package/node/esm/CoG2fq6dYCvhC5yu.mjs +224 -0
  86. package/node/esm/Cpegk2BA6FOrOkZ0.mjs +77 -0
  87. package/node/esm/Cq1V2i0dRTWnoU1K.mjs +94 -0
  88. package/node/esm/{Ccrq9TNkiiSHKw-m.mjs → CyPtKWjud-Y-Pvq8.mjs} +2 -2
  89. package/node/esm/DEVN1ZPedFq8Bnui.mjs +197 -0
  90. package/node/esm/{BlD3bHo8AAxK7O1j.mjs → DFUPAGKlHT2-8dyC.mjs} +33 -31
  91. package/node/esm/DMxfzW-UQdMaV-Gx.mjs +975 -0
  92. package/node/esm/DWbMD1KaT8mlCUfO.mjs +519 -0
  93. package/node/esm/{DifZAchLTKOmWpkv.mjs → DffuRwJI_5oVtzZb.mjs} +23 -23
  94. package/node/esm/Dg9rTwnydI2UVmGG.mjs +242 -0
  95. package/node/esm/{BTI9exTFHEYzVjw9.mjs → DmQMejdH1-aYq99z.mjs} +70 -71
  96. package/node/esm/{CbpkRpNbQYYOJbxH.mjs → DvSoGqy_51YQZzYM.mjs} +84 -96
  97. package/node/esm/DzTvKGqU1I9m-_qd.mjs +391 -0
  98. package/node/esm/{Dvvg1Yo2e7OGd8sv.mjs → PKRuDgaA8RrsqSNn.mjs} +29 -29
  99. package/node/esm/{v0BFuYjhq2G8zDRe.mjs → POUGgaN5BmOnEPPl.mjs} +2 -2
  100. package/node/esm/WqxW6Up5_6oeJrSr.mjs +489 -0
  101. package/node/esm/ehyFZGpXZSmR7Q7-.mjs +294 -0
  102. package/node/esm/index.mjs +9829 -8837
  103. package/package.json +16 -19
  104. package/resources/contents.json +6 -0
  105. package/resources/locales/contents.json +14 -0
  106. package/resources/locales/de/groups.cmd.json +61 -10
  107. package/resources/locales/de/ui.msg.json +273 -15
  108. package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
  109. package/resources/locales/en/groups.cmd.json +71 -11
  110. package/resources/locales/en/ui.msg.json +278 -15
  111. package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
  112. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
  114. package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
  115. package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
  116. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  117. package/types/src/anomalies/_source.d.ts +7 -0
  118. package/types/src/anomalies/index.d.ts +3 -0
  119. package/types/src/border/BorderPopupButton.d.ts +1 -1
  120. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  121. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  122. package/types/src/chart/ChartPlugin.d.ts +6 -0
  123. package/types/src/chart/index.d.ts +3 -0
  124. package/types/src/color/ColorPopupButton.d.ts +1 -1
  125. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  126. package/types/src/command/ColorCommandButton.d.ts +5 -0
  127. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  128. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  129. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  130. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  131. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  132. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  133. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  134. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  135. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  136. package/types/src/command/index.d.ts +2 -0
  137. package/types/src/comments/CommentCard.d.ts +2 -2
  138. package/types/src/comments/CommentsPlugin.d.ts +1 -1
  139. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
  140. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  141. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
  142. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  143. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  144. package/types/src/conditions/ConditionEditor.d.ts +55 -3
  145. package/types/src/conditions/ConditionUtils.d.ts +34 -6
  146. package/types/src/conditions/ExpressionOption.d.ts +6 -0
  147. package/types/src/conditions/MembershipOption.d.ts +67 -0
  148. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  149. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  150. package/types/src/conditions/ScalarOption.d.ts +5 -4
  151. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  152. package/types/src/conditions/index.d.ts +1 -1
  153. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  154. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
  155. package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
  156. package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
  157. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  158. package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
  159. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  160. package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
  161. package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
  162. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  163. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  164. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  165. package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
  166. package/types/src/fill/GradientEditor.d.ts +15 -13
  167. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  168. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  169. package/types/src/fill/index.d.ts +1 -0
  170. package/types/src/filter/ColumnMenu.d.ts +31 -1
  171. package/types/src/filter/PivotMenu.d.ts +31 -0
  172. package/types/src/filter/index.d.ts +1 -1
  173. package/types/src/form/FormulaField.d.ts +4 -4
  174. package/types/src/form/InputField.d.ts +5 -5
  175. package/types/src/format/BorderPreview.d.ts +11 -4
  176. package/types/src/format/FillPanel.d.ts +42 -2
  177. package/types/src/format/FormatPanelParts.d.ts +3 -1
  178. package/types/src/format/FormatPlugin.d.ts +1 -6
  179. package/types/src/format/LinePanel.d.ts +53 -0
  180. package/types/src/format/LinePreviews.d.ts +71 -0
  181. package/types/src/format/index.d.ts +1 -0
  182. package/types/src/format/useFormatSelection.d.ts +6 -6
  183. package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
  184. package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -0
  185. package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
  186. package/types/src/formulaBar/index.d.ts +3 -0
  187. package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
  188. package/types/src/index.d.ts +19 -6
  189. package/types/src/itemsPanel/ItemCard.d.ts +50 -7
  190. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  191. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  192. package/types/src/itemsPanel/index.d.ts +1 -0
  193. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  194. package/types/src/named/NamedPlugin.d.ts +1 -1
  195. package/types/src/picture/PicturePlugin.d.ts +6 -0
  196. package/types/src/picture/index.d.ts +2 -0
  197. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  198. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  199. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  200. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  201. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  202. package/types/src/pivot/_pivotSource.d.ts +7 -0
  203. package/types/src/presence/PresenceOverlay.d.ts +14 -0
  204. package/types/src/presence/PresencePlugin.d.ts +31 -0
  205. package/types/src/presence/PresenceStrip.d.ts +22 -0
  206. package/types/src/presence/PresenceTaskPane.d.ts +13 -0
  207. package/types/src/presence/Timeline.d.ts +29 -0
  208. package/types/src/presence/index.d.ts +5 -0
  209. package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
  210. package/types/src/protection/ProtectionPlugin.d.ts +1 -1
  211. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  212. package/types/src/protection/index.d.ts +1 -1
  213. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  214. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  215. package/types/src/shape/ShapePlugin.d.ts +8 -0
  216. package/types/src/shape/index.d.ts +3 -0
  217. package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
  218. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
  219. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  220. package/types/src/slicer/index.d.ts +3 -0
  221. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  222. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  223. package/types/src/statusBar/index.d.ts +1 -0
  224. package/types/src/studio/StudioProps.d.ts +62 -27
  225. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  226. package/types/src/studio/useStudioApp.d.ts +25 -24
  227. package/types/src/table/TablePlugin.d.ts +1 -1
  228. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  229. package/types/src/template/TemplateDialog.d.ts +1 -1
  230. package/types/src/template/TemplatePanel.d.ts +5 -1
  231. package/types/src/template/TemplateSearchField.d.ts +17 -1
  232. package/types/src/template/categoryColor.d.ts +8 -0
  233. package/types/src/template/useTemplateCatalog.d.ts +2 -0
  234. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  235. package/types/src/theme/ThemeUtils.d.ts +8 -27
  236. package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
  237. package/types/src/workbook/DefaultRenderers.d.ts +44 -16
  238. package/types/src/workbook/OutlineButtons.d.ts +11 -0
  239. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  240. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  241. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  242. package/types/src/workbook/index.d.ts +1 -1
  243. package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
  244. package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
  245. package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
  246. package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
  247. package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
  248. package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
  249. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  250. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  251. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
  252. package/browser/cjs/BcBrhEv9acaTxPkO.cjs +0 -13
  253. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  254. package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
  255. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  256. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  257. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  258. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  259. package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
  260. package/browser/cjs/Clzu4HOXk3QSlzUD.cjs +0 -8
  261. package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
  262. package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
  263. package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
  264. package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
  265. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  266. package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
  267. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  268. package/browser/cjs/index.cjs +0 -2
  269. package/browser/esm/7gisHVXYgcPxWH8-.mjs +0 -223
  270. package/browser/esm/B7k8enrhC2Rvqhn1.mjs +0 -152
  271. package/browser/esm/BK4OEmeaw-kC-vAN.mjs +0 -5355
  272. package/browser/esm/DvYZOxsaTNeBKuFq.mjs +0 -411
  273. package/browser/esm/DzWcb3yuPXS0E4_P.mjs +0 -236
  274. package/browser/esm/WftYXVWvPKx99H0H.mjs +0 -115
  275. package/browser/esm/eoNyVUe5ZEpHwJ7k.mjs +0 -52
  276. package/browser/esm/hFLn30a6N1fEy7fz.mjs +0 -13582
  277. package/browser/esm/jkFhDHWwKoyTSSDL.mjs +0 -1150
  278. package/node/esm/CpteKzMPi39jxmYL.mjs +0 -236
  279. package/node/esm/DA2gosTk8L-FUVI5.mjs +0 -4503
  280. package/node/esm/DP23-d6_VRFro0_D.mjs +0 -415
  281. package/node/esm/lH1iFsECniBRMubb.mjs +0 -115
  282. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  283. package/types/src/conditions/ListSourceOption.d.ts +0 -31
  284. package/types/src/filter/FilterList.d.ts +0 -31
@@ -0,0 +1,94 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.0
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { useTranslator as e } from "@sheetxl/utils-react";
8
+ import { useState as t } from "react";
9
+ import { OptionsDialog as o } from "@sheetxl/utils-mui";
10
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
11
+ import { Box as l, TextField as s, Typography as p } from "@mui/material";
12
+ var n = (n) => {
13
+ const i = e(), { description: u, requireCurrent: c = !1, onApply: d, title: m, sx: h, ...w } = n, [C, x] = t(""), [f, g] = t(""), [v, k] = t(""), [b, y] = t(!1), O = "" === f, F = v !== f, z = !O && !F;
14
+ return r(o, {
15
+ title: m ?? i(c ? "password.titleChange" : "password.title"),
16
+ options: ["Ok", "Cancel"],
17
+ defaultOption: "Ok",
18
+ cancelOption: "Cancel",
19
+ autoFocusSel: ".autoFocus",
20
+ sx: {
21
+ width: "380px",
22
+ ...h
23
+ },
24
+ onValidateOption: (e) => "Cancel" === e || (y(!0), z),
25
+ onOption: (e, t) => {
26
+ if (!t && "Ok" === e) return d(f, c ? C : void 0);
27
+ },
28
+ ...w,
29
+ children: a(l, {
30
+ sx: {
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ gap: (e) => e.spacing(2),
34
+ paddingTop: (e) => e.spacing(1)
35
+ },
36
+ children: [
37
+ u ? r(p, {
38
+ variant: "body2",
39
+ sx: { color: "text.secondary" },
40
+ children: u
41
+ }) : null,
42
+ c ? r(s, {
43
+ type: "password",
44
+ size: "small",
45
+ label: i("password.current"),
46
+ value: C,
47
+ onChange: (e) => x(e.target.value),
48
+ slotProps: {
49
+ inputLabel: { shrink: !0 },
50
+ htmlInput: {
51
+ className: "autoFocus",
52
+ autoComplete: "current-password",
53
+ spellCheck: !1
54
+ }
55
+ }
56
+ }) : null,
57
+ r(s, {
58
+ type: "password",
59
+ size: "small",
60
+ label: i(c ? "password.new" : "password.label"),
61
+ value: f,
62
+ error: b && O,
63
+ helperText: b && O ? i("password.required") : " ",
64
+ onChange: (e) => g(e.target.value),
65
+ slotProps: {
66
+ inputLabel: { shrink: !0 },
67
+ htmlInput: {
68
+ className: c ? void 0 : "autoFocus",
69
+ autoComplete: "new-password",
70
+ spellCheck: !1
71
+ }
72
+ }
73
+ }),
74
+ r(s, {
75
+ type: "password",
76
+ size: "small",
77
+ label: i("protection.passwordConfirm"),
78
+ value: v,
79
+ error: b && !O && F,
80
+ helperText: b && !O && F ? i("protection.passwordMismatch") : " ",
81
+ onChange: (e) => k(e.target.value),
82
+ slotProps: {
83
+ inputLabel: { shrink: !0 },
84
+ htmlInput: {
85
+ autoComplete: "new-password",
86
+ spellCheck: !1
87
+ }
88
+ }
89
+ })
90
+ ]
91
+ })
92
+ });
93
+ };
94
+ export { n as PasswordDialog, n as default };
@@ -0,0 +1,516 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.0
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { ColorPopupButton as e } from "./index.mjs";
8
+ import { i as a, n as t, o as r, r as n } from "./Bv5awmbwVUdl4rma.mjs";
9
+ import { t as l } from "./CoG2fq6dYCvhC5yu.mjs";
10
+ import { t as s } from "./DWbMD1KaT8mlCUfO.mjs";
11
+ import { IFill as i } from "@sheetxl/sdk";
12
+ import { useGridColorScheme as o } from "@sheetxl/react";
13
+ import { useCallbackRef as h, useTranslator as c } from "@sheetxl/utils-react";
14
+ import { memo as d, useEffect as p, useReducer as u, useState as m } from "react";
15
+ import { Fragment as g, jsx as b, jsxs as y } from "react/jsx-runtime";
16
+ import { Box as v, Checkbox as x, FormControl as C, FormControlLabel as S, InputLabel as w, MenuItem as k, Select as B, TextField as f, Typography as L } from "@mui/material";
17
+ var E = (e) => b(L, {
18
+ variant: "subtitle2",
19
+ component: "div",
20
+ children: e.children
21
+ }), T = (e, a) => {
22
+ const t = a.getChart(), r = a.getPath(), n = a.getParent(), l = () => n ? T(e, n) : "", s = Number(r.split("/").pop());
23
+ switch (a.getElementType()) {
24
+ case "chartArea": return e("chart.pane.element.chartArea");
25
+ case "title": return e("chart.pane.element.title");
26
+ case "legend": return e("chart.pane.element.legend");
27
+ case "legendEntry": return e("chart.pane.element.legendEntry", { index: s + 1 });
28
+ case "plotArea": return e("chart.pane.element.plotArea");
29
+ case "dataTable": return e("chart.pane.element.dataTable");
30
+ case "axis": return ((e, a, t) => {
31
+ const [, r, n] = t.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(a), s = "category" === n ? !l : "value" !== n || l, i = "series" === n ? e("chart.pane.axisKind.series") : ((e) => /^(xyscatter|bubble)/.test(e.getChartType()))(a) || "value" === n ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), o = e("chart.pane.axis", {
32
+ side: e(s ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
33
+ kind: i
34
+ });
35
+ return "secondary" === r ? e("chart.pane.secondary", { label: o }) : o;
36
+ })(e, t, r);
37
+ case "axisTitle": return e("chart.pane.element.axisTitle", { axis: l() });
38
+ case "gridlines": return r.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: l() }) : e("chart.pane.element.majorGridlines", { axis: l() });
39
+ case "series": return e("chart.pane.element.series", { name: a.getName() ?? "" });
40
+ case "point": return e("chart.pane.element.point", {
41
+ series: l(),
42
+ index: s + 1
43
+ });
44
+ case "marker": return e("chart.pane.element.marker", { owner: l() });
45
+ case "dataLabels": return "series" === n?.getElementType() ? e("chart.pane.element.dataLabels", { series: l() }) : e("chart.pane.element.allDataLabels");
46
+ case "dataLabel": return e("chart.pane.element.dataLabel", { point: l() });
47
+ case "trendline": return e("chart.pane.element.trendline", {
48
+ series: l(),
49
+ index: s + 1
50
+ });
51
+ case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: l() });
52
+ case "errorBars": return r.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: l() }) : e("chart.pane.element.yErrorBars", { series: l() });
53
+ case "chartGroup": return e("chart.pane.element.group", { index: s + 1 });
54
+ case "upDownBars": return e("chart.pane.element.upDownBars");
55
+ case "hiLoLines": return e("chart.pane.element.hiLoLines");
56
+ case "dropLines": return e("chart.pane.element.dropLines");
57
+ case "seriesLines": return e("chart.pane.element.seriesLines");
58
+ default: return r;
59
+ }
60
+ }, V = (e, a) => {
61
+ const t = e.getStroke().getFill();
62
+ return t.getType() === i.Type.Solid ? t.getColor() : a.getNormal().getFont().getColor();
63
+ }, P = (e) => {
64
+ const { style: a, sheet: t, disabled: r, label: n } = e, i = c(), h = t.getStyles(), d = "dark" === o(), p = {
65
+ fill: a.getFill(),
66
+ styles: h,
67
+ schemeLookup: h.schemeLookup(),
68
+ darkMode: d,
69
+ disabled: r,
70
+ createCell: (e) => t.createCell(e),
71
+ applyFill: (e, t) => {
72
+ a.setFill(e, { description: t });
73
+ }
74
+ }, u = {
75
+ stroke: a.getStroke(),
76
+ stated: a.toJSON()?.stroke ?? null,
77
+ autoColor: V(a, h),
78
+ styles: h,
79
+ schemeLookup: h.schemeLookup(),
80
+ darkMode: d,
81
+ disabled: r,
82
+ applyStroke: (e, t) => {
83
+ a.setStroke(e, { description: t });
84
+ }
85
+ };
86
+ return y(g, { children: [
87
+ n ? b(E, { children: n }) : null,
88
+ b(E, { children: i("shape.pane.fill") }),
89
+ b(l, { selection: p }),
90
+ b(E, { children: i("shape.pane.line") }),
91
+ b(s, { selection: u })
92
+ ] });
93
+ }, F = (e) => y(C, {
94
+ size: "small",
95
+ fullWidth: !0,
96
+ disabled: e.disabled,
97
+ children: [b(w, { children: e.label }), b(B, {
98
+ label: e.label,
99
+ value: e.value,
100
+ onChange: (a) => e.onChange(a.target.value),
101
+ children: e.options.map((a) => b(k, {
102
+ value: a,
103
+ children: e.labels[a] ?? a
104
+ }, a))
105
+ })]
106
+ }), A = (e) => b(S, {
107
+ label: e.label,
108
+ disabled: e.disabled,
109
+ control: b(x, {
110
+ size: "small",
111
+ checked: e.checked,
112
+ onChange: (a) => e.onChange(a.target.checked)
113
+ })
114
+ }), N = (e) => {
115
+ const [a, t] = m(null), r = () => {
116
+ null !== a && a !== e.value && e.onCommit(a), t(null);
117
+ };
118
+ return b(f, {
119
+ size: "small",
120
+ fullWidth: !0,
121
+ label: e.label,
122
+ disabled: e.disabled,
123
+ value: a ?? e.value,
124
+ onChange: (e) => t(e.target.value),
125
+ onBlur: r,
126
+ onKeyDown: (e) => {
127
+ "Enter" === e.key && r();
128
+ }
129
+ });
130
+ }, D = [
131
+ "none",
132
+ "single",
133
+ "double"
134
+ ], O = [
135
+ "none",
136
+ "single",
137
+ "double"
138
+ ], z = (r) => {
139
+ const { font: l, styles: s, disabled: i, run: d } = r, p = c(), u = "dark" === o(), m = h(() => s.recentColors(), [s]), v = l.getColor(), x = {
140
+ none: p("chart.pane.text.lineNone"),
141
+ single: p("chart.pane.text.lineSingle"),
142
+ double: p("chart.pane.text.lineDouble")
143
+ };
144
+ return y(g, { children: [
145
+ b(E, { children: p("chart.pane.text") }),
146
+ b(a, { children: b(N, {
147
+ label: p("format.fontFamily"),
148
+ value: l.getFamily(),
149
+ disabled: i,
150
+ onCommit: (e) => d(() => l.setFamily(e || null))
151
+ }) }),
152
+ b(a, { children: y(n, { children: [b(t, {
153
+ label: p("format.fontSize"),
154
+ value: l.getSize(),
155
+ min: 1,
156
+ max: 400,
157
+ step: 1,
158
+ decimals: !0,
159
+ width: 96,
160
+ disabled: i,
161
+ onChange: (e) => d(() => l.setSize(e))
162
+ }), b(e, {
163
+ icon: "text.colored",
164
+ disabled: i,
165
+ darkMode: u,
166
+ compareRGB: !0,
167
+ selectedColor: v,
168
+ onSelectColor: (e, a) => {
169
+ e && a && s.addRecentColor(e), d(() => l.setColor(e ? e.toString() : null));
170
+ },
171
+ propsPanel: {
172
+ disableAlpha: !0,
173
+ schemeLookup: s.schemeLookup(),
174
+ recentColors: m
175
+ }
176
+ })] }) }),
177
+ b(a, { children: y(n, { children: [b(A, {
178
+ label: p("chart.pane.text.bold"),
179
+ checked: l.getBold(),
180
+ disabled: i,
181
+ onChange: (e) => d(() => l.setBold(e))
182
+ }), b(A, {
183
+ label: p("chart.pane.text.italic"),
184
+ checked: l.getItalic(),
185
+ disabled: i,
186
+ onChange: (e) => d(() => l.setItalic(e))
187
+ })] }) }),
188
+ b(a, { children: y(n, { children: [b(F, {
189
+ label: p("chart.pane.text.underline"),
190
+ value: D.includes(l.getUnderline()) ? l.getUnderline() : "single",
191
+ options: D,
192
+ labels: x,
193
+ disabled: i,
194
+ onChange: (e) => d(() => l.setUnderline(e))
195
+ }), b(F, {
196
+ label: p("chart.pane.text.strike"),
197
+ value: l.getStrike(),
198
+ options: O,
199
+ labels: x,
200
+ disabled: i,
201
+ onChange: (e) => d(() => l.setStrike(e))
202
+ })] }) })
203
+ ] });
204
+ }, K = [
205
+ "top",
206
+ "bottom",
207
+ "left",
208
+ "right",
209
+ "corner"
210
+ ], G = [
211
+ "center",
212
+ "insideEnd",
213
+ "insideBase",
214
+ "outsideEnd",
215
+ "left",
216
+ "right",
217
+ "top",
218
+ "bottom",
219
+ "bestFit"
220
+ ], R = [
221
+ "linear",
222
+ "exponential",
223
+ "logarithmic",
224
+ "polynomial",
225
+ "power",
226
+ "movingAverage"
227
+ ], W = [
228
+ "fixedValue",
229
+ "percent",
230
+ "stDev",
231
+ "stError"
232
+ ], M = [
233
+ "both",
234
+ "plusValues",
235
+ "minusValues"
236
+ ], j = (e) => {
237
+ const { element: a, disabled: l, run: s } = e, i = c(), o = (e, a, t) => b(A, {
238
+ label: e,
239
+ checked: a,
240
+ disabled: l,
241
+ onChange: (e) => s(() => t(e))
242
+ }), h = [], d = () => a;
243
+ switch (a.getElementType()) {
244
+ case "chartArea": {
245
+ const e = d();
246
+ h.push(o(i("chart.pane.roundedCorners"), e.getRoundedCorners(), (a) => e.setRoundedCorners(a)));
247
+ break;
248
+ }
249
+ case "title":
250
+ case "axisTitle": {
251
+ const e = d();
252
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(N, {
253
+ label: i("chart.pane.titleText"),
254
+ value: e.getText() ?? "",
255
+ disabled: l,
256
+ onCommit: (a) => s(() => e.setText(a || null))
257
+ }, "text")), h.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
258
+ break;
259
+ }
260
+ case "legend": {
261
+ const e = d();
262
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(F, {
263
+ label: i("chart.pane.position"),
264
+ value: e.getPosition(),
265
+ options: K,
266
+ disabled: l,
267
+ labels: {
268
+ top: i("chart.pane.side.top"),
269
+ bottom: i("chart.pane.side.bottom"),
270
+ left: i("chart.pane.side.left"),
271
+ right: i("chart.pane.side.right"),
272
+ corner: i("chart.pane.side.corner")
273
+ },
274
+ onChange: (a) => s(() => e.setPosition(a))
275
+ }, "position")), h.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
276
+ break;
277
+ }
278
+ case "axis": {
279
+ const e = d();
280
+ if (h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.reverse"), e.getReversePlotOrder(), (a) => e.setReversePlotOrder(a))), "value" === e.getKind()) {
281
+ const a = (e, a, r) => b(t, {
282
+ label: e,
283
+ value: a ?? 0,
284
+ min: -0x38d7ea4c68000,
285
+ max: 0x38d7ea4c68000,
286
+ decimals: !0,
287
+ width: 120,
288
+ disabled: l,
289
+ onChange: (e) => s(() => r(e))
290
+ }, e);
291
+ h.push(y(n, { children: [a(i("chart.pane.minimum"), e.getMinimum(), (a) => e.setMinimum(a)), a(i("chart.pane.maximum"), e.getMaximum(), (a) => e.setMaximum(a))] }, "bounds")), h.push(b(N, {
292
+ label: i("chart.pane.numberFormat"),
293
+ value: e.getNumberFormat() ?? "",
294
+ disabled: l,
295
+ onCommit: (a) => s(() => a ? e.setNumberFormat(a) : e.setLinkNumberFormat(!0))
296
+ }, "format"));
297
+ }
298
+ break;
299
+ }
300
+ case "gridlines":
301
+ case "upDownBars":
302
+ case "hiLoLines":
303
+ case "dropLines":
304
+ case "seriesLines": {
305
+ const e = d();
306
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a)));
307
+ break;
308
+ }
309
+ case "series": {
310
+ const e = d();
311
+ h.push(o(i("chart.pane.secondaryAxis"), "secondary" === e.getAxisGroup(), (a) => e.setAxisGroup(a ? "secondary" : "primary")));
312
+ const a = e.getGapWidth(), r = e.getOverlap();
313
+ null === a && null === r || h.push(y(n, { children: [null !== r ? b(t, {
314
+ label: i("chart.pane.overlap"),
315
+ value: r,
316
+ min: -100,
317
+ max: 100,
318
+ width: 96,
319
+ disabled: l,
320
+ onChange: (a) => s(() => e.setOverlap(a))
321
+ }) : null, null !== a ? b(t, {
322
+ label: i("chart.pane.gapWidth"),
323
+ value: a,
324
+ min: 0,
325
+ max: 500,
326
+ width: 96,
327
+ disabled: l,
328
+ onChange: (a) => s(() => e.setGapWidth(a))
329
+ }) : null] }, "gap")), /^(line|xyscatter)/.test(e.getChartType()) && h.push(o(i("chart.pane.smooth"), e.getSmooth(), (a) => e.setSmooth(a)));
330
+ break;
331
+ }
332
+ case "dataLabels":
333
+ case "dataLabel": {
334
+ const e = d();
335
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.labels.value"), e.getShowValue(), (a) => e.setShowValue(a))), h.push(o(i("chart.pane.labels.category"), e.getShowCategoryName(), (a) => e.setShowCategoryName(a))), h.push(o(i("chart.pane.labels.series"), e.getShowSeriesName(), (a) => e.setShowSeriesName(a))), h.push(o(i("chart.pane.labels.percentage"), e.getShowPercentage(), (a) => e.setShowPercentage(a))), h.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), h.push(b(F, {
336
+ label: i("chart.pane.position"),
337
+ value: e.getPosition(),
338
+ options: G,
339
+ disabled: l,
340
+ labels: {
341
+ center: i("chart.pane.labels.center"),
342
+ insideEnd: i("chart.pane.labels.insideEnd"),
343
+ insideBase: i("chart.pane.labels.insideBase"),
344
+ outsideEnd: i("chart.pane.labels.outsideEnd"),
345
+ left: i("chart.pane.side.left"),
346
+ right: i("chart.pane.side.right"),
347
+ top: i("chart.pane.side.top"),
348
+ bottom: i("chart.pane.side.bottom"),
349
+ bestFit: i("chart.pane.labels.bestFit")
350
+ },
351
+ onChange: (a) => s(() => e.setPosition(a))
352
+ }, "position"));
353
+ break;
354
+ }
355
+ case "trendline": {
356
+ const e = d();
357
+ h.push(b(F, {
358
+ label: i("chart.pane.trendline.type"),
359
+ value: e.getType(),
360
+ options: R,
361
+ disabled: l,
362
+ labels: {
363
+ linear: i("chart.pane.trendline.linear"),
364
+ exponential: i("chart.pane.trendline.exponential"),
365
+ logarithmic: i("chart.pane.trendline.logarithmic"),
366
+ polynomial: i("chart.pane.trendline.polynomial"),
367
+ power: i("chart.pane.trendline.power"),
368
+ movingAverage: i("chart.pane.trendline.movingAverage")
369
+ },
370
+ onChange: (a) => s(() => e.setType(a))
371
+ }, "type")), h.push(o(i("chart.pane.trendline.equation"), e.getShowEquation(), (a) => e.setShowEquation(a))), h.push(o(i("chart.pane.trendline.rSquared"), e.getShowRSquared(), (a) => e.setShowRSquared(a))), h.push(y(n, { children: [b(t, {
372
+ label: i("chart.pane.trendline.forward"),
373
+ value: e.getForwardPeriod(),
374
+ min: 0,
375
+ max: 1e6,
376
+ decimals: !0,
377
+ width: 96,
378
+ disabled: l,
379
+ onChange: (a) => s(() => e.setForwardPeriod(a))
380
+ }), b(t, {
381
+ label: i("chart.pane.trendline.backward"),
382
+ value: e.getBackwardPeriod(),
383
+ min: 0,
384
+ max: 1e6,
385
+ decimals: !0,
386
+ width: 96,
387
+ disabled: l,
388
+ onChange: (a) => s(() => e.setBackwardPeriod(a))
389
+ })] }, "periods"));
390
+ break;
391
+ }
392
+ case "errorBars": {
393
+ const e = d();
394
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(F, {
395
+ label: i("chart.pane.errorBars.type"),
396
+ value: "custom" === e.getType() ? "fixedValue" : e.getType(),
397
+ options: W,
398
+ disabled: l,
399
+ labels: {
400
+ fixedValue: i("chart.pane.errorBars.fixedValue"),
401
+ percent: i("chart.pane.errorBars.percent"),
402
+ stDev: i("chart.pane.errorBars.stDev"),
403
+ stError: i("chart.pane.errorBars.stError")
404
+ },
405
+ onChange: (a) => s(() => e.setType(a))
406
+ }, "type"));
407
+ const a = e.getAmount();
408
+ null !== a && h.push(b(t, {
409
+ label: i("chart.pane.errorBars.amount"),
410
+ value: a,
411
+ min: 0,
412
+ max: 0x38d7ea4c68000,
413
+ decimals: !0,
414
+ width: 120,
415
+ disabled: l,
416
+ onChange: (a) => s(() => e.setAmount(a))
417
+ }, "amount")), h.push(b(F, {
418
+ label: i("chart.pane.errorBars.direction"),
419
+ value: e.getInclude(),
420
+ options: M,
421
+ disabled: l,
422
+ labels: {
423
+ both: i("chart.pane.errorBars.both"),
424
+ plusValues: i("chart.pane.errorBars.plus"),
425
+ minusValues: i("chart.pane.errorBars.minus")
426
+ },
427
+ onChange: (a) => s(() => e.setInclude(a))
428
+ }, "include")), h.push(o(i("chart.pane.errorBars.cap"), e.getEndStyleCap(), (a) => e.setEndStyleCap(a)));
429
+ break;
430
+ }
431
+ case "dataTable": {
432
+ const e = d();
433
+ h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), h.push(o(i("chart.pane.table.horizontal"), e.getShowHorizontalBorder(), (a) => e.setShowHorizontalBorder(a))), h.push(o(i("chart.pane.table.vertical"), e.getShowVerticalBorder(), (a) => e.setShowVerticalBorder(a))), h.push(o(i("chart.pane.table.outline"), e.getShowOutlineBorder(), (a) => e.setShowOutlineBorder(a)));
434
+ break;
435
+ }
436
+ }
437
+ return 0 === h.length ? null : y(g, { children: [b(E, { children: i("chart.pane.options") }), b(v, {
438
+ sx: {
439
+ ...r,
440
+ gap: 1
441
+ },
442
+ children: h.map((e, a) => b(v, { children: e }, a))
443
+ })] });
444
+ }, q = d((e) => {
445
+ const { movable: a, sheet: t } = e, n = c(), l = a.getContent(), [, s] = u((e) => e + 1, 0);
446
+ p(() => l.addListeners({ onAnyChange: s }), [l]);
447
+ const i = t.getView().getChartElementSelection();
448
+ p(() => i.addListeners({ onChange: s }), [i]);
449
+ const [o, d] = m("chartArea"), [x, S] = m(null), f = (i.getChart() === l ? i.getActive() : null) ?? l.getElement(o) ?? l.getChartArea(), E = l.getElements(), V = E.includes(f) ? E : [...E, f], F = l.isReadOnly(), A = h((e) => {
450
+ try {
451
+ e(), S(null);
452
+ } catch (e) {
453
+ S(e?.message ?? String(e));
454
+ }
455
+ }, []), N = f.getStyle?.(), D = N?.isITextBoxStyle ? N.getFont() : null, O = "legendEntry" === f.getElementType() ? null : N, K = "upDownBars" === f.getElementType() ? f : null;
456
+ return y(v, {
457
+ sx: {
458
+ ...r,
459
+ gap: 2,
460
+ paddingTop: (e) => e.spacing(1)
461
+ },
462
+ children: [
463
+ y(C, {
464
+ size: "small",
465
+ fullWidth: !0,
466
+ children: [b(w, { children: n("chart.pane.element") }), b(B, {
467
+ label: n("chart.pane.element"),
468
+ value: f.getPath(),
469
+ onChange: (e) => ((e) => {
470
+ d(e), S(null);
471
+ const a = l.getElement(e);
472
+ a && "chartArea" !== a.getElementType() ? i.select([a]) : i.clear();
473
+ })(e.target.value),
474
+ children: V.map((e) => b(k, {
475
+ value: e.getPath(),
476
+ children: T(n, e)
477
+ }, e.getPath()))
478
+ })]
479
+ }),
480
+ x ? b(L, {
481
+ variant: "caption",
482
+ color: "error",
483
+ children: x
484
+ }) : null,
485
+ b(j, {
486
+ element: f,
487
+ disabled: F,
488
+ run: A
489
+ }, `options:${f.getPath()}`),
490
+ D ? b(z, {
491
+ font: D,
492
+ styles: t.getStyles(),
493
+ disabled: F,
494
+ run: A
495
+ }, `text:${f.getPath()}`) : null,
496
+ O ? b(P, {
497
+ style: O,
498
+ sheet: t,
499
+ disabled: F
500
+ }, `style:${f.getPath()}`) : null,
501
+ K ? y(g, { children: [b(P, {
502
+ style: K.getUpBarsStyle(),
503
+ sheet: t,
504
+ disabled: F,
505
+ label: n("chart.pane.upBars")
506
+ }, "up"), b(P, {
507
+ style: K.getDownBarsStyle(),
508
+ sheet: t,
509
+ disabled: F,
510
+ label: n("chart.pane.downBars")
511
+ }, "down")] }) : null
512
+ ]
513
+ });
514
+ });
515
+ q.displayName = "ChartFormatPanel";
516
+ export { q as ChartFormatPanel };