@sheetxl/studio-mui 0.8.0-beta.21 → 0.8.0-beta.22
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/{DypNzviXLejO7EFy.mjs → 4fBGyv6A2TxumCq-.mjs} +1 -1
- package/browser/esm/{MvwrF55lxVF8jCRR.mjs → 94tsNi06fbT_N5QP.mjs} +1 -1
- package/browser/esm/{D6K4M0lTty-YfNwL.mjs → B73fvq9CvO4zWnAU.mjs} +3 -3
- package/browser/esm/{BTmU9XLPvYrHSqNS.mjs → BChPnCMzvz7cXxgX.mjs} +2 -2
- package/browser/esm/{Cn9HHObOgyeO5n59.mjs → BKwBJsEKNY-Zg8CB.mjs} +2 -2
- package/browser/esm/{CSc97nFWptJgbzHm.mjs → BOlLywIc0l3AgTeQ.mjs} +3 -3
- package/browser/esm/{3FkSn_nCNgxZsgIL.mjs → BYtWtukbMjjvrpmO.mjs} +6 -6
- package/browser/esm/{DqZOeLxpTB81KRea.mjs → B_N6a3iKw4osibIz.mjs} +1 -1
- package/browser/esm/{19wMLMJtWK0oeEVt.mjs → BfiIvcOXqUoxIFoz.mjs} +2 -2
- package/browser/esm/{BloQOjPg78u-EF02.mjs → BhT_uJEPxlXpMzZA.mjs} +35 -42
- package/browser/esm/{ATq4TDNCeji9EzyV.mjs → BuAIHmOwBspXtuLo.mjs} +4 -4
- package/browser/esm/{0NmmzX7YcGCZAfjR.mjs → C-LSHx-5EgUmc44h.mjs} +6 -6
- package/browser/esm/{DBiaGhkvzLnkUxgI.mjs → C-rODYmI2nVNJxkV.mjs} +2 -2
- package/browser/esm/{BCBAzHaXN9AV8sab.mjs → C1F9o-e9q6m9MuOd.mjs} +651 -651
- package/browser/esm/{-z5Wfuc02L-6kq1M.mjs → C1tObUn9YlTLNn25.mjs} +2 -2
- package/browser/esm/{BB_QvUAlMtL59z9o.mjs → C3lvgNO_MVml-Awy.mjs} +2 -2
- package/browser/esm/{DDraGX98UQjilEmH.mjs → CJlwai18BnsJScjr.mjs} +2 -2
- package/browser/esm/{DR9p8nTF7Ac49NOk.mjs → CMPdCzAvGvFQ_NOu.mjs} +2 -2
- package/browser/esm/{C_Gs7_-MyIUFd3GO.mjs → COFmQH3tB3uvu0v4.mjs} +1 -1
- package/browser/esm/{CTBTpY09hkS1rzas.mjs → CSgrMpZ0rZKxXZyj.mjs} +4 -4
- package/browser/esm/{BseH-4GXYtDqvoqT.mjs → CStCc2wP7hmm92t1.mjs} +2 -2
- package/browser/esm/{R475WpaxeXiWizBi.mjs → CXvLc2JRNpJ9CiWw.mjs} +3 -3
- package/browser/esm/{C2RXFrmqZeD3QqPh.mjs → CgtckX24zzJUIsPm.mjs} +4 -4
- package/browser/esm/{oFMJAOPBUVDkFSdk.mjs → CoVFWmiy6hWV8rPy.mjs} +4 -4
- package/browser/esm/{DI2OTnABUBEmEaqR.mjs → CqmCCdvSBl4ksHpK.mjs} +4 -4
- package/browser/esm/{C1XWND0Zi7LMcsm_.mjs → CtNLEdf5v8pGcG3C.mjs} +2 -2
- package/browser/esm/{iXPWuBCZoCbVaYmX.mjs → CuL7ggWqWMgPSTYd.mjs} +1 -1
- package/browser/esm/{COetbYqMtkntH82m.mjs → CwBN8jwNndijQgmx.mjs} +1 -1
- package/browser/esm/{4V2MEotoMq61137z.mjs → CzhTxHyYCZp4qxKC.mjs} +2 -2
- package/browser/esm/{CNcmM3o7opgAuBgV.mjs → D26ZjloyA6kyqhCO.mjs} +2 -2
- package/browser/esm/{CmFDMGxQc2IWNQrh.mjs → D3H9iUvXD2rOEXUz.mjs} +3 -3
- package/browser/esm/{Dhw4RvCFZ7-lER3m.mjs → DB44ddihGazQSGaZ.mjs} +1 -1
- package/browser/esm/{Bv82Dlpi9aSgFTW7.mjs → DCjDYZjRl7IH3hl7.mjs} +1 -1
- package/browser/esm/{XpFIJoW5f7WrDl7A.mjs → DEMQ4FkP_kNZF_wE.mjs} +1 -1
- package/browser/esm/{Dtnkv-g21i8s_DmS.mjs → DNdSq8U8iqBPrwOo.mjs} +1 -1
- package/browser/esm/{CS3J1M5x0VrJ3ndM.mjs → DQbt4DNrmq-Uhlgk.mjs} +8 -8
- package/browser/esm/{DsJPi1PsaB1T96tB.mjs → DXRtL-ZwbSMLfMWu.mjs} +1 -1
- package/browser/esm/{_ufgBrmZqc27mJTC.mjs → DaCPqL3R4JLbgfKh.mjs} +2 -2
- package/browser/esm/{Bi0lTIkuP-DeqJcH.mjs → DdyE9R4gSZNhRZb0.mjs} +5 -5
- package/browser/esm/{DP7rdmsD5vllWV3a.mjs → De5GPX3SbEvetD0y.mjs} +1 -1
- package/browser/esm/{CgaSjzrOnWuwOhIc.mjs → Df0ygc7YMQG-3ATr.mjs} +1 -1
- package/browser/esm/{BbJU08YmJt-_qBF6.mjs → Df13XIFEDDEusmq6.mjs} +2 -2
- package/browser/esm/{BzqmYkLttNHqg63Q.mjs → DkWzWQNmOvX1iJXV.mjs} +2 -2
- package/browser/esm/{n8uT2YLiULcikick.mjs → Dq5jd89jluXcrOEE.mjs} +5 -5
- package/browser/esm/{BEf9LRQrSZ8r-xAT.mjs → DqFTGLVzd9DQ8EhO.mjs} +20 -20
- package/browser/esm/{prIPxnV06vnSprPI.mjs → Dqa4YY-GeaELqOWP.mjs} +2 -2
- package/browser/esm/{JbP9J8Lps9opfBEE.mjs → DrMsUvIwtq9dARmW.mjs} +4 -4
- package/browser/esm/{Drf5SnYtXPKJrneG.mjs → Dt3cLYWyjIUhoGv5.mjs} +2 -2
- package/browser/esm/{XHu8ZHNIkE6wwhdW.mjs → IrJcYpXt_8rkAXkj.mjs} +3 -3
- package/browser/esm/{D56YnBeIxJlew7m_.mjs → PujeLGgr7jXdyoVl.mjs} +1 -1
- package/browser/esm/{CL-QL6Z7zajam81k.mjs → UkGnqCkXqASlUdkb.mjs} +4 -4
- package/browser/esm/{CQUfTuoSCwqQ0IMS.mjs → dAjSLtkpLCkJDkhU.mjs} +1 -1
- package/browser/esm/{iOjNj5iTG7nRxxjs.mjs → eA3xhEFzK_Y-f3m3.mjs} +5 -5
- package/browser/esm/{DlXxfHGCzQyswKls.mjs → es5d1Dk1vs-XYLkm.mjs} +2 -2
- package/browser/esm/{pCVoTlBjzq5Y0YwO.mjs → h0wby0g03NYV4-XW.mjs} +5 -5
- package/browser/esm/index.mjs +17 -17
- package/browser/esm/{B5WTcQ5DGtwQ0jkI.mjs → ov0v-5BfNGRojfXZ.mjs} +2 -2
- package/browser/esm/{BRnkoDWmbvG8C1_N.mjs → t7Y081CM2JBXwlh-.mjs} +1 -1
- package/browser/esm/{BqbKAlU_mHU6NhT9.mjs → veW5ER4LND6O438J.mjs} +1 -1
- package/browser/esm/{CFBHs4m2-BlqZkEr.mjs → vsSZOEJBDfjVM46M.mjs} +2 -2
- package/node/esm/{B_07uId4kB51FCtK.mjs → B5dbA7OTeRHtdFKK.mjs} +4 -4
- package/node/esm/{D_3Mcts9e87EORIi.mjs → BI4aQ23a2wqqskmY.mjs} +475 -475
- package/node/esm/{DpHH7fvV8jCBbKt5.mjs → BML2jZO-vGc6RS51.mjs} +2 -2
- package/node/esm/{Bv3K0CqiXzYTm7CK.mjs → BNJBkYIYk2zyHoU3.mjs} +1 -1
- package/node/esm/{DJi__4aWX4wwGjnt.mjs → BPGz9KUMwgtyF6LG.mjs} +1 -1
- package/node/esm/{BYf9hvHJuKJNqqZO.mjs → BjpAc-kSpia0lwjr.mjs} +1 -1
- package/node/esm/{BORgnY9dptVfd8wC.mjs → Bn2kMFZYznOun538.mjs} +1 -1
- package/node/esm/{CEQmZUAgMA3rIxe_.mjs → Bppef7aHA2mOZ_sn.mjs} +1 -1
- package/node/esm/{C75b6boqKp33EdpB.mjs → Bu647iy66qiv3-qM.mjs} +2 -2
- package/node/esm/{CaMuiNImC2zQQykf.mjs → BuDVpL6sgPNGIN7T.mjs} +1 -1
- package/node/esm/{CRkzp1_dyeM1KUud.mjs → Bzi3tHPQ3b7BGbwU.mjs} +1 -1
- package/node/esm/{BUqtenzZROfaeBgh.mjs → C4qWN7D3UW8jLaZK.mjs} +4 -4
- package/node/esm/{SNaalbjzQGIMnqPC.mjs → C9dfS-Tk6WGogUSV.mjs} +2 -2
- package/node/esm/{Bsug_5tyxbKlPnjZ.mjs → CF8UfOyBsfrrOyAH.mjs} +2 -2
- package/node/esm/{DMqVb7WqCzqQX3wx.mjs → CM2JoqeXwIblrqJM.mjs} +2 -2
- package/node/esm/{B5izshUZ2MRDNb5s.mjs → CTsTUI34q8TBkdX5.mjs} +1 -1
- package/node/esm/{cQkfTTXKtrzzwTj_.mjs → Caf_ZRpLHj97cmhq.mjs} +1 -1
- package/node/esm/{CnPQj9mRZUhQycvE.mjs → CawfjLMD5X08VllQ.mjs} +2 -2
- package/node/esm/{Bb5tJ1TuwZePhOI_.mjs → CbE22c6PmT_9BusX.mjs} +1 -1
- package/node/esm/{RqUCi1IOUIuPSFCu.mjs → CcLCu4TIukHypMCt.mjs} +2 -2
- package/node/esm/{Iji4gCNbD66TvfOS.mjs → D1QZYBh1NZInkWaZ.mjs} +2 -2
- package/node/esm/{CAr94CzmtttReoYz.mjs → DBB9QhddMWoyCmju.mjs} +2 -2
- package/node/esm/{66U7xo0GBu80pE9I.mjs → DLQ1x8uASVrHgCX2.mjs} +1 -1
- package/node/esm/{Cv-r7t8eamR5ZFiz.mjs → DLt7HmhROlJ1V8bV.mjs} +1 -1
- package/node/esm/{DB0nWZ9I881Gdoeo.mjs → DRigWgmIaYtEv5Lk.mjs} +1 -1
- package/node/esm/{BePpjuTMltMTtgmp.mjs → DY96atQfGYmZ90TD.mjs} +4 -4
- package/node/esm/{b32Mry1LI41o7I1O.mjs → Dg5D5zMNzygUWk51.mjs} +2 -2
- package/node/esm/{DxoOobdO06D16DYc.mjs → Dj16Fzha7o7DGv6z.mjs} +2 -2
- package/node/esm/{sKtXhZg7VoFWiL32.mjs → DomLgHu8aLIg6y2l.mjs} +1 -1
- package/node/esm/{4dZy4IT0suoxZvbK.mjs → DrBGMrwOCXerStOS.mjs} +2 -2
- package/node/esm/{b_lG4702kLpmFvGb.mjs → Dv8pWn_FIH1LYneP.mjs} +2 -2
- package/node/esm/{D4ZsBsKhm6gdi5wO.mjs → DxRENk3CWrgvcnJj.mjs} +2 -2
- package/node/esm/{DoRaGvL9s79NZAYU.mjs → G7AEbATGEFC09W8Z.mjs} +1 -1
- package/node/esm/{CiIW_yB_qnJV5RUA.mjs → GeB-AGYaOLPf4xIa.mjs} +127 -134
- package/node/esm/{9Kq__XyQDKWxOU37.mjs → JieSP-_GeRIfiW8Z.mjs} +2 -2
- package/node/esm/{CyOrPZTUqjp45ABy.mjs → bXPPrX3OxYcCm85J.mjs} +1 -1
- package/node/esm/{Dz9GxMRQzPtOpqNo.mjs → eCWrCiaQxjPKI08p.mjs} +1 -1
- package/node/esm/index.mjs +14 -14
- package/node/esm/{S1sK514tY4D0vLiA.mjs → tt1hY7OYeKg-gSFj.mjs} +1 -1
- package/node/esm/{BCUH7DA5M8FLcqxw.mjs → wC3tHWypFfvBG8Fu.mjs} +1 -1
- package/package.json +9 -9
|
@@ -1,20 +1,20 @@
|
|
|
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.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { AutoColorPosition as e, BorderPopupButton as o, ColorPopupButton as l, FormulaField as t, PresetChip as n, S as a, _ as r, a as i, b as d, d as s, f as c, g as p, h as
|
|
8
|
-
import { n as S, t as F } from "./
|
|
9
|
-
import { Color as T, CommonUtils as k, ICellStyle as w, ICondition as P, IConditionalFormat as I, IFill as N, IFont as
|
|
10
|
-
import { COLOR_SCALE_PRESETS as
|
|
7
|
+
import { AutoColorPosition as e, BorderPopupButton as o, ColorPopupButton as l, FormulaField as t, PresetChip as n, S as a, _ as r, a as i, b as d, d as s, f as c, g as p, h as m, i as u, l as h, m as g, n as y, p as x, r as C, v, x as f, y as b } from "./index.mjs";
|
|
8
|
+
import { n as S, t as F } from "./CM2JoqeXwIblrqJM.mjs";
|
|
9
|
+
import { Color as T, CommonUtils as k, ICellStyle as w, ICondition as P, IConditionalFormat as I, IFill as N, IFont as B } from "@sheetxl/sdk";
|
|
10
|
+
import { COLOR_SCALE_PRESETS as M, DATA_BAR_PRESETS as O, ICON_CATALOG as z, IconSetGlyphs as R, NO_CELL_ICON as A, STYLE_PRESETS as D, defaultColorScale as j, defaultDataBar as W, defaultIconSet as $, defaultIconStops as K, getConditionalIconSet as E, iconSetSize as U, resolveIconSetIcons as L, useModelSync as _, withIconOverride as G } from "@sheetxl/react";
|
|
11
11
|
import { DynamicIcon as V, useTranslator as H } from "@sheetxl/utils-react";
|
|
12
12
|
import { forwardRef as Y, memo as q, useCallback as J, useMemo as Q, useRef as X } from "react";
|
|
13
13
|
import { ExhibitPopupIconButton as Z, defaultRenderPopupPanel as ee } from "@sheetxl/utils-mui";
|
|
14
14
|
import { Fragment as oe, jsx as le, jsxs as te } from "react/jsx-runtime";
|
|
15
|
-
import { Box as ne, Checkbox as ae, FormControl as re, FormControlLabel as ie, InputLabel as de, MenuItem as se, Paper as ce, Select as pe, Tab as
|
|
15
|
+
import { Box as ne, Checkbox as ae, FormControl as re, FormControlLabel as ie, InputLabel as de, MenuItem as se, Paper as ce, Select as pe, Tab as me, Tabs as ue, TextField as he, ToggleButton as ge, ToggleButtonGroup as ye, Typography as xe } from "@mui/material";
|
|
16
16
|
import { messageKey as Ce } from "@sheetxl/utils";
|
|
17
|
-
var
|
|
17
|
+
var ve = q((e) => {
|
|
18
18
|
const { variant: o = "format", children: l, sx: t, ...n } = e;
|
|
19
19
|
return le(ne, {
|
|
20
20
|
className: `sxl-cf-rule-section sxl-cf-rule-section-${o}`,
|
|
@@ -33,34 +33,34 @@ var fe = q((e) => {
|
|
|
33
33
|
children: l
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
|
|
37
|
-
var
|
|
36
|
+
ve.displayName = "RuleSection";
|
|
37
|
+
var fe = new T("transparent"), be = {
|
|
38
38
|
lightRedFillDarkRedText: Ce("conditionalFormat.preset.lightRedFillDarkRedText"),
|
|
39
39
|
yellowFillDarkYellowText: Ce("conditionalFormat.preset.yellowFillDarkYellowText"),
|
|
40
40
|
greenFillDarkGreenText: Ce("conditionalFormat.preset.greenFillDarkGreenText"),
|
|
41
41
|
lightRedFill: Ce("conditionalFormat.preset.lightRedFill"),
|
|
42
42
|
redText: Ce("conditionalFormat.preset.redText"),
|
|
43
43
|
redBorder: Ce("conditionalFormat.preset.redBorder")
|
|
44
|
-
}, Se = (e) => e ? "string" == typeof e ? e : e.type === N.Type.None ? null : e.color ?? e.foreground ?? null : null, Fe = (e, o) => "auto" === e ? null :
|
|
45
|
-
const { format: r, onFormatChange: i, readOnly: d, ...s } = t, c = H(), { workbook: p, schemeLookup:
|
|
44
|
+
}, Se = (e) => e ? "string" == typeof e ? e : e.type === N.Type.None ? null : e.color ?? e.foreground ?? null : null, Fe = (e, o) => "auto" === e ? null : f(e, o), Te = q((t) => {
|
|
45
|
+
const { format: r, onFormatChange: i, readOnly: d, ...s } = t, c = H(), { workbook: p, schemeLookup: m, themeKey: u, darkMode: h, propsColorPanel: g } = a(), y = r?.font ?? null, x = (y?.weight ?? 400) >= 600, C = y?.style === B.Style.Italic, v = !!y?.underline && y.underline !== B.UnderlineStyle.None, f = !!y?.strike && y.strike !== B.StrikeStyle.None, b = (e) => {
|
|
46
46
|
const o = { ...y };
|
|
47
47
|
for (const [l, t] of Object.entries(e)) void 0 === t ? delete o[l] : o[l] = t;
|
|
48
48
|
const l = { ...r };
|
|
49
49
|
0 === Object.keys(o).length ? delete l.font : l.font = o, i(0 === Object.keys(l).length ? null : l);
|
|
50
|
-
}, S = Q(() => p?.getStyles().getNormal().getFont().getColor(), [p,
|
|
50
|
+
}, S = Q(() => p?.getStyles().getNormal().getFont().getColor(), [p, u]), F = Q(() => Fe(y?.color, p), [
|
|
51
51
|
y?.color,
|
|
52
52
|
p,
|
|
53
|
-
|
|
53
|
+
u
|
|
54
54
|
]), T = Q(() => Fe(Se(r?.fill), p), [
|
|
55
55
|
r?.fill,
|
|
56
56
|
p,
|
|
57
|
-
|
|
57
|
+
u
|
|
58
58
|
]), k = {
|
|
59
59
|
padding: "4px",
|
|
60
60
|
border: "none",
|
|
61
61
|
borderRadius: 1
|
|
62
62
|
};
|
|
63
|
-
return te(
|
|
63
|
+
return te(ve, {
|
|
64
64
|
...s,
|
|
65
65
|
children: [te(ne, {
|
|
66
66
|
sx: {
|
|
@@ -112,7 +112,7 @@ var ve = new T("transparent"), be = {
|
|
|
112
112
|
gap: .25
|
|
113
113
|
},
|
|
114
114
|
children: [
|
|
115
|
-
le(
|
|
115
|
+
le(ge, {
|
|
116
116
|
value: "bold",
|
|
117
117
|
size: "small",
|
|
118
118
|
sx: k,
|
|
@@ -121,40 +121,40 @@ var ve = new T("transparent"), be = {
|
|
|
121
121
|
onChange: () => b({ weight: x ? void 0 : 700 }),
|
|
122
122
|
children: le(V, { iconKey: "TextBold" })
|
|
123
123
|
}),
|
|
124
|
-
le(
|
|
124
|
+
le(ge, {
|
|
125
125
|
value: "italic",
|
|
126
126
|
size: "small",
|
|
127
127
|
sx: k,
|
|
128
128
|
selected: C,
|
|
129
129
|
disabled: d,
|
|
130
|
-
onChange: () => b({ style: C ? void 0 :
|
|
130
|
+
onChange: () => b({ style: C ? void 0 : B.Style.Italic }),
|
|
131
131
|
children: le(V, { iconKey: "TextItalic" })
|
|
132
132
|
}),
|
|
133
|
-
le(
|
|
133
|
+
le(ge, {
|
|
134
134
|
value: "underline",
|
|
135
135
|
size: "small",
|
|
136
136
|
sx: k,
|
|
137
|
-
selected:
|
|
137
|
+
selected: v,
|
|
138
138
|
disabled: d,
|
|
139
|
-
onChange: () => b({ underline:
|
|
139
|
+
onChange: () => b({ underline: v ? void 0 : B.UnderlineStyle.Single }),
|
|
140
140
|
children: le(V, { iconKey: "TextUnderline" })
|
|
141
141
|
}),
|
|
142
|
-
le(
|
|
142
|
+
le(ge, {
|
|
143
143
|
value: "strike",
|
|
144
144
|
size: "small",
|
|
145
145
|
sx: k,
|
|
146
|
-
selected:
|
|
146
|
+
selected: f,
|
|
147
147
|
disabled: d,
|
|
148
|
-
onChange: () => b({ strike:
|
|
148
|
+
onChange: () => b({ strike: f ? void 0 : B.StrikeStyle.Single }),
|
|
149
149
|
children: le(V, { iconKey: "TextStrike" })
|
|
150
150
|
}),
|
|
151
151
|
p && le(o, {
|
|
152
152
|
tooltip: c("conditionalFormat.border"),
|
|
153
153
|
selectedBorder: r?.borders,
|
|
154
154
|
createBorder: (e) => p.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
|
|
155
|
-
schemeLookup:
|
|
155
|
+
schemeLookup: m,
|
|
156
156
|
autoColor: S,
|
|
157
|
-
darkMode:
|
|
157
|
+
darkMode: h,
|
|
158
158
|
disabled: d,
|
|
159
159
|
onSelectBorder: (e) => ((e) => {
|
|
160
160
|
const o = { ...r };
|
|
@@ -173,13 +173,13 @@ var ve = new T("transparent"), be = {
|
|
|
173
173
|
color: e.toString()
|
|
174
174
|
} : delete o.fill, i(0 === Object.keys(o).length ? null : o);
|
|
175
175
|
})(e),
|
|
176
|
-
darkMode:
|
|
176
|
+
darkMode: h,
|
|
177
177
|
propsPanel: {
|
|
178
178
|
disableAlpha: !0,
|
|
179
|
-
autoColor:
|
|
179
|
+
autoColor: fe,
|
|
180
180
|
autoColorLabelKey: Ce("color.noFill"),
|
|
181
181
|
autoColorPosition: e.End,
|
|
182
|
-
...
|
|
182
|
+
...g
|
|
183
183
|
}
|
|
184
184
|
}),
|
|
185
185
|
le(l, {
|
|
@@ -188,11 +188,11 @@ var ve = new T("transparent"), be = {
|
|
|
188
188
|
selectedColor: F,
|
|
189
189
|
disabled: d,
|
|
190
190
|
onSelectColor: (e) => b({ color: e ? e.toString() : void 0 }),
|
|
191
|
-
darkMode:
|
|
191
|
+
darkMode: h,
|
|
192
192
|
propsPanel: {
|
|
193
193
|
disableAlpha: !0,
|
|
194
194
|
autoColor: S,
|
|
195
|
-
...
|
|
195
|
+
...g
|
|
196
196
|
}
|
|
197
197
|
})
|
|
198
198
|
]
|
|
@@ -215,14 +215,14 @@ var ke = {
|
|
|
215
215
|
I.ColorStopType.Min,
|
|
216
216
|
I.ColorStopType.Max
|
|
217
217
|
]), Pe = q((e) => {
|
|
218
|
-
const { label: o, stop: n, onStopChange: r, allowedTypes: d, showColor: s = !1, leading: c, showExclusive: p = !1, readOnly:
|
|
218
|
+
const { label: o, stop: n, onStopChange: r, allowedTypes: d, showColor: s = !1, leading: c, showExclusive: p = !1, readOnly: m, ...u } = e, h = H(), { darkMode: g, toColor: y, propsColorPanel: x } = a(), C = i(), v = n.type ?? I.ColorStopType.Num, f = !we.has(v), b = m || !f, S = v === I.ColorStopType.Formula, F = n.value?.isIFormula ? n.value : null, T = n.color, k = s ? y(T) : null;
|
|
219
219
|
return te(ne, {
|
|
220
220
|
sx: {
|
|
221
221
|
display: "flex",
|
|
222
222
|
alignItems: "center",
|
|
223
223
|
gap: .5
|
|
224
224
|
},
|
|
225
|
-
...
|
|
225
|
+
...u,
|
|
226
226
|
children: [
|
|
227
227
|
void 0 !== o && le(xe, {
|
|
228
228
|
variant: "caption",
|
|
@@ -237,16 +237,16 @@ var ke = {
|
|
|
237
237
|
}),
|
|
238
238
|
c,
|
|
239
239
|
s && le(l, {
|
|
240
|
-
tooltip:
|
|
240
|
+
tooltip: h("conditionalFormat.stopColor"),
|
|
241
241
|
selectedColor: k,
|
|
242
|
-
disabled:
|
|
242
|
+
disabled: m,
|
|
243
243
|
onSelectColor: (e) => {
|
|
244
244
|
e && r({
|
|
245
245
|
...n,
|
|
246
246
|
color: e.toString()
|
|
247
247
|
});
|
|
248
248
|
},
|
|
249
|
-
darkMode:
|
|
249
|
+
darkMode: g,
|
|
250
250
|
propsPanel: {
|
|
251
251
|
disableAlpha: !0,
|
|
252
252
|
...x
|
|
@@ -255,7 +255,7 @@ var ke = {
|
|
|
255
255
|
p && te(pe, {
|
|
256
256
|
size: "small",
|
|
257
257
|
value: n.exclusive ? "gt" : "gte",
|
|
258
|
-
disabled:
|
|
258
|
+
disabled: m,
|
|
259
259
|
onChange: (e) => {
|
|
260
260
|
const o = { ...n };
|
|
261
261
|
"gt" === e.target.value ? o.exclusive = !0 : delete o.exclusive, r(o);
|
|
@@ -274,8 +274,8 @@ var ke = {
|
|
|
274
274
|
}),
|
|
275
275
|
le(pe, {
|
|
276
276
|
size: "small",
|
|
277
|
-
value:
|
|
278
|
-
disabled:
|
|
277
|
+
value: v,
|
|
278
|
+
disabled: m,
|
|
279
279
|
onChange: (e) => ((e) => {
|
|
280
280
|
const o = {
|
|
281
281
|
...n,
|
|
@@ -296,7 +296,7 @@ var ke = {
|
|
|
296
296
|
},
|
|
297
297
|
children: d.map((e) => le(se, {
|
|
298
298
|
value: e,
|
|
299
|
-
children:
|
|
299
|
+
children: h(ke[e])
|
|
300
300
|
}, e))
|
|
301
301
|
}),
|
|
302
302
|
S ? le(t, {
|
|
@@ -309,7 +309,7 @@ var ke = {
|
|
|
309
309
|
value: e.trim().length > 0 ? C.compile(e) : e
|
|
310
310
|
});
|
|
311
311
|
},
|
|
312
|
-
placeholder:
|
|
312
|
+
placeholder: h("conditionalFormat.enterFormula"),
|
|
313
313
|
disabled: b,
|
|
314
314
|
equals: "bare",
|
|
315
315
|
pickAs: "absolute",
|
|
@@ -321,11 +321,11 @@ var ke = {
|
|
|
321
321
|
minWidth: 0,
|
|
322
322
|
"& .MuiInputBase-root": { backgroundColor: b ? "action.disabledBackground" : "background.paper" }
|
|
323
323
|
}
|
|
324
|
-
}) : le(
|
|
324
|
+
}) : le(he, {
|
|
325
325
|
size: "small",
|
|
326
326
|
type: "number",
|
|
327
|
-
placeholder:
|
|
328
|
-
value:
|
|
327
|
+
placeholder: f ? void 0 : h("conditionalFormat.stopFromData"),
|
|
328
|
+
value: f ? `${n.value ?? ""}` : "",
|
|
329
329
|
disabled: b,
|
|
330
330
|
onChange: (e) => {
|
|
331
331
|
const o = e.target.value;
|
|
@@ -368,7 +368,7 @@ var Ie = [
|
|
|
368
368
|
gap: 1
|
|
369
369
|
},
|
|
370
370
|
...r,
|
|
371
|
-
children: [le(
|
|
371
|
+
children: [le(ve, { children: te(ne, {
|
|
372
372
|
sx: {
|
|
373
373
|
display: "flex",
|
|
374
374
|
alignItems: "flex-start",
|
|
@@ -382,11 +382,11 @@ var Ie = [
|
|
|
382
382
|
gap: .5,
|
|
383
383
|
flexWrap: "wrap"
|
|
384
384
|
},
|
|
385
|
-
children:
|
|
385
|
+
children: M.filter((e) => e.stops.length === (2 === c.length ? 2 : 3)).map((e, o) => le(n, {
|
|
386
386
|
sheet: !0,
|
|
387
387
|
disabled: t,
|
|
388
388
|
onClick: () => l(structuredClone(e)),
|
|
389
|
-
children: le(
|
|
389
|
+
children: le(v, { rows: b(e.stops ?? [], m, d) })
|
|
390
390
|
}, o))
|
|
391
391
|
}), te(ye, {
|
|
392
392
|
exclusive: !0,
|
|
@@ -417,7 +417,7 @@ var Ie = [
|
|
|
417
417
|
})(t);
|
|
418
418
|
},
|
|
419
419
|
sx: { flex: "0 0 auto" },
|
|
420
|
-
children: [le(
|
|
420
|
+
children: [le(ge, {
|
|
421
421
|
value: 2,
|
|
422
422
|
sx: {
|
|
423
423
|
textTransform: "none",
|
|
@@ -425,7 +425,7 @@ var Ie = [
|
|
|
425
425
|
pb: .25
|
|
426
426
|
},
|
|
427
427
|
children: i("conditionalFormat.twoColor")
|
|
428
|
-
}), le(
|
|
428
|
+
}), le(ge, {
|
|
429
429
|
value: 3,
|
|
430
430
|
sx: {
|
|
431
431
|
textTransform: "none",
|
|
@@ -435,7 +435,7 @@ var Ie = [
|
|
|
435
435
|
children: i("conditionalFormat.threeColor")
|
|
436
436
|
})]
|
|
437
437
|
})]
|
|
438
|
-
}) }), le(
|
|
438
|
+
}) }), le(ve, {
|
|
439
439
|
variant: "config",
|
|
440
440
|
children: c.map((e, n) => le(Pe, {
|
|
441
441
|
label: i(p[Math.min(n, p.length - 1)]),
|
|
@@ -455,14 +455,14 @@ var Ie = [
|
|
|
455
455
|
});
|
|
456
456
|
});
|
|
457
457
|
Ne.displayName = "ColorScaleRulePanel";
|
|
458
|
-
var
|
|
458
|
+
var Be = [
|
|
459
459
|
I.ColorStopType.AutoMin,
|
|
460
460
|
I.ColorStopType.Min,
|
|
461
461
|
I.ColorStopType.Num,
|
|
462
462
|
I.ColorStopType.Percent,
|
|
463
463
|
I.ColorStopType.Percentile,
|
|
464
464
|
I.ColorStopType.Formula
|
|
465
|
-
],
|
|
465
|
+
], Me = [
|
|
466
466
|
I.ColorStopType.AutoMax,
|
|
467
467
|
I.ColorStopType.Max,
|
|
468
468
|
I.ColorStopType.Num,
|
|
@@ -470,11 +470,11 @@ var Me = [
|
|
|
470
470
|
I.ColorStopType.Percentile,
|
|
471
471
|
I.ColorStopType.Formula
|
|
472
472
|
], Oe = "__auto__", ze = q((e) => {
|
|
473
|
-
const { scale: o, onScaleChange: t, readOnly: r, ...i } = e, s = H(), { darkMode: c, toColor: p, propsColorPanel:
|
|
473
|
+
const { scale: o, onScaleChange: t, readOnly: r, ...i } = e, s = H(), { darkMode: c, toColor: p, propsColorPanel: m } = a(), u = p(o.color), h = p(o.negativeFillColor), g = p(o.borderColor), y = p(o.negativeBorderColor), x = o.solidFill ?? !1, C = (e) => {
|
|
474
474
|
const l = { ...o };
|
|
475
475
|
for (const [o, t] of Object.entries(e)) void 0 === t ? delete l[o] : l[o] = t;
|
|
476
476
|
t(l);
|
|
477
|
-
},
|
|
477
|
+
}, f = { backgroundColor: "background.paper" };
|
|
478
478
|
return te(ne, {
|
|
479
479
|
sx: {
|
|
480
480
|
display: "flex",
|
|
@@ -482,7 +482,7 @@ var Me = [
|
|
|
482
482
|
gap: 1
|
|
483
483
|
},
|
|
484
484
|
...i,
|
|
485
|
-
children: [te(
|
|
485
|
+
children: [te(ve, { children: [
|
|
486
486
|
te(ne, {
|
|
487
487
|
sx: {
|
|
488
488
|
display: "flex",
|
|
@@ -497,35 +497,35 @@ var Me = [
|
|
|
497
497
|
gap: .5,
|
|
498
498
|
flexWrap: "wrap"
|
|
499
499
|
},
|
|
500
|
-
children: O.filter((e) => (e.
|
|
500
|
+
children: O.filter((e) => (e.solidFill ?? !1) === x).map((e, o) => le(n, {
|
|
501
501
|
sheet: !0,
|
|
502
502
|
disabled: r,
|
|
503
|
-
onClick: () =>
|
|
503
|
+
onClick: () => C({
|
|
504
504
|
color: e.color,
|
|
505
|
-
|
|
505
|
+
solidFill: e.solidFill,
|
|
506
506
|
borderColor: e.borderColor
|
|
507
507
|
}),
|
|
508
|
-
children: le(
|
|
508
|
+
children: le(v, { rows: d(e, p(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
|
|
509
509
|
}, o))
|
|
510
510
|
}), te(ye, {
|
|
511
511
|
exclusive: !0,
|
|
512
512
|
size: "small",
|
|
513
|
-
value:
|
|
513
|
+
value: x,
|
|
514
514
|
disabled: r,
|
|
515
515
|
onChange: (e, o) => {
|
|
516
|
-
null !== o &&
|
|
516
|
+
null !== o && C({ solidFill: !!o || void 0 });
|
|
517
517
|
},
|
|
518
518
|
sx: { flex: "0 0 auto" },
|
|
519
|
-
children: [le(
|
|
520
|
-
value: !
|
|
519
|
+
children: [le(ge, {
|
|
520
|
+
value: !0,
|
|
521
521
|
sx: {
|
|
522
522
|
textTransform: "none",
|
|
523
523
|
pt: .25,
|
|
524
524
|
pb: .25
|
|
525
525
|
},
|
|
526
526
|
children: s("conditionalFormat.solidFill")
|
|
527
|
-
}), le(
|
|
528
|
-
value: !
|
|
527
|
+
}), le(ge, {
|
|
528
|
+
value: !1,
|
|
529
529
|
sx: {
|
|
530
530
|
textTransform: "none",
|
|
531
531
|
pt: .25,
|
|
@@ -540,7 +540,7 @@ var Me = [
|
|
|
540
540
|
size: "small",
|
|
541
541
|
checked: !1 === o.showValue,
|
|
542
542
|
disabled: r,
|
|
543
|
-
onChange: (e) =>
|
|
543
|
+
onChange: (e) => C({ showValue: !e.target.checked && void 0 })
|
|
544
544
|
}),
|
|
545
545
|
label: le(xe, {
|
|
546
546
|
variant: "body2",
|
|
@@ -565,25 +565,25 @@ var Me = [
|
|
|
565
565
|
le(l, {
|
|
566
566
|
icon: "fill.colored",
|
|
567
567
|
tooltip: s("conditionalFormat.barColor"),
|
|
568
|
-
selectedColor:
|
|
568
|
+
selectedColor: u,
|
|
569
569
|
disabled: r,
|
|
570
|
-
onSelectColor: (e) =>
|
|
570
|
+
onSelectColor: (e) => C({ color: e ? e.toString() : void 0 }),
|
|
571
571
|
darkMode: c,
|
|
572
572
|
propsPanel: {
|
|
573
573
|
disableAlpha: !0,
|
|
574
|
-
...
|
|
574
|
+
...m
|
|
575
575
|
}
|
|
576
576
|
}),
|
|
577
577
|
le(l, {
|
|
578
578
|
icon: "stroke.colored",
|
|
579
579
|
tooltip: s("conditionalFormat.barBorderColor"),
|
|
580
|
-
selectedColor:
|
|
580
|
+
selectedColor: g,
|
|
581
581
|
disabled: r,
|
|
582
|
-
onSelectColor: (e) =>
|
|
582
|
+
onSelectColor: (e) => C({ borderColor: e ? e.toString() : void 0 }),
|
|
583
583
|
darkMode: c,
|
|
584
584
|
propsPanel: {
|
|
585
585
|
disableAlpha: !0,
|
|
586
|
-
...
|
|
586
|
+
...m
|
|
587
587
|
}
|
|
588
588
|
})
|
|
589
589
|
]
|
|
@@ -606,31 +606,31 @@ var Me = [
|
|
|
606
606
|
le(l, {
|
|
607
607
|
icon: "fill.colored",
|
|
608
608
|
tooltip: s("conditionalFormat.negativeColor"),
|
|
609
|
-
selectedColor: h ??
|
|
609
|
+
selectedColor: h ?? u,
|
|
610
610
|
disabled: r,
|
|
611
|
-
onSelectColor: (e) =>
|
|
611
|
+
onSelectColor: (e) => C({ negativeFillColor: e ? e.toString() : void 0 }),
|
|
612
612
|
darkMode: c,
|
|
613
613
|
propsPanel: {
|
|
614
614
|
disableAlpha: !0,
|
|
615
|
-
...
|
|
615
|
+
...m
|
|
616
616
|
}
|
|
617
617
|
}),
|
|
618
618
|
le(l, {
|
|
619
619
|
icon: "stroke.colored",
|
|
620
620
|
tooltip: s("conditionalFormat.negativeBorderColor"),
|
|
621
|
-
selectedColor:
|
|
621
|
+
selectedColor: y ?? g,
|
|
622
622
|
disabled: r,
|
|
623
|
-
onSelectColor: (e) =>
|
|
623
|
+
onSelectColor: (e) => C({ negativeBorderColor: e ? e.toString() : void 0 }),
|
|
624
624
|
darkMode: c,
|
|
625
625
|
propsPanel: {
|
|
626
626
|
disableAlpha: !0,
|
|
627
|
-
...
|
|
627
|
+
...m
|
|
628
628
|
}
|
|
629
629
|
}),
|
|
630
630
|
le(n, {
|
|
631
631
|
title: s("conditionalFormat.sameAsPositive"),
|
|
632
632
|
disabled: r || !o.negativeFillColor && !o.negativeBorderColor,
|
|
633
|
-
onClick: () =>
|
|
633
|
+
onClick: () => C({
|
|
634
634
|
negativeFillColor: void 0,
|
|
635
635
|
negativeBorderColor: void 0
|
|
636
636
|
}),
|
|
@@ -661,10 +661,10 @@ var Me = [
|
|
|
661
661
|
label: s("conditionalFormat.axis"),
|
|
662
662
|
value: o.axisPosition ?? Oe,
|
|
663
663
|
disabled: r,
|
|
664
|
-
sx:
|
|
664
|
+
sx: f,
|
|
665
665
|
onChange: (e) => {
|
|
666
666
|
const o = e.target.value;
|
|
667
|
-
|
|
667
|
+
C({ axisPosition: o === Oe ? void 0 : o });
|
|
668
668
|
},
|
|
669
669
|
children: [
|
|
670
670
|
le(se, {
|
|
@@ -691,10 +691,10 @@ var Me = [
|
|
|
691
691
|
label: s("conditionalFormat.direction"),
|
|
692
692
|
value: o.direction ?? Oe,
|
|
693
693
|
disabled: r,
|
|
694
|
-
sx:
|
|
694
|
+
sx: f,
|
|
695
695
|
onChange: (e) => {
|
|
696
696
|
const o = e.target.value;
|
|
697
|
-
|
|
697
|
+
C({ direction: o === Oe ? void 0 : o });
|
|
698
698
|
},
|
|
699
699
|
children: [
|
|
700
700
|
le(se, {
|
|
@@ -713,33 +713,26 @@ var Me = [
|
|
|
713
713
|
})]
|
|
714
714
|
})]
|
|
715
715
|
})
|
|
716
|
-
] }), te(
|
|
716
|
+
] }), te(ve, {
|
|
717
717
|
variant: "config",
|
|
718
718
|
children: [le(Pe, {
|
|
719
719
|
label: s("conditionalFormat.stop.minimum"),
|
|
720
|
-
stop:
|
|
721
|
-
allowedTypes:
|
|
720
|
+
stop: o.minPoint ?? { type: I.ColorStopType.Min },
|
|
721
|
+
allowedTypes: Be,
|
|
722
722
|
readOnly: r,
|
|
723
|
-
onStopChange: (e) => {
|
|
724
|
-
const o = m.slice();
|
|
725
|
-
o[0] = e, v({ stops: o });
|
|
726
|
-
}
|
|
723
|
+
onStopChange: (e) => C({ minPoint: e })
|
|
727
724
|
}), le(Pe, {
|
|
728
725
|
label: s("conditionalFormat.stop.maximum"),
|
|
729
|
-
stop:
|
|
730
|
-
allowedTypes:
|
|
726
|
+
stop: o.maxPoint ?? { type: I.ColorStopType.Max },
|
|
727
|
+
allowedTypes: Me,
|
|
731
728
|
readOnly: r,
|
|
732
|
-
onStopChange: (e) => {
|
|
733
|
-
const o = m.slice();
|
|
734
|
-
for (; o.length < 2;) o.push({ type: I.ColorStopType.AutoMax });
|
|
735
|
-
o[1] = e, v({ stops: o });
|
|
736
|
-
}
|
|
729
|
+
onStopChange: (e) => C({ maxPoint: e })
|
|
737
730
|
})]
|
|
738
731
|
})]
|
|
739
732
|
});
|
|
740
733
|
});
|
|
741
734
|
ze.displayName = "DataBarRulePanel";
|
|
742
|
-
var
|
|
735
|
+
var Re = Ce("conditionalFormat.noCellIcon"), Ae = Ce("conditionalFormat.cellIcon"), De = {
|
|
743
736
|
borderColor: "primary.main",
|
|
744
737
|
boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
|
|
745
738
|
}, je = {
|
|
@@ -756,16 +749,16 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
|
|
|
756
749
|
},
|
|
757
750
|
children: [le(n, {
|
|
758
751
|
sheet: !0,
|
|
759
|
-
title: t(
|
|
752
|
+
title: t(Re),
|
|
760
753
|
"aria-pressed": null === o,
|
|
761
754
|
sx: {
|
|
762
755
|
...je,
|
|
763
756
|
...null === o ? De : null
|
|
764
757
|
},
|
|
765
758
|
onClick: () => {
|
|
766
|
-
l({ ...
|
|
759
|
+
l({ ...A });
|
|
767
760
|
},
|
|
768
|
-
children: le(
|
|
761
|
+
children: le(R, {
|
|
769
762
|
icons: [null],
|
|
770
763
|
size: 16
|
|
771
764
|
})
|
|
@@ -793,7 +786,7 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
|
|
|
793
786
|
id: e.id
|
|
794
787
|
});
|
|
795
788
|
},
|
|
796
|
-
children: le(
|
|
789
|
+
children: le(R, {
|
|
797
790
|
icons: [e.spec],
|
|
798
791
|
size: 16
|
|
799
792
|
})
|
|
@@ -819,8 +812,8 @@ var $e = q(Y((e, o) => {
|
|
|
819
812
|
return le(Z, {
|
|
820
813
|
ref: o,
|
|
821
814
|
renderPopupPanel: i,
|
|
822
|
-
tooltip: n ?? r(
|
|
823
|
-
icon: le(
|
|
815
|
+
tooltip: n ?? r(Ae),
|
|
816
|
+
icon: le(R, {
|
|
824
817
|
icons: [l],
|
|
825
818
|
size: 16
|
|
826
819
|
}),
|
|
@@ -835,11 +828,11 @@ var Ke = [
|
|
|
835
828
|
I.ColorStopType.Percentile,
|
|
836
829
|
I.ColorStopType.Formula
|
|
837
830
|
], Ee = q((e) => {
|
|
838
|
-
const { scale: o, onScaleChange: l, readOnly: t, ...n } = e, a = H(), r = o.iconSet ?? w.IconSet.TrafficLights3, i = 0 === E(r).length, d = o.stops ?? [], p = d.length,
|
|
831
|
+
const { scale: o, onScaleChange: l, readOnly: t, ...n } = e, a = H(), r = o.iconSet ?? w.IconSet.TrafficLights3, i = 0 === E(r).length, d = o.stops ?? [], p = d.length, m = L(o), u = (e) => {
|
|
839
832
|
const t = { ...o };
|
|
840
833
|
for (const [o, l] of Object.entries(e)) void 0 === l ? delete t[o] : t[o] = l;
|
|
841
834
|
l(t);
|
|
842
|
-
},
|
|
835
|
+
}, h = J((e) => {
|
|
843
836
|
const { closeFloat: o } = e, l = le(c, {
|
|
844
837
|
groups: s,
|
|
845
838
|
disabled: t,
|
|
@@ -848,7 +841,7 @@ var Ke = [
|
|
|
848
841
|
if (e === r) return;
|
|
849
842
|
const o = U(e);
|
|
850
843
|
let l = d;
|
|
851
|
-
o !== d.length && (l = K(o)),
|
|
844
|
+
o !== d.length && (l = K(o)), u({
|
|
852
845
|
iconSet: e,
|
|
853
846
|
stops: l,
|
|
854
847
|
icon: void 0
|
|
@@ -860,7 +853,7 @@ var Ke = [
|
|
|
860
853
|
...e,
|
|
861
854
|
children: l
|
|
862
855
|
});
|
|
863
|
-
}, [t, o]),
|
|
856
|
+
}, [t, o]), g = k.camelToPrettyCase(r);
|
|
864
857
|
return te(ne, {
|
|
865
858
|
sx: {
|
|
866
859
|
display: "flex",
|
|
@@ -868,7 +861,7 @@ var Ke = [
|
|
|
868
861
|
gap: 1
|
|
869
862
|
},
|
|
870
863
|
...n,
|
|
871
|
-
children: [te(
|
|
864
|
+
children: [te(ve, { children: [
|
|
872
865
|
le(ne, {
|
|
873
866
|
sx: {
|
|
874
867
|
display: "flex",
|
|
@@ -878,8 +871,8 @@ var Ke = [
|
|
|
878
871
|
children: le(Z, {
|
|
879
872
|
outlined: !0,
|
|
880
873
|
disabled: t,
|
|
881
|
-
label:
|
|
882
|
-
tooltip:
|
|
874
|
+
label: g,
|
|
875
|
+
tooltip: g,
|
|
883
876
|
icon: le(ne, {
|
|
884
877
|
sx: {
|
|
885
878
|
width: "82px",
|
|
@@ -889,15 +882,15 @@ var Ke = [
|
|
|
889
882
|
children: i ? le(xe, {
|
|
890
883
|
variant: "caption",
|
|
891
884
|
noWrap: !0,
|
|
892
|
-
children:
|
|
893
|
-
}) : le(
|
|
885
|
+
children: g
|
|
886
|
+
}) : le(R, {
|
|
894
887
|
icons: E(r),
|
|
895
888
|
order: "descending",
|
|
896
889
|
size: 14,
|
|
897
890
|
gap: 3
|
|
898
891
|
})
|
|
899
892
|
}),
|
|
900
|
-
renderPopupPanel:
|
|
893
|
+
renderPopupPanel: h
|
|
901
894
|
})
|
|
902
895
|
}),
|
|
903
896
|
i && le(xe, {
|
|
@@ -915,7 +908,7 @@ var Ke = [
|
|
|
915
908
|
size: "small",
|
|
916
909
|
checked: !1 === o.showValue,
|
|
917
910
|
disabled: t,
|
|
918
|
-
onChange: (e) =>
|
|
911
|
+
onChange: (e) => u({ showValue: !e.target.checked && void 0 })
|
|
919
912
|
}),
|
|
920
913
|
label: le(xe, {
|
|
921
914
|
variant: "body2",
|
|
@@ -926,7 +919,7 @@ var Ke = [
|
|
|
926
919
|
size: "small",
|
|
927
920
|
checked: o.reverse ?? !1,
|
|
928
921
|
disabled: t,
|
|
929
|
-
onChange: (e) =>
|
|
922
|
+
onChange: (e) => u({ reverse: !!e.target.checked || void 0 })
|
|
930
923
|
}),
|
|
931
924
|
label: le(xe, {
|
|
932
925
|
variant: "body2",
|
|
@@ -934,7 +927,7 @@ var Ke = [
|
|
|
934
927
|
})
|
|
935
928
|
})]
|
|
936
929
|
})
|
|
937
|
-
] }), le(
|
|
930
|
+
] }), le(ve, {
|
|
938
931
|
variant: "config",
|
|
939
932
|
children: d.map((e, n) => {
|
|
940
933
|
const a = o.reverse ? p - 1 - n : n;
|
|
@@ -944,13 +937,13 @@ var Ke = [
|
|
|
944
937
|
showExclusive: !0,
|
|
945
938
|
readOnly: t || 0 === n,
|
|
946
939
|
leading: le($e, {
|
|
947
|
-
icon:
|
|
940
|
+
icon: m[n] ?? null,
|
|
948
941
|
disabled: t || i,
|
|
949
942
|
onPick: (e) => l(G(o, a, e))
|
|
950
943
|
}),
|
|
951
944
|
onStopChange: (e) => {
|
|
952
945
|
const o = d.slice();
|
|
953
|
-
o[n] = e,
|
|
946
|
+
o[n] = e, u({ stops: o });
|
|
954
947
|
}
|
|
955
948
|
}, n);
|
|
956
949
|
})
|
|
@@ -958,7 +951,7 @@ var Ke = [
|
|
|
958
951
|
});
|
|
959
952
|
});
|
|
960
953
|
Ee.displayName = "IconSetRulePanel";
|
|
961
|
-
var Ue = (e, o, l) =>
|
|
954
|
+
var Ue = (e, o, l) => f(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
962
955
|
if (!e) return l;
|
|
963
956
|
if ("string" == typeof e) return Ue(e, o, l);
|
|
964
957
|
if (e.type === N.Type.None) return l;
|
|
@@ -967,15 +960,15 @@ var Ue = (e, o, l) => v(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
|
967
960
|
}, _e = q((e) => {
|
|
968
961
|
const { conditionalFormat: o, size: l = 28, ...t } = e, { workbook: i, themeKey: s } = a();
|
|
969
962
|
_(o, "onAnyChange");
|
|
970
|
-
const c = o.getScale(),
|
|
963
|
+
const c = o.getScale(), u = o.getStyle(), h = Q(() => {
|
|
971
964
|
try {
|
|
972
965
|
return i?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
973
966
|
} catch {
|
|
974
967
|
return {};
|
|
975
968
|
}
|
|
976
969
|
}, [i, s]), y = Q(() => {
|
|
977
|
-
if (c?.type === I.ScaleType.ColorScale) return le(
|
|
978
|
-
if (c?.type === I.ScaleType.DataBar) return le(
|
|
970
|
+
if (c?.type === I.ScaleType.ColorScale) return le(v, { rows: b(c.stops ?? [], m, i) });
|
|
971
|
+
if (c?.type === I.ScaleType.DataBar) return le(v, { rows: d(c, Ue(c.color, i, g), c.borderColor ? Ue(c.borderColor, i, g) : void 0) });
|
|
979
972
|
if (c?.type === I.ScaleType.IconSet) return le(ne, {
|
|
980
973
|
sx: {
|
|
981
974
|
display: "flex",
|
|
@@ -985,14 +978,14 @@ var Ue = (e, o, l) => v(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
|
985
978
|
height: "100%",
|
|
986
979
|
px: .5
|
|
987
980
|
},
|
|
988
|
-
children: le(
|
|
981
|
+
children: le(R, {
|
|
989
982
|
icons: L(c),
|
|
990
983
|
order: "descending",
|
|
991
984
|
size: 14,
|
|
992
985
|
gap: 3
|
|
993
986
|
})
|
|
994
987
|
});
|
|
995
|
-
const e =
|
|
988
|
+
const e = u?.font, o = e?.underline && e.underline !== B.UnderlineStyle.None;
|
|
996
989
|
return le(ne, {
|
|
997
990
|
sx: {
|
|
998
991
|
width: "100%",
|
|
@@ -1000,24 +993,24 @@ var Ue = (e, o, l) => v(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
|
1000
993
|
display: "flex",
|
|
1001
994
|
alignItems: "center",
|
|
1002
995
|
justifyContent: "center",
|
|
1003
|
-
...
|
|
1004
|
-
backgroundColor: Le(
|
|
996
|
+
...h,
|
|
997
|
+
backgroundColor: Le(u?.fill, i, "transparent"),
|
|
1005
998
|
...e?.color && "auto" !== e.color ? { color: Ue(e.color, i, r) } : null,
|
|
1006
999
|
...e?.weight ? { fontWeight: e.weight } : null,
|
|
1007
1000
|
...e?.style ? { fontStyle: e.style } : null,
|
|
1008
1001
|
textDecoration: [o ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
1009
1002
|
fontSize: `${Math.round(.5 * l)}px`,
|
|
1010
1003
|
lineHeight: 1,
|
|
1011
|
-
outline:
|
|
1004
|
+
outline: u?.borders ? `1px solid ${Ue(Object.values(u.borders)[0]?.color, i, p)}` : void 0,
|
|
1012
1005
|
outlineOffset: "-3px"
|
|
1013
1006
|
},
|
|
1014
1007
|
children: "Aa"
|
|
1015
1008
|
});
|
|
1016
1009
|
}, [
|
|
1017
1010
|
c,
|
|
1018
|
-
|
|
1011
|
+
u,
|
|
1019
1012
|
l,
|
|
1020
|
-
|
|
1013
|
+
h,
|
|
1021
1014
|
i,
|
|
1022
1015
|
s
|
|
1023
1016
|
]);
|
|
@@ -1051,7 +1044,7 @@ var Ge = (e, o) => {
|
|
|
1051
1044
|
o.update({ scale: e });
|
|
1052
1045
|
}, c = te(ce, {
|
|
1053
1046
|
tabIndex: 0,
|
|
1054
|
-
className:
|
|
1047
|
+
className: h["editor-panel"],
|
|
1055
1048
|
sx: {
|
|
1056
1049
|
gap: (e) => e.spacing(1),
|
|
1057
1050
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -1093,7 +1086,7 @@ var Ge = (e, o) => {
|
|
|
1093
1086
|
label: l("conditionalFormat.applyTo")
|
|
1094
1087
|
})]
|
|
1095
1088
|
}),
|
|
1096
|
-
le(
|
|
1089
|
+
le(ue, {
|
|
1097
1090
|
value: i,
|
|
1098
1091
|
onChange: (e, l) => {
|
|
1099
1092
|
r || ((e) => {
|
|
@@ -1129,7 +1122,7 @@ var Ge = (e, o) => {
|
|
|
1129
1122
|
minWidth: 0
|
|
1130
1123
|
}
|
|
1131
1124
|
},
|
|
1132
|
-
children: Object.keys(Ve).map((e) => le(
|
|
1125
|
+
children: Object.keys(Ve).map((e) => le(me, {
|
|
1133
1126
|
value: e,
|
|
1134
1127
|
label: l(Ve[e])
|
|
1135
1128
|
}, e))
|
|
@@ -1184,7 +1177,7 @@ var Ge = (e, o) => {
|
|
|
1184
1177
|
})
|
|
1185
1178
|
]
|
|
1186
1179
|
});
|
|
1187
|
-
return le(
|
|
1180
|
+
return le(u.Provider, {
|
|
1188
1181
|
value: o,
|
|
1189
1182
|
children: c
|
|
1190
1183
|
});
|