@sheetxl/studio-mui 1.0.5 → 1.0.6

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 (148) hide show
  1. package/browser/esm/{ePpKy03kKJVlSVTe.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
  2. package/browser/esm/{BPvVycga6_ukFjmo.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
  3. package/browser/esm/{DThDfv3f2iMSjT53.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
  4. package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
  5. package/browser/esm/{CPaacOpodhMft_HZ.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
  6. package/browser/esm/{zvoxJTExywdfgNRc.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
  7. package/browser/esm/{DOKtLrUbVlvQxv4H.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
  8. package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
  9. package/browser/esm/{B6-hMCdKZvyVLr0H.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
  10. package/browser/esm/{7yj4dvdTrP3TJcG2.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
  11. package/browser/esm/{B-BP7YC6OqOv5MV4.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
  12. package/browser/esm/{DKVZo-UN8IISuX4Y.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
  13. package/browser/esm/{bBvScRhjFIhLO-BQ.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
  14. package/browser/esm/{BRtyp4rO-zBQUZou.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
  15. package/browser/esm/{BTvmDvFq0AmcpyAD.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
  16. package/browser/esm/{VtQjtk60kuTE6s0Z.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
  17. package/browser/esm/{Bqz9mx_1Lg0aSHGm.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
  18. package/browser/esm/{DryZ4M6NKZEfr7g_.mjs → C211u9yUXa4149g9.mjs} +1 -1
  19. package/browser/esm/{C8Lqnn-28XkX0Nka.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
  20. package/browser/esm/{BncHnyZbePCwr9Eo.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
  21. package/browser/esm/{R0acIC-n-z00Zc8M.mjs → CA42_0vpQwF292tA.mjs} +1 -1
  22. package/browser/esm/{hSCeagPj7N_7GznP.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
  23. package/browser/esm/{C7HaLVp6sci5ODXI.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
  24. package/browser/esm/{CvbBPZFXJWgWy-WO.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
  25. package/browser/esm/{BK1rW101-KwC1O3y.mjs → CHb2gapathcPfhdM.mjs} +5 -5
  26. package/browser/esm/{C_-UmBzcMFoDo0fX.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
  27. package/browser/esm/{iK7GQTGlybnAwDFn.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
  28. package/browser/esm/{Dbg4a76nvHk2YiQX.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
  29. package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
  30. package/browser/esm/{BztoCStIl9cOlMP2.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
  31. package/browser/esm/{DBsWN0XGhfhzjKYP.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
  32. package/browser/esm/{CfVmUxioa6e4pJgE.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
  33. package/browser/esm/{C0EVQMZCECx8ZtfT.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
  34. package/browser/esm/{Cg0gGXUOW_fkgnny.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
  35. package/browser/esm/{CUVpARqLbIk1YJpR.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
  36. package/browser/esm/{D6uC2TMlHyJaRxfz.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
  37. package/browser/esm/{CeVY5B3Jxs6uNbw_.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
  38. package/browser/esm/{BPyB91W7jUDKOF7m.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
  39. package/browser/esm/{C-J4c4cA_UafY5j-.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
  40. package/browser/esm/{CD1F2JZ9VNb4fMFB.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
  41. package/browser/esm/{D834tBZr2uiui3Yl.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
  42. package/browser/esm/{BwcKRrn0FbEQXA_w.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
  43. package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
  44. package/browser/esm/{GfW7QFtTUyK1yS0P.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
  45. package/browser/esm/{RRwtR6zhJEHrCP8n.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
  46. package/browser/esm/{CIdbrUCRQ3XRp27_.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
  47. package/browser/esm/{Rx8jKs1hNt5rF1o6.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
  48. package/browser/esm/{BZJa6r9ArcmluwF7.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
  49. package/browser/esm/{BxdEhMqG0AJfgYo_.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
  50. package/browser/esm/{CdWTSkoOn2S7LbgA.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
  51. package/browser/esm/{CzKOC7ykGeweE8YO.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
  52. package/browser/esm/{BJdjpkMLIVz2dfey.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
  53. package/browser/esm/{Dl3HN6jGh1DIosIz.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
  54. package/browser/esm/{CKN_49irWz3yBOic.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
  55. package/browser/esm/index.mjs +299 -299
  56. package/browser/esm/{BablQ60b_Sr7yt0c.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
  57. package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
  58. package/browser/esm/{-JkustapYpJLIlTC.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
  59. package/browser/esm/{L2h5hAhioUPka05m.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
  60. package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
  61. package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
  62. package/browser/esm/{AXga1X4C6fqsi-pa.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
  63. package/browser/esm/{vTrvnXbLCCRg1M_Z.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
  64. package/browser/esm/{CVI6kZdcPa6NJ2QN.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
  65. package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
  66. package/node/esm/{BE8tFJNzJd21ET8u.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
  67. package/node/esm/{D9h-5-KAL05_Ky2c.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
  68. package/node/esm/{BKNq-LKfmWLM8xN8.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
  69. package/node/esm/{Dfq_WQN4R9_EI6mT.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
  70. package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
  71. package/node/esm/{Dn886fw8cN-Js_4o.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
  72. package/node/esm/{BxiLu3gZqvEwm0MC.mjs → BghhH54dXAqciBpw.mjs} +2 -2
  73. package/node/esm/{5w-_-2HcuZN2IilY.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
  74. package/node/esm/{CZZkkEXKtF-XmMg_.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
  75. package/node/esm/{4333CfN0xFlZJlzT.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
  76. package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
  77. package/node/esm/{DiZJjw3IrOJhpe5p.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
  78. package/node/esm/{D8Nhs3gz4-jRbvJR.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
  79. package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
  80. package/node/esm/{C7-xjC8Lj2O146i0.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
  81. package/node/esm/{wMu6qavkExEvCP9w.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
  82. package/node/esm/{BFSKvA0b7rgbSW6P.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
  83. package/node/esm/{DzDcGqDCrlXyZGFT.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
  84. package/node/esm/{OIr4GV8spsS0lHX8.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
  85. package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
  86. package/node/esm/{DxONr2LD1x7bwMGg.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
  87. package/node/esm/{B8w-DV7qSRfQye14.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
  88. package/node/esm/{CUDMxAfvU8oooK2c.mjs → D283LXrMqi3exI_l.mjs} +1 -1
  89. package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
  90. package/node/esm/{Calh2yf8E7k7eyxM.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
  91. package/node/esm/{Rl3tQd58HLEsY11C.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
  92. package/node/esm/{CsCU9lo125xnF_Ca.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
  93. package/node/esm/{Bz5j26qH_sdjuoGi.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
  94. package/node/esm/{DlFptlPZHQuBgG50.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
  95. package/node/esm/{DLvtpSUsavFrtiw5.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
  96. package/node/esm/{D6KPG_DnQJRP4iGb.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
  97. package/node/esm/{B-CirwhCWSk3r-uN.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
  98. package/node/esm/{Bj1JsBoPHXCz4fFP.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
  99. package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
  100. package/node/esm/{XEQfvW0ujUY6vUoF.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
  101. package/node/esm/{CEblCNurnWlc2SK0.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
  102. package/node/esm/{D0ouF5sfJzhQUuQg.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
  103. package/node/esm/{B2ba9oxCLDj7q9Fz.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
  104. package/node/esm/index.mjs +3294 -3031
  105. package/node/esm/{5cll_oe5x8KteiZX.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
  106. package/node/esm/{BzEIi_Iy_4PrcaE_.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
  107. package/node/esm/{CwfKrba55FGBz2Jb.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
  108. package/package.json +9 -9
  109. package/resources/locales/de/groups.cmd.json +4 -6
  110. package/resources/locales/de/ui.msg.json +164 -3
  111. package/resources/locales/en/groups.cmd.json +4 -6
  112. package/resources/locales/en/ui.msg.json +164 -3
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
  114. package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
  115. package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
  116. package/types/src/chart/ChartFormatPanel.d.ts +12 -14
  117. package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
  118. package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
  119. package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
  120. package/types/src/chart/command/index.d.ts +2 -0
  121. package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
  122. package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
  123. package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
  124. package/types/src/color/ColorSetSwatch.d.ts +34 -0
  125. package/types/src/color/index.d.ts +1 -0
  126. package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
  127. package/types/src/format/FillPanel.d.ts +1 -3
  128. package/types/src/format/FormatPanelParts.d.ts +2 -2
  129. package/types/src/format/FormatPlugin.d.ts +2 -2
  130. package/types/src/format/FormatTaskPane.d.ts +4 -10
  131. package/types/src/format/LinePanel.d.ts +0 -2
  132. package/types/src/format/editor/FormatEditor.d.ts +36 -0
  133. package/types/src/format/editor/FormatField.d.ts +97 -0
  134. package/types/src/format/editor/FormatFields.d.ts +20 -0
  135. package/types/src/format/editor/index.d.ts +4 -0
  136. package/types/src/format/index.d.ts +1 -0
  137. package/types/src/format/useFormatSelection.d.ts +0 -2
  138. package/types/src/index.d.ts +1 -1
  139. package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
  140. package/types/src/workbook/DefaultRenderers.d.ts +7 -1
  141. package/browser/esm/7afcXNPsXUui-iRB.mjs +0 -517
  142. package/browser/esm/CeElTSJMZukT5ODA.mjs +0 -516
  143. package/browser/esm/DJ0FThW4hRGIvy2O.mjs +0 -72
  144. package/node/esm/BGlQ9Ae_1Kf9chO-.mjs +0 -1831
  145. package/node/esm/CTibYRwgtHRsGojh.mjs +0 -519
  146. package/node/esm/D2GNY72eMSKe5Gt7.mjs +0 -516
  147. package/node/esm/DrpnqRfDHbua0oN6.mjs +0 -73
  148. package/types/src/studio/StudioSplitPane.d.ts +0 -60
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
7
  import { PasswordField as e, l as t } from "./index.mjs";
8
- import { n as o, t as n } from "./CEblCNurnWlc2SK0.mjs";
8
+ import { n as o, t as n } from "./MvXs13X1leYt7rBb.mjs";
9
9
  import { ICellRange as i } from "@sheetxl/sdk";
10
10
  import { promptUnlockProtectedRanges as r, useModelListener as a, useModelSync as s } from "@sheetxl/react";
11
11
  import { DynamicIcon as l, NotifierType as c, useNotifier as d, useTranslator as p } from "@sheetxl/utils-react";
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
- import { t as e } from "./B-CirwhCWSk3r-uN.mjs";
7
+ import { t as e } from "./DnjxhVMqfBhfsNHj.mjs";
8
8
  import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
9
9
  import { memo as i, useMemo as a, useState as o } from "react";
10
10
  import { OptionsDialog as l } from "@sheetxl/utils-mui";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
- import { t as e } from "./Bz5j26qH_sdjuoGi.mjs";
7
+ import { t as e } from "./Debl1EJrMSlRwGcN.mjs";
8
8
  import { FormulaField as t, InputField as n, PresetChip as a, l as r } from "./index.mjs";
9
9
  import { useModelSync as o, useWorkbook as i } from "@sheetxl/react";
10
10
  import { DynamicIcon as d, NotifierType as l, useCallbackRef as s, useNotifier as m, useTranslator as c } from "@sheetxl/utils-react";
@@ -0,0 +1,103 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { o as t } from "./vfgV7wwOvzh9iYjc.mjs";
8
+ import { t as e } from "./DyKgKDqbquskgXEA.mjs";
9
+ import { useCallbackRef as l } from "@sheetxl/utils-react";
10
+ import { useEffect as i, useState as a } from "react";
11
+ import { jsx as r, jsxs as n } from "react/jsx-runtime";
12
+ import { Box as o, Tab as s, Tabs as d, Typography as m } from "@mui/material";
13
+ var p = (p) => {
14
+ const { target: c, sheet: u, request: h, actions: x } = p, [f, g] = a(null), [b, v] = a(null);
15
+ i(() => {
16
+ h?.tab && g(h.tab);
17
+ }, [h]), i(() => {
18
+ v(null);
19
+ }, [c.id]);
20
+ const y = l((t) => {
21
+ try {
22
+ t(), v(null);
23
+ } catch (t) {
24
+ v(t?.message ?? String(t));
25
+ }
26
+ }, []), k = c.tabs, W = k.find((t) => t.key === f) ?? k[0];
27
+ return n(o, {
28
+ "data-format-target": c.id,
29
+ sx: {
30
+ display: "flex",
31
+ flexDirection: "column",
32
+ minWidth: 0,
33
+ minHeight: 0
34
+ },
35
+ children: [
36
+ c.title || x ? n(o, {
37
+ sx: {
38
+ display: "flex",
39
+ alignItems: "center",
40
+ gap: .5,
41
+ minWidth: 0,
42
+ paddingBottom: .5
43
+ },
44
+ children: [r(m, {
45
+ variant: "subtitle2",
46
+ component: "div",
47
+ noWrap: !0,
48
+ sx: {
49
+ flex: "1 1 auto",
50
+ minWidth: 0
51
+ },
52
+ children: c.title
53
+ }), x]
54
+ }) : null,
55
+ k.length > 1 ? r(d, {
56
+ value: W.key,
57
+ onChange: (t, e) => g(e),
58
+ variant: "scrollable",
59
+ scrollButtons: "auto",
60
+ allowScrollButtonsMobile: !0,
61
+ sx: {
62
+ minHeight: 0,
63
+ flexShrink: 0,
64
+ borderBottom: (t) => `1px solid ${t.palette.divider}`,
65
+ "& .MuiTab-root": {
66
+ textTransform: "none",
67
+ whiteSpace: "nowrap",
68
+ minHeight: 0,
69
+ minWidth: 0,
70
+ flex: "1 0 auto",
71
+ padding: "8px 4px"
72
+ }
73
+ },
74
+ children: k.map((t) => r(s, {
75
+ value: t.key,
76
+ label: t.label
77
+ }, t.key))
78
+ }) : null,
79
+ b ? r(m, {
80
+ variant: "caption",
81
+ color: "error",
82
+ role: "alert",
83
+ sx: { paddingTop: 1 },
84
+ children: b
85
+ }) : null,
86
+ W ? r(o, {
87
+ "data-format-tab": W.key,
88
+ sx: {
89
+ ...t,
90
+ gap: 2,
91
+ paddingTop: (t) => t.spacing(k.length > 1 ? 2 : 1)
92
+ },
93
+ children: r(e, {
94
+ fields: W.fields(),
95
+ sheet: u,
96
+ disabled: c.disabled,
97
+ run: y
98
+ })
99
+ }) : null
100
+ ]
101
+ });
102
+ };
103
+ export { p as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
- import { w as e } from "./index.mjs";
7
+ import { T as e } from "./index.mjs";
8
8
  import { ReactUtils as t } from "@sheetxl/utils-react";
9
9
  import { Component as n, PureComponent as i, memo as s, useCallback as r, useLayoutEffect as o, useState as a } from "react";
10
10
  import { jsx as l, jsxs as h } from "react/jsx-runtime";
@@ -0,0 +1,461 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: MIT
6
+ */
7
+ import { IFill as e } from "@sheetxl/sdk";
8
+ import { PresetChartType as t, presetChartTypeDescriptor as a } from "@sheetxl/react";
9
+ var r = (e) => !0 === e.isList, s = (e) => /^(xyscatter|bubble)/.test(e.getChartType()), n = (e, t) => {
10
+ const a = t.getChart(), r = t.getPath(), l = t.getParent(), i = () => l ? n(e, l) : "", o = Number(r.split("/").pop());
11
+ switch (t.getElementType()) {
12
+ case "chartArea": return e("chart.pane.element.chartArea");
13
+ case "title": return e("chart.pane.element.title");
14
+ case "legend": return e("chart.pane.element.legend");
15
+ case "legendEntry": return e("chart.pane.element.legendEntry", { index: o + 1 });
16
+ case "plotArea": return e("chart.pane.element.plotArea");
17
+ case "dataTable": return e("chart.pane.element.dataTable");
18
+ case "axis": return ((e, t, a) => {
19
+ const [, r, n] = a.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(t), i = "category" === n ? !l : "value" !== n || l, o = "series" === n ? e("chart.pane.axisKind.series") : s(t) || "value" === n ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), c = e("chart.pane.axis", {
20
+ side: e(i ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
21
+ kind: o
22
+ });
23
+ return "secondary" === r ? e("chart.pane.secondary", { label: c }) : c;
24
+ })(e, a, r);
25
+ case "axisTitle": return e("chart.pane.element.axisTitle", { axis: i() });
26
+ case "gridlines": return r.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: i() }) : e("chart.pane.element.majorGridlines", { axis: i() });
27
+ case "series": return e("chart.pane.element.series", { name: t.getName() ?? e("chart.pane.seriesDefault", { index: a.getSeries().indexOf(t) + 1 }) });
28
+ case "point": return e("chart.pane.element.point", {
29
+ series: i(),
30
+ index: o + 1
31
+ });
32
+ case "marker": return e("chart.pane.element.marker", { owner: i() });
33
+ case "dataLabels": return "series" === l?.getElementType() ? e("chart.pane.element.dataLabels", { series: i() }) : e("chart.pane.element.allDataLabels");
34
+ case "dataLabel": return e("chart.pane.element.dataLabel", { point: i() });
35
+ case "trendline": return e("chart.pane.element.trendline", {
36
+ series: i(),
37
+ index: o + 1
38
+ });
39
+ case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: i() });
40
+ case "errorBars": return r.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: i() }) : e("chart.pane.element.yErrorBars", { series: i() });
41
+ case "chartGroup": return e("chart.pane.element.group", { index: o + 1 });
42
+ case "upDownBars": return e("chart.pane.element.upDownBars");
43
+ case "hiLoLines": return e("chart.pane.element.hiLoLines");
44
+ case "dropLines": return e("chart.pane.element.dropLines");
45
+ case "seriesLines": return e("chart.pane.element.seriesLines");
46
+ default: return r;
47
+ }
48
+ }, l = [
49
+ ["category", "primary"],
50
+ ["value", "primary"],
51
+ ["series", "primary"],
52
+ ["category", "secondary"],
53
+ ["value", "secondary"]
54
+ ], i = [
55
+ t.Column,
56
+ t.ColumnStacked,
57
+ t.ColumnStackedPercent,
58
+ t.Line,
59
+ t.LineStacked,
60
+ t.LineStackedPercent,
61
+ t.LineMarkers,
62
+ t.LineStackedMarkers,
63
+ t.LineStackedPercentMarkers,
64
+ t.Pie,
65
+ t.PieDoughnut,
66
+ t.Bar,
67
+ t.BarStacked,
68
+ t.BarStackedPercent,
69
+ t.Area,
70
+ t.AreaStacked,
71
+ t.AreaStackedPercent,
72
+ t.ScatterMarkers,
73
+ t.ScatterLinesMarkersSmooth,
74
+ t.ScatterLinesMarkers,
75
+ t.ScatterLinesSmooth,
76
+ t.ScatterLines
77
+ ].map(a), o = (t) => t.getType() === e.Type.Solid ? t.getColor().toCSS() : null, c = (e) => e.trim().replace(/^=/, ""), d = /^(column|bar|line|area|xyscatter|bubble)/, p = (e, t, a) => {
78
+ const r = (e, t, a, r, s) => ({
79
+ type: "flag",
80
+ key: e,
81
+ label: t,
82
+ get: a,
83
+ set: r,
84
+ ...s
85
+ }), p = (e, a, r, s) => ({
86
+ id: e.getPath(),
87
+ kind: a,
88
+ label: r,
89
+ name: n(t, e),
90
+ element: e,
91
+ leaf: !0,
92
+ fields: () => [],
93
+ children: () => [],
94
+ ...s
95
+ }), g = (e, t, a) => p(e, "toggle", t, {
96
+ toggle: {
97
+ get: () => e.getVisible(),
98
+ set: (t) => {
99
+ e.setVisible(t);
100
+ }
101
+ },
102
+ ...a
103
+ }), h = (e, a) => ({
104
+ id: e.getPath(),
105
+ kind: "toggle",
106
+ label: a,
107
+ name: n(t, e),
108
+ element: e,
109
+ toggle: {
110
+ get: () => e.getVisible(),
111
+ set: (t) => {
112
+ e.setVisible(t);
113
+ }
114
+ },
115
+ fields: () => [{
116
+ type: "text",
117
+ key: "text",
118
+ label: t("chart.pane.titleText"),
119
+ get: () => e.getText() ?? "",
120
+ set: (t) => {
121
+ e.setText(t || null);
122
+ }
123
+ }],
124
+ children: () => []
125
+ }), u = (a) => ({
126
+ id: a.getPath(),
127
+ kind: "secondary" === a.getAxisGroup() ? "derived" : "toggle",
128
+ label: n(t, a),
129
+ name: n(t, a),
130
+ element: a,
131
+ toggle: {
132
+ get: () => a.getVisible(),
133
+ set: (e) => {
134
+ a.setVisible(e);
135
+ }
136
+ },
137
+ fields: () => {
138
+ if ("value" === a.getKind() || "series" === a.getKind() || s(e)) return [];
139
+ const r = a.getAxisGroup();
140
+ return [{
141
+ type: "formula",
142
+ key: "categories",
143
+ label: t("chart.pane.categories"),
144
+ get: () => e.getSeries().find((e) => e.getAxisGroup() === r)?.getCategoriesFormula() ?? "",
145
+ set: (e) => {
146
+ a.setCategoryNames(c(e));
147
+ }
148
+ }];
149
+ },
150
+ children: () => [
151
+ p(a, "toggle", t("chart.pane.row.labels"), {
152
+ id: `${a.getPath()}:labels`,
153
+ tab: "labels",
154
+ toggle: {
155
+ get: () => "none" !== a.getTickLabelPosition(),
156
+ set: (e) => {
157
+ a.setTickLabelPosition(e ? "nextToAxis" : "none");
158
+ }
159
+ }
160
+ }),
161
+ h(a.getTitle(), t("chart.pane.row.title")),
162
+ g(a.getMajorGridlines(), t("chart.pane.row.majorGridlines")),
163
+ g(a.getMinorGridlines(), t("chart.pane.row.minorGridlines"))
164
+ ]
165
+ }), m = (a) => a.getName() ?? t("chart.pane.seriesDefault", { index: e.getSeries().indexOf(a) + 1 }), y = (e) => /^(line|xyscatter|radar)/.test(e) && "radarFilled" !== e, b = (e) => p(e, "toggle", t("chart.pane.row.marker"), { toggle: {
166
+ get: () => "none" !== e.getSymbol(),
167
+ set: (t) => {
168
+ e.setSymbol(t ? "automatic" : "none");
169
+ }
170
+ } }), x = /^(column|bar|line|pie|doughnut|xyscatter|bubble|radar|waterfall)|OfPie$/, k = (e) => {
171
+ const r = e.getPoints(), s = () => {
172
+ const a = [];
173
+ return r.forEach((r, s) => {
174
+ a.push(((e, a, r) => {
175
+ const s = a.getIndex(), l = e.getChartType();
176
+ return {
177
+ id: a.getPath(),
178
+ kind: "item",
179
+ label: null === r ? t("chart.pane.row.point", { index: s + 1 }) : t("chart.pane.row.pointValue", {
180
+ index: s + 1,
181
+ value: r
182
+ }),
183
+ name: n(t, a),
184
+ element: a,
185
+ remove: () => {
186
+ a.clear();
187
+ },
188
+ fields: () => [],
189
+ children: () => {
190
+ if (/^waterfall/.test(l)) return [];
191
+ const e = [];
192
+ y(l) && e.push(b(a.getMarker()));
193
+ const r = a.getDataLabel();
194
+ return e.push(p(r, "toggle", t("chart.pane.row.dataLabel"), { toggle: {
195
+ get: () => a.getHasDataLabel(),
196
+ set: (e) => {
197
+ a.setHasDataLabel(e);
198
+ }
199
+ } })), e;
200
+ },
201
+ leaf: /^waterfall/.test(l)
202
+ };
203
+ })(e, s.getPoint(), r));
204
+ }, {
205
+ overridesOnly: !0,
206
+ reuseContext: !0
207
+ }), a;
208
+ };
209
+ return x.test(e.getChartType()) || 0 !== s().length ? {
210
+ id: `${e.getPath()}/points`,
211
+ label: t("chart.pane.row.points"),
212
+ add: r.getCount() > 0 ? () => {
213
+ const e = r.add();
214
+ return a?.select(e), e.getPath();
215
+ } : void 0,
216
+ addLabel: t("chart.pane.addCustomPoint"),
217
+ items: s,
218
+ isList: !0
219
+ } : null;
220
+ }, L = (e) => {
221
+ const a = e.getPath();
222
+ return {
223
+ id: a,
224
+ kind: "item",
225
+ label: m(e),
226
+ name: n(t, e),
227
+ element: e,
228
+ remove: () => {
229
+ e.delete();
230
+ },
231
+ order: {
232
+ get: () => e.getPlotOrder(),
233
+ set: (t) => {
234
+ e.setPlotOrder(t);
235
+ }
236
+ },
237
+ swatch: () => ((e) => {
238
+ const t = e.getStyle(), a = o(t.getStroke().getFill()), r = o(t.getFill());
239
+ return /^(line|xyscatter|radar)/.test(e.getChartType()) ? a ?? r : r ?? a;
240
+ })(e),
241
+ type: {
242
+ get: () => e.getChartType(),
243
+ set: (t) => {
244
+ e.setChartType(t);
245
+ },
246
+ options: () => ((e) => {
247
+ const a = i.map((e) => ({
248
+ type: e.type,
249
+ label: t(e.description)
250
+ })), r = e.getChartType();
251
+ return a.some((e) => e.type === r) || a.unshift({
252
+ type: r,
253
+ label: r
254
+ }), a;
255
+ })(e)
256
+ },
257
+ fields: () => {
258
+ const a = e.getChartType(), s = /^(xyscatter|bubble)/.test(a), n = [{
259
+ type: "formula",
260
+ key: "name",
261
+ label: t("chart.pane.seriesName"),
262
+ literal: !0,
263
+ get: () => {
264
+ const t = e.getNameFormula();
265
+ return t ? `=${t}` : e.getName() ?? "";
266
+ },
267
+ set: (t) => {
268
+ e.setName(t.trim() || null);
269
+ }
270
+ }, {
271
+ type: "formula",
272
+ key: "values",
273
+ label: t(s ? "chart.pane.seriesYValues" : "chart.pane.seriesValues"),
274
+ get: () => e.getValuesFormula() ?? "",
275
+ set: (t) => {
276
+ e.setValues(c(t));
277
+ }
278
+ }];
279
+ return s && n.push({
280
+ type: "formula",
281
+ key: "xValues",
282
+ label: t("chart.pane.seriesXValues"),
283
+ get: () => e.getCategoriesFormula() ?? "",
284
+ set: (t) => {
285
+ e.setXAxisValues(c(t) || null);
286
+ }
287
+ }), /^bubble/.test(a) && n.push({
288
+ type: "formula",
289
+ key: "sizes",
290
+ label: t("chart.pane.seriesSizes"),
291
+ get: () => e.getBubbleSizesFormula() ?? "",
292
+ set: (t) => {
293
+ e.setBubbleSizes(c(t));
294
+ }
295
+ }), n.push(r("secondaryAxis", t("chart.pane.secondaryAxis"), () => "secondary" === e.getAxisGroup(), (t) => {
296
+ e.setAxisGroup(t ? "secondary" : "primary");
297
+ })), n;
298
+ },
299
+ children: () => {
300
+ const r = e.getChartType(), s = [];
301
+ y(r) && s.push(b(e.getMarker())), s.push(g(e.getDataLabels(), t("chart.pane.row.dataLabels")));
302
+ const l = d.test(r), i = e.getXErrorBars();
303
+ (/^(xyscatter|bubble)/.test(r) || i.getVisible()) && s.push(g(i, t("chart.pane.row.xErrorBars")));
304
+ const o = e.getYErrorBars();
305
+ (l || o.getVisible()) && s.push(g(o, t("chart.pane.row.yErrorBars")));
306
+ const c = /^(line|stock)/.test(r), h = (a, r) => {
307
+ (r || a.getVisible()) && s.push(((e, a) => g(a, n(t, a), {
308
+ id: `${e.getPath()}:${a.getPath()}`,
309
+ kind: "derived"
310
+ }))(e, a));
311
+ };
312
+ h(e.getUpDownBars(), c), h(e.getHiLoLines(), c), h(e.getDropLines(), c || /^area/.test(r)), h(e.getSeriesLines(), /^(column|bar)Stacked/.test(r) || /OfPie$/.test(r));
313
+ const u = k(e);
314
+ u && s.push(u);
315
+ const m = e.getTrendlines();
316
+ return (l && !/Stacked/.test(r) || m.length > 0) && s.push({
317
+ id: `${a}/trendlines`,
318
+ label: t("chart.pane.row.trendlines"),
319
+ add: () => {
320
+ e.addChartTrendline();
321
+ },
322
+ addLabel: t("chart.pane.addTrendline"),
323
+ items: () => e.getTrendlines().map((e, a) => p(e, "item", t("chart.pane.row.trendline", { index: a + 1 }), { remove: () => {
324
+ e.delete();
325
+ } })),
326
+ isList: !0
327
+ }), s;
328
+ }
329
+ };
330
+ }, f = e.getTitle(), S = e.getLegend(), C = e.getDataTable(), T = e.getPlotArea(), w = () => ({
331
+ id: "data/cells",
332
+ kind: "always",
333
+ label: t("chart.pane.row.hiddenAndEmpty"),
334
+ name: t("chart.pane.row.hiddenAndEmpty"),
335
+ element: null,
336
+ fields: () => {
337
+ const a = e.getDisplayBlanksAs(), s = ["notPlotted", "zero"];
338
+ return (e.getSeries().some((e) => /^(line|xyscatter|radar)/.test(e.getChartType())) || "interplotted" === a) && s.push("interplotted"), [
339
+ {
340
+ type: "choice",
341
+ key: "emptyCells",
342
+ label: t("chart.pane.emptyCells"),
343
+ options: s,
344
+ labels: {
345
+ notPlotted: t("chart.pane.emptyCellsAs.gaps"),
346
+ zero: t("chart.pane.emptyCellsAs.zero"),
347
+ interplotted: t("chart.pane.emptyCellsAs.connect")
348
+ },
349
+ get: () => a,
350
+ set: (t) => {
351
+ e.setDisplayBlanksAs(t);
352
+ }
353
+ },
354
+ r("naAsEmpty", t("chart.pane.naAsEmpty"), () => e.getDisplayNaAsBlank(), (t) => {
355
+ e.setDisplayNaAsBlank(t);
356
+ }),
357
+ r("hiddenCells", t("chart.pane.hiddenCells"), () => !e.getPlotVisibleOnly(), (t) => {
358
+ e.setPlotVisibleOnly(!t);
359
+ })
360
+ ];
361
+ },
362
+ children: () => []
363
+ }), P = e.getAxes();
364
+ return [
365
+ {
366
+ id: "section/data",
367
+ label: t("chart.pane.section.data"),
368
+ items: () => [w()],
369
+ isList: !0
370
+ },
371
+ {
372
+ id: "section/series",
373
+ label: t("chart.pane.section.series"),
374
+ add: () => e.addSeries().getPath(),
375
+ addLabel: t("chart.pane.addSeries"),
376
+ items: () => e.getSeries().map(L),
377
+ isList: !0
378
+ },
379
+ {
380
+ id: "section/axes",
381
+ label: t("chart.pane.section.axes"),
382
+ empty: t("chart.pane.noAxes"),
383
+ items: () => l.map(([e, t]) => P.getChartAxis(e, t)).filter((e) => null !== e).map(u),
384
+ isList: !0
385
+ },
386
+ {
387
+ id: "section/elements",
388
+ label: t("chart.pane.section.elements"),
389
+ items: () => [
390
+ h(f, t("chart.pane.row.title")),
391
+ g(S, n(t, S)),
392
+ g(C, n(t, C)),
393
+ p(T, "always", n(t, T))
394
+ ],
395
+ isList: !0
396
+ }
397
+ ];
398
+ }, g = Object.values(t).map(a), h = (e, t) => {
399
+ const a = e.getDataRange(), r = e.getChartType(), s = g.find((e) => e.type === r);
400
+ return {
401
+ fields: [{
402
+ type: "text",
403
+ key: "name",
404
+ label: t("chart.pane.chartName"),
405
+ get: () => e.getName?.() ?? "",
406
+ set: (t) => {
407
+ t.trim() && e.setName?.(t.trim());
408
+ }
409
+ }, {
410
+ type: "formula",
411
+ key: "range",
412
+ label: t("chart.pane.dataRange"),
413
+ placeholder: a ? void 0 : t("chart.pane.dataRangeBySeries"),
414
+ get: () => a ? `=${((e, t) => {
415
+ const a = e.getFixed(!0).getAddress(!1);
416
+ return a.includes("!") || !t ? a : `${t.slice(0, t.lastIndexOf("!") + 1)}${a}`;
417
+ })(a, e.getSeries()[0]?.getValuesFormula() ?? null)}` : "",
418
+ set: (t) => {
419
+ e.setData(c(t));
420
+ }
421
+ }],
422
+ seriesBy: {
423
+ get: () => e.getSeriesBy(),
424
+ switchLabel: t("chart.pane.switchRowColumn"),
425
+ disabled: !a,
426
+ switch: () => {
427
+ e.setSeriesBy("rows" === e.getSeriesBy() ? "columns" : "rows");
428
+ }
429
+ },
430
+ area: e.getChartArea(),
431
+ type: {
432
+ get: () => r,
433
+ label: "combo" === r ? t("chart.pane.chartTypeCombo") : s ? t(s.description) : r,
434
+ set: (t) => {
435
+ t !== r && e.setChartType(t);
436
+ }
437
+ }
438
+ };
439
+ }, u = (e, t) => {
440
+ const a = (e, t) => {
441
+ for (const a of e.items()) {
442
+ const e = s(a, t);
443
+ if (e) return e;
444
+ }
445
+ return null;
446
+ }, s = (e, n) => {
447
+ const l = [...n, e.id];
448
+ if (e.element === t) return l;
449
+ for (const t of e.children()) {
450
+ const e = r(t) ? a(t, l) : s(t, l);
451
+ if (e) return e;
452
+ }
453
+ return null;
454
+ };
455
+ for (const t of e) {
456
+ const e = a(t, []);
457
+ if (e) return e;
458
+ }
459
+ return null;
460
+ };
461
+ export { r as a, u as i, h as n, n as r, p as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT