@sheetxl/studio-mui 0.7.4 → 0.7.6

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 (47) hide show
  1. package/README.md +9 -5
  2. package/browser/cjs/{DwzNkpi_T8XJi3Cd.cjs → -u6vWH9DiYlO1rsa.cjs} +1 -1
  3. package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +20 -0
  4. package/browser/cjs/{B6o1iQp5wuulPhxo.cjs → 7MV1n9Y0yXU0hKpM.cjs} +1 -1
  5. package/browser/cjs/{BY3gQcuJkcK9yhlk.cjs → B8-dSgXI2XZKFvtp.cjs} +2 -2
  6. package/browser/cjs/BEmcHbiMOFhIa91S.cjs +6 -0
  7. package/browser/cjs/{CflDY3SthBCQg-9F.cjs → BdNRaXTgqRzPmg0L.cjs} +2 -2
  8. package/browser/cjs/{D5l5wPl8rDYzrVey.cjs → Ce6JLd3qejgMgM3r.cjs} +7 -7
  9. package/browser/cjs/{qd_yuub025U26HmN.cjs → D7AH724IJJvos02e.cjs} +1 -1
  10. package/browser/cjs/{yETr27p_AmaFufvo.cjs → DefYX_aeMZivbpEt.cjs} +2 -2
  11. package/browser/cjs/{HfdfBnRHde6LrsMc.cjs → KOj1qev47_vzzRFV.cjs} +1 -1
  12. package/browser/cjs/{BY1UZBLCxYes25sM.cjs → St8H4B5iT2fsqOb7.cjs} +1 -1
  13. package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +6 -0
  14. package/browser/cjs/index.cjs +2 -2
  15. package/browser/esm/BNxVvFkY3b2mERJf.mjs +64 -0
  16. package/browser/esm/{BqypjhYAei9BoIkg.mjs → BnVbG5kg41edf8oz.mjs} +2 -2
  17. package/browser/esm/{DUTXM-jsPX1poBAb.mjs → CJsYe8TqU6tqj4UH.mjs} +55 -56
  18. package/browser/esm/{CwE4P36bJkqx4fG2.mjs → CKLhWrNo1E4r3pG7.mjs} +1 -1
  19. package/browser/esm/{DpeZ0TCk2XtCsW7D.mjs → DVSjscO7zuDsOD4v.mjs} +2 -2
  20. package/browser/esm/{CX5p76lvGB80Gn7j.mjs → DdLujAMc-Cefddif.mjs} +1 -1
  21. package/browser/esm/{BMrxZUxFZxs_TprK.mjs → Dg_NRblGOcetqhnC.mjs} +17 -18
  22. package/browser/esm/{C43cFXvNQttM0tuv.mjs → YfJJd16cfjuXpb8G.mjs} +1 -1
  23. package/browser/esm/beUKtp_qQMnuYcVk.mjs +4452 -0
  24. package/browser/esm/index.mjs +68 -71
  25. package/browser/esm/{C-TjWH0Ll_dg6TXG.mjs → miaBr4cu9WKLs8Is.mjs} +1 -1
  26. package/browser/esm/{UKbQrJIwqIMUQ4dz.mjs → nwvZlIH9rheqctQz.mjs} +1 -1
  27. package/browser/esm/{DDCO6hne0WaKAsyz.mjs → yQgfM4ehXrfnEoUK.mjs} +2 -2
  28. package/node/esm/{DmbC0_ocWCB60DUY.mjs → B9TRK2jd_Ki2RifT.mjs} +1 -1
  29. package/node/esm/{g5IsTuP_M7p1bN41.mjs → BTp8XtWh47Y1g1MM.mjs} +1 -1
  30. package/node/esm/BcB8nCbI5HW5jv5q.mjs +65 -0
  31. package/node/esm/C5WzmLTAphEQU3CU.mjs +155 -0
  32. package/node/esm/{C0x0sq_I7hdqCuBB.mjs → CN79Z_qqLiF3V5r0.mjs} +1 -1
  33. package/node/esm/{x7VDppl2hKDhIcfj.mjs → CNCYE_ff8SnJJMPN.mjs} +41 -42
  34. package/node/esm/{nZVauB5xkNLVTaod.mjs → COoX8Ir66wNuWJ_m.mjs} +1 -1
  35. package/node/esm/{VjNnErE5lO5hNix_.mjs → CxbA2L1Ap9NSJcxm.mjs} +1 -1
  36. package/node/esm/{CdEdm8ItFMvEzr0O.mjs → Dln5o1FP_HWPs0Uf.mjs} +1 -1
  37. package/node/esm/index.mjs +1405 -1452
  38. package/node/esm/{DhjwHPKOhF-WGawL.mjs → qpKmKMfv4DDofXKf.mjs} +1 -1
  39. package/package.json +21 -10
  40. package/types/index.d.ts +14 -92
  41. package/browser/cjs/BCNKSDS1DahImiBd.cjs +0 -20
  42. package/browser/cjs/BrJIDDxcCb7loSqZ.cjs +0 -6
  43. package/browser/cjs/hRcxITGib5rp_kTW.cjs +0 -6
  44. package/browser/esm/BXa5jJK06vkHLfz_.mjs +0 -64
  45. package/browser/esm/zTa4aYOOiAsmWpM1.mjs +0 -4489
  46. package/node/esm/DUoSsHJRuVxAeHW-.mjs +0 -156
  47. package/node/esm/DuFKPKejduTq6L6F.mjs +0 -65
@@ -1,91 +1,88 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  import { LicenseManager as t } from "@sheetxl/sdk";
3
- import { useModelListener as n, useRangeListener as s } from "@sheetxl/react";
4
- import { E as r, $ as u, B as l, Q as d, Y as C, m as B, a1 as i, s as p, a0 as S, Z as k, a2 as c, D as b, A as T, ao as P, n as F, aa as I, q as y, ab as W, j as g, t as h, k as f, a8 as x, F as M, G as w, H as E, I as A, O as L, L as O, J as R, at as v, M as N, a9 as V, N as z, l as H, P as U, y as D, z as G, R as j, as as q, au as Z, ar as J, ad as K, ae as Q, a7 as X, af as Y, p as _, a6 as $, S as aa, X as oa, ac as ta, T as ea, a as na, v as sa, h as ma, i as ra, a3 as ua, a4 as la, a5 as da, w as Ca, U as Ba, V as ia, o as pa, x as Sa, K as ka, aj as ca, ah as ba, aq as Ta, ak as Pa, ai as Fa, W as Ia, ap as ya, an as Wa, S as ga, am as ha, ag as fa, al as xa } from "./zTa4aYOOiAsmWpM1.mjs";
3
+ import { DefaultTaskPaneRegistry as n, useModelListener as s, useRangeListener as m } from "@sheetxl/react";
4
+ import { E as r, $ as l, B as d, Q as C, Y as B, m as i, a1 as S, s as p, a0 as k, Z as P, a2 as T, D as b, A as F, ao as c, n as y, aa as g, q as I, ab as h, j as W, t as f, k as x, a8 as M, F as w, G as A, H as E, I as L, O, L as R, J as v, M as N, a9 as V, N as z, l as D, P as H, y as U, z as G, R as j, ad as q, ae as Z, a7 as J, af as K, p as Q, a6 as X, S as Y, X as _, ac as $, T as aa, a as oa, v as ta, h as ea, i as na, a3 as sa, a4 as ma, a5 as ua, w as ra, U as la, V as da, o as Ca, x as Ba, K as ia, aj as Sa, ah as pa, aq as ka, ak as Pa, ai as Ta, W as ba, ap as Fa, an as ca, S as ya, am as ga, ag as Ia, al as ha } from "./beUKtp_qQMnuYcVk.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
10
10
  */
11
11
  export {
12
12
  r as AppearanceCommandButton,
13
- u as AutoColorPosition,
14
- l as BorderCommandButton,
15
- d as BorderPopupButton,
16
- C as BorderStyleButton,
17
- B as ClearCommandButton,
18
- i as ColorButton,
13
+ l as AutoColorPosition,
14
+ d as BorderCommandButton,
15
+ C as BorderPopupButton,
16
+ B as BorderStyleButton,
17
+ i as ClearCommandButton,
18
+ S as ColorButton,
19
19
  p as ColorCommandButton,
20
- S as ColorPanel,
21
- k as ColorPanelType,
22
- c as ColorPopupButton,
20
+ k as ColorPanel,
21
+ P as ColorPanelType,
22
+ T as ColorPopupButton,
23
+ n as DefaultTaskPaneRegistry,
23
24
  b as DeleteCellsCommandButton,
24
- T as DocThemeCommandButton,
25
- P as EagerStudio,
26
- F as FillCommandButton,
27
- I as FilterColumnMenu,
28
- y as FilterCommandButton,
29
- W as Filters,
30
- g as FindCommandButton,
31
- h as FontFamilyCommandButton,
32
- f as FontSizeCommandButton,
33
- x as FormulaBar,
34
- M as FreezeCommandButton,
35
- w as HelpCommandButton,
25
+ F as DocThemeCommandButton,
26
+ c as EagerStudio,
27
+ y as FillCommandButton,
28
+ g as FilterColumnMenu,
29
+ I as FilterCommandButton,
30
+ h as Filters,
31
+ W as FindCommandButton,
32
+ f as FontFamilyCommandButton,
33
+ x as FontSizeCommandButton,
34
+ M as FormulaBar,
35
+ w as FreezeCommandButton,
36
+ A as HelpCommandButton,
36
37
  E as HorizontalAlignCommandButton,
37
- A as InsertCellsCommandButton,
38
- L as InsertFunctionCommandPopupButton,
39
- O as InsertFunctionSumCommandPopupButton,
40
- R as InsertImageCommandButton,
41
- v as InsertScriptCommandButton,
38
+ L as InsertCellsCommandButton,
39
+ O as InsertFunctionCommandPopupButton,
40
+ R as InsertFunctionSumCommandPopupButton,
41
+ v as InsertImageCommandButton,
42
42
  t as LicenseManager,
43
43
  N as MergeCommandButton,
44
44
  V as NamedCollectionEditor,
45
45
  z as NamedInput,
46
- H as NumberFormatCommandButton,
47
- U as PasteCommandButton,
48
- D as PresetCellStylesCommandButton,
46
+ D as NumberFormatCommandButton,
47
+ H as PasteCommandButton,
48
+ U as PresetCellStylesCommandButton,
49
49
  G as PresetTableStylesCommandButton,
50
50
  j as RangeInput,
51
- q as RunScriptCommandButton,
52
- Z as ScriptEditorToolbar,
53
- J as ScriptWorkspace,
54
- K as SheetTab,
55
- Q as SheetTabMenu,
56
- X as SheetZoomScale,
57
- Y as SheetsAllMenu,
58
- _ as SortFilterCommandButton,
59
- $ as StatusBar,
60
- aa as Studio,
61
- oa as StyledStrokeIcon,
62
- ta as TableStyleCanvasPreview,
63
- ea as TableStyleOptionsPanel,
64
- na as TableStylePreview,
65
- sa as TextEffectsCommandButton,
66
- ma as TextOverflowCommandButton,
67
- ra as TextRotateCommandButton,
68
- ua as ThemeSelectButton,
69
- la as ThemeSelectPanel,
70
- da as ThemeSelectPopupButton,
71
- Ca as UnderlineCommandButton,
72
- Ba as UndoRedoCommandButton,
73
- ia as VerticalAlignCommandButton,
74
- pa as ViewGridLinesCommandButton,
75
- Sa as ViewHeadingsCommandButton,
76
- ka as WalkingCopyCommandButton,
77
- ca as WorkbookContextMenu,
78
- ba as WorkbookElement,
79
- Ta as WorkbookIO,
51
+ q as SheetTab,
52
+ Z as SheetTabMenu,
53
+ J as SheetZoomScale,
54
+ K as SheetsAllMenu,
55
+ Q as SortFilterCommandButton,
56
+ X as StatusBar,
57
+ Y as Studio,
58
+ _ as StyledStrokeIcon,
59
+ $ as TableStyleCanvasPreview,
60
+ aa as TableStyleOptionsPanel,
61
+ oa as TableStylePreview,
62
+ ta as TextEffectsCommandButton,
63
+ ea as TextOverflowCommandButton,
64
+ na as TextRotateCommandButton,
65
+ sa as ThemeSelectButton,
66
+ ma as ThemeSelectPanel,
67
+ ua as ThemeSelectPopupButton,
68
+ ra as UnderlineCommandButton,
69
+ la as UndoRedoCommandButton,
70
+ da as VerticalAlignCommandButton,
71
+ Ca as ViewGridLinesCommandButton,
72
+ Ba as ViewHeadingsCommandButton,
73
+ ia as WalkingCopyCommandButton,
74
+ Sa as WorkbookContextMenu,
75
+ pa as WorkbookElement,
76
+ ka as WorkbookIO,
80
77
  Pa as WorkbookStrip,
81
- Fa as WorkbookTitle,
82
- Ia as WorkbookViewCommandButton,
83
- ya as _WorkbookIO,
84
- Wa as createGridStyleFromMUITheme,
85
- ga as default,
86
- ha as defaultNewWorkbook,
87
- fa as setPrintExamplesOnLoad,
88
- n as useModelListener,
89
- s as useRangeListener,
90
- xa as useWorkbookCommands
78
+ Ta as WorkbookTitle,
79
+ ba as WorkbookViewCommandButton,
80
+ Fa as _WorkbookIO,
81
+ ca as createGridStyleFromMUITheme,
82
+ ya as default,
83
+ ga as defaultNewWorkbook,
84
+ Ia as setPrintExamplesOnLoad,
85
+ s as useModelListener,
86
+ m as useRangeListener,
87
+ ha as useWorkbookCommands
91
88
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -6,7 +6,7 @@ import { NumberFormat as n } from "@sheetxl/sdk";
6
6
  import { useCallbackRef as c, KeyCodes as Q } from "@sheetxl/utils-react";
7
7
  import { OptionsDialog as U } from "@sheetxl/utils-mui";
8
8
  /**
9
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
9
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
10
10
  *
11
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
12
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -3,9 +3,9 @@ import { memo as E, useMemo as R, useState as d, useCallback as V } from "react"
3
3
  import { Box as L } from "@mui/material";
4
4
  import { useCallbackRef as m } from "@sheetxl/utils-react";
5
5
  import { OptionsDialog as S } from "@sheetxl/utils-mui";
6
- import { N as A, R as G } from "./zTa4aYOOiAsmWpM1.mjs";
6
+ import { N as A, R as G } from "./beUKtp_qQMnuYcVk.mjs";
7
7
  /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * 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.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-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.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
8
+ import { memo as o, useState as n, useRef as i, useReducer as a, useMemo as l } from "react";
9
+ import { useMeasure as r } from "react-use";
10
+ import { DialogContent as s, Box as c } from "@mui/material";
11
+ import { useCommand as d, useCallbackRef as m, useNotifier as g, CommandButtonType as p } from "@sheetxl/utils-react";
12
+ import { InternalWindow as h, ExhibitDivider as u, CommandButton as x } from "@sheetxl/utils-mui";
13
+ import { useModelListener as f } from "@sheetxl/react";
14
+ import { NamedInput as y, RangeInput as b, TableStyleOptionsPanel as w, TableStylePreview as S } from "./index.mjs";
15
+ const C = o((o2) => {
16
+ const { title: C2, onHide: N, autoFocusSel: v = ".range-input input", context: R, command: T, commands: F, ...D } = o2, [H, B] = n(false), [I, P] = n(false), j = i(null), [z, L] = a((e2) => e2 + 1, 0), [O, { width: E }] = r();
17
+ d(T);
18
+ const A = R ?? T.context(), M = A.table(), [V, W] = n(() => M ? A.getNames().getRanges(M.getRange()) : null), k = l(() => M?.getName() ?? "", [M]);
19
+ f(A.table(), { onAnchorCoordsChange(e2) {
20
+ W(A.getNames().getRanges(e2.getRange()));
21
+ }, onProtectedChange(e2) {
22
+ L();
23
+ } });
24
+ const q = m((e2) => {
25
+ A?.table().setName(e2);
26
+ }, [A]), G = m((e2) => {
27
+ A?.table().resize(e2.at(0));
28
+ }, [A]);
29
+ let J = null;
30
+ A.table() || (J = e("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: e("div", { children: "No table selected" }) }));
31
+ const K = g();
32
+ return e(h, { ref: j, title: C2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: v, onHide: N, onFocus: () => B(true), onBlur: (e2) => {
33
+ j?.current?.contains(e2.relatedTarget) || B(false);
34
+ }, PaperProps: { elevation: H ? 3 : 1 }, ...D, children: t(s, { dividers: true, ref: O, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: A.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(y, { formName: "name", defaultInput: k, value: M?.getName() ?? "No table", onChangeInput: q, onValidate: (e2) => {
35
+ M && M.getName().toLowerCase() === e2.toLowerCase() || A?.getNames().validateName(e2);
36
+ }, disabled: M?.isProtected() ?? true, onFocus: (e2) => {
37
+ I || e2.target?.select(), P(true);
38
+ } }), e(b, { formName: "range", value: V, onChangeInput: G, resolvedAddress: A.getNames().getRanges.bind(A.getNames()), disabled: M?.isProtected() ?? true, onFocus: (e2) => {
39
+ I || e2.target?.select(), P(true);
40
+ } })] }) }) }), t(c, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(u, { orientation: "horizontal", sx: { marginTop: (e2) => e2.spacing(1.5), marginBottom: (e2) => e2.spacing(0.75) } }), e(w, { disabled: M?.isProtected(), styleOptions: M?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
41
+ M.updateStyleOptions(e2);
42
+ }, showHeaderRow: M?.getShowHeaders(), onShowHeaderRowChange: (e2) => {
43
+ try {
44
+ M.setShowHeaders(e2);
45
+ } catch (e3) {
46
+ K.showError(e3);
47
+ }
48
+ }, showTotalRow: M?.getShowTotals(), onShowTotalRowChange: (e2) => {
49
+ try {
50
+ M.setShowTotals(e2);
51
+ } catch (e3) {
52
+ K.showError(e3);
53
+ }
54
+ }, showFilterButton: M?.getFilter() ? M.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
55
+ try {
56
+ M.setShowFilterButton(e2);
57
+ } catch (e3) {
58
+ K.showError(e3);
59
+ }
60
+ } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(S, { table: M, styles: A.styles(), bodyStyle: A.bodyStyle(), cellHeight: 30, isLive: true }) }), e(u, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(x, { variant: p.Menuitem, command: F.getCommand("convertTableToRange"), commandState: M }), e(x, { variant: p.Menuitem, commandState: M, command: F.getCommand("deleteTable") })] })] })] }), J] }) });
61
+ });
62
+ export {
63
+ C as TableDetailsWindow,
64
+ C as default
65
+ };
@@ -0,0 +1,155 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
8
+ import { memo as t, useRef as i, useState as o, useEffect as l, useLayoutEffect as r, useMemo as s } from "react";
9
+ import { useMeasure as a } from "react-use";
10
+ import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles";
11
+ import { DialogContent as d, Box as u, TextField as f, InputAdornment as g, Collapse as m, MenuItem as x, FormControl as h, InputLabel as O, Select as y } from "@mui/material";
12
+ import { ICell as C, IRange as b } from "@sheetxl/sdk";
13
+ import { useCallbackRef as T, KeyCodes as v, DynamicIcon as R, KeyModifiers as k } from "@sheetxl/utils-react";
14
+ import { InternalWindow as F, ExhibitOptionButton as w, ExhibitDivider as E } from "@sheetxl/utils-mui";
15
+ const K = t((t2) => {
16
+ const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [g2, m2] = o(() => $(r2, a2));
17
+ l(() => {
18
+ m2($(r2, a2));
19
+ }, [r2, a2]);
20
+ const C2 = T((e2) => {
21
+ m2(e2.target.value), d2?.(a2[e2.target.value]);
22
+ }, [d2, a2]), b2 = s(() => Object.keys(a2).map((n2) => e(x, { value: n2, children: n2 }, n2)), [a2]);
23
+ return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(y, { inputProps: { tabIndex: u2 }, value: g2, label: i2, onChange: C2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
24
+ }), S = { Workbook: "workbook", Sheet: "sheet" }, I = { enter: 140, exit: 140 }, D = { Formulas: C.Content.Formulas, Values: C.Content.Values, Notes: C.Content.Notes, Comments: C.Content.Comments }, A = { ...D };
25
+ delete A.Values;
26
+ const P = { "By Rows": true, "By Columns": false }, $ = (e2, n2) => {
27
+ const t2 = Object.keys(n2);
28
+ for (let i2 = 0; i2 < t2.length; i2++) {
29
+ const o2 = t2[i2];
30
+ if (n2[o2] === e2) return o2;
31
+ }
32
+ }, B = t((t2) => {
33
+ const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: y2, title: $2, onHide: B2, onFindOrReplace: M, ...W } = t2, L = i(null), V = i(null), N = i(null), j = i(null), H = i(null), z = i(null), U = (e2, n2) => {
34
+ if (!n2) return;
35
+ n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
36
+ }, [G, X] = o(false), [q, J] = o(false), [Q, Y] = o(s2), [Z, _] = o(false), [ee, ne] = o(false), [te, ie] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: b.Orientation.Row, fields: [C.Content.Formulas] }, scope: S.Sheet }), oe = T(async (e2, n2, t3, i2) => {
37
+ if (!M) return;
38
+ const o2 = { ...te };
39
+ o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = t3 ? void 0 : 1, o2.replace = n2, n2 && te.findOptions.fields?.[0] === C.Content.Values && (o2.findOptions.fields = [C.Content.Formulas]), o2.findOptions.reverse = !e2;
40
+ const l2 = await M({ autoFocus: i2, ...o2 });
41
+ _(0 === l2);
42
+ }, [te, M]);
43
+ l(() => {
44
+ _(false);
45
+ }, [te, q, Q]);
46
+ const le = T((e2, n2) => {
47
+ if (e2.keyCode === v.Enter) {
48
+ if (!te.findText) return;
49
+ let t3 = true, i2 = false;
50
+ e2.shiftKey && (t3 = false), n2 ? (e2.ctrlKey && e2.altKey && (i2 = true), U(e2, i2 ? z.current : H.current)) : U(e2, t3 ? j.current : N.current), oe(t3, n2, i2, false);
51
+ }
52
+ }, [te]), re = i(null);
53
+ r(() => {
54
+ ie((e2) => {
55
+ const n2 = { ...e2 };
56
+ n2.findText = x2 && x2.length > 0 ? x2 : e2.findText ?? "", X(true), void 0 !== h2 && (n2.replaceText = h2), O2 && (n2.findOptions = { ...n2.findOptions, ...O2 }), n2.replaceText || (n2.replaceText = ""), n2.replaceOptions && (n2.replaceOptions = { ...n2.replaceOptions }), y2 && (n2.replaceOptions = { ...n2.replaceOptions, ...y2 }), te.findOptions.fields?.[0] || (te.findOptions.fields = [C.Content.Formulas]);
57
+ const t3 = !(!y2 && void 0 === h2);
58
+ return t3 && Y(t3), n2;
59
+ }), ee || re.current?.focus();
60
+ }, [x2, h2, O2, y2]), l(() => {
61
+ Q ? (te.findOptions.fields[0], C.Content.Values) : X(true);
62
+ }, [Q]), l(() => {
63
+ if (G && L.current && te.findText === L.current.value) return L.current === document.activeElement || L.current.contains(document.activeElement) ? (L.current?.select(), void X(false)) : void L.current.addEventListener("focus", () => {
64
+ L.current?.select(), X(false);
65
+ }, { once: true });
66
+ }, [G, te]);
67
+ const [se, { width: ae }] = a();
68
+ return e(F, { ref: re, title: $2 ?? (Q ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: B2, onFocus: () => ne(true), onBlur: () => {
69
+ ne(false), _(false);
70
+ }, PaperProps: { elevation: ee ? 3 : 1 }, ...W, children: n(d, { dividers: true, ref: se, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
71
+ if ("h" === e2.key && e2.ctrlKey) Y(true), L.current?.contains(document.activeElement) && V.current?.focus();
72
+ else if ("f" === e2.key && e2.ctrlKey) L.current?.focus();
73
+ else if ("c" === e2.key && e2.altKey) ie((e3) => {
74
+ const n2 = { ...e3 };
75
+ return n2.findOptions.matchCase = !e3.findOptions.matchCase, n2;
76
+ });
77
+ else if ("e" === e2.key && e2.altKey) ie((e3) => {
78
+ const n2 = { ...e3 };
79
+ return n2.findOptions.matchEntireCell = !e3.findOptions.matchEntireCell, n2;
80
+ });
81
+ else {
82
+ if ("r" !== e2.key || !e2.altKey) return;
83
+ ie((e3) => {
84
+ const n2 = { ...e3 };
85
+ return n2.findOptions.useRegex = !e3.findOptions.useRegex, n2;
86
+ });
87
+ }
88
+ e2.preventDefault();
89
+ }, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(w, { selected: q, onSelectToggle: (e2) => {
90
+ J(e2);
91
+ }, preventFocus: true, label: "Toggle Additional Options", icon: e(R, { iconKey: "FindOptions" }) }), e(w, { selected: Q, onSelectToggle: (e2) => {
92
+ Y(e2);
93
+ }, preventFocus: true, label: "Toggle Replace", icon: e(R, { iconKey: "FindReplaceToggle" }), shortcut: { key: Q ? "F" : "H", modifiers: [k.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: ae > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: L, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(g, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(w, { selected: te.findOptions.matchCase, onSelectToggle: (e2) => {
94
+ ie((n2) => {
95
+ const t3 = { ...n2 };
96
+ return t3.findOptions.matchCase = e2, t3;
97
+ });
98
+ }, label: "Match Case", shortcut: { key: "C", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindCaseSensitive" }) }), e(w, { selected: te.findOptions.matchEntireCell, onSelectToggle: (e2) => {
99
+ ie((n2) => {
100
+ const t3 = { ...n2 };
101
+ return t3.findOptions.matchEntireCell = e2, t3;
102
+ });
103
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindWholeWord" }) }), e(w, { selected: te.findOptions.useRegex, onSelectToggle: (e2) => {
104
+ ie((n2) => {
105
+ const t3 = { ...n2 };
106
+ return t3.findOptions.useRegex = e2, t3;
107
+ });
108
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindRegEx" }) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => Z ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => Z ? `${e2.palette.error.main} !important` : void 0 } }, value: te.findText ?? "", onChange: (e2) => {
109
+ ie((n2) => {
110
+ const t3 = { ...n2 };
111
+ return t3.findText = e2.target.value, t3;
112
+ });
113
+ }, onKeyDown: (e2) => le(e2, false), onContextMenu: (e2) => {
114
+ e2.stopPropagation();
115
+ } }), e(w, { selected: te.findOptions.reverse, onSelectToggle: (e2) => {
116
+ oe(false, false);
117
+ }, touchRippleRef: N, label: "", shortcut: { key: "Enter", modifiers: [k.Shift] }, icon: e(R, { iconKey: te.findOptions.orientation !== b.Orientation.Column ? "ArrowBack" : "ArrowUpward" }), disabled: !te.findText }), e(w, { selected: !te.findOptions.reverse, onSelectToggle: (e2) => {
118
+ oe(true, false);
119
+ }, touchRippleRef: j, label: "Next Match", shortcut: { key: "Enter" }, icon: e(R, { iconKey: te.findOptions.orientation !== b.Orientation.Column ? "ArrowForward" : "ArrowDownward" }), disabled: !te.findText })] }), e(m, { in: Q, timeout: I, onExit: () => {
120
+ L.current?.focus();
121
+ }, children: n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: V, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: te.replaceText ?? "", onChange: (e2) => {
122
+ ie((n2) => {
123
+ const t3 = { ...n2 };
124
+ return t3.replaceText = e2.target.value, t3;
125
+ });
126
+ }, onKeyDown: (e2) => le(e2, true), onContextMenu: (e2) => {
127
+ e2.stopPropagation();
128
+ } }), e(w, { onSelectToggle: (e2) => {
129
+ oe(true, true);
130
+ }, touchRippleRef: H, label: "Replace", shortcut: { key: "Enter" }, icon: e(R, { iconKey: "FindReplace" }), disabled: !te.findText }), e(w, { onSelectToggle: (e2) => {
131
+ oe(true, true, true);
132
+ }, touchRippleRef: z, label: "Replace All", shortcut: { key: "Enter", modifiers: [k.Ctrl, k.Alt] }, icon: e(R, { iconKey: "FindReplaceAll" }), disabled: !te.findText })] }) })] })] }), e(m, { in: q, timeout: I, onExit: () => {
133
+ L.current?.focus();
134
+ }, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(E, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: ae >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(K, { label: "Within", value: te.scope, options: S, onSelect: (e2) => {
135
+ ie((n2) => {
136
+ const t3 = { ...n2 };
137
+ return t3.scope = e2, t3;
138
+ });
139
+ } }), e(K, { label: "Search", value: te.findOptions.orientation !== b.Orientation.Column, options: P, onSelect: (e2) => {
140
+ ie((n2) => {
141
+ const t3 = { ...n2 };
142
+ return t3.findOptions.orientation = e2 ? b.Orientation.Row : b.Orientation.Column, t3;
143
+ });
144
+ } }), e(K, { label: "Look in", value: Q && te.findOptions.fields?.[0] === C.Content.Values ? C.Content.Formulas : te.findOptions.fields?.[0], options: Q ? A : D, onSelect: (e2) => {
145
+ ie((n2) => {
146
+ const t3 = { ...n2 };
147
+ return t3.findOptions.fields = [e2], t3;
148
+ });
149
+ } })] })] }) })] }) });
150
+ });
151
+ export {
152
+ B as FindReplaceWindow,
153
+ S as ScopeOptions,
154
+ B as default
155
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,87 +1,86 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { jsxs as e, jsx as t } from "react/jsx-runtime";
8
- import { Box as i, TextField as n, InputAdornment as r, IconButton as o, FormControlLabel as l, Checkbox as a, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
9
- import { KeyCodes as h } from "@sheetxl/utils-react";
10
- import { toShortcutElements as p, InternalWindow as m } from "@sheetxl/utils-mui";
11
- import u, { useState as g, useMemo as f, useEffect as x } from "react";
12
- import b from "clsx";
13
- import { alpha as w, getOverlayAlpha as y, styled as R } from "@mui/material/styles";
14
- import { Close as C } from "@mui/icons-material";
8
+ import { Box as i, TextField as n, InputAdornment as o, IconButton as r, FormControlLabel as l, Checkbox as a, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
9
+ import { KeyCodes as h, DynamicIcon as p } from "@sheetxl/utils-react";
10
+ import { toShortcutElements as m, InternalWindow as u } from "@sheetxl/utils-mui";
11
+ import g, { useState as f, useMemo as x, useEffect as b } from "react";
12
+ import w from "clsx";
13
+ import { alpha as y, getOverlayAlpha as C, styled as R } from "@mui/material/styles";
15
14
  import { AutoSizer as k, Table as v, Column as $ } from "react-virtualized";
16
15
  import { CommonUtils as D } from "@sheetxl/utils";
17
- const I = "ReactVirtualizedDemo-flexContainer", K = "ReactVirtualizedDemo-tableRow", z = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
18
- class N extends u.PureComponent {
16
+ const K = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", z = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
17
+ class N extends g.PureComponent {
19
18
  constructor() {
20
19
  super(...arguments), this.getRowClassName = ({ index: e2 }) => {
21
20
  const { onRowClick: t2 } = this.props;
22
- return b(K, I, { [z]: -1 !== e2 && null != t2 });
23
- }, this.cellRenderer = ({ cellData: e2, dataKey: i2, columnIndex: n2, width: r2 }) => {
24
- const { columns: o2, rowHeight: l2, onRowClick: a2 } = this.props;
25
- let d2 = e2, c2 = { height: l2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r2}px`, maxWidth: `${r2}px` };
26
- return "shortcut" === i2 ? d2 = p(e2) : "description" === i2 && (c2 = { ...c2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: b(H, I, { [S]: null == a2 }), variant: "body", style: c2, align: null != n2 && o2[n2].numeric ? "right" : "left", children: d2 });
21
+ return w(I, K, { [z]: -1 !== e2 && null != t2 });
22
+ }, this.cellRenderer = ({ cellData: e2, dataKey: i2, columnIndex: n2, width: o2 }) => {
23
+ const { columns: r2, rowHeight: l2, onRowClick: a2 } = this.props;
24
+ let d2 = e2, c2 = { height: l2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${o2}px`, maxWidth: `${o2}px` };
25
+ return "shortcut" === i2 ? d2 = m(e2) : "description" === i2 && (c2 = { ...c2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: w(H, K, { [S]: null == a2 }), variant: "body", style: c2, align: null != n2 && r2[n2].numeric ? "right" : "left", children: d2 });
27
26
  }, this.headerRenderer = ({ label: e2, columnIndex: i2, width: n2 }) => {
28
- const { headerHeight: r2, columns: o2 } = this.props, l2 = o2[i2];
29
- return t(s, { component: "div", className: b(H, I, S), variant: "head", sx: { width: n2, height: r2, backgroundColor: (e3) => e3.palette.grey[300] }, align: l2.numeric ? "right" : "left", children: t("span", { children: l2.label }) });
27
+ const { headerHeight: o2, columns: r2 } = this.props, l2 = r2[i2];
28
+ return t(s, { component: "div", className: w(H, K, S), variant: "head", sx: { width: n2, height: o2, backgroundColor: (e3) => e3.palette.grey[300] }, align: l2.numeric ? "right" : "left", children: t("span", { children: l2.label }) });
30
29
  };
31
30
  }
32
31
  static {
33
32
  this.defaultProps = { headerHeight: 40, rowHeight: 48 };
34
33
  }
35
34
  render() {
36
- const { columns: e2, rowHeight: i2, headerHeight: n2, ...r2 } = this.props;
37
- return t(k, { children: ({ height: o2, width: l2 }) => t(v, { height: o2, width: l2, rowHeight: i2, gridStyle: { direction: "inherit" }, headerHeight: n2, ...r2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: i3, widthLess: n3, ...r3 }, o3) => {
35
+ const { columns: e2, rowHeight: i2, headerHeight: n2, ...o2 } = this.props;
36
+ return t(k, { children: ({ height: r2, width: l2 }) => t(v, { height: r2, width: l2, rowHeight: i2, gridStyle: { direction: "inherit" }, headerHeight: n2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: i3, widthLess: n3, ...o3 }, r3) => {
38
37
  const a2 = n3 ? l2 - n3 : i3;
39
- return t($, { style: { flex: `1 1 ${a2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: a2, columnIndex: o3 }), className: I, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: i4 }) => e4[i4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: a2, columnIndex: o3 }), dataKey: e3, width: a2, ...r3 }, e3);
38
+ return t($, { style: { flex: `1 1 ${a2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: a2, columnIndex: r3 }), className: K, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: i4 }) => e4[i4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: a2, columnIndex: r3 }), dataKey: e3, width: a2, ...o3 }, e3);
40
39
  }) }) });
41
40
  }
42
41
  }
43
- const T = R(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${I}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${K}`]: { cursor: "pointer" }, [`& .${z}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
42
+ const T = R(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${K}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${I}`]: { cursor: "pointer" }, [`& .${z}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
44
43
  function _(s2) {
45
- const { commands: c2, ...p2 } = s2, [m2, u2] = g(false), [b2, R2] = g(""), k2 = f(() => {
44
+ const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [w2, R2] = f(""), k2 = x(() => {
46
45
  let e2 = c2.getAllCommands();
47
- m2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
46
+ u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
48
47
  const t2 = [], i2 = (e3) => e3.replace(/\n\n/g, "\n");
49
48
  for (let n2 = 0; n2 < e2.length; n2++) {
50
- const r2 = e2[n2].command, o2 = r2.shortcut();
51
- if (Array.isArray(o2)) {
52
- const e3 = o2;
53
- for (let n3 = 0; n3 < e3.length; n3++) t2.push({ label: r2.label(), description: i2(r2.description()), shortcut: e3[n3] });
54
- } else t2.push({ label: r2.label(), description: i2(r2.description()), shortcut: r2.shortcut() });
49
+ const o2 = e2[n2].command, r2 = o2.shortcut();
50
+ if (Array.isArray(r2)) {
51
+ const e3 = r2;
52
+ for (let n3 = 0; n3 < e3.length; n3++) t2.push({ label: o2.label(), description: i2(o2.description()), shortcut: e3[n3] });
53
+ } else t2.push({ label: o2.label(), description: i2(o2.description()), shortcut: o2.shortcut() });
55
54
  }
56
55
  return t2;
57
- }, [m2, c2]), [v2, $2] = g(null);
58
- x(() => {
56
+ }, [u2, c2]), [v2, $2] = f(null);
57
+ b(() => {
59
58
  import("fuse.js").then((e2) => {
60
59
  $2(new e2.default(k2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
61
60
  });
62
61
  }, [k2]);
63
- const [I2, K2] = g(k2), z2 = b2.length > 0 && 0 === I2.length;
64
- x(() => {
62
+ const [K2, I2] = f(k2), z2 = w2.length > 0 && 0 === K2.length;
63
+ b(() => {
65
64
  v2 && D.debounce(() => {
66
- if (0 === b2.trim().length) return void K2(k2);
67
- const e2 = v2.search(b2.trim()), t2 = new Array(e2.length);
65
+ if (0 === w2.trim().length) return void I2(k2);
66
+ const e2 = v2.search(w2.trim()), t2 = new Array(e2.length);
68
67
  for (let i2 = 0; i2 < e2.length; i2++) t2[i2] = e2[i2].item;
69
- K2(t2);
68
+ I2(t2);
70
69
  }, 90)();
71
- }, [v2, b2]);
72
- return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...p2, children: [e(i, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(n, { InputProps: { sx: { backgroundImage: `linear-gradient(${w("#fff", y(5))}, ${w("#fff", y(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(r, { sx: { opacity: b2.length > 0 ? 1 : 0, display: b2.length > 0 ? "flex" : "none" }, position: "end", children: t(o, { "aria-label": "clear search", onClick: () => R2(""), edge: "end", children: t(C, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 } }, value: b2, onChange: (e2) => {
70
+ }, [v2, w2]);
71
+ return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(i, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(n, { InputProps: { sx: { backgroundImage: `linear-gradient(${y("#fff", C(5))}, ${y("#fff", C(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(o, { sx: { opacity: w2.length > 0 ? 1 : 0, display: w2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => R2(""), edge: "end", children: t(p, { iconKey: "Close" }) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 } }, value: w2, onChange: (e2) => {
73
72
  R2(e2.target.value);
74
73
  }, onKeyDown: (e2) => {
75
- e2.which === h.Escape && b2.length > 0 && (R2(""), e2.stopPropagation(), e2.preventDefault());
74
+ e2.which === h.Escape && w2.length > 0 && (R2(""), e2.stopPropagation(), e2.preventDefault());
76
75
  }, onContextMenu: (e2) => {
77
76
  e2.stopPropagation();
78
- } }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked: m2, onChange: () => u2(!m2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(i, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", y(5))}, ${w("#fff", y(5))})` } }, children: t(T, { rowCount: I2.length, rowGetter: (e2) => I2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(i, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => z2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === I2.length ? "No" : I2.length} shortcut key${1 === I2.length ? "" : "s"}${b2.length > 0 ? " found" : ""}` }) })] });
77
+ } }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(i, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${y("#fff", C(5))}, ${y("#fff", C(5))})` } }, children: t(T, { rowCount: K2.length, rowGetter: (e2) => K2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(i, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => z2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === K2.length ? "No" : K2.length} shortcut key${1 === K2.length ? "" : "s"}${w2.length > 0 ? " found" : ""}` }) })] });
79
78
  }
80
79
  const P = (e2) => {
81
- const { title: i2 = "Shortcut Keys", commands: n2, sx: r2, ...o2 } = e2;
82
- return t(m, { isModal: true, onKeyDown: (e3) => {
80
+ const { title: i2 = "Shortcut Keys", commands: n2, sx: o2, ...r2 } = e2;
81
+ return t(u, { isModal: true, onKeyDown: (e3) => {
83
82
  e3.keyCode === h.F1 && e3.preventDefault();
84
- }, sx: { width: "780px", ...r2 }, title: i2, autoFocusSel: ".input", ...o2, children: t(c, { dividers: true, children: t(_, { commands: n2, sx: { marginBottom: "8px" } }) }) });
83
+ }, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: n2, sx: { marginBottom: "8px" } }) }) });
85
84
  };
86
85
  export {
87
86
  P 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.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-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.7.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.