@sheetxl/studio-mui 1.0.5 → 1.0.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/esm/{ePpKy03kKJVlSVTe.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
- package/browser/esm/{BPvVycga6_ukFjmo.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
- package/browser/esm/{DThDfv3f2iMSjT53.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
- package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
- package/browser/esm/{CPaacOpodhMft_HZ.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
- package/browser/esm/{zvoxJTExywdfgNRc.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
- package/browser/esm/{DOKtLrUbVlvQxv4H.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
- package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
- package/browser/esm/{B6-hMCdKZvyVLr0H.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
- package/browser/esm/{7yj4dvdTrP3TJcG2.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
- package/browser/esm/{B-BP7YC6OqOv5MV4.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
- package/browser/esm/{DKVZo-UN8IISuX4Y.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
- package/browser/esm/{bBvScRhjFIhLO-BQ.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
- package/browser/esm/{BRtyp4rO-zBQUZou.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
- package/browser/esm/{BTvmDvFq0AmcpyAD.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
- package/browser/esm/{VtQjtk60kuTE6s0Z.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
- package/browser/esm/{Bqz9mx_1Lg0aSHGm.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
- package/browser/esm/{DryZ4M6NKZEfr7g_.mjs → C211u9yUXa4149g9.mjs} +1 -1
- package/browser/esm/{C8Lqnn-28XkX0Nka.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
- package/browser/esm/{BncHnyZbePCwr9Eo.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
- package/browser/esm/{R0acIC-n-z00Zc8M.mjs → CA42_0vpQwF292tA.mjs} +1 -1
- package/browser/esm/{hSCeagPj7N_7GznP.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
- package/browser/esm/{C7HaLVp6sci5ODXI.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
- package/browser/esm/{CvbBPZFXJWgWy-WO.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
- package/browser/esm/{BK1rW101-KwC1O3y.mjs → CHb2gapathcPfhdM.mjs} +5 -5
- package/browser/esm/{C_-UmBzcMFoDo0fX.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
- package/browser/esm/{iK7GQTGlybnAwDFn.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
- package/browser/esm/{Dbg4a76nvHk2YiQX.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
- package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
- package/browser/esm/{BztoCStIl9cOlMP2.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
- package/browser/esm/{DBsWN0XGhfhzjKYP.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
- package/browser/esm/{CfVmUxioa6e4pJgE.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
- package/browser/esm/{C0EVQMZCECx8ZtfT.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
- package/browser/esm/{Cg0gGXUOW_fkgnny.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
- package/browser/esm/{CUVpARqLbIk1YJpR.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
- package/browser/esm/{D6uC2TMlHyJaRxfz.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
- package/browser/esm/{CeVY5B3Jxs6uNbw_.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
- package/browser/esm/{BPyB91W7jUDKOF7m.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
- package/browser/esm/{C-J4c4cA_UafY5j-.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
- package/browser/esm/{CD1F2JZ9VNb4fMFB.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
- package/browser/esm/{D834tBZr2uiui3Yl.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
- package/browser/esm/{BwcKRrn0FbEQXA_w.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
- package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
- package/browser/esm/{GfW7QFtTUyK1yS0P.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
- package/browser/esm/{RRwtR6zhJEHrCP8n.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
- package/browser/esm/{CIdbrUCRQ3XRp27_.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
- package/browser/esm/{Rx8jKs1hNt5rF1o6.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
- package/browser/esm/{BZJa6r9ArcmluwF7.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
- package/browser/esm/{BxdEhMqG0AJfgYo_.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
- package/browser/esm/{CdWTSkoOn2S7LbgA.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
- package/browser/esm/{CzKOC7ykGeweE8YO.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
- package/browser/esm/{BJdjpkMLIVz2dfey.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
- package/browser/esm/{Dl3HN6jGh1DIosIz.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
- package/browser/esm/{CKN_49irWz3yBOic.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
- package/browser/esm/index.mjs +299 -299
- package/browser/esm/{BablQ60b_Sr7yt0c.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
- package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
- package/browser/esm/{-JkustapYpJLIlTC.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
- package/browser/esm/{L2h5hAhioUPka05m.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
- package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
- package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
- package/browser/esm/{AXga1X4C6fqsi-pa.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
- package/browser/esm/{vTrvnXbLCCRg1M_Z.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
- package/browser/esm/{CVI6kZdcPa6NJ2QN.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
- package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
- package/node/esm/{BE8tFJNzJd21ET8u.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
- package/node/esm/{D9h-5-KAL05_Ky2c.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
- package/node/esm/{BKNq-LKfmWLM8xN8.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
- package/node/esm/{Dfq_WQN4R9_EI6mT.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
- package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
- package/node/esm/{Dn886fw8cN-Js_4o.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
- package/node/esm/{BxiLu3gZqvEwm0MC.mjs → BghhH54dXAqciBpw.mjs} +2 -2
- package/node/esm/{5w-_-2HcuZN2IilY.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
- package/node/esm/{CZZkkEXKtF-XmMg_.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
- package/node/esm/{4333CfN0xFlZJlzT.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
- package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
- package/node/esm/{DiZJjw3IrOJhpe5p.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
- package/node/esm/{D8Nhs3gz4-jRbvJR.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
- package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
- package/node/esm/{C7-xjC8Lj2O146i0.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
- package/node/esm/{wMu6qavkExEvCP9w.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
- package/node/esm/{BFSKvA0b7rgbSW6P.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
- package/node/esm/{DzDcGqDCrlXyZGFT.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
- package/node/esm/{OIr4GV8spsS0lHX8.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
- package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
- package/node/esm/{DxONr2LD1x7bwMGg.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
- package/node/esm/{B8w-DV7qSRfQye14.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
- package/node/esm/{CUDMxAfvU8oooK2c.mjs → D283LXrMqi3exI_l.mjs} +1 -1
- package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
- package/node/esm/{Calh2yf8E7k7eyxM.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
- package/node/esm/{Rl3tQd58HLEsY11C.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
- package/node/esm/{CsCU9lo125xnF_Ca.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
- package/node/esm/{Bz5j26qH_sdjuoGi.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
- package/node/esm/{DlFptlPZHQuBgG50.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
- package/node/esm/{DLvtpSUsavFrtiw5.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
- package/node/esm/{D6KPG_DnQJRP4iGb.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
- package/node/esm/{B-CirwhCWSk3r-uN.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
- package/node/esm/{Bj1JsBoPHXCz4fFP.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
- package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
- package/node/esm/{XEQfvW0ujUY6vUoF.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
- package/node/esm/{CEblCNurnWlc2SK0.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
- package/node/esm/{D0ouF5sfJzhQUuQg.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
- package/node/esm/{B2ba9oxCLDj7q9Fz.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
- package/node/esm/index.mjs +3294 -3031
- package/node/esm/{5cll_oe5x8KteiZX.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
- package/node/esm/{BzEIi_Iy_4PrcaE_.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
- package/node/esm/{CwfKrba55FGBz2Jb.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -6
- package/resources/locales/de/ui.msg.json +164 -3
- package/resources/locales/en/groups.cmd.json +4 -6
- package/resources/locales/en/ui.msg.json +164 -3
- package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
- package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
- package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
- package/types/src/chart/ChartFormatPanel.d.ts +12 -14
- package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
- package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
- package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
- package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
- package/types/src/color/ColorSetSwatch.d.ts +34 -0
- package/types/src/color/index.d.ts +1 -0
- package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
- package/types/src/format/FillPanel.d.ts +1 -3
- package/types/src/format/FormatPanelParts.d.ts +2 -2
- package/types/src/format/FormatPlugin.d.ts +2 -2
- package/types/src/format/FormatTaskPane.d.ts +4 -10
- package/types/src/format/LinePanel.d.ts +0 -2
- package/types/src/format/editor/FormatEditor.d.ts +36 -0
- package/types/src/format/editor/FormatField.d.ts +97 -0
- package/types/src/format/editor/FormatFields.d.ts +20 -0
- package/types/src/format/editor/index.d.ts +4 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +0 -2
- package/types/src/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
- package/types/src/workbook/DefaultRenderers.d.ts +7 -1
- package/browser/esm/7afcXNPsXUui-iRB.mjs +0 -517
- package/browser/esm/CeElTSJMZukT5ODA.mjs +0 -516
- package/browser/esm/DJ0FThW4hRGIvy2O.mjs +0 -72
- package/node/esm/BGlQ9Ae_1Kf9chO-.mjs +0 -1831
- package/node/esm/CTibYRwgtHRsGojh.mjs +0 -519
- package/node/esm/D2GNY72eMSKe5Gt7.mjs +0 -516
- package/node/esm/DrpnqRfDHbua0oN6.mjs +0 -73
- package/types/src/studio/StudioSplitPane.d.ts +0 -60
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as o, n as l, r as i, t } from "./
|
|
7
|
+
import { a as e, i as o, n as l, r as i, t } from "./BDGax8JuzpXDLe1U.mjs";
|
|
8
8
|
import { VERSION as n } from "@sheetxl/sdk";
|
|
9
9
|
import { LogoTextNoPaddingIcon as a } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as r, useTranslator as d } from "@sheetxl/utils-react";
|
|
@@ -12,7 +12,7 @@ import { useCallback as p, useState as s } from "react";
|
|
|
12
12
|
import { InternalWindow as m } from "@sheetxl/utils-mui";
|
|
13
13
|
import { jsx as x, jsxs as h } from "react/jsx-runtime";
|
|
14
14
|
import { Box as g, Button as f, Checkbox as u, DialogContent as w, Divider as b, FormControlLabel as v, Link as y, Typography as k } from "@mui/material";
|
|
15
|
-
var C = "@container welcome (max-width: 500px)",
|
|
15
|
+
var C = "@container welcome (max-width: 500px)", D = (e) => {
|
|
16
16
|
const { icon: o, label: l, onClick: i } = e;
|
|
17
17
|
return x(f, {
|
|
18
18
|
variant: "text",
|
|
@@ -27,18 +27,18 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
27
27
|
},
|
|
28
28
|
children: l
|
|
29
29
|
});
|
|
30
|
-
},
|
|
31
|
-
const { title: r, templatePath: c, logo: f, onBlank:
|
|
30
|
+
}, X = (t) => {
|
|
31
|
+
const { title: r, templatePath: c, logo: f, onBlank: X, onOpenFromDevice: F, onOpenFromWeb: S, onSelectTemplate: T, showAtStartup: W, onShowAtStartupChange: B, sx: I, ...O } = t, j = d(), A = l({ path: c }), [$, _] = s(""), [z, H] = s([]), L = o(A.categories, $, z), [M, N] = s(W), R = p((e) => {
|
|
32
32
|
N(e), B?.(e);
|
|
33
33
|
}, [B]);
|
|
34
34
|
return x(m, {
|
|
35
35
|
isModal: !0,
|
|
36
36
|
sx: {
|
|
37
37
|
width: "960px",
|
|
38
|
-
...
|
|
38
|
+
...I
|
|
39
39
|
},
|
|
40
|
-
title: r ??
|
|
41
|
-
...
|
|
40
|
+
title: r ?? j("dialog.welcome.title"),
|
|
41
|
+
...O,
|
|
42
42
|
children: x(w, {
|
|
43
43
|
dividers: !0,
|
|
44
44
|
sx: {
|
|
@@ -112,19 +112,19 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
children: [
|
|
115
|
-
x(
|
|
115
|
+
x(D, {
|
|
116
116
|
icon: "FileNew",
|
|
117
|
-
label:
|
|
118
|
-
onClick:
|
|
117
|
+
label: j("dialog.welcome.blank"),
|
|
118
|
+
onClick: X
|
|
119
119
|
}),
|
|
120
|
-
F ? x(
|
|
120
|
+
F ? x(D, {
|
|
121
121
|
icon: "FileOpen",
|
|
122
|
-
label:
|
|
122
|
+
label: j("dialog.welcome.openFromDevice"),
|
|
123
123
|
onClick: F
|
|
124
124
|
}) : null,
|
|
125
|
-
S ? x(
|
|
125
|
+
S ? x(D, {
|
|
126
126
|
icon: "FileOpen",
|
|
127
|
-
label:
|
|
127
|
+
label: j("dialog.welcome.openFromWeb"),
|
|
128
128
|
onClick: S
|
|
129
129
|
}) : null
|
|
130
130
|
]
|
|
@@ -159,19 +159,19 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
159
159
|
href: "https://www.sheetxl.com/docs",
|
|
160
160
|
target: "_blank",
|
|
161
161
|
rel: "noopener noreferrer",
|
|
162
|
-
children:
|
|
162
|
+
children: j("dialog.welcome.docs")
|
|
163
163
|
}),
|
|
164
164
|
x(y, {
|
|
165
165
|
variant: "caption",
|
|
166
166
|
href: "https://github.com/sheetxl/templates-workbook",
|
|
167
167
|
target: "_blank",
|
|
168
168
|
rel: "noopener noreferrer",
|
|
169
|
-
children:
|
|
169
|
+
children: j("dialog.welcome.addTemplate")
|
|
170
170
|
}),
|
|
171
171
|
x(k, {
|
|
172
172
|
variant: "caption",
|
|
173
173
|
sx: { color: "text.secondary" },
|
|
174
|
-
children:
|
|
174
|
+
children: j("dialog.welcome.version", { version: n })
|
|
175
175
|
})
|
|
176
176
|
]
|
|
177
177
|
})
|
|
@@ -196,7 +196,7 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
196
196
|
children: x(i, {
|
|
197
197
|
value: $,
|
|
198
198
|
onChange: _,
|
|
199
|
-
categories:
|
|
199
|
+
categories: A.categories,
|
|
200
200
|
categoryIds: z,
|
|
201
201
|
onCategoryIdsChange: H,
|
|
202
202
|
sx: {
|
|
@@ -208,11 +208,11 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
208
208
|
}),
|
|
209
209
|
x(e, {
|
|
210
210
|
role: "region",
|
|
211
|
-
"aria-label":
|
|
212
|
-
catalog:
|
|
211
|
+
"aria-label": j("dialog.welcome.templates"),
|
|
212
|
+
catalog: A,
|
|
213
213
|
onSelect: T,
|
|
214
214
|
filter: L,
|
|
215
|
-
emptyLabel: L ?
|
|
215
|
+
emptyLabel: L ? j("template.noMatches") : void 0,
|
|
216
216
|
visibleRows: 2,
|
|
217
217
|
sx: {
|
|
218
218
|
flex: "1 1 auto",
|
|
@@ -241,7 +241,7 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
241
241
|
}),
|
|
242
242
|
label: x(k, {
|
|
243
243
|
variant: "body2",
|
|
244
|
-
children:
|
|
244
|
+
children: j("template.showAtStartup")
|
|
245
245
|
})
|
|
246
246
|
})
|
|
247
247
|
}) : null
|
|
@@ -253,4 +253,4 @@ var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
|
253
253
|
}, F = (e) => {
|
|
254
254
|
t(e).catch(() => {});
|
|
255
255
|
};
|
|
256
|
-
export {
|
|
256
|
+
export { X as default, F as prefetchCatalog };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { FormulaField as e, InputField as t, PresetTableStylesCommandButton as n, TableStylePreview as o } from "./index.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { CommandButtonType as
|
|
10
|
-
import { forwardRef as
|
|
11
|
-
import { CommandButton as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { Box as
|
|
8
|
+
import { TaskPaneEmpty as a, useModelListener as l, useWorksheet as i } from "@sheetxl/react";
|
|
9
|
+
import { CommandButtonType as s, useCallbackRef as r, useMeasure as c, useNotifier as d, useTranslator as m } from "@sheetxl/utils-react";
|
|
10
|
+
import { forwardRef as g, memo as h, useCallback as p, useEffect as u, useMemo as b, useReducer as w, useRef as f, useState as y } from "react";
|
|
11
|
+
import { CommandButton as C, ExhibitDivider as x } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as S, jsxs as R } from "react/jsx-runtime";
|
|
13
|
+
import { Box as T, Checkbox as N, FormControlLabel as k, Paper as v } from "@mui/material";
|
|
14
14
|
import B from "clsx";
|
|
15
15
|
import { useMergeRefs as L } from "react-merge-refs";
|
|
16
|
-
var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn2_1", H = g(
|
|
17
|
-
const { styleOptions: n, onStyleOptionsChange: o, showHeaderRow: a, onShowHeaderRowChange: l, showTotalRow: i, onShowTotalRowChange: s, showButton: r, onShowButtonChange: c, sx:
|
|
18
|
-
return
|
|
16
|
+
var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn2_1", H = h(g((e, t) => {
|
|
17
|
+
const { styleOptions: n, onStyleOptionsChange: o, showHeaderRow: a, onShowHeaderRowChange: l, showTotalRow: i, onShowTotalRowChange: s, showButton: r, onShowButtonChange: c, sx: d, className: g, disabled: h, ...p } = e, u = m();
|
|
18
|
+
return S("div", {
|
|
19
19
|
className: _,
|
|
20
|
-
children:
|
|
20
|
+
children: R(T, {
|
|
21
21
|
sx: {
|
|
22
22
|
pt: 1,
|
|
23
23
|
pb: 1,
|
|
@@ -26,14 +26,14 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
26
26
|
marginRight: (e) => `${e.spacing(2)}`
|
|
27
27
|
},
|
|
28
28
|
"& .MuiCheckbox-root": { padding: (e) => `${e.spacing(.5)}` },
|
|
29
|
-
...
|
|
29
|
+
...d
|
|
30
30
|
},
|
|
31
31
|
...p,
|
|
32
32
|
ref: t,
|
|
33
33
|
className: B(g, P),
|
|
34
34
|
children: [
|
|
35
|
-
l &&
|
|
36
|
-
control:
|
|
35
|
+
l && S(k, {
|
|
36
|
+
control: S(N, {
|
|
37
37
|
checked: a ?? !1,
|
|
38
38
|
indeterminate: null == a,
|
|
39
39
|
onChange: () => l(!a),
|
|
@@ -42,8 +42,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
42
42
|
label: u("tableStyle.headerRow"),
|
|
43
43
|
labelPlacement: "end"
|
|
44
44
|
}),
|
|
45
|
-
s &&
|
|
46
|
-
control:
|
|
45
|
+
s && S(k, {
|
|
46
|
+
control: S(N, {
|
|
47
47
|
checked: i ?? !1,
|
|
48
48
|
indeterminate: null == i,
|
|
49
49
|
onChange: () => s(!i),
|
|
@@ -52,8 +52,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
52
52
|
label: u("tableStyle.totalRow"),
|
|
53
53
|
labelPlacement: "end"
|
|
54
54
|
}),
|
|
55
|
-
|
|
56
|
-
control:
|
|
55
|
+
S(k, {
|
|
56
|
+
control: S(N, {
|
|
57
57
|
checked: n?.showRowStripes ?? !1,
|
|
58
58
|
indeterminate: !n,
|
|
59
59
|
disabled: h || !n,
|
|
@@ -67,8 +67,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
67
67
|
label: u("tableStyle.bandedRows"),
|
|
68
68
|
labelPlacement: "end"
|
|
69
69
|
}),
|
|
70
|
-
|
|
71
|
-
control:
|
|
70
|
+
S(k, {
|
|
71
|
+
control: S(N, {
|
|
72
72
|
checked: n?.showFirstColumn ?? !1,
|
|
73
73
|
indeterminate: !n,
|
|
74
74
|
disabled: h || !n,
|
|
@@ -82,8 +82,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
82
82
|
label: u("tableStyle.firstColumn"),
|
|
83
83
|
labelPlacement: "end"
|
|
84
84
|
}),
|
|
85
|
-
|
|
86
|
-
control:
|
|
85
|
+
S(k, {
|
|
86
|
+
control: S(N, {
|
|
87
87
|
checked: n?.showLastColumn ?? !1,
|
|
88
88
|
indeterminate: !n,
|
|
89
89
|
disabled: h || !n,
|
|
@@ -97,8 +97,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
97
97
|
label: u("tableStyle.lastColumn"),
|
|
98
98
|
labelPlacement: "end"
|
|
99
99
|
}),
|
|
100
|
-
|
|
101
|
-
control:
|
|
100
|
+
S(k, {
|
|
101
|
+
control: S(N, {
|
|
102
102
|
checked: n?.showColumnStripes ?? !1,
|
|
103
103
|
indeterminate: !n,
|
|
104
104
|
disabled: h || !n,
|
|
@@ -112,8 +112,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
112
112
|
label: u("tableStyle.bandedColumns"),
|
|
113
113
|
labelPlacement: "end"
|
|
114
114
|
}),
|
|
115
|
-
c &&
|
|
116
|
-
control:
|
|
115
|
+
c && S(k, {
|
|
116
|
+
control: S(N, {
|
|
117
117
|
checked: r ?? !1,
|
|
118
118
|
indeterminate: null == r,
|
|
119
119
|
disabled: h || !n || null == r,
|
|
@@ -125,9 +125,9 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
125
125
|
]
|
|
126
126
|
})
|
|
127
127
|
});
|
|
128
|
-
})), F = "_range-row_1yps2_1",
|
|
129
|
-
const { title:
|
|
130
|
-
const e =
|
|
128
|
+
})), F = "_range-row_1yps2_1", z = "_action-row_1yps2_17", O = h(g((i, g) => {
|
|
129
|
+
const { title: h, table: p, getStyles: u, getNames: N, className: k, ..._ } = i, P = m(), O = d(), [D, I] = y(!1), [M, A] = y(!1), K = f(null), [j, E] = w((e) => e + 1, 0), [$, { width: W }] = c(), [q, Q] = y(() => p ? p.getRange().getFixed(!0).toString() : null), V = b(() => p?.getName() ?? "", [p]), G = b(() => {
|
|
130
|
+
const e = p?.getRange();
|
|
131
131
|
if (!e) return;
|
|
132
132
|
const t = e.getCoords();
|
|
133
133
|
return {
|
|
@@ -135,8 +135,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
135
135
|
colIndex: t.colStart,
|
|
136
136
|
scope: e.getWorksheet().getName()
|
|
137
137
|
};
|
|
138
|
-
}, [
|
|
139
|
-
|
|
138
|
+
}, [p, q]);
|
|
139
|
+
l(p, {
|
|
140
140
|
onAnchorCoordsChange(e) {
|
|
141
141
|
Q(e.getRange().getFixed(!0).toString());
|
|
142
142
|
},
|
|
@@ -147,38 +147,25 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
147
147
|
E();
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
const J =
|
|
151
|
-
"accept" === t.reason &&
|
|
152
|
-
}, [
|
|
150
|
+
const J = r((e, t) => {
|
|
151
|
+
"accept" === t.reason && p && p.getName() !== e && p.setName(e);
|
|
152
|
+
}, [p]), U = r((e, t) => {
|
|
153
153
|
if ("accept" !== t.reason) return;
|
|
154
154
|
const n = e?.getReferences();
|
|
155
|
-
n &&
|
|
156
|
-
}, [
|
|
155
|
+
n && p.resize(n.at(0));
|
|
156
|
+
}, [p]);
|
|
157
157
|
let X = null;
|
|
158
|
-
|
|
159
|
-
component: "div",
|
|
160
|
-
style: {
|
|
161
|
-
top: "0",
|
|
162
|
-
left: "0",
|
|
163
|
-
width: "100%",
|
|
164
|
-
height: "100%",
|
|
165
|
-
display: "flex",
|
|
166
|
-
alignItems: "center",
|
|
167
|
-
justifyItems: "center",
|
|
168
|
-
justifyContent: "center"
|
|
169
|
-
},
|
|
170
|
-
children: P("table.noneSelected")
|
|
171
|
-
}));
|
|
158
|
+
p || (X = S(a, { children: P("table.noneSelected") }));
|
|
172
159
|
const Y = L([
|
|
173
|
-
|
|
160
|
+
K,
|
|
174
161
|
$,
|
|
175
|
-
|
|
162
|
+
g
|
|
176
163
|
]);
|
|
177
|
-
return
|
|
164
|
+
return S(v, {
|
|
178
165
|
square: !0,
|
|
179
|
-
onFocus: () =>
|
|
166
|
+
onFocus: () => I(!0),
|
|
180
167
|
onBlur: (e) => {
|
|
181
|
-
|
|
168
|
+
K?.current?.contains(e.relatedTarget) || I(!1);
|
|
182
169
|
},
|
|
183
170
|
ref: Y,
|
|
184
171
|
sx: {
|
|
@@ -194,17 +181,17 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
194
181
|
paddingBottom: (e) => e.spacing(1.5),
|
|
195
182
|
boxSizing: "border-box"
|
|
196
183
|
},
|
|
197
|
-
className: B("sxl-table-details-panel",
|
|
184
|
+
className: B("sxl-table-details-panel", k, { "sxl-has-focus": D }),
|
|
198
185
|
..._,
|
|
199
|
-
children: X ||
|
|
186
|
+
children: X || R(T, {
|
|
200
187
|
sx: {
|
|
201
188
|
display: "flex",
|
|
202
189
|
flex: "1 1 auto",
|
|
203
190
|
flexDirection: "column",
|
|
204
191
|
transition: "opacity 60ms",
|
|
205
|
-
opacity:
|
|
192
|
+
opacity: p ? 1 : 0
|
|
206
193
|
},
|
|
207
|
-
children: [
|
|
194
|
+
children: [S(T, {
|
|
208
195
|
sx: {
|
|
209
196
|
containerType: "inline-size",
|
|
210
197
|
display: "flex",
|
|
@@ -215,22 +202,22 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
215
202
|
paddingLeft: (e) => e.spacing(2),
|
|
216
203
|
paddingRight: (e) => e.spacing(2)
|
|
217
204
|
},
|
|
218
|
-
children:
|
|
205
|
+
children: R(T, {
|
|
219
206
|
className: F,
|
|
220
|
-
children: [
|
|
207
|
+
children: [S(t, {
|
|
221
208
|
formName: "name",
|
|
222
209
|
defaultInput: V,
|
|
223
|
-
value:
|
|
210
|
+
value: p?.getName() ?? "No table",
|
|
224
211
|
changeOn: "done",
|
|
225
212
|
onDone: J,
|
|
226
213
|
onValidate: (e) => {
|
|
227
|
-
|
|
214
|
+
p && p.getName().toLowerCase() === e.toLowerCase() || N?.().validateName(e);
|
|
228
215
|
},
|
|
229
|
-
disabled:
|
|
216
|
+
disabled: p?.isProtected() ?? !0,
|
|
230
217
|
onFocus: (e) => {
|
|
231
|
-
M || e.target?.select(),
|
|
218
|
+
M || e.target?.select(), A(!0);
|
|
232
219
|
}
|
|
233
|
-
}),
|
|
220
|
+
}), S(e, {
|
|
234
221
|
grammar: "reference",
|
|
235
222
|
formName: "range",
|
|
236
223
|
value: q,
|
|
@@ -240,13 +227,13 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
240
227
|
pickAs: "absolute",
|
|
241
228
|
changeOn: "done",
|
|
242
229
|
onDone: U,
|
|
243
|
-
disabled:
|
|
230
|
+
disabled: p?.isProtected() ?? !0,
|
|
244
231
|
onFocus: (e) => {
|
|
245
|
-
M || e.target?.select(),
|
|
232
|
+
M || e.target?.select(), A(!0);
|
|
246
233
|
}
|
|
247
234
|
})]
|
|
248
235
|
})
|
|
249
|
-
}),
|
|
236
|
+
}), R(T, {
|
|
250
237
|
sx: {
|
|
251
238
|
minHeight: "10px",
|
|
252
239
|
flex: "1 1 100%",
|
|
@@ -257,14 +244,14 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
257
244
|
marginTop: (e) => e.spacing(1)
|
|
258
245
|
},
|
|
259
246
|
children: [
|
|
260
|
-
x
|
|
247
|
+
S(x, {
|
|
261
248
|
orientation: "horizontal",
|
|
262
249
|
sx: {
|
|
263
250
|
marginTop: (e) => e.spacing(1.5),
|
|
264
251
|
marginBottom: (e) => e.spacing(.75)
|
|
265
252
|
}
|
|
266
253
|
}),
|
|
267
|
-
|
|
254
|
+
S(T, {
|
|
268
255
|
sx: {
|
|
269
256
|
display: "flex",
|
|
270
257
|
flex: "1 1 100%",
|
|
@@ -274,71 +261,71 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
274
261
|
marginTop: (e) => e.spacing(1),
|
|
275
262
|
marginBottom: (e) => e.spacing(1)
|
|
276
263
|
},
|
|
277
|
-
children:
|
|
264
|
+
children: R("div", {
|
|
278
265
|
style: {
|
|
279
266
|
display: "flex",
|
|
280
267
|
alignItems: "start",
|
|
281
268
|
gap: "2px"
|
|
282
269
|
},
|
|
283
|
-
children: [
|
|
284
|
-
table:
|
|
285
|
-
styles:
|
|
270
|
+
children: [S(o, {
|
|
271
|
+
table: p,
|
|
272
|
+
styles: u?.(),
|
|
286
273
|
cellHeight: 30,
|
|
287
274
|
isLive: !0
|
|
288
|
-
}),
|
|
275
|
+
}), S(n, {
|
|
289
276
|
commandKey: "formatTableStyle",
|
|
290
277
|
disabledQuickKey: !0
|
|
291
278
|
})]
|
|
292
279
|
})
|
|
293
280
|
}),
|
|
294
|
-
x
|
|
281
|
+
S(x, {
|
|
295
282
|
orientation: "horizontal",
|
|
296
283
|
sx: {
|
|
297
284
|
marginTop: (e) => e.spacing(1.5),
|
|
298
285
|
marginBottom: (e) => e.spacing(.75)
|
|
299
286
|
}
|
|
300
287
|
}),
|
|
301
|
-
|
|
302
|
-
disabled:
|
|
303
|
-
styleOptions:
|
|
288
|
+
S(H, {
|
|
289
|
+
disabled: p?.isProtected(),
|
|
290
|
+
styleOptions: p?.getStyleOptions() ?? null,
|
|
304
291
|
onStyleOptionsChange: (e) => {
|
|
305
|
-
|
|
292
|
+
p.updateStyleOptions(e);
|
|
306
293
|
},
|
|
307
|
-
showHeaderRow:
|
|
294
|
+
showHeaderRow: p?.isShowHeaders(),
|
|
308
295
|
onShowHeaderRowChange: (e) => {
|
|
309
296
|
try {
|
|
310
|
-
|
|
297
|
+
p.setShowHeaders(e);
|
|
311
298
|
} catch (e) {
|
|
312
|
-
|
|
299
|
+
O.showError(e);
|
|
313
300
|
}
|
|
314
301
|
},
|
|
315
|
-
showTotalRow:
|
|
302
|
+
showTotalRow: p?.isShowTotals(),
|
|
316
303
|
onShowTotalRowChange: (e) => {
|
|
317
304
|
try {
|
|
318
|
-
|
|
305
|
+
p.setShowTotals(e);
|
|
319
306
|
} catch (e) {
|
|
320
|
-
|
|
307
|
+
O.showError(e);
|
|
321
308
|
}
|
|
322
309
|
},
|
|
323
|
-
showButton: !
|
|
310
|
+
showButton: !p?.isHiddenButtons(),
|
|
324
311
|
onShowButtonChange: (e) => {
|
|
325
312
|
try {
|
|
326
|
-
|
|
313
|
+
p.setHiddenButtons(!e);
|
|
327
314
|
} catch (e) {
|
|
328
|
-
|
|
315
|
+
O.showError(e);
|
|
329
316
|
}
|
|
330
317
|
}
|
|
331
318
|
}),
|
|
332
|
-
x
|
|
333
|
-
|
|
334
|
-
className:
|
|
335
|
-
children: [
|
|
336
|
-
variant:
|
|
319
|
+
S(x, { orientation: "horizontal" }),
|
|
320
|
+
R(T, {
|
|
321
|
+
className: z,
|
|
322
|
+
children: [S(C, {
|
|
323
|
+
variant: s.Menuitem,
|
|
337
324
|
commandKey: "convertTableToRange",
|
|
338
|
-
commandState:
|
|
339
|
-
}),
|
|
340
|
-
variant:
|
|
341
|
-
commandState:
|
|
325
|
+
commandState: p
|
|
326
|
+
}), S(C, {
|
|
327
|
+
variant: s.Menuitem,
|
|
328
|
+
commandState: p,
|
|
342
329
|
commandKey: "deleteTable"
|
|
343
330
|
})]
|
|
344
331
|
})
|
|
@@ -346,8 +333,8 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
346
333
|
})]
|
|
347
334
|
})
|
|
348
335
|
});
|
|
349
|
-
})),
|
|
350
|
-
const { model: t, entryKey: n, frame: o, ref:
|
|
336
|
+
})), D = (e) => {
|
|
337
|
+
const { model: t, entryKey: n, frame: o, ref: a, ...s } = e, r = i(), [c, d] = w((e) => e + 1, 0), m = r?.getSelection()?.getCoords()?.cell, g = b(() => {
|
|
351
338
|
if (!r) return null;
|
|
352
339
|
const e = r.getTables().getItems({ address: m });
|
|
353
340
|
return e.length > 0 ? e[0] : null;
|
|
@@ -356,30 +343,30 @@ var _ = "_table-style-options-container_1kfn2_1", P = "_table-style-options_1kfn
|
|
|
356
343
|
m,
|
|
357
344
|
c
|
|
358
345
|
]);
|
|
359
|
-
|
|
346
|
+
u(() => {
|
|
360
347
|
if (!g) return;
|
|
361
348
|
const e = g.addListeners({ onAnyChange: () => d() }, M);
|
|
362
349
|
return () => {
|
|
363
350
|
e?.();
|
|
364
351
|
};
|
|
365
|
-
}, [g]),
|
|
352
|
+
}, [g]), l(r, {
|
|
366
353
|
onSelectionChange: () => d(),
|
|
367
354
|
onStyleChange: () => d(),
|
|
368
355
|
onTablesChange: () => d(),
|
|
369
356
|
onAutoTableChange: () => d(),
|
|
370
357
|
onLayoutChange: () => d(),
|
|
371
358
|
onInvalidated: () => d()
|
|
372
|
-
},
|
|
373
|
-
const
|
|
374
|
-
return
|
|
375
|
-
ref:
|
|
359
|
+
}, I);
|
|
360
|
+
const h = p(() => r?.getStyles(), [r]), f = p(() => r?.getNames(), [r]);
|
|
361
|
+
return S(O, {
|
|
362
|
+
ref: a,
|
|
376
363
|
...s,
|
|
377
364
|
table: g,
|
|
378
|
-
getStyles:
|
|
365
|
+
getStyles: h,
|
|
379
366
|
getNames: f
|
|
380
367
|
});
|
|
381
|
-
},
|
|
368
|
+
}, I = {
|
|
382
369
|
transactional: !1,
|
|
383
370
|
ignoreModelChange: !0
|
|
384
371
|
}, M = { transactional: !1 };
|
|
385
|
-
export {
|
|
372
|
+
export { D as TableDetailsTaskPane };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|