@sheetxl/studio-mui 0.7.28-beta.4 → 0.8.0-beta.2

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/BNqyPYRxYISp-uEg.cjs +1 -0
  8. package/browser/cjs/BXkdjAb4jpTr412c.cjs +1 -0
  9. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +1 -0
  10. package/browser/cjs/CuqM721PsKey3yMP.cjs +1 -0
  11. package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +3 -0
  12. package/browser/cjs/D948H7ell-f87BX3.cjs +1 -0
  13. package/browser/cjs/Dy6O3OWbDBKIj_Ak.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/index.cjs +2 -2
  18. package/browser/cjs/rCZbExyf1Q3aHloQ.cjs +13 -0
  19. package/browser/esm/{CZGRaL9mjYTo8fAd.mjs → 894KM-_Oc5cB6ExA.mjs} +8 -16
  20. package/browser/esm/B1YOQZHyO_dmHUN4.mjs +293 -0
  21. package/browser/esm/BQSamOMBAoFdQdJe.mjs +12903 -0
  22. package/browser/esm/{CDyYtk9WscSzj5I5.mjs → BlZiWp3SB3wH5O38.mjs} +130 -103
  23. package/browser/esm/{C7WFuxTBA8MWoOQj.mjs → Bo74PCF42KVYJF0j.mjs} +3 -3
  24. package/browser/esm/{CVxEcB8lAnOQ-oPh.mjs → C2Eke_9Dj_m6mtMj.mjs} +2 -2
  25. package/browser/esm/C5-J1xiO3O1-qaaP.mjs +268 -0
  26. package/browser/esm/CIbDvsCeLOFHzzId.mjs +152 -0
  27. package/browser/esm/CNLLwRPWnd4PJgPO.mjs +117 -0
  28. package/browser/esm/{DhMl3LbgjdX8Nz7b.mjs → CppDmJ4ckCH3alQf.mjs} +113 -111
  29. package/browser/esm/{DbHn3Fq4gYggsoXV.mjs → CyHNVjgkMYZYlJpY.mjs} +2100 -2214
  30. package/browser/esm/{GCJRjX28QYfxi-Lg.mjs → D7fA9EyCNSzQMgxg.mjs} +1 -1
  31. package/browser/esm/D8VPmFDvXDE778_x.mjs +222 -0
  32. package/browser/esm/{DoOWIBDSfgrvMmNO.mjs → DE7MVTTfExTzvyMW.mjs} +569 -540
  33. package/browser/esm/DEEnXLhYlUARg6MU.mjs +410 -0
  34. package/browser/esm/{Drbpg4A9TaJUZd5A.mjs → DIGlcemS7napWyKW.mjs} +1 -1
  35. package/browser/esm/{6GrWBX-cyxTRJerw.mjs → DN4cwAPYCrtR4gS9.mjs} +3 -3
  36. package/browser/esm/{BVC0iuc28yuEcyua.mjs → DSGFnb1gYyL22p0t.mjs} +1 -1
  37. package/browser/esm/DlEshYp6NPfHxFvI.mjs +115 -0
  38. package/browser/esm/{RbGJTMzxMTlkFlTq.mjs → Dv3hSCyjvwo6GcH1.mjs} +195 -174
  39. package/browser/esm/{l5BsxVQszkPy_n34.mjs → GmQ9XFFY3hi1L_Ej.mjs} +1 -1
  40. package/browser/esm/{CccE_2DTbTMNIfQM.mjs → _v6Wbw_y3QgJy3qY.mjs} +1 -1
  41. package/browser/esm/{BLjxQ1NUjmULb00s.mjs → iM5uEM9H4e8HGt5y.mjs} +2 -2
  42. package/browser/esm/index.mjs +466 -135
  43. package/browser/esm/{DdbgnOWM0tle1jeT.mjs → xGJU5xUJx3HF317Q.mjs} +2 -2
  44. package/browser/esm/{C5XQW-A03GP8EZ3s.mjs → z3zkU7Jf3WJ2_Z_P.mjs} +1 -1
  45. package/licenses/dependencies.txt +73 -73
  46. package/node/esm/{CbhFnQCOA5TjhFB1.mjs → BI8XFczUY--Db2n3.mjs} +32 -40
  47. package/node/esm/{-9Hcp_VKJtR9fWlC.mjs → BJi0FlhIqCMEwROu.mjs} +143 -141
  48. package/node/esm/{BxTFDoMd-nowfxfb.mjs → BMoRatciTqOi1HkT.mjs} +1 -1
  49. package/node/esm/BgxeTfCn3jZHGwd7.mjs +414 -0
  50. package/node/esm/{DYlYrd0A73WoQQgM.mjs → BoDCV8cDmFVAYtaW.mjs} +1 -1
  51. package/node/esm/C0M1VbsIRuRauUI-.mjs +268 -0
  52. package/node/esm/{C2HawKeialuFRR9r.mjs → CCWQ116Z67Kz78Uo.mjs} +1 -1
  53. package/node/esm/C_oV7ldFStOF_fAd.mjs +115 -0
  54. package/node/esm/DAji2BXelmIUxioS.mjs +116 -0
  55. package/node/esm/{6PuhMTJrzLciGI0Z.mjs → DN-bhyNbuBbNB0Ky.mjs} +2 -2
  56. package/node/esm/{ELTc6e1FF88hBAev.mjs → DVaQ6xIbKQgBk0uw.mjs} +1 -1
  57. package/node/esm/{uJOy7zjNtP0IqGoa.mjs → DVshSSmP5QZU7GoY.mjs} +163 -135
  58. package/node/esm/{CgA8rdWVZEpIUpsM.mjs → Dbv0IltYad9SQrj3.mjs} +1 -1
  59. package/node/esm/{DPhvWXmDun8bC0_v.mjs → DvMAUBSQsZmIsRxi.mjs} +1 -1
  60. package/node/esm/OmUP1AfaJcOxWQAg.mjs +4462 -0
  61. package/node/esm/cJDXopFIX6f3_oi3.mjs +294 -0
  62. package/node/esm/index.mjs +7716 -4114
  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/6seXVm4fUaBp34tP.mjs +0 -217
  180. package/browser/esm/C1PiodbCgkhztxU5.mjs +0 -411
  181. package/browser/esm/DTWkitCkayiinpgU.mjs +0 -219
  182. package/browser/esm/DxBsD4nDbg_OWhYG.mjs +0 -47
  183. package/browser/esm/HZXAXZqrC43FBvGk.mjs +0 -82
  184. package/browser/esm/dgkVCh7lmm1Twqmo.mjs +0 -9257
  185. package/node/esm/B-3Ypi8akR-GxIpw.mjs +0 -82
  186. package/node/esm/CxqL51jVpIL4ncWW.mjs +0 -47
  187. package/node/esm/D-x3LVzppkKf5be_.mjs +0 -4575
  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.7.28-beta.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
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 o, keyEventCanonicals as r, keyStrokeToCanonical as l } from "@sheetxl/utils-react";
8
- import i, { useCallback as a, useEffect as s, useMemo as c, useRef as p, useState as d } from "react";
7
+ import { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as o, keyEventCanonicals as r, keyStrokeToCanonical as l, useTranslator as i } from "@sheetxl/utils-react";
8
+ import a, { useCallback as s, useEffect as c, useMemo as p, useRef as d, useState as u } from "react";
9
9
  import { InternalWindow as h } from "@sheetxl/utils-mui";
10
- import { jsx as u, jsxs as m } from "react/jsx-runtime";
11
- import { Box as g, Checkbox as f, Chip as x, DialogContent as y, FormControlLabel as b, IconButton as S, InputAdornment as v, TextField as k, Tooltip as C, Typography as w, emphasize as K } from "@mui/material";
12
- import { CommonUtils as $, TimerUtils as A } from "@sheetxl/utils";
13
- var L = (e) => e.replace(/\n\n+/g, "\n").trim(), z = /* @__PURE__ */ new Set([
10
+ import { jsx as m, jsxs as g } from "react/jsx-runtime";
11
+ import { Box as f, Checkbox as x, Chip as y, DialogContent as b, FormControlLabel as v, IconButton as S, InputAdornment as k, TextField as C, Tooltip as K, Typography as w, emphasize as $ } from "@mui/material";
12
+ import { CommonUtils as A, TimerUtils as L } from "@sheetxl/utils";
13
+ var z = (e) => e.replace(/\n\n+/g, "\n").trim(), P = /* @__PURE__ */ new Set([
14
14
  "Control",
15
15
  "Shift",
16
16
  "Alt",
17
17
  "Meta"
18
- ]), P = (e) => {
18
+ ]), D = (e) => {
19
19
  let t = e;
20
20
  const n = /* @__PURE__ */ new Set();
21
21
  for (const e of [
@@ -27,26 +27,26 @@ var L = (e) => e.replace(/\n\n+/g, "\n").trim(), z = /* @__PURE__ */ new Set([
27
27
  key: t,
28
28
  mods: n
29
29
  };
30
- }, D = $.getPlatform() === $.OSType.MacOS || $.getPlatform() === $.OSType.IOS, I = [
30
+ }, I = A.getPlatform() === A.OSType.MacOS || A.getPlatform() === A.OSType.IOS, M = [
31
31
  n.Ctrl,
32
32
  n.Alt,
33
33
  n.Shift,
34
34
  n.Meta
35
- ], M = (e) => {
35
+ ], B = (e) => {
36
36
  switch (e) {
37
- case n.Ctrl: return D ? "Cmd" : "Ctrl";
37
+ case n.Ctrl: return I ? "Cmd" : "Ctrl";
38
38
  case n.Alt: return "Alt";
39
39
  case n.Shift: return "Shift";
40
40
  case n.Meta: return "Meta";
41
41
  default: return e;
42
42
  }
43
- }, W = (e) => {
43
+ }, F = (e) => {
44
44
  const t = new Set(e);
45
- return I.filter((e) => t.has(e));
46
- }, B = (e) => {
45
+ return M.filter((e) => t.has(e));
46
+ }, R = (e) => {
47
47
  const t = [];
48
48
  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;
49
- }, R = ({ children: e }) => u(g, {
49
+ }, T = ({ children: e }) => m(f, {
50
50
  component: "kbd",
51
51
  sx: {
52
52
  display: "inline-flex",
@@ -63,34 +63,34 @@ var L = (e) => e.replace(/\n\n+/g, "\n").trim(), z = /* @__PURE__ */ new Set([
63
63
  whiteSpace: "nowrap",
64
64
  borderRadius: "5px",
65
65
  color: (e) => e.palette.text.secondary,
66
- backgroundColor: (e) => K(e.palette.background.paper, .07),
66
+ backgroundColor: (e) => $(e.palette.background.paper, .07),
67
67
  border: (e) => `solid 1px ${e.palette.divider}`,
68
68
  borderBottomWidth: "2px"
69
69
  },
70
70
  children: e
71
- }), T = () => u(g, {
71
+ }), W = () => m(f, {
72
72
  component: "span",
73
73
  sx: {
74
74
  fontSize: "0.7rem",
75
75
  color: (e) => e.palette.text.disabled
76
76
  },
77
77
  children: "+"
78
- }), F = ({ labels: e, dangling: t = !1 }) => m(g, {
78
+ }), E = ({ labels: e, dangling: t = !1 }) => g(f, {
79
79
  sx: {
80
80
  display: "flex",
81
81
  alignItems: "center",
82
82
  gap: "1px"
83
83
  },
84
- children: [e.map((e, t) => m(i.Fragment, { children: [t > 0 && u(T, {}), u(R, { children: e })] }, t)), t && u(T, {})]
85
- }), E = ({ stroke: e }) => {
84
+ children: [e.map((e, t) => g(a.Fragment, { children: [t > 0 && m(W, {}), m(T, { children: e })] }, t)), t && m(W, {})]
85
+ }), O = ({ stroke: e }) => {
86
86
  if (!e?.key) return null;
87
- const t = W(e.modifiers ?? []).map(M);
88
- return t.push(o.toPrettyKeyCode(e.key)), u(F, { labels: t });
87
+ const t = F(e.modifiers ?? []).map(B);
88
+ return t.push(o.toPrettyKeyCode(e.key)), m(E, { labels: t });
89
89
  };
90
- function O(n) {
91
- const { commands: o, sx: i, ...h } = n, [y, $] = d(!1), [I, R] = d(""), [T, O] = d(null), [j, N] = d(!1), [X, H] = d(null), [U, Y] = d(null), [q, G] = d(null), J = p(null), Q = c(() => {
90
+ function j(n) {
91
+ const { commands: o, sx: a, ...h } = n, b = i(), [A, M] = u(!1), [T, W] = u(""), [j, X] = u(null), [H, N] = u(!1), [U, Y] = u(null), [q, G] = u(null), [J, Q] = u(null), V = d(null), Z = p(() => {
92
92
  let e = o.getAllCommands();
93
- y && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
93
+ A && (e = e.filter((e) => e.command.getShortcut())), e = [...e].sort((e, t) => {
94
94
  const n = e.command.getScope?.() ?? e.groupKey, o = t.command.getScope?.() ?? t.groupKey, r = n.localeCompare(o);
95
95
  return 0 !== r ? r : e.command.getLabel().localeCompare(t.command.getLabel());
96
96
  });
@@ -101,7 +101,7 @@ function O(n) {
101
101
  icon: e.getIcon(),
102
102
  scope: r,
103
103
  scopeLabel: e.getScopeLabel?.() ?? r,
104
- description: L(e.getDescription())
104
+ description: z(e.getDescription())
105
105
  }, a = e.getShortcut(), s = Array.isArray(a) ? a.length ? a : [null] : [a ?? null];
106
106
  for (const e of s) {
107
107
  const o = e ? l(e) : null, a = `${r}\0${i.label}\0${o ?? ""}`;
@@ -114,11 +114,11 @@ function O(n) {
114
114
  }
115
115
  }
116
116
  return t;
117
- }, [y, o]), V = c(() => T ? Q.filter((e) => e.scope === T) : Q, [Q, T]), [Z, _] = d(null);
118
- s(() => {
117
+ }, [A, o]), _ = p(() => j ? Z.filter((e) => e.scope === j) : Z, [Z, j]), [ee, te] = u(null);
118
+ c(() => {
119
119
  let e = !1;
120
120
  return import("fuse.js").then((t) => {
121
- e || _(new t.default(V, {
121
+ e || te(new t.default(_, {
122
122
  threshold: .3,
123
123
  ignoreLocation: !0,
124
124
  keys: [
@@ -128,33 +128,35 @@ function O(n) {
128
128
  "scopeLabel"
129
129
  ]
130
130
  }));
131
+ }).catch((e) => {
132
+ console.warn("Shortcut search is unavailable:", e);
131
133
  }), () => {
132
134
  e = !0;
133
135
  };
134
- }, [V]);
135
- const [ee, te] = d(Q);
136
- s(() => {
137
- if (j) return U ? void te(V.filter((e) => {
136
+ }, [_]);
137
+ const [ne, oe] = u(Z);
138
+ c(() => {
139
+ if (H) return q ? void oe(_.filter((e) => {
138
140
  if (!e.canonical) return !1;
139
- const t = P(e.canonical);
140
- if (!U.keys.has(t.key)) return !1;
141
- for (const e of U.mods) if (!t.mods.has(e)) return !1;
141
+ const t = D(e.canonical);
142
+ if (!q.keys.has(t.key)) return !1;
143
+ for (const e of q.mods) if (!t.mods.has(e)) return !1;
142
144
  return !0;
143
- })) : void te(V);
144
- Z ? A.debounce(() => {
145
- const e = I.trim();
146
- 0 !== e.length ? te(Z.search(e).map((e) => e.item)) : te(V);
147
- }, 90)() : te(V);
145
+ })) : void oe(_);
146
+ ee ? L.debounce(() => {
147
+ const e = T.trim();
148
+ 0 !== e.length ? oe(ee.search(e).map((e) => e.item)) : oe(_);
149
+ }, 90)() : oe(_);
148
150
  }, [
149
- j,
150
- U,
151
- Z,
152
- I,
153
- V
151
+ H,
152
+ q,
153
+ ee,
154
+ T,
155
+ _
154
156
  ]);
155
- const ne = c(() => {
157
+ const re = p(() => {
156
158
  const e = /* @__PURE__ */ new Map();
157
- for (const t of ee) {
159
+ for (const t of ne) {
158
160
  let n = e.get(t.scope);
159
161
  n || (n = [], e.set(t.scope, n)), n.push(t);
160
162
  }
@@ -163,19 +165,19 @@ function O(n) {
163
165
  scopeLabel: t[0].scopeLabel,
164
166
  rows: t
165
167
  }));
166
- }, [ee]), oe = c(() => Q.find((e) => e.scope === T)?.scopeLabel ?? T, [Q, T]), re = j ? !!X : I.length > 0, le = re && 0 === ee.length;
167
- s(() => {
168
- J.current?.focus();
169
- }, [j]);
170
- const ie = a((e) => {
171
- N(e), R(""), H(null), Y(null), G(null);
172
- }, []), ae = a((e) => {
168
+ }, [ne]), le = p(() => Z.find((e) => e.scope === j)?.scopeLabel ?? j, [Z, j]), ie = H ? !!U : T.length > 0, ae = ie && 0 === ne.length;
169
+ c(() => {
170
+ V.current?.focus();
171
+ }, [H]);
172
+ const se = s((e) => {
173
+ N(e), W(""), Y(null), G(null), Q(null);
174
+ }, []), ce = s((e) => {
173
175
  if ("Tab" === e.key) return;
174
- if (e.which === t.Escape) return X || q ? (H(null), Y(null), G(null)) : ie(!1), e.stopPropagation(), void e.preventDefault();
175
- if (e.preventDefault(), e.stopPropagation(), "Backspace" === e.key) return H(null), Y(null), void G(null);
176
+ if (e.which === t.Escape) return U || J ? (Y(null), G(null), Q(null)) : se(!1), e.stopPropagation(), void e.preventDefault();
177
+ if (e.preventDefault(), e.stopPropagation(), "Backspace" === e.key) return Y(null), G(null), void Q(null);
176
178
  const n = e.nativeEvent;
177
- if (z.has(e.key)) return H(null), Y(null), void G(B(n));
178
- G(null), H(((e) => {
179
+ if (P.has(e.key)) return Y(null), G(null), void Q(R(n));
180
+ Q(null), Y(((e) => {
179
181
  const t = [];
180
182
  e.ctrlKey && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.metaKey && t.push("meta");
181
183
  const n = e.code;
@@ -184,50 +186,50 @@ function O(n) {
184
186
  key: o,
185
187
  modifiers: t
186
188
  };
187
- })(n)), Y(((e) => {
188
- const t = [...r(e)].map(P);
189
+ })(n)), G(((e) => {
190
+ const t = [...r(e)].map(D);
189
191
  return {
190
192
  keys: new Set(t.map((e) => e.key)),
191
193
  mods: t[0]?.mods ?? /* @__PURE__ */ new Set()
192
194
  };
193
195
  })(n));
194
196
  }, [
195
- X,
196
- q,
197
- ie
198
- ]), se = a((e) => {
199
- if (X) return;
200
- const t = B(e.nativeEvent);
201
- G(t.length ? t : null);
202
- }, [X]), ce = a((e) => {
203
- O((t) => t === e ? null : e);
204
- }, []), pe = a(() => {
205
- j ? (H(null), Y(null), G(null)) : R(""), J.current?.focus();
206
- }, [j]), de = j ? !!(X || q && q.length > 0) : I.length > 0, he = u(C, {
207
- title: j ? "Search by name (ESC)" : `Search by shortcut (${D ? "Cmd" : "Ctrl"}+K)`,
208
- children: u(S, {
197
+ U,
198
+ J,
199
+ se
200
+ ]), pe = s((e) => {
201
+ if (U) return;
202
+ const t = R(e.nativeEvent);
203
+ Q(t.length ? t : null);
204
+ }, [U]), de = s((e) => {
205
+ X((t) => t === e ? null : e);
206
+ }, []), ue = s(() => {
207
+ H ? (Y(null), G(null), Q(null)) : W(""), V.current?.focus();
208
+ }, [H]), he = H ? !!(U || J && J.length > 0) : T.length > 0, me = m(K, {
209
+ title: H ? "Search by name (ESC)" : `Search by shortcut (${I ? "Cmd" : "Ctrl"}+K)`,
210
+ children: m(S, {
209
211
  "aria-label": "toggle shortcut capture",
210
- color: j ? "primary" : "default",
211
- onClick: () => ie(!j),
212
+ color: H ? "primary" : "default",
213
+ onClick: () => se(!H),
212
214
  sx: {
213
215
  flexShrink: 0,
214
- border: (e) => `solid 1px ${j ? e.palette.primary.main : e.palette.divider}`,
216
+ border: (e) => `solid 1px ${H ? e.palette.primary.main : e.palette.divider}`,
215
217
  borderRadius: (e) => `${e.shape.borderRadius}px`
216
218
  },
217
- children: u(e, { iconKey: "Keyboard" })
219
+ children: m(e, { iconKey: "Keyboard" })
218
220
  })
219
221
  });
220
- return m(g, {
222
+ return g(f, {
221
223
  style: {
222
224
  height: 460,
223
225
  width: "100%",
224
226
  display: "flex",
225
227
  flexDirection: "column"
226
228
  },
227
- sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(i) ? i : [i]],
229
+ sx: [{ fontFamily: (e) => e.typography.fontFamily }, ...Array.isArray(a) ? a : [a]],
228
230
  ...h,
229
231
  children: [
230
- m(g, {
232
+ g(f, {
231
233
  sx: {
232
234
  display: "flex",
233
235
  alignItems: "center",
@@ -235,27 +237,27 @@ function O(n) {
235
237
  marginBottom: (e) => e.spacing(1.5)
236
238
  },
237
239
  children: [
238
- u(k, {
239
- inputRef: J,
240
+ m(C, {
241
+ inputRef: V,
240
242
  slotProps: {
241
243
  input: {
242
244
  sx: { backgroundColor: (e) => e.palette.action.hover },
243
- startAdornment: j && (X || q && q.length > 0) ? u(v, {
245
+ startAdornment: H && (U || J && J.length > 0) ? m(k, {
244
246
  position: "start",
245
247
  sx: { marginRight: "6px" },
246
- children: X ? u(E, { stroke: X }) : u(F, {
247
- labels: W(q).map(M),
248
+ children: U ? m(O, { stroke: U }) : m(E, {
249
+ labels: F(J).map(B),
248
250
  dangling: !0
249
251
  })
250
252
  }) : void 0,
251
- endAdornment: de ? u(v, {
253
+ endAdornment: he ? m(k, {
252
254
  position: "end",
253
- children: u(S, {
254
- "aria-label": j ? "clear shortcut" : "clear search",
255
- onClick: pe,
255
+ children: m(S, {
256
+ "aria-label": H ? "clear shortcut" : "clear search",
257
+ onClick: ue,
256
258
  edge: "end",
257
259
  size: "small",
258
- children: u(e, { iconKey: "Close" })
260
+ children: m(e, { iconKey: "Close" })
259
261
  })
260
262
  }) : void 0
261
263
  },
@@ -263,58 +265,58 @@ function O(n) {
263
265
  className: "input",
264
266
  autoFocus: !0,
265
267
  spellCheck: !1,
266
- placeholder: j ? X || q && q.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
268
+ placeholder: H ? U || J && J.length > 0 ? "" : "Press a shortcut… (Esc to exit)" : "Type to search commands, scopes, or descriptions",
267
269
  autoComplete: "off",
268
- "aria-label": j ? "Press a shortcut to find its command" : "Search commands",
270
+ "aria-label": H ? "Press a shortcut to find its command" : "Search commands",
269
271
  sx: {
270
272
  paddingTop: (e) => e.spacing(1),
271
273
  paddingBottom: (e) => e.spacing(1),
272
- caretColor: (e) => j ? e.palette.primary.main : void 0
274
+ caretColor: (e) => H ? e.palette.primary.main : void 0
273
275
  }
274
276
  }
275
277
  },
276
278
  sx: {
277
279
  flex: "1 1 auto",
278
- "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => le ? `${e.palette.error.main} !important` : j ? `${e.palette.primary.main} !important` : void 0 }
280
+ "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => ae ? `${e.palette.error.main} !important` : H ? `${e.palette.primary.main} !important` : void 0 }
279
281
  },
280
- value: j ? "" : I,
282
+ value: H ? "" : T,
281
283
  onChange: (e) => {
282
- j || R(e.target.value);
284
+ H || W(e.target.value);
283
285
  },
284
- onKeyDown: j ? ae : (e) => {
285
- if ((e.ctrlKey || e.metaKey) && ("k" === e.key || "K" === e.key)) return ie(!0), e.stopPropagation(), void e.preventDefault();
286
- e.which === t.Escape && I.length > 0 && (R(""), e.stopPropagation(), e.preventDefault());
286
+ onKeyDown: H ? ce : (e) => {
287
+ if ((e.ctrlKey || e.metaKey) && ("k" === e.key || "K" === e.key)) return se(!0), e.stopPropagation(), void e.preventDefault();
288
+ e.which === t.Escape && T.length > 0 && (W(""), e.stopPropagation(), e.preventDefault());
287
289
  },
288
- onKeyUp: j ? se : void 0,
290
+ onKeyUp: H ? pe : void 0,
289
291
  onContextMenu: (e) => e.stopPropagation()
290
292
  }),
291
- he,
292
- u(b, {
293
+ me,
294
+ m(v, {
293
295
  sx: {
294
296
  flexShrink: 0,
295
297
  marginRight: 0
296
298
  },
297
- control: u(f, {
298
- checked: y,
299
- onChange: () => $(!y)
299
+ control: m(x, {
300
+ checked: A,
301
+ onChange: () => M(!A)
300
302
  }),
301
- label: "With key bindings",
303
+ label: b("shortcutKeys.onlyKeyBindings"),
302
304
  labelPlacement: "start"
303
305
  })
304
306
  ]
305
307
  }),
306
- T && u(g, {
308
+ j && m(f, {
307
309
  sx: {
308
310
  display: "flex",
309
311
  marginBottom: 1
310
312
  },
311
- children: u(x, {
313
+ children: m(y, {
312
314
  size: "small",
313
- label: `Scope: ${oe}`,
314
- onDelete: () => O(null)
315
+ label: b("shortcutKeys.scopeFilter", { scope: le }),
316
+ onDelete: () => X(null)
315
317
  })
316
318
  }),
317
- u(g, {
319
+ m(f, {
318
320
  sx: {
319
321
  flex: "1 1 100%",
320
322
  minHeight: 0,
@@ -322,20 +324,20 @@ function O(n) {
322
324
  border: (e) => `solid ${e.palette.divider} 1px`,
323
325
  overflow: "visible"
324
326
  },
325
- children: u(g, {
327
+ children: m(f, {
326
328
  sx: {
327
329
  height: "100%",
328
330
  overflow: "auto"
329
331
  },
330
- children: 0 === ne.length ? u(g, {
332
+ children: 0 === re.length ? m(f, {
331
333
  sx: {
332
334
  padding: 3,
333
335
  textAlign: "center",
334
- color: (e) => le ? e.palette.error.main : e.palette.text.secondary
336
+ color: (e) => ae ? e.palette.error.main : e.palette.text.secondary
335
337
  },
336
- children: re ? "No matching shortcuts" : "No shortcuts"
337
- }) : ne.map((t) => m(g, { children: [m(g, {
338
- onClick: () => ce(t.scope),
338
+ children: b(ie ? "shortcutKeys.noMatches" : "shortcutKeys.none")
339
+ }) : re.map((t) => g(f, { children: [g(f, {
340
+ onClick: () => de(t.scope),
339
341
  sx: {
340
342
  position: "sticky",
341
343
  top: "-1px",
@@ -353,16 +355,16 @@ function O(n) {
353
355
  fontWeight: 600,
354
356
  letterSpacing: "0.04em",
355
357
  textTransform: "uppercase",
356
- backgroundColor: (e) => K(e.palette.background.paper, .04),
357
- boxShadow: (e) => `0 -2px 0 0 ${K(e.palette.background.paper, .04)}`,
358
+ backgroundColor: (e) => $(e.palette.background.paper, .04),
359
+ boxShadow: (e) => `0 -2px 0 0 ${$(e.palette.background.paper, .04)}`,
358
360
  borderBottom: (e) => `solid 1px ${e.palette.divider}`,
359
- color: (e) => T === t.scope ? e.palette.primary.main : e.palette.text.secondary,
361
+ color: (e) => j === t.scope ? e.palette.primary.main : e.palette.text.secondary,
360
362
  "&:hover": {
361
363
  color: (e) => e.palette.text.primary,
362
- backgroundColor: (e) => K(e.palette.background.paper, .09)
364
+ backgroundColor: (e) => $(e.palette.background.paper, .09)
363
365
  }
364
366
  },
365
- children: [u("span", { children: t.scopeLabel }), u(w, {
367
+ children: [m("span", { children: t.scopeLabel }), m(w, {
366
368
  component: "span",
367
369
  sx: {
368
370
  fontSize: "inherit",
@@ -371,21 +373,21 @@ function O(n) {
371
373
  children: t.rows.length
372
374
  })]
373
375
  }), t.rows.map((t) => {
374
- return m(g, {
376
+ return g(f, {
375
377
  sx: {
376
378
  paddingX: 1.5,
377
379
  paddingY: .75,
378
380
  borderBottom: (e) => `solid 1px ${e.palette.divider}`,
379
381
  "&:hover": { backgroundColor: (e) => e.palette.action.hover }
380
382
  },
381
- children: [m(g, {
383
+ children: [g(f, {
382
384
  sx: {
383
385
  display: "flex",
384
386
  alignItems: "center",
385
387
  gap: 1
386
388
  },
387
389
  children: [
388
- u(g, {
390
+ m(f, {
389
391
  sx: {
390
392
  flexShrink: 0,
391
393
  display: "flex",
@@ -394,21 +396,21 @@ function O(n) {
394
396
  height: "var(--icon-size, 20px)",
395
397
  color: (e) => e.palette.text.icon ?? e.palette.action.active
396
398
  },
397
- children: (n = t.icon, n && "string" != typeof n ? n : u(e, { iconKey: n }))
399
+ children: (n = t.icon, n && "string" != typeof n ? n : m(e, { iconKey: n }))
398
400
  }),
399
- u(w, {
401
+ m(w, {
400
402
  sx: {
401
403
  flex: "1 1 auto",
402
404
  fontWeight: 500
403
405
  },
404
406
  children: t.label
405
407
  }),
406
- t.shortcut && u(g, {
408
+ t.shortcut && m(f, {
407
409
  sx: { flexShrink: 0 },
408
- children: u(E, { stroke: t.shortcut })
410
+ children: m(O, { stroke: t.shortcut })
409
411
  })
410
412
  ]
411
- }), t.description && u(w, {
413
+ }), t.description && m(w, {
412
414
  component: "div",
413
415
  sx: {
414
416
  marginTop: "2px",
@@ -424,7 +426,7 @@ function O(n) {
424
426
  })] }, t.scope))
425
427
  })
426
428
  }),
427
- u(g, {
429
+ m(f, {
428
430
  sx: {
429
431
  display: "flex",
430
432
  flexShrink: 0,
@@ -434,19 +436,19 @@ function O(n) {
434
436
  userSelect: "none",
435
437
  justifyContent: "flex-end"
436
438
  },
437
- children: u(w, {
439
+ children: m(w, {
438
440
  noWrap: !0,
439
441
  component: "div",
440
- sx: { color: (e) => le ? e.palette.error.main : e.palette.text.secondary },
441
- children: `${0 === ee.length ? "No" : ee.length} shortcut${1 === ee.length ? "" : "s"}${re ? " found" : ""}`
442
+ sx: { color: (e) => ae ? e.palette.error.main : e.palette.text.secondary },
443
+ children: b(ie ? "shortcutKeys.countFound" : "shortcutKeys.count", { count: ne.length })
442
444
  })
443
445
  })
444
446
  ]
445
447
  });
446
448
  }
447
- var j = (e) => {
449
+ var X = (e) => {
448
450
  const { title: n = "Shortcut Keys", commands: o, sx: r, ...l } = e;
449
- return u(h, {
451
+ return m(h, {
450
452
  isModal: !0,
451
453
  onKeyDown: (e) => {
452
454
  e.keyCode === t.F1 && e.preventDefault();
@@ -458,13 +460,13 @@ var j = (e) => {
458
460
  title: n,
459
461
  autoFocusSel: ".input",
460
462
  ...l,
461
- children: u(y, {
463
+ children: m(b, {
462
464
  dividers: !0,
463
- children: u(O, {
465
+ children: m(j, {
464
466
  commands: o,
465
467
  sx: { marginBottom: "8px" }
466
468
  })
467
469
  })
468
470
  });
469
471
  };
470
- export { j as default };
472
+ export { X as default };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
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.