@sheetxl/studio-mui 1.0.4 → 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 (149) hide show
  1. package/browser/esm/{N5L4wQxRGEOH_wbp.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
  2. package/browser/esm/{DHmh3sMFGq4sRPhh.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
  3. package/browser/esm/{D_r8MdiauI15ds00.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
  4. package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
  5. package/browser/esm/{jDqohhLNEI6wqjo7.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
  6. package/browser/esm/{CHfzSl32Bs6LVY3G.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
  7. package/browser/esm/{DZngQvRDu3Qh7_uy.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
  8. package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
  9. package/browser/esm/{n1z1c9np4M3gMGCX.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
  10. package/browser/esm/{B4vVBfkY4Oq6M196.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
  11. package/browser/esm/{BH1Qj4pv8pPWZVhO.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
  12. package/browser/esm/{BDSYU5nx_6eGxAa4.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
  13. package/browser/esm/{Cf6bsmEPyPpiNtxU.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
  14. package/browser/esm/{B130jd-PqNgY2pV8.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
  15. package/browser/esm/{B4EWee1CcAHS5vAA.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
  16. package/browser/esm/{CzWXYarhfF4mF8fj.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
  17. package/browser/esm/{CEvJVwoVP9nscIcl.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
  18. package/browser/esm/{CFiyY-_XmW7G0_9y.mjs → C211u9yUXa4149g9.mjs} +1 -1
  19. package/browser/esm/{DoJ8N6FhUY0kYz9u.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
  20. package/browser/esm/{DqP1sKmMsG0tKwmV.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
  21. package/browser/esm/{Cx1r__xbzz-5zZgw.mjs → CA42_0vpQwF292tA.mjs} +1 -1
  22. package/browser/esm/{D1WSqegx9Zbjc-cL.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
  23. package/browser/esm/{k0bdGBFIHCTGANHW.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
  24. package/browser/esm/{DVQZtsBbf_Fsh-B6.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
  25. package/browser/esm/{npsX_Rztx4_7rCGP.mjs → CHb2gapathcPfhdM.mjs} +5 -5
  26. package/browser/esm/{94_olh2OyEbGAcNw.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
  27. package/browser/esm/{BBNFlngSL8Y3242O.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
  28. package/browser/esm/{Me9wSTkBepRyMDHH.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
  29. package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
  30. package/browser/esm/{uV_YgeJoyPa9SdGV.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
  31. package/browser/esm/{D2YXkXpEcP-NqHMv.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
  32. package/browser/esm/{WQaRUnIjMCkaRwsb.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
  33. package/browser/esm/{BQTUWwRUxgqg4s6Y.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
  34. package/browser/esm/{DoYGmNZ_X3Kvxx3K.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
  35. package/browser/esm/{ph1FP1S-yYM0I269.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
  36. package/browser/esm/{BYUokd7Q6y5Xw36U.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
  37. package/browser/esm/{NSuxs1P3kFsoLIMa.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
  38. package/browser/esm/{B0q0gHDAexrBB16B.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
  39. package/browser/esm/{SHaQophNZjobC_4f.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
  40. package/browser/esm/{m5mPoZGqgwOCQQOs.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
  41. package/browser/esm/{B1SDDlETvGUJ2Ipu.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
  42. package/browser/esm/{CWgz8hWLf3OzuMyZ.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
  43. package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
  44. package/browser/esm/{dlNcqumPfehZG2ai.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
  45. package/browser/esm/{BrFq6SNq-qx1PYZO.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
  46. package/browser/esm/{BMIfZN_dgjS_p-pF.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
  47. package/browser/esm/{BESsacbR41SalUJv.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
  48. package/browser/esm/{CbCTAkfOjIThF31A.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
  49. package/browser/esm/{a7OD-X4Jjp810Y6v.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
  50. package/browser/esm/{1JW5qOuAMlejsOrm.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
  51. package/browser/esm/{DlZoddGNGipM3S72.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
  52. package/browser/esm/{MR6LXUjaCV0DShNi.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
  53. package/browser/esm/{CbC8ObddTe-7ix6F.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
  54. package/browser/esm/{DGz8aGpEm8yfccoW.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
  55. package/browser/esm/index.mjs +299 -299
  56. package/browser/esm/{dikVMLRWr5g6T0E7.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
  57. package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
  58. package/browser/esm/{Bz6OaRkDOpj807bi.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
  59. package/browser/esm/{DVXQrjSOGoB23arZ.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/{D8RzgRnl0S1-W_Tx.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
  63. package/browser/esm/{wwSpRKFXL9eeyQND.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
  64. package/browser/esm/{B0ymykpoTxxHQosi.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
  65. package/licenses/dependencies.txt +33 -33
  66. package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
  67. package/node/esm/{B_7rer9pnurpMB9J.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
  68. package/node/esm/{DGieA81teTm8uNPr.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
  69. package/node/esm/{DF5w_ZBWiRtITKLQ.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
  70. package/node/esm/{BedAzhQqTjs4BBb4.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
  71. package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
  72. package/node/esm/{C4esZkRHnb4HEK3k.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
  73. package/node/esm/{DHrxhle3aK3XU-Jz.mjs → BghhH54dXAqciBpw.mjs} +2 -2
  74. package/node/esm/{Diu9L9DJzZCMtFb4.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
  75. package/node/esm/{mHNl4j2rIZTqcQqb.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
  76. package/node/esm/{BBRSP-QRw-F0qQdJ.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
  77. package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
  78. package/node/esm/{BRICG2VkglJJKy0X.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
  79. package/node/esm/{Cr94rxP9x4CWSBhF.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
  80. package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
  81. package/node/esm/{qYIPGp0bxwW5i6Tn.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
  82. package/node/esm/{vTyr2di6cTC3sA1F.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
  83. package/node/esm/{BRpSVGr1A8w4AG_c.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
  84. package/node/esm/{B1CcqB7Ue-EPkdE-.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
  85. package/node/esm/{Bwtmjq_jln0eMEMe.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
  86. package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
  87. package/node/esm/{MNdDR5PA6J1YEtyL.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
  88. package/node/esm/{D13aAzbfNwj50sqn.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
  89. package/node/esm/{4mAgDExCti1oMAez.mjs → D283LXrMqi3exI_l.mjs} +1 -1
  90. package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
  91. package/node/esm/{CBes_pLI-7rJsre4.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
  92. package/node/esm/{CJszsuCXRBPNuT1A.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
  93. package/node/esm/{Bm31UyWMCsJ7z4wJ.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
  94. package/node/esm/{Bz0uw5YbQGvhlPhZ.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
  95. package/node/esm/{D2eYMCx5eAEJsfP6.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
  96. package/node/esm/{BSZ0bAJn4ODpGusx.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
  97. package/node/esm/{suDXa2UiBKJB4nsR.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
  98. package/node/esm/{pm_LpeNYjo6Aahu3.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
  99. package/node/esm/{D__UzirlxQlq32Rm.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
  100. package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
  101. package/node/esm/{DlSfkSNLCwzofCfS.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
  102. package/node/esm/{C1y7Z0K9Ougef8dU.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
  103. package/node/esm/{DXQFo_r4CCCvIubP.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
  104. package/node/esm/{n5-pWzwq4pDS4adG.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
  105. package/node/esm/index.mjs +3294 -3031
  106. package/node/esm/{B7_-3nxcN-ZSDQVT.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
  107. package/node/esm/{DvlZnGlon5gwQBxU.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
  108. package/node/esm/{9e9_OZYxc0ATDkNI.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
  109. package/package.json +9 -9
  110. package/resources/locales/de/groups.cmd.json +4 -6
  111. package/resources/locales/de/ui.msg.json +164 -3
  112. package/resources/locales/en/groups.cmd.json +4 -6
  113. package/resources/locales/en/ui.msg.json +164 -3
  114. package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
  115. package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
  116. package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
  117. package/types/src/chart/ChartFormatPanel.d.ts +12 -14
  118. package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
  119. package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
  120. package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
  121. package/types/src/chart/command/index.d.ts +2 -0
  122. package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
  123. package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
  124. package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
  125. package/types/src/color/ColorSetSwatch.d.ts +34 -0
  126. package/types/src/color/index.d.ts +1 -0
  127. package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
  128. package/types/src/format/FillPanel.d.ts +1 -3
  129. package/types/src/format/FormatPanelParts.d.ts +2 -2
  130. package/types/src/format/FormatPlugin.d.ts +2 -2
  131. package/types/src/format/FormatTaskPane.d.ts +4 -10
  132. package/types/src/format/LinePanel.d.ts +0 -2
  133. package/types/src/format/editor/FormatEditor.d.ts +36 -0
  134. package/types/src/format/editor/FormatField.d.ts +97 -0
  135. package/types/src/format/editor/FormatFields.d.ts +20 -0
  136. package/types/src/format/editor/index.d.ts +4 -0
  137. package/types/src/format/index.d.ts +1 -0
  138. package/types/src/format/useFormatSelection.d.ts +0 -2
  139. package/types/src/index.d.ts +1 -1
  140. package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
  141. package/types/src/workbook/DefaultRenderers.d.ts +7 -1
  142. package/browser/esm/39iN4gKrFnhPhM1Z.mjs +0 -517
  143. package/browser/esm/BWXXi0teArfwa70E.mjs +0 -72
  144. package/browser/esm/J519wp1_d0QjzPfN.mjs +0 -516
  145. package/node/esm/Bc2iZ6Qs3kHdsECK.mjs +0 -1831
  146. package/node/esm/BvKg2K2J7Us2czkC.mjs +0 -519
  147. package/node/esm/CwQPIQaC6CcVGkD2.mjs +0 -73
  148. package/node/esm/CyQekcyEfM7Engbk.mjs +0 -516
  149. package/types/src/studio/StudioSplitPane.d.ts +0 -60
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.4
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 "./a7OD-X4Jjp810Y6v.mjs";
7
+ import { t as e } from "./JNoXh3IYri5h1W3Y.mjs";
8
8
  import { Color as t, IBorders as n, IColor as r, ITheme as i } from "@sheetxl/sdk";
9
9
  import { StyledStrokePath as a } from "@sheetxl/react";
10
10
  import { DynamicIcon as o, KeyCodes as s, ReactUtils as c, lazyComponent as l, useCallbackRef as u, useTranslator as d } from "@sheetxl/utils-react";
@@ -19,7 +19,98 @@ var oe = {
19
19
  }, I = {
20
20
  Start: "start",
21
21
  End: "end"
22
- }, se = m((t) => {
22
+ }, se = 5, L = (e) => ({
23
+ position: "relative",
24
+ borderRadius: "5px",
25
+ overflow: "hidden",
26
+ "&::after": {
27
+ content: "\"\"",
28
+ position: "absolute",
29
+ inset: 0,
30
+ border: `1px solid ${e.palette.divider}`,
31
+ borderRadius: "inherit",
32
+ pointerEvents: "none"
33
+ }
34
+ }), ce = {
35
+ medium: {
36
+ side: 24,
37
+ step: 22,
38
+ radius: 5,
39
+ ring: 2
40
+ },
41
+ icon: {
42
+ side: 16,
43
+ step: 10,
44
+ radius: 4,
45
+ ring: 1.5
46
+ }
47
+ }, R = {
48
+ medium: {
49
+ height: 24,
50
+ radius: 5
51
+ },
52
+ icon: {
53
+ height: 16,
54
+ radius: 4
55
+ }
56
+ }, z = (e, t, n, r) => `M${e + r},${t} h${n - 2 * r} a${r},${r} 0 0 1 ${r},${r} v${n - 2 * r} a${r},${r} 0 0 1 -${r},${r} h-${n - 2 * r} a${r},${r} 0 0 1 -${r},-${r} v-${n - 2 * r} a${r},${r} 0 0 1 ${r},-${r} z`, B = m((e) => {
57
+ let { colors: t, labels: n, variant: r = "chips", size: i = "medium", style: a } = e, o = re(), s = r === "ramp", c = ce[i], l = R[i], u = Math.max(0, t.length - 1) * c.step + c.side, d = u / Math.max(1, t.length), f = s ? l.height : c.side, p = (e) => n?.[e] ? k("title", { children: n[e] }) : null;
58
+ return k("svg", {
59
+ viewBox: `0 0 ${u} ${f}`,
60
+ "aria-hidden": !n || void 0,
61
+ focusable: !1,
62
+ "data-variant": r,
63
+ style: {
64
+ ...i === "icon" ? {
65
+ display: "block",
66
+ height: "var(--icon-size, 16px)",
67
+ width: "auto",
68
+ aspectRatio: `${u} / ${f}`,
69
+ marginRight: "4px"
70
+ } : {
71
+ display: "block",
72
+ width: u,
73
+ height: f,
74
+ flex: "none"
75
+ },
76
+ ...s ? {
77
+ borderRadius: l.radius,
78
+ overflow: "hidden"
79
+ } : { overflow: "visible" },
80
+ ...a
81
+ },
82
+ children: t.map((e, t) => {
83
+ if (s) return k("rect", {
84
+ x: t * d,
85
+ y: 0,
86
+ width: d,
87
+ height: l.height,
88
+ fill: e,
89
+ children: p(t)
90
+ }, t);
91
+ let n = t * c.step + c.ring / 2, r = c.side - c.ring;
92
+ return A("g", { children: [k("rect", {
93
+ x: n,
94
+ y: c.ring / 2,
95
+ width: r,
96
+ height: r,
97
+ rx: c.radius,
98
+ fill: e,
99
+ stroke: o.palette.background.paper,
100
+ strokeWidth: c.ring,
101
+ children: p(t)
102
+ }), k("path", {
103
+ d: z(n + c.ring / 2, c.ring, r - c.ring, Math.max(1, c.radius - c.ring / 2)),
104
+ fill: "none",
105
+ stroke: o.palette.divider,
106
+ strokeWidth: 1,
107
+ pointerEvents: "none"
108
+ })] }, t);
109
+ })
110
+ });
111
+ });
112
+ B.displayName = "ColorSetSwatch";
113
+ var le = m((t) => {
23
114
  let { selectedColor: n, onSelectColor: r, onPreviewColor: i, onClick: a, onKeyDown: o, onMouseOver: l, onMouseLeave: u, onFocus: d, style: f = c.EmptyCssProperties, children: p, alphaWhite: m, alphaGrey: g, darkMode: v, alphaCheckSize: y = 7, ...b } = t;
24
115
  if (!n) throw Error("a selectedColor is required");
25
116
  let x = h((e) => {
@@ -95,7 +186,7 @@ var oe = {
95
186
  children: p
96
187
  })]
97
188
  });
98
- }), L = m((e) => {
189
+ }), ue = m((e) => {
99
190
  let { schemeColorLookup: n, selectedColor: i, previewColor: a, colorDef: o, onSelectColorDef: s, onPreviewColorDef: c, propsSwatch: l, defaultButtonSize: u = 24, isLarge: d = !1, compareRGB: f = !1, darkMode: p = !1, ...m } = e, g = new t({
100
191
  val: o.definition.val,
101
192
  adjs: o.definition.adjs
@@ -132,7 +223,7 @@ var oe = {
132
223
  outline: "none"
133
224
  },
134
225
  ...m,
135
- children: A(se, {
226
+ children: A(le, {
136
227
  selectedColor: g,
137
228
  title: void 0,
138
229
  onSelectColor: S,
@@ -150,6 +241,7 @@ var oe = {
150
241
  borderColor: x,
151
242
  borderWidth: "2px",
152
243
  borderStyle: "solid",
244
+ borderRadius: "5px",
153
245
  boxSizing: "border-box",
154
246
  opacity: v ? "1" : "0"
155
247
  } }), k("div", { style: {
@@ -167,7 +259,7 @@ var oe = {
167
259
  })
168
260
  })
169
261
  });
170
- }), R = m((e) => {
262
+ }), V = m((e) => {
171
263
  let { title: t, schemeColorLookup: n, colorDefs: r, selectedColor: i, previewColor: a, onSelectColorDef: o, onPreviewColorDef: s, style: l = c.EmptyCssProperties, compareRGB: u = !1, darkMode: d, propsSwatch: f, ...p } = e, m;
172
264
  if (Array.isArray(r[0])) m = r;
173
265
  else {
@@ -184,7 +276,7 @@ var oe = {
184
276
  let r = [], o = m[t];
185
277
  for (let e = 0; e < o.length; e++) {
186
278
  let s = o[e];
187
- r.push(k(L, {
279
+ r.push(k(ue, {
188
280
  schemeColorLookup: n,
189
281
  colorDef: s,
190
282
  selectedColor: i,
@@ -198,14 +290,12 @@ var oe = {
198
290
  }
199
291
  let s = k(j, {
200
292
  className: "button-col",
201
- sx: {
293
+ sx: (e) => ({
202
294
  display: "flex",
203
295
  flexDirection: "column",
204
296
  justifyContent: "space-between",
205
- boxShadow: (e) => e.shadows[2],
206
- borderRadius: "2px",
207
- overflow: "hidden"
208
- },
297
+ ...L(e)
298
+ }),
209
299
  children: r
210
300
  }, "" + t);
211
301
  e.push(s);
@@ -246,14 +336,14 @@ var oe = {
246
336
  children: y
247
337
  })]
248
338
  });
249
- }), z = (e, t) => ({
250
- description: e,
251
- definition: {
252
- val: t,
253
- adjs: []
254
- }
255
- }), B = (e, n, r, i, a, o) => {
256
- let s = z(e, n);
339
+ }), H = (e, n, r, i, a, o) => {
340
+ let s = ((e, t) => ({
341
+ description: e,
342
+ definition: {
343
+ val: t,
344
+ adjs: []
345
+ }
346
+ }))(e, n);
257
347
  i?.push(s);
258
348
  let c = new t({
259
349
  val: s.definition.val,
@@ -262,12 +352,12 @@ var oe = {
262
352
  a?.set(l, c);
263
353
  let u = c.toRGBA().toString();
264
354
  o?.set(u, c);
265
- }, ce = l(F("studio:customColorPanel", () => import("./DoYGmNZ_X3Kvxx3K.mjs")).load, { renderError: ({ error: e }) => k(w, { error: e }) }), V = m(p((e, n) => {
266
- let { selectedColor: r = null, previewColor: a = e.selectedColor ?? null, recentColors: s, schemeLookup: c, disableAlpha: l = !1, previewDebounceTime: p = 100, initialPanelType: m, defaultButtonSize: v = 24, width: x, onElementLoad: S, onDone: C, onEyeDropStart: w, onEyeDropStop: T, onPreviewColor: E, onPreviewColorImmediate: D, onSelectColor: P, autoColor: F, autoColorLabel: se, autoColorLabelKey: z, autoColorPosition: V = I.Start, compareRGB: H = !1, darkMode: U = !1, style: W, ...G } = e, K = d(), le = se ?? K(z ?? ae("color.automatic")), ue = a || r, de = u(E ?? ((e) => {}), [E]), fe = u(D ?? ((e) => {}), [D]), pe = u(P ?? ((e, t) => {}), [P]), me = u(w ?? (() => {}), [w]), he = u(T ?? (() => {}), [T]), [ge, _e] = y(!1), ve = re(), q = _(() => c || t.getDefaultSchemeLookup(), [c]), J = _(() => {
355
+ }, de = l(F("studio:customColorPanel", () => import("./CpgoYQ3P-S7njA7p.mjs")).load, { renderError: ({ error: e }) => k(w, { error: e }) }), fe = m(p((e, n) => {
356
+ let { selectedColor: r = null, previewColor: a = e.selectedColor ?? null, recentColors: s, schemeLookup: c, disableAlpha: l = !1, previewDebounceTime: p = 100, initialPanelType: m, defaultButtonSize: v = 24, width: x, onElementLoad: S, onDone: C, onEyeDropStart: w, onEyeDropStop: T, onPreviewColor: E, onPreviewColorImmediate: D, onSelectColor: P, autoColor: F, autoColorLabel: se, autoColorLabelKey: ce, autoColorPosition: R = I.Start, compareRGB: z = !1, darkMode: B = !1, style: le, ...fe } = e, U = d(), pe = se ?? U(ce ?? ae("color.automatic")), W = a || r, G = u(E ?? ((e) => {}), [E]), K = u(D ?? ((e) => {}), [D]), me = u(P ?? ((e, t) => {}), [P]), he = u(w ?? (() => {}), [w]), ge = u(T ?? (() => {}), [T]), [_e, ve] = y(!1), ye = re(), q = _(() => c || t.getDefaultSchemeLookup(), [c]), J = _(() => {
267
357
  let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [];
268
- B(K("color.scheme.bg1"), "bg1", q, n, e, t), B(K("color.scheme.tx1"), "tx1", q, n, e, t), B(K("color.scheme.bg2"), "bg2", q, n, e, t), B(K("color.scheme.tx2"), "tx2", q, n, e, t), B(K("color.scheme.accent", { n: 1 }), "accent1", q, n, e, t), B(K("color.scheme.accent", { n: 2 }), "accent2", q, n, e, t), B(K("color.scheme.accent", { n: 3 }), "accent3", q, n, e, t), B(K("color.scheme.accent", { n: 4 }), "accent4", q, n, e, t), B(K("color.scheme.accent", { n: 5 }), "accent5", q, n, e, t), B(K("color.scheme.accent", { n: 6 }), "accent6", q, n, e, t);
358
+ H(U("color.scheme.bg1"), "bg1", q, n, e, t), H(U("color.scheme.tx1"), "tx1", q, n, e, t), H(U("color.scheme.bg2"), "bg2", q, n, e, t), H(U("color.scheme.tx2"), "tx2", q, n, e, t), H(U("color.scheme.accent", { n: 1 }), "accent1", q, n, e, t), H(U("color.scheme.accent", { n: 2 }), "accent2", q, n, e, t), H(U("color.scheme.accent", { n: 3 }), "accent3", q, n, e, t), H(U("color.scheme.accent", { n: 4 }), "accent4", q, n, e, t), H(U("color.scheme.accent", { n: 5 }), "accent5", q, n, e, t), H(U("color.scheme.accent", { n: 6 }), "accent6", q, n, e, t);
269
359
  let r = i.buildPalette(n, q, e, t), a = [];
270
- if (B(K("color.standard.darkRed"), "C00000", q, a, e, t), B(K("color.standard.red"), "FF0000", q, a, e, t), B(K("color.standard.orange"), "FFC000", q, a, e, t), B(K("color.standard.yellow"), "FFFF00", q, a, e, t), B(K("color.standard.lightGreen"), "92D050", q, a, e, t), B(K("color.standard.green"), "00B050", q, a, e, t), B(K("color.standard.lightBlue"), "00B0F0", q, a, e, t), B(K("color.standard.blue"), "0070C0", q, a, e, t), B(K("color.standard.darkBlue"), "002060", q, a, e, t), l ? B(K("color.standard.purpleFruit"), "7030A0", q, a, e, t) : B(K("color.standard.transparent"), "00000000", q, a, e, t), F) {
360
+ if (H(U("color.standard.darkRed"), "C00000", q, a, e, t), H(U("color.standard.red"), "FF0000", q, a, e, t), H(U("color.standard.orange"), "FFC000", q, a, e, t), H(U("color.standard.yellow"), "FFFF00", q, a, e, t), H(U("color.standard.lightGreen"), "92D050", q, a, e, t), H(U("color.standard.green"), "00B050", q, a, e, t), H(U("color.standard.lightBlue"), "00B0F0", q, a, e, t), H(U("color.standard.blue"), "0070C0", q, a, e, t), H(U("color.standard.darkBlue"), "002060", q, a, e, t), l ? H(U("color.standard.purpleFruit"), "7030A0", q, a, e, t) : H(U("color.standard.transparent"), "00000000", q, a, e, t), F) {
271
361
  let t = F.toString();
272
362
  e.set(t, F);
273
363
  }
@@ -275,7 +365,7 @@ var oe = {
275
365
  for (let e = 0; c && e < c.length; e++) {
276
366
  let t = c[e].toString();
277
367
  o.set(t, c[e]), u.push({
278
- description: K("color.recent", { n: e + 1 }),
368
+ description: U("color.recent", { n: e + 1 }),
279
369
  definition: { val: c[e].toString() }
280
370
  });
281
371
  }
@@ -297,7 +387,7 @@ var oe = {
297
387
  g(() => {
298
388
  S?.();
299
389
  }, []);
300
- let [Y, X] = y(!1), ye = h(() => {
390
+ let [Y, X] = y(!1), be = h(() => {
301
391
  X((e) => !e);
302
392
  }, []);
303
393
  g(() => {
@@ -309,45 +399,45 @@ var oe = {
309
399
  X(!t && !n);
310
400
  }
311
401
  }, [r, m]);
312
- let be = h(ie.debounce((e) => {
313
- de?.(e);
314
- }, p), [de, p]), [xe, Se] = y();
402
+ let xe = h(ie.debounce((e) => {
403
+ G?.(e);
404
+ }, p), [G, p]), [Se, Ce] = y();
315
405
  g(() => {
316
- Se(a || r);
406
+ Ce(a || r);
317
407
  }, [a, r]);
318
- let Ce = u((e) => {
319
- fe && (fe(e), be(e));
320
- }, [fe]), Z = u((e) => {
321
- Ce(e ? new t({
408
+ let we = u((e) => {
409
+ K && (K(e), xe(e));
410
+ }, [K]), Z = u((e) => {
411
+ we(e ? new t({
322
412
  val: e.definition.val,
323
413
  adjs: e.definition.adjs
324
414
  }, q) : null);
325
- }, [q]), we = h((e) => {
415
+ }, [q]), Te = h((e) => {
326
416
  e.ctrlKey && X(!0);
327
- }, []), Te = u((e) => {
417
+ }, []), Ee = u((e) => {
328
418
  let t = !1;
329
419
  if (e) {
330
420
  let n = e.toString();
331
421
  t = !J.mapAllPresets.has(n);
332
422
  }
333
- pe?.(e, t);
334
- }, [pe, J]), Q = u((e) => {
423
+ me?.(e, t);
424
+ }, [me, J]), Q = u((e) => {
335
425
  let n = e ? new t({
336
426
  val: e.definition.val,
337
427
  adjs: e.definition.adjs
338
428
  }, q) : null;
339
429
  Promise.resolve(C?.()).then(() => {
340
- Te(n);
430
+ Ee(n);
341
431
  });
342
- }, [q, C]), Ee = u((e) => {
343
- Ce(e ? new t(e, q) : null);
344
- }, [q]), De = _(() => window.EyeDropper === void 0 ? k(O, {}) : k(ee, {
345
- "aria-label": K("color.eyeDropper"),
432
+ }, [q, C]), De = u((e) => {
433
+ we(e ? new t(e, q) : null);
434
+ }, [q]), Oe = _(() => window.EyeDropper === void 0 ? k(O, {}) : k(ee, {
435
+ "aria-label": U("color.eyeDropper"),
346
436
  size: "small",
347
437
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
348
438
  onClick: async () => {
349
- _e(!0), me?.(), await new EyeDropper().open().then((e) => {
350
- _e(!1), he?.();
439
+ ve(!0), he?.(), await new EyeDropper().open().then((e) => {
440
+ ve(!1), ge?.();
351
441
  let n = new t(e.sRGBHex), r = n.toString(), i = J.mapAllPresets.get(r);
352
442
  if (i ||= (r = n.toRGBA().toString(), J.mapAllPresetsRGB.get(r)), !i) {
353
443
  let e = n.toRGBA();
@@ -356,13 +446,13 @@ var oe = {
356
446
  a < 3 && a < 255 && (i = t);
357
447
  });
358
448
  }
359
- X(!i), Ce(i || n);
449
+ X(!i), we(i || n);
360
450
  }).catch((e) => {
361
- _e(!1), e?.name !== "AbortError" && console.error(e);
451
+ ve(!1), e?.name !== "AbortError" && console.error(e);
362
452
  });
363
453
  },
364
454
  children: k(o, { iconKey: "Colorize" })
365
- }), [J, U]), Oe = _(() => {
455
+ }), [J, B]), ke = _(() => {
366
456
  if (!Y) return;
367
457
  let e = {
368
458
  opacity: Y ? 1 : "0",
@@ -378,20 +468,20 @@ var oe = {
378
468
  style: e,
379
469
  children: k(b, {})
380
470
  }),
381
- children: k(ce, {
471
+ children: k(de, {
382
472
  style: e,
383
- selectedColor: ue ? ue.toRGBA().toString() : "transparent",
384
- onColorChange: Ee,
473
+ selectedColor: W ? W.toRGBA().toString() : "transparent",
474
+ onColorChange: De,
385
475
  disableAlpha: l
386
476
  })
387
477
  });
388
- }, [Y, ue]), $ = _(() => ({
389
- onClick: we,
390
- alphaGrey: ve.palette.text.icon ?? ve.palette.action.active
391
- }), [we, ve]), ke = _(() => {
478
+ }, [Y, W]), $ = _(() => ({
479
+ onClick: Te,
480
+ alphaGrey: ye.palette.text.icon ?? ye.palette.action.active
481
+ }), [Te, ye]), Ae = _(() => {
392
482
  if (!F) return null;
393
483
  let e = {
394
- description: le,
484
+ description: pe,
395
485
  definition: {
396
486
  val: F.getVal(),
397
487
  adjs: F.getAdjustments()
@@ -409,21 +499,19 @@ var oe = {
409
499
  Q(null);
410
500
  },
411
501
  children: [k(j, {
412
- sx: {
502
+ sx: (e) => ({
413
503
  flex: "none",
414
- boxShadow: (e) => e.shadows[2],
415
- borderRadius: (e) => e.spacing(.5),
416
- overflow: "hidden"
417
- },
418
- children: k(L, {
504
+ ...L(e)
505
+ }),
506
+ children: k(ue, {
419
507
  schemeColorLookup: q,
420
508
  colorDef: e,
421
509
  selectedColor: r === null ? F : r,
422
510
  previewColor: a === null ? F : a,
423
511
  defaultButtonSize: v,
424
512
  isLarge: !0,
425
- darkMode: U,
426
- compareRGB: H,
513
+ darkMode: B,
514
+ compareRGB: z,
427
515
  propsSwatch: $
428
516
  })
429
517
  }), k(ne, {
@@ -435,17 +523,17 @@ var oe = {
435
523
  marginLeft: "8px",
436
524
  userSelect: "none"
437
525
  },
438
- children: le
526
+ children: pe
439
527
  })]
440
528
  }) });
441
529
  }, [
442
530
  F,
443
- le,
531
+ pe,
444
532
  q,
445
533
  r,
446
534
  a,
447
- U,
448
- H,
535
+ B,
536
+ z,
449
537
  v,
450
538
  $
451
539
  ]);
@@ -458,8 +546,8 @@ var oe = {
458
546
  overflow: "hidden",
459
547
  boxSizing: "content-box"
460
548
  },
461
- style: W,
462
- ...G,
549
+ style: le,
550
+ ...fe,
463
551
  children: [
464
552
  A("div", {
465
553
  style: {
@@ -469,12 +557,12 @@ var oe = {
469
557
  children: [A("div", {
470
558
  style: { opacity: Y ? "0" : 1 },
471
559
  children: [
472
- ke && V === I.Start ? A(O, { children: [ke, k(N, { style: {
560
+ Ae && R === I.Start ? A(O, { children: [Ae, k(N, { style: {
473
561
  marginTop: "2px",
474
562
  marginBottom: "10px"
475
563
  } })] }) : null,
476
- k(R, {
477
- title: K("color.themeColors"),
564
+ k(V, {
565
+ title: U("color.themeColors"),
478
566
  schemeColorLookup: q,
479
567
  colorDefs: J.primaryColors,
480
568
  selectedColor: r,
@@ -482,10 +570,10 @@ var oe = {
482
570
  propsSwatch: $,
483
571
  onPreviewColorDef: Z,
484
572
  onSelectColorDef: Q,
485
- compareRGB: H,
486
- darkMode: U
573
+ compareRGB: z,
574
+ darkMode: B
487
575
  }),
488
- k(R, {
576
+ k(V, {
489
577
  schemeColorLookup: q,
490
578
  colorDefs: J.modifiedPresets,
491
579
  selectedColor: r,
@@ -493,12 +581,12 @@ var oe = {
493
581
  propsSwatch: $,
494
582
  onPreviewColorDef: Z,
495
583
  onSelectColorDef: Q,
496
- compareRGB: H,
497
- darkMode: U
584
+ compareRGB: z,
585
+ darkMode: B
498
586
  }),
499
587
  k(N, { style: { marginBottom: "10px" } }),
500
- k(R, {
501
- title: K("color.standardColors"),
588
+ k(V, {
589
+ title: U("color.standardColors"),
502
590
  schemeColorLookup: q,
503
591
  colorDefs: J.standardColors,
504
592
  selectedColor: r,
@@ -506,16 +594,16 @@ var oe = {
506
594
  propsSwatch: $,
507
595
  onPreviewColorDef: Z,
508
596
  onSelectColorDef: Q,
509
- compareRGB: H,
510
- darkMode: U
597
+ compareRGB: z,
598
+ darkMode: B
511
599
  }),
512
600
  A("div", {
513
601
  style: {
514
602
  opacity: J.recentColorsLimited.length === 0 ? "0" : void 0,
515
603
  display: J.recentColorsLimited.length === 0 ? "none" : void 0
516
604
  },
517
- children: [k(N, { style: { marginBottom: "10px" } }), k(R, {
518
- title: K("color.recentColors"),
605
+ children: [k(N, { style: { marginBottom: "10px" } }), k(V, {
606
+ title: U("color.recentColors"),
519
607
  schemeColorLookup: q,
520
608
  colorDefs: J.recentColorsLimited,
521
609
  selectedColor: r,
@@ -523,20 +611,20 @@ var oe = {
523
611
  propsSwatch: $,
524
612
  onPreviewColorDef: Z,
525
613
  onSelectColorDef: Q,
526
- compareRGB: H,
527
- darkMode: U
614
+ compareRGB: z,
615
+ darkMode: B
528
616
  })]
529
617
  }),
530
- ke && V === I.End ? A(O, { children: [
618
+ Ae && R === I.End ? A(O, { children: [
531
619
  k(N, { sx: {
532
620
  marginTop: "2px",
533
621
  marginBottom: "2px"
534
622
  } }),
535
- ke,
623
+ Ae,
536
624
  k("div", { style: { marginBottom: "2px" } })
537
625
  ] }) : null
538
626
  ]
539
- }), Oe]
627
+ }), ke]
540
628
  }),
541
629
  k(N, { style: { marginBottom: "10px" } }),
542
630
  A("div", {
@@ -549,7 +637,7 @@ var oe = {
549
637
  paddingRight: "2px"
550
638
  },
551
639
  children: [
552
- De,
640
+ Oe,
553
641
  k("div", { style: { flex: "1 1 0%" } }),
554
642
  A("div", {
555
643
  style: {
@@ -563,7 +651,7 @@ var oe = {
563
651
  variant: "outlined",
564
652
  size: "small",
565
653
  onClick: () => {
566
- ye();
654
+ be();
567
655
  },
568
656
  children: A("span", {
569
657
  style: {
@@ -575,13 +663,13 @@ var oe = {
575
663
  gridArea: "1 / 1",
576
664
  visibility: Y ? "hidden" : "visible"
577
665
  },
578
- children: K("color.custom")
666
+ children: U("color.custom")
579
667
  }), k("span", {
580
668
  style: {
581
669
  gridArea: "1 / 1",
582
670
  visibility: Y ? "visible" : "hidden"
583
671
  },
584
- children: K("color.preset")
672
+ children: U("color.preset")
585
673
  })]
586
674
  })
587
675
  }), k(M, {
@@ -590,18 +678,18 @@ var oe = {
590
678
  style: { minWidth: "75px" },
591
679
  onClick: () => {
592
680
  Promise.resolve(C?.()).then(() => {
593
- Te(xe ?? null);
681
+ Ee(Se ?? null);
594
682
  });
595
683
  },
596
- children: K("color.done")
684
+ children: U("color.done")
597
685
  })]
598
686
  })
599
687
  ]
600
688
  })
601
689
  ]
602
690
  });
603
- })), H = k(o, { iconKey: "circle.colored" }), U = m(p((e, t) => {
604
- let { selectedColor: n, quickColor: r, icon: i = H, tooltip: a, label: c, onPreviewColor: l, onPreviewColorImmediate: d, onSelectColor: f, variant: p = T.Toolbar, propsPanel: m, shouldCloseFloatAll: g = !0, compareRGB: b = !1, darkMode: x = !1, ...w } = e, E = u(l ?? ((e) => {}), [l]), D = u(d ?? ((e) => {}), [d]), O = u(f ?? ((e, t) => {}), [f]), [A, M] = y(() => {}), [N, ee] = y(!1), te = r || (N ? A : void 0) || n || m?.autoColor, P = v(!1), ne = h(() => {
691
+ })), U = k(o, { iconKey: "circle.colored" }), pe = m(p((e, t) => {
692
+ let { selectedColor: n, quickColor: r, icon: i = U, tooltip: a, label: c, onPreviewColor: l, onPreviewColorImmediate: d, onSelectColor: f, variant: p = T.Toolbar, propsPanel: m, shouldCloseFloatAll: g = !0, compareRGB: b = !1, darkMode: x = !1, ...w } = e, E = u(l ?? ((e) => {}), [l]), D = u(d ?? ((e) => {}), [d]), O = u(f ?? ((e, t) => {}), [f]), [A, M] = y(() => {}), [N, ee] = y(!1), te = r || (N ? A : void 0) || n || m?.autoColor, P = v(!1), ne = h(() => {
605
693
  ee(!1);
606
694
  }, []), re = u(() => {
607
695
  M(n), ee(!0);
@@ -632,9 +720,9 @@ var oe = {
632
720
  x
633
721
  ]), I = u((e) => {
634
722
  O?.(r ?? null, !1);
635
- }, [O, r]), [se, L] = y(!1), R = h((e) => {
723
+ }, [O, r]), [se, L] = y(!1), ce = h((e) => {
636
724
  let { closeFloat: t, closeFloatAll: r } = e;
637
- return k(V, {
725
+ return k(fe, {
638
726
  ...m,
639
727
  selectedColor: n,
640
728
  previewColor: A,
@@ -657,9 +745,9 @@ var oe = {
657
745
  te,
658
746
  m?.autoColor,
659
747
  x
660
- ]), z = {
748
+ ]), R = {
661
749
  onQuickClick: r ? I : void 0,
662
- renderPopupPanel: R,
750
+ renderPopupPanel: ce,
663
751
  propsPopup: { propsPopper: { resizeOnOverflow: !1 } },
664
752
  onPopupOpen: re,
665
753
  onPopupClose: ne,
@@ -670,10 +758,10 @@ var oe = {
670
758
  };
671
759
  return p === T.Toolbar ? k(S, {
672
760
  ref: t,
673
- ...z
761
+ ...R
674
762
  }) : k(C, {
675
763
  ref: t,
676
- ...z
764
+ ...R
677
765
  });
678
766
  })), W = 82;
679
767
  function G(e, t) {
@@ -721,7 +809,7 @@ var K = (e) => {
721
809
  className: "activeColor"
722
810
  })
723
811
  });
724
- }, le = m(p((e, t) => {
812
+ }, me = m(p((e, t) => {
725
813
  let { variant: r, showLabels: i = !1, disabled: a, renderPopupPanel: o, styleColor: c, selectedStyle: l, onSelectStyle: f, showNone: p = !0, darkMode: m, sx: g, ...v } = e, y = u(f ?? ((e) => {}), []), b = d(), w = h((e) => {
726
814
  let { popupContainer: t, closeFloat: r, ...o } = e, u = [], d = n.BuiltInDefinitionsArray;
727
815
  for (let e = 0; e < d.length; e++) {
@@ -828,4 +916,4 @@ var K = (e) => {
828
916
  };
829
917
  return r === T.Toolbar ? k(S, { ...E }) : k(C, { ...E });
830
918
  }));
831
- export { z as a, I as c, V as i, oe as l, K as n, R as o, U as r, L as s, le as t };
919
+ export { V as a, B as c, oe as d, fe as i, L as l, K as n, ue as o, pe as r, se as s, me as t, I as u };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.4
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