@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.12
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/{ByeL_BZuJ2kl8gtf.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/2nRxqrNYbmEn8fS8.mjs +386 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/BAzhmMX4Fk_qnUTp.mjs +414 -0
- package/browser/esm/BGL3x0W74D7qZXlf.mjs +318 -0
- package/browser/esm/BHGr2gsFofTdAFxq.mjs +515 -0
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BKhcJI-G15D3kGap.mjs} +4 -4
- package/browser/esm/BNbub9weuqm3mcoF.mjs +335 -0
- package/browser/esm/BSv9MVJaz1DVEffm.mjs +975 -0
- package/browser/esm/BWfLpYmd3cSgJ0C6.mjs +141 -0
- package/browser/esm/BZqwbIE8qzjSOYcJ.mjs +582 -0
- package/browser/esm/BZy9xUrYpAtnKeji.mjs +1288 -0
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → BnkwC5rsg9LZyhoP.mjs} +3 -3
- package/browser/esm/BpJsBv413cNQpyg0.mjs +319 -0
- package/browser/esm/BpVrgbVISiTDyFR3.mjs +197 -0
- package/browser/esm/BsngRDhvVYGVBJeK.mjs +1546 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → C8p2iMad_NNCwGI_.mjs} +5 -5
- package/browser/esm/CBzXksWnb-1gGEWZ.mjs +212 -0
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → CFIAWgpU3UyepLBn.mjs} +25 -24
- package/browser/esm/CJD4jF4m9cBGHzr_.mjs +31 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/CeF35ZeFP28Do5Zx.mjs +1379 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → Cq82lvdjyBvlJ8xJ.mjs} +19 -17
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/Cvk2yY90hpgXWMAt.mjs +103 -0
- package/browser/esm/D0slJycx3nq53qmf.mjs +14 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/D5Fn0Hqllwv5HY6i.mjs +7581 -0
- package/browser/esm/D5N4nGaZsXtrHAOh.mjs +831 -0
- package/browser/esm/D7AqPfyhMiuda5l5.mjs +412 -0
- package/browser/esm/DHZA48ZMCETvHmeP.mjs +161 -0
- package/browser/esm/DX2_vf7WX6uRLaOZ.mjs +94 -0
- package/browser/esm/DaxpbAF1ShkT7hNU.mjs +490 -0
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → Db3oHfXiRtcH015t.mjs} +162 -156
- package/browser/esm/Dt47Huh1l3C4_5_w.mjs +87 -0
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → DuuyN4-7K6_io2Py.mjs} +3 -3
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/PY3Br5Bo_TxcCnCU.mjs +252 -0
- package/browser/esm/WIhvQtBkGiw-oFUs.mjs +2566 -0
- package/browser/esm/WgIvwAENeO8LANax.mjs +437 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +1053 -192
- package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +236 -0
- package/browser/esm/lKXEDVt2ow1NlWJj.mjs +392 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → oC0OwOddhOD0OoCJ.mjs} +6 -6
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → BBGoyqs2L_ccSH1e.mjs} +40 -40
- package/node/esm/BLv99aovW4R3C5PE.mjs +515 -0
- package/node/esm/BUGU_5lUtnCRlp3n.mjs +519 -0
- package/node/esm/BalROFG_oa9PFs9Q.mjs +141 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/C3FCh9xju2SccUIE.mjs +1283 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/CKWeipCqqpLnLE5e.mjs +391 -0
- package/node/esm/CTnVNfz4eqFnM92M.mjs +212 -0
- package/node/esm/Cfi_ly8fBDZZdiZT.mjs +72 -0
- package/node/esm/CgKa6JuyJ1tTodev.mjs +1703 -0
- package/node/esm/{cqzp431iNSLWictb.mjs → Cq53M7bAUSXMNq1f.mjs} +22 -22
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/D72CupF9mfy2D1Xa.mjs +94 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DJFkALt4XrwkMbnU.mjs} +163 -157
- package/node/esm/DJpwI8PlKBI2rk0r.mjs +319 -0
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DQaGPUYbgL4Y5YZW.mjs} +32 -30
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → DsNYnq4NtYBxPmeA.mjs} +20 -20
- package/node/esm/DygDgOpa9sJ6YFVS.mjs +385 -0
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/M7YxvRPGCuxuk9aK.mjs +142 -0
- package/node/esm/QNjtpX8rIpqGGLEJ.mjs +1379 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/dm8dmEaTIqfmgyeL.mjs +412 -0
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → fmya3XQnTGyQisvT.mjs} +2 -2
- package/node/esm/gPYAb_A0T5ZwcQ1E.mjs +318 -0
- package/node/esm/index.mjs +8915 -13417
- package/node/esm/wB8xMpyJ_NvE16yG.mjs +975 -0
- package/node/esm/zGAcd4Jr7wkvXDBS.mjs +197 -0
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +100 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- package/resources/locales/en/ui.msg.json +100 -1
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/index.d.ts +1 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/useFormatSelection.d.ts +4 -4
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
- package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
- package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
- package/types/src/index.d.ts +15 -6
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +10 -10
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +31 -19
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/CtEFHbzYNvYjDYvi.mjs +0 -236
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYVLi0md4AYuDsB_.mjs +0 -236
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
|
|
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 };
|