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

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 (132) hide show
  1. package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
  2. package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
  3. package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
  4. package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
  5. package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
  6. package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
  7. package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
  8. package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
  9. package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
  10. package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
  11. package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
  12. package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
  13. package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
  14. package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
  15. package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
  16. package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
  17. package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
  18. package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
  19. package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
  20. package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
  21. package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
  22. package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
  23. package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
  24. package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
  25. package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
  26. package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
  27. package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
  28. package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
  29. package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
  30. package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
  31. package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
  32. package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
  33. package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
  34. package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
  35. package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
  36. package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
  37. package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
  38. package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
  39. package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
  40. package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
  41. package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
  42. package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
  43. package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
  44. package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
  45. package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
  46. package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
  47. package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
  48. package/browser/esm/index.mjs +290 -287
  49. package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
  50. package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
  51. package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
  52. package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
  53. package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
  54. package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
  55. package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
  56. package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
  57. package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
  58. package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
  59. package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
  60. package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
  61. package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
  62. package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
  63. package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
  64. package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
  65. package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
  66. package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
  67. package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
  68. package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
  69. package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
  70. package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
  71. package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
  72. package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
  73. package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
  74. package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
  75. package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
  76. package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
  77. package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
  78. package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
  79. package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
  80. package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
  81. package/node/esm/index.mjs +2936 -2800
  82. package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
  83. package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
  84. package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
  85. package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
  86. package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +16 -1
  89. package/resources/locales/de/ui.msg.json +3 -1
  90. package/resources/locales/en/groups.cmd.json +16 -1
  91. package/resources/locales/en/ui.msg.json +3 -1
  92. package/types/src/border/BorderPopupButton.d.ts +1 -1
  93. package/types/src/color/ColorPopupButton.d.ts +1 -1
  94. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  95. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  96. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  97. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  98. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  99. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  100. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  101. package/types/src/command/index.d.ts +1 -0
  102. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  103. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  104. package/types/src/conditions/MembershipOption.d.ts +1 -1
  105. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  106. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  107. package/types/src/conditions/SelectorSelect.d.ts +1 -1
  108. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
  109. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  110. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  111. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  112. package/types/src/filter/ColumnMenu.d.ts +1 -1
  113. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  114. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  115. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  116. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  117. package/types/src/shape/ShapePlugin.d.ts +2 -0
  118. package/types/src/shape/index.d.ts +1 -1
  119. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  120. package/types/src/statusBar/index.d.ts +1 -0
  121. package/types/src/studio/StudioProps.d.ts +10 -10
  122. package/types/src/template/TemplatePanel.d.ts +5 -1
  123. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  124. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  125. package/types/src/workbook/DefaultRenderers.d.ts +30 -18
  126. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  127. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  128. package/types/src/workbook/index.d.ts +1 -1
  129. package/browser/esm/QgaAIDUMmBQBsXP9.mjs +0 -236
  130. package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
  131. package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
  132. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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 "./ClBvNPeNCAhuVWrG.mjs";
7
+ import { t as e } from "./CkmieJ2_aHVESg8Q.mjs";
8
8
  import { Color as t, VERSION as n } from "@sheetxl/sdk";
9
9
  import { useGridColorScheme as r } from "@sheetxl/react";
10
- import { DynamicIcon as i, ReactUtils as a, useTranslator as o } from "@sheetxl/utils-react";
11
- import { forwardRef as s, memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
12
- import { ExhibitIconButton as h } from "@sheetxl/utils-mui";
13
- import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
- import { Box as y, Button as b, ButtonBase as x, Chip as S, Divider as C, InputAdornment as w, ListItemIcon as T, ListItemText as E, Menu as D, MenuItem as O, Skeleton as k, TextField as A, Typography as j } from "@mui/material";
15
- import { listResources as M, releaseChannel as N } from "@sheetxl/utils";
16
- var P = (e, n) => {
10
+ import { DynamicIcon as i, ReactUtils as a, RenderSlot as o, useTranslator as s } from "@sheetxl/utils-react";
11
+ import { forwardRef as c, memo as l, useCallback as u, useEffect as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
12
+ import { ExhibitIconButton as g } from "@sheetxl/utils-mui";
13
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
14
+ import { Box as b, Button as x, ButtonBase as S, Chip as C, Divider as w, InputAdornment as T, ListItemIcon as E, ListItemText as D, Menu as O, MenuItem as k, Skeleton as A, TextField as j, Typography as M } from "@mui/material";
15
+ import { listResources as N, releaseChannel as P } from "@sheetxl/utils";
16
+ var F = (e, n) => {
17
17
  if (!e?.color) return null;
18
18
  try {
19
19
  let r = new t(e.color).toCSS(n.palette.mode === "dark");
@@ -24,20 +24,20 @@ var P = (e, n) => {
24
24
  } catch {
25
25
  return null;
26
26
  }
27
- }, F = "8 / 5", I = (e) => {
27
+ }, I = "8 / 5", L = (e) => {
28
28
  let { entry: t, category: n } = e, i = (r() === "dark" ? t.thumbnailDarkUrl : void 0) ?? t.thumbnailUrl;
29
- return _(L, {
29
+ return v(R, {
30
30
  src: i,
31
31
  category: n
32
32
  }, i);
33
- }, L = (e) => {
34
- let { src: t, category: n } = e, [r, a] = m(t ? "loading" : "failed");
35
- return v(y, {
33
+ }, R = (e) => {
34
+ let { src: t, category: n } = e, [r, a] = h(t ? "loading" : "failed");
35
+ return y(b, {
36
36
  className: "template-thumbnail",
37
37
  sx: {
38
38
  position: "relative",
39
39
  width: "100%",
40
- aspectRatio: F,
40
+ aspectRatio: I,
41
41
  overflow: "hidden",
42
42
  borderRadius: 1,
43
43
  border: (e) => `1px solid ${e.palette.divider}`,
@@ -47,13 +47,13 @@ var P = (e, n) => {
47
47
  alignItems: "center",
48
48
  justifyContent: "center"
49
49
  },
50
- children: [r === "failed" ? _(i, {
50
+ children: [r === "failed" ? v(i, {
51
51
  iconKey: "FileNew",
52
52
  style: {
53
53
  fontSize: "2.5rem",
54
54
  opacity: .4
55
55
  }
56
- }) : _("img", {
56
+ }) : v("img", {
57
57
  src: t,
58
58
  alt: "",
59
59
  loading: "lazy",
@@ -68,18 +68,18 @@ var P = (e, n) => {
68
68
  opacity: +(r === "loaded"),
69
69
  transition: "opacity 150ms ease-out"
70
70
  }
71
- }), n?.color ? _(y, { sx: (e) => ({
71
+ }), n?.color ? v(b, { sx: (e) => ({
72
72
  position: "absolute",
73
73
  top: 0,
74
74
  left: 0,
75
75
  right: 0,
76
76
  height: "3px",
77
- backgroundColor: P(n, e)?.fill
77
+ backgroundColor: F(n, e)?.fill
78
78
  }) }) : null]
79
79
  });
80
- }, R = (e) => {
80
+ }, z = (e) => {
81
81
  let { entry: t, category: n, onSelect: r } = e;
82
- return v(x, {
82
+ return y(S, {
83
83
  className: "template-tile",
84
84
  disableRipple: !0,
85
85
  onClick: r,
@@ -102,17 +102,17 @@ var P = (e, n) => {
102
102
  outlineOffset: "-2px"
103
103
  }
104
104
  },
105
- children: [_(I, {
105
+ children: [v(L, {
106
106
  entry: t,
107
107
  category: n
108
- }), v(y, {
108
+ }), y(b, {
109
109
  sx: { minWidth: 0 },
110
- children: [_(j, {
110
+ children: [v(M, {
111
111
  variant: "subtitle2",
112
112
  component: "div",
113
113
  noWrap: !0,
114
114
  children: t.title
115
- }), n ? v(j, {
115
+ }), n ? y(M, {
116
116
  variant: "caption",
117
117
  component: "div",
118
118
  noWrap: !0,
@@ -122,16 +122,16 @@ var P = (e, n) => {
122
122
  alignItems: "center",
123
123
  gap: .75
124
124
  },
125
- children: [n.color ? _(y, {
125
+ children: [n.color ? v(b, {
126
126
  component: "span",
127
127
  sx: (e) => ({
128
128
  width: "8px",
129
129
  height: "8px",
130
130
  borderRadius: "50%",
131
131
  flex: "none",
132
- backgroundColor: P(n, e)?.fill
132
+ backgroundColor: F(n, e)?.fill
133
133
  })
134
- }) : null, _(y, {
134
+ }) : null, v(b, {
135
135
  component: "span",
136
136
  sx: {
137
137
  overflow: "hidden",
@@ -142,7 +142,7 @@ var P = (e, n) => {
142
142
  }) : null]
143
143
  })]
144
144
  });
145
- }, z = () => v(y, {
145
+ }, B = () => y(b, {
146
146
  sx: {
147
147
  padding: 1,
148
148
  display: "flex",
@@ -150,72 +150,72 @@ var P = (e, n) => {
150
150
  gap: .75
151
151
  },
152
152
  children: [
153
- _(k, {
153
+ v(A, {
154
154
  variant: "rectangular",
155
155
  sx: {
156
156
  width: "100%",
157
157
  height: "auto",
158
- aspectRatio: F,
158
+ aspectRatio: I,
159
159
  borderRadius: 1
160
160
  }
161
161
  }),
162
- _(k, {
162
+ v(A, {
163
163
  variant: "text",
164
164
  width: "60%"
165
165
  }),
166
- _(k, {
166
+ v(A, {
167
167
  variant: "text",
168
168
  width: "35%"
169
169
  })
170
170
  ]
171
- }), B = c(s((t, n) => {
172
- let { catalog: r, onSelect: i, filter: s, groupBy: c, renderTile: l, tileMinWidth: h = 180, emptyLabel: g, visibleRows: x, sx: S = a.EmptyCssProperties, style: C, className: w, onKeyDown: T, ...E } = t, D = o(), O = p(null), [k, A] = m(0), M = p(null);
173
- M.current = () => {
174
- let e = O.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
175
- t && A(t);
176
- }, d(() => {
177
- x && M.current?.();
178
- }), u(() => {
179
- let e = O.current;
180
- if (!x || !e) return;
181
- let t = new ResizeObserver(() => M.current?.());
171
+ }), V = l(c((t, n) => {
172
+ let { catalog: r, onSelect: i, filter: c, groupBy: l, renderTile: u, tileMinWidth: g = 180, emptyLabel: _, visibleRows: S, sx: C = a.EmptyCssProperties, style: w, className: T, onKeyDown: E, ...D } = t, O = s(), k = m(null), [A, j] = h(0), N = m(null);
173
+ N.current = () => {
174
+ let e = k.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
175
+ t && j(t);
176
+ }, f(() => {
177
+ S && N.current?.();
178
+ }), d(() => {
179
+ let e = k.current;
180
+ if (!S || !e) return;
181
+ let t = new ResizeObserver(() => N.current?.());
182
182
  return t.observe(e), () => t.disconnect();
183
- }, [x]);
184
- let N = f(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), P = f(() => {
185
- let e = s ? r.entries.filter(s) : r.entries;
186
- if (!c) return [{
183
+ }, [S]);
184
+ let P = p(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), F = p(() => {
185
+ let e = c ? r.entries.filter(c) : r.entries;
186
+ if (!l) return [{
187
187
  key: null,
188
188
  entries: e
189
189
  }];
190
190
  let t = /* @__PURE__ */ new Map();
191
191
  for (let e of r.categories) t.set(e.id, []);
192
192
  for (let n of e) {
193
- let e = c(n), r = t.get(e);
193
+ let e = l(n), r = t.get(e);
194
194
  r || t.set(e, r = []), r.push(n);
195
195
  }
196
196
  return [...t].filter(([, e]) => e.length > 0).map(([e, t]) => ({
197
197
  key: e,
198
- title: N.get(e)?.title ?? e,
198
+ title: P.get(e)?.title ?? e,
199
199
  entries: t
200
200
  }));
201
201
  }, [
202
202
  r.entries,
203
203
  r.categories,
204
- N,
205
- s,
206
- c
207
- ]), F = {
204
+ P,
205
+ c,
206
+ l
207
+ ]), I = {
208
208
  display: "grid",
209
- gridTemplateColumns: `repeat(auto-fill, minmax(${h}px, 1fr))`,
209
+ gridTemplateColumns: `repeat(auto-fill, minmax(${g}px, 1fr))`,
210
210
  gap: "8px"
211
- }, I;
212
- return I = r.status === "loading" ? _(y, {
211
+ }, L;
212
+ return L = r.status === "loading" ? v(b, {
213
213
  className: "template-grid",
214
- sx: F,
214
+ sx: I,
215
215
  "aria-busy": "true",
216
- "aria-label": D("template.loading"),
217
- children: Array.from({ length: 6 }, (e, t) => _(z, {}, t))
218
- }) : r.status === "error" ? v(y, {
216
+ "aria-label": O("template.loading"),
217
+ children: Array.from({ length: 6 }, (e, t) => v(B, {}, t))
218
+ }) : r.status === "error" ? y(b, {
219
219
  sx: {
220
220
  display: "flex",
221
221
  flexDirection: "column",
@@ -224,28 +224,28 @@ var P = (e, n) => {
224
224
  padding: 4,
225
225
  textAlign: "center"
226
226
  },
227
- children: [_(j, {
227
+ children: [v(M, {
228
228
  variant: "body2",
229
229
  sx: { color: "text.secondary" },
230
- children: D("template.loadFailed")
231
- }), _(b, {
230
+ children: O("template.loadFailed")
231
+ }), v(x, {
232
232
  variant: "outlined",
233
233
  size: "small",
234
234
  onClick: r.retry,
235
- children: D("template.retry")
235
+ children: O("template.retry")
236
236
  })]
237
- }) : P.every((e) => e.entries.length === 0) ? _(j, {
237
+ }) : F.every((e) => e.entries.length === 0) ? v(M, {
238
238
  variant: "body2",
239
239
  sx: {
240
240
  color: "text.secondary",
241
241
  padding: 4,
242
242
  textAlign: "center"
243
243
  },
244
- children: g ?? D("template.empty")
245
- }) : P.map((e) => v(y, {
244
+ children: _ ?? O("template.empty")
245
+ }) : F.map((e) => y(b, {
246
246
  role: "group",
247
247
  "aria-label": e.title,
248
- children: [e.title ? _(j, {
248
+ children: [e.title ? v(M, {
249
249
  variant: "overline",
250
250
  component: "div",
251
251
  sx: {
@@ -253,40 +253,46 @@ var P = (e, n) => {
253
253
  paddingX: 1
254
254
  },
255
255
  children: e.title
256
- }) : null, _(y, {
256
+ }) : null, v(b, {
257
257
  className: "template-grid",
258
- sx: F,
258
+ sx: I,
259
259
  children: e.entries.map((e) => {
260
260
  let t = {
261
- category: N.get(e.category),
261
+ category: P.get(e.category),
262
262
  onSelect: () => i?.(e)
263
263
  };
264
- return l ? _(y, {
264
+ return u ? v(b, {
265
265
  sx: { display: "contents" },
266
- children: l(e, t)
267
- }, e.id) : _(R, {
266
+ children: v(o, {
267
+ render: u,
268
+ props: {
269
+ entry: e,
270
+ ...t
271
+ }
272
+ })
273
+ }, e.id) : v(z, {
268
274
  entry: e,
269
275
  ...t
270
276
  }, e.id);
271
277
  })
272
278
  })]
273
- }, e.key ?? "")), _(y, {
279
+ }, e.key ?? "")), v(b, {
274
280
  ref: n,
275
- className: e(w, "template-panel"),
276
- sx: S,
277
- style: x && k ? {
281
+ className: e(T, "template-panel"),
282
+ sx: C,
283
+ style: S && A ? {
278
284
  boxSizing: "content-box",
279
285
  scrollbarGutter: "stable",
280
- height: `${Math.ceil(x * k + 8 * (x - 1))}px`,
281
- minHeight: `${Math.ceil(k)}px`,
282
- ...C
283
- } : C,
284
- ...E,
285
- children: _(y, {
286
- ref: O,
286
+ height: `${Math.ceil(S * A + 8 * (S - 1))}px`,
287
+ minHeight: `${Math.ceil(A)}px`,
288
+ ...w
289
+ } : w,
290
+ ...D,
291
+ children: v(b, {
292
+ ref: k,
287
293
  onKeyDown: (e) => {
288
- if (T?.(e), e.defaultPrevented) return;
289
- let t = O.current;
294
+ if (E?.(e), e.defaultPrevented) return;
295
+ let t = k.current;
290
296
  if (!t) return;
291
297
  let n = Array.from(t.querySelectorAll(".template-tile")), r = n.indexOf(document.activeElement);
292
298
  if (r < 0) return;
@@ -316,12 +322,12 @@ var P = (e, n) => {
316
322
  }
317
323
  s = Math.max(0, Math.min(n.length - 1, s)), e.preventDefault(), n[s].focus();
318
324
  },
319
- children: I
325
+ children: L
320
326
  })
321
327
  });
322
328
  }));
323
- B.displayName = "TemplatePanel";
324
- var V = (e, t, n) => f(() => {
329
+ V.displayName = "TemplatePanel";
330
+ var H = (e, t, n) => p(() => {
325
331
  if (!t.trim() && n.length === 0) return;
326
332
  let r = new Map(e.map((e) => [e.id, e])), i = n.length > 0 ? new Set(n) : null;
327
333
  return (e) => !(i && !i.has(e.category)) && ((e, t, n) => {
@@ -337,9 +343,9 @@ var V = (e, t, n) => f(() => {
337
343
  e,
338
344
  t,
339
345
  n
340
- ]), H = [], U = (e) => {
346
+ ]), U = [], W = (e) => {
341
347
  let { category: t } = e;
342
- return _(y, {
348
+ return v(b, {
343
349
  component: "span",
344
350
  sx: (e) => ({
345
351
  display: "inline-block",
@@ -347,18 +353,18 @@ var V = (e, t, n) => f(() => {
347
353
  height: "10px",
348
354
  borderRadius: "50%",
349
355
  flex: "none",
350
- backgroundColor: P(t, e)?.fill ?? e.palette.action.selected
356
+ backgroundColor: F(t, e)?.fill ?? e.palette.action.selected
351
357
  })
352
358
  });
353
- }, W = (e) => {
359
+ }, G = (e) => {
354
360
  let { category: t, onDelete: n } = e;
355
- return _(S, {
361
+ return v(C, {
356
362
  size: "small",
357
363
  label: t.title,
358
364
  title: t.description,
359
365
  onDelete: n,
360
366
  sx: (e) => {
361
- let n = P(t, e);
367
+ let n = F(t, e);
362
368
  return {
363
369
  marginY: .25,
364
370
  marginRight: .5,
@@ -383,8 +389,8 @@ var V = (e, t, n) => f(() => {
383
389
  };
384
390
  }
385
391
  });
386
- }, G = (e) => {
387
- let { value: t, onChange: n, categories: r, categoryIds: a = H, onCategoryIdsChange: s, sx: c } = e, l = o(), u = p(null), [d, y] = m(null), b = !!s && (r?.length ?? 0) > 1, S = f(() => {
392
+ }, ee = (e) => {
393
+ let { value: t, onChange: n, categories: r, categoryIds: a = U, onCategoryIdsChange: o, sx: c } = e, l = s(), u = m(null), [d, f] = h(null), b = !!o && (r?.length ?? 0) > 1, x = p(() => {
388
394
  if (!b || a.length === 0) return [];
389
395
  let e = new Map(r.map((e) => [e.id, e]));
390
396
  return a.map((t) => e.get(t)).filter((e) => !!e);
@@ -392,20 +398,20 @@ var V = (e, t, n) => f(() => {
392
398
  b,
393
399
  r,
394
400
  a
395
- ]), k = (e) => {
396
- s?.(e), u.current?.focus();
397
- }, j = () => {
398
- y(null), u.current?.focus();
399
- }, M = _(i, { iconKey: "Find" }), N = _(w, {
401
+ ]), C = (e) => {
402
+ o?.(e), u.current?.focus();
403
+ }, A = () => {
404
+ f(null), u.current?.focus();
405
+ }, M = v(i, { iconKey: "Find" }), N = v(T, {
400
406
  position: "start",
401
407
  children: M
402
408
  });
403
409
  if (b) {
404
410
  let e = l("template.filterByCategory");
405
- N = v(g, { children: [_(w, {
411
+ N = y(_, { children: [v(T, {
406
412
  position: "start",
407
413
  sx: { marginRight: .5 },
408
- children: v(x, {
414
+ children: y(S, {
409
415
  "aria-label": e,
410
416
  title: e,
411
417
  "aria-haspopup": "menu",
@@ -413,7 +419,7 @@ var V = (e, t, n) => f(() => {
413
419
  onMouseDown: (e) => {
414
420
  e.button === 0 && e.preventDefault();
415
421
  },
416
- onClick: (e) => y(e.currentTarget),
422
+ onClick: (e) => f(e.currentTarget),
417
423
  sx: {
418
424
  display: "flex",
419
425
  alignItems: "center",
@@ -424,7 +430,7 @@ var V = (e, t, n) => f(() => {
424
430
  color: "inherit",
425
431
  "&:hover, &.Mui-focusVisible": { backgroundColor: "action.hover" }
426
432
  },
427
- children: [M, _(i, {
433
+ children: [M, v(i, {
428
434
  iconKey: "ExpandMore",
429
435
  style: {
430
436
  fontSize: "1rem",
@@ -432,23 +438,23 @@ var V = (e, t, n) => f(() => {
432
438
  }
433
439
  })]
434
440
  })
435
- }), S.map((e) => _(W, {
441
+ }), x.map((e) => v(G, {
436
442
  category: e,
437
- onDelete: () => k(a.filter((t) => t !== e.id))
443
+ onDelete: () => C(a.filter((t) => t !== e.id))
438
444
  }, e.id))] });
439
445
  }
440
- let P = !!t || S.length > 0;
441
- return v(g, { children: [_(A, {
446
+ let P = !!t || x.length > 0;
447
+ return y(_, { children: [v(j, {
442
448
  size: "small",
443
449
  value: t,
444
- placeholder: S.length > 0 ? void 0 : l("template.search"),
450
+ placeholder: x.length > 0 ? void 0 : l("template.search"),
445
451
  inputRef: u,
446
452
  onChange: (e) => n(e.target.value),
447
453
  onKeyDown: (e) => {
448
- if (e.key === "Escape" && P) e.stopPropagation(), t ? n("") : k([]);
449
- else if (e.key === "Backspace" && S.length > 0) {
454
+ if (e.key === "Escape" && P) e.stopPropagation(), t ? n("") : C([]);
455
+ else if (e.key === "Backspace" && x.length > 0) {
450
456
  let t = u.current;
451
- e.target === t && t.selectionStart === 0 && t.selectionEnd === 0 && (e.preventDefault(), k(a.slice(0, -1)));
457
+ e.target === t && t.selectionStart === 0 && t.selectionEnd === 0 && (e.preventDefault(), C(a.slice(0, -1)));
452
458
  }
453
459
  },
454
460
  sx: c,
@@ -480,18 +486,18 @@ var V = (e, t, n) => f(() => {
480
486
  }
481
487
  },
482
488
  startAdornment: N,
483
- endAdornment: P ? _(w, {
489
+ endAdornment: P ? v(T, {
484
490
  position: "end",
485
- children: _(h, {
491
+ children: v(g, {
486
492
  "aria-label": l("template.clearSearch"),
487
493
  propsTooltip: { label: l("template.clearSearch") },
488
494
  onMouseDown: (e) => {
489
495
  e.button === 0 && e.preventDefault();
490
496
  },
491
497
  onClick: () => {
492
- n(""), k([]);
498
+ n(""), C([]);
493
499
  },
494
- icon: _(i, { iconKey: "Close" }),
500
+ icon: v(i, { iconKey: "Close" }),
495
501
  size: "small"
496
502
  })
497
503
  }) : void 0
@@ -502,10 +508,10 @@ var V = (e, t, n) => f(() => {
502
508
  "aria-label": l("template.search")
503
509
  }
504
510
  }
505
- }), b ? v(D, {
511
+ }), b ? y(O, {
506
512
  anchorEl: d,
507
513
  open: !!d,
508
- onClose: j,
514
+ onClose: A,
509
515
  disableRestoreFocus: !0,
510
516
  slotProps: { list: {
511
517
  dense: !0,
@@ -513,16 +519,16 @@ var V = (e, t, n) => f(() => {
513
519
  } },
514
520
  children: [r.map((e) => {
515
521
  let t = a.includes(e.id);
516
- return v(O, {
522
+ return y(k, {
517
523
  selected: t,
518
524
  title: e.description,
519
525
  onClick: () => {
520
- s(t ? a.filter((t) => t !== e.id) : [...a, e.id]), j();
526
+ o(t ? a.filter((t) => t !== e.id) : [...a, e.id]), A();
521
527
  },
522
528
  children: [
523
- _(T, { children: _(U, { category: e }) }),
524
- _(E, { children: e.title }),
525
- t ? _(i, {
529
+ v(E, { children: v(W, { category: e }) }),
530
+ v(D, { children: e.title }),
531
+ t ? v(i, {
526
532
  iconKey: "Check",
527
533
  style: {
528
534
  fontSize: "1rem",
@@ -531,20 +537,20 @@ var V = (e, t, n) => f(() => {
531
537
  }) : null
532
538
  ]
533
539
  }, e.id);
534
- }), S.length > 0 ? [_(C, {}, "divider"), v(O, {
540
+ }), x.length > 0 ? [v(w, {}, "divider"), y(k, {
535
541
  onClick: () => {
536
- s([]), j();
542
+ o([]), A();
537
543
  },
538
- children: [_(T, {}), _(E, { children: l("template.allCategories") })]
544
+ children: [v(E, {}), v(D, { children: l("template.allCategories") })]
539
545
  }, "all")] : null]
540
546
  }) : null] });
541
- }, K = N(n), q = `https://unpkg.com/@sheetxl/templates-workbook${K ? `@${K}` : ""}/dist`, J = "templates-workbook", Y = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), X = (e, t) => {
547
+ }, K = P(n), q = `https://unpkg.com/@sheetxl/templates-workbook${K ? `@${K}` : ""}/dist`, J = "templates-workbook", Y = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), X = (e, t) => {
542
548
  let n = `${e}${e.endsWith("/") ? "" : "/"}${J}/${t}`;
543
549
  return typeof document > "u" ? n : new URL(n, document.baseURI).href;
544
550
  }, Z = (e) => typeof e == "string" && e ? e : void 0, Q = /* @__PURE__ */ new Map(), $ = (e = q) => {
545
551
  let t = Q.get(e);
546
552
  return t || (t = (async () => {
547
- let t = (await M("templates", J, e)).find((e) => e.meta?.schema !== void 0);
553
+ let t = (await N("templates", J, e)).find((e) => e.meta?.schema !== void 0);
548
554
  if (!t) throw Error(`No template catalog found at '${e}'.`);
549
555
  return Math.floor(Number(t.meta?.schema)) === 1 ? ((e, t) => {
550
556
  let n = Array.isArray(e.meta?.categories) ? e.meta.categories : [], r = [], i = /* @__PURE__ */ new Set();
@@ -590,13 +596,13 @@ var V = (e, t, n) => f(() => {
590
596
  })(), Q.set(e, t), t.catch(() => {
591
597
  Q.delete(e);
592
598
  })), t;
593
- }, ee = (e = {}) => {
594
- let { path: t = q } = e, [n, r] = m(0), [i, a] = m({
599
+ }, te = (e = {}) => {
600
+ let { path: t = q } = e, [n, r] = h(0), [i, a] = h({
595
601
  status: "loading",
596
602
  categories: [],
597
603
  entries: []
598
604
  });
599
- return u(() => {
605
+ return d(() => {
600
606
  let e = !1;
601
607
  return a((e) => e.status === "loading" ? e : {
602
608
  status: "loading",
@@ -619,9 +625,9 @@ var V = (e, t, n) => f(() => {
619
625
  };
620
626
  }, [t, n]), {
621
627
  ...i,
622
- retry: l(() => {
628
+ retry: u(() => {
623
629
  r((e) => e + 1);
624
630
  }, [])
625
631
  };
626
632
  };
627
- export { B as a, V as i, ee as n, G as r, $ as t };
633
+ export { V as a, H as i, te as n, ee as r, $ as t };
@@ -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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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 "./DDc6rDuU9JAo1DH_.mjs";
8
- import { n as t } from "./CynTY0oNtyJnoaBq.mjs";
9
- import { t as n } from "./BYE9gCDWKyx6mnVs.mjs";
7
+ import { n as e } from "./6QDKC3DXaJjdTQvn.mjs";
8
+ import { n as t } from "./BniGX5aeZXM9zMWH.mjs";
9
+ import { t as n } from "./Bbvx7IiwR5jW-Hwu.mjs";
10
10
  import { useModelSync as r } from "@sheetxl/react";
11
11
  import { NotifierType as i, useNotifier as a } from "@sheetxl/utils-react";
12
12
  import { forwardRef as o, memo as s, useCallback as c, useMemo as l, useRef as u } 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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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 } from "./BokqKEpU6TFgfRs6.mjs";
8
- import { t } from "./C0wlMAIn9iREPK6w.mjs";
9
- import { n, t as r } from "./BAbq4-I5f5oUiNaF.mjs";
7
+ import { i as e } from "./PSYAcayGMjkZauMz.mjs";
8
+ import { t } from "./DvDPtmuD-1bVFXhc.mjs";
9
+ import { n, t as r } from "./DlGOcFqQzrYB9wiZ.mjs";
10
10
  import { ICellRange as i } from "@sheetxl/sdk";
11
11
  import { promptUnlockProtectedRanges as a, useModelListener as o, useModelSync as s } from "@sheetxl/react";
12
12
  import { DynamicIcon as c, NotifierType as l, useNotifier as u, useTranslator as d } from "@sheetxl/utils-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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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.