@sheetxl/studio-mui 0.7.5 → 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.
- package/browser/cjs/{CuHwOikK2J1MLsHN.cjs → -u6vWH9DiYlO1rsa.cjs} +1 -1
- package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +20 -0
- package/browser/cjs/{CJQkIVFa7S1AZcBP.cjs → 7MV1n9Y0yXU0hKpM.cjs} +1 -1
- package/browser/cjs/{JURSrTjvLJ8bc4Yl.cjs → B8-dSgXI2XZKFvtp.cjs} +2 -2
- package/browser/cjs/BEmcHbiMOFhIa91S.cjs +6 -0
- package/browser/cjs/{D6pUyWwmIliDWT8B.cjs → BdNRaXTgqRzPmg0L.cjs} +2 -2
- package/browser/cjs/{D4c72fkCJiL-S_-a.cjs → Ce6JLd3qejgMgM3r.cjs} +7 -7
- package/browser/cjs/{CHyGxDKCce-XV53l.cjs → D7AH724IJJvos02e.cjs} +1 -1
- package/browser/cjs/{B4uj1Smd-98Hab_l.cjs → DefYX_aeMZivbpEt.cjs} +2 -2
- package/browser/cjs/{Td2md8ruASYOp_Rr.cjs → KOj1qev47_vzzRFV.cjs} +1 -1
- package/browser/cjs/{jHU6TwhWd2lZX-VA.cjs → St8H4B5iT2fsqOb7.cjs} +1 -1
- package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/BNxVvFkY3b2mERJf.mjs +64 -0
- package/browser/esm/{B7CJX7fKvv1vBk8-.mjs → BnVbG5kg41edf8oz.mjs} +2 -2
- package/browser/esm/{CwAqw5gJ2yzuXbLx.mjs → CJsYe8TqU6tqj4UH.mjs} +55 -56
- package/browser/esm/{gpytxNaiTkBoZ6aj.mjs → CKLhWrNo1E4r3pG7.mjs} +1 -1
- package/browser/esm/{BbfPde9B9b4p64_L.mjs → DVSjscO7zuDsOD4v.mjs} +2 -2
- package/browser/esm/{CkXFR3hHwNp6jfJV.mjs → DdLujAMc-Cefddif.mjs} +1 -1
- package/browser/esm/{hWToTYtpa0PFzhRm.mjs → Dg_NRblGOcetqhnC.mjs} +17 -18
- package/browser/esm/{COI8Eg7HQcdPFGcZ.mjs → YfJJd16cfjuXpb8G.mjs} +1 -1
- package/browser/esm/beUKtp_qQMnuYcVk.mjs +4452 -0
- package/browser/esm/index.mjs +68 -71
- package/browser/esm/{KULqIIHcvNriSu7F.mjs → miaBr4cu9WKLs8Is.mjs} +1 -1
- package/browser/esm/{C48fXszXYqcJMQni.mjs → nwvZlIH9rheqctQz.mjs} +1 -1
- package/browser/esm/{CajWEWsYWzynjFKw.mjs → yQgfM4ehXrfnEoUK.mjs} +2 -2
- package/licenses/dependencies.txt +139 -139
- package/node/esm/{DEnAvzkXoQEvscd-.mjs → B9TRK2jd_Ki2RifT.mjs} +1 -1
- package/node/esm/{DExsoaMD7hWNhceb.mjs → BTp8XtWh47Y1g1MM.mjs} +1 -1
- package/node/esm/BcB8nCbI5HW5jv5q.mjs +65 -0
- package/node/esm/C5WzmLTAphEQU3CU.mjs +155 -0
- package/node/esm/{DH3yxwtQR5c61iv3.mjs → CN79Z_qqLiF3V5r0.mjs} +1 -1
- package/node/esm/{DKhoTrOwIfMtft9r.mjs → CNCYE_ff8SnJJMPN.mjs} +41 -42
- package/node/esm/{DQIYBoarjlonhEEn.mjs → COoX8Ir66wNuWJ_m.mjs} +1 -1
- package/node/esm/{BHFc6-pxJ_X3esj1.mjs → CxbA2L1Ap9NSJcxm.mjs} +1 -1
- package/node/esm/{CuIak_iZn0ApypmT.mjs → Dln5o1FP_HWPs0Uf.mjs} +1 -1
- package/node/esm/index.mjs +1404 -1451
- package/node/esm/{NYFZEGBg9dFXwfFf.mjs → qpKmKMfv4DDofXKf.mjs} +1 -1
- package/package.json +8 -9
- package/types/index.d.ts +14 -92
- package/browser/cjs/BnpPHKTC6_96pDcW.cjs +0 -6
- package/browser/cjs/F4v-BOmzUXzCO3uz.cjs +0 -6
- package/browser/cjs/QQ4l7f6lYZb7S6td.cjs +0 -20
- package/browser/esm/BhP57_jo4NnvHBgF.mjs +0 -64
- package/browser/esm/CGVa4zFRRZyFzDvh.mjs +0 -4489
- package/node/esm/8qD_FXFKXbOqF2_X.mjs +0 -156
- package/node/esm/DQKU8gdXpx4S0S0D.mjs +0 -65
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as E, useState as r, useRef as M, useReducer as O, useMemo as W } from "react";
|
|
3
|
-
import { DialogContent as A, Box as n } from "@mui/material";
|
|
4
|
-
import { useCommand as k, useCallbackRef as f, useNotifier as V, CommandButtonType as x } from "@sheetxl/utils-react";
|
|
5
|
-
import { InternalWindow as q, ExhibitDivider as y, CommandButton as b, themeIcon as w, InsertTableIcon as C } from "@sheetxl/utils-mui";
|
|
6
|
-
import { useModelListener as G } from "@sheetxl/react";
|
|
7
|
-
import { u as J, N as K, R as Q, T as U, a as X } from "./CGVa4zFRRZyFzDvh.mjs";
|
|
8
|
-
/**
|
|
9
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.5
|
|
10
|
-
*
|
|
11
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
-
*/
|
|
14
|
-
const ie = E((S) => {
|
|
15
|
-
const { title: N, onHide: R, autoFocusSel: T = ".range-input input", context: v, command: c, commands: d, ...D } = S, [I, m] = r(!1), [g, p] = r(!1), u = M(null), [Y, B] = O((e) => e + 1, 0), [F, { width: Z }] = J();
|
|
16
|
-
k(c);
|
|
17
|
-
const a = v ?? c.context(), t = a.table(), [H, P] = r(() => t ? a.getNames().getRanges(t.getRange()) : null), j = W(() => t?.getName() ?? "", [t]);
|
|
18
|
-
G(a.table(), { onAnchorCoordsChange(e) {
|
|
19
|
-
P(a.getNames().getRanges(e.getRange()));
|
|
20
|
-
}, onProtectedChange(e) {
|
|
21
|
-
B();
|
|
22
|
-
} });
|
|
23
|
-
const L = f((e) => {
|
|
24
|
-
a?.table().setName(e);
|
|
25
|
-
}, [a]), z = f((e) => {
|
|
26
|
-
a?.table().resize(e.at(0));
|
|
27
|
-
}, [a]);
|
|
28
|
-
let h = null;
|
|
29
|
-
a.table() || (h = o("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: o("div", { children: "No table selected" }) }));
|
|
30
|
-
const l = V();
|
|
31
|
-
return o(q, { ref: u, title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, onHide: R, onFocus: () => m(!0), onBlur: (e) => {
|
|
32
|
-
u?.current?.contains(e.relatedTarget) || m(!1);
|
|
33
|
-
}, PaperProps: { elevation: I ? 3 : 1 }, ...D, children: s(A, { dividers: !0, ref: F, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: a.table() ? 1 : 0 }, children: [o(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: o(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [o(K, { formName: "name", defaultInput: j, value: t?.getName() ?? "No table", onChangeInput: L, onValidate: (e) => {
|
|
34
|
-
t && t.getName().toLowerCase() === e.toLowerCase() || a?.getNames().validateName(e);
|
|
35
|
-
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
36
|
-
g || e.target?.select(), p(!0);
|
|
37
|
-
} }), o(Q, { formName: "range", value: H, onChangeInput: z, resolvedAddress: a.getNames().getRanges.bind(a.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
38
|
-
g || e.target?.select(), p(!0);
|
|
39
|
-
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [o(y, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), o(U, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
40
|
-
t.updateStyleOptions(e);
|
|
41
|
-
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
42
|
-
try {
|
|
43
|
-
t.setShowHeaders(e);
|
|
44
|
-
} catch (i) {
|
|
45
|
-
l.showError(i);
|
|
46
|
-
}
|
|
47
|
-
}, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
|
|
48
|
-
try {
|
|
49
|
-
t.setShowTotals(e);
|
|
50
|
-
} catch (i) {
|
|
51
|
-
l.showError(i);
|
|
52
|
-
}
|
|
53
|
-
}, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
|
|
54
|
-
try {
|
|
55
|
-
t.setShowFilterButton(e);
|
|
56
|
-
} catch (i) {
|
|
57
|
-
l.showError(i);
|
|
58
|
-
}
|
|
59
|
-
} }), o(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: o(X, { table: t, styles: a.styles(), bodyStyle: a.bodyStyle(), cellHeight: 30, isLive: !0 }) }), o(y, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [o(b, { variant: x.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: w(o(C, {})) }), o(b, { variant: x.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: w(o(C, {})) })] })] })] }), h] }) });
|
|
60
|
-
});
|
|
61
|
-
export {
|
|
62
|
-
ie as TableDetailsWindow,
|
|
63
|
-
ie as default
|
|
64
|
-
};
|