@sheetxl/studio-mui 0.4.20 → 0.4.21

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 (98) hide show
  1. package/browser/cjs/B1KlR2XYFpYbKjYS.cjs +20 -0
  2. package/browser/cjs/{DItuuqkIamMzp7Im.cjs → B1RMsexbz4bNlty_.cjs} +1 -1
  3. package/browser/cjs/B32faQpVaX1tkPuc.cjs +6 -0
  4. package/browser/cjs/B3XiHrRxW1LxML7F.cjs +6 -0
  5. package/browser/cjs/BGikYpeNpjwvXUdQ.cjs +18 -0
  6. package/browser/cjs/BY5l7DteiFtb2AKy.cjs +6 -0
  7. package/browser/cjs/Bb0Hd2RE7iVWVbm8.cjs +6 -0
  8. package/browser/cjs/C3EZkRIKfQURg9hX.cjs +6 -0
  9. package/browser/cjs/C7r573AdygYrVVEJ.cjs +7 -0
  10. package/browser/cjs/DEEknE8ARp0mc7fk.cjs +6 -0
  11. package/browser/cjs/DZwzUUHda3jr5jo4.cjs +6 -0
  12. package/browser/cjs/index.cjs +2 -2
  13. package/browser/cjs/veQZSq7ekc6G1FZT.cjs +42 -0
  14. package/browser/esm/B84RbTkXZiq6XIdH.mjs +49 -0
  15. package/browser/esm/{C5xUbwpUPDeNua-i.mjs → BLy-hRTZkVfaGrcr.mjs} +1 -1
  16. package/browser/esm/Bapmv0WdnDq3Jl_q.mjs +53 -0
  17. package/browser/esm/C0OuiugFYjsjbY8q.mjs +46 -0
  18. package/browser/esm/{5u-JEG1IfQBstjq0.mjs → CGVN-NJF8ZTm9apo.mjs} +11 -10
  19. package/browser/esm/CcLpUDzJOdfqQ8Kf.mjs +25 -0
  20. package/browser/esm/Csg-hJrzm9r4vJrm.mjs +2156 -0
  21. package/browser/esm/{C60ZnLCvtztDLuoT.mjs → DHf2N2UY78nZFge3.mjs} +100 -98
  22. package/browser/esm/Dlc8L0qha0mZFIkY.mjs +62 -0
  23. package/browser/esm/{BW3_mz5_8i9VLBYB.mjs → Dv-0R5pQwEnowzoO.mjs} +87 -85
  24. package/browser/esm/index.mjs +29 -29
  25. package/browser/esm/mVKwmIdSj4ua1Qce.mjs +4443 -0
  26. package/browser/esm/{CxXpPYi4eOFhBNt2.mjs → sHK4zKkWLGt2hVmW.mjs} +27 -26
  27. package/licenses/dependencies.txt +71 -342
  28. package/node/esm/{CrDbLKJh9omVo_TF.mjs → 49Eux5a_I5wZ-jfq.mjs} +29 -28
  29. package/node/esm/{Bn5TJPQAEMY-lGpF.mjs → B00pGeZ7sj6QOFgF.mjs} +4 -3
  30. package/node/esm/{D6A_o47zvz5ITIJK.mjs → BEtxwx_Ji4aFNg8V.mjs} +79 -78
  31. package/node/esm/{Ds5dinNcyNdC8ta6.mjs → BTcBIT144Lil18l-.mjs} +13 -11
  32. package/node/esm/{Bv12-Yyv0C86Iquy.mjs → Bw_f4uhXHpg1RA6Z.mjs} +7 -6
  33. package/node/esm/CGrG-gsnGd-Pn_T2.mjs +88 -0
  34. package/node/esm/CiUfb3MQCUC2McDP.mjs +46 -0
  35. package/node/esm/D1bjybdBQ28bumrW.mjs +63 -0
  36. package/node/esm/{CH6p2H0CMCoz4NgJ.mjs → Dcnd4LiYyGf2eaNl.mjs} +23 -22
  37. package/node/esm/{rlqvGCJlj4a2UcSM.mjs → DiLUM75s3D56Y6Fx.mjs} +11 -10
  38. package/node/esm/index.mjs +2381 -18514
  39. package/package.json +8 -8
  40. package/browser/cjs/-Z37a-mzY5SKXy--.cjs +0 -6
  41. package/browser/cjs/B384kb1_rsiCsdZG.cjs +0 -6
  42. package/browser/cjs/B8nWvy4zDv1CZsr_.cjs +0 -110
  43. package/browser/cjs/BBnMJiXp9lru0Rcq.cjs +0 -6
  44. package/browser/cjs/BFbHTu65n1oE-l0N.cjs +0 -6
  45. package/browser/cjs/BQMSHnQdWtqeakER.cjs +0 -6
  46. package/browser/cjs/BvjA0ybox6653eb5.cjs +0 -6
  47. package/browser/cjs/Cocgl4ghzWE9yVYS.cjs +0 -161
  48. package/browser/cjs/D21Q1NdM1zQ7uFlH.cjs +0 -6
  49. package/browser/cjs/D4LmaKqYiwjxp0Hs.cjs +0 -15
  50. package/browser/cjs/D6egUillMqBwTaEq.cjs +0 -6
  51. package/browser/cjs/D9lY6pd9tRxPeLKs.cjs +0 -18
  52. package/browser/cjs/DNqIYSqRYZkUpFxW.cjs +0 -7
  53. package/browser/cjs/DUImSlPsM-OipgBZ.cjs +0 -6
  54. package/browser/cjs/DUVLcBcwkTsuLb6q.cjs +0 -6
  55. package/browser/cjs/Db7IyKXFzo8IocDa.cjs +0 -145
  56. package/browser/cjs/DsHPj69dMFG09uD_.cjs +0 -16
  57. package/browser/cjs/DypblOPNMRx5Twgx.cjs +0 -12
  58. package/browser/cjs/QK7YNBstmN86K-xL.cjs +0 -6
  59. package/browser/cjs/VNWvn2kP6ZF0Snzw.cjs +0 -11
  60. package/browser/cjs/dc1YAArM3bSHvRcF.cjs +0 -7
  61. package/browser/cjs/mInXvB8P6r6q7pRY.cjs +0 -11
  62. package/browser/cjs/nop6N-Oi_LKy1Bpc.cjs +0 -42
  63. package/browser/cjs/s45oNHeIvJVeRjn5.cjs +0 -6
  64. package/browser/esm/1y10o01h14oGJtKG.mjs +0 -43
  65. package/browser/esm/BFpc8KBa-fb0nLSt.mjs +0 -46
  66. package/browser/esm/Bmjhrc6YMmfx_1Yi.mjs +0 -1703
  67. package/browser/esm/BnlJVFlQeWerd3KW.mjs +0 -3803
  68. package/browser/esm/BpuH_QvBidPOXgAR.mjs +0 -392
  69. package/browser/esm/CAiWSkkPRgUjk8CN.mjs +0 -424
  70. package/browser/esm/CW8taieVozHhyBOC.mjs +0 -1467
  71. package/browser/esm/CzyEerZmfWrW3i3U.mjs +0 -59
  72. package/browser/esm/D0FBHwm0Oz_wf0tR.mjs +0 -12
  73. package/browser/esm/DM9GPrZpbCcKOnyU.mjs +0 -1352
  74. package/browser/esm/DO1doKZhwYiL7vbF.mjs +0 -1672
  75. package/browser/esm/DS3anstzAV3EJBRw.mjs +0 -84
  76. package/browser/esm/DuEmdSQsXlkCWZIB.mjs +0 -1366
  77. package/browser/esm/FvK-pQsicRjtrKoS.mjs +0 -48
  78. package/browser/esm/KCTJzQeDChqf1yBO.mjs +0 -52
  79. package/browser/esm/P-3pIbidOtRCNsw3.mjs +0 -23
  80. package/browser/esm/W3EFMOPLR1aNXWvF.mjs +0 -2250
  81. package/browser/esm/Z_Sh-N3xHHWLCbEw.mjs +0 -23412
  82. package/browser/esm/mOmzoYDWAtgYndCA.mjs +0 -13391
  83. package/browser/esm/tnJECoiQzUzgUQZE.mjs +0 -44
  84. package/node/esm/54SjtcD6mOreKcCy.mjs +0 -1719
  85. package/node/esm/B2BlMiDOVpIp1FDQ.mjs +0 -1706
  86. package/node/esm/BNEvR1srnnwBgnrF.mjs +0 -1479
  87. package/node/esm/BZ20_F64yjZgn-_G.mjs +0 -1246
  88. package/node/esm/BfzRLuswtxg9uDsX.mjs +0 -78
  89. package/node/esm/C0ZBbkFa-24tJTnw.mjs +0 -60
  90. package/node/esm/CEVO60fX3MAPG0Hg.mjs +0 -1378
  91. package/node/esm/CdFmhVFplZFgBvTo.mjs +0 -44
  92. package/node/esm/Cx4mn0YEVkG-M1VL.mjs +0 -553
  93. package/node/esm/DDWek3aquTe_okr_.mjs +0 -392
  94. package/node/esm/DSLWcwr4qgHARs36.mjs +0 -13464
  95. package/node/esm/iXG86MN0JrtJkpqe.mjs +0 -44
  96. package/node/esm/m2teXjBzZLfLDFPx.mjs +0 -46
  97. package/node/esm/oykDy4erHC0NNHHq.mjs +0 -3776
  98. 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
- };