@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
  2. package/browser/esm/{LZoYSQAYV2wksnDv.mjs → 2nRxqrNYbmEn8fS8.mjs} +5 -5
  3. package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
  4. package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → BAzhmMX4Fk_qnUTp.mjs} +5 -5
  5. package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → BGL3x0W74D7qZXlf.mjs} +3 -3
  6. package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BHGr2gsFofTdAFxq.mjs} +4 -4
  7. package/browser/esm/{BknfGJouygmnpFIU.mjs → BKhcJI-G15D3kGap.mjs} +2 -2
  8. package/browser/esm/{CyLn6zOOp_biA3xU.mjs → BNbub9weuqm3mcoF.mjs} +8 -8
  9. package/browser/esm/{CWkOgdL7mOKiTR62.mjs → BSv9MVJaz1DVEffm.mjs} +4 -4
  10. package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → BWfLpYmd3cSgJ0C6.mjs} +4 -4
  11. package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → BZqwbIE8qzjSOYcJ.mjs} +13 -13
  12. package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → BZy9xUrYpAtnKeji.mjs} +11 -11
  13. package/browser/esm/{COlZu93LRwuBvjE-.mjs → BnkwC5rsg9LZyhoP.mjs} +2 -2
  14. package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → BpJsBv413cNQpyg0.mjs} +3 -3
  15. package/browser/esm/{DDczwkXhz_MHub4z.mjs → BpVrgbVISiTDyFR3.mjs} +2 -2
  16. package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → BsngRDhvVYGVBJeK.mjs} +365 -362
  17. package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → C29TKq47CbXs652l.mjs} +2 -2
  18. package/browser/esm/{BXhNFzyEGokTF-BL.mjs → C8p2iMad_NNCwGI_.mjs} +2 -2
  19. package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → CBzXksWnb-1gGEWZ.mjs} +1 -1
  20. package/browser/esm/{zqilJefihVd7At2T.mjs → CFIAWgpU3UyepLBn.mjs} +7 -7
  21. package/browser/esm/{DG21x7RKDpge6zAE.mjs → CJD4jF4m9cBGHzr_.mjs} +1 -1
  22. package/browser/esm/{C9pIZVACtl9unFOp.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
  23. package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
  24. package/browser/esm/{Buqcl7J75MJrhpVE.mjs → CeF35ZeFP28Do5Zx.mjs} +8 -8
  25. package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
  26. package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → Cq82lvdjyBvlJ8xJ.mjs} +1 -1
  27. package/browser/esm/{DEv4pIEgYr5C7etm.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
  28. package/browser/esm/{C8JU4KsMasmLvojI.mjs → Cvk2yY90hpgXWMAt.mjs} +1 -1
  29. package/browser/esm/{CynTY0oNtyJnoaBq.mjs → D0slJycx3nq53qmf.mjs} +1 -1
  30. package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
  31. package/browser/esm/{DdcZrjMLWVukWcU5.mjs → D5Fn0Hqllwv5HY6i.mjs} +768 -660
  32. package/browser/esm/{Bujtz_Guj88d03vI.mjs → D5N4nGaZsXtrHAOh.mjs} +6 -6
  33. package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → D7AqPfyhMiuda5l5.mjs} +2 -2
  34. package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → DHZA48ZMCETvHmeP.mjs} +1 -1
  35. package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → DX2_vf7WX6uRLaOZ.mjs} +1 -1
  36. package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → DaxpbAF1ShkT7hNU.mjs} +206 -124
  37. package/browser/esm/{YThnrg3PadGs7B4j.mjs → Db3oHfXiRtcH015t.mjs} +143 -137
  38. package/browser/esm/{C0wlMAIn9iREPK6w.mjs → Dt47Huh1l3C4_5_w.mjs} +1 -1
  39. package/browser/esm/{xFqkfN8QMCxvsetB.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
  40. package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
  41. package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → DuuyN4-7K6_io2Py.mjs} +2 -2
  42. package/browser/esm/{w_JrR69vEpvoyeMy.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
  43. package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PY3Br5Bo_TxcCnCU.mjs} +2 -2
  44. package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → WIhvQtBkGiw-oFUs.mjs} +636 -622
  45. package/browser/esm/{DJOOed_OtB-XT7f3.mjs → WgIvwAENeO8LANax.mjs} +6 -6
  46. package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
  47. package/browser/esm/index.mjs +290 -287
  48. package/browser/esm/{QgaAIDUMmBQBsXP9.mjs → jFRFCWlkD7Dsrhkh.mjs} +84 -84
  49. package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → lKXEDVt2ow1NlWJj.mjs} +114 -103
  50. package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → oC0OwOddhOD0OoCJ.mjs} +2 -2
  51. package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
  52. package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → u84rSnESjxqB6gay.mjs} +1 -1
  53. package/node/esm/{DMXLxp3T0E0SRTQc.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
  54. package/node/esm/{3WghtBXAvCDwcVrq.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
  55. package/node/esm/{XEDcegsv5AGKBfu2.mjs → BBGoyqs2L_ccSH1e.mjs} +2 -2
  56. package/node/esm/{zITjZ7R4raDqhP-n.mjs → BLv99aovW4R3C5PE.mjs} +3 -3
  57. package/node/esm/{DfCuL8AUxMFoEG2s.mjs → BUGU_5lUtnCRlp3n.mjs} +36 -36
  58. package/node/esm/{BNg4QQY0WAPLE0q7.mjs → BalROFG_oa9PFs9Q.mjs} +3 -3
  59. package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
  60. package/node/esm/{CZyA9uD4SkTvqp_G.mjs → C3FCh9xju2SccUIE.mjs} +253 -253
  61. package/node/esm/{Do-zCKziWhoG5eAv.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
  62. package/node/esm/{CSAnTp5rwId0DUb8.mjs → CKWeipCqqpLnLE5e.mjs} +127 -116
  63. package/node/esm/{DLqBHdFp6wvm6EGs.mjs → CTnVNfz4eqFnM92M.mjs} +1 -1
  64. package/node/esm/{BPzcW4BejRqso338.mjs → Cfi_ly8fBDZZdiZT.mjs} +3 -3
  65. package/node/esm/{Db3dbaYLKUO66T9s.mjs → CgKa6JuyJ1tTodev.mjs} +414 -400
  66. package/node/esm/{4HmLH0bPVJCZLgik.mjs → Cq53M7bAUSXMNq1f.mjs} +1 -1
  67. package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
  68. package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
  69. package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → D72CupF9mfy2D1Xa.mjs} +1 -1
  70. package/node/esm/{CyafafEgfmjLqE5O.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
  71. package/node/esm/{DpJ2gmZJioCyq8La.mjs → DJFkALt4XrwkMbnU.mjs} +166 -160
  72. package/node/esm/{CPq-MIdEnc-53JpF.mjs → DJpwI8PlKBI2rk0r.mjs} +2 -2
  73. package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → DQaGPUYbgL4Y5YZW.mjs} +1 -1
  74. package/node/esm/{CYIoK22I6Yvv12_x.mjs → DsNYnq4NtYBxPmeA.mjs} +1 -1
  75. package/node/esm/{yCUxQuqVuC4DHKPx.mjs → DygDgOpa9sJ6YFVS.mjs} +1 -1
  76. package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
  77. package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → M7YxvRPGCuxuk9aK.mjs} +1 -1
  78. package/node/esm/{CWcv7UVXF8IUB0PC.mjs → QNjtpX8rIpqGGLEJ.mjs} +15 -15
  79. package/node/esm/{DdEzhVqYTrGODXrz.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
  80. package/node/esm/{CjC6s3RUJQNCF7mP.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
  81. package/node/esm/{CvRbu8JPxFarsSR-.mjs → dm8dmEaTIqfmgyeL.mjs} +5 -5
  82. package/node/esm/{CuMePia6i_8yfJ6S.mjs → fmya3XQnTGyQisvT.mjs} +9 -9
  83. package/node/esm/{BR45ogAR-hY2bE60.mjs → gPYAb_A0T5ZwcQ1E.mjs} +1 -1
  84. package/node/esm/index.mjs +2817 -2702
  85. package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → wB8xMpyJ_NvE16yG.mjs} +3 -3
  86. package/node/esm/{BlN7G0DVC24zauig.mjs → zGAcd4Jr7wkvXDBS.mjs} +1 -1
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +4 -0
  89. package/resources/locales/de/ui.msg.json +3 -1
  90. package/resources/locales/en/groups.cmd.json +4 -0
  91. package/resources/locales/en/ui.msg.json +3 -1
  92. package/types/src/border/BorderPopupButton.d.ts +1 -1
  93. package/types/src/color/ColorPopupButton.d.ts +1 -1
  94. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  95. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  96. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  97. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  98. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  99. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  100. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  101. package/types/src/command/index.d.ts +1 -0
  102. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  103. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  104. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  105. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  106. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  107. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  108. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  109. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  110. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  111. package/types/src/statusBar/index.d.ts +1 -0
  112. package/types/src/studio/StudioProps.d.ts +10 -10
  113. package/types/src/template/TemplatePanel.d.ts +5 -1
  114. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  115. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  116. package/types/src/workbook/DefaultRenderers.d.ts +30 -18
  117. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  118. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  119. package/types/src/workbook/index.d.ts +1 -1
  120. package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
  121. package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
@@ -1,22 +1,22 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { AutoColorPosition as e, BorderPopupButton as o, C as l, ColorPopupButton as t, FormulaField as a, PresetChip as n, S as r, T as i, _ as d, b as s, c, f as p, g as u, h as m, l as g, m as h, o as y, s as x, v as C, w as f, x as v, y as b } from "./index.mjs";
8
- import { n as S, t as F } from "./BNg4QQY0WAPLE0q7.mjs";
7
+ import { AutoColorPosition as e, BorderPopupButton as o, ColorPopupButton as l, FormulaField as t, PresetChip as n, _ as a, a as r, b as i, c as d, d as s, f as c, g as p, h as u, i as m, m as g, n as h, p as y, r as x, u as C, v as f, x as v, y as b } from "./index.mjs";
8
+ import { n as S, t as F } from "./BalROFG_oa9PFs9Q.mjs";
9
9
  import { Color as T, CommonUtils as k, ICellStyle as w, ICondition as P, IConditionalFormat as I, IFill as N, IFont as M } from "@sheetxl/sdk";
10
10
  import { COLOR_SCALE_PRESETS as B, DATA_BAR_PRESETS as O, ICON_CATALOG as z, IconSetGlyphs as A, NO_CELL_ICON as R, 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
- import { ExhibitPopupIconButton as Z, defaultCreatePopupPanel as ee } from "@sheetxl/utils-mui";
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 ae, Checkbox as ne, FormControl as re, FormControlLabel as ie, InputLabel as de, MenuItem as se, Paper as ce, Select as pe, Tab as ue, Tabs as me, TextField as ge, ToggleButton as he, ToggleButtonGroup as ye, Typography as xe } from "@mui/material";
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 ue, Tabs as me, TextField as ge, ToggleButton as he, ToggleButtonGroup as ye, Typography as xe } from "@mui/material";
16
16
  import { messageKey as Ce } from "@sheetxl/utils";
17
17
  var fe = q((e) => {
18
- const { variant: o = "format", children: l, sx: t, ...a } = e;
19
- return le(ae, {
18
+ const { variant: o = "format", children: l, sx: t, ...n } = e;
19
+ return le(ne, {
20
20
  className: `sxl-cf-rule-section sxl-cf-rule-section-${o}`,
21
21
  sx: {
22
22
  display: "flex",
@@ -29,7 +29,7 @@ var fe = q((e) => {
29
29
  ..."config" === o ? { backgroundColor: "action.hover" } : null,
30
30
  ...t
31
31
  },
32
- ...a,
32
+ ...n,
33
33
  children: l
34
34
  });
35
35
  });
@@ -41,34 +41,34 @@ var ve = 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((l) => {
45
- const { format: a, onFormatChange: r, readOnly: d, ...s } = l, c = H(), { workbook: p, schemeLookup: u, themeKey: m, darkMode: g, propsColorPanel: h } = i(), y = a?.font ?? null, x = (y?.weight ?? 400) >= 600, C = y?.style === M.Style.Italic, f = !!y?.underline && y.underline !== M.UnderlineStyle.None, v = !!y?.strike && y.strike !== M.StrikeStyle.None, b = (e) => {
46
- const o = { ...y };
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 : i(e, o), Te = q((t) => {
45
+ const { format: a, onFormatChange: r, readOnly: i, ...d } = t, s = H(), { workbook: c, schemeLookup: p, themeKey: u, darkMode: m, propsColorPanel: g } = v(), h = a?.font ?? null, y = (h?.weight ?? 400) >= 600, x = h?.style === M.Style.Italic, C = !!h?.underline && h.underline !== M.UnderlineStyle.None, f = !!h?.strike && h.strike !== M.StrikeStyle.None, b = (e) => {
46
+ const o = { ...h };
47
47
  for (const [l, t] of Object.entries(e)) void 0 === t ? delete o[l] : o[l] = t;
48
48
  const l = { ...a };
49
49
  0 === Object.keys(o).length ? delete l.font : l.font = o, r(0 === Object.keys(l).length ? null : l);
50
- }, S = Q(() => p?.getStyles().getNormal().getFont().getColor(), [p, m]), F = Q(() => Fe(y?.color, p), [
51
- y?.color,
52
- p,
53
- m
54
- ]), T = Q(() => Fe(Se(a?.fill), p), [
50
+ }, S = Q(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), F = Q(() => Fe(h?.color, c), [
51
+ h?.color,
52
+ c,
53
+ u
54
+ ]), T = Q(() => Fe(Se(a?.fill), c), [
55
55
  a?.fill,
56
- p,
57
- m
56
+ c,
57
+ u
58
58
  ]), k = {
59
59
  padding: "4px",
60
60
  border: "none",
61
61
  borderRadius: 1
62
62
  };
63
63
  return te(fe, {
64
- ...s,
65
- children: [te(ae, {
64
+ ...d,
65
+ children: [te(ne, {
66
66
  sx: {
67
67
  display: "flex",
68
68
  alignItems: "flex-start",
69
69
  gap: 1
70
70
  },
71
- children: [le(ae, {
71
+ children: [le(ne, {
72
72
  sx: {
73
73
  flex: "1 1 auto",
74
74
  minWidth: 0,
@@ -77,11 +77,11 @@ var ve = 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;
80
+ const l = Fe(Se(e.style.fill), c), t = Fe(e.style.font?.color, c), a = e.style.borders ? Fe(Object.values(e.style.borders)[0]?.color, c) : null;
81
81
  return le(n, {
82
82
  sheet: !0,
83
- title: c(be[e.key] ?? e.key),
84
- disabled: d,
83
+ title: s(be[e.key] ?? e.key),
84
+ disabled: i,
85
85
  onClick: () => r(structuredClone(e.style)),
86
86
  sx: {
87
87
  backgroundColor: l?.toCSS("adaptive") ?? void 0,
@@ -93,8 +93,8 @@ var ve = new T("transparent"), be = {
93
93
  }, o);
94
94
  })
95
95
  }), le(n, {
96
- title: c("conditionalFormat.clearStyle"),
97
- disabled: d || !a,
96
+ title: s("conditionalFormat.clearStyle"),
97
+ disabled: i || !a,
98
98
  onClick: () => r(null),
99
99
  sx: {
100
100
  color: "text.secondary",
@@ -105,7 +105,7 @@ var ve = new T("transparent"), be = {
105
105
  size: 16
106
106
  })
107
107
  })]
108
- }), te(ae, {
108
+ }), te(ne, {
109
109
  sx: {
110
110
  display: "flex",
111
111
  alignItems: "center",
@@ -116,56 +116,56 @@ var ve = new T("transparent"), be = {
116
116
  value: "bold",
117
117
  size: "small",
118
118
  sx: k,
119
- selected: x,
120
- disabled: d,
121
- onChange: () => b({ weight: x ? void 0 : 700 }),
119
+ selected: y,
120
+ disabled: i,
121
+ onChange: () => b({ weight: y ? void 0 : 700 }),
122
122
  children: le(V, { iconKey: "TextBold" })
123
123
  }),
124
124
  le(he, {
125
125
  value: "italic",
126
126
  size: "small",
127
127
  sx: k,
128
- selected: C,
129
- disabled: d,
130
- onChange: () => b({ style: C ? void 0 : M.Style.Italic }),
128
+ selected: x,
129
+ disabled: i,
130
+ onChange: () => b({ style: x ? void 0 : M.Style.Italic }),
131
131
  children: le(V, { iconKey: "TextItalic" })
132
132
  }),
133
133
  le(he, {
134
134
  value: "underline",
135
135
  size: "small",
136
136
  sx: k,
137
- selected: f,
138
- disabled: d,
139
- onChange: () => b({ underline: f ? void 0 : M.UnderlineStyle.Single }),
137
+ selected: C,
138
+ disabled: i,
139
+ onChange: () => b({ underline: C ? void 0 : M.UnderlineStyle.Single }),
140
140
  children: le(V, { iconKey: "TextUnderline" })
141
141
  }),
142
142
  le(he, {
143
143
  value: "strike",
144
144
  size: "small",
145
145
  sx: k,
146
- selected: v,
147
- disabled: d,
148
- onChange: () => b({ strike: v ? void 0 : M.StrikeStyle.Single }),
146
+ selected: f,
147
+ disabled: i,
148
+ onChange: () => b({ strike: f ? void 0 : M.StrikeStyle.Single }),
149
149
  children: le(V, { iconKey: "TextStrike" })
150
150
  }),
151
- p && le(o, {
152
- tooltip: c("conditionalFormat.border"),
151
+ c && le(o, {
152
+ tooltip: s("conditionalFormat.border"),
153
153
  selectedBorder: a?.borders,
154
- createBorder: (e) => p.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
155
- schemeLookup: u,
154
+ createBorder: (e) => c.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
155
+ schemeLookup: p,
156
156
  autoColor: S,
157
- darkMode: g,
158
- disabled: d,
157
+ darkMode: m,
158
+ disabled: i,
159
159
  onSelectBorder: (e) => ((e) => {
160
160
  const o = { ...a };
161
161
  e && 0 !== Object.keys(e).length ? o.borders = e : delete o.borders, r(0 === Object.keys(o).length ? null : o);
162
162
  })(e)
163
163
  }),
164
- le(t, {
164
+ le(l, {
165
165
  icon: "fill.colored",
166
- tooltip: c("conditionalFormat.fillColor"),
166
+ tooltip: s("conditionalFormat.fillColor"),
167
167
  selectedColor: T,
168
- disabled: d,
168
+ disabled: i,
169
169
  onSelectColor: (e) => ((e) => {
170
170
  const o = { ...a };
171
171
  e ? o.fill = {
@@ -173,26 +173,26 @@ var ve = new T("transparent"), be = {
173
173
  color: e.toString()
174
174
  } : delete o.fill, r(0 === Object.keys(o).length ? null : o);
175
175
  })(e),
176
- darkMode: g,
176
+ darkMode: m,
177
177
  propsPanel: {
178
178
  disableAlpha: !0,
179
179
  autoColor: ve,
180
180
  autoColorLabelKey: Ce("color.noFill"),
181
181
  autoColorPosition: e.End,
182
- ...h
182
+ ...g
183
183
  }
184
184
  }),
185
- le(t, {
185
+ le(l, {
186
186
  icon: "text.colored",
187
- tooltip: c("conditionalFormat.fontColor"),
187
+ tooltip: s("conditionalFormat.fontColor"),
188
188
  selectedColor: F,
189
- disabled: d,
189
+ disabled: i,
190
190
  onSelectColor: (e) => b({ color: e ? e.toString() : void 0 }),
191
- darkMode: g,
191
+ darkMode: m,
192
192
  propsPanel: {
193
193
  disableAlpha: !0,
194
194
  autoColor: S,
195
- ...h
195
+ ...g
196
196
  }
197
197
  })
198
198
  ]
@@ -215,8 +215,8 @@ var ke = {
215
215
  I.ColorStopType.Min,
216
216
  I.ColorStopType.Max
217
217
  ]), Pe = q((e) => {
218
- const { label: o, stop: l, onStopChange: n, allowedTypes: r, showColor: d = !1, leading: s, showExclusive: c = !1, readOnly: p, ...u } = e, m = H(), { darkMode: h, toColor: y, propsColorPanel: x } = i(), C = g(), f = l.type ?? I.ColorStopType.Num, v = !we.has(f), b = p || !v, S = f === I.ColorStopType.Formula, F = l.value?.isIFormula ? l.value : null, T = l.color, k = d ? y(T) : null;
219
- return te(ae, {
218
+ const { label: o, stop: n, onStopChange: a, allowedTypes: i, showColor: d = !1, leading: s, showExclusive: c = !1, readOnly: p, ...u } = e, m = H(), { darkMode: g, toColor: h, propsColorPanel: y } = v(), x = r(), C = n.type ?? I.ColorStopType.Num, f = !we.has(C), b = p || !f, S = C === I.ColorStopType.Formula, F = n.value?.isIFormula ? n.value : null, T = n.color, k = d ? h(T) : null;
219
+ return te(ne, {
220
220
  sx: {
221
221
  display: "flex",
222
222
  alignItems: "center",
@@ -236,29 +236,29 @@ var ke = {
236
236
  children: o
237
237
  }),
238
238
  s,
239
- d && le(t, {
239
+ d && le(l, {
240
240
  tooltip: m("conditionalFormat.stopColor"),
241
241
  selectedColor: k,
242
242
  disabled: p,
243
243
  onSelectColor: (e) => {
244
- e && n({
245
- ...l,
244
+ e && a({
245
+ ...n,
246
246
  color: e.toString()
247
247
  });
248
248
  },
249
- darkMode: h,
249
+ darkMode: g,
250
250
  propsPanel: {
251
251
  disableAlpha: !0,
252
- ...x
252
+ ...y
253
253
  }
254
254
  }),
255
255
  c && te(pe, {
256
256
  size: "small",
257
- value: l.exclusive ? "gt" : "gte",
257
+ value: n.exclusive ? "gt" : "gte",
258
258
  disabled: p,
259
259
  onChange: (e) => {
260
- const o = { ...l };
261
- "gt" === e.target.value ? o.exclusive = !0 : delete o.exclusive, n(o);
260
+ const o = { ...n };
261
+ "gt" === e.target.value ? o.exclusive = !0 : delete o.exclusive, a(o);
262
262
  },
263
263
  sx: {
264
264
  flex: "0 0 auto",
@@ -274,11 +274,11 @@ var ke = {
274
274
  }),
275
275
  le(pe, {
276
276
  size: "small",
277
- value: f,
277
+ value: C,
278
278
  disabled: p,
279
279
  onChange: (e) => ((e) => {
280
280
  const o = {
281
- ...l,
281
+ ...n,
282
282
  type: e
283
283
  };
284
284
  if (we.has(e)) delete o.value;
@@ -287,26 +287,26 @@ var ke = {
287
287
  const e = "string" == typeof o.value ? Number(o.value) : NaN;
288
288
  o.value = Number.isFinite(e) ? e : 0;
289
289
  }
290
- n(o);
290
+ a(o);
291
291
  })(e.target.value),
292
292
  sx: {
293
293
  flex: "1 1 40%",
294
294
  minWidth: 0,
295
295
  backgroundColor: "background.paper"
296
296
  },
297
- children: r.map((e) => le(se, {
297
+ children: i.map((e) => le(se, {
298
298
  value: e,
299
299
  children: m(ke[e])
300
300
  }, e))
301
301
  }),
302
- S ? le(a, {
302
+ S ? le(t, {
303
303
  size: "small",
304
- home: C.home,
305
- value: F ? C.display(F) : `${l.value ?? ""}`,
304
+ home: x.home,
305
+ value: F ? x.display(F) : `${n.value ?? ""}`,
306
306
  onChangeText: (e) => {
307
- n({
308
- ...l,
309
- value: e.trim().length > 0 ? C.compile(e) : e
307
+ a({
308
+ ...n,
309
+ value: e.trim().length > 0 ? x.compile(e) : e
310
310
  });
311
311
  },
312
312
  placeholder: m("conditionalFormat.enterFormula"),
@@ -324,13 +324,13 @@ var ke = {
324
324
  }) : le(ge, {
325
325
  size: "small",
326
326
  type: "number",
327
- placeholder: v ? void 0 : m("conditionalFormat.stopFromData"),
328
- value: v ? `${l.value ?? ""}` : "",
327
+ placeholder: f ? void 0 : m("conditionalFormat.stopFromData"),
328
+ value: f ? `${n.value ?? ""}` : "",
329
329
  disabled: b,
330
330
  onChange: (e) => {
331
331
  const o = e.target.value;
332
- n({
333
- ...l,
332
+ a({
333
+ ...n,
334
334
  value: "" === o ? 0 : Number(o)
335
335
  });
336
336
  },
@@ -356,25 +356,25 @@ 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, ...a } = e, d = H(), { workbook: s, toColor: c } = i(), p = o.stops ?? [], u = 2 === p.length ? [Ce("conditionalFormat.stop.minimum"), Ce("conditionalFormat.stop.maximum")] : [
359
+ const { scale: o, onScaleChange: l, readOnly: t, ...r } = e, i = H(), { workbook: d, toColor: s } = v(), c = o.stops ?? [], p = 2 === c.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")
363
363
  ];
364
- return te(ae, {
364
+ return te(ne, {
365
365
  sx: {
366
366
  display: "flex",
367
367
  flexDirection: "column",
368
368
  gap: 1
369
369
  },
370
- ...a,
371
- children: [le(fe, { children: te(ae, {
370
+ ...r,
371
+ children: [le(fe, { children: te(ne, {
372
372
  sx: {
373
373
  display: "flex",
374
374
  alignItems: "flex-start",
375
375
  gap: 1
376
376
  },
377
- children: [le(ae, {
377
+ children: [le(ne, {
378
378
  sx: {
379
379
  flex: "1 1 auto",
380
380
  minWidth: 0,
@@ -382,24 +382,24 @@ var Ie = [
382
382
  gap: .5,
383
383
  flexWrap: "wrap"
384
384
  },
385
- children: B.filter((e) => e.stops.length === (2 === p.length ? 2 : 3)).map((e, o) => le(n, {
385
+ children: B.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(v, { rows: r(e.stops ?? [], C, s) })
389
+ children: le(a, { rows: f(e.stops ?? [], g, d) })
390
390
  }, o))
391
391
  }), te(ye, {
392
392
  exclusive: !0,
393
393
  size: "small",
394
- value: 2 === p.length ? 2 : 3,
394
+ value: 2 === c.length ? 2 : 3,
395
395
  disabled: t,
396
396
  onChange: (e, t) => {
397
397
  t && ((e) => {
398
- if (e === p.length || 2 !== e && 3 !== e) return;
399
- const t = p.slice();
398
+ if (e === c.length || 2 !== e && 3 !== e) return;
399
+ const t = c.slice();
400
400
  if (3 === e) {
401
401
  let e = "#FFEB84";
402
- const o = c(p[0]?.color ?? e)?.toRGBA(), l = c(p[p.length - 1]?.color ?? e)?.toRGBA();
402
+ const o = s(c[0]?.color ?? e)?.toRGBA(), l = s(c[c.length - 1]?.color ?? e)?.toRGBA();
403
403
  if (o && l) {
404
404
  const t = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
405
405
  e = `#${t((o.red + l.red) / 2)}${t((o.green + l.green) / 2)}${t((o.blue + l.blue) / 2)}`;
@@ -424,7 +424,7 @@ var Ie = [
424
424
  pt: .25,
425
425
  pb: .25
426
426
  },
427
- children: d("conditionalFormat.twoColor")
427
+ children: i("conditionalFormat.twoColor")
428
428
  }), le(he, {
429
429
  value: 3,
430
430
  sx: {
@@ -432,25 +432,25 @@ var Ie = [
432
432
  pt: .25,
433
433
  pb: .25
434
434
  },
435
- children: d("conditionalFormat.threeColor")
435
+ children: i("conditionalFormat.threeColor")
436
436
  })]
437
437
  })]
438
438
  }) }), le(fe, {
439
439
  variant: "config",
440
- children: p.map((e, a) => le(Pe, {
441
- label: d(u[Math.min(a, u.length - 1)]),
440
+ children: c.map((e, n) => le(Pe, {
441
+ label: i(p[Math.min(n, p.length - 1)]),
442
442
  stop: e,
443
443
  allowedTypes: Ie,
444
444
  showColor: !0,
445
445
  readOnly: t,
446
446
  onStopChange: (e) => {
447
- const t = p.slice();
448
- t[a] = e, l({
447
+ const t = c.slice();
448
+ t[n] = e, l({
449
449
  ...o,
450
450
  stops: t
451
451
  });
452
452
  }
453
- }, a))
453
+ }, n))
454
454
  })]
455
455
  });
456
456
  });
@@ -470,26 +470,26 @@ var Me = [
470
470
  I.ColorStopType.Percentile,
471
471
  I.ColorStopType.Formula
472
472
  ], Oe = "__auto__", ze = q((e) => {
473
- const { scale: o, onScaleChange: a, readOnly: r, ...d } = e, s = H(), { darkMode: c, toColor: p, propsColorPanel: u } = i(), m = o.stops ?? [], g = p(o.color), h = p(o.negativeFillColor), y = p(o.borderColor), x = p(o.negativeBorderColor), C = o.gradient ?? !1, f = (e) => {
473
+ const { scale: o, onScaleChange: t, readOnly: r, ...i } = e, d = H(), { darkMode: s, toColor: c, propsColorPanel: p } = v(), u = o.stops ?? [], m = c(o.color), g = c(o.negativeFillColor), h = c(o.borderColor), y = c(o.negativeBorderColor), x = o.gradient ?? !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
- a(l);
477
- }, b = { backgroundColor: "background.paper" };
478
- return te(ae, {
476
+ t(l);
477
+ }, f = { backgroundColor: "background.paper" };
478
+ return te(ne, {
479
479
  sx: {
480
480
  display: "flex",
481
481
  flexDirection: "column",
482
482
  gap: 1
483
483
  },
484
- ...d,
484
+ ...i,
485
485
  children: [te(fe, { children: [
486
- te(ae, {
486
+ te(ne, {
487
487
  sx: {
488
488
  display: "flex",
489
489
  alignItems: "flex-start",
490
490
  gap: 1
491
491
  },
492
- children: [le(ae, {
492
+ children: [le(ne, {
493
493
  sx: {
494
494
  flex: "1 1 auto",
495
495
  minWidth: 0,
@@ -497,23 +497,23 @@ var Me = [
497
497
  gap: .5,
498
498
  flexWrap: "wrap"
499
499
  },
500
- children: O.filter((e) => (e.gradient ?? !1) === C).map((e, o) => le(n, {
500
+ children: O.filter((e) => (e.gradient ?? !1) === x).map((e, o) => le(n, {
501
501
  sheet: !0,
502
502
  disabled: r,
503
- onClick: () => f({
503
+ onClick: () => C({
504
504
  color: e.color,
505
505
  gradient: e.gradient,
506
506
  borderColor: e.borderColor
507
507
  }),
508
- children: le(v, { rows: l(e, p(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
508
+ children: le(a, { rows: b(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: C,
513
+ value: x,
514
514
  disabled: r,
515
515
  onChange: (e, o) => {
516
- null !== o && f({ gradient: !!o || void 0 });
516
+ null !== o && C({ gradient: !!o || void 0 });
517
517
  },
518
518
  sx: { flex: "0 0 auto" },
519
519
  children: [le(he, {
@@ -523,7 +523,7 @@ var Me = [
523
523
  pt: .25,
524
524
  pb: .25
525
525
  },
526
- children: s("conditionalFormat.solidFill")
526
+ children: d("conditionalFormat.solidFill")
527
527
  }), le(he, {
528
528
  value: !0,
529
529
  sx: {
@@ -531,23 +531,23 @@ var Me = [
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
  }),
538
538
  le(ie, {
539
- control: le(ne, {
539
+ control: le(ae, {
540
540
  size: "small",
541
541
  checked: !1 === o.showValue,
542
542
  disabled: r,
543
- onChange: (e) => f({ showValue: !e.target.checked && void 0 })
543
+ onChange: (e) => C({ 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
- te(ae, {
550
+ te(ne, {
551
551
  sx: {
552
552
  display: "flex",
553
553
  alignItems: "center",
@@ -560,35 +560,35 @@ var Me = [
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(t, {
565
+ le(l, {
566
566
  icon: "fill.colored",
567
- tooltip: s("conditionalFormat.barColor"),
568
- selectedColor: g,
567
+ tooltip: d("conditionalFormat.barColor"),
568
+ selectedColor: m,
569
569
  disabled: r,
570
- onSelectColor: (e) => f({ color: e ? e.toString() : void 0 }),
571
- darkMode: c,
570
+ onSelectColor: (e) => C({ color: e ? e.toString() : void 0 }),
571
+ darkMode: s,
572
572
  propsPanel: {
573
573
  disableAlpha: !0,
574
- ...u
574
+ ...p
575
575
  }
576
576
  }),
577
- le(t, {
577
+ le(l, {
578
578
  icon: "stroke.colored",
579
- tooltip: s("conditionalFormat.barBorderColor"),
580
- selectedColor: y,
579
+ tooltip: d("conditionalFormat.barBorderColor"),
580
+ selectedColor: h,
581
581
  disabled: r,
582
- onSelectColor: (e) => f({ borderColor: e ? e.toString() : void 0 }),
583
- darkMode: c,
582
+ onSelectColor: (e) => C({ borderColor: e ? e.toString() : void 0 }),
583
+ darkMode: s,
584
584
  propsPanel: {
585
585
  disableAlpha: !0,
586
- ...u
586
+ ...p
587
587
  }
588
588
  })
589
589
  ]
590
590
  }),
591
- te(ae, {
591
+ te(ne, {
592
592
  sx: {
593
593
  display: "flex",
594
594
  alignItems: "center",
@@ -601,36 +601,36 @@ var Me = [
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(t, {
606
+ le(l, {
607
607
  icon: "fill.colored",
608
- tooltip: s("conditionalFormat.negativeColor"),
609
- selectedColor: h ?? g,
608
+ tooltip: d("conditionalFormat.negativeColor"),
609
+ selectedColor: g ?? m,
610
610
  disabled: r,
611
- onSelectColor: (e) => f({ negativeFillColor: e ? e.toString() : void 0 }),
612
- darkMode: c,
611
+ onSelectColor: (e) => C({ negativeFillColor: e ? e.toString() : void 0 }),
612
+ darkMode: s,
613
613
  propsPanel: {
614
614
  disableAlpha: !0,
615
- ...u
615
+ ...p
616
616
  }
617
617
  }),
618
- le(t, {
618
+ le(l, {
619
619
  icon: "stroke.colored",
620
- tooltip: s("conditionalFormat.negativeBorderColor"),
621
- selectedColor: x ?? y,
620
+ tooltip: d("conditionalFormat.negativeBorderColor"),
621
+ selectedColor: y ?? h,
622
622
  disabled: r,
623
- onSelectColor: (e) => f({ negativeBorderColor: e ? e.toString() : void 0 }),
624
- darkMode: c,
623
+ onSelectColor: (e) => C({ negativeBorderColor: e ? e.toString() : void 0 }),
624
+ darkMode: s,
625
625
  propsPanel: {
626
626
  disableAlpha: !0,
627
- ...u
627
+ ...p
628
628
  }
629
629
  }),
630
630
  le(n, {
631
- title: s("conditionalFormat.sameAsPositive"),
631
+ title: d("conditionalFormat.sameAsPositive"),
632
632
  disabled: r || !o.negativeFillColor && !o.negativeBorderColor,
633
- onClick: () => f({
633
+ onClick: () => C({
634
634
  negativeFillColor: void 0,
635
635
  negativeBorderColor: void 0
636
636
  }),
@@ -645,7 +645,7 @@ var Me = [
645
645
  })
646
646
  ]
647
647
  }),
648
- te(ae, {
648
+ te(ne, {
649
649
  sx: {
650
650
  display: "flex",
651
651
  gap: 1,
@@ -657,27 +657,27 @@ var Me = [
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: b,
664
+ sx: f,
665
665
  onChange: (e) => {
666
666
  const o = e.target.value;
667
- f({ axisPosition: o === Oe ? void 0 : o });
667
+ C({ 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 Me = [
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: b,
694
+ sx: f,
695
695
  onChange: (e) => {
696
696
  const o = e.target.value;
697
- f({ direction: o === Oe ? void 0 : o });
697
+ C({ 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,23 +716,23 @@ var Me = [
716
716
  ] }), te(fe, {
717
717
  variant: "config",
718
718
  children: [le(Pe, {
719
- label: s("conditionalFormat.stop.minimum"),
720
- stop: m[0] ?? { type: I.ColorStopType.AutoMin },
719
+ label: d("conditionalFormat.stop.minimum"),
720
+ stop: u[0] ?? { type: I.ColorStopType.AutoMin },
721
721
  allowedTypes: Me,
722
722
  readOnly: r,
723
723
  onStopChange: (e) => {
724
- const o = m.slice();
725
- o[0] = e, f({ stops: o });
724
+ const o = u.slice();
725
+ o[0] = e, C({ stops: o });
726
726
  }
727
727
  }), le(Pe, {
728
- label: s("conditionalFormat.stop.maximum"),
729
- stop: m[1] ?? { type: I.ColorStopType.AutoMax },
728
+ label: d("conditionalFormat.stop.maximum"),
729
+ stop: u[1] ?? { type: I.ColorStopType.AutoMax },
730
730
  allowedTypes: Be,
731
731
  readOnly: r,
732
732
  onStopChange: (e) => {
733
- const o = m.slice();
733
+ const o = u.slice();
734
734
  for (; o.length < 2;) o.push({ type: I.ColorStopType.AutoMax });
735
- o[1] = e, f({ stops: o });
735
+ o[1] = e, C({ stops: o });
736
736
  }
737
737
  })]
738
738
  })]
@@ -747,7 +747,7 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
747
747
  height: "26px"
748
748
  }, We = q((e) => {
749
749
  const { icon: o, onPick: l } = e, t = H();
750
- return te(ae, {
750
+ return te(ne, {
751
751
  sx: {
752
752
  display: "flex",
753
753
  flexDirection: "column",
@@ -769,7 +769,7 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
769
769
  icons: [null],
770
770
  size: 16
771
771
  })
772
- }), le(ae, {
772
+ }), le(ne, {
773
773
  sx: {
774
774
  display: "grid",
775
775
  gridTemplateColumns: "repeat(8, auto)",
@@ -781,7 +781,7 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
781
781
  var r, i;
782
782
  return le(n, {
783
783
  sheet: !0,
784
- title: u(t, e.spec),
784
+ title: c(t, e.spec),
785
785
  "aria-pressed": a,
786
786
  sx: {
787
787
  ...je,
@@ -804,8 +804,8 @@ var Ae = Ce("conditionalFormat.noCellIcon"), Re = Ce("conditionalFormat.cellIcon
804
804
  });
805
805
  We.displayName = "IconCatalogPanel";
806
806
  var $e = q(Y((e, o) => {
807
- const { icon: l, onPick: t, tooltip: a, ...n } = e, r = H(), i = J((e) => {
808
- const { closeFloat: o } = e, a = le(We, {
807
+ const { icon: l, onPick: t, tooltip: n, ...a } = e, r = H(), i = J((e) => {
808
+ const { closeFloat: o } = e, n = le(We, {
809
809
  icon: l,
810
810
  onPick: (e) => {
811
811
  o?.(), t(e);
@@ -813,19 +813,19 @@ var $e = q(Y((e, o) => {
813
813
  });
814
814
  return ee({
815
815
  ...e,
816
- children: a
816
+ children: n
817
817
  });
818
818
  }, [l, t]);
819
819
  return le(Z, {
820
820
  ref: o,
821
- createPopupPanel: i,
822
- tooltip: a ?? r(Re),
821
+ renderPopupPanel: i,
822
+ tooltip: n ?? r(Re),
823
823
  icon: le(A, {
824
824
  icons: [l],
825
825
  size: 16
826
826
  }),
827
827
  outlined: !0,
828
- ...n
828
+ ...a
829
829
  });
830
830
  }));
831
831
  $e.displayName = "IconPickerPopupButton";
@@ -835,20 +835,20 @@ var Ke = [
835
835
  I.ColorStopType.Percentile,
836
836
  I.ColorStopType.Formula
837
837
  ], Ee = q((e) => {
838
- const { scale: o, onScaleChange: l, readOnly: t, ...a } = e, n = H(), r = o.iconSet ?? w.IconSet.TrafficLights3, i = 0 === E(r).length, d = o.stops ?? [], s = d.length, c = L(o), p = (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 ?? [], c = d.length, p = L(o), u = (e) => {
839
839
  const t = { ...o };
840
840
  for (const [o, l] of Object.entries(e)) void 0 === l ? delete t[o] : t[o] = l;
841
841
  l(t);
842
- }, u = J((e) => {
843
- const { closeFloat: o } = e, l = le(m, {
844
- groups: h,
842
+ }, m = J((e) => {
843
+ const { closeFloat: o } = e, l = le(s, {
844
+ groups: C,
845
845
  disabled: t,
846
846
  onPick: (e) => {
847
847
  o?.(), e.type === I.ScaleType.IconSet && e.iconSet && ((e) => {
848
848
  if (e === r) return;
849
849
  const o = U(e);
850
850
  let l = d;
851
- o !== d.length && (l = K(o)), p({
851
+ o !== d.length && (l = K(o)), u({
852
852
  iconSet: e,
853
853
  stops: l,
854
854
  icon: void 0
@@ -861,15 +861,15 @@ var Ke = [
861
861
  children: l
862
862
  });
863
863
  }, [t, o]), g = k.camelToPrettyCase(r);
864
- return te(ae, {
864
+ return te(ne, {
865
865
  sx: {
866
866
  display: "flex",
867
867
  flexDirection: "column",
868
868
  gap: 1
869
869
  },
870
- ...a,
870
+ ...n,
871
871
  children: [te(fe, { children: [
872
- le(ae, {
872
+ le(ne, {
873
873
  sx: {
874
874
  display: "flex",
875
875
  alignItems: "center",
@@ -880,7 +880,7 @@ var Ke = [
880
880
  disabled: t,
881
881
  label: g,
882
882
  tooltip: g,
883
- icon: le(ae, {
883
+ icon: le(ne, {
884
884
  sx: {
885
885
  width: "82px",
886
886
  display: "flex",
@@ -897,86 +897,86 @@ var Ke = [
897
897
  gap: 3
898
898
  })
899
899
  }),
900
- createPopupPanel: u
900
+ renderPopupPanel: m
901
901
  })
902
902
  }),
903
903
  i && le(xe, {
904
904
  variant: "caption",
905
905
  sx: { color: "text.secondary" },
906
- children: n("conditionalFormat.adoptedIconSet")
906
+ children: a("conditionalFormat.adoptedIconSet")
907
907
  }),
908
- te(ae, {
908
+ te(ne, {
909
909
  sx: {
910
910
  display: "flex",
911
911
  gap: 1
912
912
  },
913
913
  children: [le(ie, {
914
- control: le(ne, {
914
+ control: le(ae, {
915
915
  size: "small",
916
916
  checked: !1 === o.showValue,
917
917
  disabled: t,
918
- onChange: (e) => p({ showValue: !e.target.checked && void 0 })
918
+ onChange: (e) => u({ showValue: !e.target.checked && void 0 })
919
919
  }),
920
920
  label: le(xe, {
921
921
  variant: "body2",
922
- children: n("conditionalFormat.showIconsOnly")
922
+ children: a("conditionalFormat.showIconsOnly")
923
923
  })
924
924
  }), le(ie, {
925
- control: le(ne, {
925
+ control: le(ae, {
926
926
  size: "small",
927
927
  checked: o.reverse ?? !1,
928
928
  disabled: t,
929
- onChange: (e) => p({ reverse: !!e.target.checked || void 0 })
929
+ onChange: (e) => u({ reverse: !!e.target.checked || void 0 })
930
930
  }),
931
931
  label: le(xe, {
932
932
  variant: "body2",
933
- children: n("conditionalFormat.reverseIcons")
933
+ children: a("conditionalFormat.reverseIcons")
934
934
  })
935
935
  })]
936
936
  })
937
937
  ] }), le(fe, {
938
938
  variant: "config",
939
- children: d.map((e, a) => {
940
- const n = o.reverse ? s - 1 - a : a;
939
+ children: d.map((e, n) => {
940
+ const a = o.reverse ? c - 1 - n : n;
941
941
  return le(Pe, {
942
942
  stop: e,
943
943
  allowedTypes: Ke,
944
944
  showExclusive: !0,
945
- readOnly: t || 0 === a,
945
+ readOnly: t || 0 === n,
946
946
  leading: le($e, {
947
- icon: c[a] ?? null,
947
+ icon: p[n] ?? null,
948
948
  disabled: t || i,
949
- onPick: (e) => l(G(o, n, e))
949
+ onPick: (e) => l(G(o, a, e))
950
950
  }),
951
951
  onStopChange: (e) => {
952
952
  const o = d.slice();
953
- o[a] = e, p({ stops: o });
953
+ o[n] = e, u({ stops: o });
954
954
  }
955
- }, a);
955
+ }, n);
956
956
  })
957
957
  })]
958
958
  });
959
959
  });
960
960
  Ee.displayName = "IconSetRulePanel";
961
- var Ue = (e, o, l) => f(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
961
+ var Ue = (e, o, l) => i(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
962
962
  if (!e) return l;
963
963
  if ("string" == typeof e) return Ue(e, o, l);
964
964
  if (e.type === N.Type.None) return l;
965
- const t = e, a = e;
966
- return Ue(a.foreground ?? t.color ?? a.background, o, l);
965
+ const t = e, n = e;
966
+ return Ue(n.foreground ?? t.color ?? n.background, o, l);
967
967
  }, _e = q((e) => {
968
- const { conditionalFormat: o, size: t = 28, ...a } = e, { workbook: c, themeKey: p } = i();
968
+ const { conditionalFormat: o, size: l = 28, ...t } = e, { workbook: r, themeKey: i } = v();
969
969
  _(o, "onAnyChange");
970
- const u = o.getScale(), m = o.getStyle(), g = Q(() => {
970
+ const d = o.getScale(), s = o.getStyle(), c = Q(() => {
971
971
  try {
972
- return c?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
972
+ return r?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
973
973
  } catch {
974
974
  return {};
975
975
  }
976
- }, [c, p]), h = Q(() => {
977
- if (u?.type === I.ScaleType.ColorScale) return le(v, { rows: r(u.stops ?? [], C, c) });
978
- if (u?.type === I.ScaleType.DataBar) return le(v, { rows: l(u, Ue(u.color, c, d), u.borderColor ? Ue(u.borderColor, c, d) : void 0) });
979
- if (u?.type === I.ScaleType.IconSet) return le(ae, {
976
+ }, [r, i]), m = Q(() => {
977
+ if (d?.type === I.ScaleType.ColorScale) return le(a, { rows: f(d.stops ?? [], g, r) });
978
+ if (d?.type === I.ScaleType.DataBar) return le(a, { rows: b(d, Ue(d.color, r, y), d.borderColor ? Ue(d.borderColor, r, y) : void 0) });
979
+ if (d?.type === I.ScaleType.IconSet) return le(ne, {
980
980
  sx: {
981
981
  display: "flex",
982
982
  alignItems: "center",
@@ -986,51 +986,51 @@ var Ue = (e, o, l) => f(e, o)?.toCSS("adaptive") ?? l, Le = (e, o, l) => {
986
986
  px: .5
987
987
  },
988
988
  children: le(A, {
989
- icons: L(u),
989
+ icons: L(d),
990
990
  order: "descending",
991
991
  size: 14,
992
992
  gap: 3
993
993
  })
994
994
  });
995
- const e = m?.font, o = e?.underline && e.underline !== M.UnderlineStyle.None;
996
- return le(ae, {
995
+ const e = s?.font, o = e?.underline && e.underline !== M.UnderlineStyle.None;
996
+ return le(ne, {
997
997
  sx: {
998
998
  width: "100%",
999
999
  height: "100%",
1000
1000
  display: "flex",
1001
1001
  alignItems: "center",
1002
1002
  justifyContent: "center",
1003
- ...g,
1004
- backgroundColor: Le(m?.fill, c, "transparent"),
1005
- ...e?.color && "auto" !== e.color ? { color: Ue(e.color, c, s) } : null,
1003
+ ...c,
1004
+ backgroundColor: Le(s?.fill, r, "transparent"),
1005
+ ...e?.color && "auto" !== e.color ? { color: Ue(e.color, r, p) } : null,
1006
1006
  ...e?.weight ? { fontWeight: e.weight } : null,
1007
1007
  ...e?.style ? { fontStyle: e.style } : null,
1008
1008
  textDecoration: [o ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
1009
- fontSize: `${Math.round(.5 * t)}px`,
1009
+ fontSize: `${Math.round(.5 * l)}px`,
1010
1010
  lineHeight: 1,
1011
- outline: m?.borders ? `1px solid ${Ue(Object.values(m.borders)[0]?.color, c, b)}` : void 0,
1011
+ outline: s?.borders ? `1px solid ${Ue(Object.values(s.borders)[0]?.color, r, u)}` : void 0,
1012
1012
  outlineOffset: "-3px"
1013
1013
  },
1014
1014
  children: "Aa"
1015
1015
  });
1016
1016
  }, [
1017
- u,
1018
- m,
1019
- t,
1020
- g,
1017
+ d,
1018
+ s,
1019
+ l,
1021
1020
  c,
1022
- p
1021
+ r,
1022
+ i
1023
1023
  ]);
1024
1024
  return le(n, {
1025
1025
  sheet: !0,
1026
1026
  className: "sxl-cf-rule-preview",
1027
1027
  sx: {
1028
1028
  width: "auto",
1029
- minWidth: 1.7 * t + "px",
1030
- height: `${t}px`
1029
+ minWidth: 1.7 * l + "px",
1030
+ height: `${l}px`
1031
1031
  },
1032
- ...a,
1033
- children: h
1032
+ ...t,
1033
+ children: m
1034
1034
  });
1035
1035
  });
1036
1036
  _e.displayName = "RulePreview";
@@ -1047,11 +1047,11 @@ var Ge = (e, o) => {
1047
1047
  }, He = q((e) => {
1048
1048
  const { conditionalFormat: o } = e, l = H();
1049
1049
  _(o, "onAnyChange");
1050
- const t = o.getScale(), a = o.getCondition(), n = o.getStyle(), r = o.isProtected(), i = t?.type ?? "classic", d = X({ scales: {} }), s = (e) => {
1050
+ const t = o.getScale(), n = o.getCondition(), a = o.getStyle(), r = o.isProtected(), i = t?.type ?? "classic", s = X({ scales: {} }), c = (e) => {
1051
1051
  o.update({ scale: e });
1052
- }, u = te(ce, {
1052
+ }, p = te(ce, {
1053
1053
  tabIndex: 0,
1054
- className: p["editor-panel"],
1054
+ className: d["editor-panel"],
1055
1055
  sx: {
1056
1056
  gap: (e) => e.spacing(1),
1057
1057
  paddingTop: (e) => e.spacing(1.25),
@@ -1063,7 +1063,7 @@ var Ge = (e, o) => {
1063
1063
  overflow: "auto"
1064
1064
  },
1065
1065
  children: [
1066
- te(ae, {
1066
+ te(ne, {
1067
1067
  sx: {
1068
1068
  display: "flex",
1069
1069
  flexDirection: "column",
@@ -1071,7 +1071,7 @@ var Ge = (e, o) => {
1071
1071
  margin: (e) => e.spacing(1.25),
1072
1072
  marginBottom: 0
1073
1073
  },
1074
- children: [te(ae, {
1074
+ children: [te(ne, {
1075
1075
  sx: {
1076
1076
  display: "flex",
1077
1077
  alignItems: "center",
@@ -1097,16 +1097,16 @@ var Ge = (e, o) => {
1097
1097
  value: i,
1098
1098
  onChange: (e, l) => {
1099
1099
  r || ((e) => {
1100
- if (e !== i) if ("classic" === i ? (d.current.condition = a?.toJSON() ?? null, d.current.style = n) : t && (d.current.scales[t.type] = t), "classic" === e) o.update({
1101
- condition: d.current.condition ?? {
1100
+ if (e !== i) if ("classic" === i ? (s.current.condition = n?.toJSON() ?? null, s.current.style = a) : t && (s.current.scales[t.type] = t), "classic" === e) o.update({
1101
+ condition: s.current.condition ?? {
1102
1102
  operator: P.BuiltInOperatorNames.Between,
1103
1103
  param: null
1104
1104
  },
1105
- style: d.current.style ?? null,
1105
+ style: s.current.style ?? null,
1106
1106
  scale: null
1107
1107
  });
1108
1108
  else {
1109
- const l = d.current.scales[e] ?? (e === I.ScaleType.ColorScale ? j() : e === I.ScaleType.DataBar ? W() : $());
1109
+ const l = s.current.scales[e] ?? (e === I.ScaleType.ColorScale ? j() : e === I.ScaleType.DataBar ? W() : $());
1110
1110
  o.update({
1111
1111
  scale: l,
1112
1112
  condition: null,
@@ -1135,37 +1135,37 @@ var Ge = (e, o) => {
1135
1135
  }, e))
1136
1136
  }),
1137
1137
  "classic" === i && te(oe, { children: [le(Te, {
1138
- format: n,
1138
+ format: a,
1139
1139
  readOnly: r,
1140
1140
  onFormatChange: (e) => o.update({ style: e })
1141
- }), le(y, {
1141
+ }), le(h, {
1142
1142
  sx: {
1143
1143
  ...x,
1144
1144
  p: 2,
1145
1145
  pb: 1
1146
1146
  },
1147
1147
  selectorTitle: l("conditionalFormat.highlight"),
1148
- condition: a,
1148
+ condition: n,
1149
1149
  ranges: o.getRanges(),
1150
1150
  readOnly: r,
1151
1151
  onConditionChange: (e) => o.setCondition(e)
1152
1152
  })] }),
1153
1153
  t?.type === I.ScaleType.ColorScale && le(Ne, {
1154
1154
  scale: t,
1155
- onScaleChange: s,
1155
+ onScaleChange: c,
1156
1156
  readOnly: r
1157
1157
  }),
1158
1158
  t?.type === I.ScaleType.DataBar && le(ze, {
1159
1159
  scale: t,
1160
- onScaleChange: s,
1160
+ onScaleChange: c,
1161
1161
  readOnly: r
1162
1162
  }),
1163
1163
  t?.type === I.ScaleType.IconSet && le(Ee, {
1164
1164
  scale: t,
1165
- onScaleChange: s,
1165
+ onScaleChange: c,
1166
1166
  readOnly: r
1167
1167
  }),
1168
- "classic" === i && le(ae, {
1168
+ "classic" === i && le(ne, {
1169
1169
  sx: {
1170
1170
  pl: 2,
1171
1171
  pr: 2,
@@ -1174,7 +1174,7 @@ var Ge = (e, o) => {
1174
1174
  borderRadius: 1
1175
1175
  },
1176
1176
  children: le(ie, {
1177
- control: le(ne, {
1177
+ control: le(ae, {
1178
1178
  checked: o.isStopIfTrue(),
1179
1179
  disabled: r,
1180
1180
  onChange: (e) => o.setStopIfTrue(e.target.checked)
@@ -1184,15 +1184,15 @@ var Ge = (e, o) => {
1184
1184
  })
1185
1185
  ]
1186
1186
  });
1187
- return le(c.Provider, {
1187
+ return le(m.Provider, {
1188
1188
  value: o,
1189
- children: u
1189
+ children: p
1190
1190
  });
1191
1191
  });
1192
1192
  He.displayName = "ConditionalFormatEditorPanel";
1193
1193
  var Ye = q(({ item: e }) => {
1194
1194
  const o = H();
1195
- return _(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : le(ae, {
1195
+ return _(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : le(ne, {
1196
1196
  sx: {
1197
1197
  display: "inline-flex",
1198
1198
  alignItems: "center",
@@ -1260,23 +1260,23 @@ var Je = {
1260
1260
  CardBody: Ye,
1261
1261
  EditorBody: ({ item: e }) => le(He, { conditionalFormat: e })
1262
1262
  }, Qe = q(Y((e, o) => {
1263
- const { workbook: l, args: t, ...a } = e;
1263
+ const { workbook: l, args: t, ...n } = e;
1264
1264
  return le(S, {
1265
1265
  ref: o,
1266
1266
  workbook: l,
1267
1267
  descriptor: Je,
1268
1268
  args: t,
1269
1269
  dragReorder: !0,
1270
- ...a
1270
+ ...n
1271
1271
  });
1272
1272
  }));
1273
1273
  Qe.displayName = "ConditionalFormatDetailsPanel";
1274
1274
  var Xe = (e) => {
1275
- const { model: o, entryKey: l, frame: t, args: a, ref: n, ...r } = e;
1275
+ const { model: o, entryKey: l, frame: t, args: n, ref: a, ...r } = e;
1276
1276
  return le(Qe, {
1277
- ref: n,
1277
+ ref: a,
1278
1278
  workbook: o,
1279
- args: a,
1279
+ args: n,
1280
1280
  ...r
1281
1281
  });
1282
1282
  };