@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.3

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 (195) hide show
  1. package/browser/cjs/3k_KqDFr-AybPztc.cjs +5 -0
  2. package/browser/cjs/{zQsyZpeXAvcVXJMs.cjs → 3uprnzi2l0iT17Dg.cjs} +1 -1
  3. package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +1 -0
  4. package/browser/cjs/{CJLwX_A3y3TQUmzj.cjs → BGvoJjUs21bbuE1i.cjs} +1 -1
  5. package/browser/cjs/{CYxc8vnRi8dNpDPk.cjs → BHb7TnK1NmimV4OX.cjs} +1 -1
  6. package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +1 -0
  7. package/browser/cjs/BQMCM3iFn4MNWAkB.cjs +1 -0
  8. package/browser/cjs/BXkdjAb4jpTr412c.cjs +1 -0
  9. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +1 -0
  10. package/browser/cjs/Bi26L7L89ZK_y5Pk.cjs +1 -0
  11. package/browser/cjs/CucKgy044KxMHXrx.cjs +13 -0
  12. package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +3 -0
  13. package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +8 -0
  14. package/browser/cjs/M0_dvdYwhikqP9kg.cjs +2 -0
  15. package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +1 -0
  16. package/browser/cjs/eCw4rAEIYE3BftpG.cjs +1 -0
  17. package/browser/cjs/iFPhqab5w95hHEsT.cjs +1 -0
  18. package/browser/cjs/index.cjs +2 -2
  19. package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → 5g7MBAjbFzuopMX2.mjs} +2 -2
  20. package/browser/esm/B1W2xsRdzsYUrUHN.mjs +12903 -0
  21. package/browser/esm/{UJOXCQv6KrG1gY3l.mjs → B4D1LSp8TE_B0AMm.mjs} +8 -16
  22. package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → B52mSQ33rrDgVfpp.mjs} +1 -1
  23. package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BPrlXHjf0rCkbBBI.mjs} +1 -1
  24. package/browser/esm/BZd916TsMZ7YvxWP.mjs +293 -0
  25. package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → BaEXUwMO4qxI8cAG.mjs} +1 -1
  26. package/browser/esm/{CDU0rqpLNVtMLI-f.mjs → BbIR6fcRDFkeZXY0.mjs} +1 -1
  27. package/browser/esm/{CVBub6pgTsJzCc5m.mjs → BmThVkDnqURs7csb.mjs} +2100 -2214
  28. package/browser/esm/{CVfuCNRpODUw04IH.mjs → Bz1JPslneg_PywLn.mjs} +1 -1
  29. package/browser/esm/{rU8xNPVQtDSnujM-.mjs → CBtvZnCU5MNRuW6b.mjs} +3 -3
  30. package/browser/esm/CWSv0l0QyooaSl9L.mjs +268 -0
  31. package/browser/esm/{BUGepznywvV0tUjW.mjs → Cq9FaaUpYJPogPlO.mjs} +2 -2
  32. package/browser/esm/{3ydDykDMtDYbfVVn.mjs → D0TdGLsNoKJ8y8nS.mjs} +113 -111
  33. package/browser/esm/{CBU3LgLYmqtQjJbu.mjs → D5VhIdFEqZBP23Ch.mjs} +1 -1
  34. package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → DAmyMhko6L63rwJo.mjs} +130 -103
  35. package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → DKyW2a-ZhqkFjZvH.mjs} +569 -540
  36. package/browser/esm/DSAOtFgAoMMKXSJb.mjs +152 -0
  37. package/browser/esm/De_bbgjFGMBk8KXa.mjs +117 -0
  38. package/browser/esm/Dkw9Yr0Bp5RI5pRw.mjs +222 -0
  39. package/browser/esm/MplcRTnOYfsuQGe3.mjs +410 -0
  40. package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → U9pABiBV0P__iZJE.mjs} +3 -3
  41. package/browser/esm/{ChwS_ougBsogOEsP.mjs → _7FBRywOYc4gCFK2.mjs} +2 -2
  42. package/browser/esm/cLX3kRi9vDkGiZwr.mjs +115 -0
  43. package/browser/esm/index.mjs +466 -135
  44. package/browser/esm/{BZBJG2tDdD3-VujP.mjs → krJU2tCMk9QwcRcw.mjs} +195 -174
  45. package/licenses/dependencies.txt +73 -73
  46. package/node/esm/BSj2vMFtYCJk4miD.mjs +4462 -0
  47. package/node/esm/{BwZcoHDBmLPIVOT5.mjs → Byoa9Sx18Y73xJBM.mjs} +1 -1
  48. package/node/esm/{C-boHCnJditFzng3.mjs → C0yEFO9L8odxQW-z.mjs} +32 -40
  49. package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → C6ookLy8qjozoGUP.mjs} +1 -1
  50. package/node/esm/{DXZrzWee8K5FPOW1.mjs → CF-mBw8E2TnnbVJp.mjs} +2 -2
  51. package/node/esm/CQtseVjtpzUKq41p.mjs +294 -0
  52. package/node/esm/{BhqI3pQFkV8K_612.mjs → C_xnlCmxuBdmK2nV.mjs} +1 -1
  53. package/node/esm/CvZ05tWUwCH6MJas.mjs +268 -0
  54. package/node/esm/{yCHAZKxJR7qY_ySy.mjs → D1uCpJvXqZ16A3-X.mjs} +143 -141
  55. package/node/esm/{DM7K7-284z-PczVz.mjs → DbzH9CwsCrtCs4Ug.mjs} +1 -1
  56. package/node/esm/{Qpuqm6xBr_da38Ht.mjs → DdBJbvx8UwH8CmkE.mjs} +163 -135
  57. package/node/esm/DlNtuQ_K-rgj0iJU.mjs +116 -0
  58. package/node/esm/Dsc5FSbIPxmlRzwV.mjs +414 -0
  59. package/node/esm/index.mjs +7716 -4114
  60. package/node/esm/k8Q5jiL-22BAHe4i.mjs +115 -0
  61. package/node/esm/{CUMKTjYv6VTkcWYi.mjs → oLdQArapyVclkMMy.mjs} +1 -1
  62. package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → pZBq3MVKHmZiBS8U.mjs} +1 -1
  63. package/package.json +9 -9
  64. package/resources/locales/de/groups.cmd.json +24 -6
  65. package/resources/locales/de/studio.cmd.json +18 -1
  66. package/resources/locales/de/ui.msg.json +251 -30
  67. package/resources/locales/en/groups.cmd.json +24 -6
  68. package/resources/locales/en/studio.cmd.json +18 -1
  69. package/resources/locales/en/ui.msg.json +202 -30
  70. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +11 -1
  71. package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
  72. package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
  73. package/types/src/anchorItems/index.d.ts +1 -0
  74. package/types/src/border/BorderPopupButton.d.ts +6 -6
  75. package/types/src/border/BorderStylePopupButton.d.ts +3 -3
  76. package/types/src/border/BorderTemplateIcon.d.ts +24 -0
  77. package/types/src/border/index.d.ts +1 -0
  78. package/types/src/color/ColorPanel.d.ts +8 -2
  79. package/types/src/color/ColorPopupButton.d.ts +2 -1
  80. package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
  81. package/types/src/conditions/BetweenOption.d.ts +1 -1
  82. package/types/src/conditions/ConditionEditor.d.ts +6 -1
  83. package/types/src/conditions/ConditionUtils.d.ts +31 -0
  84. package/types/src/conditions/DateTimeOption.d.ts +4 -4
  85. package/types/src/conditions/ExpressionOption.d.ts +6 -6
  86. package/types/src/conditions/ListSourceOption.d.ts +31 -0
  87. package/types/src/conditions/ScalarOption.d.ts +6 -6
  88. package/types/src/conditions/index.d.ts +1 -1
  89. package/types/src/conditions/useFormulaOption.d.ts +54 -0
  90. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
  91. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
  92. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -2
  93. package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
  94. package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
  95. package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
  96. package/types/src/dialog/TableNewDialog.d.ts +1 -4
  97. package/types/src/dialog/index.d.ts +0 -1
  98. package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
  99. package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
  100. package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
  101. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
  102. package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
  103. package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
  104. package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
  105. package/types/src/externalLink/index.d.ts +8 -0
  106. package/types/src/fill/GradientEditor.d.ts +39 -0
  107. package/types/src/fill/PatternPopupButton.d.ts +26 -0
  108. package/types/src/fill/PatternSwatch.d.ts +53 -0
  109. package/types/src/fill/index.d.ts +4 -0
  110. package/types/src/filter/FilterList.d.ts +9 -6
  111. package/types/src/form/FormulaField.d.ts +25 -2
  112. package/types/src/form/InputField.d.ts +30 -0
  113. package/types/src/format/AlignmentPanel.d.ts +14 -0
  114. package/types/src/format/BorderPanel.d.ts +22 -0
  115. package/types/src/format/BorderPreview.d.ts +84 -0
  116. package/types/src/format/FillPanel.d.ts +25 -0
  117. package/types/src/format/FontPanel.d.ts +12 -0
  118. package/types/src/format/FormatCellPreview.d.ts +35 -0
  119. package/types/src/format/FormatPanelParts.d.ts +83 -0
  120. package/types/src/format/FormatPlugin.d.ts +11 -0
  121. package/types/src/format/FormatTaskPane.d.ts +39 -0
  122. package/types/src/format/NumberFormatOption.d.ts +43 -0
  123. package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
  124. package/types/src/format/index.d.ts +13 -0
  125. package/types/src/format/useFormatSelection.d.ts +92 -0
  126. package/types/src/index.d.ts +3 -1
  127. package/types/src/itemsPanel/EditorPanel.d.ts +5 -1
  128. package/types/src/itemsPanel/ItemCard.d.ts +10 -1
  129. package/types/src/itemsPanel/ItemsDescriptor.d.ts +55 -19
  130. package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
  131. package/types/src/named/NamedDetailsPanel.d.ts +9 -2
  132. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
  133. package/types/src/named/NamedEditorPanel.d.ts +1 -1
  134. package/types/src/named/NamedExpressionField.d.ts +32 -0
  135. package/types/src/named/NamedKindChip.d.ts +38 -0
  136. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
  137. package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
  138. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
  139. package/types/src/protectedRange/index.d.ts +2 -1
  140. package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
  141. package/types/src/protection/PasswordDialog.d.ts +32 -0
  142. package/types/src/protection/PasswordField.d.ts +35 -0
  143. package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
  144. package/types/src/protection/ProtectionPlugin.d.ts +11 -0
  145. package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
  146. package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
  147. package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
  148. package/types/src/protection/index.d.ts +7 -1
  149. package/types/src/studio/CommandsWrapper.d.ts +3 -0
  150. package/types/src/studio/EagerStudio.d.ts +14 -1
  151. package/types/src/studio/StudioCommandProvider.d.ts +3 -0
  152. package/types/src/studio/StudioCommands.d.ts +38 -2
  153. package/types/src/studio/StudioProps.d.ts +41 -0
  154. package/types/src/studio/splitStudioProps.d.ts +7 -0
  155. package/types/src/studio/useStudioApp.d.ts +20 -1
  156. package/types/src/template/TemplateCommands.d.ts +29 -0
  157. package/types/src/template/TemplateDialog.d.ts +19 -0
  158. package/types/src/template/TemplatePanel.d.ts +50 -0
  159. package/types/src/template/TemplateSearchField.d.ts +13 -0
  160. package/types/src/template/WelcomeDialog.d.ts +29 -0
  161. package/types/src/template/index.d.ts +3 -0
  162. package/types/src/template/useTemplateCatalog.d.ts +69 -0
  163. package/types/src/workbook/DefaultRenderers.d.ts +2 -0
  164. package/types/src/workbook/FillMenu.d.ts +21 -0
  165. package/types/src/workbook/index.d.ts +1 -0
  166. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
  167. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
  168. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
  169. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
  170. package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
  171. package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
  172. package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
  173. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
  174. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
  175. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
  176. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
  177. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
  178. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
  179. package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
  180. package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
  181. package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
  182. package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
  183. package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
  184. package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
  185. package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
  186. package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
  187. package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
  188. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
  189. package/types/src/conditions/InSetOption.d.ts +0 -37
  190. package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
  191. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
  192. package/types/src/numberFormat/index.d.ts +0 -8
  193. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
  194. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
  195. package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.3
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 { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as i, keyStrokeToCanonical as a } from "@sheetxl/utils-react";
8
- import o, { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
7
+ import { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as i, keyStrokeToCanonical as a, useTranslator as o } from "@sheetxl/utils-react";
8
+ import s, { useCallback as c, useEffect as l, useMemo as u, useRef as ee, useState as d } from "react";
9
9
  import { InternalWindow as f } from "@sheetxl/utils-mui";
10
10
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
11
- import { Box as h, Checkbox as g, Chip as ee, DialogContent as _, FormControlLabel as te, IconButton as v, InputAdornment as y, TextField as ne, Tooltip as b, Typography as x, emphasize as S } from "@mui/material";
12
- import { CommonUtils as C, TimerUtils as re } from "@sheetxl/utils";
13
- var ie = (e) => e.replace(/\n\n+/g, "\n").trim(), ae = /* @__PURE__ */ new Set([
11
+ import { Box as h, Checkbox as te, Chip as g, DialogContent as _, FormControlLabel as v, IconButton as y, InputAdornment as b, TextField as ne, Tooltip as re, Typography as x, emphasize as S } from "@mui/material";
12
+ import { CommonUtils as C, TimerUtils as ie } from "@sheetxl/utils";
13
+ var ae = (e) => e.replace(/\n\n+/g, "\n").trim(), w = /* @__PURE__ */ new Set([
14
14
  "Control",
15
15
  "Shift",
16
16
  "Alt",
17
17
  "Meta"
18
- ]), w = (e) => {
18
+ ]), T = (e) => {
19
19
  let t = e, n = /* @__PURE__ */ new Set();
20
20
  for (let e of [
21
21
  "mod",
@@ -26,26 +26,26 @@ var ie = (e) => e.replace(/\n\n+/g, "\n").trim(), ae = /* @__PURE__ */ new Set([
26
26
  key: t,
27
27
  mods: n
28
28
  };
29
- }, T = C.getPlatform() === C.OSType.MacOS || C.getPlatform() === C.OSType.IOS, E = [
29
+ }, E = C.getPlatform() === C.OSType.MacOS || C.getPlatform() === C.OSType.IOS, D = [
30
30
  n.Ctrl,
31
31
  n.Alt,
32
32
  n.Shift,
33
33
  n.Meta
34
- ], D = (e) => {
34
+ ], O = (e) => {
35
35
  switch (e) {
36
- case n.Ctrl: return T ? "Cmd" : "Ctrl";
36
+ case n.Ctrl: return E ? "Cmd" : "Ctrl";
37
37
  case n.Alt: return "Alt";
38
38
  case n.Shift: return "Shift";
39
39
  case n.Meta: return "Meta";
40
40
  default: return e;
41
41
  }
42
- }, O = (e) => {
43
- let t = new Set(e);
44
- return E.filter((e) => t.has(e));
45
42
  }, k = (e) => {
43
+ let t = new Set(e);
44
+ return D.filter((e) => t.has(e));
45
+ }, A = (e) => {
46
46
  let t = [];
47
47
  return e.ctrlKey && t.push(n.Ctrl), e.altKey && t.push(n.Alt), e.shiftKey && t.push(n.Shift), e.metaKey && t.push(n.Meta), t;
48
- }, A = ({ children: e }) => p(h, {
48
+ }, j = ({ children: e }) => p(h, {
49
49
  component: "kbd",
50
50
  sx: {
51
51
  display: "inline-flex",
@@ -67,29 +67,29 @@ var ie = (e) => e.replace(/\n\n+/g, "\n").trim(), ae = /* @__PURE__ */ new Set([
67
67
  borderBottomWidth: "2px"
68
68
  },
69
69
  children: e
70
- }), j = () => p(h, {
70
+ }), M = () => p(h, {
71
71
  component: "span",
72
72
  sx: {
73
73
  fontSize: "0.7rem",
74
74
  color: (e) => e.palette.text.disabled
75
75
  },
76
76
  children: "+"
77
- }), M = ({ labels: e, dangling: t = !1 }) => m(h, {
77
+ }), N = ({ labels: e, dangling: t = !1 }) => m(h, {
78
78
  sx: {
79
79
  display: "flex",
80
80
  alignItems: "center",
81
81
  gap: "1px"
82
82
  },
83
- children: [e.map((e, t) => m(o.Fragment, { children: [t > 0 && p(j, {}), p(A, { children: e })] }, t)), t && p(j, {})]
84
- }), N = ({ stroke: e }) => {
83
+ children: [e.map((e, t) => m(s.Fragment, { children: [t > 0 && p(M, {}), p(j, { children: e })] }, t)), t && p(M, {})]
84
+ }), P = ({ stroke: e }) => {
85
85
  if (!e?.key) return null;
86
- let t = O(e.modifiers ?? []).map(D);
87
- return t.push(r.toPrettyKeyCode(e.key)), p(M, { labels: t });
86
+ let t = k(e.modifiers ?? []).map(O);
87
+ return t.push(r.toPrettyKeyCode(e.key)), p(N, { labels: t });
88
88
  };
89
- function P(n) {
90
- let { commands: r, sx: o, ...f } = n, [_, C] = d(!1), [E, A] = d(""), [j, P] = d(null), [F, I] = d(!1), [L, R] = d(null), [z, B] = d(null), [V, H] = d(null), U = u(null), W = l(() => {
89
+ function F(n) {
90
+ let { commands: r, sx: s, ...f } = n, _ = o(), [C, D] = d(!1), [j, M] = d(""), [F, I] = d(null), [L, oe] = d(!1), [R, z] = d(null), [B, V] = d(null), [H, U] = d(null), W = ee(null), G = u(() => {
91
91
  let e = r.getAllCommands();
92
- _ && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
92
+ C && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
93
93
  let n = e.command.getScope?.() ?? e.groupKey, r = t.command.getScope?.() ?? t.groupKey, i = n.localeCompare(r);
94
94
  return i === 0 ? e.command.getLabel().localeCompare(t.command.getLabel()) : i;
95
95
  });
@@ -100,7 +100,7 @@ function P(n) {
100
100
  icon: e.getIcon(),
101
101
  scope: i,
102
102
  scopeLabel: e.getScopeLabel?.() ?? i,
103
- description: ie(e.getDescription())
103
+ description: ae(e.getDescription())
104
104
  }, s = e.getShortcut(), c = Array.isArray(s) ? s.length ? s : [null] : [s ?? null];
105
105
  for (let e of c) {
106
106
  let r = e ? a(e) : null, s = `${i}\0${o.label}\0${r ?? ""}`;
@@ -113,11 +113,11 @@ function P(n) {
113
113
  }
114
114
  }
115
115
  return t;
116
- }, [_, r]), G = l(() => j ? W.filter((e) => e.scope === j) : W, [W, j]), [K, q] = d(null);
117
- c(() => {
116
+ }, [C, r]), K = u(() => F ? G.filter((e) => e.scope === F) : G, [G, F]), [q, se] = d(null);
117
+ l(() => {
118
118
  let e = !1;
119
- return import("./CBU3LgLYmqtQjJbu.mjs").then((t) => {
120
- e || q(new t.default(G, {
119
+ return import("./D5VhIdFEqZBP23Ch.mjs").then((t) => {
120
+ e || se(new t.default(K, {
121
121
  threshold: .3,
122
122
  ignoreLocation: !0,
123
123
  keys: [
@@ -127,31 +127,33 @@ function P(n) {
127
127
  "scopeLabel"
128
128
  ]
129
129
  }));
130
+ }).catch((e) => {
131
+ console.warn("Shortcut search is unavailable:", e);
130
132
  }), () => {
131
133
  e = !0;
132
134
  };
133
- }, [G]);
134
- let [J, Y] = d(W);
135
- c(() => {
136
- if (F) return z ? void Y(G.filter((e) => {
135
+ }, [K]);
136
+ let [J, Y] = d(G);
137
+ l(() => {
138
+ if (L) return B ? void Y(K.filter((e) => {
137
139
  if (!e.canonical) return !1;
138
- let t = w(e.canonical);
139
- if (!z.keys.has(t.key)) return !1;
140
- for (let e of z.mods) if (!t.mods.has(e)) return !1;
140
+ let t = T(e.canonical);
141
+ if (!B.keys.has(t.key)) return !1;
142
+ for (let e of B.mods) if (!t.mods.has(e)) return !1;
141
143
  return !0;
142
- })) : void Y(G);
143
- K ? re.debounce(() => {
144
- let e = E.trim();
145
- e.length === 0 ? Y(G) : Y(K.search(e).map((e) => e.item));
146
- }, 90)() : Y(G);
144
+ })) : void Y(K);
145
+ q ? ie.debounce(() => {
146
+ let e = j.trim();
147
+ e.length === 0 ? Y(K) : Y(q.search(e).map((e) => e.item));
148
+ }, 90)() : Y(K);
147
149
  }, [
148
- F,
149
- z,
150
- K,
151
- E,
152
- G
150
+ L,
151
+ B,
152
+ q,
153
+ j,
154
+ K
153
155
  ]);
154
- let X = l(() => {
156
+ let X = u(() => {
155
157
  let e = /* @__PURE__ */ new Map();
156
158
  for (let t of J) {
157
159
  let n = e.get(t.scope);
@@ -162,19 +164,19 @@ function P(n) {
162
164
  scopeLabel: t[0].scopeLabel,
163
165
  rows: t
164
166
  }));
165
- }, [J]), oe = l(() => W.find((e) => e.scope === j)?.scopeLabel ?? j, [W, j]), Z = F ? !!L : E.length > 0, Q = Z && J.length === 0;
166
- c(() => {
167
- U.current?.focus();
168
- }, [F]);
169
- let $ = s((e) => {
170
- I(e), A(""), R(null), B(null), H(null);
171
- }, []), se = s((e) => {
167
+ }, [J]), ce = u(() => G.find((e) => e.scope === F)?.scopeLabel ?? F, [G, F]), Z = L ? !!R : j.length > 0, Q = Z && J.length === 0;
168
+ l(() => {
169
+ W.current?.focus();
170
+ }, [L]);
171
+ let $ = c((e) => {
172
+ oe(e), M(""), z(null), V(null), U(null);
173
+ }, []), le = c((e) => {
172
174
  if (e.key === "Tab") return;
173
- if (e.which === t.Escape) return L || V ? (R(null), B(null), H(null)) : $(!1), e.stopPropagation(), void e.preventDefault();
174
- if (e.preventDefault(), e.stopPropagation(), e.key === "Backspace") return R(null), B(null), void H(null);
175
+ if (e.which === t.Escape) return R || H ? (z(null), V(null), U(null)) : $(!1), e.stopPropagation(), void e.preventDefault();
176
+ if (e.preventDefault(), e.stopPropagation(), e.key === "Backspace") return z(null), V(null), void U(null);
175
177
  let n = e.nativeEvent;
176
- if (ae.has(e.key)) return R(null), B(null), void H(k(n));
177
- H(null), R(((e) => {
178
+ if (w.has(e.key)) return z(null), V(null), void U(A(n));
179
+ U(null), z(((e) => {
178
180
  let t = [];
179
181
  e.ctrlKey && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.metaKey && t.push("meta");
180
182
  let n = e.code, r = e.key;
@@ -182,34 +184,34 @@ function P(n) {
182
184
  key: r,
183
185
  modifiers: t
184
186
  };
185
- })(n)), B(((e) => {
186
- let t = [...i(e)].map(w);
187
+ })(n)), V(((e) => {
188
+ let t = [...i(e)].map(T);
187
189
  return {
188
190
  keys: new Set(t.map((e) => e.key)),
189
191
  mods: t[0]?.mods ?? /* @__PURE__ */ new Set()
190
192
  };
191
193
  })(n));
192
194
  }, [
193
- L,
194
- V,
195
+ R,
196
+ H,
195
197
  $
196
- ]), ce = s((e) => {
197
- if (L) return;
198
- let t = k(e.nativeEvent);
199
- H(t.length ? t : null);
200
- }, [L]), le = s((e) => {
201
- P((t) => t === e ? null : e);
202
- }, []), ue = s(() => {
203
- F ? (R(null), B(null), H(null)) : A(""), U.current?.focus();
204
- }, [F]), de = F ? !!(L || V && V.length > 0) : E.length > 0, fe = p(b, {
205
- title: F ? "Search by name (ESC)" : `Search by shortcut (${T ? "Cmd" : "Ctrl"}+K)`,
206
- children: p(v, {
198
+ ]), ue = c((e) => {
199
+ if (R) return;
200
+ let t = A(e.nativeEvent);
201
+ U(t.length ? t : null);
202
+ }, [R]), de = c((e) => {
203
+ I((t) => t === e ? null : e);
204
+ }, []), fe = c(() => {
205
+ L ? (z(null), V(null), U(null)) : M(""), W.current?.focus();
206
+ }, [L]), pe = L ? !!(R || H && H.length > 0) : j.length > 0, me = p(re, {
207
+ title: L ? "Search by name (ESC)" : `Search by shortcut (${E ? "Cmd" : "Ctrl"}+K)`,
208
+ children: p(y, {
207
209
  "aria-label": "toggle shortcut capture",
208
- color: F ? "primary" : "default",
209
- onClick: () => $(!F),
210
+ color: L ? "primary" : "default",
211
+ onClick: () => $(!L),
210
212
  sx: {
211
213
  flexShrink: 0,
212
- border: (e) => `solid 1px ${F ? e.palette.primary.main : e.palette.divider}`,
214
+ border: (e) => `solid 1px ${L ? e.palette.primary.main : e.palette.divider}`,
213
215
  borderRadius: (e) => `${e.shape.borderRadius}px`
214
216
  },
215
217
  children: p(e, { iconKey: "Keyboard" })
@@ -222,7 +224,7 @@ function P(n) {
222
224
  display: "flex",
223
225
  flexDirection: "column"
224
226
  },
225
- sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(o) ? o : [o]],
227
+ sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(s) ? s : [s]],
226
228
  ...f,
227
229
  children: [
228
230
  m(h, {
@@ -234,23 +236,23 @@ function P(n) {
234
236
  },
235
237
  children: [
236
238
  p(ne, {
237
- inputRef: U,
239
+ inputRef: W,
238
240
  slotProps: {
239
241
  input: {
240
242
  sx: { backgroundColor: (e) => e.palette.action.hover },
241
- startAdornment: F && (L || V && V.length > 0) ? p(y, {
243
+ startAdornment: L && (R || H && H.length > 0) ? p(b, {
242
244
  position: "start",
243
245
  sx: { marginRight: "6px" },
244
- children: L ? p(N, { stroke: L }) : p(M, {
245
- labels: O(V).map(D),
246
+ children: R ? p(P, { stroke: R }) : p(N, {
247
+ labels: k(H).map(O),
246
248
  dangling: !0
247
249
  })
248
250
  }) : void 0,
249
- endAdornment: de ? p(y, {
251
+ endAdornment: pe ? p(b, {
250
252
  position: "end",
251
- children: p(v, {
252
- "aria-label": F ? "clear shortcut" : "clear search",
253
- onClick: ue,
253
+ children: p(y, {
254
+ "aria-label": L ? "clear shortcut" : "clear search",
255
+ onClick: fe,
254
256
  edge: "end",
255
257
  size: "small",
256
258
  children: p(e, { iconKey: "Close" })
@@ -261,55 +263,55 @@ function P(n) {
261
263
  className: "input",
262
264
  autoFocus: !0,
263
265
  spellCheck: !1,
264
- placeholder: F ? L || V && V.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
266
+ placeholder: L ? R || H && H.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
265
267
  autoComplete: "off",
266
- "aria-label": F ? "Press a shortcut to find its command" : "Search commands",
268
+ "aria-label": L ? "Press a shortcut to find its command" : "Search commands",
267
269
  sx: {
268
270
  paddingTop: (e) => e.spacing(1),
269
271
  paddingBottom: (e) => e.spacing(1),
270
- caretColor: (e) => F ? e.palette.primary.main : void 0
272
+ caretColor: (e) => L ? e.palette.primary.main : void 0
271
273
  }
272
274
  }
273
275
  },
274
276
  sx: {
275
277
  flex: "1 1 auto",
276
- "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Q ? `${e.palette.error.main} !important` : F ? `${e.palette.primary.main} !important` : void 0 }
278
+ "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Q ? `${e.palette.error.main} !important` : L ? `${e.palette.primary.main} !important` : void 0 }
277
279
  },
278
- value: F ? "" : E,
280
+ value: L ? "" : j,
279
281
  onChange: (e) => {
280
- F || A(e.target.value);
282
+ L || M(e.target.value);
281
283
  },
282
- onKeyDown: F ? se : (e) => {
284
+ onKeyDown: L ? le : (e) => {
283
285
  if ((e.ctrlKey || e.metaKey) && (e.key === "k" || e.key === "K")) return $(!0), e.stopPropagation(), void e.preventDefault();
284
- e.which === t.Escape && E.length > 0 && (A(""), e.stopPropagation(), e.preventDefault());
286
+ e.which === t.Escape && j.length > 0 && (M(""), e.stopPropagation(), e.preventDefault());
285
287
  },
286
- onKeyUp: F ? ce : void 0,
288
+ onKeyUp: L ? ue : void 0,
287
289
  onContextMenu: (e) => e.stopPropagation()
288
290
  }),
289
- fe,
290
- p(te, {
291
+ me,
292
+ p(v, {
291
293
  sx: {
292
294
  flexShrink: 0,
293
295
  marginRight: 0
294
296
  },
295
- control: p(g, {
296
- checked: _,
297
- onChange: () => C(!_)
297
+ control: p(te, {
298
+ checked: C,
299
+ onChange: () => D(!C)
298
300
  }),
299
- label: "With key bindings",
301
+ label: _("shortcutKeys.onlyKeyBindings"),
300
302
  labelPlacement: "start"
301
303
  })
302
304
  ]
303
305
  }),
304
- j && p(h, {
306
+ F && p(h, {
305
307
  sx: {
306
308
  display: "flex",
307
309
  marginBottom: 1
308
310
  },
309
- children: p(ee, {
311
+ children: p(g, {
310
312
  size: "small",
311
- label: `Scope: ${oe}`,
312
- onDelete: () => P(null)
313
+ label: _("shortcutKeys.scopeFilter", { scope: ce }),
314
+ onDelete: () => I(null)
313
315
  })
314
316
  }),
315
317
  p(h, {
@@ -331,9 +333,9 @@ function P(n) {
331
333
  textAlign: "center",
332
334
  color: (e) => Q ? e.palette.error.main : e.palette.text.secondary
333
335
  },
334
- children: Z ? "No matching shortcuts" : "No shortcuts"
336
+ children: _(Z ? "shortcutKeys.noMatches" : "shortcutKeys.none")
335
337
  }) : X.map((t) => m(h, { children: [m(h, {
336
- onClick: () => le(t.scope),
338
+ onClick: () => de(t.scope),
337
339
  sx: {
338
340
  position: "sticky",
339
341
  top: "-1px",
@@ -354,7 +356,7 @@ function P(n) {
354
356
  backgroundColor: (e) => S(e.palette.background.paper, .04),
355
357
  boxShadow: (e) => `0 -2px 0 0 ${S(e.palette.background.paper, .04)}`,
356
358
  borderBottom: (e) => `solid 1px ${e.palette.divider}`,
357
- color: (e) => j === t.scope ? e.palette.primary.main : e.palette.text.secondary,
359
+ color: (e) => F === t.scope ? e.palette.primary.main : e.palette.text.secondary,
358
360
  "&:hover": {
359
361
  color: (e) => e.palette.text.primary,
360
362
  backgroundColor: (e) => S(e.palette.background.paper, .09)
@@ -403,7 +405,7 @@ function P(n) {
403
405
  }),
404
406
  t.shortcut && p(h, {
405
407
  sx: { flexShrink: 0 },
406
- children: p(N, { stroke: t.shortcut })
408
+ children: p(P, { stroke: t.shortcut })
407
409
  })
408
410
  ]
409
411
  }), t.description && p(x, {
@@ -436,13 +438,13 @@ function P(n) {
436
438
  noWrap: !0,
437
439
  component: "div",
438
440
  sx: { color: (e) => Q ? e.palette.error.main : e.palette.text.secondary },
439
- children: `${J.length === 0 ? "No" : J.length} shortcut${J.length === 1 ? "" : "s"}${Z ? " found" : ""}`
441
+ children: _(Z ? "shortcutKeys.countFound" : "shortcutKeys.count", { count: J.length })
440
442
  })
441
443
  })
442
444
  ]
443
445
  });
444
446
  }
445
- var F = (e) => {
447
+ var I = (e) => {
446
448
  let { title: n = "Shortcut Keys", commands: r, sx: i, ...a } = e;
447
449
  return p(f, {
448
450
  isModal: !0,
@@ -458,11 +460,11 @@ var F = (e) => {
458
460
  ...a,
459
461
  children: p(_, {
460
462
  dividers: !0,
461
- children: p(P, {
463
+ children: p(F, {
462
464
  commands: r,
463
465
  sx: { marginBottom: "8px" }
464
466
  })
465
467
  })
466
468
  });
467
469
  };
468
- export { F as default };
470
+ export { I as default };
@@ -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.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.3
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.