@sheetxl/studio-mui 0.4.20 → 0.4.22
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/2d2J6QkipnGWfI99.cjs +6 -0
- package/browser/cjs/BY09bxecVOSMwQA3.cjs +6 -0
- package/browser/cjs/BYJI3FMxQ-z5UGsU.cjs +6 -0
- package/browser/cjs/B_nvuo0kEXu5G0Gf.cjs +7 -0
- package/browser/cjs/BfnxiVEhzO5reOYH.cjs +42 -0
- package/browser/cjs/Bil3fXnJ3lk7aGF5.cjs +6 -0
- package/browser/cjs/{DItuuqkIamMzp7Im.cjs → BzbKSVugPof6dqQI.cjs} +1 -1
- package/browser/cjs/CU0utErelA1oX0n8.cjs +6 -0
- package/browser/cjs/CWp8_mrz0htdOXMM.cjs +20 -0
- package/browser/cjs/D2Cp7gwb6bRupSZY.cjs +6 -0
- package/browser/cjs/DC70SHoaPVkOUEHx.cjs +6 -0
- package/browser/cjs/DRUx3PLS_NrkJ6Yw.cjs +18 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/-0XEuwqNVFTlDKEX.mjs +25 -0
- package/browser/esm/-AR3L_VjwMbtQVbL.mjs +62 -0
- package/browser/esm/BLhZj1SgWlsmeviw.mjs +4443 -0
- package/browser/esm/{BW3_mz5_8i9VLBYB.mjs → BXNl9EEQzO53Hoh5.mjs} +87 -85
- package/browser/esm/BqnVpwK0Q2fKGA2S.mjs +53 -0
- package/browser/esm/D4rFOqwrrtVMpgbc.mjs +49 -0
- package/browser/esm/DEbllEGmvtLkCug_.mjs +2156 -0
- package/browser/esm/{C60ZnLCvtztDLuoT.mjs → DXRFs7VZM4IShMju.mjs} +100 -98
- package/browser/esm/{C5xUbwpUPDeNua-i.mjs → DeGATuYv4-5bhQcD.mjs} +1 -1
- package/browser/esm/{5u-JEG1IfQBstjq0.mjs → EMqbYi0X_krk5yOL.mjs} +11 -10
- package/browser/esm/fWsCG2WBM3kCpC5p.mjs +46 -0
- package/browser/esm/index.mjs +29 -29
- package/browser/esm/{CxXpPYi4eOFhBNt2.mjs → pARZF2O230qNvxWd.mjs} +27 -26
- package/licenses/dependencies.txt +0 -271
- package/node/esm/{D6A_o47zvz5ITIJK.mjs → 0JTY0jNrXiIiOqWY.mjs} +79 -78
- package/node/esm/{Ds5dinNcyNdC8ta6.mjs → BqQ6JNhQ1K321g9U.mjs} +13 -11
- package/node/esm/{CrDbLKJh9omVo_TF.mjs → Bu58psaOsDy_zPOJ.mjs} +29 -28
- package/node/esm/BzBHqe1ThbCP-l_d.mjs +88 -0
- package/node/esm/CE_I2ijQF8MeexHD.mjs +63 -0
- package/node/esm/{Bv12-Yyv0C86Iquy.mjs → CuomeW-4DDc1ywFW.mjs} +7 -6
- package/node/esm/DRt8kMDuCJn53CIE.mjs +46 -0
- package/node/esm/{CH6p2H0CMCoz4NgJ.mjs → DgHCTCARk1Gv_msN.mjs} +23 -22
- package/node/esm/{Bn5TJPQAEMY-lGpF.mjs → Do7y7aKPA48-93AV.mjs} +4 -3
- package/node/esm/{rlqvGCJlj4a2UcSM.mjs → X11ONmg6R1Y6hfue.mjs} +11 -10
- package/node/esm/index.mjs +2381 -18514
- package/package.json +8 -8
- package/browser/cjs/-Z37a-mzY5SKXy--.cjs +0 -6
- package/browser/cjs/B384kb1_rsiCsdZG.cjs +0 -6
- package/browser/cjs/B8nWvy4zDv1CZsr_.cjs +0 -110
- package/browser/cjs/BBnMJiXp9lru0Rcq.cjs +0 -6
- package/browser/cjs/BFbHTu65n1oE-l0N.cjs +0 -6
- package/browser/cjs/BQMSHnQdWtqeakER.cjs +0 -6
- package/browser/cjs/BvjA0ybox6653eb5.cjs +0 -6
- package/browser/cjs/Cocgl4ghzWE9yVYS.cjs +0 -161
- package/browser/cjs/D21Q1NdM1zQ7uFlH.cjs +0 -6
- package/browser/cjs/D4LmaKqYiwjxp0Hs.cjs +0 -15
- package/browser/cjs/D6egUillMqBwTaEq.cjs +0 -6
- package/browser/cjs/D9lY6pd9tRxPeLKs.cjs +0 -18
- package/browser/cjs/DNqIYSqRYZkUpFxW.cjs +0 -7
- package/browser/cjs/DUImSlPsM-OipgBZ.cjs +0 -6
- package/browser/cjs/DUVLcBcwkTsuLb6q.cjs +0 -6
- package/browser/cjs/Db7IyKXFzo8IocDa.cjs +0 -145
- package/browser/cjs/DsHPj69dMFG09uD_.cjs +0 -16
- package/browser/cjs/DypblOPNMRx5Twgx.cjs +0 -12
- package/browser/cjs/QK7YNBstmN86K-xL.cjs +0 -6
- package/browser/cjs/VNWvn2kP6ZF0Snzw.cjs +0 -11
- package/browser/cjs/dc1YAArM3bSHvRcF.cjs +0 -7
- package/browser/cjs/mInXvB8P6r6q7pRY.cjs +0 -11
- package/browser/cjs/nop6N-Oi_LKy1Bpc.cjs +0 -42
- package/browser/cjs/s45oNHeIvJVeRjn5.cjs +0 -6
- package/browser/esm/1y10o01h14oGJtKG.mjs +0 -43
- package/browser/esm/BFpc8KBa-fb0nLSt.mjs +0 -46
- package/browser/esm/Bmjhrc6YMmfx_1Yi.mjs +0 -1703
- package/browser/esm/BnlJVFlQeWerd3KW.mjs +0 -3803
- package/browser/esm/BpuH_QvBidPOXgAR.mjs +0 -392
- package/browser/esm/CAiWSkkPRgUjk8CN.mjs +0 -424
- package/browser/esm/CW8taieVozHhyBOC.mjs +0 -1467
- package/browser/esm/CzyEerZmfWrW3i3U.mjs +0 -59
- package/browser/esm/D0FBHwm0Oz_wf0tR.mjs +0 -12
- package/browser/esm/DM9GPrZpbCcKOnyU.mjs +0 -1352
- package/browser/esm/DO1doKZhwYiL7vbF.mjs +0 -1672
- package/browser/esm/DS3anstzAV3EJBRw.mjs +0 -84
- package/browser/esm/DuEmdSQsXlkCWZIB.mjs +0 -1366
- package/browser/esm/FvK-pQsicRjtrKoS.mjs +0 -48
- package/browser/esm/KCTJzQeDChqf1yBO.mjs +0 -52
- package/browser/esm/P-3pIbidOtRCNsw3.mjs +0 -23
- package/browser/esm/W3EFMOPLR1aNXWvF.mjs +0 -2250
- package/browser/esm/Z_Sh-N3xHHWLCbEw.mjs +0 -23412
- package/browser/esm/mOmzoYDWAtgYndCA.mjs +0 -13391
- package/browser/esm/tnJECoiQzUzgUQZE.mjs +0 -44
- package/node/esm/54SjtcD6mOreKcCy.mjs +0 -1719
- package/node/esm/B2BlMiDOVpIp1FDQ.mjs +0 -1706
- package/node/esm/BNEvR1srnnwBgnrF.mjs +0 -1479
- package/node/esm/BZ20_F64yjZgn-_G.mjs +0 -1246
- package/node/esm/BfzRLuswtxg9uDsX.mjs +0 -78
- package/node/esm/C0ZBbkFa-24tJTnw.mjs +0 -60
- package/node/esm/CEVO60fX3MAPG0Hg.mjs +0 -1378
- package/node/esm/CdFmhVFplZFgBvTo.mjs +0 -44
- package/node/esm/Cx4mn0YEVkG-M1VL.mjs +0 -553
- package/node/esm/DDWek3aquTe_okr_.mjs +0 -392
- package/node/esm/DSLWcwr4qgHARs36.mjs +0 -13464
- package/node/esm/iXG86MN0JrtJkpqe.mjs +0 -44
- package/node/esm/m2teXjBzZLfLDFPx.mjs +0 -46
- package/node/esm/oykDy4erHC0NNHHq.mjs +0 -3776
- package/node/esm/sVOd1y3oNBREsKJ7.mjs +0 -86
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.20
|
|
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 { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { Box as n, TextField as i, InputAdornment as o, IconButton as r, FormControlLabel as a, Checkbox as l, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
|
|
9
|
-
import { m as h, T as p, n as m, z as u } from "./index.mjs";
|
|
10
|
-
import g, { useState as f, useMemo as x, useEffect as b } from "react";
|
|
11
|
-
import w from "clsx";
|
|
12
|
-
import { alpha as y, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
|
|
13
|
-
import { Close as k } from "@mui/icons-material";
|
|
14
|
-
import { AutoSizer as v, Table as $, Column as D } from "react-virtualized";
|
|
15
|
-
const z = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", K = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
|
|
16
|
-
class N extends g.PureComponent {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
19
|
-
const { onRowClick: t2 } = this.props;
|
|
20
|
-
return w(I, z, { [K]: -1 !== e2 && null != t2 });
|
|
21
|
-
}, this.cellRenderer = ({ cellData: e2, dataKey: n2, columnIndex: i2, width: o2 }) => {
|
|
22
|
-
const { columns: r2, rowHeight: a2, onRowClick: l2 } = this.props;
|
|
23
|
-
let d2 = e2, c2 = { height: a2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${o2}px`, maxWidth: `${o2}px` };
|
|
24
|
-
return "shortcut" === n2 ? d2 = m(e2) : "description" === n2 && (c2 = { ...c2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: w(H, z, { [S]: null == l2 }), variant: "body", style: c2, align: null != i2 && r2[i2].numeric ? "right" : "left", children: d2 });
|
|
25
|
-
}, this.headerRenderer = ({ label: e2, columnIndex: n2, width: i2 }) => {
|
|
26
|
-
const { headerHeight: o2, columns: r2 } = this.props, a2 = r2[n2];
|
|
27
|
-
return t(s, { component: "div", className: w(H, z, S), variant: "head", sx: { width: i2, height: o2, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("span", { children: a2.label }) });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static {
|
|
31
|
-
this.defaultProps = { headerHeight: 40, rowHeight: 48 };
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const { columns: e2, rowHeight: n2, headerHeight: i2, ...o2 } = this.props;
|
|
35
|
-
return t(v, { children: ({ height: r2, width: a2 }) => t($, { height: r2, width: a2, rowHeight: n2, gridStyle: { direction: "inherit" }, headerHeight: i2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: n3, widthLess: i3, ...o3 }, r3) => {
|
|
36
|
-
const l2 = i3 ? a2 - i3 : n3;
|
|
37
|
-
return t(D, { style: { flex: `1 1 ${l2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: l2, columnIndex: r3 }), className: z, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: n4 }) => e4[n4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: l2, columnIndex: r3 }), dataKey: e3, width: l2, ...o3 }, e3);
|
|
38
|
-
}) }) });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
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" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${I}`]: { cursor: "pointer" }, [`& .${K}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
|
|
42
|
-
function _(s2) {
|
|
43
|
-
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [w2, C2] = f(""), v2 = x(() => {
|
|
44
|
-
let e2 = c2.getAllCommands();
|
|
45
|
-
u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
|
|
46
|
-
const t2 = [], n2 = (e3) => e3.replace(/\n\n/g, "\n");
|
|
47
|
-
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
48
|
-
const o2 = e2[i2].command, r2 = o2.shortcut();
|
|
49
|
-
if (Array.isArray(r2)) {
|
|
50
|
-
const e3 = r2;
|
|
51
|
-
for (let i3 = 0; i3 < e3.length; i3++) t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: e3[i3] });
|
|
52
|
-
} else t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: o2.shortcut() });
|
|
53
|
-
}
|
|
54
|
-
return t2;
|
|
55
|
-
}, [u2, c2]), [$2, D2] = f(null);
|
|
56
|
-
b(() => {
|
|
57
|
-
import("fuse.js").then((e2) => {
|
|
58
|
-
D2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
59
|
-
});
|
|
60
|
-
}, [v2]);
|
|
61
|
-
const [z2, I2] = f(v2), K2 = w2.length > 0 && 0 === z2.length;
|
|
62
|
-
b(() => {
|
|
63
|
-
$2 && h.debounce(() => {
|
|
64
|
-
if (0 === w2.trim().length) return void I2(v2);
|
|
65
|
-
const e2 = $2.search(w2.trim()), t2 = new Array(e2.length);
|
|
66
|
-
for (let n2 = 0; n2 < e2.length; n2++) t2[n2] = e2[n2].item;
|
|
67
|
-
I2(t2);
|
|
68
|
-
}, 90)();
|
|
69
|
-
}, [$2, w2]);
|
|
70
|
-
return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${y("#fff", R(5))}, ${y("#fff", R(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: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 } }, value: w2, onChange: (e2) => {
|
|
71
|
-
C2(e2.target.value);
|
|
72
|
-
}, onKeyDown: (e2) => {
|
|
73
|
-
e2.which === p.Escape && w2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
74
|
-
}, onContextMenu: (e2) => {
|
|
75
|
-
e2.stopPropagation();
|
|
76
|
-
} }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { 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", R(5))}, ${y("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[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(n, { 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) => K2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === z2.length ? "No" : z2.length} shortcut key${1 === z2.length ? "" : "s"}${w2.length > 0 ? " found" : ""}` }) })] });
|
|
77
|
-
}
|
|
78
|
-
const P = (e2) => {
|
|
79
|
-
const { title: n2 = "Shortcut Keys", commands: i2, sx: o2, ...r2 } = e2;
|
|
80
|
-
return t(u, { isModal: true, onKeyDown: (e3) => {
|
|
81
|
-
e3.keyCode === p.F1 && e3.preventDefault();
|
|
82
|
-
}, sx: { width: "780px", ...o2 }, title: n2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: i2, sx: { marginBottom: "8px" } }) }) });
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
P as default
|
|
86
|
-
};
|