@sheetxl/studio-mui 0.8.0-beta.4 → 0.8.0-beta.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/{BGvoJjUs21bbuE1i.cjs → 3RXtLkq7wTAV6y_e.cjs} +1 -1
- package/browser/cjs/{BXkdjAb4jpTr412c.cjs → BD50lsTki7wvzb5g.cjs} +1 -1
- package/browser/cjs/BlNKpwiG-Q7eIi5t.cjs +8 -0
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +1 -0
- package/browser/cjs/{eCw4rAEIYE3BftpG.cjs → CkroJ2FmfFvk6Eyv.cjs} +1 -1
- package/browser/cjs/{B9GcCj7sj8XdjPZF.cjs → CzJvR12QCQb-0Rtn.cjs} +1 -1
- package/browser/cjs/{3uprnzi2l0iT17Dg.cjs → D-Yo5aV9STT5KH4G.cjs} +1 -1
- package/browser/cjs/{BHb7TnK1NmimV4OX.cjs → DwkiLFWUtLC8ZcIQ.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/xCAd86Y_REa3Xs1o.cjs +13 -0
- package/browser/esm/{wqS-qBYe9-awT5Rr.mjs → 27jPjqdDLWn5qbQ8.mjs} +3 -3
- package/browser/esm/{o8pQBbpRc03xny0J.mjs → 2_WF-hy6x4dXfEzW.mjs} +1 -1
- package/browser/esm/{Dj2-pD6jM9SjbPfX.mjs → 61ip_C1X9ls4svw6.mjs} +1 -1
- package/browser/esm/{BH7X6WilO_oB3j3h.mjs → 6EK3JgWrKYfqzAfV.mjs} +1 -1
- package/browser/esm/{CrTz-SMNtZoj2Z48.mjs → BFxtcKJBbfjtMft-.mjs} +2 -2
- package/browser/esm/{DRQzyIQfZQuviFBK.mjs → BGdZT1Ka4ohDCZpW.mjs} +3 -3
- package/browser/esm/{CimAg7LJqIb3ULYp.mjs → BPzT8gL3SgD0CG7V.mjs} +1131 -1091
- package/browser/esm/{CHqIzUemj2wQqlNO.mjs → BlWsO6M15Ii13NrV.mjs} +2 -2
- package/browser/esm/{DoU18LVtqUiePYs1.mjs → BofZe0q9bsHQr0Xd.mjs} +1 -1
- package/browser/esm/{DFbbRoJIDXqoF7nu.mjs → BybBaLxSKyGAsxqO.mjs} +3 -3
- package/browser/esm/{BJCaJYz86lNGZGh1.mjs → C5swGBbBLdDzg_bm.mjs} +2 -2
- package/browser/esm/{BVs5I1lTSja2b0B9.mjs → CKemMJZNIPnJ0dUE.mjs} +2 -2
- package/browser/esm/{ec1sT17zcL-gOSRO.mjs → CsNOEAKuHLfckItX.mjs} +1 -1
- package/browser/esm/CyQk62MFBCep2ZZs.mjs +223 -0
- package/browser/esm/{4zCEiqAUYE1FtC_Y.mjs → D-JQOjmAh6Gk6wVM.mjs} +2 -2
- package/browser/esm/{OwfpYCy5lgrQ-16J.mjs → D3b3dWTjvFd1Kj5g.mjs} +1 -1
- package/browser/esm/{Bv0eMxh_ZN44Ikgp.mjs → D8FEKUKVxH32duMx.mjs} +3 -3
- package/browser/esm/{nZ7NKFIakvUB_oNM.mjs → DRUKu2I27bidfyvH.mjs} +1 -1
- package/browser/esm/{CtOFBKJZWEJY5GOf.mjs → DTLKzrZGPkkNlncN.mjs} +2 -2
- package/browser/esm/{BWNmYjzGDBhZYgIO.mjs → Dzym1WSjYb_mnVkJ.mjs} +2 -2
- package/browser/esm/{CPDwT78ZJV0KhVfv.mjs → FK7vqizwRujDsqL2.mjs} +1825 -1743
- package/browser/esm/{DHYkgVTs7_z8sPt8.mjs → JYRkZ4iKzbWnNhEs.mjs} +2 -2
- package/browser/esm/{S7-XfIxL3I5D5tDS.mjs → aGoWX29-zbUaPh2U.mjs} +2 -2
- package/browser/esm/index.mjs +94 -94
- package/browser/esm/{BmVeug3PPG-mEUBe.mjs → p62JxLmjmWD2MQq1.mjs} +2 -2
- package/licenses/dependencies.txt +134 -134
- package/node/esm/{BVmpGvXDUqEmggq3.mjs → 3J2-TRYWEsvnTDnO.mjs} +1 -1
- package/node/esm/{BtruJA9z21K9pnuA.mjs → B2QOYsl1YmcwknsP.mjs} +9 -9
- package/node/esm/{DKzeeAeOVF2r68yb.mjs → CE6ZU2MVb3_-FzIk.mjs} +1 -1
- package/node/esm/{CUsUUWPxbO1IW9PY.mjs → CKOhL08sVy1N_Uza.mjs} +1 -1
- package/node/esm/{FxGz3tv6y2gcffmK.mjs → CksPMsHwUSCpFnpS.mjs} +1205 -1164
- package/node/esm/{B9iw8mqg0MDNDp5_.mjs → CtoRlEz1GwA88zTu.mjs} +1 -1
- package/node/esm/{BNROwD9ZMLgwtXL_.mjs → CzERDnu2VbNTjJgI.mjs} +8 -8
- package/node/esm/{2wtbIYdeGDT6UzN4.mjs → D3xcuMwJvLJhlPNV.mjs} +1 -1
- package/node/esm/{CGhj-BDkyrejG1Jj.mjs → DDVJs9oOFXR3RfSi.mjs} +1 -1
- package/node/esm/{DMbGl7mOdelCN7-u.mjs → Dc4t_AYLdTAnPOIT.mjs} +1 -1
- package/node/esm/{T3WcGiReCHGeKPOy.mjs → JUUre9pYia7feetw.mjs} +1 -1
- package/node/esm/{R1_Dii8zCHEAZKvZ.mjs → K6LEXUZkuqoEn5yJ.mjs} +1 -1
- package/node/esm/{B1z-keCkm0LI9ezw.mjs → ObY_iULY2ezBYD3q.mjs} +1 -1
- package/node/esm/index.mjs +2901 -2820
- package/node/esm/{DhZG-hcTUn-vLoZy.mjs → qu70N1tsIwi7LmT6.mjs} +1 -1
- package/node/esm/{7ZI8MoM6mY-P4VfQ.mjs → uIRinWE0OCKJvsGN.mjs} +2 -2
- package/package.json +9 -9
- package/resources/locales/de/ui.msg.json +3 -4
- package/resources/locales/en/ui.msg.json +3 -4
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +6 -0
- package/types/src/conditions/BetweenOption.d.ts +5 -0
- package/types/src/conditions/ScalarOption.d.ts +18 -0
- package/types/src/dialog/index.d.ts +0 -1
- package/types/src/filter/FilterList.d.ts +3 -3
- package/types/src/form/FormulaField.d.ts +6 -0
- package/types/src/format/AlignmentPanel.d.ts +1 -2
- package/types/src/format/BorderPreview.d.ts +23 -13
- package/types/src/format/useFormatSelection.d.ts +3 -2
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
- package/types/src/itemsPanel/index.d.ts +1 -0
- package/types/src/studio/CommandsWrapper.d.ts +2 -0
- package/types/src/studio/StudioCommandProvider.d.ts +7 -0
- package/types/src/studio/StudioCommands.d.ts +2 -2
- package/types/src/studio/StudioProps.d.ts +1 -1
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/browser/cjs/CucKgy044KxMHXrx.cjs +0 -13
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
- package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +0 -8
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
- package/browser/esm/BiZHUr1gWhtKdzrE.mjs +0 -222
- package/browser/esm/Dg5qnLoncOqT-F5i.mjs +0 -97
- package/node/esm/XpqeM7yyMghtMgLc.mjs +0 -98
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { useCallbackRef as e, useTranslator as t } from "@sheetxl/utils-react";
|
|
8
|
-
import { memo as n, useCallback as r, useMemo as i, useState as a } from "react";
|
|
9
|
-
import { OptionsDialog as o } from "@sheetxl/utils-mui";
|
|
10
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
11
|
-
import { Box as c, FormControl as l, TextField as u } from "@mui/material";
|
|
12
|
-
var d = ["Ok", "Cancel"], f = n((n) => {
|
|
13
|
-
let { initialValue: f = null, onInput: p, context: m, onOption: h, onValidateOption: g, onDone: _, options: v = d, defaultOption: y = v?.[0], cancelOption: b = "Cancel", sx: x, ...S } = n, C = t(), w = i(() => {
|
|
14
|
-
let e = m?.()?.getComments() ?? null, t = f?.content ?? (e ? e.getRichContent() ?? e.getContent() : null);
|
|
15
|
-
if (!t) return "";
|
|
16
|
-
if (typeof t == "string") return t;
|
|
17
|
-
let n = "", r = t.runs;
|
|
18
|
-
for (let e = 0; e < r.length; e++) n += r[e]?.text ?? "";
|
|
19
|
-
return n;
|
|
20
|
-
}, []), [T, E] = a(w), [D, O] = a(!1), k = r(async (e, t) => null, []), A = e(async (e) => {
|
|
21
|
-
let t = T === "" ? [] : T.split("\n"), n = e === b;
|
|
22
|
-
n || p?.({ content: t.join("\n") }), h?.(e, n, e === y), _?.();
|
|
23
|
-
}, [
|
|
24
|
-
T,
|
|
25
|
-
p,
|
|
26
|
-
_,
|
|
27
|
-
h,
|
|
28
|
-
y,
|
|
29
|
-
b
|
|
30
|
-
]), j = e((e) => {
|
|
31
|
-
E(e.target.value), k(e.target.value);
|
|
32
|
-
}, [g]), M = e(async (e) => {
|
|
33
|
-
let t = await Promise.resolve(g?.(e));
|
|
34
|
-
try {
|
|
35
|
-
!1 !== t && (t = await k(T, e));
|
|
36
|
-
} catch {}
|
|
37
|
-
return t ?? !0;
|
|
38
|
-
}, [g, T]);
|
|
39
|
-
return s(o, {
|
|
40
|
-
title: C(w ? "comments.titleEdit" : "comments.titleInsert"),
|
|
41
|
-
options: v,
|
|
42
|
-
onDone: _,
|
|
43
|
-
onOption: (e) => A(e),
|
|
44
|
-
onValidateOption: M,
|
|
45
|
-
defaultOption: y,
|
|
46
|
-
cancelOption: b,
|
|
47
|
-
autoFocusSel: ".autoFocus",
|
|
48
|
-
sx: {
|
|
49
|
-
width: "480px",
|
|
50
|
-
...x
|
|
51
|
-
},
|
|
52
|
-
...S,
|
|
53
|
-
children: s(c, {
|
|
54
|
-
sx: {
|
|
55
|
-
paddingTop: (e) => e.spacing(1),
|
|
56
|
-
paddingBottom: (e) => e.spacing(0),
|
|
57
|
-
rowGap: (e) => e.spacing(1),
|
|
58
|
-
display: "flex",
|
|
59
|
-
flexDirection: "column"
|
|
60
|
-
},
|
|
61
|
-
children: s(l, {
|
|
62
|
-
sx: {
|
|
63
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
64
|
-
minWidth: 135,
|
|
65
|
-
width: "100%"
|
|
66
|
-
},
|
|
67
|
-
size: "small",
|
|
68
|
-
children: s(u, {
|
|
69
|
-
label: C("comments.label"),
|
|
70
|
-
placeholder: C("comments.placeholder"),
|
|
71
|
-
onFocus: (e) => {
|
|
72
|
-
D || e.target?.select(), O(!0);
|
|
73
|
-
},
|
|
74
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
75
|
-
slotProps: {
|
|
76
|
-
inputLabel: { shrink: !0 },
|
|
77
|
-
htmlInput: {
|
|
78
|
-
className: "autoFocus",
|
|
79
|
-
spellCheck: !1,
|
|
80
|
-
autoComplete: "off",
|
|
81
|
-
sx: {
|
|
82
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
83
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
value: T,
|
|
88
|
-
onChange: j,
|
|
89
|
-
onContextMenu: (e) => {
|
|
90
|
-
e.stopPropagation();
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
export { f as CommentsDialog, f as default };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
|
|
8
|
-
import { memo as e, useCallback as o, useMemo as i, useState as a } from "react";
|
|
9
|
-
import { OptionsDialog as l } from "@sheetxl/utils-mui";
|
|
10
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
11
|
-
import { Box as r, FormControl as p, TextField as c } from "@mui/material";
|
|
12
|
-
var u = ["Ok", "Cancel"], m = e((e) => {
|
|
13
|
-
const { initialValue: m = null, onInput: d, context: g, onOption: h, onValidateOption: x, onDone: f, options: C = u, defaultOption: O = C?.[0], cancelOption: y = "Cancel", sx: v, ...w } = e, F = n(), T = i(() => {
|
|
14
|
-
const t = g?.()?.getComments() ?? null, n = m?.content ?? (t ? t.getRichContent() ?? t.getContent() : null);
|
|
15
|
-
if (!n) return "";
|
|
16
|
-
if ("string" == typeof n) return n;
|
|
17
|
-
let e = "";
|
|
18
|
-
const o = n.runs;
|
|
19
|
-
for (let t = 0; t < o.length; t++) e += o[t]?.text ?? "";
|
|
20
|
-
return e;
|
|
21
|
-
}, []), [b, k] = a(T), [D, I] = a(!1), P = o(async (t, n) => null, []), V = t(async (t) => {
|
|
22
|
-
const n = "" === b ? [] : b.split("\n"), e = t === y;
|
|
23
|
-
e || d?.({ content: n.join("\n") }), h?.(t, e, t === O), f?.();
|
|
24
|
-
}, [
|
|
25
|
-
b,
|
|
26
|
-
d,
|
|
27
|
-
f,
|
|
28
|
-
h,
|
|
29
|
-
O,
|
|
30
|
-
y
|
|
31
|
-
]), j = t((t) => {
|
|
32
|
-
k(t.target.value), P(t.target.value);
|
|
33
|
-
}, [x]), B = t(async (t) => {
|
|
34
|
-
let n = await Promise.resolve(x?.(t));
|
|
35
|
-
try {
|
|
36
|
-
!1 !== n && (n = await P(b, t));
|
|
37
|
-
} catch (t) {}
|
|
38
|
-
return n ?? !0;
|
|
39
|
-
}, [x, b]);
|
|
40
|
-
return s(l, {
|
|
41
|
-
title: F(T ? "comments.titleEdit" : "comments.titleInsert"),
|
|
42
|
-
options: C,
|
|
43
|
-
onDone: f,
|
|
44
|
-
onOption: (t) => V(t),
|
|
45
|
-
onValidateOption: B,
|
|
46
|
-
defaultOption: O,
|
|
47
|
-
cancelOption: y,
|
|
48
|
-
autoFocusSel: ".autoFocus",
|
|
49
|
-
sx: {
|
|
50
|
-
width: "480px",
|
|
51
|
-
...v
|
|
52
|
-
},
|
|
53
|
-
...w,
|
|
54
|
-
children: s(r, {
|
|
55
|
-
sx: {
|
|
56
|
-
paddingTop: (t) => t.spacing(1),
|
|
57
|
-
paddingBottom: (t) => t.spacing(0),
|
|
58
|
-
rowGap: (t) => t.spacing(1),
|
|
59
|
-
display: "flex",
|
|
60
|
-
flexDirection: "column"
|
|
61
|
-
},
|
|
62
|
-
children: s(p, {
|
|
63
|
-
sx: {
|
|
64
|
-
paddingTop: (t) => t.spacing(1.5),
|
|
65
|
-
minWidth: 135,
|
|
66
|
-
width: "100%"
|
|
67
|
-
},
|
|
68
|
-
size: "small",
|
|
69
|
-
children: s(c, {
|
|
70
|
-
label: F("comments.label"),
|
|
71
|
-
placeholder: F("comments.placeholder"),
|
|
72
|
-
onFocus: (t) => {
|
|
73
|
-
D || t.target?.select(), I(!0);
|
|
74
|
-
},
|
|
75
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (t) => t.spacing(.5) } },
|
|
76
|
-
slotProps: {
|
|
77
|
-
inputLabel: { shrink: !0 },
|
|
78
|
-
htmlInput: {
|
|
79
|
-
className: "autoFocus",
|
|
80
|
-
spellCheck: !1,
|
|
81
|
-
autoComplete: "off",
|
|
82
|
-
sx: {
|
|
83
|
-
paddingTop: (t) => t.spacing(1.25),
|
|
84
|
-
paddingBottom: (t) => t.spacing(.75)
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
value: b,
|
|
89
|
-
onChange: j,
|
|
90
|
-
onContextMenu: (t) => {
|
|
91
|
-
t.stopPropagation();
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
export { m as CommentsDialog, m as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IComment } from '@sheetxl/sdk';
|
|
3
|
-
import { InputDialogProps } from '@sheetxl/utils-mui';
|
|
4
|
-
export interface CommentsDialogProps extends InputDialogProps<IComment.Properties> {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* PLACEHOLDER for comments editor
|
|
8
|
-
*/
|
|
9
|
-
export declare const CommentsDialog: React.NamedExoticComponent<CommentsDialogProps>;
|
|
10
|
-
export default CommentsDialog;
|
|
11
|
-
//# sourceMappingURL=CommentsDialog.d.ts.map
|