@sheetxl/studio-mui 0.8.0-beta.14 → 0.8.0-beta.16
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/LICENSE.md +17 -7
- package/browser/esm/{DviYEVpPnQaWx-Tr.mjs → 2DGUEeY8au7Hbmze.mjs} +2 -2
- package/browser/esm/{D5ASCLEncVX6S3t7.mjs → 9V0gwYl3BcajPwBD.mjs} +2 -2
- package/browser/esm/B0mscuFChIInl6Mo.mjs +119 -0
- package/browser/esm/{cMMnySiLwLtz8_Zk.mjs → BGg5TSbhaUimavRf.mjs} +7 -7
- package/browser/esm/BL-h4RElQAdaeHPF.mjs +360 -0
- package/browser/esm/{XkkwDAFA6f5msXE4.mjs → BSrubs5qLEinR8Ew.mjs} +92 -87
- package/browser/esm/BUCQPr09aodgC88P.mjs +225 -0
- package/browser/esm/{BJn4i5eSKttOM7Va.mjs → Bg6bcIJsute7rxDL.mjs} +3 -3
- package/browser/esm/{b6OpGIOfqvVgPkpN.mjs → BjR7L3X6je3fXyQi.mjs} +2 -2
- package/browser/esm/{Cm7gnL7wtPzU7kH9.mjs → Bo_18UwXk7eK6QaM.mjs} +3 -3
- package/browser/esm/{C4-74xZS6PXqeP2-.mjs → Bp4rtdIKIFzTeJvr.mjs} +13 -9
- package/browser/esm/BxneVAXjYuQbCUQo.mjs +424 -0
- package/browser/esm/{BhurfBABcwf3sq1Y.mjs → C2V3kv29foh8dScC.mjs} +2 -2
- package/browser/esm/{4meV2QrzGwOTw-Wg.mjs → C8M4U_SswTd6auZd.mjs} +4 -4
- package/browser/esm/{DydtA0Kx0EIVeRVq.mjs → C9XRjC0yoGvS9Cm9.mjs} +3 -3
- package/browser/esm/{D1METLVOmQUWB2GY.mjs → CDgoQhayiKyo-7Br.mjs} +34 -33
- package/browser/esm/{DJytYYs6hwKzoGdK.mjs → CLgar8cakFC22X3w.mjs} +2 -2
- package/browser/esm/{DSMZVJXRlgHj6hnF.mjs → CUh56URLD9Vh5Ak9.mjs} +1807 -1200
- package/browser/esm/{D7SHK5F4crIKlHfX.mjs → CXgBRmauwDvHb3fQ.mjs} +2 -2
- package/browser/esm/{CM5uH7kPI6bp0Ynb.mjs → CYOaHHiaC7Ip5VLn.mjs} +2 -2
- package/browser/esm/C_qDBCzb8IHBlPhJ.mjs +294 -0
- package/browser/esm/{CouH7NfOLzq-7BFG.mjs → CfsYKmwU44jlvh2Y.mjs} +2 -2
- package/browser/esm/Ch1y4AkETfKCYDwf.mjs +106 -0
- package/browser/esm/{C7G22BSOh6ahi_YA.mjs → CnId_LC0EekuwaAF.mjs} +3 -3
- package/browser/esm/{DUMfNkupQUkMYbRX.mjs → CtVSJjciTocAi-ph.mjs} +3 -3
- package/browser/esm/{BSgsK2ctkA7acJ8B.mjs → CuQsEoKZJrSL989Q.mjs} +6 -6
- package/browser/esm/{B65gFGIGbaB2HJ7S.mjs → Cv99zJfRtzJQmM9a.mjs} +2 -2
- package/browser/esm/{9wRFUyQKqfHCPUiS.mjs → Cxk-oWZzE2jq5ul6.mjs} +3 -3
- package/browser/esm/{B0u4XScttbCbHUuj.mjs → D3XdTSymYMag6tor.mjs} +6 -6
- package/browser/esm/{BLWzmTXqRJp_rp2R.mjs → D4jGaUxHOgVc4qN0.mjs} +3 -3
- package/browser/esm/{D5ioZQTn_SJateKf.mjs → DAdhaGB933dfni3E.mjs} +3 -3
- package/browser/esm/{DYKsNTXsl78btQCN.mjs → DBx1Y3oFzB6gv-LQ.mjs} +3 -3
- package/browser/esm/{DROcTh8qOW1i6ktd.mjs → DIAnBUXPTvYAp5fm.mjs} +3 -3
- package/browser/esm/{CQmRcbXzQ2ZnzWkm.mjs → DIJh9jY37iVFn-tE.mjs} +2 -2
- package/browser/esm/{DC70OHr0cJy33grZ.mjs → DK1K-M9iJV-DK3lK.mjs} +2 -2
- package/browser/esm/{ATDkpSD6QYiZqoUd.mjs → DMhFcJsnKSKTDivl.mjs} +2 -2
- package/browser/esm/{C4UBegw-DrnYEN3U.mjs → DMj9kkIWw9chI5_u.mjs} +5 -5
- package/browser/esm/DUpW8HMoEhD3C9l6.mjs +235 -0
- package/browser/esm/{IF6KtCM-Yj_9GGEI.mjs → DVJ5AK0zcqSACGov.mjs} +9 -9
- package/browser/esm/{TJm3V2B1CMw1iZoU.mjs → DVaykBKx4eEsP4MI.mjs} +4 -4
- package/browser/esm/{Dh1o7OIOvCQaeaVN.mjs → Dex65RXS_A5CnMg3.mjs} +3 -3
- package/browser/esm/{DcF7yoU5XaD0TzDi.mjs → DfYtGsqDIMAG4Sp8.mjs} +2 -2
- package/browser/esm/{B2NGlVfdWvs2G_Fq.mjs → Dj0VEFe2ckEWgQjy.mjs} +5 -5
- package/browser/esm/{CSjn0SmASZfMzjJD.mjs → DjCDJhBfVI9O_Sq1.mjs} +6 -6
- package/browser/esm/DjjmLQLxU_U4JB3n.mjs +973 -0
- package/browser/esm/{dcZCjUD2UCAzFGTB.mjs → DmOrKFaiUUr5hlFl.mjs} +5 -4
- package/browser/esm/{BnRqW8S8uRFT1dsa.mjs → DoYSmj1LQHAAqt5b.mjs} +2 -2
- package/browser/esm/{DEu_fNm5LXqXGUqI.mjs → KhOxaZS8EeSaYFXZ.mjs} +2 -2
- package/browser/esm/{CqAaow0-s9wI-Zco.mjs → PvNtCGveCLbLAP3e.mjs} +14 -14
- package/browser/esm/{DGGNjWCfZChvgtCJ.mjs → ROOxAZY7YyHDmPcQ.mjs} +4 -4
- package/browser/esm/{C85QGz19eE9ggqzR.mjs → TfUaejwwWzu5qFVE.mjs} +3 -3
- package/browser/esm/{CeYt9oGNq5J48kA8.mjs → ZhI7zxDSTWb1DfaE.mjs} +3 -3
- package/browser/esm/{BPEGlembHUmOukt-.mjs → fqZt7Z0jR4illVKU.mjs} +5 -5
- package/browser/esm/index.mjs +278 -277
- package/browser/esm/{7GvHfNWduigxqNjI.mjs → r7bLyFzJfaGLKP_7.mjs} +2 -2
- package/browser/esm/{DGsTOxJVdwIgmFiF.mjs → tffjGixzP1Ze4DqB.mjs} +3 -3
- package/browser/esm/{CQ6F1l897Rr74YXa.mjs → tiC8hseLz66gO5BS.mjs} +804 -713
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{CnHJuuebdiYB4hU1.mjs → -Il_piuBrbndDROB.mjs} +2 -2
- package/node/esm/0cm_0VYweOBWmzi7.mjs +972 -0
- package/node/esm/{Ua-hzH0IDC5UU7I1.mjs → 1gdwmt5CrQy4cGTH.mjs} +2 -2
- package/node/esm/{BXq4h4T2V5D0e0GE.mjs → 3Geel3fylTwbPuxf.mjs} +2 -2
- package/node/esm/{BPbOKZTCABQS1v4l.mjs → 4pRKBhUYhbbE6qVT.mjs} +2 -2
- package/node/esm/{DV7GtbZngmzKJkGC.mjs → 9qIZWfzxSaxNk6Cm.mjs} +16 -15
- package/node/esm/B9uLfbf5gMGnoUjH.mjs +224 -0
- package/node/esm/{C2ZhJJ6JogM32N6v.mjs → BFO2WxwRNbu-UmKe.mjs} +3 -3
- package/node/esm/{DrZYqa9k2cas_dpR.mjs → BIJXqUbAalnd-gXD.mjs} +2 -2
- package/node/esm/{DLa2dwTHx-TF9X28.mjs → BIviFvkWx6eP4dMd.mjs} +12 -12
- package/node/esm/{By9Y6KcwsjQGiP4W.mjs → BTOCej61y3MazK6r.mjs} +2 -2
- package/node/esm/{DNhFkzvStZYjYqlY.mjs → BV9hUarSGd3mWC8o.mjs} +3 -3
- package/node/esm/{ChAnZ_8BZXB8xGku.mjs → BX1cTEV3SpcqLcXx.mjs} +81 -80
- package/node/esm/{DINEK8QwAC2xbcJg.mjs → BZu-8gEXwIzW_YX9.mjs} +2 -2
- package/node/esm/{Dua4HsVMCVMOSuUP.mjs → B_jOG6MlKoiboP3D.mjs} +3 -3
- package/node/esm/{a4ksKvzRiZRS-LjD.mjs → BgObBW8ZUr50OufC.mjs} +8 -8
- package/node/esm/{BIbJ-RvwV7EKR1AK.mjs → BhiuBl2z87xThV1b.mjs} +2 -2
- package/node/esm/{Cv_gkzf1CvleEpGx.mjs → Bm054Lh36PSa5m1P.mjs} +2 -2
- package/node/esm/BtxNP8JWe16vSXAs.mjs +106 -0
- package/node/esm/BzT_zks-KORaryRo.mjs +118 -0
- package/node/esm/{DfRwTR3tR0Wx5I0U.mjs → C5dRM0ExMHpFgKd0.mjs} +3 -3
- package/node/esm/{DKJDmlxmNG0mVHmb.mjs → CQxu_KONf2yyKKnD.mjs} +2 -2
- package/node/esm/{D9neYUsRInmBz-7P.mjs → CdoFRzEug2L0LwNb.mjs} +7 -7
- package/node/esm/{Hp0ggyjuRLoV7Zkw.mjs → Ch7Ebxf0bFrlCJpW.mjs} +2 -2
- package/node/esm/{GkXvPmel2BbE1Yvo.mjs → CsQTJ4JQRxLcJDiZ.mjs} +2 -2
- package/node/esm/{D1RBCi056McbAuVe.mjs → CyKOmz26TaZSFxmi.mjs} +3 -3
- package/node/esm/D3TsBlOewIFj-VDW.mjs +294 -0
- package/node/esm/{rSq-rFZ2oBrx0daL.mjs → D4TlOO7hjvqTR2HX.mjs} +3 -3
- package/node/esm/{CLArZpAFWoKR9UXC.mjs → DYNM5HfUK0JbGHsx.mjs} +2 -2
- package/node/esm/{B74EJtfb07jNPG2i.mjs → DhPNzztIuq9WJwCz.mjs} +3 -3
- package/node/esm/{CMsWjZqAF2n3PniO.mjs → cl-bDkq8M4STBYJy.mjs} +2 -2
- package/node/esm/fazR-cWd-2-W82Nk.mjs +425 -0
- package/node/esm/index.mjs +3391 -2778
- package/node/esm/{CzQvRTTBIzvSAQWs.mjs → iyOc5Rm5x746Qd3R.mjs} +2 -2
- package/node/esm/{D3BoGAsVExHN5pzo.mjs → klLaIOeBuqaYuz_q.mjs} +2 -2
- package/node/esm/{0TWX9zLKXvPj1qMo.mjs → mmzQ-lse6yBavXnw.mjs} +603 -514
- package/node/esm/{C29ReEXb9EK4DP6E.mjs → rpHmm4X81z1orjHr.mjs} +3 -3
- package/node/esm/{Y0a0MfNj9jzVeoRQ.mjs → tRnEFhRlzQPziQif.mjs} +2 -2
- package/package.json +10 -10
- package/resources/locales/de/groups.cmd.json +3 -0
- package/resources/locales/de/ui.msg.json +41 -0
- package/resources/locales/en/groups.cmd.json +3 -0
- package/resources/locales/en/ui.msg.json +41 -0
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/index.d.ts +1 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/workbook/DefaultRenderers.d.ts +10 -4
- package/browser/esm/BJPuzqf8wzAaSBCD.mjs +0 -1379
- package/browser/esm/CUBCWkB6A5HH4u5Q.mjs +0 -319
- package/browser/esm/DKnuzGrJHk4qI0Zi.mjs +0 -582
- package/node/esm/BbCPG2xTU1rpAM5l.mjs +0 -318
- package/node/esm/DtxnTVIKKE8mp6rU.mjs +0 -1379
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./DMhFcJsnKSKTDivl.mjs";
|
|
8
8
|
import { IFill as t, Table as n } from "@sheetxl/sdk";
|
|
9
9
|
import { StaticBorderRenderer as r, useGridColorScheme as i } from "@sheetxl/react";
|
|
10
10
|
import { CommandButtonType as a, useCallbackRef as o, useCommands as s, useTranslator as c } from "@sheetxl/utils-react";
|
|
@@ -40,10 +40,7 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
40
40
|
]), E = m(() => {
|
|
41
41
|
let e = [];
|
|
42
42
|
for (let t = 0; t < 5; t++) for (let n = 0; n < 5; n++) {
|
|
43
|
-
let r = T.getStyleAt(
|
|
44
|
-
colIndex: n,
|
|
45
|
-
rowIndex: t
|
|
46
|
-
});
|
|
43
|
+
let r = T.getStyleAt(t, n);
|
|
47
44
|
e.push(r);
|
|
48
45
|
}
|
|
49
46
|
return e;
|
|
@@ -128,92 +125,100 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
128
125
|
})
|
|
129
126
|
})
|
|
130
127
|
});
|
|
131
|
-
})), N = (e
|
|
128
|
+
})), N = (e) => ({
|
|
129
|
+
width: e.columns * e.cellWidth - (e.columns - 1),
|
|
130
|
+
height: e.rows * e.cellHeight - (e.rows - 1)
|
|
131
|
+
}), P = (e, t, n, r, i) => {
|
|
132
132
|
e.beginPath(), e.moveTo(t + .5, n + .5), e.lineTo(r + .5, i + .5), e.stroke();
|
|
133
|
-
},
|
|
134
|
-
let {
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
}, F = (e, n, r, i, a, o) => {
|
|
134
|
+
let { rows: s, columns: c } = n, l = [];
|
|
135
|
+
for (let e = 0; e < s; e++) for (let t = 0; t < c; t++) l.push(r(e, t));
|
|
136
|
+
let { width: u, height: d } = N(n);
|
|
137
|
+
e.width !== u && (e.width = u), e.height !== d && (e.height = d);
|
|
138
|
+
let f = e.getContext("2d", {
|
|
139
|
+
alpha: !1,
|
|
140
|
+
willReadFrequently: !0
|
|
141
|
+
});
|
|
142
|
+
if (!f) return null;
|
|
143
|
+
let p = n.cellWidth - 1, m = n.cellHeight - 1;
|
|
144
|
+
for (let e = 0; e < s; e++) for (let n = 0; n < c; n++) {
|
|
145
|
+
let r = l[e * c + n].getFill(), o = a;
|
|
146
|
+
r.getType() === t.Type.Solid ? o = r.getColor().toRGBA(i).toString() : r.getType() === t.Type.Gradient ? o = r.getStops()[0]?.getColor().toRGBA(i).toString() : r.getType() === t.Type.Pattern && (o = r.getForeground().toRGBA(i).toString()), f.fillStyle = o ?? a;
|
|
147
|
+
let s = n * p, u = e * m;
|
|
148
|
+
f.fillRect(s, u, p + 1, m + 1);
|
|
149
|
+
}
|
|
150
|
+
f.lineWidth = 1;
|
|
151
|
+
for (let e = 0; e < s; e++) for (let t = 0; t < c; t++) {
|
|
152
|
+
let n = l[e * c + t], r = t * p, a = e * m, s = n.getBorders();
|
|
153
|
+
if (!s.isEmpty()) {
|
|
154
|
+
let t = s.getLeft();
|
|
155
|
+
t.isNone() || (f.strokeStyle = t.getColor().toRGBA(i).toString(), P(f, r, a, r, a + m));
|
|
156
|
+
let n = s.getTop();
|
|
157
|
+
n.isNone() || (f.strokeStyle = n.getColor().toRGBA(i).toString(), P(f, r, a, r + p, e * m));
|
|
158
|
+
let o = s.getRight();
|
|
159
|
+
o.isNone() || (f.strokeStyle = o.getColor().toRGBA(i).toString(), P(f, r + p, a, r + p, a + m));
|
|
160
|
+
let c = s.getBottom();
|
|
161
|
+
c.isNone() || (f.strokeStyle = c.getColor().toRGBA(i).toString(), P(f, r, a + m, r + p, a + m));
|
|
162
|
+
}
|
|
163
|
+
if (o && !o(e, t)) continue;
|
|
164
|
+
f.strokeStyle = n.getFont().getColor().toRGBA(i).toString();
|
|
165
|
+
let u = Math.floor((m - 1 + 1) / 2), d = (p - 7) / 2;
|
|
166
|
+
P(f, t * p + d, e * m + u, t * p + d + 7, e * m + u);
|
|
167
|
+
}
|
|
168
|
+
return `url(${e.toDataURL()})`;
|
|
169
|
+
}, I = /* @__PURE__ */ new WeakMap(), L = {
|
|
170
|
+
rows: 5,
|
|
171
|
+
columns: 5,
|
|
172
|
+
cellWidth: 13,
|
|
173
|
+
cellHeight: 10
|
|
174
|
+
}, { width: R, height: z } = N(L), B = u(l((t, r) => {
|
|
175
|
+
let { table: a, tableStyle: o, styles: s, disabled: c, style: l, className: u, canvas: f, ...h } = t, g = i(), v = g === "dark", [y, b] = _(null), [x, S] = _(void 0), C = d((e) => {
|
|
176
|
+
b(e), typeof r == "function" ? r(e) : r && (r.current = e);
|
|
177
|
+
}, [r]);
|
|
137
178
|
p(() => {
|
|
138
|
-
|
|
139
|
-
}, [
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
142
|
-
let e =
|
|
179
|
+
y && S(getComputedStyle(y).getPropertyValue("--sxl-color-base-100").trim() || "#ffffff");
|
|
180
|
+
}, [y, g]);
|
|
181
|
+
let w = m(() => {
|
|
182
|
+
if (x === void 0) return null;
|
|
183
|
+
let e = a.toJSON();
|
|
143
184
|
if (!e) return null;
|
|
144
185
|
e.style = {
|
|
145
186
|
...e.style,
|
|
146
|
-
name:
|
|
187
|
+
name: o.getName()
|
|
147
188
|
};
|
|
148
|
-
let
|
|
149
|
-
if (
|
|
150
|
-
let
|
|
189
|
+
let t = x, r = s?.getTheme(), i = `${JSON.stringify(e.style)}|h${e.headerRowCount ?? 0}|t${e.totalsRowCount ?? 0}|${v ? "dark" : "light"}|${t}` + (o.isBuiltIn() ? "" : `|${JSON.stringify(o.toJSON())}`), c = r ? I.get(r) : void 0, l = c?.get(i);
|
|
190
|
+
if (l) return l;
|
|
191
|
+
let u = new n({
|
|
151
192
|
size: {
|
|
152
193
|
width: 5,
|
|
153
194
|
height: 5
|
|
154
195
|
},
|
|
155
196
|
json: e,
|
|
156
|
-
styles:
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
colIndex: t,
|
|
160
|
-
rowIndex: e
|
|
161
|
-
}));
|
|
162
|
-
let p = h;
|
|
163
|
-
if (h || (p = document.createElement("canvas")), !p) return null;
|
|
164
|
-
p.width !== 61 && (p.width = 61), p.height !== 46 && (p.height = 46);
|
|
165
|
-
let m = p.getContext("2d", {
|
|
166
|
-
alpha: !1,
|
|
167
|
-
willReadFrequently: !0
|
|
168
|
-
});
|
|
169
|
-
if (!m) return null;
|
|
170
|
-
for (let e = 0; e < 5; e++) for (let n = 0; n < 5; n++) {
|
|
171
|
-
let i = f[5 * e + n].getFill(), a = r;
|
|
172
|
-
i.getType() === t.Type.Solid ? a = i.getColor().toRGBA(y).toString() : i.getType() === t.Type.Gradient ? a = i.getStops()[0]?.getColor().toRGBA(y).toString() : i.getType() === t.Type.Pattern && (a = i.getForeground().toRGBA(y).toString()), m.fillStyle = a ?? r;
|
|
173
|
-
let o = n * 12, s = 9 * e;
|
|
174
|
-
m.fillRect(o, s, 13, 10);
|
|
175
|
-
}
|
|
176
|
-
m.lineWidth = 1;
|
|
177
|
-
for (let e = 0; e < 5; e++) for (let t = 0; t < 5; t++) {
|
|
178
|
-
let n = f[5 * e + t], r = t * 12, i = 9 * e, a = n.getBorders();
|
|
179
|
-
if (!a.isEmpty()) {
|
|
180
|
-
let t = a.getLeft();
|
|
181
|
-
t.isNone() || (m.strokeStyle = t.getColor().toRGBA(y).toString(), N(m, r, i, r, i + 9));
|
|
182
|
-
let n = a.getTop();
|
|
183
|
-
n.isNone() || (m.strokeStyle = n.getColor().toRGBA(y).toString(), N(m, r, i, r + 12, 9 * e));
|
|
184
|
-
let o = a.getRight();
|
|
185
|
-
o.isNone() || (m.strokeStyle = o.getColor().toRGBA(y).toString(), N(m, r + 12, i, r + 12, i + 9));
|
|
186
|
-
let s = a.getBottom();
|
|
187
|
-
s.isNone() || (m.strokeStyle = s.getColor().toRGBA(y).toString(), N(m, r, i + 9, r + 12, i + 9));
|
|
188
|
-
}
|
|
189
|
-
m.strokeStyle = n.getFont().getColor().toRGBA(y).toString();
|
|
190
|
-
let o = 2.5;
|
|
191
|
-
N(m, t * 12 + o, 9 * e + 4, t * 12 + o + 7, 9 * e + 4);
|
|
192
|
-
}
|
|
193
|
-
let g = `url(${p.toDataURL()})`;
|
|
194
|
-
return i && (l || (l = /* @__PURE__ */ new Map(), P.set(i, l)), l.set(a, g)), g;
|
|
197
|
+
styles: s
|
|
198
|
+
}), d = F(f ?? document.createElement("canvas"), L, (e, t) => u.getStyleAt(e, t), v, t);
|
|
199
|
+
return d ? (r && (c || (c = /* @__PURE__ */ new Map(), I.set(r, c)), c.set(i, d)), d) : null;
|
|
195
200
|
}, [
|
|
196
|
-
|
|
201
|
+
f,
|
|
202
|
+
a,
|
|
197
203
|
o,
|
|
198
204
|
s,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
S
|
|
205
|
+
v,
|
|
206
|
+
x
|
|
202
207
|
]);
|
|
203
208
|
return D("div", {
|
|
204
|
-
ref:
|
|
209
|
+
ref: C,
|
|
205
210
|
"data-sxl-theme-surface": "grid",
|
|
206
|
-
"data-sxl-theme-mode":
|
|
207
|
-
className: e("table-style-preview",
|
|
211
|
+
"data-sxl-theme-mode": g,
|
|
212
|
+
className: e("table-style-preview", u),
|
|
208
213
|
style: {
|
|
209
|
-
backgroundImage:
|
|
210
|
-
width:
|
|
211
|
-
height:
|
|
212
|
-
...
|
|
214
|
+
backgroundImage: w ?? void 0,
|
|
215
|
+
width: R,
|
|
216
|
+
height: z,
|
|
217
|
+
...l
|
|
213
218
|
},
|
|
214
|
-
...
|
|
219
|
+
...h
|
|
215
220
|
});
|
|
216
|
-
})),
|
|
221
|
+
})), V = u((e) => {
|
|
217
222
|
let { table: t, tableStyle: n, selectedTableStyleName: r, onSelectTableStyleName: i, styles: o, hasContextMenu: s = !0, disabled: l, useCanvasPreview: u = !0, canvas: f, ...p } = e, h = c(), g = d((e) => {
|
|
218
223
|
let t = {
|
|
219
224
|
variant: a.Menuitem,
|
|
@@ -271,7 +276,7 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
271
276
|
tableStyle: n,
|
|
272
277
|
styles: o
|
|
273
278
|
};
|
|
274
|
-
return u ? D(
|
|
279
|
+
return u ? D(B, {
|
|
275
280
|
canvas: f,
|
|
276
281
|
...e
|
|
277
282
|
}) : D(M, { ...e });
|
|
@@ -304,10 +309,10 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
304
309
|
renderPopupPanel: g,
|
|
305
310
|
children: C
|
|
306
311
|
})), C;
|
|
307
|
-
}),
|
|
312
|
+
}), H = u(l((e, t) => {
|
|
308
313
|
let { commandKey: r, selectedTable: i, onSelectTableStyleName: l, disabled: u, disabledQuickKey: p = !1, usePreviewIcon: h = !1, groupKey: b, ...S } = e, T = c(), A = s([r])[0], j = A?.getContext(), M = j?.styles, N = M?.(), P = i ?? j?.table?.() ?? null, F = "insertTable";
|
|
309
314
|
P && (F = "editTable");
|
|
310
|
-
let
|
|
315
|
+
let I = m(() => ((e, t) => new n({
|
|
311
316
|
size: {
|
|
312
317
|
width: 5,
|
|
313
318
|
height: 5
|
|
@@ -320,25 +325,25 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
320
325
|
totalsRowCount: 0,
|
|
321
326
|
style: e
|
|
322
327
|
}
|
|
323
|
-
}))(P?.getStyleOptions(), N), [N?.getTableStyles().getDefault(), P?.getStyleOptions()]),
|
|
328
|
+
}))(P?.getStyleOptions(), N), [N?.getTableStyles().getDefault(), P?.getStyleOptions()]), L = P ?? I, [R, z] = _(L);
|
|
324
329
|
f(() => {
|
|
325
|
-
|
|
326
|
-
}, [
|
|
327
|
-
let
|
|
330
|
+
z(L);
|
|
331
|
+
}, [L]);
|
|
332
|
+
let B = o((e) => {
|
|
328
333
|
l?.(e), A?.execute({ name: e });
|
|
329
334
|
}, [A, l]), H = g(null), U = d((e) => {
|
|
330
335
|
let t = {
|
|
331
|
-
onSelectTableStyleName:
|
|
336
|
+
onSelectTableStyleName: B,
|
|
332
337
|
styles: N
|
|
333
338
|
};
|
|
334
339
|
H.current ||= document.createElement("canvas");
|
|
335
340
|
let n = (e) => {
|
|
336
341
|
if (!e) return null;
|
|
337
342
|
let n = N?.getTableStyles().getByName(e);
|
|
338
|
-
return n ? D(
|
|
339
|
-
table:
|
|
343
|
+
return n ? D(V, {
|
|
344
|
+
table: R,
|
|
340
345
|
tableStyle: n,
|
|
341
|
-
selectedTableStyleName:
|
|
346
|
+
selectedTableStyleName: R.getStyleOptions().name,
|
|
342
347
|
canvas: H.current,
|
|
343
348
|
...t
|
|
344
349
|
}, e) : null;
|
|
@@ -407,12 +412,12 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
407
412
|
}, [
|
|
408
413
|
N,
|
|
409
414
|
N?.getTheme(),
|
|
410
|
-
|
|
415
|
+
R,
|
|
411
416
|
T
|
|
412
417
|
]), W = u ?? (!A || A.disabled()), G = m(() => {
|
|
413
418
|
if (!j || !h) return A?.getIcon();
|
|
414
419
|
}, [
|
|
415
|
-
|
|
420
|
+
R,
|
|
416
421
|
W,
|
|
417
422
|
A
|
|
418
423
|
]);
|
|
@@ -434,4 +439,4 @@ var A = "_sheetxl-reset_11z3j_1", j = 10, M = u(l((t, a) => {
|
|
|
434
439
|
...S
|
|
435
440
|
});
|
|
436
441
|
}));
|
|
437
|
-
export {
|
|
442
|
+
export { M as a, N as i, B as n, F as r, H as t };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { c as e, r as t } from "./C8M4U_SswTd6auZd.mjs";
|
|
8
|
+
import { t as n } from "./DMhFcJsnKSKTDivl.mjs";
|
|
9
|
+
import { DEFAULT_GRADIENT as ee, GradientEditor as r, PatternPopupButton as te, toGradientValue as i, toPatternSlots as a } from "./index.mjs";
|
|
10
|
+
import { a as o, i as s, o as c, r as l } from "./Ch1y4AkETfKCYDwf.mjs";
|
|
11
|
+
import { Color as u, IColor as d, IFill as f } from "@sheetxl/sdk";
|
|
12
|
+
import { useCallbackRef as p, useCommands as ne, useTranslator as m } from "@sheetxl/utils-react";
|
|
13
|
+
import { memo as h, useMemo as g } from "react";
|
|
14
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
15
|
+
import { Box as re, FormControl as ie, InputLabel as ae, MenuItem as b, Select as x } from "@mui/material";
|
|
16
|
+
import { messageKey as S } from "@sheetxl/utils";
|
|
17
|
+
var C = f.BuiltInSheetPattern.Gray125, w = new u(d.Named.Transparent), T = (e) => ({
|
|
18
|
+
fill: e.style.getFill(),
|
|
19
|
+
styles: e.styles,
|
|
20
|
+
schemeLookup: e.schemeLookup,
|
|
21
|
+
darkMode: e.darkMode,
|
|
22
|
+
disabled: e.disabled,
|
|
23
|
+
createCell: e.createCell,
|
|
24
|
+
applyFill: (t, n) => e.applyStyle({ fill: t }, n)
|
|
25
|
+
}), E = h((h) => {
|
|
26
|
+
let { selection: T, disabled: E, maxGradientStops: D, className: O, ...k } = h, A = m(), { fill: j, applyFill: M, createCell: oe, schemeLookup: N, styles: P, darkMode: F } = T, I = E || T.disabled, L = p((e, t) => {
|
|
27
|
+
M(e.fill, t);
|
|
28
|
+
}, [M]), R = j.getType(), z = R === f.Type.None ? f.Type.Solid : R, B = R === f.Type.Pattern ? j : null, V = B?.getPatternType() ?? C, H = B ? a(V, B.getForeground(), B.getBackground()) : null, U = g(() => new u(d.Scheme.Tx1, N), [N]), W = H?.foreground ?? U, G = H?.background ?? new u(d.Named.Transparent, N), K = R === f.Type.Solid ? j.getColor() : null, q = p(() => P.recentColors(), [P]), [J] = ne(["formatFillColor"]), Y = J?.getContext(), X = Y?.quickColor ?? null, se = p((e, t) => {
|
|
29
|
+
e && t && P.addRecentColor(e), Y?.onColorSelect?.(e), e ? L({ fill: {
|
|
30
|
+
type: f.Type.Solid,
|
|
31
|
+
color: e.toString()
|
|
32
|
+
} }, S("op.setFillColor")) : L({ fill: { type: f.Type.None } }, S("op.setFillNone"));
|
|
33
|
+
}, [
|
|
34
|
+
L,
|
|
35
|
+
P,
|
|
36
|
+
Y
|
|
37
|
+
]), Z = p((e) => {
|
|
38
|
+
let t = e.patternType ?? V, n = a(t, e.foreground ?? W.toString(), e.background ?? G.toString());
|
|
39
|
+
L({ fill: {
|
|
40
|
+
type: f.Type.Pattern,
|
|
41
|
+
patternType: t,
|
|
42
|
+
foreground: n.foreground,
|
|
43
|
+
background: n.background
|
|
44
|
+
} }, S("op.setFillPattern"));
|
|
45
|
+
}, [
|
|
46
|
+
L,
|
|
47
|
+
V,
|
|
48
|
+
W,
|
|
49
|
+
G
|
|
50
|
+
]), Q = p((e) => {
|
|
51
|
+
L({ fill: {
|
|
52
|
+
type: f.Type.Gradient,
|
|
53
|
+
gradientType: e.gradientType,
|
|
54
|
+
angle: e.angle,
|
|
55
|
+
stops: e.stops.map((e) => ({
|
|
56
|
+
offset: e.offset,
|
|
57
|
+
color: e.color
|
|
58
|
+
}))
|
|
59
|
+
} }, S("op.setFillGradient"));
|
|
60
|
+
}, [L]), ce = p((e) => {
|
|
61
|
+
if (e !== z) switch (e) {
|
|
62
|
+
case f.Type.Solid:
|
|
63
|
+
L({ fill: {
|
|
64
|
+
type: f.Type.Solid,
|
|
65
|
+
color: (X ?? j.getColor())?.toString() ?? "ffffff"
|
|
66
|
+
} }, S("op.setFillSolid"));
|
|
67
|
+
break;
|
|
68
|
+
case f.Type.Pattern:
|
|
69
|
+
Z({});
|
|
70
|
+
break;
|
|
71
|
+
case f.Type.Gradient: Q(ee);
|
|
72
|
+
}
|
|
73
|
+
}, [
|
|
74
|
+
z,
|
|
75
|
+
j,
|
|
76
|
+
X,
|
|
77
|
+
L,
|
|
78
|
+
Z,
|
|
79
|
+
Q
|
|
80
|
+
]), $ = p(() => {
|
|
81
|
+
switch (R) {
|
|
82
|
+
case f.Type.Pattern:
|
|
83
|
+
Z({});
|
|
84
|
+
break;
|
|
85
|
+
case f.Type.Gradient:
|
|
86
|
+
Q(i(j));
|
|
87
|
+
break;
|
|
88
|
+
case f.Type.Solid:
|
|
89
|
+
L({ fill: {
|
|
90
|
+
type: f.Type.Solid,
|
|
91
|
+
color: j.getColor().toString()
|
|
92
|
+
} }, S("op.setFillColor"));
|
|
93
|
+
break;
|
|
94
|
+
default: L({ fill: { type: f.Type.None } }, S("op.setFillNone"));
|
|
95
|
+
}
|
|
96
|
+
}, [
|
|
97
|
+
R,
|
|
98
|
+
j,
|
|
99
|
+
L,
|
|
100
|
+
Z,
|
|
101
|
+
Q
|
|
102
|
+
]);
|
|
103
|
+
return y(re, {
|
|
104
|
+
className: n("sxl-format-fill-panel", O),
|
|
105
|
+
sx: c,
|
|
106
|
+
...k,
|
|
107
|
+
children: [
|
|
108
|
+
v(s, { children: y(ie, {
|
|
109
|
+
size: "small",
|
|
110
|
+
fullWidth: !0,
|
|
111
|
+
children: [v(ae, {
|
|
112
|
+
shrink: !0,
|
|
113
|
+
children: A("fill.type")
|
|
114
|
+
}), y(x, {
|
|
115
|
+
label: A("fill.type"),
|
|
116
|
+
notched: !0,
|
|
117
|
+
disabled: I,
|
|
118
|
+
value: z,
|
|
119
|
+
onChange: (e) => ce(e.target.value),
|
|
120
|
+
children: [
|
|
121
|
+
v(b, {
|
|
122
|
+
value: f.Type.Solid,
|
|
123
|
+
onClick: o(z, f.Type.Solid, $),
|
|
124
|
+
children: A("fill.typeSolid")
|
|
125
|
+
}),
|
|
126
|
+
v(b, {
|
|
127
|
+
value: f.Type.Pattern,
|
|
128
|
+
onClick: o(z, f.Type.Pattern, $),
|
|
129
|
+
children: A("fill.typePattern")
|
|
130
|
+
}),
|
|
131
|
+
v(b, {
|
|
132
|
+
value: f.Type.Gradient,
|
|
133
|
+
onClick: o(z, f.Type.Gradient, $),
|
|
134
|
+
children: A("fill.typeGradient")
|
|
135
|
+
}),
|
|
136
|
+
R === f.Type.Image ? v(b, {
|
|
137
|
+
value: f.Type.Image,
|
|
138
|
+
disabled: !0,
|
|
139
|
+
children: A("fill.typeImage")
|
|
140
|
+
}) : null
|
|
141
|
+
]
|
|
142
|
+
})]
|
|
143
|
+
}) }),
|
|
144
|
+
z === f.Type.Solid ? v(s, {
|
|
145
|
+
label: A("fill.backgroundColor"),
|
|
146
|
+
children: v(l, { children: v(t, {
|
|
147
|
+
icon: "fill.colored",
|
|
148
|
+
disabled: I,
|
|
149
|
+
darkMode: F,
|
|
150
|
+
compareRGB: !0,
|
|
151
|
+
selectedColor: K,
|
|
152
|
+
onSelectColor: se,
|
|
153
|
+
propsPanel: {
|
|
154
|
+
disableAlpha: !0,
|
|
155
|
+
autoColor: w,
|
|
156
|
+
autoColorLabelKey: S("color.noFill"),
|
|
157
|
+
autoColorPosition: e.End,
|
|
158
|
+
schemeLookup: N,
|
|
159
|
+
recentColors: q
|
|
160
|
+
}
|
|
161
|
+
}) })
|
|
162
|
+
}) : null,
|
|
163
|
+
R === f.Type.Pattern ? y(_, { children: [
|
|
164
|
+
v(s, {
|
|
165
|
+
label: A("fill.patternStyle"),
|
|
166
|
+
children: v(l, { children: v(te, {
|
|
167
|
+
disabled: I,
|
|
168
|
+
darkMode: F,
|
|
169
|
+
selectedPattern: V,
|
|
170
|
+
foreground: W.toString(),
|
|
171
|
+
background: G.toString(),
|
|
172
|
+
createCell: oe,
|
|
173
|
+
onSelectPattern: (e) => Z({ patternType: e })
|
|
174
|
+
}) })
|
|
175
|
+
}),
|
|
176
|
+
v(s, {
|
|
177
|
+
label: A("fill.patternForeground"),
|
|
178
|
+
children: v(l, { children: v(t, {
|
|
179
|
+
disabled: I,
|
|
180
|
+
darkMode: F,
|
|
181
|
+
selectedColor: W,
|
|
182
|
+
onSelectColor: (e) => {
|
|
183
|
+
Z({ foreground: (e ?? U).toString() });
|
|
184
|
+
},
|
|
185
|
+
propsPanel: {
|
|
186
|
+
disableAlpha: !0,
|
|
187
|
+
autoColor: U,
|
|
188
|
+
schemeLookup: N,
|
|
189
|
+
recentColors: q
|
|
190
|
+
}
|
|
191
|
+
}) })
|
|
192
|
+
}),
|
|
193
|
+
v(s, {
|
|
194
|
+
label: A("fill.patternBackground"),
|
|
195
|
+
children: v(l, { children: v(t, {
|
|
196
|
+
disabled: I,
|
|
197
|
+
darkMode: F,
|
|
198
|
+
selectedColor: G,
|
|
199
|
+
onSelectColor: (e) => {
|
|
200
|
+
Z({ background: (e ?? w).toString() });
|
|
201
|
+
},
|
|
202
|
+
propsPanel: {
|
|
203
|
+
disableAlpha: !0,
|
|
204
|
+
autoColor: w,
|
|
205
|
+
autoColorLabelKey: S("color.noFill"),
|
|
206
|
+
schemeLookup: N,
|
|
207
|
+
recentColors: q
|
|
208
|
+
}
|
|
209
|
+
}) })
|
|
210
|
+
})
|
|
211
|
+
] }) : null,
|
|
212
|
+
R === f.Type.Gradient ? v(s, { children: v(r, {
|
|
213
|
+
disabled: I,
|
|
214
|
+
maxStops: D,
|
|
215
|
+
darkMode: F,
|
|
216
|
+
schemeLookup: N,
|
|
217
|
+
recentColors: q,
|
|
218
|
+
value: i(j),
|
|
219
|
+
onChange: Q
|
|
220
|
+
}) }) : null
|
|
221
|
+
]
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
E.displayName = "FillPanel";
|
|
225
|
+
export { T as n, E as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as t, n, r } from "./
|
|
7
|
+
import { a as e, i as t, n, r } from "./Bo_18UwXk7eK6QaM.mjs";
|
|
8
8
|
import { useTranslator as i } from "@sheetxl/utils-react";
|
|
9
9
|
import { useCallback as a, useState as o } from "react";
|
|
10
10
|
import { InternalWindow as s } from "@sheetxl/utils-mui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import e from "react";
|
|
8
8
|
var t = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./DMhFcJsnKSKTDivl.mjs";
|
|
8
8
|
import { Color as t, VERSION as n } from "@sheetxl/sdk";
|
|
9
9
|
import { useGridColorScheme as r } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as i, ReactUtils as a, RenderSlot as o, useTranslator as s } from "@sheetxl/utils-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { n as t } from "./
|
|
9
|
-
import { n } from "./
|
|
7
|
+
import { t as e } from "./DMhFcJsnKSKTDivl.mjs";
|
|
8
|
+
import { n as t } from "./DVaykBKx4eEsP4MI.mjs";
|
|
9
|
+
import { n } from "./DoYSmj1LQHAAqt5b.mjs";
|
|
10
10
|
import { Condition as r, FormulaError as i, FormulaText as a, ICondition as o, ScalarType as s, getLocaleProfile as c } from "@sheetxl/sdk";
|
|
11
11
|
import { ValueChecklist as l, useWorksheet as u } from "@sheetxl/react";
|
|
12
12
|
import { DynamicIcon as d, KeyCodes as f, RenderSlot as p, useCallbackRef as m, useLanguage as h, useMeasure as g, useTranslator as _ } from "@sheetxl/utils-react";
|
|
@@ -71,6 +71,7 @@ var q = 0, J = /* @__PURE__ */ new WeakMap(), oe = (e) => {
|
|
|
71
71
|
o.BuiltInOperatorNames.TextContains,
|
|
72
72
|
o.BuiltInOperatorNames.TextStartsWith,
|
|
73
73
|
o.BuiltInOperatorNames.TextEndsWith,
|
|
74
|
+
o.BuiltInOperatorNames.TextMatches,
|
|
74
75
|
o.BuiltInOperatorNames.TextEmail,
|
|
75
76
|
o.BuiltInOperatorNames.TextIsUrl
|
|
76
77
|
]), ue = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakMap(), de = (e, t) => (Y.set(e, t), e), fe = (e) => (t, n) => {
|
|
@@ -646,10 +647,13 @@ var Ne = x((e) => {
|
|
|
646
647
|
iconKey: "ExpandMore",
|
|
647
648
|
...e
|
|
648
649
|
}),
|
|
649
|
-
onChange: (e) =>
|
|
650
|
-
...t
|
|
651
|
-
|
|
652
|
-
|
|
650
|
+
onChange: (e) => {
|
|
651
|
+
let { anchorDate: r, ...i } = t ?? {};
|
|
652
|
+
n({
|
|
653
|
+
...i,
|
|
654
|
+
type: e.target.value
|
|
655
|
+
});
|
|
656
|
+
},
|
|
653
657
|
disabled: r,
|
|
654
658
|
children: a.map((e, t) => {
|
|
655
659
|
let n = [];
|