@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.11

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 (119) hide show
  1. package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
  2. package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
  3. package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
  4. package/browser/esm/{CEvZe2cZK-voZTif.mjs → BXhNFzyEGokTF-BL.mjs} +5 -5
  5. package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
  6. package/browser/esm/{DBtc4lku0uHVcqWn.mjs → BjvD_4t2KGsZP5V8.mjs} +3 -3
  7. package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BknfGJouygmnpFIU.mjs} +4 -4
  8. package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
  9. package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
  10. package/browser/esm/{DHY19rkSiiRZxShC.mjs → Brsh5yscJ_4uKFXp.mjs} +3 -3
  11. package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
  12. package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
  13. package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
  14. package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
  15. package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
  16. package/browser/esm/{CjznclrKqJRi7u9O.mjs → C9pIZVACtl9unFOp.mjs} +2 -2
  17. package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
  18. package/browser/esm/{Blaj2R5hYxtLAW__.mjs → CEtXsBzEjEKk9GOj.mjs} +6 -6
  19. package/browser/esm/{CIu1bjPJe_x31Oww.mjs → COlZu93LRwuBvjE-.mjs} +3 -3
  20. package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → CTjqDD-swFMZzI-Y.mjs} +2 -2
  21. package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
  22. package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
  23. package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → ClBvNPeNCAhuVWrG.mjs} +1 -1
  24. package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
  25. package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
  26. package/browser/esm/{xKiLJKiLxto8SayF.mjs → D3rRUK4dIM5gUSmj.mjs} +2 -2
  27. package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
  28. package/browser/esm/{fb126BNj3F8URR19.mjs → DDc6rDuU9JAo1DH_.mjs} +3 -3
  29. package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
  30. package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → DEv4pIEgYr5C7etm.mjs} +1 -1
  31. package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
  32. package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
  33. package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
  34. package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
  35. package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → DTpRkgsTm_zYnWfW.mjs} +1 -1
  36. package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
  37. package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
  38. package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
  39. package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
  40. package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
  41. package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
  42. package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → DsoNMWDwHZP8UXQd.mjs} +1 -1
  43. package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
  44. package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → HViD4Wfoi0mmqk9w.mjs} +1 -1
  45. package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
  46. package/browser/esm/{CtEFHbzYNvYjDYvi.mjs → QgaAIDUMmBQBsXP9.mjs} +8 -8
  47. package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → YThnrg3PadGs7B4j.mjs} +51 -51
  48. package/browser/esm/index.mjs +1028 -170
  49. package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
  50. package/browser/esm/{yZxC4qUENOlMhVUH.mjs → w_JrR69vEpvoyeMy.mjs} +1 -1
  51. package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
  52. package/browser/esm/{IQLeaAbtGTipUsOD.mjs → zqilJefihVd7At2T.mjs} +22 -21
  53. package/licenses/dependencies.txt +94 -94
  54. package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → 1bf4gn-2vld4BZ9u.mjs} +1 -1
  55. package/node/esm/{CKu1AtRgyltyEdEN.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
  56. package/node/esm/{cqzp431iNSLWictb.mjs → 4HmLH0bPVJCZLgik.mjs} +22 -22
  57. package/node/esm/{BYVLi0md4AYuDsB_.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
  58. package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
  59. package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
  60. package/node/esm/BPzcW4BejRqso338.mjs +72 -0
  61. package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
  62. package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
  63. package/node/esm/{ah3CUg4-VmNstGk_.mjs → Bph-sR3l6AYWeuxK.mjs} +2 -2
  64. package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
  65. package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
  66. package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
  67. package/node/esm/{D9rzScOA9pEYFrtz.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
  68. package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
  69. package/node/esm/{ci8d-mF1H9wnYzix.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
  70. package/node/esm/{D6oQL8knsPpgdXuk.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
  71. package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
  72. package/node/esm/{DNSjK5DAH3M14Qbc.mjs → CyafafEgfmjLqE5O.mjs} +1 -1
  73. package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
  74. package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
  75. package/node/esm/{BcwMb6CyVfvEwbHn.mjs → DMXLxp3T0E0SRTQc.mjs} +1 -1
  76. package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
  77. package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
  78. package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
  79. package/node/esm/{B_jRGdwGFkudwmL-.mjs → DdEzhVqYTrGODXrz.mjs} +1 -1
  80. package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
  81. package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
  82. package/node/esm/{Bb1sLMqXWKjdve23.mjs → Do-zCKziWhoG5eAv.mjs} +2 -2
  83. package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DpJ2gmZJioCyq8La.mjs} +67 -67
  84. package/node/esm/{ETK6T6G0SIcFXDe5.mjs → XEDcegsv5AGKBfu2.mjs} +40 -40
  85. package/node/esm/index.mjs +8941 -13558
  86. package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
  87. package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
  88. package/package.json +9 -9
  89. package/resources/locales/de/ui.msg.json +97 -0
  90. package/resources/locales/en/ui.msg.json +97 -0
  91. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  92. package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
  93. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  94. package/types/src/anomalies/index.d.ts +3 -0
  95. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  96. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  97. package/types/src/chart/ChartPlugin.d.ts +6 -0
  98. package/types/src/chart/index.d.ts +3 -0
  99. package/types/src/comments/CommentCard.d.ts +2 -2
  100. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  101. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  102. package/types/src/format/BorderPreview.d.ts +11 -4
  103. package/types/src/format/useFormatSelection.d.ts +4 -4
  104. package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
  105. package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
  106. package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
  107. package/types/src/index.d.ts +15 -6
  108. package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
  109. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  110. package/types/src/protection/index.d.ts +1 -1
  111. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
  112. package/types/src/workbook/DefaultRenderers.d.ts +2 -2
  113. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  114. package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
  115. package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
  116. package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
  117. package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
  118. package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
  119. package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
@@ -0,0 +1,335 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { r as e, t } from "./Bujtz_Guj88d03vI.mjs";
8
+ import { t as n } from "./C8JU4KsMasmLvojI.mjs";
9
+ import { c as r, l as i, o as a, r as o, s, t as c } from "./BED6h6YAwCf1HEQJ.mjs";
10
+ import { Color as l, IBorders as u, IColor as d, IConditionalFormat as f } from "@sheetxl/sdk";
11
+ import { COLOR_SCALE_PRESETS as p, DATA_BAR_PRESETS as m, ICON_SET_GALLERY_BLOCKS as h, IconSetGlyphs as g, describeConditionalIcon as _, getConditionalIconSet as v, iconSetPreset as y, useWorkbook as b } from "@sheetxl/react";
12
+ import { DynamicIcon as ee, themeSurfaceProps as x, useCallbackRef as S, useCommandButtonEntry as C, useCommands as w, useTranslator as T } from "@sheetxl/utils-react";
13
+ import { forwardRef as E, memo as D, useCallback as O, useMemo as k, useState as A } from "react";
14
+ import { CommandPopupButton as j, ExhibitDivider as te, ExhibitIconButton as ne, ExhibitMenuHeader as M, ExhibitPopupIconButton as N, ExhibitTooltip as P, PopupButtonType as F, defaultCreatePopupPanel as I } from "@sheetxl/utils-mui";
15
+ import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
16
+ import { Box as B } from "@mui/material";
17
+ import { messageKey as V } from "@sheetxl/utils";
18
+ var H = D(E((r, i) => {
19
+ let { autoColor: a, schemeLookup: o, autoStrokeStyle: s = u.StrokeStyle.Thin, disabled: c, darkMode: f = !1, showStylingBefore: p = !0, onSelectBorder: m, onPreviewBorder: h, selectedBorder: g, createBorder: _, ...v } = r, y = S(m ?? ((e) => {}), [m]), b = S(h ?? ((e) => {}), [h]), w = T(), E = C("borderOptions"), [D, j] = A(), [M, I] = A(), V = g || { bottom: {
20
+ style: s,
21
+ color: a?.toString() ?? d.Named.Gray
22
+ } }, H = D ?? V?.bottom?.style ?? s, U = M ?? (V?.bottom?.color ? new l(V?.bottom?.color, o) : void 0) ?? a ?? null, W = S((e) => R(n, {
23
+ border: e,
24
+ createBorder: _
25
+ }), [_]), G = O((e, t, n) => {
26
+ let r = null;
27
+ if (e && e.length > 0) {
28
+ let i;
29
+ (t || n) && (i = {
30
+ style: n,
31
+ color: t?.toString()
32
+ }), r = {};
33
+ let a = e.length;
34
+ for (let t = 0; t < a; t++) r[e[t]] = i;
35
+ }
36
+ return r;
37
+ }, []), K = O((e) => {
38
+ y?.(e);
39
+ }, []), q = O((e) => {
40
+ b?.(e);
41
+ }, []), J = O((n) => {
42
+ let { closeFloatAll: r } = n, i = (e, t, n = "bottom", i = !1) => {
43
+ let a = G(e, U ?? null, i ? u.StrokeStyle.None : H ?? null), o = i ? G([], U ?? null, H ?? null) : a;
44
+ return R(ne, {
45
+ icon: W(o),
46
+ propsTooltip: {
47
+ label: t,
48
+ simple: !0,
49
+ placement: n
50
+ },
51
+ onClick: () => {
52
+ r?.(), q(a), K(a);
53
+ }
54
+ });
55
+ }, s = z(L, { children: [z(B, {
56
+ sx: {
57
+ display: "flex",
58
+ padding: "6px 16px",
59
+ justifyContent: "center",
60
+ rowGap: "2px",
61
+ gap: "2px"
62
+ },
63
+ children: [
64
+ i([
65
+ u.Edge.Left,
66
+ u.Edge.Top,
67
+ u.Edge.Right,
68
+ u.Edge.Bottom,
69
+ u.Edge.Horizontal,
70
+ u.Edge.Vertical
71
+ ], w("border.all"), "top"),
72
+ i([u.Edge.Horizontal, u.Edge.Vertical], w("border.inner"), "top"),
73
+ i([u.Edge.Horizontal], w("border.insideHorizontal"), "top"),
74
+ i([u.Edge.Vertical], w("border.insideVertical"), "top"),
75
+ i([
76
+ u.Edge.Left,
77
+ u.Edge.Top,
78
+ u.Edge.Right,
79
+ u.Edge.Bottom
80
+ ], w("border.outside"), "top")
81
+ ]
82
+ }), z(B, {
83
+ sx: {
84
+ display: "flex",
85
+ padding: "6px 16px",
86
+ justifyContent: "center",
87
+ rowGap: "2px",
88
+ gap: "2px"
89
+ },
90
+ children: [
91
+ i([u.Edge.Left], w("border.left")),
92
+ i([u.Edge.Top], w("border.top")),
93
+ i([u.Edge.Right], w("border.right")),
94
+ i([u.Edge.Bottom], w("border.bottom")),
95
+ i([
96
+ u.Edge.Left,
97
+ u.Edge.Top,
98
+ u.Edge.Right,
99
+ u.Edge.Bottom,
100
+ u.Edge.Horizontal,
101
+ u.Edge.Vertical,
102
+ u.Edge.DiagonalUp,
103
+ u.Edge.DiagonalDown
104
+ ], w("border.none"), "bottom", !0)
105
+ ]
106
+ })] }), d = R(L, { children: z(B, {
107
+ sx: {
108
+ display: "flex",
109
+ padding: "6px 16px",
110
+ flexDirection: "row",
111
+ gap: "6px"
112
+ },
113
+ children: [R(e, {
114
+ variant: F.Toolbar,
115
+ icon: R(ee, { iconKey: "stroke.colored" }),
116
+ selectedColor: H === u.StrokeStyle.None ? new l("transparent") : U ?? new l("transparent"),
117
+ onPreviewColor: (e) => {
118
+ I(e);
119
+ },
120
+ onSelectColor: (e, t) => {
121
+ I(e);
122
+ },
123
+ darkMode: f,
124
+ tooltip: w("border.colorTooltip"),
125
+ propsPanel: {
126
+ disableAlpha: !0,
127
+ autoColor: a,
128
+ schemeLookup: o,
129
+ ...x("grid", f ? "dark" : "light")
130
+ },
131
+ disabled: c || H === u.StrokeStyle.None,
132
+ shouldCloseFloatAll: !1
133
+ }), R(t, {
134
+ selectedStyle: H,
135
+ onSelectStyle: j,
136
+ styleColor: U,
137
+ darkMode: f,
138
+ variant: F.Toolbar
139
+ })]
140
+ }) });
141
+ return z(B, {
142
+ ...x("grid", f ? "dark" : "light"),
143
+ sx: {
144
+ display: "flex",
145
+ flexDirection: "column",
146
+ paddingTop: "4px",
147
+ paddingBottom: "4px"
148
+ },
149
+ onClick: (e) => e.stopPropagation(),
150
+ children: [
151
+ p ? d : s,
152
+ R(te, { orientation: "horizontal" }),
153
+ p ? s : d
154
+ ]
155
+ });
156
+ }, [
157
+ H,
158
+ U,
159
+ a,
160
+ H,
161
+ o,
162
+ f,
163
+ w
164
+ ]), Y = k(() => W(V), [V, f]);
165
+ return R(N, {
166
+ ref: i,
167
+ createPopupPanel: J,
168
+ propsPopup: { propsPopper: { resizeOnOverflow: !1 } },
169
+ createTooltip: ({ children: e }, t) => R(P, {
170
+ label: E?.getLabel?.(),
171
+ description: E?.getDescription?.(),
172
+ disabled: t,
173
+ children: e
174
+ }),
175
+ onQuickClick: () => {
176
+ y?.(V);
177
+ },
178
+ disabled: c,
179
+ icon: Y,
180
+ ...v
181
+ });
182
+ })), U = {
183
+ directional: V("conditionalFormat.iconGroup.directional"),
184
+ shapes: V("conditionalFormat.iconGroup.shapes"),
185
+ indicators: V("conditionalFormat.iconGroup.indicators"),
186
+ ratings: V("conditionalFormat.iconGroup.ratings")
187
+ }, W = {
188
+ bad: V("conditionalFormat.iconTone.bad"),
189
+ lightBad: V("conditionalFormat.iconTone.lightBad"),
190
+ neutral: V("conditionalFormat.iconTone.neutral"),
191
+ good: V("conditionalFormat.iconTone.good"),
192
+ purple: V("conditionalFormat.iconTone.purple"),
193
+ gold: V("conditionalFormat.iconTone.gold"),
194
+ gray: V("conditionalFormat.iconTone.gray"),
195
+ black: V("conditionalFormat.iconTone.black")
196
+ }, G = {
197
+ arrowUp: V("conditionalFormat.iconShape.arrowUp"),
198
+ arrowUpRight: V("conditionalFormat.iconShape.arrowUpRight"),
199
+ arrowRight: V("conditionalFormat.iconShape.arrowRight"),
200
+ arrowDownRight: V("conditionalFormat.iconShape.arrowDownRight"),
201
+ arrowDown: V("conditionalFormat.iconShape.arrowDown"),
202
+ triangleUpSharp: V("conditionalFormat.iconShape.triangleUpSharp"),
203
+ triangleDownSharp: V("conditionalFormat.iconShape.triangleDownSharp"),
204
+ dash: V("conditionalFormat.iconShape.dash"),
205
+ circle: V("conditionalFormat.iconShape.circle"),
206
+ circleRimmed: V("conditionalFormat.iconShape.circleRimmed"),
207
+ triangleUp: V("conditionalFormat.iconShape.triangleUp"),
208
+ diamond: V("conditionalFormat.iconShape.diamond"),
209
+ flag: V("conditionalFormat.iconShape.flag"),
210
+ check: V("conditionalFormat.iconShape.check"),
211
+ cross: V("conditionalFormat.iconShape.cross"),
212
+ exclamation: V("conditionalFormat.iconShape.exclamation"),
213
+ circleCheck: V("conditionalFormat.iconShape.circleCheck"),
214
+ circleCross: V("conditionalFormat.iconShape.circleCross"),
215
+ circleExclamation: V("conditionalFormat.iconShape.circleExclamation"),
216
+ rating0: V("conditionalFormat.iconShape.rating0"),
217
+ rating1: V("conditionalFormat.iconShape.rating1"),
218
+ rating2: V("conditionalFormat.iconShape.rating2"),
219
+ rating3: V("conditionalFormat.iconShape.rating3"),
220
+ rating4: V("conditionalFormat.iconShape.rating4"),
221
+ star0: V("conditionalFormat.iconShape.star0"),
222
+ star1: V("conditionalFormat.iconShape.star1"),
223
+ star2: V("conditionalFormat.iconShape.star2"),
224
+ boxes0: V("conditionalFormat.iconShape.boxes0"),
225
+ boxes1: V("conditionalFormat.iconShape.boxes1"),
226
+ boxes2: V("conditionalFormat.iconShape.boxes2"),
227
+ boxes3: V("conditionalFormat.iconShape.boxes3"),
228
+ boxes4: V("conditionalFormat.iconShape.boxes4"),
229
+ quarters0: V("conditionalFormat.iconShape.quarters0"),
230
+ quarters1: V("conditionalFormat.iconShape.quarters1"),
231
+ quarters2: V("conditionalFormat.iconShape.quarters2"),
232
+ quarters3: V("conditionalFormat.iconShape.quarters3"),
233
+ quarters4: V("conditionalFormat.iconShape.quarters4")
234
+ }, K = /^(rating|star|boxes|quarters)\d$/, q = V("conditionalFormat.iconName"), J = (e, t) => {
235
+ let { shape: n, tone: r } = _(t), i = G[n] ? e(G[n]) : n;
236
+ return K.test(n) ? i : e(q, {
237
+ tone: e(W[r]),
238
+ shape: i
239
+ });
240
+ }, Y = Object.freeze([{
241
+ labelKey: V("conditionalFormat.gradientFill"),
242
+ presets: m.filter((e) => e.gradient)
243
+ }, {
244
+ labelKey: V("conditionalFormat.solidFill"),
245
+ presets: m.filter((e) => !e.gradient)
246
+ }]), re = Object.freeze([{
247
+ labelKey: V("conditionalFormat.threeColor"),
248
+ presets: p.filter((e) => e.stops.length === 3)
249
+ }, {
250
+ labelKey: V("conditionalFormat.twoColor"),
251
+ presets: p.filter((e) => e.stops.length === 2)
252
+ }]), X = Object.freeze(h.map((e) => ({
253
+ labelKey: U[e.key],
254
+ columns: 2,
255
+ presets: e.rows.flatMap(([e, t]) => [y(e), t ? y(t) : null])
256
+ }))), ie = {
257
+ dataBar: Y,
258
+ colorScale: re,
259
+ iconSet: X
260
+ }, ae = (e, t) => e.type === f.ScaleType.DataBar ? r(e, i(e.color, t)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") : e.type === f.ScaleType.ColorScale ? s(e.stops ?? [], o, t) : [], oe = (e, t) => e.type === f.ScaleType.IconSet ? R(g, {
261
+ icons: v(e.iconSet),
262
+ order: "descending",
263
+ size: 14,
264
+ gap: 3
265
+ }) : R(a, { rows: ae(e, t) }), Z = D((e) => {
266
+ let { groups: t, onPick: n, disabled: r } = e, i = T(), a = b();
267
+ return R(B, {
268
+ sx: {
269
+ display: "flex",
270
+ flexDirection: "column",
271
+ padding: "2px 8px 4px"
272
+ },
273
+ children: t.map((e) => z(B, { children: [R(M, { children: i(e.labelKey) }), R(B, {
274
+ sx: {
275
+ display: "grid",
276
+ gridTemplateColumns: `repeat(${e.columns ?? 3}, auto)`,
277
+ gap: "3px",
278
+ marginBottom: "4px"
279
+ },
280
+ children: e.presets.map((e, t) => e === null ? R(B, {}, t) : R(c, {
281
+ sheet: !0,
282
+ disabled: r,
283
+ sx: e.type === f.ScaleType.IconSet ? {
284
+ width: "94px",
285
+ height: "32px"
286
+ } : {
287
+ width: "44px",
288
+ height: "32px"
289
+ },
290
+ onClick: () => {
291
+ n(e);
292
+ },
293
+ children: oe(e, a)
294
+ }, t))
295
+ })] }, e.labelKey))
296
+ });
297
+ });
298
+ Z.displayName = "ScalePresetGallery";
299
+ var Q = D((e) => {
300
+ let { commandKey: t, groups: n, disabled: r } = e, i = w([t])[0];
301
+ return R(Z, {
302
+ groups: n,
303
+ disabled: r,
304
+ onPick: (e) => {
305
+ i?.execute(e);
306
+ }
307
+ });
308
+ });
309
+ Q.displayName = "CommandPresetGallery";
310
+ var $ = D(E((e, t) => {
311
+ let { commandKey: n, scaleType: r, groupKey: i, disabled: a, ...o } = e, s = w([n])[0], c = ie[r], l = a ?? (!s || s.disabled()), u = O((e) => I({
312
+ ...e,
313
+ children: R(Q, {
314
+ commandKey: n,
315
+ groups: c,
316
+ disabled: l
317
+ })
318
+ }), [
319
+ n,
320
+ c,
321
+ l
322
+ ]);
323
+ return R(j, {
324
+ ref: t,
325
+ createPopupPanel: u,
326
+ label: s?.getLabel(i),
327
+ icon: s?.getIcon(i),
328
+ tooltip: s?.getDescription(i),
329
+ groupKey: i,
330
+ disabled: l,
331
+ ...o
332
+ });
333
+ }));
334
+ $.displayName = "PresetScalesCommandButton";
335
+ export { H as a, J as i, $ as n, Z as r, X as t };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { createContext as e, useContext as t, useEffect as n, useRef as r } from "react";
8
+ var i = e(null), a = (e) => {
9
+ let a = t(i), o = r(e);
10
+ o.current = e, n(() => {
11
+ if (a) return a.register(() => o.current());
12
+ }, [a]);
13
+ };
14
+ export { a as n, i as t };
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { a as e, i as t, n, r, t as i } from "./D6S8kVTzOjCn0-SK.mjs";
7
+ import { a as e, i as t, n, r, t as i } from "./YThnrg3PadGs7B4j.mjs";
8
8
  import { VERSION as a } from "@sheetxl/sdk";
9
9
  import { LogoTextNoPaddingIcon as o } from "@sheetxl/react";
10
10
  import { DynamicIcon as s, useTranslator as c } from "@sheetxl/utils-react";