@sheetxl/studio-mui 0.7.6 → 0.7.7
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/LICENSE.md +1 -1
- package/browser/cjs/BCf8BQb2c8ANexW4.cjs +7 -0
- package/browser/cjs/BJ4pZo7s81ynDlzw.cjs +6 -0
- package/browser/cjs/{-u6vWH9DiYlO1rsa.cjs → Bf70UQlMT3b0NoOZ.cjs} +1 -1
- package/browser/cjs/Bpq9GrV7al7xxJ_d.cjs +6 -0
- package/browser/cjs/BxlQ6aLh5_jUvk9w.cjs +20 -0
- package/browser/cjs/{DefYX_aeMZivbpEt.cjs → CJSNNa8ySxzuEmoy.cjs} +2 -2
- package/browser/cjs/{Ce6JLd3qejgMgM3r.cjs → CUND2W1xMwqPOHwD.cjs} +3 -3
- package/browser/cjs/{7MV1n9Y0yXU0hKpM.cjs → Cg95aBJ4kuUq7jrz.cjs} +1 -1
- package/browser/cjs/Dcoq8P2O8-40waHl.cjs +6 -0
- package/browser/cjs/{B8-dSgXI2XZKFvtp.cjs → DeoOsY5TkIAydt9W.cjs} +2 -2
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{BdNRaXTgqRzPmg0L.cjs → j0lD5RrJ86CRlUNT.cjs} +2 -2
- package/browser/esm/{BnVbG5kg41edf8oz.mjs → 7tCRjNmDM5kf3BFa.mjs} +2 -2
- package/browser/esm/{Dg_NRblGOcetqhnC.mjs → BWxmPJd4f8qZMxaa.mjs} +4 -4
- package/browser/esm/{YfJJd16cfjuXpb8G.mjs → BbHGWXif6ytyfyHI.mjs} +1 -1
- package/browser/esm/{yQgfM4ehXrfnEoUK.mjs → BkhHyCmy1MwVFS1b.mjs} +2 -2
- package/browser/esm/{DVSjscO7zuDsOD4v.mjs → Bo3cXzeDcP_Q9YvX.mjs} +2 -2
- package/browser/esm/CRDu7VFAa8NGcoHj.mjs +49 -0
- package/browser/esm/{nwvZlIH9rheqctQz.mjs → Cd02kMBZDsozIA98.mjs} +12 -12
- package/browser/esm/CzdBzjYgP1i3pkPL.mjs +4455 -0
- package/browser/esm/DFppS_p4spncePDm.mjs +156 -0
- package/browser/esm/{miaBr4cu9WKLs8Is.mjs → db-2uDA7mYS4QpHj.mjs} +1 -1
- package/browser/esm/index.mjs +38 -37
- package/browser/esm/{CKLhWrNo1E4r3pG7.mjs → nzc1811Pk5-sKDu5.mjs} +7 -7
- package/licenses/dependencies.txt +75 -108
- package/node/assets/style.css +1 -1
- package/node/esm/BVKo3uc0IreLNkkN.mjs +157 -0
- package/node/esm/{Dln5o1FP_HWPs0Uf.mjs → BfnEq4EhLf8jJ0Gp.mjs} +1 -1
- package/node/esm/{CxbA2L1Ap9NSJcxm.mjs → BgR1PWucIb0Zucr4.mjs} +1 -1
- package/node/esm/{B9TRK2jd_Ki2RifT.mjs → BimlBylqyslj9fNg.mjs} +1 -1
- package/node/esm/{BTp8XtWh47Y1g1MM.mjs → BnGsbrQwjcaUFAdt.mjs} +13 -13
- package/node/esm/{CNCYE_ff8SnJJMPN.mjs → CQhaL28vV1X6Xt2N.mjs} +4 -4
- package/node/esm/{qpKmKMfv4DDofXKf.mjs → DB2ryaj4_Y8Lgyy_.mjs} +1 -1
- package/node/esm/{COoX8Ir66wNuWJ_m.mjs → X3qO0PKREgY9FMZU.mjs} +8 -8
- package/node/esm/index.mjs +1308 -1262
- package/node/esm/{CN79Z_qqLiF3V5r0.mjs → rOozeXREjiU8jjPd.mjs} +14 -14
- package/package.json +15 -16
- package/types/index.d.ts +17 -7
- package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +0 -20
- package/browser/cjs/BEmcHbiMOFhIa91S.cjs +0 -6
- package/browser/cjs/D7AH724IJJvos02e.cjs +0 -7
- package/browser/cjs/KOj1qev47_vzzRFV.cjs +0 -6
- package/browser/cjs/St8H4B5iT2fsqOb7.cjs +0 -6
- package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +0 -6
- package/browser/esm/BNxVvFkY3b2mERJf.mjs +0 -64
- package/browser/esm/CJsYe8TqU6tqj4UH.mjs +0 -154
- package/browser/esm/DdLujAMc-Cefddif.mjs +0 -49
- package/browser/esm/beUKtp_qQMnuYcVk.mjs +0 -4452
- package/node/esm/BcB8nCbI5HW5jv5q.mjs +0 -65
- package/node/esm/C5WzmLTAphEQU3CU.mjs +0 -155
|
@@ -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.7
|
|
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.
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
import { jsx as t } from "react/jsx-runtime";
|
|
8
8
|
import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
|
|
9
9
|
import { alpha as i, getOverlayAlpha as s } from "@mui/material/styles";
|
|
10
|
-
import { Box as l, FormControl as r, TextField as
|
|
11
|
-
import { useCallbackRef as
|
|
10
|
+
import { Box as l, FormControl as r, TextField as c } from "@mui/material";
|
|
11
|
+
import { useCallbackRef as p } from "@sheetxl/utils-react";
|
|
12
12
|
import { OptionsDialog as m } from "@sheetxl/utils-mui";
|
|
13
13
|
const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
14
|
-
const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...
|
|
14
|
+
const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...T } = n2, k = o(() => {
|
|
15
15
|
const t2 = d2 ?? f?.()?.getComments();
|
|
16
16
|
let n3 = "";
|
|
17
17
|
if (t2 && t2.content && t2.content.runs) {
|
|
@@ -22,8 +22,8 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
return n3;
|
|
25
|
-
}, []), [
|
|
26
|
-
const n3 = "" ===
|
|
25
|
+
}, []), [v, b] = e(k), [D, I] = e(false), P = a(async (t2, n3) => null, []), B = p(async (t2) => {
|
|
26
|
+
const n3 = "" === v ? [] : v.split("\n");
|
|
27
27
|
if (t2 !== w) {
|
|
28
28
|
const t3 = [];
|
|
29
29
|
for (let o3 = 0; o3 < n3.length; o3++) t3.push({ text: n3[o3] });
|
|
@@ -31,19 +31,19 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
|
31
31
|
g?.(o2);
|
|
32
32
|
}
|
|
33
33
|
x?.(t2, t2 === w, t2 === y), C?.();
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
}, [h]), M =
|
|
34
|
+
}, [v, g, C, x, y, w]), E = p((t2) => {
|
|
35
|
+
b(t2.target.value), P(t2.target.value, null);
|
|
36
|
+
}, [h]), M = p(async (t2) => {
|
|
37
37
|
let n3 = await Promise.resolve(h?.(t2));
|
|
38
38
|
try {
|
|
39
|
-
false !== n3 && (n3 = await
|
|
39
|
+
false !== n3 && (n3 = await P(v, t2));
|
|
40
40
|
} catch (t3) {
|
|
41
41
|
}
|
|
42
42
|
return n3 ?? true;
|
|
43
|
-
}, [h,
|
|
44
|
-
return t(m, { title: (
|
|
45
|
-
|
|
46
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } },
|
|
43
|
+
}, [h, v]);
|
|
44
|
+
return t(m, { title: (k ? "Edit" : "Insert") + " Comments", options: O, onDone: C, onOption: (t2) => B(t2), onValidateOption: M, defaultOption: y, cancelOption: w, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...T, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t2) => {
|
|
45
|
+
D || t2.target?.select(), I(true);
|
|
46
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", s(5))}, ${i("#fff", s(5))})` } } }, value: v, onChange: E, onContextMenu: (t2) => {
|
|
47
47
|
t2.stopPropagation();
|
|
48
48
|
} }) }) }) });
|
|
49
49
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-mui",
|
|
3
3
|
"description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.7",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -48,37 +48,36 @@
|
|
|
48
48
|
"charting"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sheetxl/grid-react": "^0.7.
|
|
52
|
-
"@sheetxl/io": "^0.7.
|
|
53
|
-
"@sheetxl/react": "^0.7.
|
|
54
|
-
"@sheetxl/sdk": "^0.7.
|
|
55
|
-
"@sheetxl/utils": "^0.7.
|
|
56
|
-
"@sheetxl/utils-mui": "^0.7.
|
|
57
|
-
"@sheetxl/utils-react": "^0.7.
|
|
51
|
+
"@sheetxl/grid-react": "^0.7.7",
|
|
52
|
+
"@sheetxl/io": "^0.7.7",
|
|
53
|
+
"@sheetxl/react": "^0.7.7",
|
|
54
|
+
"@sheetxl/sdk": "^0.7.7",
|
|
55
|
+
"@sheetxl/utils": "^0.7.7",
|
|
56
|
+
"@sheetxl/utils-mui": "^0.7.7",
|
|
57
|
+
"@sheetxl/utils-react": "^0.7.7",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"csstype": "^3.1.3",
|
|
60
60
|
"file-saver": "^2.0.5",
|
|
61
61
|
"fuse.js": "^7.0.0",
|
|
62
62
|
"notistack": "^3.0.1",
|
|
63
63
|
"react-color": "^2.19.3",
|
|
64
|
-
"react-
|
|
65
|
-
"react-hook-form": "^7.54.2",
|
|
64
|
+
"react-hook-form": "^7.63.0",
|
|
66
65
|
"react-merge-refs": "^3.0.2",
|
|
67
66
|
"react-resizable": "^3.0.5",
|
|
68
67
|
"react-transition-group": "^4.4.5",
|
|
69
68
|
"react-use": "^17.6.0",
|
|
70
69
|
"react-virtualized": "^9.22.6",
|
|
71
|
-
"rooks": "^9.0
|
|
70
|
+
"rooks": "^9.3.0",
|
|
72
71
|
"tinycolor2": "^1.6.0"
|
|
73
72
|
},
|
|
74
73
|
"peerDependencies": {
|
|
75
74
|
"@emotion/cache": "^11.14.0",
|
|
76
75
|
"@emotion/react": "^11.14.0",
|
|
77
76
|
"@emotion/styled": "^11.14.0",
|
|
78
|
-
"@mui/material": "^
|
|
79
|
-
"@mui/styled-engine": "^
|
|
80
|
-
"@mui/system": "^
|
|
81
|
-
"@mui/utils": "^
|
|
77
|
+
"@mui/material": "^7.3.2",
|
|
78
|
+
"@mui/styled-engine": "^7.3.2",
|
|
79
|
+
"@mui/system": "^7.3.2",
|
|
80
|
+
"@mui/utils": "^7.3.2",
|
|
82
81
|
"react": "^19.1.0",
|
|
83
82
|
"react-dom": "^19.1.0"
|
|
84
83
|
},
|
|
@@ -86,6 +85,6 @@
|
|
|
86
85
|
"@types/file-saver": "^2.0.5",
|
|
87
86
|
"@types/react-resizable": "^3.0.8",
|
|
88
87
|
"@types/react-transition-group": "^4.4.6",
|
|
89
|
-
"@types/react-virtualized": "^9.22.
|
|
88
|
+
"@types/react-virtualized": "^9.22.3"
|
|
90
89
|
}
|
|
91
90
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -795,6 +795,7 @@ export declare interface PresetTableStylesCommandButtonProps extends CommandPopu
|
|
|
795
795
|
onSelectTableStyleName?: (styleName: string) => void;
|
|
796
796
|
bodyStyle?: GridSurfaceStyle;
|
|
797
797
|
usePreviewIcon?: boolean;
|
|
798
|
+
disabledQuickKey?: boolean;
|
|
798
799
|
}
|
|
799
800
|
|
|
800
801
|
/**
|
|
@@ -1107,6 +1108,19 @@ declare interface SwatchProps extends default_2.HTMLAttributes<HTMLElement> {
|
|
|
1107
1108
|
darkMode?: boolean;
|
|
1108
1109
|
}
|
|
1109
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* TODO
|
|
1113
|
+
* - save last searches (up/down arrow to navigate) (in preferences/workbook?)
|
|
1114
|
+
* - later add indexing so we can do real-time search and count
|
|
1115
|
+
*/
|
|
1116
|
+
export declare const TableDetailsPanel: default_2.NamedExoticComponent<TableDetailsPanelProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1117
|
+
|
|
1118
|
+
export declare interface TableDetailsPanelProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
1119
|
+
command?: ICommand<ITable, CommandContext.Table>;
|
|
1120
|
+
commands: ICommands.IGroup;
|
|
1121
|
+
context?: CommandContext.Table;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1110
1124
|
/**
|
|
1111
1125
|
* This is a way to canvas based TableStylePreview. It has a simple rendering but is lightweight.
|
|
1112
1126
|
*/
|
|
@@ -1143,7 +1157,7 @@ export declare interface TableStyleOptionsElement extends TableStyleOptionsAttri
|
|
|
1143
1157
|
* Shows options with tables.
|
|
1144
1158
|
* TODO - We will later also have the options as commands.
|
|
1145
1159
|
*/
|
|
1146
|
-
export declare const TableStyleOptionsPanel: default_2.
|
|
1160
|
+
export declare const TableStyleOptionsPanel: default_2.NamedExoticComponent<TableStyleOptionsPanelProps & default_2.RefAttributes<TableStyleOptionsElement>>;
|
|
1147
1161
|
|
|
1148
1162
|
/**
|
|
1149
1163
|
* This is a panel that is used to configure options for a table.
|
|
@@ -1507,10 +1521,6 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1507
1521
|
* Allow for customizations on loading panel.
|
|
1508
1522
|
*/
|
|
1509
1523
|
sheetProps?: SheetProps;
|
|
1510
|
-
/**
|
|
1511
|
-
* Allows users to Wrap stage children in Top level Context
|
|
1512
|
-
*/
|
|
1513
|
-
sheetWrapper?: (children: default_2.ReactNode) => default_2.ReactElement;
|
|
1514
1524
|
/**
|
|
1515
1525
|
* Render custom ISheetElement.
|
|
1516
1526
|
* @param props
|
|
@@ -1518,9 +1528,9 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1518
1528
|
*/
|
|
1519
1529
|
renderSheet?: (props: SheetProps) => default_2.ReactElement;
|
|
1520
1530
|
/**
|
|
1521
|
-
*
|
|
1531
|
+
* Allows users to Wrap stage children in Top level Context
|
|
1522
1532
|
*/
|
|
1523
|
-
|
|
1533
|
+
mainWrapper?: (children: default_2.ReactNode) => default_2.ReactElement;
|
|
1524
1534
|
/**
|
|
1525
1535
|
* Show the horizontal scrollbar
|
|
1526
1536
|
*/
|