@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,318 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
|
|
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 { AutoColorPosition as e, ColorPopupButton as l, DEFAULT_GRADIENT as o, GradientEditor as r, InputField as t, PatternPopupButton as a, toGradientValue as n, toPatternSlots as i } from "./index.mjs";
|
|
8
|
-
import { Color as d, IColor as s, IFill as p } from "@sheetxl/sdk";
|
|
9
|
-
import { useCallbackRef as c, useCommands as u, useTranslator as m } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as y, useMemo as h, useRef as f } from "react";
|
|
11
|
-
import { Fragment as g, jsx as b, jsxs as C } from "react/jsx-runtime";
|
|
12
|
-
import { Box as T, FormControl as k, InputLabel as x, MenuItem as S, Select as F, Typography as N } from "@mui/material";
|
|
13
|
-
import { messageKey as P } from "@sheetxl/utils";
|
|
14
|
-
import v from "clsx";
|
|
15
|
-
var G = (e, l, o) => () => {
|
|
16
|
-
l === e && o();
|
|
17
|
-
}, w = y((e) => {
|
|
18
|
-
const { label: l, value: o, min: r, max: a, step: n = 1, decimals: i = !1, width: d, disabled: s, onChange: p } = e, c = f(null), u = (e) => Math.max(r, Math.min(a, e)), m = (e) => {
|
|
19
|
-
const l = i ? parseFloat(e) : parseInt(e, 10);
|
|
20
|
-
return Number.isNaN(l) ? null : u(l);
|
|
21
|
-
};
|
|
22
|
-
return b(t, {
|
|
23
|
-
label: l,
|
|
24
|
-
value: String(o),
|
|
25
|
-
disabled: s,
|
|
26
|
-
hideAdornment: !0,
|
|
27
|
-
helperText: null,
|
|
28
|
-
propsInput: {
|
|
29
|
-
type: "number",
|
|
30
|
-
min: r,
|
|
31
|
-
max: a,
|
|
32
|
-
step: n
|
|
33
|
-
},
|
|
34
|
-
sx: {
|
|
35
|
-
width: d,
|
|
36
|
-
minWidth: 0,
|
|
37
|
-
"& input": { textAlign: "right" }
|
|
38
|
-
},
|
|
39
|
-
onChangeInput: (e) => {
|
|
40
|
-
const l = m(e);
|
|
41
|
-
null !== l && (c.current = l, p(l));
|
|
42
|
-
},
|
|
43
|
-
onDone: (e) => {
|
|
44
|
-
const l = m(e) ?? u(0), o = c.current;
|
|
45
|
-
c.current = null, o !== l && p(l);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
w.displayName = "FormatNumberField";
|
|
50
|
-
var M = {
|
|
51
|
-
display: "flex",
|
|
52
|
-
flexDirection: "column",
|
|
53
|
-
gap: 1.5,
|
|
54
|
-
minWidth: 0
|
|
55
|
-
}, I = y((e) => {
|
|
56
|
-
const { label: l, children: o, sx: r, ...t } = e;
|
|
57
|
-
return C(T, {
|
|
58
|
-
sx: {
|
|
59
|
-
display: "flex",
|
|
60
|
-
flexDirection: "column",
|
|
61
|
-
gap: .75,
|
|
62
|
-
minWidth: 0,
|
|
63
|
-
...r
|
|
64
|
-
},
|
|
65
|
-
...t,
|
|
66
|
-
children: [l ? b(N, {
|
|
67
|
-
variant: "caption",
|
|
68
|
-
component: "div",
|
|
69
|
-
sx: {
|
|
70
|
-
color: "text.secondary",
|
|
71
|
-
lineHeight: 1.4
|
|
72
|
-
},
|
|
73
|
-
children: l
|
|
74
|
-
}) : null, o]
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
I.displayName = "FormatSection";
|
|
78
|
-
var L = y((e) => {
|
|
79
|
-
const { children: l, sx: o, ...r } = e;
|
|
80
|
-
return b(T, {
|
|
81
|
-
sx: {
|
|
82
|
-
display: "flex",
|
|
83
|
-
flexWrap: "wrap",
|
|
84
|
-
alignItems: "center",
|
|
85
|
-
gap: 1,
|
|
86
|
-
minWidth: 0,
|
|
87
|
-
...o
|
|
88
|
-
},
|
|
89
|
-
...r,
|
|
90
|
-
children: l
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
L.displayName = "FormatRow";
|
|
94
|
-
var W = y((e) => {
|
|
95
|
-
const { children: l, sx: o, ...r } = e;
|
|
96
|
-
return b(T, {
|
|
97
|
-
sx: {
|
|
98
|
-
display: "flex",
|
|
99
|
-
alignItems: "center",
|
|
100
|
-
gap: .25,
|
|
101
|
-
flexWrap: "wrap",
|
|
102
|
-
minWidth: 0,
|
|
103
|
-
...o
|
|
104
|
-
},
|
|
105
|
-
...r,
|
|
106
|
-
children: l
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
W.displayName = "FormatButtonGroup";
|
|
110
|
-
var A = p.BuiltInSheetPattern.Gray125, B = new d(s.Named.Transparent), D = (e) => ({
|
|
111
|
-
fill: e.style.getFill(),
|
|
112
|
-
styles: e.styles,
|
|
113
|
-
schemeLookup: e.schemeLookup,
|
|
114
|
-
darkMode: e.darkMode,
|
|
115
|
-
disabled: e.disabled,
|
|
116
|
-
createCell: e.createCell,
|
|
117
|
-
applyFill: (l, o) => e.applyStyle({ fill: l }, o)
|
|
118
|
-
}), R = y((t) => {
|
|
119
|
-
const { selection: y, disabled: f, maxGradientStops: N, className: w, ...W } = t, D = m(), { fill: R, applyFill: j, createCell: K, schemeLookup: q, styles: z, darkMode: E } = y, H = f || y.disabled, J = c((e, l) => {
|
|
120
|
-
j(e.fill, l);
|
|
121
|
-
}, [j]), O = R.getType(), Q = O === p.Type.None ? p.Type.Solid : O, U = O === p.Type.Pattern ? R : null, V = U?.getPatternType() ?? A, X = U ? i(V, U.getForeground(), U.getBackground()) : null, Y = h(() => new d(s.Scheme.Tx1, q), [q]), Z = X?.foreground ?? Y, $ = X?.background ?? new d(s.Named.Transparent, q), _ = O === p.Type.Solid ? R.getColor() : null, ee = c(() => z.recentColors(), [z]), [le] = u(["formatFillColor"]), oe = le?.getContext(), re = oe?.quickColor ?? null, te = c((e, l) => {
|
|
122
|
-
e && l && z.addRecentColor(e), oe?.onColorSelect?.(e), e ? J({ fill: {
|
|
123
|
-
type: p.Type.Solid,
|
|
124
|
-
color: e.toString()
|
|
125
|
-
} }, P("op.setFillColor")) : J({ fill: { type: p.Type.None } }, P("op.setFillNone"));
|
|
126
|
-
}, [
|
|
127
|
-
J,
|
|
128
|
-
z,
|
|
129
|
-
oe
|
|
130
|
-
]), ae = c((e) => {
|
|
131
|
-
const l = e.patternType ?? V, o = i(l, e.foreground ?? Z.toString(), e.background ?? $.toString());
|
|
132
|
-
J({ fill: {
|
|
133
|
-
type: p.Type.Pattern,
|
|
134
|
-
patternType: l,
|
|
135
|
-
foreground: o.foreground,
|
|
136
|
-
background: o.background
|
|
137
|
-
} }, P("op.setFillPattern"));
|
|
138
|
-
}, [
|
|
139
|
-
J,
|
|
140
|
-
V,
|
|
141
|
-
Z,
|
|
142
|
-
$
|
|
143
|
-
]), ne = c((e) => {
|
|
144
|
-
J({ fill: {
|
|
145
|
-
type: p.Type.Gradient,
|
|
146
|
-
gradientType: e.gradientType,
|
|
147
|
-
angle: e.angle,
|
|
148
|
-
stops: e.stops.map((e) => ({
|
|
149
|
-
offset: e.offset,
|
|
150
|
-
color: e.color
|
|
151
|
-
}))
|
|
152
|
-
} }, P("op.setFillGradient"));
|
|
153
|
-
}, [J]), ie = c((e) => {
|
|
154
|
-
if (e !== Q) switch (e) {
|
|
155
|
-
case p.Type.Solid:
|
|
156
|
-
J({ fill: {
|
|
157
|
-
type: p.Type.Solid,
|
|
158
|
-
color: (re ?? R.getColor())?.toString() ?? "ffffff"
|
|
159
|
-
} }, P("op.setFillSolid"));
|
|
160
|
-
break;
|
|
161
|
-
case p.Type.Pattern:
|
|
162
|
-
ae({});
|
|
163
|
-
break;
|
|
164
|
-
case p.Type.Gradient: ne(o);
|
|
165
|
-
}
|
|
166
|
-
}, [
|
|
167
|
-
Q,
|
|
168
|
-
R,
|
|
169
|
-
re,
|
|
170
|
-
J,
|
|
171
|
-
ae,
|
|
172
|
-
ne
|
|
173
|
-
]), de = c(() => {
|
|
174
|
-
switch (O) {
|
|
175
|
-
case p.Type.Pattern:
|
|
176
|
-
ae({});
|
|
177
|
-
break;
|
|
178
|
-
case p.Type.Gradient:
|
|
179
|
-
ne(n(R));
|
|
180
|
-
break;
|
|
181
|
-
case p.Type.Solid:
|
|
182
|
-
J({ fill: {
|
|
183
|
-
type: p.Type.Solid,
|
|
184
|
-
color: R.getColor().toString()
|
|
185
|
-
} }, P("op.setFillColor"));
|
|
186
|
-
break;
|
|
187
|
-
default: J({ fill: { type: p.Type.None } }, P("op.setFillNone"));
|
|
188
|
-
}
|
|
189
|
-
}, [
|
|
190
|
-
O,
|
|
191
|
-
R,
|
|
192
|
-
J,
|
|
193
|
-
ae,
|
|
194
|
-
ne
|
|
195
|
-
]);
|
|
196
|
-
return C(T, {
|
|
197
|
-
className: v("sxl-format-fill-panel", w),
|
|
198
|
-
sx: M,
|
|
199
|
-
...W,
|
|
200
|
-
children: [
|
|
201
|
-
b(I, { children: C(k, {
|
|
202
|
-
size: "small",
|
|
203
|
-
fullWidth: !0,
|
|
204
|
-
children: [b(x, {
|
|
205
|
-
shrink: !0,
|
|
206
|
-
children: D("fill.type")
|
|
207
|
-
}), C(F, {
|
|
208
|
-
label: D("fill.type"),
|
|
209
|
-
notched: !0,
|
|
210
|
-
disabled: H,
|
|
211
|
-
value: Q,
|
|
212
|
-
onChange: (e) => ie(e.target.value),
|
|
213
|
-
children: [
|
|
214
|
-
b(S, {
|
|
215
|
-
value: p.Type.Solid,
|
|
216
|
-
onClick: G(Q, p.Type.Solid, de),
|
|
217
|
-
children: D("fill.typeSolid")
|
|
218
|
-
}),
|
|
219
|
-
b(S, {
|
|
220
|
-
value: p.Type.Pattern,
|
|
221
|
-
onClick: G(Q, p.Type.Pattern, de),
|
|
222
|
-
children: D("fill.typePattern")
|
|
223
|
-
}),
|
|
224
|
-
b(S, {
|
|
225
|
-
value: p.Type.Gradient,
|
|
226
|
-
onClick: G(Q, p.Type.Gradient, de),
|
|
227
|
-
children: D("fill.typeGradient")
|
|
228
|
-
}),
|
|
229
|
-
O === p.Type.Image ? b(S, {
|
|
230
|
-
value: p.Type.Image,
|
|
231
|
-
disabled: !0,
|
|
232
|
-
children: D("fill.typeImage")
|
|
233
|
-
}) : null
|
|
234
|
-
]
|
|
235
|
-
})]
|
|
236
|
-
}) }),
|
|
237
|
-
Q === p.Type.Solid ? b(I, {
|
|
238
|
-
label: D("fill.backgroundColor"),
|
|
239
|
-
children: b(L, { children: b(l, {
|
|
240
|
-
icon: "fill.colored",
|
|
241
|
-
disabled: H,
|
|
242
|
-
darkMode: E,
|
|
243
|
-
compareRGB: !0,
|
|
244
|
-
selectedColor: _,
|
|
245
|
-
onSelectColor: te,
|
|
246
|
-
propsPanel: {
|
|
247
|
-
disableAlpha: !0,
|
|
248
|
-
autoColor: B,
|
|
249
|
-
autoColorLabelKey: P("color.noFill"),
|
|
250
|
-
autoColorPosition: e.End,
|
|
251
|
-
schemeLookup: q,
|
|
252
|
-
recentColors: ee
|
|
253
|
-
}
|
|
254
|
-
}) })
|
|
255
|
-
}) : null,
|
|
256
|
-
O === p.Type.Pattern ? C(g, { children: [
|
|
257
|
-
b(I, {
|
|
258
|
-
label: D("fill.patternStyle"),
|
|
259
|
-
children: b(L, { children: b(a, {
|
|
260
|
-
disabled: H,
|
|
261
|
-
darkMode: E,
|
|
262
|
-
selectedPattern: V,
|
|
263
|
-
foreground: Z.toString(),
|
|
264
|
-
background: $.toString(),
|
|
265
|
-
createCell: K,
|
|
266
|
-
onSelectPattern: (e) => ae({ patternType: e })
|
|
267
|
-
}) })
|
|
268
|
-
}),
|
|
269
|
-
b(I, {
|
|
270
|
-
label: D("fill.patternForeground"),
|
|
271
|
-
children: b(L, { children: b(l, {
|
|
272
|
-
disabled: H,
|
|
273
|
-
darkMode: E,
|
|
274
|
-
selectedColor: Z,
|
|
275
|
-
onSelectColor: (e) => {
|
|
276
|
-
ae({ foreground: (e ?? Y).toString() });
|
|
277
|
-
},
|
|
278
|
-
propsPanel: {
|
|
279
|
-
disableAlpha: !0,
|
|
280
|
-
autoColor: Y,
|
|
281
|
-
schemeLookup: q,
|
|
282
|
-
recentColors: ee
|
|
283
|
-
}
|
|
284
|
-
}) })
|
|
285
|
-
}),
|
|
286
|
-
b(I, {
|
|
287
|
-
label: D("fill.patternBackground"),
|
|
288
|
-
children: b(L, { children: b(l, {
|
|
289
|
-
disabled: H,
|
|
290
|
-
darkMode: E,
|
|
291
|
-
selectedColor: $,
|
|
292
|
-
onSelectColor: (e) => {
|
|
293
|
-
ae({ background: (e ?? B).toString() });
|
|
294
|
-
},
|
|
295
|
-
propsPanel: {
|
|
296
|
-
disableAlpha: !0,
|
|
297
|
-
autoColor: B,
|
|
298
|
-
autoColorLabelKey: P("color.noFill"),
|
|
299
|
-
schemeLookup: q,
|
|
300
|
-
recentColors: ee
|
|
301
|
-
}
|
|
302
|
-
}) })
|
|
303
|
-
})
|
|
304
|
-
] }) : null,
|
|
305
|
-
O === p.Type.Gradient ? b(I, { children: b(r, {
|
|
306
|
-
disabled: H,
|
|
307
|
-
maxStops: N,
|
|
308
|
-
darkMode: E,
|
|
309
|
-
schemeLookup: q,
|
|
310
|
-
recentColors: ee,
|
|
311
|
-
value: n(R),
|
|
312
|
-
onChange: ne
|
|
313
|
-
}) }) : null
|
|
314
|
-
]
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
R.displayName = "FillPanel";
|
|
318
|
-
export { L as a, M as c, w as i, D as n, I as o, W as r, G as s, R as t };
|