@sheetxl/studio-mui 0.8.0-beta.5 → 0.8.0-beta.7

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 (91) hide show
  1. package/browser/cjs/{Bi26L7L89ZK_y5Pk.cjs → 2tG9HJLr-WjsOCP3.cjs} +1 -1
  2. package/browser/cjs/{BGvoJjUs21bbuE1i.cjs → 3RXtLkq7wTAV6y_e.cjs} +1 -1
  3. package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +1 -0
  4. package/browser/cjs/{BXkdjAb4jpTr412c.cjs → BD50lsTki7wvzb5g.cjs} +1 -1
  5. package/browser/cjs/BcBrhEv9acaTxPkO.cjs +13 -0
  6. package/browser/cjs/ByIUHPOa02D7XbdC.cjs +1 -0
  7. package/browser/cjs/{eCw4rAEIYE3BftpG.cjs → CkroJ2FmfFvk6Eyv.cjs} +1 -1
  8. package/browser/cjs/Clzu4HOXk3QSlzUD.cjs +8 -0
  9. package/browser/cjs/{B9GcCj7sj8XdjPZF.cjs → CzJvR12QCQb-0Rtn.cjs} +1 -1
  10. package/browser/cjs/{3uprnzi2l0iT17Dg.cjs → D-Yo5aV9STT5KH4G.cjs} +1 -1
  11. package/browser/cjs/{BHb7TnK1NmimV4OX.cjs → DwkiLFWUtLC8ZcIQ.cjs} +1 -1
  12. package/browser/cjs/{BQMCM3iFn4MNWAkB.cjs → HuPFsmz7kyZVo3c7.cjs} +1 -1
  13. package/browser/cjs/index.cjs +1 -1
  14. package/browser/esm/{GZvjjMyv09_4zahu.mjs → 0Rpk1T56LoSnDrmq.mjs} +2 -2
  15. package/browser/esm/{C2Ja33FV0pE1u_b4.mjs → 3L04oqyfyjRxhmzg.mjs} +2 -2
  16. package/browser/esm/7gisHVXYgcPxWH8-.mjs +223 -0
  17. package/browser/esm/{Ot_3uk9g5RQpAjcQ.mjs → B57WM1X24rsvTF_o.mjs} +1 -1
  18. package/browser/esm/{ZLszpvKCQ6ZVPKdC.mjs → B7k8enrhC2Rvqhn1.mjs} +3 -3
  19. package/browser/esm/{C828ANqeXNxG8adc.mjs → BK4OEmeaw-kC-vAN.mjs} +1345 -1307
  20. package/browser/esm/{0RwF0cH7JQ-VqL4E.mjs → BWAIbfQZ6h5xVLdB.mjs} +1 -1
  21. package/browser/esm/{26__l2vZsdgD-nJx.mjs → B_PhUn6yySwXt2wo.mjs} +2 -2
  22. package/browser/esm/{DkuGZXKiwLKsUN_D.mjs → C36WT3I3aIR8y7I6.mjs} +2 -2
  23. package/browser/esm/{DDYeKYs_XIOjhieg.mjs → CH7ZfljN7ru0Y9Wg.mjs} +2 -2
  24. package/browser/esm/{aNqEbtO2cALJwwos.mjs → CpTqhDZotYaKGbLl.mjs} +1 -1
  25. package/browser/esm/{ONmBo80X5eV6cBBI.mjs → D3BwGfI_IEjay0dA.mjs} +1 -1
  26. package/browser/esm/{DFQo3TQ5Lpt6_Vid.mjs → D7HOLngE_1FYF6y6.mjs} +3 -3
  27. package/browser/esm/{P8cqCkmugGNd2vkm.mjs → D88iVsgfDG9k-qf_.mjs} +3 -3
  28. package/browser/esm/{CfwoCDjpHNheDLn1.mjs → DErAKw-lIK3RY8m-.mjs} +1 -1
  29. package/browser/esm/{bC4EbB4OILhPseb3.mjs → DNhLiDpvz3lAR190.mjs} +2 -2
  30. package/browser/esm/{DG26kflIdO_PIeNZ.mjs → DR95Rgl8ItgWla8V.mjs} +2 -2
  31. package/browser/esm/{BDHzwq_DKJi-l3vm.mjs → DvYZOxsaTNeBKuFq.mjs} +98 -97
  32. package/browser/esm/{DkWV5seJEk7n5n4f.mjs → DyNZEBlugP-x15kP.mjs} +3 -3
  33. package/browser/esm/{BhUPwPyeqs6QNdfZ.mjs → DzWcb3yuPXS0E4_P.mjs} +3 -3
  34. package/browser/esm/{DFAzrYRM9N1LhRsL.mjs → WftYXVWvPKx99H0H.mjs} +2 -2
  35. package/browser/esm/{DzxWYVoWw4-RT-Ia.mjs → eoNyVUe5ZEpHwJ7k.mjs} +1 -1
  36. package/browser/esm/{FZXipbgDJzTXFMSX.mjs → hFLn30a6N1fEy7fz.mjs} +2225 -1546
  37. package/browser/esm/index.mjs +56 -56
  38. package/browser/esm/{D_kD4qmjhElkOeRw.mjs → jkFhDHWwKoyTSSDL.mjs} +1 -1
  39. package/node/esm/{CAe57GIDt8E3Sj1R.mjs → BTI9exTFHEYzVjw9.mjs} +1 -1
  40. package/node/esm/{BKpja0BXFbcWlnni.mjs → BbXHuDHRHOW_6Sbs.mjs} +1 -1
  41. package/node/esm/{6HLpHxyQNZYCN2_o.mjs → BlD3bHo8AAxK7O1j.mjs} +1 -1
  42. package/node/esm/{DCJNQumUzquqdCpn.mjs → CbpkRpNbQYYOJbxH.mjs} +3 -3
  43. package/node/esm/{DHVHJBTqBhlJQXpX.mjs → Ccrq9TNkiiSHKw-m.mjs} +1 -1
  44. package/node/esm/{aAEiFrxe-aYXbogR.mjs → CpteKzMPi39jxmYL.mjs} +1 -1
  45. package/node/esm/{4HI6dheaskyg9kLm.mjs → Cul_Vgip2OE8yFBQ.mjs} +1 -1
  46. package/node/esm/{CS307VndSoCLgQ-m.mjs → DA2gosTk8L-FUVI5.mjs} +1171 -1132
  47. package/node/esm/{BOsZituO28YENQvh.mjs → DP23-d6_VRFro0_D.mjs} +103 -102
  48. package/node/esm/{B9mtSfhFe3Hjcx9T.mjs → DQtpY5kX99aMHygs.mjs} +1 -1
  49. package/node/esm/{C4o3AryrtuiHuFLr.mjs → DifZAchLTKOmWpkv.mjs} +1 -1
  50. package/node/esm/{BT8pKXqqPi8PAXbL.mjs → Dvvg1Yo2e7OGd8sv.mjs} +1 -1
  51. package/node/esm/{COd_Ly7pt0y62C8c.mjs → YKY4d8_Ckc8nPQqI.mjs} +9 -9
  52. package/node/esm/index.mjs +3538 -2860
  53. package/node/esm/{B77SESbao6p6Y4Dy.mjs → lH1iFsECniBRMubb.mjs} +8 -8
  54. package/node/esm/{oAiHfSODZnkRxiTN.mjs → v0BFuYjhq2G8zDRe.mjs} +1 -1
  55. package/package.json +9 -9
  56. package/resources/locales/de/ui.msg.json +22 -4
  57. package/resources/locales/en/ui.msg.json +22 -4
  58. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +6 -0
  59. package/types/src/comments/CommentCard.d.ts +41 -0
  60. package/types/src/comments/CommentsPlugin.d.ts +6 -0
  61. package/types/src/comments/CommentsTaskPane.d.ts +23 -0
  62. package/types/src/comments/index.d.ts +4 -0
  63. package/types/src/conditions/BetweenOption.d.ts +5 -0
  64. package/types/src/conditions/ScalarOption.d.ts +18 -0
  65. package/types/src/dialog/index.d.ts +0 -1
  66. package/types/src/filter/FilterList.d.ts +3 -3
  67. package/types/src/form/FormulaField.d.ts +6 -0
  68. package/types/src/format/AlignmentPanel.d.ts +1 -2
  69. package/types/src/format/BorderPreview.d.ts +23 -13
  70. package/types/src/format/useFormatSelection.d.ts +3 -2
  71. package/types/src/index.d.ts +1 -0
  72. package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
  73. package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
  74. package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
  75. package/types/src/itemsPanel/index.d.ts +1 -0
  76. package/types/src/studio/StudioCommands.d.ts +2 -2
  77. package/types/src/studio/StudioProps.d.ts +1 -1
  78. package/types/src/studio/StudioSplitPane.d.ts +1 -1
  79. package/types/src/studio/useStudioApp.d.ts +2 -2
  80. package/types/src/template/useTemplateCatalog.d.ts +5 -5
  81. package/types/src/workbook/DefaultRenderers.d.ts +3 -1
  82. package/types/src/workbook/WorkbookElement.d.ts +1 -1
  83. package/browser/cjs/CucKgy044KxMHXrx.cjs +0 -13
  84. package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
  85. package/browser/cjs/L0TaaQ9lceHCeg8C.cjs +0 -8
  86. package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
  87. package/browser/cjs/iFPhqab5w95hHEsT.cjs +0 -1
  88. package/browser/esm/BkCuNLKQc4KN4Ss4.mjs +0 -97
  89. package/browser/esm/CMBpd4LN1GYbtCdW.mjs +0 -222
  90. package/node/esm/r_EDiG9j1gFuHgF9.mjs +0 -98
  91. package/types/src/dialog/CommentsDialog.d.ts +0 -11
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { i as e, n as t, r as n } from "./GZvjjMyv09_4zahu.mjs";
7
+ import { i as e, n as t, r as n } from "./0Rpk1T56LoSnDrmq.mjs";
8
8
  import { useReferenceMode as r, useWorkbook as i } from "@sheetxl/react";
9
9
  import { useCallbackRef as a, useTranslator as o } from "@sheetxl/utils-react";
10
10
  import { memo as s, useMemo as c, useRef as l, useState as u } from "react";
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { t as e } from "./DzxWYVoWw4-RT-Ia.mjs";
7
+ import { t as e } from "./eoNyVUe5ZEpHwJ7k.mjs";
8
8
  import { ICell as t, IRange as n } from "@sheetxl/sdk";
9
9
  import { CommandContext as r } from "@sheetxl/react";
10
10
  import { DynamicIcon as i, KeyCodes as a, KeyModifiers as o, useCallbackRef as s, useTranslator as c } 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. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { n as e, r as t, t as n } from "./C2Ja33FV0pE1u_b4.mjs";
7
+ import { n as e, r as t, t as n } from "./3L04oqyfyjRxhmzg.mjs";
8
8
  import { IRange as r, ISort as i, Sort as a } from "@sheetxl/sdk";
9
9
  import { DynamicIcon as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-react";
10
10
  import { memo as l, useMemo as u, useRef as d, useState as f } from "react";
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 "./BDHzwq_DKJi-l3vm.mjs";
7
+ import { a as e, i as t, n, r, t as i } from "./DvYZOxsaTNeBKuFq.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";
@@ -167,7 +167,7 @@ var C = "@container welcome (max-width: 500px)", w = (e) => {
167
167
  }),
168
168
  p(x, {
169
169
  variant: "caption",
170
- href: "https://github.com/sheetxl/workbook-templates",
170
+ href: "https://github.com/sheetxl/templates-workbook",
171
171
  target: "_blank",
172
172
  rel: "noopener noreferrer",
173
173
  children: P("dialog.welcome.addTemplate")
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { n as e } from "./CMBpd4LN1GYbtCdW.mjs";
8
- import { t } from "./ZLszpvKCQ6ZVPKdC.mjs";
7
+ import { n as e } from "./7gisHVXYgcPxWH8-.mjs";
8
+ import { t } from "./B7k8enrhC2Rvqhn1.mjs";
9
9
  import { useReferenceMode as n } from "@sheetxl/react";
10
10
  import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
11
11
  import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.
@@ -116,7 +116,7 @@ function F(n) {
116
116
  }, [C, r]), K = u(() => F ? G.filter((e) => e.scope === F) : G, [G, F]), [q, se] = d(null);
117
117
  l(() => {
118
118
  let e = !1;
119
- return import("./D_kD4qmjhElkOeRw.mjs").then((t) => {
119
+ return import("./jkFhDHWwKoyTSSDL.mjs").then((t) => {
120
120
  e || se(new t.default(K, {
121
121
  threshold: .3,
122
122
  ignoreLocation: !0,
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { t as e } from "./Ot_3uk9g5RQpAjcQ.mjs";
7
+ import { t as e } from "./B57WM1X24rsvTF_o.mjs";
8
8
  import { ReactUtils as t } from "@sheetxl/utils-react";
9
9
  import { Component as n, PureComponent as r, memo as i, useCallback as a, useLayoutEffect as o, useState as s } from "react";
10
10
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,28 +1,29 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { t as e } from "./aNqEbtO2cALJwwos.mjs";
8
- import { useGridColorScheme as t } from "@sheetxl/react";
9
- import { DynamicIcon as n, ReactUtils as r, useTranslator as i } from "@sheetxl/utils-react";
10
- import { forwardRef as a, memo as o, useCallback as s, useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
11
- import { ExhibitIconButton as p } from "@sheetxl/utils-mui";
12
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
- import { Box as g, Button as _, ButtonBase as v, InputAdornment as y, Skeleton as b, TextField as x, Typography as S } from "@mui/material";
14
- import { listResources as C } from "@sheetxl/utils";
15
- var w = "8 / 5", T = (e) => {
16
- let { entry: n } = e, r = (t() === "dark" ? n.thumbnailDarkUrl : void 0) ?? n.thumbnailUrl;
17
- return m(E, { src: r }, r);
18
- }, E = (e) => {
19
- let { src: t } = e, [r, i] = f(t ? "loading" : "failed");
20
- return m(g, {
7
+ import { t as e } from "./CpTqhDZotYaKGbLl.mjs";
8
+ import { VERSION as t } from "@sheetxl/sdk";
9
+ import { useGridColorScheme as n } from "@sheetxl/react";
10
+ import { DynamicIcon as r, ReactUtils as i, useTranslator as a } from "@sheetxl/utils-react";
11
+ import { forwardRef as o, memo as s, useCallback as c, useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
12
+ import { ExhibitIconButton as m } from "@sheetxl/utils-mui";
13
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
14
+ import { Box as _, Button as v, ButtonBase as y, InputAdornment as b, Skeleton as x, TextField as S, Typography as C } from "@mui/material";
15
+ import { listResources as w } from "@sheetxl/utils";
16
+ var T = "8 / 5", E = (e) => {
17
+ let { entry: t } = e, r = (n() === "dark" ? t.thumbnailDarkUrl : void 0) ?? t.thumbnailUrl;
18
+ return h(D, { src: r }, r);
19
+ }, D = (e) => {
20
+ let { src: t } = e, [n, i] = p(t ? "loading" : "failed");
21
+ return h(_, {
21
22
  className: "template-thumbnail",
22
23
  sx: {
23
24
  position: "relative",
24
25
  width: "100%",
25
- aspectRatio: w,
26
+ aspectRatio: T,
26
27
  overflow: "hidden",
27
28
  borderRadius: 1,
28
29
  border: (e) => `1px solid ${e.palette.divider}`,
@@ -32,13 +33,13 @@ var w = "8 / 5", T = (e) => {
32
33
  alignItems: "center",
33
34
  justifyContent: "center"
34
35
  },
35
- children: r === "failed" ? m(n, {
36
+ children: n === "failed" ? h(r, {
36
37
  iconKey: "FileNew",
37
38
  style: {
38
39
  fontSize: "2.5rem",
39
40
  opacity: .4
40
41
  }
41
- }) : m("img", {
42
+ }) : h("img", {
42
43
  src: t,
43
44
  alt: "",
44
45
  loading: "lazy",
@@ -50,14 +51,14 @@ var w = "8 / 5", T = (e) => {
50
51
  height: "100%",
51
52
  objectFit: "cover",
52
53
  objectPosition: "top left",
53
- opacity: +(r === "loaded"),
54
+ opacity: +(n === "loaded"),
54
55
  transition: "opacity 150ms ease-out"
55
56
  }
56
57
  })
57
58
  });
58
- }, D = (e) => {
59
+ }, O = (e) => {
59
60
  let { entry: t, category: n, onSelect: r } = e;
60
- return h(v, {
61
+ return g(y, {
61
62
  className: "template-tile",
62
63
  disableRipple: !0,
63
64
  onClick: r,
@@ -80,14 +81,14 @@ var w = "8 / 5", T = (e) => {
80
81
  outlineOffset: "-2px"
81
82
  }
82
83
  },
83
- children: [m(T, { entry: t }), h(g, {
84
+ children: [h(E, { entry: t }), g(_, {
84
85
  sx: { minWidth: 0 },
85
- children: [m(S, {
86
+ children: [h(C, {
86
87
  variant: "subtitle2",
87
88
  component: "div",
88
89
  noWrap: !0,
89
90
  children: t.title
90
- }), n ? m(S, {
91
+ }), n ? h(C, {
91
92
  variant: "caption",
92
93
  component: "div",
93
94
  noWrap: !0,
@@ -96,7 +97,7 @@ var w = "8 / 5", T = (e) => {
96
97
  }) : null]
97
98
  })]
98
99
  });
99
- }, O = () => h(g, {
100
+ }, k = () => g(_, {
100
101
  sx: {
101
102
  padding: 1,
102
103
  display: "flex",
@@ -104,47 +105,47 @@ var w = "8 / 5", T = (e) => {
104
105
  gap: .75
105
106
  },
106
107
  children: [
107
- m(b, {
108
+ h(x, {
108
109
  variant: "rectangular",
109
110
  sx: {
110
111
  width: "100%",
111
112
  height: "auto",
112
- aspectRatio: w,
113
+ aspectRatio: T,
113
114
  borderRadius: 1
114
115
  }
115
116
  }),
116
- m(b, {
117
+ h(x, {
117
118
  variant: "text",
118
119
  width: "60%"
119
120
  }),
120
- m(b, {
121
+ h(x, {
121
122
  variant: "text",
122
123
  width: "35%"
123
124
  })
124
125
  ]
125
- }), k = o(a((t, n) => {
126
- let { catalog: a, onSelect: o, filter: s, groupBy: p, renderTile: v, tileMinWidth: y = 180, emptyLabel: b, visibleRows: x, sx: C = r.EmptyCssProperties, style: w, className: T, onKeyDown: E, ...k } = t, A = i(), j = d(null), [M, N] = f(0), P = d(null);
126
+ }), A = s(o((t, n) => {
127
+ let { catalog: r, onSelect: o, filter: s, groupBy: c, renderTile: m, tileMinWidth: y = 180, emptyLabel: b, visibleRows: x, sx: S = i.EmptyCssProperties, style: w, className: T, onKeyDown: E, ...D } = t, A = a(), j = f(null), [M, N] = p(0), P = f(null);
127
128
  P.current = () => {
128
129
  let e = j.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
129
130
  t && N(t);
130
- }, l(() => {
131
+ }, u(() => {
131
132
  x && P.current?.();
132
- }), c(() => {
133
+ }), l(() => {
133
134
  let e = j.current;
134
135
  if (!x || !e) return;
135
136
  let t = new ResizeObserver(() => P.current?.());
136
137
  return t.observe(e), () => t.disconnect();
137
138
  }, [x]);
138
- let F = u(() => new Map(a.categories.map((e) => [e.id, e])), [a.categories]), I = u(() => {
139
- let e = s ? a.entries.filter(s) : a.entries;
140
- if (!p) return [{
139
+ let F = d(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), I = d(() => {
140
+ let e = s ? r.entries.filter(s) : r.entries;
141
+ if (!c) return [{
141
142
  key: null,
142
143
  entries: e
143
144
  }];
144
145
  let t = /* @__PURE__ */ new Map();
145
- for (let e of a.categories) t.set(e.id, []);
146
+ for (let e of r.categories) t.set(e.id, []);
146
147
  for (let n of e) {
147
- let e = p(n), r = t.get(e);
148
+ let e = c(n), r = t.get(e);
148
149
  r || t.set(e, r = []), r.push(n);
149
150
  }
150
151
  return [...t].filter(([, e]) => e.length > 0).map(([e, t]) => ({
@@ -153,23 +154,23 @@ var w = "8 / 5", T = (e) => {
153
154
  entries: t
154
155
  }));
155
156
  }, [
156
- a.entries,
157
- a.categories,
157
+ r.entries,
158
+ r.categories,
158
159
  F,
159
160
  s,
160
- p
161
+ c
161
162
  ]), L = {
162
163
  display: "grid",
163
164
  gridTemplateColumns: `repeat(auto-fill, minmax(${y}px, 1fr))`,
164
165
  gap: "8px"
165
166
  }, R;
166
- return R = a.status === "loading" ? m(g, {
167
+ return R = r.status === "loading" ? h(_, {
167
168
  className: "template-grid",
168
169
  sx: L,
169
170
  "aria-busy": "true",
170
171
  "aria-label": A("template.loading"),
171
- children: Array.from({ length: 6 }, (e, t) => m(O, {}, t))
172
- }) : a.status === "error" ? h(g, {
172
+ children: Array.from({ length: 6 }, (e, t) => h(k, {}, t))
173
+ }) : r.status === "error" ? g(_, {
173
174
  sx: {
174
175
  display: "flex",
175
176
  flexDirection: "column",
@@ -178,17 +179,17 @@ var w = "8 / 5", T = (e) => {
178
179
  padding: 4,
179
180
  textAlign: "center"
180
181
  },
181
- children: [m(S, {
182
+ children: [h(C, {
182
183
  variant: "body2",
183
184
  sx: { color: "text.secondary" },
184
185
  children: A("template.loadFailed")
185
- }), m(_, {
186
+ }), h(v, {
186
187
  variant: "outlined",
187
188
  size: "small",
188
- onClick: a.retry,
189
+ onClick: r.retry,
189
190
  children: A("template.retry")
190
191
  })]
191
- }) : I.every((e) => e.entries.length === 0) ? m(S, {
192
+ }) : I.every((e) => e.entries.length === 0) ? h(C, {
192
193
  variant: "body2",
193
194
  sx: {
194
195
  color: "text.secondary",
@@ -196,10 +197,10 @@ var w = "8 / 5", T = (e) => {
196
197
  textAlign: "center"
197
198
  },
198
199
  children: b ?? A("template.empty")
199
- }) : I.map((e) => h(g, {
200
+ }) : I.map((e) => g(_, {
200
201
  role: "group",
201
202
  "aria-label": e.title,
202
- children: [e.title ? m(S, {
203
+ children: [e.title ? h(C, {
203
204
  variant: "overline",
204
205
  component: "div",
205
206
  sx: {
@@ -207,7 +208,7 @@ var w = "8 / 5", T = (e) => {
207
208
  paddingX: 1
208
209
  },
209
210
  children: e.title
210
- }) : null, m(g, {
211
+ }) : null, h(_, {
211
212
  className: "template-grid",
212
213
  sx: L,
213
214
  children: e.entries.map((e) => {
@@ -215,19 +216,19 @@ var w = "8 / 5", T = (e) => {
215
216
  category: F.get(e.category),
216
217
  onSelect: () => o?.(e)
217
218
  };
218
- return v ? m(g, {
219
+ return m ? h(_, {
219
220
  sx: { display: "contents" },
220
- children: v(e, t)
221
- }, e.id) : m(D, {
221
+ children: m(e, t)
222
+ }, e.id) : h(O, {
222
223
  entry: e,
223
224
  ...t
224
225
  }, e.id);
225
226
  })
226
227
  })]
227
- }, e.key ?? "")), m(g, {
228
+ }, e.key ?? "")), h(_, {
228
229
  ref: n,
229
230
  className: e(T, "template-panel"),
230
- sx: C,
231
+ sx: S,
231
232
  style: x && M ? {
232
233
  boxSizing: "content-box",
233
234
  scrollbarGutter: "stable",
@@ -235,8 +236,8 @@ var w = "8 / 5", T = (e) => {
235
236
  minHeight: `${Math.ceil(M)}px`,
236
237
  ...w
237
238
  } : w,
238
- ...k,
239
- children: m(g, {
239
+ ...D,
240
+ children: h(_, {
240
241
  ref: j,
241
242
  onKeyDown: (e) => {
242
243
  if (E?.(e), e.defaultPrevented) return;
@@ -274,8 +275,8 @@ var w = "8 / 5", T = (e) => {
274
275
  })
275
276
  });
276
277
  }));
277
- k.displayName = "TemplatePanel";
278
- var A = (e, t, n) => {
278
+ A.displayName = "TemplatePanel";
279
+ var j = (e, t, n) => {
279
280
  let r = t.trim().toLowerCase();
280
281
  return !r || [
281
282
  e.title,
@@ -283,34 +284,34 @@ var A = (e, t, n) => {
283
284
  n?.title,
284
285
  ...e.tags ?? []
285
286
  ].some((e) => e?.toLowerCase().includes(r));
286
- }, j = (e) => {
287
- let { value: t, onChange: r, sx: a } = e, o = i();
288
- return m(x, {
287
+ }, M = (e) => {
288
+ let { value: t, onChange: n, sx: i } = e, o = a();
289
+ return h(S, {
289
290
  size: "small",
290
291
  value: t,
291
292
  placeholder: o("template.search"),
292
- onChange: (e) => r(e.target.value),
293
+ onChange: (e) => n(e.target.value),
293
294
  onKeyDown: (e) => {
294
- e.key === "Escape" && t && (e.stopPropagation(), r(""));
295
+ e.key === "Escape" && t && (e.stopPropagation(), n(""));
295
296
  },
296
- sx: a,
297
+ sx: i,
297
298
  slotProps: {
298
299
  input: {
299
300
  sx: { backgroundColor: "background.paper" },
300
- startAdornment: m(y, {
301
+ startAdornment: h(b, {
301
302
  position: "start",
302
- children: m(n, { iconKey: "Find" })
303
+ children: h(r, { iconKey: "Find" })
303
304
  }),
304
- endAdornment: t ? m(y, {
305
+ endAdornment: t ? h(b, {
305
306
  position: "end",
306
- children: m(p, {
307
+ children: h(m, {
307
308
  "aria-label": o("template.clearSearch"),
308
309
  propsTooltip: { label: o("template.clearSearch") },
309
310
  onMouseDown: (e) => {
310
311
  e.button === 0 && e.preventDefault();
311
312
  },
312
- onClick: () => r(""),
313
- icon: m(n, { iconKey: "Close" }),
313
+ onClick: () => n(""),
314
+ icon: h(r, { iconKey: "Close" }),
314
315
  size: "small"
315
316
  })
316
317
  }) : void 0
@@ -322,44 +323,44 @@ var A = (e, t, n) => {
322
323
  }
323
324
  }
324
325
  });
325
- }, M = "https://unpkg.com/@sheetxl/workbook-templates/dist", N = "workbook-templates", P = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), F = (e, t) => {
326
- let n = `${e}${e.endsWith("/") ? "" : "/"}${N}/${t}`;
326
+ }, N = /^\d+\.\d+\.\d+-([0-9A-Za-z-]+)/.exec(t)?.[1], P = `https://unpkg.com/@sheetxl/templates-workbook${N ? `@${N}` : ""}/dist`, F = "templates-workbook", I = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), L = (e, t) => {
327
+ let n = `${e}${e.endsWith("/") ? "" : "/"}${F}/${t}`;
327
328
  return typeof document > "u" ? n : new URL(n, document.baseURI).href;
328
- }, I = (e) => typeof e == "string" && e ? e : void 0, L = /* @__PURE__ */ new Map(), R = (e = M) => {
329
- let t = L.get(e);
329
+ }, R = (e) => typeof e == "string" && e ? e : void 0, z = /* @__PURE__ */ new Map(), B = (e = P) => {
330
+ let t = z.get(e);
330
331
  return t || (t = (async () => {
331
- let t = (await C("templates", N, e)).find((e) => e.meta?.schema !== void 0);
332
+ let t = (await w("templates", F, e)).find((e) => e.meta?.schema !== void 0);
332
333
  if (!t) throw Error(`No template catalog found at '${e}'.`);
333
334
  return Math.floor(Number(t.meta?.schema)) === 1 ? ((e, t) => {
334
335
  let n = Array.isArray(e.meta?.categories) ? e.meta.categories : [], r = [], i = /* @__PURE__ */ new Set();
335
336
  for (let e of n) {
336
- let t = I(e?.id);
337
+ let t = R(e?.id);
337
338
  t && !i.has(t) && (i.add(t), r.push({
338
339
  id: t,
339
- title: I(e.title) ?? P(t),
340
- description: I(e.description),
341
- icon: I(e.icon)
340
+ title: R(e.title) ?? I(t),
341
+ description: R(e.description),
342
+ icon: R(e.icon)
342
343
  }));
343
344
  }
344
345
  let a = [];
345
346
  for (let n of e.entries) {
346
347
  let e = n.path, o = e.split("/");
347
348
  if (o.length !== 2 || !/\.(?:xlsx|sxl|csv)$/i.test(e)) continue;
348
- let s = I(n.category) ?? o[0];
349
+ let s = R(n.category) ?? o[0];
349
350
  i.has(s) || (i.add(s), r.push({
350
351
  id: s,
351
- title: P(s)
352
+ title: I(s)
352
353
  }));
353
- let c = I(n.thumbnail), l = I(n.thumbnailDark);
354
+ let c = R(n.thumbnail), l = R(n.thumbnailDark);
354
355
  a.push({
355
356
  id: e,
356
- title: I(n.title) ?? P(o[1]),
357
+ title: R(n.title) ?? I(o[1]),
357
358
  category: s,
358
- description: I(n.description),
359
+ description: R(n.description),
359
360
  tags: Array.isArray(n.tags) ? n.tags.filter((e) => typeof e == "string") : void 0,
360
- thumbnailUrl: c ? F(t, c) : void 0,
361
- thumbnailDarkUrl: l ? F(t, l) : void 0,
362
- sourceUrl: F(t, e)
361
+ thumbnailUrl: c ? L(t, c) : void 0,
362
+ thumbnailDarkUrl: l ? L(t, l) : void 0,
363
+ sourceUrl: L(t, e)
363
364
  });
364
365
  }
365
366
  return {
@@ -370,22 +371,22 @@ var A = (e, t, n) => {
370
371
  categories: [],
371
372
  entries: []
372
373
  });
373
- })(), L.set(e, t), t.catch(() => {
374
- L.delete(e);
374
+ })(), z.set(e, t), t.catch(() => {
375
+ z.delete(e);
375
376
  })), t;
376
- }, z = (e = {}) => {
377
- let { path: t = M } = e, [n, r] = f(0), [i, a] = f({
377
+ }, V = (e = {}) => {
378
+ let { path: t = P } = e, [n, r] = p(0), [i, a] = p({
378
379
  status: "loading",
379
380
  categories: [],
380
381
  entries: []
381
382
  });
382
- return c(() => {
383
+ return l(() => {
383
384
  let e = !1;
384
385
  return a((e) => e.status === "loading" ? e : {
385
386
  status: "loading",
386
387
  categories: [],
387
388
  entries: []
388
- }), R(t).then((t) => {
389
+ }), B(t).then((t) => {
389
390
  e || a({
390
391
  status: "ready",
391
392
  ...t
@@ -402,9 +403,9 @@ var A = (e, t, n) => {
402
403
  };
403
404
  }, [t, n]), {
404
405
  ...i,
405
- retry: s(() => {
406
+ retry: c(() => {
406
407
  r((e) => e + 1);
407
408
  }, [])
408
409
  };
409
410
  };
410
- export { k as a, A as i, z as n, j as r, R as t };
411
+ export { A as a, j as i, V as n, M as r, B as t };
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { n as e } from "./CMBpd4LN1GYbtCdW.mjs";
8
- import { t } from "./ZLszpvKCQ6ZVPKdC.mjs";
7
+ import { n as e } from "./7gisHVXYgcPxWH8-.mjs";
8
+ import { t } from "./B7k8enrhC2Rvqhn1.mjs";
9
9
  import { useReferenceMode as n } from "@sheetxl/react";
10
10
  import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
11
11
  import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 { n as e } from "./CMBpd4LN1GYbtCdW.mjs";
8
- import { t } from "./ZLszpvKCQ6ZVPKdC.mjs";
7
+ import { n as e } from "./7gisHVXYgcPxWH8-.mjs";
8
+ import { t } from "./B7k8enrhC2Rvqhn1.mjs";
9
9
  import { useReferenceMode as n } from "@sheetxl/react";
10
10
  import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
11
11
  import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "react";
@@ -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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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 } from "./BDHzwq_DKJi-l3vm.mjs";
7
+ import { a as e, i as t, n, r } from "./DvYZOxsaTNeBKuFq.mjs";
8
8
  import { useTranslator as i } from "@sheetxl/utils-react";
9
9
  import { useCallback as a, useMemo as o, useState as s } from "react";
10
10
  import { InternalWindow as c } 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. - v0.8.0-beta.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
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.