@sheetxl/studio-mui 0.7.8 → 0.7.10
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.
- package/browser/cjs/{WN5FOSGC22Jy3dxz.cjs → B-dxazW1OuNBcp02.cjs} +1 -1
- package/browser/cjs/{D9RcTPcL8Gcds6uC.cjs → B-utsUoR4zuLaAhd.cjs} +2 -2
- package/browser/cjs/{D36j1nR6-lEwM7Ht.cjs → B_eAGdji8Nx5J9T4.cjs} +2 -2
- package/browser/cjs/{DQ1bXdi-D0uVKGFA.cjs → BwTLuy_PnmJor7W8.cjs} +2 -2
- package/browser/cjs/CcXAFa-nlR_hdzWz.cjs +20 -0
- package/browser/cjs/{rrppjlxhsrfwBStx.cjs → CqZdJyYmTYFrQaQ2.cjs} +2 -2
- package/browser/cjs/{CJW4-NCdaLzNEwgK.cjs → DLnPNypHwR15SmCU.cjs} +1 -1
- package/browser/cjs/{Q234HX63V75h22HJ.cjs → DZBKNuFYEUx6Effx.cjs} +1 -1
- package/browser/cjs/{UoOVKSpyeYQ3Z04Y.cjs → DiR8AzQV9os4ZYk0.cjs} +7 -7
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DPenF_1mYgI8WaQf.cjs → mMBBa38sCpWqbAas.cjs} +1 -1
- package/browser/cjs/{zFlqPWNVl7CHv7Iw.cjs → pVcTsL-TasyB4b2-.cjs} +1 -1
- package/browser/esm/{wenu-h35nL2_uEZp.mjs → 8BoSui-509azp4_T.mjs} +2 -2
- package/browser/esm/{5Fbp4sZTl6CHhmHk.mjs → BcD_hjx3QUJ3mxc9.mjs} +2 -2
- package/browser/esm/{BD3NSZsAOvF6yczu.mjs → BcUbD_6hNdscDPHH.mjs} +212 -208
- package/browser/esm/{CoIXNZVIp9Q12qM2.mjs → BfjN2uCTh7d2HrDp.mjs} +1 -1
- package/browser/esm/{BiazW77hCkbuJPiW.mjs → BobeGilMvc-Tjglo.mjs} +1 -1
- package/browser/esm/{Cp-QoTwVeQkQClpI.mjs → C6PORxVVmatRwpCK.mjs} +1 -1
- package/browser/esm/{CagpAQXgCxrJrdGJ.mjs → CFbMYRxhxMq4XxOa.mjs} +2 -2
- package/browser/esm/{CUiplQS9rUodJwPi.mjs → D5Y0kqk4q5sYYCML.mjs} +1257 -1242
- package/browser/esm/{Ci4cqU4bR1IUSqrT.mjs → DG5wukgrtP5snHCG.mjs} +1 -1
- package/browser/esm/{Dx4t6SbPV2HSf_ub.mjs → DcO8rsG2l9PJNAV1.mjs} +1 -1
- package/browser/esm/{D7PjwOCMi075qK5G.mjs → DdvY0bLbK9TT-rIs.mjs} +2 -2
- package/browser/esm/index.mjs +72 -69
- package/node/esm/{CYU-oRRhaNiOTVNa.mjs → BNBkIeEbORFqf5jQ.mjs} +1 -1
- package/node/esm/{Cfzjf7vBs29sO_g3.mjs → CEDKrfqPSMDT9wZY.mjs} +1 -1
- package/node/esm/{DmdldJQanZCNdfA5.mjs → Ck5obwB4YN3EaFYQ.mjs} +1 -1
- package/node/esm/{D60xUWK_BS-7PMLM.mjs → CqmV-z1wjbh8jIia.mjs} +42 -38
- package/node/esm/{D1n7HgHfLVQZ0KhP.mjs → DBwzi9m6T7hDldM4.mjs} +1 -1
- package/node/esm/{B21Usvp_sTqMHAZ4.mjs → DHpIxaLHKL41gA1f.mjs} +1 -1
- package/node/esm/{DWhJA7EI9CmoBPDY.mjs → DTNMbcRmISndj_SS.mjs} +1 -1
- package/node/esm/{BAgtosqQwtrUsOYl.mjs → DXwKau3GlIioZkFC.mjs} +1 -1
- package/node/esm/index.mjs +618 -603
- package/node/esm/{GzNLdpzukdCxYbbC.mjs → l8mcLBezFW9dkg5N.mjs} +1 -1
- package/package.json +8 -8
- package/types/index.d.ts +46 -30
- package/browser/cjs/Bt0-HMKtnBRB6IpI.cjs +0 -20
|
@@ -5,7 +5,7 @@ import { Box as S, FormControl as D, TextField as F } from "@mui/material";
|
|
|
5
5
|
import { useCallbackRef as f } from "@sheetxl/utils-react";
|
|
6
6
|
import { OptionsDialog as U } from "@sheetxl/utils-mui";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
@@ -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.
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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 "./
|
|
6
|
+
import { N as A, R as G } from "./D5Y0kqk4q5sYYCML.mjs";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,89 +1,92 @@
|
|
|
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}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._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
3
|
import { DefaultTaskPaneRegistry as n, useModelListener as s, useRangeListener as m } from "@sheetxl/react";
|
|
4
|
-
import {
|
|
4
|
+
import { E as u, Z as r, B as d, O as C, X as B, n as i, o as S, m as p, k, a0 as T, t as P, $ as b, Y as F, a1 as c, D as g, as as y, l as I, a9 as f, s as h, aa as W, h as x, v as M, i as w, a7 as A, F as D, G as E, H as L, L as O, K as R, I as v, M as N, a8 as V, N as z, j as H, P as U, z as G, A as j, R as q, ah as Z, ai as J, a6 as K, aj as Q, q as X, a5 as Y, S as _, Q as $, ae as aa, af as oa, ag as ta, ac as ea, ad as na, ab as sa, w as ma, T as la, f as ua, a2 as ra, a3 as da, a4 as Ca, x as Ba, U as ia, V as Sa, p as pa, y as ka, J as Ta, an as Pa, al as ba, au as Fa, ao as ca, am as ga, W as ya, at as Ia, ar as fa, S as ha, aq as Wa, ak as xa, ap as Ma } from "./D5Y0kqk4q5sYYCML.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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
|
-
|
|
13
|
-
|
|
12
|
+
u as AppearanceCommandButton,
|
|
13
|
+
r as AutoColorPosition,
|
|
14
14
|
d as BorderCommandButton,
|
|
15
15
|
C as BorderPopupButton,
|
|
16
16
|
B as BorderStyleButton,
|
|
17
|
-
i as
|
|
18
|
-
S as
|
|
19
|
-
p as
|
|
20
|
-
k as
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
i as CellsDeleteCommandButton,
|
|
18
|
+
S as CellsFormatCommandButton,
|
|
19
|
+
p as CellsInsertCommandButton,
|
|
20
|
+
k as ClearCommandButton,
|
|
21
|
+
T as ColorButton,
|
|
22
|
+
P as ColorCommandButton,
|
|
23
|
+
b as ColorPanel,
|
|
24
|
+
F as ColorPanelType,
|
|
25
|
+
c as ColorPopupButton,
|
|
23
26
|
n as DefaultTaskPaneRegistry,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
E as HorizontalAlignCommandButton,
|
|
38
|
-
L as InsertCellsCommandButton,
|
|
27
|
+
g as DocThemeCommandButton,
|
|
28
|
+
y as EagerStudio,
|
|
29
|
+
I as FillCommandButton,
|
|
30
|
+
f as FilterColumnMenu,
|
|
31
|
+
h as FilterCommandButton,
|
|
32
|
+
W as Filters,
|
|
33
|
+
x as FindCommandButton,
|
|
34
|
+
M as FontFamilyCommandButton,
|
|
35
|
+
w as FontSizeCommandButton,
|
|
36
|
+
A as FormulaBar,
|
|
37
|
+
D as FreezeCommandButton,
|
|
38
|
+
E as HelpCommandButton,
|
|
39
|
+
L as HorizontalAlignCommandButton,
|
|
39
40
|
O as InsertFunctionCommandPopupButton,
|
|
40
41
|
R as InsertFunctionSumCommandPopupButton,
|
|
41
42
|
v as InsertImageCommandButton,
|
|
42
43
|
t as LicenseManager,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ra as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Pa as
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
ya as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
44
|
+
N as MergeCommandButton,
|
|
45
|
+
V as NamedCollectionEditor,
|
|
46
|
+
z as NamedInput,
|
|
47
|
+
H as NumberFormatCommandButton,
|
|
48
|
+
U as PasteCommandButton,
|
|
49
|
+
G as PresetCellStylesCommandButton,
|
|
50
|
+
j as PresetTableStylesCommandButton,
|
|
51
|
+
q as RangeInput,
|
|
52
|
+
Z as SheetTab,
|
|
53
|
+
J as SheetTabMenu,
|
|
54
|
+
K as SheetZoomScale,
|
|
55
|
+
Q as SheetsAllMenu,
|
|
56
|
+
X as SortFilterCommandButton,
|
|
57
|
+
Y as StatusBar,
|
|
58
|
+
_ as Studio,
|
|
59
|
+
$ as StyledStrokeIcon,
|
|
60
|
+
aa as TableDetailsPanel,
|
|
61
|
+
oa as TableDetailsTaskPane,
|
|
62
|
+
ta as TablePlugin,
|
|
63
|
+
ea as TableStyleCanvasPreview,
|
|
64
|
+
na as TableStyleOptionsPanel,
|
|
65
|
+
sa as TableStylePreview,
|
|
66
|
+
ma as TextEffectsCommandButton,
|
|
67
|
+
la as TextOverflowCommandButton,
|
|
68
|
+
ua as TextRotateCommandButton,
|
|
69
|
+
ra as ThemeSelectButton,
|
|
70
|
+
da as ThemeSelectPanel,
|
|
71
|
+
Ca as ThemeSelectPopupButton,
|
|
72
|
+
Ba as UnderlineCommandButton,
|
|
73
|
+
ia as UndoRedoCommandButton,
|
|
74
|
+
Sa as VerticalAlignCommandButton,
|
|
75
|
+
pa as ViewGridLinesCommandButton,
|
|
76
|
+
ka as ViewHeadingsCommandButton,
|
|
77
|
+
Ta as WalkingCopyCommandButton,
|
|
78
|
+
Pa as WorkbookContextMenu,
|
|
79
|
+
ba as WorkbookElement,
|
|
80
|
+
Fa as WorkbookIO,
|
|
81
|
+
ca as WorkbookStrip,
|
|
82
|
+
ga as WorkbookTitle,
|
|
83
|
+
ya as WorkbookViewCommandButton,
|
|
84
|
+
Ia as _WorkbookIO,
|
|
85
|
+
fa as createGridStyleFromMUITheme,
|
|
86
|
+
ha as default,
|
|
87
|
+
Wa as defaultNewWorkbook,
|
|
88
|
+
xa as setPrintExamplesOnLoad,
|
|
86
89
|
s as useModelListener,
|
|
87
90
|
m as useRangeListener,
|
|
88
|
-
|
|
91
|
+
Ma as useWorkbookCommands
|
|
89
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
@@ -8,24 +8,28 @@ import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
|
8
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
9
|
import { KeyCodes as h, DynamicIcon as p } from "@sheetxl/utils-react";
|
|
10
10
|
import { toShortcutElements as m, InternalWindow as u } from "@sheetxl/utils-mui";
|
|
11
|
-
import g, { useState as f, useMemo as x, useEffect as
|
|
12
|
-
import
|
|
13
|
-
import { alpha as
|
|
14
|
-
import { AutoSizer as
|
|
11
|
+
import g, { useState as f, useMemo as x, useEffect as y } from "react";
|
|
12
|
+
import b from "clsx";
|
|
13
|
+
import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles";
|
|
14
|
+
import { AutoSizer as v, Table as k, Column as $ } from "react-virtualized";
|
|
15
15
|
import { CommonUtils as D } from "@sheetxl/utils";
|
|
16
16
|
const K = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", z = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
|
|
17
17
|
class N extends g.PureComponent {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
20
20
|
const { onRowClick: t2 } = this.props;
|
|
21
|
-
return
|
|
22
|
-
}, this.cellRenderer = ({ cellData:
|
|
23
|
-
const { columns:
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
return b(I, K, { [z]: -1 !== e2 && null != t2 });
|
|
22
|
+
}, this.cellRenderer = ({ cellData: i2, rowData: n2, dataKey: o2, columnIndex: r2, width: l2 }) => {
|
|
23
|
+
const { columns: a2, rowHeight: d2, onRowClick: c2 } = this.props;
|
|
24
|
+
let h2 = i2, u2 = { height: d2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${l2}px`, maxWidth: `${l2}px` };
|
|
25
|
+
if ("shortcut" === o2 ? h2 = m(i2) : "description" === o2 && (u2 = { ...u2, fontSize: ".75rem", display: "block", paddingTop: "4px", paddingRight: "8px", whiteSpace: "pre-line" }), "label" === o2) {
|
|
26
|
+
let o3 = n2.icon;
|
|
27
|
+
o3 && "string" != typeof o3 || (o3 = t(p, { iconKey: o3 })), h2 = e("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [o3, i2] });
|
|
28
|
+
}
|
|
29
|
+
return t(s, { component: "div", className: b(H, K, { [S]: null == c2 }), variant: "body", style: u2, align: null != r2 && a2[r2].numeric ? "right" : "left", children: h2 });
|
|
30
|
+
}, this.headerRenderer = ({ label: e2, columnIndex: i2, dataKey: n2, width: o2 }) => {
|
|
31
|
+
const { headerHeight: r2, columns: l2 } = this.props, a2 = l2[i2];
|
|
32
|
+
return t(s, { component: "div", className: b(H, K, S), variant: "head", sx: { width: o2, height: r2, paddingLeft: "label" === n2 ? "calc(16px + 8px + var(--icon-size, 1rem))" : void 0, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("div", { children: a2.label }) });
|
|
29
33
|
};
|
|
30
34
|
}
|
|
31
35
|
static {
|
|
@@ -33,55 +37,55 @@ class N extends g.PureComponent {
|
|
|
33
37
|
}
|
|
34
38
|
render() {
|
|
35
39
|
const { columns: e2, rowHeight: i2, headerHeight: n2, ...o2 } = this.props;
|
|
36
|
-
return t(
|
|
40
|
+
return t(v, { children: ({ height: r2, width: l2 }) => t(k, { 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) => {
|
|
37
41
|
const a2 = n3 ? l2 - n3 : i3;
|
|
38
42
|
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);
|
|
39
43
|
}) }) });
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
|
-
const T =
|
|
46
|
+
const T = C(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" } }));
|
|
43
47
|
function _(s2) {
|
|
44
|
-
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [
|
|
48
|
+
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [b2, C2] = f(""), v2 = x(() => {
|
|
45
49
|
let e2 = c2.getAllCommands();
|
|
46
50
|
u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
|
|
47
|
-
const t2 = [], i2 = (e3) => e3.replace(/\n\n/g, "\n");
|
|
48
|
-
for (let
|
|
49
|
-
const
|
|
51
|
+
const t2 = [], i2 = (e3) => e3.replace(/\n\n/g, "\n"), n2 = e2.length;
|
|
52
|
+
for (let o2 = 0; o2 < n2; o2++) {
|
|
53
|
+
const n3 = e2[o2].command, r2 = n3.shortcut();
|
|
50
54
|
if (Array.isArray(r2)) {
|
|
51
|
-
const e3 = r2;
|
|
52
|
-
for (let
|
|
53
|
-
} else t2.push({ label:
|
|
55
|
+
const e3 = r2, o3 = e3.length;
|
|
56
|
+
for (let r3 = 0; r3 < o3; r3++) t2.push({ label: n3.label(), icon: n3.icon(), description: i2(n3.description()), shortcut: e3[r3] });
|
|
57
|
+
} else t2.push({ label: n3.label(), icon: n3.icon(), description: i2(n3.description()), shortcut: n3.shortcut() });
|
|
54
58
|
}
|
|
55
59
|
return t2;
|
|
56
|
-
}, [u2, c2]), [
|
|
57
|
-
|
|
60
|
+
}, [u2, c2]), [k2, $2] = f(null);
|
|
61
|
+
y(() => {
|
|
58
62
|
import("fuse.js").then((e2) => {
|
|
59
|
-
$2(new e2.default(
|
|
63
|
+
$2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
60
64
|
});
|
|
61
|
-
}, [
|
|
62
|
-
const [K2, I2] = f(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (0 ===
|
|
66
|
-
const e2 =
|
|
65
|
+
}, [v2]);
|
|
66
|
+
const [K2, I2] = f(v2), z2 = b2.length > 0 && 0 === K2.length;
|
|
67
|
+
y(() => {
|
|
68
|
+
k2 && D.debounce(() => {
|
|
69
|
+
if (0 === b2.trim().length) return void I2(v2);
|
|
70
|
+
const e2 = k2.search(b2.trim()), t2 = new Array(e2.length);
|
|
67
71
|
for (let i2 = 0; i2 < e2.length; i2++) t2[i2] = e2[i2].item;
|
|
68
72
|
I2(t2);
|
|
69
73
|
}, 90)();
|
|
70
|
-
}, [
|
|
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, { slotProps: { input: { sx: { backgroundImage: `linear-gradient(${
|
|
72
|
-
|
|
74
|
+
}, [k2, b2]);
|
|
75
|
+
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, { slotProps: { input: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, endAdornment: t(o, { sx: { opacity: b2.length > 0 ? 1 : 0, display: b2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(p, { iconKey: "Close" }) }) }) }, htmlInput: { 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) } } }, 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) => {
|
|
76
|
+
C2(e2.target.value);
|
|
73
77
|
}, onKeyDown: (e2) => {
|
|
74
|
-
e2.which === h.Escape &&
|
|
78
|
+
e2.which === h.Escape && b2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
75
79
|
}, onContextMenu: (e2) => {
|
|
76
80
|
e2.stopPropagation();
|
|
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(${
|
|
81
|
+
} }), 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(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: K2.length, rowGetter: (e2) => K2[e2.index], columns: [{ width: 214, label: "Command", dataKey: "label" }, { width: 226, label: "Key Binding", dataKey: "shortcut" }, { label: "Description", dataKey: "description", widthLess: 453 }] }) }), 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"}${b2.length > 0 ? " found" : ""}` }) })] });
|
|
78
82
|
}
|
|
79
|
-
const
|
|
83
|
+
const L = (e2) => {
|
|
80
84
|
const { title: i2 = "Shortcut Keys", commands: n2, sx: o2, ...r2 } = e2;
|
|
81
85
|
return t(u, { isModal: true, onKeyDown: (e3) => {
|
|
82
86
|
e3.keyCode === h.F1 && e3.preventDefault();
|
|
83
87
|
}, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: n2, sx: { marginBottom: "8px" } }) }) });
|
|
84
88
|
};
|
|
85
89
|
export {
|
|
86
|
-
|
|
90
|
+
L as default
|
|
87
91
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.10
|
|
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.
|