@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
@@ -1,5 +1,5 @@
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.
@@ -10,10 +10,10 @@ import { DynamicIcon as i, ReactUtils as n, useTranslator as o } from "@sheetxl/
10
10
  import { forwardRef as l, memo as s, useCallback as c, useEffect as d, useLayoutEffect as p, useMemo as u, useRef as m, useState as h } from "react";
11
11
  import { ExhibitIconButton as g } from "@sheetxl/utils-mui";
12
12
  import { Fragment as f, jsx as x, jsxs as y } from "react/jsx-runtime";
13
- import { Box as b, Button as v, ButtonBase as w, Chip as k, Divider as C, InputAdornment as M, ListItemIcon as $, ListItemText as A, Menu as R, MenuItem as D, Skeleton as S, TextField as I, Typography as E } from "@mui/material";
14
- import { listResources as z } from "@sheetxl/utils";
15
- import L from "clsx";
16
- var N = (t, r) => {
13
+ import { Box as b, Button as v, ButtonBase as w, Chip as k, Divider as C, InputAdornment as M, ListItemIcon as $, ListItemText as R, Menu as A, MenuItem as D, Skeleton as S, TextField as I, Typography as E } from "@mui/material";
14
+ import { listResources as z, releaseChannel as L } from "@sheetxl/utils";
15
+ import N from "clsx";
16
+ var T = (t, r) => {
17
17
  if (!t?.color) return null;
18
18
  try {
19
19
  const i = new e(t.color).toCSS("dark" === r.palette.mode);
@@ -24,20 +24,20 @@ var N = (t, r) => {
24
24
  } catch {
25
25
  return null;
26
26
  }
27
- }, T = "8 / 5", U = (e) => {
27
+ }, U = "8 / 5", K = (e) => {
28
28
  const { entry: t, category: i } = e, n = ("dark" === r() ? t.thumbnailDarkUrl : void 0) ?? t.thumbnailUrl;
29
- return x(K, {
29
+ return x(W, {
30
30
  src: n,
31
31
  category: i
32
32
  }, n);
33
- }, K = (e) => {
33
+ }, W = (e) => {
34
34
  const { src: t, category: r } = e, [n, o] = h(t ? "loading" : "failed");
35
35
  return y(b, {
36
36
  className: "template-thumbnail",
37
37
  sx: {
38
38
  position: "relative",
39
39
  width: "100%",
40
- aspectRatio: T,
40
+ aspectRatio: U,
41
41
  overflow: "hidden",
42
42
  borderRadius: 1,
43
43
  border: (e) => `1px solid ${e.palette.divider}`,
@@ -74,10 +74,10 @@ var N = (t, r) => {
74
74
  left: 0,
75
75
  right: 0,
76
76
  height: "3px",
77
- backgroundColor: N(r, e)?.fill
77
+ backgroundColor: T(r, e)?.fill
78
78
  }) }) : null]
79
79
  });
80
- }, W = (e) => {
80
+ }, P = (e) => {
81
81
  const { entry: t, category: r, onSelect: i } = e;
82
82
  return y(w, {
83
83
  className: "template-tile",
@@ -102,7 +102,7 @@ var N = (t, r) => {
102
102
  outlineOffset: "-2px"
103
103
  }
104
104
  },
105
- children: [x(U, {
105
+ children: [x(K, {
106
106
  entry: t,
107
107
  category: r
108
108
  }), y(b, {
@@ -129,7 +129,7 @@ var N = (t, r) => {
129
129
  height: "8px",
130
130
  borderRadius: "50%",
131
131
  flex: "none",
132
- backgroundColor: N(r, e)?.fill
132
+ backgroundColor: T(r, e)?.fill
133
133
  })
134
134
  }) : null, x(b, {
135
135
  component: "span",
@@ -142,7 +142,7 @@ var N = (t, r) => {
142
142
  }) : null]
143
143
  })]
144
144
  });
145
- }, P = () => y(b, {
145
+ }, F = () => y(b, {
146
146
  sx: {
147
147
  padding: 1,
148
148
  display: "flex",
@@ -155,7 +155,7 @@ var N = (t, r) => {
155
155
  sx: {
156
156
  width: "100%",
157
157
  height: "auto",
158
- aspectRatio: T,
158
+ aspectRatio: U,
159
159
  borderRadius: 1
160
160
  }
161
161
  }),
@@ -168,20 +168,20 @@ var N = (t, r) => {
168
168
  width: "35%"
169
169
  })
170
170
  ]
171
- }), F = s(l((e, t) => {
172
- const { catalog: r, onSelect: i, filter: a, groupBy: l, renderTile: s, tileMinWidth: c = 180, emptyLabel: g, visibleRows: f, sx: w = n.EmptyCssProperties, style: k, className: C, onKeyDown: M, ...$ } = e, A = o(), R = m(null), [D, S] = h(0), I = m(null);
171
+ }), B = s(l((e, t) => {
172
+ const { catalog: r, onSelect: i, filter: a, groupBy: l, renderTile: s, tileMinWidth: c = 180, emptyLabel: g, visibleRows: f, sx: w = n.EmptyCssProperties, style: k, className: C, onKeyDown: M, ...$ } = e, R = o(), A = m(null), [D, S] = h(0), I = m(null);
173
173
  I.current = () => {
174
- const e = R.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
174
+ const e = A.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
175
175
  t && S(t);
176
176
  }, p(() => {
177
177
  f && I.current?.();
178
178
  }), d(() => {
179
- const e = R.current;
179
+ const e = A.current;
180
180
  if (!f || !e) return;
181
181
  const t = new ResizeObserver(() => I.current?.());
182
182
  return t.observe(e), () => t.disconnect();
183
183
  }, [f]);
184
- const z = u(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), N = u(() => {
184
+ const z = u(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), L = u(() => {
185
185
  const e = a ? r.entries.filter(a) : r.entries;
186
186
  if (!l) return [{
187
187
  key: null,
@@ -215,8 +215,8 @@ var N = (t, r) => {
215
215
  className: "template-grid",
216
216
  sx: T,
217
217
  "aria-busy": "true",
218
- "aria-label": A("template.loading"),
219
- children: Array.from({ length: 6 }, (e, t) => x(P, {}, t))
218
+ "aria-label": R("template.loading"),
219
+ children: Array.from({ length: 6 }, (e, t) => x(F, {}, t))
220
220
  }) : "error" === r.status ? y(b, {
221
221
  sx: {
222
222
  display: "flex",
@@ -229,22 +229,22 @@ var N = (t, r) => {
229
229
  children: [x(E, {
230
230
  variant: "body2",
231
231
  sx: { color: "text.secondary" },
232
- children: A("template.loadFailed")
232
+ children: R("template.loadFailed")
233
233
  }), x(v, {
234
234
  variant: "outlined",
235
235
  size: "small",
236
236
  onClick: r.retry,
237
- children: A("template.retry")
237
+ children: R("template.retry")
238
238
  })]
239
- }) : N.every((e) => 0 === e.entries.length) ? x(E, {
239
+ }) : L.every((e) => 0 === e.entries.length) ? x(E, {
240
240
  variant: "body2",
241
241
  sx: {
242
242
  color: "text.secondary",
243
243
  padding: 4,
244
244
  textAlign: "center"
245
245
  },
246
- children: g ?? A("template.empty")
247
- }) : N.map((e) => y(b, {
246
+ children: g ?? R("template.empty")
247
+ }) : L.map((e) => y(b, {
248
248
  role: "group",
249
249
  "aria-label": e.title,
250
250
  children: [e.title ? x(E, {
@@ -266,7 +266,7 @@ var N = (t, r) => {
266
266
  return s ? x(b, {
267
267
  sx: { display: "contents" },
268
268
  children: s(e, t)
269
- }, e.id) : x(W, {
269
+ }, e.id) : x(P, {
270
270
  entry: e,
271
271
  ...t
272
272
  }, e.id);
@@ -274,7 +274,7 @@ var N = (t, r) => {
274
274
  })]
275
275
  }, e.key ?? "")), x(b, {
276
276
  ref: t,
277
- className: L(C, "template-panel"),
277
+ className: N(C, "template-panel"),
278
278
  sx: w,
279
279
  style: f && D ? {
280
280
  boxSizing: "content-box",
@@ -285,10 +285,10 @@ var N = (t, r) => {
285
285
  } : k,
286
286
  ...$,
287
287
  children: x(b, {
288
- ref: R,
288
+ ref: A,
289
289
  onKeyDown: (e) => {
290
290
  if (M?.(e), e.defaultPrevented) return;
291
- const t = R.current;
291
+ const t = A.current;
292
292
  if (!t) return;
293
293
  const r = Array.from(t.querySelectorAll(".template-tile")), i = r.indexOf(document.activeElement);
294
294
  if (i < 0) return;
@@ -323,8 +323,8 @@ var N = (t, r) => {
323
323
  })
324
324
  });
325
325
  }));
326
- F.displayName = "TemplatePanel";
327
- var B = (e, t, r) => u(() => {
326
+ B.displayName = "TemplatePanel";
327
+ var H = (e, t, r) => u(() => {
328
328
  if (!t.trim() && 0 === r.length) return;
329
329
  const i = new Map(e.map((e) => [e.id, e])), n = r.length > 0 ? new Set(r) : null;
330
330
  return (e) => !(n && !n.has(e.category)) && ((e, t, r) => {
@@ -340,7 +340,7 @@ var B = (e, t, r) => u(() => {
340
340
  e,
341
341
  t,
342
342
  r
343
- ]), H = [], O = (e) => {
343
+ ]), O = [], j = (e) => {
344
344
  const { category: t } = e;
345
345
  return x(b, {
346
346
  component: "span",
@@ -350,10 +350,10 @@ var B = (e, t, r) => u(() => {
350
350
  height: "10px",
351
351
  borderRadius: "50%",
352
352
  flex: "none",
353
- backgroundColor: N(t, e)?.fill ?? e.palette.action.selected
353
+ backgroundColor: T(t, e)?.fill ?? e.palette.action.selected
354
354
  })
355
355
  });
356
- }, j = (e) => {
356
+ }, V = (e) => {
357
357
  const { category: t, onDelete: r } = e;
358
358
  return x(k, {
359
359
  size: "small",
@@ -361,7 +361,7 @@ var B = (e, t, r) => u(() => {
361
361
  title: t.description,
362
362
  onDelete: r,
363
363
  sx: (e) => {
364
- const r = N(t, e);
364
+ const r = T(t, e);
365
365
  return {
366
366
  marginY: .25,
367
367
  marginRight: .5,
@@ -386,8 +386,8 @@ var B = (e, t, r) => u(() => {
386
386
  };
387
387
  }
388
388
  });
389
- }, V = (e) => {
390
- const { value: t, onChange: r, categories: n, categoryIds: a = H, onCategoryIdsChange: l, sx: s } = e, c = o(), d = m(null), [p, b] = h(null), v = !!l && (n?.length ?? 0) > 1, k = u(() => {
389
+ }, Y = (e) => {
390
+ const { value: t, onChange: r, categories: n, categoryIds: a = O, onCategoryIdsChange: l, sx: s } = e, c = o(), d = m(null), [p, b] = h(null), v = !!l && (n?.length ?? 0) > 1, k = u(() => {
391
391
  if (!v || 0 === a.length) return [];
392
392
  const e = new Map(n.map((e) => [e.id, e]));
393
393
  return a.map((t) => e.get(t)).filter((e) => !!e);
@@ -436,7 +436,7 @@ var B = (e, t, r) => u(() => {
436
436
  }
437
437
  })]
438
438
  })
439
- }), k.map((e) => x(j, {
439
+ }), k.map((e) => x(V, {
440
440
  category: e,
441
441
  onDelete: () => S(a.filter((t) => t !== e.id))
442
442
  }, e.id))] });
@@ -506,7 +506,7 @@ var B = (e, t, r) => u(() => {
506
506
  "aria-label": c("template.search")
507
507
  }
508
508
  }
509
- }), v ? y(R, {
509
+ }), v ? y(A, {
510
510
  anchorEl: p,
511
511
  open: !!p,
512
512
  onClose: E,
@@ -524,8 +524,8 @@ var B = (e, t, r) => u(() => {
524
524
  l(t ? a.filter((t) => t !== e.id) : [...a, e.id]), E();
525
525
  },
526
526
  children: [
527
- x($, { children: x(O, { category: e }) }),
528
- x(A, { children: e.title }),
527
+ x($, { children: x(j, { category: e }) }),
528
+ x(R, { children: e.title }),
529
529
  t ? x(i, {
530
530
  iconKey: "Check",
531
531
  style: {
@@ -539,16 +539,16 @@ var B = (e, t, r) => u(() => {
539
539
  onClick: () => {
540
540
  l([]), E();
541
541
  },
542
- children: [x($, {}), x(A, { children: c("template.allCategories") })]
542
+ children: [x($, {}), x(R, { children: c("template.allCategories") })]
543
543
  }, "all")] : null]
544
544
  }) : null] });
545
- }, Y = "local" === t ? "beta" : /^\d+\.\d+\.\d+-([0-9A-Za-z-]+)/.exec(t)?.[1], q = `https://unpkg.com/@sheetxl/templates-workbook${Y ? `@${Y}` : ""}/dist`, X = "templates-workbook", Z = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), G = (e, t) => {
546
- const r = `${e}${e.endsWith("/") ? "" : "/"}${X}/${t}`;
545
+ }, q = L(t), X = `https://unpkg.com/@sheetxl/templates-workbook${q ? `@${q}` : ""}/dist`, G = "templates-workbook", Z = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), _ = (e, t) => {
546
+ const r = `${e}${e.endsWith("/") ? "" : "/"}${G}/${t}`;
547
547
  return "undefined" == typeof document ? r : new URL(r, document.baseURI).href;
548
- }, _ = (e) => "string" == typeof e && e ? e : void 0, J = /* @__PURE__ */ new Map(), Q = (e = q) => {
549
- let t = J.get(e);
548
+ }, J = (e) => "string" == typeof e && e ? e : void 0, Q = /* @__PURE__ */ new Map(), ee = (e = X) => {
549
+ let t = Q.get(e);
550
550
  return t || (t = (async () => {
551
- const t = (await z("templates", X, e)).find((e) => void 0 !== e.meta?.schema);
551
+ const t = (await z("templates", G, e)).find((e) => void 0 !== e.meta?.schema);
552
552
  if (!t) throw new Error(`No template catalog found at '${e}'.`);
553
553
  return 1 !== Math.floor(Number(t.meta?.schema)) ? (console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`), {
554
554
  categories: [],
@@ -556,34 +556,34 @@ var B = (e, t, r) => u(() => {
556
556
  }) : ((e, t) => {
557
557
  const r = Array.isArray(e.meta?.categories) ? e.meta.categories : [], i = [], n = /* @__PURE__ */ new Set();
558
558
  for (const e of r) {
559
- const t = _(e?.id);
559
+ const t = J(e?.id);
560
560
  t && !n.has(t) && (n.add(t), i.push({
561
561
  id: t,
562
- title: _(e.title) ?? Z(t),
563
- description: _(e.description),
564
- icon: _(e.icon),
565
- color: _(e.color)
562
+ title: J(e.title) ?? Z(t),
563
+ description: J(e.description),
564
+ icon: J(e.icon),
565
+ color: J(e.color)
566
566
  }));
567
567
  }
568
568
  const o = [];
569
569
  for (const r of e.entries) {
570
570
  const e = r.path, a = e.split("/");
571
571
  if (2 !== a.length || !/\.(?:xlsx|sxl|csv)$/i.test(e)) continue;
572
- const l = _(r.category) ?? a[0];
572
+ const l = J(r.category) ?? a[0];
573
573
  n.has(l) || (n.add(l), i.push({
574
574
  id: l,
575
575
  title: Z(l)
576
576
  }));
577
- const s = _(r.thumbnail), c = _(r.thumbnailDark);
577
+ const s = J(r.thumbnail), c = J(r.thumbnailDark);
578
578
  o.push({
579
579
  id: e,
580
- title: _(r.title) ?? Z(a[1]),
580
+ title: J(r.title) ?? Z(a[1]),
581
581
  category: l,
582
- description: _(r.description),
582
+ description: J(r.description),
583
583
  tags: Array.isArray(r.tags) ? r.tags.filter((e) => "string" == typeof e) : void 0,
584
- thumbnailUrl: s ? G(t, s) : void 0,
585
- thumbnailDarkUrl: c ? G(t, c) : void 0,
586
- sourceUrl: G(t, e)
584
+ thumbnailUrl: s ? _(t, s) : void 0,
585
+ thumbnailDarkUrl: c ? _(t, c) : void 0,
586
+ sourceUrl: _(t, e)
587
587
  });
588
588
  }
589
589
  return {
@@ -591,11 +591,11 @@ var B = (e, t, r) => u(() => {
591
591
  entries: o
592
592
  };
593
593
  })(t, e);
594
- })(), J.set(e, t), t.catch(() => {
595
- J.delete(e);
594
+ })(), Q.set(e, t), t.catch(() => {
595
+ Q.delete(e);
596
596
  })), t;
597
- }, ee = (e = {}) => {
598
- const { path: t = q } = e, [r, i] = h(0), [n, o] = h({
597
+ }, te = (e = {}) => {
598
+ const { path: t = X } = e, [r, i] = h(0), [n, o] = h({
599
599
  status: "loading",
600
600
  categories: [],
601
601
  entries: []
@@ -606,7 +606,7 @@ var B = (e, t, r) => u(() => {
606
606
  status: "loading",
607
607
  categories: [],
608
608
  entries: []
609
- }), Q(t).then((t) => {
609
+ }), ee(t).then((t) => {
610
610
  e || o({
611
611
  status: "ready",
612
612
  ...t
@@ -629,4 +629,4 @@ var B = (e, t, r) => u(() => {
629
629
  }, [])
630
630
  };
631
631
  };
632
- export { F as a, B as i, ee as n, V as r, Q as t };
632
+ export { B as a, H as i, te as n, Y as r, ee as t };
@@ -1,16 +1,16 @@
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 { D as e, E as t, O as r } from "./index.mjs";
7
+ import { n as e, r as t, t as r } from "./BIMkjQUwG4Ih-6Sh.mjs";
8
8
  import { IRange as o, ISort as n, Sort as i } from "@sheetxl/sdk";
9
9
  import { DynamicIcon as l, useCallbackRef as s, useTranslator as a } from "@sheetxl/utils-react";
10
10
  import { memo as d, useMemo as c, useRef as p, useState as h } from "react";
11
11
  import { OptionsDialog as u, SimpleTooltip as x } from "@sheetxl/utils-mui";
12
12
  import { jsx as f, jsxs as m } from "react/jsx-runtime";
13
- import { Box as g, Checkbox as v, FormControl as b, FormControlLabel as y, IconButton as S, InputLabel as C, MenuItem as w, Select as O, Typography as k } from "@mui/material";
13
+ import { Box as g, Checkbox as v, FormControl as b, FormControlLabel as y, IconButton as C, InputLabel as S, MenuItem as w, Select as k, Typography as O } from "@mui/material";
14
14
  var L = {
15
15
  width: "64px",
16
16
  flex: "0 0 auto"
@@ -46,8 +46,8 @@ var L = {
46
46
  let t = e, r = "";
47
47
  for (; t >= 0;) r = String.fromCharCode(65 + t % 26) + r, t = Math.floor(t / 26) - 1;
48
48
  return r;
49
- }, F = 0, B = () => "level-" + F++, M = (e) => e?.sensitivity === i.CaseSensitiveOptions.sensitivity, T = d((n) => {
50
- const { initialValue: d, context: F, onInput: T, onDone: $, ...j } = n, A = a(), U = p(F?.()), V = U.current?.range, K = U.current?.cell, [G, Y] = h(() => ({
49
+ }, F = 0, B = () => "level-" + F++, M = (e) => e?.sensitivity === i.CaseSensitiveOptions.sensitivity, W = d((n) => {
50
+ const { initialValue: d, context: F, onInput: W, onDone: $, ...j } = n, A = a(), U = p(F?.()), V = U.current?.range, K = U.current?.cell, [G, Y] = h(() => ({
51
51
  ...i.DefaultRangeOptions,
52
52
  ...d
53
53
  })), [q, J] = h(() => {
@@ -63,14 +63,14 @@ var L = {
63
63
  criteria: {}
64
64
  }), t;
65
65
  }), P = G.axis ?? o.Axis.Row, Q = P === o.Axis.Row, X = p(null), Z = p(!1);
66
- r(X, !0, Z);
66
+ t(X, !0, Z);
67
67
  const _ = c(() => {
68
68
  const e = [], t = [], r = V?.getDefaultSortCriteria(P, K);
69
69
  if (!r) return {
70
70
  labels: e,
71
71
  offsets: t
72
72
  };
73
- const o = V.getSheet(), n = r.coords, i = o.getRange(n).getUsedRange({ features: [] })?.getCoords();
73
+ const o = V.getWorksheet(), n = r.coords, i = o.getRange(n).getUsedRange({ features: [] })?.getCoords();
74
74
  if (!i) return {
75
75
  labels: e,
76
76
  offsets: t
@@ -162,12 +162,12 @@ var L = {
162
162
  sorts: e
163
163
  };
164
164
  }
165
- T?.(t), $?.(t);
165
+ W?.(t), $?.(t);
166
166
  }, [
167
167
  q,
168
168
  G,
169
169
  $,
170
- T,
170
+ W,
171
171
  d
172
172
  ]), ie = c(() => q.map((e) => e.key), [q]);
173
173
  return f(u, {
@@ -203,7 +203,7 @@ var L = {
203
203
  },
204
204
  children: [
205
205
  f(g, { sx: L }),
206
- f(k, {
206
+ f(O, {
207
207
  variant: "body2",
208
208
  sx: {
209
209
  ...D,
@@ -211,7 +211,7 @@ var L = {
211
211
  },
212
212
  children: A(Q ? "sort.column" : "sort.row")
213
213
  }),
214
- f(k, {
214
+ f(O, {
215
215
  variant: "body2",
216
216
  sx: {
217
217
  ...H,
@@ -219,7 +219,7 @@ var L = {
219
219
  },
220
220
  children: A("sort.sortOn")
221
221
  }),
222
- f(k, {
222
+ f(O, {
223
223
  variant: "body2",
224
224
  sx: {
225
225
  ...R,
@@ -245,22 +245,22 @@ var L = {
245
245
  ids: ie,
246
246
  scrollRef: X,
247
247
  onMove: (e, t) => oe(e, t, !0),
248
- children: q.map((e, r) => f(t, {
248
+ children: q.map((e, t) => f(r, {
249
249
  id: e.key,
250
250
  disabled: q.length <= 1,
251
- children: f(W, {
251
+ children: f(T, {
252
252
  level: e,
253
- position: r,
253
+ position: t,
254
254
  count: q.length,
255
255
  fields: _,
256
256
  labelForField: ee,
257
257
  isRowSort: Q,
258
258
  onChange: re,
259
- onMoveBy: (e) => oe(r, r + e, !1),
259
+ onMoveBy: (e) => oe(t, t + e, !1),
260
260
  onDuplicate: () => {
261
- J((t) => {
262
- const o = [...t];
263
- return o.splice(r + 1, 0, {
261
+ J((r) => {
262
+ const o = [...r];
263
+ return o.splice(t + 1, 0, {
264
264
  ...e,
265
265
  key: B(),
266
266
  criteria: { ...e.criteria }
@@ -278,7 +278,7 @@ var L = {
278
278
  paddingTop: 0,
279
279
  paddingBottom: 0
280
280
  },
281
- children: [f(k, {
281
+ children: [f(O, {
282
282
  variant: "body2",
283
283
  sx: {
284
284
  ...L,
@@ -288,7 +288,7 @@ var L = {
288
288
  }), f(x, {
289
289
  disableInteractive: !0,
290
290
  title: A("sort.addLevel"),
291
- children: f(S, {
291
+ children: f(C, {
292
292
  size: "small",
293
293
  className: "sxl-sort-addLevel",
294
294
  "aria-label": A("sort.addLevel"),
@@ -308,7 +308,7 @@ var L = {
308
308
  })]
309
309
  })]
310
310
  }),
311
- null !== te ? f(k, {
311
+ null !== te ? f(O, {
312
312
  variant: "body2",
313
313
  className: "sxl-sort-refusal",
314
314
  sx: { color: (e) => e.palette.error.main },
@@ -361,10 +361,10 @@ var L = {
361
361
  m(b, {
362
362
  size: "small",
363
363
  sx: { minWidth: "180px" },
364
- children: [f(C, {
364
+ children: [f(S, {
365
365
  id: "sxl-sort-orientation-label",
366
366
  children: A("sort.orientation")
367
- }), m(O, {
367
+ }), m(k, {
368
368
  size: "small",
369
369
  className: "sxl-sort-orientation",
370
370
  labelId: "sxl-sort-orientation-label",
@@ -391,8 +391,8 @@ var L = {
391
391
  ]
392
392
  })
393
393
  });
394
- }), W = d((e) => {
395
- const { level: t, position: r, count: o, fields: i, labelForField: s, isRowSort: d, onChange: p, onMoveBy: h, onDuplicate: u, onDelete: v } = e, b = a(), y = t.criteria.sortOn ?? n.SortOn.Value, C = !!t.criteria.reverse, E = c(() => {
394
+ }), T = d((e) => {
395
+ const { level: t, position: r, count: o, fields: i, labelForField: s, isRowSort: d, onChange: p, onMoveBy: h, onDuplicate: u, onDelete: v } = e, b = a(), y = t.criteria.sortOn ?? n.SortOn.Value, S = !!t.criteria.reverse, E = c(() => {
396
396
  const e = i.offsets.map((e, t) => ({
397
397
  offset: e,
398
398
  label: i.labels[t]
@@ -408,7 +408,7 @@ var L = {
408
408
  ]), N = (e, t, r, o, n) => f(x, {
409
409
  disableInteractive: !0,
410
410
  title: e,
411
- children: f("div", { children: f(S, {
411
+ children: f("div", { children: f(C, {
412
412
  size: "small",
413
413
  className: `sxl-sort-${t}`,
414
414
  "aria-label": e,
@@ -433,12 +433,12 @@ var L = {
433
433
  }
434
434
  },
435
435
  children: [
436
- f(k, {
436
+ f(O, {
437
437
  variant: "body2",
438
438
  sx: L,
439
439
  children: b(0 === r ? "sort.sortBy" : "sort.thenBy")
440
440
  }),
441
- f(O, {
441
+ f(k, {
442
442
  size: "small",
443
443
  className: "sxl-sort-field",
444
444
  value: t.index,
@@ -450,7 +450,7 @@ var L = {
450
450
  children: e.label
451
451
  }, e.offset))
452
452
  }),
453
- m(O, {
453
+ m(k, {
454
454
  size: "small",
455
455
  className: "sxl-sort-on",
456
456
  value: y,
@@ -470,7 +470,7 @@ var L = {
470
470
  m(w, {
471
471
  value: n.SortOn.FillColor,
472
472
  disabled: !0,
473
- children: [b("sort.sortOnFillColor"), f(k, {
473
+ children: [b("sort.sortOnFillColor"), f(O, {
474
474
  variant: "caption",
475
475
  sx: {
476
476
  marginLeft: 1,
@@ -482,7 +482,7 @@ var L = {
482
482
  m(w, {
483
483
  value: n.SortOn.FontColor,
484
484
  disabled: !0,
485
- children: [b("sort.sortOnFontColor"), f(k, {
485
+ children: [b("sort.sortOnFontColor"), f(O, {
486
486
  variant: "caption",
487
487
  sx: {
488
488
  marginLeft: 1,
@@ -494,7 +494,7 @@ var L = {
494
494
  m(w, {
495
495
  value: n.SortOn.Icon,
496
496
  disabled: !0,
497
- children: [b("sort.sortOnIcon"), f(k, {
497
+ children: [b("sort.sortOnIcon"), f(O, {
498
498
  variant: "caption",
499
499
  sx: {
500
500
  marginLeft: 1,
@@ -509,16 +509,16 @@ var L = {
509
509
  sx: R,
510
510
  children: f(x, {
511
511
  disableInteractive: !0,
512
- title: b(C ? "sort.descending" : "sort.ascending"),
513
- children: f(S, {
512
+ title: b(S ? "sort.descending" : "sort.ascending"),
513
+ children: f(C, {
514
514
  size: "small",
515
515
  className: "sxl-sort-order",
516
- "aria-label": b(C ? "sort.descending" : "sort.ascending"),
516
+ "aria-label": b(S ? "sort.descending" : "sort.ascending"),
517
517
  onClick: () => p(t.key, { criteria: {
518
518
  ...t.criteria,
519
- reverse: !C
519
+ reverse: !S
520
520
  } }),
521
- children: f(l, { iconKey: C ? "SortDecrease" : "SortIncrease" })
521
+ children: f(l, { iconKey: S ? "SortDecrease" : "SortIncrease" })
522
522
  })
523
523
  })
524
524
  }),
@@ -540,5 +540,5 @@ var L = {
540
540
  ]
541
541
  });
542
542
  });
543
- W.displayName = "SortLevelCard";
544
- export { T as SortDialog, T as default };
543
+ T.displayName = "SortLevelCard";
544
+ export { W as SortDialog, W as default };