@sheetxl/studio-mui 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{N5L4wQxRGEOH_wbp.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
- package/browser/esm/{DHmh3sMFGq4sRPhh.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
- package/browser/esm/{D_r8MdiauI15ds00.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
- package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
- package/browser/esm/{jDqohhLNEI6wqjo7.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
- package/browser/esm/{CHfzSl32Bs6LVY3G.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
- package/browser/esm/{DZngQvRDu3Qh7_uy.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
- package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
- package/browser/esm/{n1z1c9np4M3gMGCX.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
- package/browser/esm/{B4vVBfkY4Oq6M196.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
- package/browser/esm/{BH1Qj4pv8pPWZVhO.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
- package/browser/esm/{BDSYU5nx_6eGxAa4.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
- package/browser/esm/{Cf6bsmEPyPpiNtxU.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
- package/browser/esm/{B130jd-PqNgY2pV8.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
- package/browser/esm/{B4EWee1CcAHS5vAA.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
- package/browser/esm/{CzWXYarhfF4mF8fj.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
- package/browser/esm/{CEvJVwoVP9nscIcl.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
- package/browser/esm/{CFiyY-_XmW7G0_9y.mjs → C211u9yUXa4149g9.mjs} +1 -1
- package/browser/esm/{DoJ8N6FhUY0kYz9u.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
- package/browser/esm/{DqP1sKmMsG0tKwmV.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
- package/browser/esm/{Cx1r__xbzz-5zZgw.mjs → CA42_0vpQwF292tA.mjs} +1 -1
- package/browser/esm/{D1WSqegx9Zbjc-cL.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
- package/browser/esm/{k0bdGBFIHCTGANHW.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
- package/browser/esm/{DVQZtsBbf_Fsh-B6.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
- package/browser/esm/{npsX_Rztx4_7rCGP.mjs → CHb2gapathcPfhdM.mjs} +5 -5
- package/browser/esm/{94_olh2OyEbGAcNw.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
- package/browser/esm/{BBNFlngSL8Y3242O.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
- package/browser/esm/{Me9wSTkBepRyMDHH.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
- package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
- package/browser/esm/{uV_YgeJoyPa9SdGV.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
- package/browser/esm/{D2YXkXpEcP-NqHMv.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
- package/browser/esm/{WQaRUnIjMCkaRwsb.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
- package/browser/esm/{BQTUWwRUxgqg4s6Y.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
- package/browser/esm/{DoYGmNZ_X3Kvxx3K.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
- package/browser/esm/{ph1FP1S-yYM0I269.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
- package/browser/esm/{BYUokd7Q6y5Xw36U.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
- package/browser/esm/{NSuxs1P3kFsoLIMa.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
- package/browser/esm/{B0q0gHDAexrBB16B.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
- package/browser/esm/{SHaQophNZjobC_4f.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
- package/browser/esm/{m5mPoZGqgwOCQQOs.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
- package/browser/esm/{B1SDDlETvGUJ2Ipu.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
- package/browser/esm/{CWgz8hWLf3OzuMyZ.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
- package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
- package/browser/esm/{dlNcqumPfehZG2ai.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
- package/browser/esm/{BrFq6SNq-qx1PYZO.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
- package/browser/esm/{BMIfZN_dgjS_p-pF.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
- package/browser/esm/{BESsacbR41SalUJv.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
- package/browser/esm/{CbCTAkfOjIThF31A.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
- package/browser/esm/{a7OD-X4Jjp810Y6v.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
- package/browser/esm/{1JW5qOuAMlejsOrm.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
- package/browser/esm/{DlZoddGNGipM3S72.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
- package/browser/esm/{MR6LXUjaCV0DShNi.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
- package/browser/esm/{CbC8ObddTe-7ix6F.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
- package/browser/esm/{DGz8aGpEm8yfccoW.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
- package/browser/esm/index.mjs +299 -299
- package/browser/esm/{dikVMLRWr5g6T0E7.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
- package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
- package/browser/esm/{Bz6OaRkDOpj807bi.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
- package/browser/esm/{DVXQrjSOGoB23arZ.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
- package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
- package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
- package/browser/esm/{D8RzgRnl0S1-W_Tx.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
- package/browser/esm/{wwSpRKFXL9eeyQND.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
- package/browser/esm/{B0ymykpoTxxHQosi.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
- package/licenses/dependencies.txt +33 -33
- package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
- package/node/esm/{B_7rer9pnurpMB9J.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
- package/node/esm/{DGieA81teTm8uNPr.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
- package/node/esm/{DF5w_ZBWiRtITKLQ.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
- package/node/esm/{BedAzhQqTjs4BBb4.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
- package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
- package/node/esm/{C4esZkRHnb4HEK3k.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
- package/node/esm/{DHrxhle3aK3XU-Jz.mjs → BghhH54dXAqciBpw.mjs} +2 -2
- package/node/esm/{Diu9L9DJzZCMtFb4.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
- package/node/esm/{mHNl4j2rIZTqcQqb.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
- package/node/esm/{BBRSP-QRw-F0qQdJ.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
- package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
- package/node/esm/{BRICG2VkglJJKy0X.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
- package/node/esm/{Cr94rxP9x4CWSBhF.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
- package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
- package/node/esm/{qYIPGp0bxwW5i6Tn.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
- package/node/esm/{vTyr2di6cTC3sA1F.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
- package/node/esm/{BRpSVGr1A8w4AG_c.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
- package/node/esm/{B1CcqB7Ue-EPkdE-.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
- package/node/esm/{Bwtmjq_jln0eMEMe.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
- package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
- package/node/esm/{MNdDR5PA6J1YEtyL.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
- package/node/esm/{D13aAzbfNwj50sqn.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
- package/node/esm/{4mAgDExCti1oMAez.mjs → D283LXrMqi3exI_l.mjs} +1 -1
- package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
- package/node/esm/{CBes_pLI-7rJsre4.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
- package/node/esm/{CJszsuCXRBPNuT1A.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
- package/node/esm/{Bm31UyWMCsJ7z4wJ.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
- package/node/esm/{Bz0uw5YbQGvhlPhZ.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
- package/node/esm/{D2eYMCx5eAEJsfP6.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
- package/node/esm/{BSZ0bAJn4ODpGusx.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
- package/node/esm/{suDXa2UiBKJB4nsR.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
- package/node/esm/{pm_LpeNYjo6Aahu3.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
- package/node/esm/{D__UzirlxQlq32Rm.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
- package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
- package/node/esm/{DlSfkSNLCwzofCfS.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
- package/node/esm/{C1y7Z0K9Ougef8dU.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
- package/node/esm/{DXQFo_r4CCCvIubP.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
- package/node/esm/{n5-pWzwq4pDS4adG.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
- package/node/esm/index.mjs +3294 -3031
- package/node/esm/{B7_-3nxcN-ZSDQVT.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
- package/node/esm/{DvlZnGlon5gwQBxU.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
- package/node/esm/{9e9_OZYxc0ATDkNI.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -6
- package/resources/locales/de/ui.msg.json +164 -3
- package/resources/locales/en/groups.cmd.json +4 -6
- package/resources/locales/en/ui.msg.json +164 -3
- package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
- package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
- package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
- package/types/src/chart/ChartFormatPanel.d.ts +12 -14
- package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
- package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
- package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
- package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
- package/types/src/color/ColorSetSwatch.d.ts +34 -0
- package/types/src/color/index.d.ts +1 -0
- package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
- package/types/src/format/FillPanel.d.ts +1 -3
- package/types/src/format/FormatPanelParts.d.ts +2 -2
- package/types/src/format/FormatPlugin.d.ts +2 -2
- package/types/src/format/FormatTaskPane.d.ts +4 -10
- package/types/src/format/LinePanel.d.ts +0 -2
- package/types/src/format/editor/FormatEditor.d.ts +36 -0
- package/types/src/format/editor/FormatField.d.ts +97 -0
- package/types/src/format/editor/FormatFields.d.ts +20 -0
- package/types/src/format/editor/index.d.ts +4 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +0 -2
- package/types/src/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
- package/types/src/workbook/DefaultRenderers.d.ts +7 -1
- package/browser/esm/39iN4gKrFnhPhM1Z.mjs +0 -517
- package/browser/esm/BWXXi0teArfwa70E.mjs +0 -72
- package/browser/esm/J519wp1_d0QjzPfN.mjs +0 -516
- package/node/esm/Bc2iZ6Qs3kHdsECK.mjs +0 -1831
- package/node/esm/BvKg2K2J7Us2czkC.mjs +0 -519
- package/node/esm/CwQPIQaC6CcVGkD2.mjs +0 -73
- package/node/esm/CyQekcyEfM7Engbk.mjs +0 -516
- package/types/src/studio/StudioSplitPane.d.ts +0 -60
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { AutoColorPosition as e, BorderPopupButton as o,
|
|
8
|
-
import { n as S, t as F } from "./
|
|
7
|
+
import { AutoColorPosition as e, BorderPopupButton as o, C as l, ColorPopupButton as t, FormulaField as n, PresetChip as a, S as r, _ as i, a as d, b 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 "./MvXs13X1leYt7rBb.mjs";
|
|
9
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
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";
|
|
@@ -41,8 +41,8 @@ var fe = new T("transparent"), be = {
|
|
|
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 } =
|
|
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 : r(e, o), Te = q((n) => {
|
|
45
|
+
const { format: r, onFormatChange: i, readOnly: d, ...s } = n, c = H(), { workbook: p, schemeLookup: m, themeKey: u, darkMode: h, propsColorPanel: g } = l(), 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 };
|
|
@@ -77,8 +77,8 @@ var fe = new T("transparent"), be = {
|
|
|
77
77
|
flexWrap: "wrap"
|
|
78
78
|
},
|
|
79
79
|
children: D.map((e, o) => {
|
|
80
|
-
const l = Fe(Se(e.style.fill), p), t = Fe(e.style.font?.color, p),
|
|
81
|
-
return le(
|
|
80
|
+
const l = Fe(Se(e.style.fill), p), t = Fe(e.style.font?.color, p), n = e.style.borders ? Fe(Object.values(e.style.borders)[0]?.color, p) : null;
|
|
81
|
+
return le(a, {
|
|
82
82
|
sheet: !0,
|
|
83
83
|
title: c(be[e.key] ?? e.key),
|
|
84
84
|
disabled: d,
|
|
@@ -86,13 +86,13 @@ var fe = new T("transparent"), be = {
|
|
|
86
86
|
sx: {
|
|
87
87
|
backgroundColor: l?.toCSS("adaptive") ?? void 0,
|
|
88
88
|
color: t?.toCSS("adaptive") ?? void 0,
|
|
89
|
-
outline:
|
|
89
|
+
outline: n ? `1px solid ${n.toCSS("adaptive")}` : void 0,
|
|
90
90
|
outlineOffset: "-3px"
|
|
91
91
|
},
|
|
92
92
|
children: "Aa"
|
|
93
93
|
}, o);
|
|
94
94
|
})
|
|
95
|
-
}), le(
|
|
95
|
+
}), le(a, {
|
|
96
96
|
title: c("conditionalFormat.clearStyle"),
|
|
97
97
|
disabled: d || !r,
|
|
98
98
|
onClick: () => i(null),
|
|
@@ -161,7 +161,7 @@ var fe = new T("transparent"), be = {
|
|
|
161
161
|
e && 0 !== Object.keys(e).length ? o.borders = e : delete o.borders, i(0 === Object.keys(o).length ? null : o);
|
|
162
162
|
})(e)
|
|
163
163
|
}),
|
|
164
|
-
le(
|
|
164
|
+
le(t, {
|
|
165
165
|
icon: "fill.colored",
|
|
166
166
|
tooltip: c("conditionalFormat.fillColor"),
|
|
167
167
|
selectedColor: T,
|
|
@@ -182,7 +182,7 @@ var fe = new T("transparent"), be = {
|
|
|
182
182
|
...g
|
|
183
183
|
}
|
|
184
184
|
}),
|
|
185
|
-
le(
|
|
185
|
+
le(t, {
|
|
186
186
|
icon: "text.colored",
|
|
187
187
|
tooltip: c("conditionalFormat.fontColor"),
|
|
188
188
|
selectedColor: F,
|
|
@@ -215,7 +215,7 @@ var ke = {
|
|
|
215
215
|
I.ColorStopType.Min,
|
|
216
216
|
I.ColorStopType.Max
|
|
217
217
|
]), Pe = q((e) => {
|
|
218
|
-
const { label: o, stop:
|
|
218
|
+
const { label: o, stop: a, onStopChange: r, allowedTypes: i, showColor: s = !1, leading: c, showExclusive: p = !1, readOnly: m, ...u } = e, h = H(), { darkMode: g, toColor: y, propsColorPanel: x } = l(), C = d(), v = a.type ?? I.ColorStopType.Num, f = !we.has(v), b = m || !f, S = v === I.ColorStopType.Formula, F = a.value?.isIFormula ? a.value : null, T = a.color, k = s ? y(T) : null;
|
|
219
219
|
return te(ne, {
|
|
220
220
|
sx: {
|
|
221
221
|
display: "flex",
|
|
@@ -236,13 +236,13 @@ var ke = {
|
|
|
236
236
|
children: o
|
|
237
237
|
}),
|
|
238
238
|
c,
|
|
239
|
-
s && le(
|
|
239
|
+
s && le(t, {
|
|
240
240
|
tooltip: h("conditionalFormat.stopColor"),
|
|
241
241
|
selectedColor: k,
|
|
242
242
|
disabled: m,
|
|
243
243
|
onSelectColor: (e) => {
|
|
244
244
|
e && r({
|
|
245
|
-
...
|
|
245
|
+
...a,
|
|
246
246
|
color: e.toString()
|
|
247
247
|
});
|
|
248
248
|
},
|
|
@@ -254,10 +254,10 @@ var ke = {
|
|
|
254
254
|
}),
|
|
255
255
|
p && te(pe, {
|
|
256
256
|
size: "small",
|
|
257
|
-
value:
|
|
257
|
+
value: a.exclusive ? "gt" : "gte",
|
|
258
258
|
disabled: m,
|
|
259
259
|
onChange: (e) => {
|
|
260
|
-
const o = { ...
|
|
260
|
+
const o = { ...a };
|
|
261
261
|
"gt" === e.target.value ? o.exclusive = !0 : delete o.exclusive, r(o);
|
|
262
262
|
},
|
|
263
263
|
sx: {
|
|
@@ -278,7 +278,7 @@ var ke = {
|
|
|
278
278
|
disabled: m,
|
|
279
279
|
onChange: (e) => ((e) => {
|
|
280
280
|
const o = {
|
|
281
|
-
...
|
|
281
|
+
...a,
|
|
282
282
|
type: e
|
|
283
283
|
};
|
|
284
284
|
if (we.has(e)) delete o.value;
|
|
@@ -294,18 +294,18 @@ var ke = {
|
|
|
294
294
|
minWidth: 0,
|
|
295
295
|
backgroundColor: "background.paper"
|
|
296
296
|
},
|
|
297
|
-
children:
|
|
297
|
+
children: i.map((e) => le(se, {
|
|
298
298
|
value: e,
|
|
299
299
|
children: h(ke[e])
|
|
300
300
|
}, e))
|
|
301
301
|
}),
|
|
302
|
-
S ? le(
|
|
302
|
+
S ? le(n, {
|
|
303
303
|
size: "small",
|
|
304
304
|
home: C.home,
|
|
305
|
-
value: F ? C.display(F) : `${
|
|
305
|
+
value: F ? C.display(F) : `${a.value ?? ""}`,
|
|
306
306
|
onChangeText: (e) => {
|
|
307
307
|
r({
|
|
308
|
-
...
|
|
308
|
+
...a,
|
|
309
309
|
value: e.trim().length > 0 ? C.compile(e) : e
|
|
310
310
|
});
|
|
311
311
|
},
|
|
@@ -325,12 +325,12 @@ var ke = {
|
|
|
325
325
|
size: "small",
|
|
326
326
|
type: "number",
|
|
327
327
|
placeholder: f ? void 0 : h("conditionalFormat.stopFromData"),
|
|
328
|
-
value: f ? `${
|
|
328
|
+
value: f ? `${a.value ?? ""}` : "",
|
|
329
329
|
disabled: b,
|
|
330
330
|
onChange: (e) => {
|
|
331
331
|
const o = e.target.value;
|
|
332
332
|
r({
|
|
333
|
-
...
|
|
333
|
+
...a,
|
|
334
334
|
value: "" === o ? 0 : Number(o)
|
|
335
335
|
});
|
|
336
336
|
},
|
|
@@ -356,7 +356,7 @@ var Ie = [
|
|
|
356
356
|
I.ColorStopType.Percentile,
|
|
357
357
|
I.ColorStopType.Formula
|
|
358
358
|
], Ne = q((e) => {
|
|
359
|
-
const { scale: o, onScaleChange:
|
|
359
|
+
const { scale: o, onScaleChange: t, readOnly: n, ...r } = e, i = H(), { workbook: d, toColor: c } = l(), m = o.stops ?? [], u = 2 === m.length ? [Ce("conditionalFormat.stop.minimum"), Ce("conditionalFormat.stop.maximum")] : [
|
|
360
360
|
Ce("conditionalFormat.stop.minimum"),
|
|
361
361
|
Ce("conditionalFormat.stop.midpoint"),
|
|
362
362
|
Ce("conditionalFormat.stop.maximum")
|
|
@@ -382,39 +382,39 @@ var Ie = [
|
|
|
382
382
|
gap: .5,
|
|
383
383
|
flexWrap: "wrap"
|
|
384
384
|
},
|
|
385
|
-
children: M.filter((e) => e.stops.length === (2 ===
|
|
385
|
+
children: M.filter((e) => e.stops.length === (2 === m.length ? 2 : 3)).map((e, o) => le(a, {
|
|
386
386
|
sheet: !0,
|
|
387
|
-
disabled:
|
|
388
|
-
onClick: () =>
|
|
389
|
-
children: le(
|
|
387
|
+
disabled: n,
|
|
388
|
+
onClick: () => t(structuredClone(e)),
|
|
389
|
+
children: le(b, { rows: s(e.stops ?? [], p, d) })
|
|
390
390
|
}, o))
|
|
391
391
|
}), te(ye, {
|
|
392
392
|
exclusive: !0,
|
|
393
393
|
size: "small",
|
|
394
|
-
value: 2 ===
|
|
395
|
-
disabled:
|
|
396
|
-
onChange: (e,
|
|
397
|
-
|
|
398
|
-
if (e ===
|
|
399
|
-
const
|
|
394
|
+
value: 2 === m.length ? 2 : 3,
|
|
395
|
+
disabled: n,
|
|
396
|
+
onChange: (e, l) => {
|
|
397
|
+
l && ((e) => {
|
|
398
|
+
if (e === m.length || 2 !== e && 3 !== e) return;
|
|
399
|
+
const l = m.slice();
|
|
400
400
|
if (3 === e) {
|
|
401
401
|
let e = "#FFEB84";
|
|
402
|
-
const o =
|
|
403
|
-
if (o &&
|
|
404
|
-
const
|
|
405
|
-
e = `#${
|
|
402
|
+
const o = c(m[0]?.color ?? e)?.toRGBA(), t = c(m[m.length - 1]?.color ?? e)?.toRGBA();
|
|
403
|
+
if (o && t) {
|
|
404
|
+
const l = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
|
|
405
|
+
e = `#${l((o.red + t.red) / 2)}${l((o.green + t.green) / 2)}${l((o.blue + t.blue) / 2)}`;
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
l.splice(1, 0, {
|
|
408
408
|
type: I.ColorStopType.Percentile,
|
|
409
409
|
value: 50,
|
|
410
410
|
color: e
|
|
411
411
|
});
|
|
412
|
-
} else
|
|
413
|
-
|
|
412
|
+
} else l.splice(1, l.length - 2);
|
|
413
|
+
t({
|
|
414
414
|
...o,
|
|
415
|
-
stops:
|
|
415
|
+
stops: l
|
|
416
416
|
});
|
|
417
|
-
})(
|
|
417
|
+
})(l);
|
|
418
418
|
},
|
|
419
419
|
sx: { flex: "0 0 auto" },
|
|
420
420
|
children: [le(ge, {
|
|
@@ -437,20 +437,20 @@ var Ie = [
|
|
|
437
437
|
})]
|
|
438
438
|
}) }), le(ve, {
|
|
439
439
|
variant: "config",
|
|
440
|
-
children:
|
|
441
|
-
label: i(
|
|
440
|
+
children: m.map((e, l) => le(Pe, {
|
|
441
|
+
label: i(u[Math.min(l, u.length - 1)]),
|
|
442
442
|
stop: e,
|
|
443
443
|
allowedTypes: Ie,
|
|
444
444
|
showColor: !0,
|
|
445
|
-
readOnly:
|
|
445
|
+
readOnly: n,
|
|
446
446
|
onStopChange: (e) => {
|
|
447
|
-
const
|
|
448
|
-
|
|
447
|
+
const n = m.slice();
|
|
448
|
+
n[l] = e, t({
|
|
449
449
|
...o,
|
|
450
|
-
stops:
|
|
450
|
+
stops: n
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
},
|
|
453
|
+
}, l))
|
|
454
454
|
})]
|
|
455
455
|
});
|
|
456
456
|
});
|
|
@@ -470,11 +470,11 @@ var Be = [
|
|
|
470
470
|
I.ColorStopType.Percentile,
|
|
471
471
|
I.ColorStopType.Formula
|
|
472
472
|
], Oe = "__auto__", ze = q((e) => {
|
|
473
|
-
const { scale: o, onScaleChange:
|
|
473
|
+
const { scale: o, onScaleChange: n, readOnly: r, ...i } = e, d = H(), { darkMode: s, toColor: c, propsColorPanel: p } = l(), m = c(o.color), u = c(o.negativeFillColor), h = c(o.borderColor), g = c(o.negativeBorderColor), y = o.solidFill ?? !1, x = (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
|
-
|
|
477
|
-
},
|
|
476
|
+
n(l);
|
|
477
|
+
}, C = { backgroundColor: "background.paper" };
|
|
478
478
|
return te(ne, {
|
|
479
479
|
sx: {
|
|
480
480
|
display: "flex",
|
|
@@ -497,23 +497,23 @@ var Be = [
|
|
|
497
497
|
gap: .5,
|
|
498
498
|
flexWrap: "wrap"
|
|
499
499
|
},
|
|
500
|
-
children: O.filter((e) => (e.solidFill ?? !1) ===
|
|
500
|
+
children: O.filter((e) => (e.solidFill ?? !1) === y).map((e, o) => le(a, {
|
|
501
501
|
sheet: !0,
|
|
502
502
|
disabled: r,
|
|
503
|
-
onClick: () =>
|
|
503
|
+
onClick: () => x({
|
|
504
504
|
color: e.color,
|
|
505
505
|
solidFill: e.solidFill,
|
|
506
506
|
borderColor: e.borderColor
|
|
507
507
|
}),
|
|
508
|
-
children: le(
|
|
508
|
+
children: le(b, { rows: f(e, c(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: y,
|
|
514
514
|
disabled: r,
|
|
515
515
|
onChange: (e, o) => {
|
|
516
|
-
null !== o &&
|
|
516
|
+
null !== o && x({ solidFill: !!o || void 0 });
|
|
517
517
|
},
|
|
518
518
|
sx: { flex: "0 0 auto" },
|
|
519
519
|
children: [le(ge, {
|
|
@@ -523,7 +523,7 @@ var Be = [
|
|
|
523
523
|
pt: .25,
|
|
524
524
|
pb: .25
|
|
525
525
|
},
|
|
526
|
-
children:
|
|
526
|
+
children: d("conditionalFormat.solidFill")
|
|
527
527
|
}), le(ge, {
|
|
528
528
|
value: !1,
|
|
529
529
|
sx: {
|
|
@@ -531,7 +531,7 @@ var Be = [
|
|
|
531
531
|
pt: .25,
|
|
532
532
|
pb: .25
|
|
533
533
|
},
|
|
534
|
-
children:
|
|
534
|
+
children: d("conditionalFormat.gradientFill")
|
|
535
535
|
})]
|
|
536
536
|
})]
|
|
537
537
|
}),
|
|
@@ -540,11 +540,11 @@ var Be = [
|
|
|
540
540
|
size: "small",
|
|
541
541
|
checked: !1 === o.showValue,
|
|
542
542
|
disabled: r,
|
|
543
|
-
onChange: (e) =>
|
|
543
|
+
onChange: (e) => x({ showValue: !e.target.checked && void 0 })
|
|
544
544
|
}),
|
|
545
545
|
label: le(xe, {
|
|
546
546
|
variant: "body2",
|
|
547
|
-
children:
|
|
547
|
+
children: d("conditionalFormat.showBarsOnly")
|
|
548
548
|
})
|
|
549
549
|
}),
|
|
550
550
|
te(ne, {
|
|
@@ -560,30 +560,30 @@ var Be = [
|
|
|
560
560
|
color: "text.secondary",
|
|
561
561
|
flex: "0 0 62px"
|
|
562
562
|
},
|
|
563
|
-
children:
|
|
563
|
+
children: d("conditionalFormat.bar")
|
|
564
564
|
}),
|
|
565
|
-
le(
|
|
565
|
+
le(t, {
|
|
566
566
|
icon: "fill.colored",
|
|
567
|
-
tooltip:
|
|
568
|
-
selectedColor:
|
|
567
|
+
tooltip: d("conditionalFormat.barColor"),
|
|
568
|
+
selectedColor: m,
|
|
569
569
|
disabled: r,
|
|
570
|
-
onSelectColor: (e) =>
|
|
571
|
-
darkMode:
|
|
570
|
+
onSelectColor: (e) => x({ color: e ? e.toString() : void 0 }),
|
|
571
|
+
darkMode: s,
|
|
572
572
|
propsPanel: {
|
|
573
573
|
disableAlpha: !0,
|
|
574
|
-
...
|
|
574
|
+
...p
|
|
575
575
|
}
|
|
576
576
|
}),
|
|
577
|
-
le(
|
|
577
|
+
le(t, {
|
|
578
578
|
icon: "stroke.colored",
|
|
579
|
-
tooltip:
|
|
580
|
-
selectedColor:
|
|
579
|
+
tooltip: d("conditionalFormat.barBorderColor"),
|
|
580
|
+
selectedColor: h,
|
|
581
581
|
disabled: r,
|
|
582
|
-
onSelectColor: (e) =>
|
|
583
|
-
darkMode:
|
|
582
|
+
onSelectColor: (e) => x({ borderColor: e ? e.toString() : void 0 }),
|
|
583
|
+
darkMode: s,
|
|
584
584
|
propsPanel: {
|
|
585
585
|
disableAlpha: !0,
|
|
586
|
-
...
|
|
586
|
+
...p
|
|
587
587
|
}
|
|
588
588
|
})
|
|
589
589
|
]
|
|
@@ -601,36 +601,36 @@ var Be = [
|
|
|
601
601
|
color: "text.secondary",
|
|
602
602
|
flex: "0 0 62px"
|
|
603
603
|
},
|
|
604
|
-
children:
|
|
604
|
+
children: d("conditionalFormat.negative")
|
|
605
605
|
}),
|
|
606
|
-
le(
|
|
606
|
+
le(t, {
|
|
607
607
|
icon: "fill.colored",
|
|
608
|
-
tooltip:
|
|
609
|
-
selectedColor:
|
|
608
|
+
tooltip: d("conditionalFormat.negativeColor"),
|
|
609
|
+
selectedColor: u ?? m,
|
|
610
610
|
disabled: r,
|
|
611
|
-
onSelectColor: (e) =>
|
|
612
|
-
darkMode:
|
|
611
|
+
onSelectColor: (e) => x({ negativeFillColor: e ? e.toString() : void 0 }),
|
|
612
|
+
darkMode: s,
|
|
613
613
|
propsPanel: {
|
|
614
614
|
disableAlpha: !0,
|
|
615
|
-
...
|
|
615
|
+
...p
|
|
616
616
|
}
|
|
617
617
|
}),
|
|
618
|
-
le(
|
|
618
|
+
le(t, {
|
|
619
619
|
icon: "stroke.colored",
|
|
620
|
-
tooltip:
|
|
621
|
-
selectedColor:
|
|
620
|
+
tooltip: d("conditionalFormat.negativeBorderColor"),
|
|
621
|
+
selectedColor: g ?? h,
|
|
622
622
|
disabled: r,
|
|
623
|
-
onSelectColor: (e) =>
|
|
624
|
-
darkMode:
|
|
623
|
+
onSelectColor: (e) => x({ negativeBorderColor: e ? e.toString() : void 0 }),
|
|
624
|
+
darkMode: s,
|
|
625
625
|
propsPanel: {
|
|
626
626
|
disableAlpha: !0,
|
|
627
|
-
...
|
|
627
|
+
...p
|
|
628
628
|
}
|
|
629
629
|
}),
|
|
630
|
-
le(
|
|
631
|
-
title:
|
|
630
|
+
le(a, {
|
|
631
|
+
title: d("conditionalFormat.sameAsPositive"),
|
|
632
632
|
disabled: r || !o.negativeFillColor && !o.negativeBorderColor,
|
|
633
|
-
onClick: () =>
|
|
633
|
+
onClick: () => x({
|
|
634
634
|
negativeFillColor: void 0,
|
|
635
635
|
negativeBorderColor: void 0
|
|
636
636
|
}),
|
|
@@ -657,27 +657,27 @@ var Be = [
|
|
|
657
657
|
flex: 1,
|
|
658
658
|
minWidth: 0
|
|
659
659
|
},
|
|
660
|
-
children: [le(de, { children:
|
|
661
|
-
label:
|
|
660
|
+
children: [le(de, { children: d("conditionalFormat.axis") }), te(pe, {
|
|
661
|
+
label: d("conditionalFormat.axis"),
|
|
662
662
|
value: o.axisPosition ?? Oe,
|
|
663
663
|
disabled: r,
|
|
664
|
-
sx:
|
|
664
|
+
sx: C,
|
|
665
665
|
onChange: (e) => {
|
|
666
666
|
const o = e.target.value;
|
|
667
|
-
|
|
667
|
+
x({ axisPosition: o === Oe ? void 0 : o });
|
|
668
668
|
},
|
|
669
669
|
children: [
|
|
670
670
|
le(se, {
|
|
671
671
|
value: Oe,
|
|
672
|
-
children:
|
|
672
|
+
children: d("conditionalFormat.automatic")
|
|
673
673
|
}),
|
|
674
674
|
le(se, {
|
|
675
675
|
value: "middle",
|
|
676
|
-
children:
|
|
676
|
+
children: d("conditionalFormat.axisMiddle")
|
|
677
677
|
}),
|
|
678
678
|
le(se, {
|
|
679
679
|
value: "none",
|
|
680
|
-
children:
|
|
680
|
+
children: d("conditionalFormat.axisNone")
|
|
681
681
|
})
|
|
682
682
|
]
|
|
683
683
|
})]
|
|
@@ -687,27 +687,27 @@ var Be = [
|
|
|
687
687
|
flex: 1,
|
|
688
688
|
minWidth: 0
|
|
689
689
|
},
|
|
690
|
-
children: [le(de, { children:
|
|
691
|
-
label:
|
|
690
|
+
children: [le(de, { children: d("conditionalFormat.direction") }), te(pe, {
|
|
691
|
+
label: d("conditionalFormat.direction"),
|
|
692
692
|
value: o.direction ?? Oe,
|
|
693
693
|
disabled: r,
|
|
694
|
-
sx:
|
|
694
|
+
sx: C,
|
|
695
695
|
onChange: (e) => {
|
|
696
696
|
const o = e.target.value;
|
|
697
|
-
|
|
697
|
+
x({ direction: o === Oe ? void 0 : o });
|
|
698
698
|
},
|
|
699
699
|
children: [
|
|
700
700
|
le(se, {
|
|
701
701
|
value: Oe,
|
|
702
|
-
children:
|
|
702
|
+
children: d("conditionalFormat.automatic")
|
|
703
703
|
}),
|
|
704
704
|
le(se, {
|
|
705
705
|
value: "leftToRight",
|
|
706
|
-
children:
|
|
706
|
+
children: d("conditionalFormat.leftToRight")
|
|
707
707
|
}),
|
|
708
708
|
le(se, {
|
|
709
709
|
value: "rightToLeft",
|
|
710
|
-
children:
|
|
710
|
+
children: d("conditionalFormat.rightToLeft")
|
|
711
711
|
})
|
|
712
712
|
]
|
|
713
713
|
})]
|
|
@@ -716,17 +716,17 @@ var Be = [
|
|
|
716
716
|
] }), te(ve, {
|
|
717
717
|
variant: "config",
|
|
718
718
|
children: [le(Pe, {
|
|
719
|
-
label:
|
|
719
|
+
label: d("conditionalFormat.stop.minimum"),
|
|
720
720
|
stop: o.minPoint ?? { type: I.ColorStopType.Min },
|
|
721
721
|
allowedTypes: Be,
|
|
722
722
|
readOnly: r,
|
|
723
|
-
onStopChange: (e) =>
|
|
723
|
+
onStopChange: (e) => x({ minPoint: e })
|
|
724
724
|
}), le(Pe, {
|
|
725
|
-
label:
|
|
725
|
+
label: d("conditionalFormat.stop.maximum"),
|
|
726
726
|
stop: o.maxPoint ?? { type: I.ColorStopType.Max },
|
|
727
727
|
allowedTypes: Me,
|
|
728
728
|
readOnly: r,
|
|
729
|
-
onStopChange: (e) =>
|
|
729
|
+
onStopChange: (e) => x({ maxPoint: e })
|
|
730
730
|
})]
|
|
731
731
|
})]
|
|
732
732
|
});
|
|
@@ -747,7 +747,7 @@ var Re = Ce("conditionalFormat.noCellIcon"), Ae = Ce("conditionalFormat.cellIcon
|
|
|
747
747
|
gap: "4px",
|
|
748
748
|
padding: "6px 8px"
|
|
749
749
|
},
|
|
750
|
-
children: [le(
|
|
750
|
+
children: [le(a, {
|
|
751
751
|
sheet: !0,
|
|
752
752
|
title: t(Re),
|
|
753
753
|
"aria-pressed": null === o,
|
|
@@ -770,15 +770,15 @@ var Re = Ce("conditionalFormat.noCellIcon"), Ae = Ce("conditionalFormat.cellIcon
|
|
|
770
770
|
gap: "3px"
|
|
771
771
|
},
|
|
772
772
|
children: z.map((e) => {
|
|
773
|
-
const
|
|
773
|
+
const n = (r = o, i = e.spec, !!r && r.iconKey === i.iconKey && r.color === i.color);
|
|
774
774
|
var r, i;
|
|
775
|
-
return le(
|
|
775
|
+
return le(a, {
|
|
776
776
|
sheet: !0,
|
|
777
|
-
title:
|
|
778
|
-
"aria-pressed":
|
|
777
|
+
title: g(t, e.spec),
|
|
778
|
+
"aria-pressed": n,
|
|
779
779
|
sx: {
|
|
780
780
|
...je,
|
|
781
|
-
...
|
|
781
|
+
...n ? De : null
|
|
782
782
|
},
|
|
783
783
|
onClick: () => {
|
|
784
784
|
l({
|
|
@@ -828,20 +828,20 @@ var Ke = [
|
|
|
828
828
|
I.ColorStopType.Percentile,
|
|
829
829
|
I.ColorStopType.Formula
|
|
830
830
|
], Ee = q((e) => {
|
|
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 ?? [],
|
|
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 ?? [], s = d.length, p = L(o), m = (e) => {
|
|
832
832
|
const t = { ...o };
|
|
833
833
|
for (const [o, l] of Object.entries(e)) void 0 === l ? delete t[o] : t[o] = l;
|
|
834
834
|
l(t);
|
|
835
|
-
},
|
|
836
|
-
const { closeFloat: o } = e, l = le(
|
|
837
|
-
groups:
|
|
835
|
+
}, u = J((e) => {
|
|
836
|
+
const { closeFloat: o } = e, l = le(x, {
|
|
837
|
+
groups: c,
|
|
838
838
|
disabled: t,
|
|
839
839
|
onPick: (e) => {
|
|
840
840
|
o?.(), e.type === I.ScaleType.IconSet && e.iconSet && ((e) => {
|
|
841
841
|
if (e === r) return;
|
|
842
842
|
const o = U(e);
|
|
843
843
|
let l = d;
|
|
844
|
-
o !== d.length && (l = K(o)),
|
|
844
|
+
o !== d.length && (l = K(o)), m({
|
|
845
845
|
iconSet: e,
|
|
846
846
|
stops: l,
|
|
847
847
|
icon: void 0
|
|
@@ -853,7 +853,7 @@ var Ke = [
|
|
|
853
853
|
...e,
|
|
854
854
|
children: l
|
|
855
855
|
});
|
|
856
|
-
}, [t, o]),
|
|
856
|
+
}, [t, o]), h = k.camelToPrettyCase(r);
|
|
857
857
|
return te(ne, {
|
|
858
858
|
sx: {
|
|
859
859
|
display: "flex",
|
|
@@ -871,8 +871,8 @@ var Ke = [
|
|
|
871
871
|
children: le(Z, {
|
|
872
872
|
outlined: !0,
|
|
873
873
|
disabled: t,
|
|
874
|
-
label:
|
|
875
|
-
tooltip:
|
|
874
|
+
label: h,
|
|
875
|
+
tooltip: h,
|
|
876
876
|
icon: le(ne, {
|
|
877
877
|
sx: {
|
|
878
878
|
width: "82px",
|
|
@@ -882,7 +882,7 @@ var Ke = [
|
|
|
882
882
|
children: i ? le(xe, {
|
|
883
883
|
variant: "caption",
|
|
884
884
|
noWrap: !0,
|
|
885
|
-
children:
|
|
885
|
+
children: h
|
|
886
886
|
}) : le(R, {
|
|
887
887
|
icons: E(r),
|
|
888
888
|
order: "descending",
|
|
@@ -890,7 +890,7 @@ var Ke = [
|
|
|
890
890
|
gap: 3
|
|
891
891
|
})
|
|
892
892
|
}),
|
|
893
|
-
renderPopupPanel:
|
|
893
|
+
renderPopupPanel: u
|
|
894
894
|
})
|
|
895
895
|
}),
|
|
896
896
|
i && le(xe, {
|
|
@@ -908,7 +908,7 @@ var Ke = [
|
|
|
908
908
|
size: "small",
|
|
909
909
|
checked: !1 === o.showValue,
|
|
910
910
|
disabled: t,
|
|
911
|
-
onChange: (e) =>
|
|
911
|
+
onChange: (e) => m({ showValue: !e.target.checked && void 0 })
|
|
912
912
|
}),
|
|
913
913
|
label: le(xe, {
|
|
914
914
|
variant: "body2",
|
|
@@ -919,7 +919,7 @@ var Ke = [
|
|
|
919
919
|
size: "small",
|
|
920
920
|
checked: o.reverse ?? !1,
|
|
921
921
|
disabled: t,
|
|
922
|
-
onChange: (e) =>
|
|
922
|
+
onChange: (e) => m({ reverse: !!e.target.checked || void 0 })
|
|
923
923
|
}),
|
|
924
924
|
label: le(xe, {
|
|
925
925
|
variant: "body2",
|
|
@@ -930,20 +930,20 @@ var Ke = [
|
|
|
930
930
|
] }), le(ve, {
|
|
931
931
|
variant: "config",
|
|
932
932
|
children: d.map((e, n) => {
|
|
933
|
-
const a = o.reverse ?
|
|
933
|
+
const a = o.reverse ? s - 1 - n : n;
|
|
934
934
|
return le(Pe, {
|
|
935
935
|
stop: e,
|
|
936
936
|
allowedTypes: Ke,
|
|
937
937
|
showExclusive: !0,
|
|
938
938
|
readOnly: t || 0 === n,
|
|
939
939
|
leading: le($e, {
|
|
940
|
-
icon:
|
|
940
|
+
icon: p[n] ?? null,
|
|
941
941
|
disabled: t || i,
|
|
942
942
|
onPick: (e) => l(G(o, a, e))
|
|
943
943
|
}),
|
|
944
944
|
onStopChange: (e) => {
|
|
945
945
|
const o = d.slice();
|
|
946
|
-
o[n] = e,
|
|
946
|
+
o[n] = e, m({ stops: o });
|
|
947
947
|
}
|
|
948
948
|
}, n);
|
|
949
949
|
})
|
|
@@ -951,24 +951,24 @@ var Ke = [
|
|
|
951
951
|
});
|
|
952
952
|
});
|
|
953
953
|
Ee.displayName = "IconSetRulePanel";
|
|
954
|
-
var Ue = (e, o, l) =>
|
|
954
|
+
var Ue = (e, o, l) => r(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
955
955
|
if (!e) return l;
|
|
956
956
|
if ("string" == typeof e) return Ue(e, o, l);
|
|
957
957
|
if (e.type === N.Type.None) return l;
|
|
958
958
|
const t = e, n = e;
|
|
959
959
|
return Ue(n.foreground ?? t.color ?? n.background, o, l);
|
|
960
960
|
}, _e = q((e) => {
|
|
961
|
-
const { conditionalFormat: o, size:
|
|
961
|
+
const { conditionalFormat: o, size: t = 28, ...n } = e, { workbook: r, themeKey: d } = l();
|
|
962
962
|
_(o, "onAnyChange");
|
|
963
963
|
const c = o.getScale(), u = o.getStyle(), h = Q(() => {
|
|
964
964
|
try {
|
|
965
|
-
return
|
|
965
|
+
return r?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
966
966
|
} catch {
|
|
967
967
|
return {};
|
|
968
968
|
}
|
|
969
|
-
}, [
|
|
970
|
-
if (c?.type === I.ScaleType.ColorScale) return le(
|
|
971
|
-
if (c?.type === I.ScaleType.DataBar) return le(
|
|
969
|
+
}, [r, d]), g = Q(() => {
|
|
970
|
+
if (c?.type === I.ScaleType.ColorScale) return le(b, { rows: s(c.stops ?? [], p, r) });
|
|
971
|
+
if (c?.type === I.ScaleType.DataBar) return le(b, { rows: f(c, Ue(c.color, r, m), c.borderColor ? Ue(c.borderColor, r, m) : void 0) });
|
|
972
972
|
if (c?.type === I.ScaleType.IconSet) return le(ne, {
|
|
973
973
|
sx: {
|
|
974
974
|
display: "flex",
|
|
@@ -994,14 +994,14 @@ var Ue = (e, o, l) => f(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
|
994
994
|
alignItems: "center",
|
|
995
995
|
justifyContent: "center",
|
|
996
996
|
...h,
|
|
997
|
-
backgroundColor: Le(u?.fill,
|
|
998
|
-
...e?.color && "auto" !== e.color ? { color: Ue(e.color,
|
|
997
|
+
backgroundColor: Le(u?.fill, r, "transparent"),
|
|
998
|
+
...e?.color && "auto" !== e.color ? { color: Ue(e.color, r, v) } : null,
|
|
999
999
|
...e?.weight ? { fontWeight: e.weight } : null,
|
|
1000
1000
|
...e?.style ? { fontStyle: e.style } : null,
|
|
1001
1001
|
textDecoration: [o ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
1002
|
-
fontSize: `${Math.round(.5 *
|
|
1002
|
+
fontSize: `${Math.round(.5 * t)}px`,
|
|
1003
1003
|
lineHeight: 1,
|
|
1004
|
-
outline: u?.borders ? `1px solid ${Ue(Object.values(u.borders)[0]?.color,
|
|
1004
|
+
outline: u?.borders ? `1px solid ${Ue(Object.values(u.borders)[0]?.color, r, i)}` : void 0,
|
|
1005
1005
|
outlineOffset: "-3px"
|
|
1006
1006
|
},
|
|
1007
1007
|
children: "Aa"
|
|
@@ -1009,21 +1009,21 @@ var Ue = (e, o, l) => f(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
|
|
|
1009
1009
|
}, [
|
|
1010
1010
|
c,
|
|
1011
1011
|
u,
|
|
1012
|
-
|
|
1012
|
+
t,
|
|
1013
1013
|
h,
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
r,
|
|
1015
|
+
d
|
|
1016
1016
|
]);
|
|
1017
|
-
return le(
|
|
1017
|
+
return le(a, {
|
|
1018
1018
|
sheet: !0,
|
|
1019
1019
|
className: "sxl-cf-rule-preview",
|
|
1020
1020
|
sx: {
|
|
1021
1021
|
width: "auto",
|
|
1022
|
-
minWidth: 1.7 *
|
|
1023
|
-
height: `${
|
|
1022
|
+
minWidth: 1.7 * t + "px",
|
|
1023
|
+
height: `${t}px`
|
|
1024
1024
|
},
|
|
1025
|
-
...
|
|
1026
|
-
children:
|
|
1025
|
+
...n,
|
|
1026
|
+
children: g
|
|
1027
1027
|
});
|
|
1028
1028
|
});
|
|
1029
1029
|
_e.displayName = "RulePreview";
|