@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.
Files changed (149) hide show
  1. package/browser/esm/{N5L4wQxRGEOH_wbp.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
  2. package/browser/esm/{DHmh3sMFGq4sRPhh.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
  3. package/browser/esm/{D_r8MdiauI15ds00.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
  4. package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
  5. package/browser/esm/{jDqohhLNEI6wqjo7.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
  6. package/browser/esm/{CHfzSl32Bs6LVY3G.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
  7. package/browser/esm/{DZngQvRDu3Qh7_uy.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
  8. package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
  9. package/browser/esm/{n1z1c9np4M3gMGCX.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
  10. package/browser/esm/{B4vVBfkY4Oq6M196.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
  11. package/browser/esm/{BH1Qj4pv8pPWZVhO.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
  12. package/browser/esm/{BDSYU5nx_6eGxAa4.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
  13. package/browser/esm/{Cf6bsmEPyPpiNtxU.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
  14. package/browser/esm/{B130jd-PqNgY2pV8.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
  15. package/browser/esm/{B4EWee1CcAHS5vAA.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
  16. package/browser/esm/{CzWXYarhfF4mF8fj.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
  17. package/browser/esm/{CEvJVwoVP9nscIcl.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
  18. package/browser/esm/{CFiyY-_XmW7G0_9y.mjs → C211u9yUXa4149g9.mjs} +1 -1
  19. package/browser/esm/{DoJ8N6FhUY0kYz9u.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
  20. package/browser/esm/{DqP1sKmMsG0tKwmV.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
  21. package/browser/esm/{Cx1r__xbzz-5zZgw.mjs → CA42_0vpQwF292tA.mjs} +1 -1
  22. package/browser/esm/{D1WSqegx9Zbjc-cL.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
  23. package/browser/esm/{k0bdGBFIHCTGANHW.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
  24. package/browser/esm/{DVQZtsBbf_Fsh-B6.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
  25. package/browser/esm/{npsX_Rztx4_7rCGP.mjs → CHb2gapathcPfhdM.mjs} +5 -5
  26. package/browser/esm/{94_olh2OyEbGAcNw.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
  27. package/browser/esm/{BBNFlngSL8Y3242O.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
  28. package/browser/esm/{Me9wSTkBepRyMDHH.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
  29. package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
  30. package/browser/esm/{uV_YgeJoyPa9SdGV.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
  31. package/browser/esm/{D2YXkXpEcP-NqHMv.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
  32. package/browser/esm/{WQaRUnIjMCkaRwsb.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
  33. package/browser/esm/{BQTUWwRUxgqg4s6Y.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
  34. package/browser/esm/{DoYGmNZ_X3Kvxx3K.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
  35. package/browser/esm/{ph1FP1S-yYM0I269.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
  36. package/browser/esm/{BYUokd7Q6y5Xw36U.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
  37. package/browser/esm/{NSuxs1P3kFsoLIMa.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
  38. package/browser/esm/{B0q0gHDAexrBB16B.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
  39. package/browser/esm/{SHaQophNZjobC_4f.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
  40. package/browser/esm/{m5mPoZGqgwOCQQOs.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
  41. package/browser/esm/{B1SDDlETvGUJ2Ipu.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
  42. package/browser/esm/{CWgz8hWLf3OzuMyZ.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
  43. package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
  44. package/browser/esm/{dlNcqumPfehZG2ai.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
  45. package/browser/esm/{BrFq6SNq-qx1PYZO.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
  46. package/browser/esm/{BMIfZN_dgjS_p-pF.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
  47. package/browser/esm/{BESsacbR41SalUJv.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
  48. package/browser/esm/{CbCTAkfOjIThF31A.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
  49. package/browser/esm/{a7OD-X4Jjp810Y6v.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
  50. package/browser/esm/{1JW5qOuAMlejsOrm.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
  51. package/browser/esm/{DlZoddGNGipM3S72.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
  52. package/browser/esm/{MR6LXUjaCV0DShNi.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
  53. package/browser/esm/{CbC8ObddTe-7ix6F.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
  54. package/browser/esm/{DGz8aGpEm8yfccoW.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
  55. package/browser/esm/index.mjs +299 -299
  56. package/browser/esm/{dikVMLRWr5g6T0E7.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
  57. package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
  58. package/browser/esm/{Bz6OaRkDOpj807bi.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
  59. package/browser/esm/{DVXQrjSOGoB23arZ.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
  60. package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
  61. package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
  62. package/browser/esm/{D8RzgRnl0S1-W_Tx.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
  63. package/browser/esm/{wwSpRKFXL9eeyQND.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
  64. package/browser/esm/{B0ymykpoTxxHQosi.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
  65. package/licenses/dependencies.txt +33 -33
  66. package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
  67. package/node/esm/{B_7rer9pnurpMB9J.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
  68. package/node/esm/{DGieA81teTm8uNPr.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
  69. package/node/esm/{DF5w_ZBWiRtITKLQ.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
  70. package/node/esm/{BedAzhQqTjs4BBb4.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
  71. package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
  72. package/node/esm/{C4esZkRHnb4HEK3k.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
  73. package/node/esm/{DHrxhle3aK3XU-Jz.mjs → BghhH54dXAqciBpw.mjs} +2 -2
  74. package/node/esm/{Diu9L9DJzZCMtFb4.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
  75. package/node/esm/{mHNl4j2rIZTqcQqb.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
  76. package/node/esm/{BBRSP-QRw-F0qQdJ.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
  77. package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
  78. package/node/esm/{BRICG2VkglJJKy0X.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
  79. package/node/esm/{Cr94rxP9x4CWSBhF.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
  80. package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
  81. package/node/esm/{qYIPGp0bxwW5i6Tn.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
  82. package/node/esm/{vTyr2di6cTC3sA1F.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
  83. package/node/esm/{BRpSVGr1A8w4AG_c.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
  84. package/node/esm/{B1CcqB7Ue-EPkdE-.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
  85. package/node/esm/{Bwtmjq_jln0eMEMe.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
  86. package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
  87. package/node/esm/{MNdDR5PA6J1YEtyL.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
  88. package/node/esm/{D13aAzbfNwj50sqn.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
  89. package/node/esm/{4mAgDExCti1oMAez.mjs → D283LXrMqi3exI_l.mjs} +1 -1
  90. package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
  91. package/node/esm/{CBes_pLI-7rJsre4.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
  92. package/node/esm/{CJszsuCXRBPNuT1A.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
  93. package/node/esm/{Bm31UyWMCsJ7z4wJ.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
  94. package/node/esm/{Bz0uw5YbQGvhlPhZ.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
  95. package/node/esm/{D2eYMCx5eAEJsfP6.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
  96. package/node/esm/{BSZ0bAJn4ODpGusx.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
  97. package/node/esm/{suDXa2UiBKJB4nsR.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
  98. package/node/esm/{pm_LpeNYjo6Aahu3.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
  99. package/node/esm/{D__UzirlxQlq32Rm.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
  100. package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
  101. package/node/esm/{DlSfkSNLCwzofCfS.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
  102. package/node/esm/{C1y7Z0K9Ougef8dU.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
  103. package/node/esm/{DXQFo_r4CCCvIubP.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
  104. package/node/esm/{n5-pWzwq4pDS4adG.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
  105. package/node/esm/index.mjs +3294 -3031
  106. package/node/esm/{B7_-3nxcN-ZSDQVT.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
  107. package/node/esm/{DvlZnGlon5gwQBxU.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
  108. package/node/esm/{9e9_OZYxc0ATDkNI.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
  109. package/package.json +9 -9
  110. package/resources/locales/de/groups.cmd.json +4 -6
  111. package/resources/locales/de/ui.msg.json +164 -3
  112. package/resources/locales/en/groups.cmd.json +4 -6
  113. package/resources/locales/en/ui.msg.json +164 -3
  114. package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
  115. package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
  116. package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
  117. package/types/src/chart/ChartFormatPanel.d.ts +12 -14
  118. package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
  119. package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
  120. package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
  121. package/types/src/chart/command/index.d.ts +2 -0
  122. package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
  123. package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
  124. package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
  125. package/types/src/color/ColorSetSwatch.d.ts +34 -0
  126. package/types/src/color/index.d.ts +1 -0
  127. package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
  128. package/types/src/format/FillPanel.d.ts +1 -3
  129. package/types/src/format/FormatPanelParts.d.ts +2 -2
  130. package/types/src/format/FormatPlugin.d.ts +2 -2
  131. package/types/src/format/FormatTaskPane.d.ts +4 -10
  132. package/types/src/format/LinePanel.d.ts +0 -2
  133. package/types/src/format/editor/FormatEditor.d.ts +36 -0
  134. package/types/src/format/editor/FormatField.d.ts +97 -0
  135. package/types/src/format/editor/FormatFields.d.ts +20 -0
  136. package/types/src/format/editor/index.d.ts +4 -0
  137. package/types/src/format/index.d.ts +1 -0
  138. package/types/src/format/useFormatSelection.d.ts +0 -2
  139. package/types/src/index.d.ts +1 -1
  140. package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
  141. package/types/src/workbook/DefaultRenderers.d.ts +7 -1
  142. package/browser/esm/39iN4gKrFnhPhM1Z.mjs +0 -517
  143. package/browser/esm/BWXXi0teArfwa70E.mjs +0 -72
  144. package/browser/esm/J519wp1_d0QjzPfN.mjs +0 -516
  145. package/node/esm/Bc2iZ6Qs3kHdsECK.mjs +0 -1831
  146. package/node/esm/BvKg2K2J7Us2czkC.mjs +0 -519
  147. package/node/esm/CwQPIQaC6CcVGkD2.mjs +0 -73
  148. package/node/esm/CyQekcyEfM7Engbk.mjs +0 -516
  149. 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.4
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, 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 "./C1y7Z0K9Ougef8dU.mjs";
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 : 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) => {
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), a = e.style.borders ? Fe(Object.values(e.style.borders)[0]?.color, p) : null;
81
- return le(n, {
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: a ? `1px solid ${a.toCSS("adaptive")}` : void 0,
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(n, {
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(l, {
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(l, {
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: 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;
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(l, {
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
- ...n,
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: n.exclusive ? "gt" : "gte",
257
+ value: a.exclusive ? "gt" : "gte",
258
258
  disabled: m,
259
259
  onChange: (e) => {
260
- const o = { ...n };
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
- ...n,
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: d.map((e) => le(se, {
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(t, {
302
+ S ? le(n, {
303
303
  size: "small",
304
304
  home: C.home,
305
- value: F ? C.display(F) : `${n.value ?? ""}`,
305
+ value: F ? C.display(F) : `${a.value ?? ""}`,
306
306
  onChangeText: (e) => {
307
307
  r({
308
- ...n,
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 ? `${n.value ?? ""}` : "",
328
+ value: f ? `${a.value ?? ""}` : "",
329
329
  disabled: b,
330
330
  onChange: (e) => {
331
331
  const o = e.target.value;
332
332
  r({
333
- ...n,
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: l, readOnly: t, ...r } = e, i = H(), { workbook: d, toColor: s } = a(), c = o.stops ?? [], p = 2 === c.length ? [Ce("conditionalFormat.stop.minimum"), Ce("conditionalFormat.stop.maximum")] : [
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 === c.length ? 2 : 3)).map((e, o) => le(n, {
385
+ children: M.filter((e) => e.stops.length === (2 === m.length ? 2 : 3)).map((e, o) => le(a, {
386
386
  sheet: !0,
387
- disabled: t,
388
- onClick: () => l(structuredClone(e)),
389
- children: le(v, { rows: b(e.stops ?? [], m, d) })
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 === c.length ? 2 : 3,
395
- disabled: t,
396
- onChange: (e, t) => {
397
- t && ((e) => {
398
- if (e === c.length || 2 !== e && 3 !== e) return;
399
- const t = c.slice();
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 = s(c[0]?.color ?? e)?.toRGBA(), l = s(c[c.length - 1]?.color ?? e)?.toRGBA();
403
- if (o && l) {
404
- const t = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
405
- e = `#${t((o.red + l.red) / 2)}${t((o.green + l.green) / 2)}${t((o.blue + l.blue) / 2)}`;
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
- t.splice(1, 0, {
407
+ l.splice(1, 0, {
408
408
  type: I.ColorStopType.Percentile,
409
409
  value: 50,
410
410
  color: e
411
411
  });
412
- } else t.splice(1, t.length - 2);
413
- l({
412
+ } else l.splice(1, l.length - 2);
413
+ t({
414
414
  ...o,
415
- stops: t
415
+ stops: l
416
416
  });
417
- })(t);
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: c.map((e, n) => le(Pe, {
441
- label: i(p[Math.min(n, p.length - 1)]),
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: t,
445
+ readOnly: n,
446
446
  onStopChange: (e) => {
447
- const t = c.slice();
448
- t[n] = e, l({
447
+ const n = m.slice();
448
+ n[l] = e, t({
449
449
  ...o,
450
- stops: t
450
+ stops: n
451
451
  });
452
452
  }
453
- }, n))
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: 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) => {
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
- t(l);
477
- }, f = { backgroundColor: "background.paper" };
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) === x).map((e, o) => le(n, {
500
+ children: O.filter((e) => (e.solidFill ?? !1) === y).map((e, o) => le(a, {
501
501
  sheet: !0,
502
502
  disabled: r,
503
- onClick: () => C({
503
+ onClick: () => x({
504
504
  color: e.color,
505
505
  solidFill: e.solidFill,
506
506
  borderColor: e.borderColor
507
507
  }),
508
- children: le(v, { rows: d(e, p(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
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: x,
513
+ value: y,
514
514
  disabled: r,
515
515
  onChange: (e, o) => {
516
- null !== o && C({ solidFill: !!o || void 0 });
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: s("conditionalFormat.solidFill")
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: s("conditionalFormat.gradientFill")
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) => C({ showValue: !e.target.checked && void 0 })
543
+ onChange: (e) => x({ showValue: !e.target.checked && void 0 })
544
544
  }),
545
545
  label: le(xe, {
546
546
  variant: "body2",
547
- children: s("conditionalFormat.showBarsOnly")
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: s("conditionalFormat.bar")
563
+ children: d("conditionalFormat.bar")
564
564
  }),
565
- le(l, {
565
+ le(t, {
566
566
  icon: "fill.colored",
567
- tooltip: s("conditionalFormat.barColor"),
568
- selectedColor: u,
567
+ tooltip: d("conditionalFormat.barColor"),
568
+ selectedColor: m,
569
569
  disabled: r,
570
- onSelectColor: (e) => C({ color: e ? e.toString() : void 0 }),
571
- darkMode: c,
570
+ onSelectColor: (e) => x({ color: e ? e.toString() : void 0 }),
571
+ darkMode: s,
572
572
  propsPanel: {
573
573
  disableAlpha: !0,
574
- ...m
574
+ ...p
575
575
  }
576
576
  }),
577
- le(l, {
577
+ le(t, {
578
578
  icon: "stroke.colored",
579
- tooltip: s("conditionalFormat.barBorderColor"),
580
- selectedColor: g,
579
+ tooltip: d("conditionalFormat.barBorderColor"),
580
+ selectedColor: h,
581
581
  disabled: r,
582
- onSelectColor: (e) => C({ borderColor: e ? e.toString() : void 0 }),
583
- darkMode: c,
582
+ onSelectColor: (e) => x({ borderColor: e ? e.toString() : void 0 }),
583
+ darkMode: s,
584
584
  propsPanel: {
585
585
  disableAlpha: !0,
586
- ...m
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: s("conditionalFormat.negative")
604
+ children: d("conditionalFormat.negative")
605
605
  }),
606
- le(l, {
606
+ le(t, {
607
607
  icon: "fill.colored",
608
- tooltip: s("conditionalFormat.negativeColor"),
609
- selectedColor: h ?? u,
608
+ tooltip: d("conditionalFormat.negativeColor"),
609
+ selectedColor: u ?? m,
610
610
  disabled: r,
611
- onSelectColor: (e) => C({ negativeFillColor: e ? e.toString() : void 0 }),
612
- darkMode: c,
611
+ onSelectColor: (e) => x({ negativeFillColor: e ? e.toString() : void 0 }),
612
+ darkMode: s,
613
613
  propsPanel: {
614
614
  disableAlpha: !0,
615
- ...m
615
+ ...p
616
616
  }
617
617
  }),
618
- le(l, {
618
+ le(t, {
619
619
  icon: "stroke.colored",
620
- tooltip: s("conditionalFormat.negativeBorderColor"),
621
- selectedColor: y ?? g,
620
+ tooltip: d("conditionalFormat.negativeBorderColor"),
621
+ selectedColor: g ?? h,
622
622
  disabled: r,
623
- onSelectColor: (e) => C({ negativeBorderColor: e ? e.toString() : void 0 }),
624
- darkMode: c,
623
+ onSelectColor: (e) => x({ negativeBorderColor: e ? e.toString() : void 0 }),
624
+ darkMode: s,
625
625
  propsPanel: {
626
626
  disableAlpha: !0,
627
- ...m
627
+ ...p
628
628
  }
629
629
  }),
630
- le(n, {
631
- title: s("conditionalFormat.sameAsPositive"),
630
+ le(a, {
631
+ title: d("conditionalFormat.sameAsPositive"),
632
632
  disabled: r || !o.negativeFillColor && !o.negativeBorderColor,
633
- onClick: () => C({
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: s("conditionalFormat.axis") }), te(pe, {
661
- label: s("conditionalFormat.axis"),
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: f,
664
+ sx: C,
665
665
  onChange: (e) => {
666
666
  const o = e.target.value;
667
- C({ axisPosition: o === Oe ? void 0 : o });
667
+ x({ axisPosition: o === Oe ? void 0 : o });
668
668
  },
669
669
  children: [
670
670
  le(se, {
671
671
  value: Oe,
672
- children: s("conditionalFormat.automatic")
672
+ children: d("conditionalFormat.automatic")
673
673
  }),
674
674
  le(se, {
675
675
  value: "middle",
676
- children: s("conditionalFormat.axisMiddle")
676
+ children: d("conditionalFormat.axisMiddle")
677
677
  }),
678
678
  le(se, {
679
679
  value: "none",
680
- children: s("conditionalFormat.axisNone")
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: s("conditionalFormat.direction") }), te(pe, {
691
- label: s("conditionalFormat.direction"),
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: f,
694
+ sx: C,
695
695
  onChange: (e) => {
696
696
  const o = e.target.value;
697
- C({ direction: o === Oe ? void 0 : o });
697
+ x({ direction: o === Oe ? void 0 : o });
698
698
  },
699
699
  children: [
700
700
  le(se, {
701
701
  value: Oe,
702
- children: s("conditionalFormat.automatic")
702
+ children: d("conditionalFormat.automatic")
703
703
  }),
704
704
  le(se, {
705
705
  value: "leftToRight",
706
- children: s("conditionalFormat.leftToRight")
706
+ children: d("conditionalFormat.leftToRight")
707
707
  }),
708
708
  le(se, {
709
709
  value: "rightToLeft",
710
- children: s("conditionalFormat.rightToLeft")
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: s("conditionalFormat.stop.minimum"),
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) => C({ minPoint: e })
723
+ onStopChange: (e) => x({ minPoint: e })
724
724
  }), le(Pe, {
725
- label: s("conditionalFormat.stop.maximum"),
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) => C({ maxPoint: 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(n, {
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 a = (r = o, i = e.spec, !!r && r.iconKey === i.iconKey && r.color === i.color);
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(n, {
775
+ return le(a, {
776
776
  sheet: !0,
777
- title: x(t, e.spec),
778
- "aria-pressed": a,
777
+ title: g(t, e.spec),
778
+ "aria-pressed": n,
779
779
  sx: {
780
780
  ...je,
781
- ...a ? De : null
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 ?? [], p = d.length, m = L(o), u = (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 ?? [], 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
- }, h = J((e) => {
836
- const { closeFloat: o } = e, l = le(c, {
837
- groups: s,
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)), u({
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]), g = k.camelToPrettyCase(r);
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: g,
875
- tooltip: g,
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: g
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: h
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) => u({ showValue: !e.target.checked && void 0 })
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) => u({ reverse: !!e.target.checked || void 0 })
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 ? p - 1 - n : n;
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: m[n] ?? null,
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, u({ stops: o });
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) => f(e, o)?.toCSS("adaptive") ?? l, Le = (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: l = 28, ...t } = e, { workbook: i, themeKey: s } = a();
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 i?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
965
+ return r?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
966
966
  } catch {
967
967
  return {};
968
968
  }
969
- }, [i, s]), y = Q(() => {
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) });
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, i, "transparent"),
998
- ...e?.color && "auto" !== e.color ? { color: Ue(e.color, i, r) } : null,
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 * l)}px`,
1002
+ fontSize: `${Math.round(.5 * t)}px`,
1003
1003
  lineHeight: 1,
1004
- outline: u?.borders ? `1px solid ${Ue(Object.values(u.borders)[0]?.color, i, p)}` : void 0,
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
- l,
1012
+ t,
1013
1013
  h,
1014
- i,
1015
- s
1014
+ r,
1015
+ d
1016
1016
  ]);
1017
- return le(n, {
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 * l + "px",
1023
- height: `${l}px`
1022
+ minWidth: 1.7 * t + "px",
1023
+ height: `${t}px`
1024
1024
  },
1025
- ...t,
1026
- children: y
1025
+ ...n,
1026
+ children: g
1027
1027
  });
1028
1028
  });
1029
1029
  _e.displayName = "RulePreview";