@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,42 +1,42 @@
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
7
  import { BorderStylePopupButton as e, BorderTemplateIcon as t, ColorCommandButton as o, ColorPopupButton as r, FontFamilyCommandButton as n, FontSizeCommandButton as l } from "./index.mjs";
8
- import { i as a, n as i, o as d, r as s, t as g } from "./9e9_OZYxc0ATDkNI.mjs";
9
- import { t as c } from "./pm_LpeNYjo6Aahu3.mjs";
10
- import { n as m, t as p } from "./DlSfkSNLCwzofCfS.mjs";
8
+ import { i as a, n as i, o as d, r as s, t as g } from "./vfgV7wwOvzh9iYjc.mjs";
9
+ import { t as c } from "./DnjxhVMqfBhfsNHj.mjs";
10
+ import { n as m, t as p } from "./DzZb-LzjScchWCpk.mjs";
11
11
  import { IBorders as u, IRange as h, NumberFormat as f } from "@sheetxl/sdk";
12
- import { StaticBorderRenderer as b, StaticCellRenderer as y, useGridColorScheme as x, useModelListener as E, useModelSync as K } from "@sheetxl/react";
13
- import { DynamicIcon as S, useCallbackRef as w, useCommands as v, usePersistentState as T, useTranslator as O } from "@sheetxl/utils-react";
14
- import { memo as C, useCallback as A, useEffect as k, useMemo as z, useReducer as D, useRef as N, useState as B } from "react";
15
- import { CommandButton as R, ExhibitIconButton as F, PopupButtonType as I } from "@sheetxl/utils-mui";
16
- import { jsx as M, jsxs as V } from "react/jsx-runtime";
17
- import { Box as j, Paper as H, Tab as U, Tabs as L, Typography as P, alpha as $ } from "@mui/material";
18
- import { messageKey as W } from "@sheetxl/utils";
19
- import G from "clsx";
20
- var q = {
12
+ import { StaticBorderRenderer as b, StaticCellRenderer as y, TaskPaneEmpty as x, useGridColorScheme as E, useModelListener as K, useModelSync as S } from "@sheetxl/react";
13
+ import { DynamicIcon as w, useCallbackRef as v, useCommands as T, usePersistentState as O, useTranslator as C } from "@sheetxl/utils-react";
14
+ import { memo as A, useCallback as k, useEffect as z, useMemo as D, useReducer as N, useRef as B, useState as R } from "react";
15
+ import { CommandButton as F, ExhibitIconButton as I, PopupButtonType as M } from "@sheetxl/utils-mui";
16
+ import { jsx as V, jsxs as j } from "react/jsx-runtime";
17
+ import { Box as H, Paper as U, Tab as L, Tabs as P, Typography as $, alpha as W } from "@mui/material";
18
+ import { messageKey as G } from "@sheetxl/utils";
19
+ import q from "clsx";
20
+ var J = {
21
21
  autoFocus: !1,
22
22
  scrollIntoView: !1
23
- }, J = C((e) => {
24
- const { selection: t, height: o = 46, maxWidth: r = 260, ...n } = e, l = O(), { cell: a, createCell: i, disabled: d } = t, s = z(() => "number" == typeof a.getValue() ? a : i({
23
+ }, Y = A((e) => {
24
+ const { selection: t, height: o = 46, maxWidth: r = 260, ...n } = e, l = C(), { cell: a, createCell: i, disabled: d } = t, s = D(() => "number" == typeof a.getValue() ? a : i({
25
25
  value: 1234.56,
26
26
  style: a.getStyle()
27
27
  }), [a, i]);
28
- return V(j, {
28
+ return j(H, {
29
29
  sx: {
30
30
  display: "flex",
31
31
  flexDirection: "column",
32
32
  gap: .5
33
33
  },
34
34
  ...n,
35
- children: [M(P, {
35
+ children: [V($, {
36
36
  variant: "caption",
37
37
  component: "div",
38
38
  children: l("format.preview")
39
- }), M(y, {
39
+ }), V(y, {
40
40
  cell: s,
41
41
  disabled: d,
42
42
  style: {
@@ -53,79 +53,79 @@ var q = {
53
53
  })]
54
54
  });
55
55
  });
56
- J.displayName = "FormatCellPreview";
57
- var Y = {
56
+ Y.displayName = "FormatCellPreview";
57
+ var Q = {
58
58
  axes: h.AxisSelection.Column,
59
59
  expandOnly: !0,
60
60
  skipCustomSize: !0
61
- }, Q = (e) => e > 180 ? e - 360 : e, X = (e) => {
61
+ }, X = (e) => e > 180 ? e - 360 : e, _ = (e) => {
62
62
  const t = Math.max(-90, Math.min(90, Math.round(e)));
63
63
  return t < 0 ? t + 360 : t;
64
- }, _ = C((e) => {
65
- const { selection: t, disabled: o, className: r, ...n } = e, l = O(), { style: c, applyStyle: m } = t, p = o || t.disabled, u = c.getAlignment(), h = u.getIndent(), f = u.getStacked(), b = f ? 0 : u.getRotation(), y = w((e) => {
66
- m({ alignment: { indent: e } }, W("op.setAlignment"), Y);
67
- }, [m]), x = w((e) => {
68
- m({ alignment: { rotation: X(e) } }, W("op.setAlignment"));
64
+ }, Z = A((e) => {
65
+ const { selection: t, disabled: o, className: r, ...n } = e, l = C(), { style: c, applyStyle: m } = t, p = o || t.disabled, u = c.getAlignment(), h = u.getIndent(), f = u.getStacked(), b = f ? 0 : u.getRotation(), y = v((e) => {
66
+ m({ alignment: { indent: e } }, G("op.setAlignment"), Q);
67
+ }, [m]), x = v((e) => {
68
+ m({ alignment: { rotation: _(e) } }, G("op.setAlignment"));
69
69
  }, [m]);
70
- return V(j, {
71
- className: G("sxl-format-alignment-panel", r),
70
+ return j(H, {
71
+ className: q("sxl-format-alignment-panel", r),
72
72
  sx: d,
73
73
  ...n,
74
74
  children: [
75
- M(a, {
75
+ V(a, {
76
76
  label: l("format.horizontalAlignment"),
77
- children: M(s, { children: V(g, { children: [
78
- M(R, {
77
+ children: V(s, { children: j(g, { children: [
78
+ V(F, {
79
79
  commandKey: "formatAlignLeftToggle",
80
80
  groupKey: "horizontalAlignOptions",
81
81
  disabled: p
82
82
  }),
83
- M(R, {
83
+ V(F, {
84
84
  commandKey: "formatAlignCenterToggle",
85
85
  groupKey: "horizontalAlignOptions",
86
86
  disabled: p
87
87
  }),
88
- M(R, {
88
+ V(F, {
89
89
  commandKey: "formatAlignRightToggle",
90
90
  groupKey: "horizontalAlignOptions",
91
91
  disabled: p
92
92
  }),
93
- M(R, {
93
+ V(F, {
94
94
  commandKey: "formatAlignJustifyToggle",
95
95
  groupKey: "horizontalAlignOptions",
96
96
  disabled: p
97
97
  }),
98
- M(R, {
98
+ V(F, {
99
99
  commandKey: "formatAlignDistributedHorizontalToggle",
100
100
  groupKey: "horizontalAlignOptions",
101
101
  disabled: p
102
102
  }),
103
- M(R, {
103
+ V(F, {
104
104
  commandKey: "formatAlignCenterContinuousToggle",
105
105
  groupKey: "horizontalAlignOptions",
106
106
  disabled: p
107
107
  }),
108
- M(R, {
108
+ V(F, {
109
109
  commandKey: "formatAlignFillToggle",
110
110
  groupKey: "horizontalAlignOptions",
111
111
  disabled: p
112
112
  })
113
113
  ] }) })
114
114
  }),
115
- M(a, {
115
+ V(a, {
116
116
  label: l("format.indent"),
117
- children: V(s, { children: [
118
- M(R, {
117
+ children: j(s, { children: [
118
+ V(F, {
119
119
  commandKey: "formatIndentDecrease",
120
120
  groupKey: "horizontalAlignOptions",
121
121
  disabled: p
122
122
  }),
123
- M(R, {
123
+ V(F, {
124
124
  commandKey: "formatIndentIncrease",
125
125
  groupKey: "horizontalAlignOptions",
126
126
  disabled: p
127
127
  }),
128
- M(i, {
128
+ V(i, {
129
129
  label: l("format.indentUnit"),
130
130
  disabled: p,
131
131
  value: h,
@@ -136,123 +136,123 @@ var Y = {
136
136
  })
137
137
  ] })
138
138
  }),
139
- M(a, {
139
+ V(a, {
140
140
  label: l("format.verticalAlignment"),
141
- children: V(g, { children: [
142
- M(R, {
141
+ children: j(g, { children: [
142
+ V(F, {
143
143
  commandKey: "formatAlignTopToggle",
144
144
  groupKey: "verticalAlignOptions",
145
145
  disabled: p
146
146
  }),
147
- M(R, {
147
+ V(F, {
148
148
  commandKey: "formatAlignMiddleToggle",
149
149
  groupKey: "verticalAlignOptions",
150
150
  disabled: p
151
151
  }),
152
- M(R, {
152
+ V(F, {
153
153
  commandKey: "formatAlignBottomToggle",
154
154
  groupKey: "verticalAlignOptions",
155
155
  disabled: p
156
156
  }),
157
- M(R, {
157
+ V(F, {
158
158
  commandKey: "formatAlignJustifyVerticalToggle",
159
159
  groupKey: "verticalAlignOptions",
160
160
  disabled: p
161
161
  }),
162
- M(R, {
162
+ V(F, {
163
163
  commandKey: "formatAlignDistributedVerticalToggle",
164
164
  groupKey: "verticalAlignOptions",
165
165
  disabled: p
166
166
  })
167
167
  ] })
168
168
  }),
169
- M(a, {
169
+ V(a, {
170
170
  label: l("format.overflow"),
171
- children: V(g, { children: [
172
- M(R, {
171
+ children: j(g, { children: [
172
+ V(F, {
173
173
  commandKey: "formatTextOverflowWrapToggle",
174
174
  groupKey: "textOverflowOptions",
175
175
  disabled: p
176
176
  }),
177
- M(R, {
177
+ V(F, {
178
178
  commandKey: "formatTextOverflowShrinkToggle",
179
179
  groupKey: "textOverflowOptions",
180
180
  disabled: p
181
181
  }),
182
- M(R, {
182
+ V(F, {
183
183
  commandKey: "formatTextOverflowClipToggle",
184
184
  groupKey: "textOverflowOptions",
185
185
  disabled: p
186
186
  }),
187
- M(R, {
187
+ V(F, {
188
188
  commandKey: "formatTextOverflowVisibleToggle",
189
189
  groupKey: "textOverflowOptions",
190
190
  disabled: p
191
191
  })
192
192
  ] })
193
193
  }),
194
- M(a, {
194
+ V(a, {
195
195
  label: l("format.merge"),
196
- children: V(g, { children: [
197
- M(R, {
196
+ children: j(g, { children: [
197
+ V(F, {
198
198
  commandKey: "mergeToggle",
199
199
  groupKey: "mergeOptions",
200
200
  disabled: p
201
201
  }),
202
- M(R, {
202
+ V(F, {
203
203
  commandKey: "mergeHorizontal",
204
204
  groupKey: "mergeOptions",
205
205
  disabled: p
206
206
  }),
207
- M(R, {
207
+ V(F, {
208
208
  commandKey: "mergeVertical",
209
209
  groupKey: "mergeOptions",
210
210
  disabled: p
211
211
  }),
212
- M(R, {
212
+ V(F, {
213
213
  commandKey: "unmerge",
214
214
  groupKey: "mergeOptions",
215
215
  disabled: p
216
216
  })
217
217
  ] })
218
218
  }),
219
- M(a, {
219
+ V(a, {
220
220
  label: l("format.orientation"),
221
- children: V(s, { children: [V(g, { children: [
222
- M(R, {
221
+ children: j(s, { children: [j(g, { children: [
222
+ V(F, {
223
223
  commandKey: "formatTextRotate0",
224
224
  groupKey: "textRotateOptions",
225
225
  disabled: p
226
226
  }),
227
- M(R, {
227
+ V(F, {
228
228
  commandKey: "formatTextRotate45",
229
229
  groupKey: "textRotateOptions",
230
230
  disabled: p
231
231
  }),
232
- M(R, {
232
+ V(F, {
233
233
  commandKey: "formatTextRotate315",
234
234
  groupKey: "textRotateOptions",
235
235
  disabled: p
236
236
  }),
237
- M(R, {
237
+ V(F, {
238
238
  commandKey: "formatTextRotate90",
239
239
  groupKey: "textRotateOptions",
240
240
  disabled: p
241
241
  }),
242
- M(R, {
242
+ V(F, {
243
243
  commandKey: "formatTextRotateVertical",
244
244
  groupKey: "textRotateOptions",
245
245
  disabled: p
246
246
  }),
247
- M(R, {
247
+ V(F, {
248
248
  commandKey: "formatTextRotate270",
249
249
  groupKey: "textRotateOptions",
250
250
  disabled: p
251
251
  })
252
- ] }), M(i, {
252
+ ] }), V(i, {
253
253
  label: l("format.degrees"),
254
254
  disabled: p || f,
255
- value: Q(b),
255
+ value: X(b),
256
256
  min: -90,
257
257
  max: 90,
258
258
  step: 5,
@@ -263,90 +263,90 @@ var Y = {
263
263
  ]
264
264
  });
265
265
  });
266
- _.displayName = "AlignmentPanel";
267
- var Z = C((e) => {
268
- const { selection: t, disabled: r, className: i, ...c } = e, m = O(), p = r || t.disabled;
269
- return V(j, {
270
- className: G("sxl-format-font-panel", i),
266
+ Z.displayName = "AlignmentPanel";
267
+ var ee = A((e) => {
268
+ const { selection: t, disabled: r, className: i, ...c } = e, m = C(), p = r || t.disabled;
269
+ return j(H, {
270
+ className: q("sxl-format-font-panel", i),
271
271
  sx: d,
272
272
  ...c,
273
273
  children: [
274
- M(a, {
274
+ V(a, {
275
275
  label: m("format.fontFamily"),
276
- children: M(n, {
276
+ children: V(n, {
277
277
  commandKey: "formatFontFamily",
278
278
  disabled: p,
279
279
  sx: { width: "100%" }
280
280
  })
281
281
  }),
282
- M(a, {
282
+ V(a, {
283
283
  label: m("format.fontSize"),
284
- children: V(s, { children: [
285
- M(l, {
284
+ children: j(s, { children: [
285
+ V(l, {
286
286
  commandKey: "formatFontSize",
287
287
  disabled: p,
288
288
  sx: { width: 96 }
289
289
  }),
290
- M(R, {
290
+ V(F, {
291
291
  commandKey: "formatFontSizeIncrease",
292
292
  disabled: p
293
293
  }),
294
- M(R, {
294
+ V(F, {
295
295
  commandKey: "formatFontSizeDecrease",
296
296
  disabled: p
297
297
  })
298
298
  ] })
299
299
  }),
300
- M(a, {
300
+ V(a, {
301
301
  label: m("format.color"),
302
- children: M(s, { children: M(o, {
302
+ children: V(s, { children: V(o, {
303
303
  commandKey: "formatFontColor",
304
304
  disabled: p
305
305
  }) })
306
306
  }),
307
- M(a, {
307
+ V(a, {
308
308
  label: m("format.effects"),
309
- children: V(g, { children: [
310
- M(R, {
309
+ children: j(g, { children: [
310
+ V(F, {
311
311
  commandKey: "formatBoldToggle",
312
312
  disabled: p
313
313
  }),
314
- M(R, {
314
+ V(F, {
315
315
  commandKey: "formatItalicToggle",
316
316
  disabled: p
317
317
  }),
318
- M(R, {
318
+ V(F, {
319
319
  commandKey: "formatUnderlinedToggle",
320
320
  groupKey: "underlineOptions",
321
321
  disabled: p
322
322
  }),
323
- M(R, {
323
+ V(F, {
324
324
  commandKey: "formatUnderlinedDoubleToggle",
325
325
  groupKey: "underlineOptions",
326
326
  disabled: p
327
327
  }),
328
- M(j, { sx: { width: "8px" } }),
329
- M(R, {
328
+ V(H, { sx: { width: "8px" } }),
329
+ V(F, {
330
330
  commandKey: "formatStrikeThroughToggle",
331
331
  disabled: p
332
332
  }),
333
- M(R, {
333
+ V(F, {
334
334
  commandKey: "formatSuperscriptToggle",
335
335
  disabled: p
336
336
  }),
337
- M(R, {
337
+ V(F, {
338
338
  commandKey: "formatSubscriptToggle",
339
339
  disabled: p
340
340
  })
341
341
  ] })
342
342
  }),
343
- M(a, {
343
+ V(a, {
344
344
  label: m("format.accountingUnderline"),
345
- children: V(g, { children: [M(R, {
345
+ children: j(g, { children: [V(F, {
346
346
  commandKey: "formatUnderlinedAccountingToggle",
347
347
  groupKey: "underlineOptions",
348
348
  disabled: p
349
- }), M(R, {
349
+ }), V(F, {
350
350
  commandKey: "formatUnderlinedAccountingDoubleToggle",
351
351
  groupKey: "underlineOptions",
352
352
  disabled: p
@@ -355,20 +355,20 @@ var Z = C((e) => {
355
355
  ]
356
356
  });
357
357
  });
358
- Z.displayName = "FontPanel";
359
- var ee = Object.freeze([
358
+ ee.displayName = "FontPanel";
359
+ var te = Object.freeze([
360
360
  u.Edge.Top,
361
361
  u.Edge.Bottom,
362
362
  u.Edge.Left,
363
363
  u.Edge.Right,
364
364
  u.Edge.Horizontal,
365
365
  u.Edge.Vertical
366
- ]), te = Object.freeze([]), oe = Object.freeze([u.Edge.Horizontal, u.Edge.Vertical]), re = new Map([
367
- ...ee,
366
+ ]), oe = Object.freeze([]), re = Object.freeze([u.Edge.Horizontal, u.Edge.Vertical]), ne = new Map([
367
+ ...te,
368
368
  u.Edge.DiagonalUp,
369
369
  u.Edge.DiagonalDown
370
- ].map((e) => [e, Object.freeze([e])])), ne = (e) => e === u.Edge.DiagonalUp || e === u.Edge.DiagonalDown;
371
- function le(e, t) {
370
+ ].map((e) => [e, Object.freeze([e])])), le = (e) => e === u.Edge.DiagonalUp || e === u.Edge.DiagonalDown;
371
+ function ae(e, t) {
372
372
  switch (t) {
373
373
  case u.Edge.Top: return e("border.top");
374
374
  case u.Edge.Left: return e("border.left");
@@ -381,10 +381,10 @@ function le(e, t) {
381
381
  default: return t;
382
382
  }
383
383
  }
384
- var ae = (e) => 0 === e ? "0px" : 1 === e ? "calc(100% - 1px)" : `calc(${100 * e}% - 0.5px)`, ie = (e, t) => {
384
+ var ie = (e) => 0 === e ? "0px" : 1 === e ? "calc(100% - 1px)" : `calc(${100 * e}% - 0.5px)`, de = (e, t) => {
385
385
  const o = "-7px", r = [];
386
386
  for (let e = 0; e <= t; e++) {
387
- const n = ae(e / t);
387
+ const n = ie(e / t);
388
388
  r.push({
389
389
  left: n,
390
390
  top: o,
@@ -398,7 +398,7 @@ var ae = (e) => 0 === e ? "0px" : 1 === e ? "calc(100% - 1px)" : `calc(${100 * e
398
398
  });
399
399
  }
400
400
  for (let t = 0; t <= e; t++) {
401
- const n = ae(t / e);
401
+ const n = ie(t / e);
402
402
  r.push({
403
403
  top: n,
404
404
  left: o,
@@ -412,7 +412,7 @@ var ae = (e) => 0 === e ? "0px" : 1 === e ? "calc(100% - 1px)" : `calc(${100 * e
412
412
  });
413
413
  }
414
414
  return r;
415
- }, de = (e) => e === u.Edge.Left || e === u.Edge.Vertical || e === u.Edge.Right, se = (e) => {
415
+ }, se = (e) => e === u.Edge.Left || e === u.Edge.Vertical || e === u.Edge.Right, ge = (e) => {
416
416
  switch (e) {
417
417
  case u.Edge.Top:
418
418
  case u.Edge.Left: return 0;
@@ -421,8 +421,8 @@ var ae = (e) => 0 === e ? "0px" : 1 === e ? "calc(100% - 1px)" : `calc(${100 * e
421
421
  default: return 1;
422
422
  }
423
423
  };
424
- var ge = (e) => {
425
- const { edges: t, createBorder: o, onToggleEdges: r, omittedEdges: n, disabled: l = !1, height: a = 104, className: i, ...d } = e, s = O(), g = N(null), [c, m] = B(te), p = A((e) => !n?.includes(e), [n]), h = A((e) => !l && p(e), [l, p]), f = p(u.Edge.Horizontal) ? 2 : 1, y = p(u.Edge.Vertical) ? 2 : 1, x = A((e) => o({
424
+ var ce = (e) => {
425
+ const { edges: t, createBorder: o, onToggleEdges: r, omittedEdges: n, disabled: l = !1, height: a = 104, className: i, ...d } = e, s = C(), g = B(null), [c, m] = R(oe), p = k((e) => !n?.includes(e), [n]), h = k((e) => !l && p(e), [l, p]), f = p(u.Edge.Horizontal) ? 2 : 1, y = p(u.Edge.Vertical) ? 2 : 1, x = k((e) => o({
426
426
  top: 0 === e.rowIndex ? t.top : t.horizontal,
427
427
  bottom: e.rowIndex === f - 1 ? t.bottom : t.horizontal,
428
428
  left: 0 === e.colIndex ? t.left : t.vertical,
@@ -434,33 +434,33 @@ var ge = (e) => {
434
434
  o,
435
435
  f,
436
436
  y
437
- ]), E = A((e) => {
437
+ ]), E = k((e) => {
438
438
  const t = g.current;
439
- if (!t) return te;
439
+ if (!t) return oe;
440
440
  const o = t.getBoundingClientRect();
441
441
  return function(e, t, o, r, n) {
442
- if (o <= 0 || r <= 0) return te;
442
+ if (o <= 0 || r <= 0) return oe;
443
443
  const l = Math.min(10, o / 5, r / 5);
444
- if (oe.every(n) && Math.abs(e - o / 2) <= l && Math.abs(t - r / 2) <= l) return oe;
444
+ if (re.every(n) && Math.abs(e - o / 2) <= l && Math.abs(t - r / 2) <= l) return re;
445
445
  const a = Math.abs(e) <= l, i = Math.abs(e - o) <= l, d = Math.abs(t) <= l, s = Math.abs(t - r) <= l;
446
446
  if ((a || i) && (d || s)) {
447
447
  const e = a === d ? u.Edge.DiagonalDown : u.Edge.DiagonalUp;
448
- if (n(e)) return re.get(e);
448
+ if (n(e)) return ne.get(e);
449
449
  }
450
450
  let g = null, c = Number.POSITIVE_INFINITY;
451
- for (const l of ee) {
451
+ for (const l of te) {
452
452
  if (!n(l)) continue;
453
- const a = de(l), i = a ? r : o, d = a ? t : e, s = Math.max(0, -d, d - i), m = (a ? e : t) - se(l) * (a ? o : r), p = Math.hypot(s, m);
453
+ const a = se(l), i = a ? r : o, d = a ? t : e, s = Math.max(0, -d, d - i), m = (a ? e : t) - ge(l) * (a ? o : r), p = Math.hypot(s, m);
454
454
  p < c && (c = p, g = l);
455
455
  }
456
- return g && c <= l ? re.get(g) : te;
456
+ return g && c <= l ? ne.get(g) : oe;
457
457
  }(e.clientX - o.left, e.clientY - o.top, o.width, o.height, h);
458
458
  }, [h]);
459
- return M(j, {
460
- className: G("sxl-border-preview", i),
459
+ return V(H, {
460
+ className: q("sxl-border-preview", i),
461
461
  ...d,
462
462
  onPointerMove: (e) => m(E(e)),
463
- onPointerLeave: () => m(te),
463
+ onPointerLeave: () => m(oe),
464
464
  onClick: (e) => {
465
465
  const t = E(e);
466
466
  t.length > 0 && r(t);
@@ -476,7 +476,7 @@ var ge = (e) => {
476
476
  border: (e) => `1px solid ${e.palette.divider}`,
477
477
  opacity: l ? .6 : 1
478
478
  },
479
- children: V(j, {
479
+ children: j(H, {
480
480
  ref: g,
481
481
  sx: {
482
482
  position: "relative",
@@ -484,7 +484,7 @@ var ge = (e) => {
484
484
  height: "100%"
485
485
  },
486
486
  children: [
487
- M(j, {
487
+ V(H, {
488
488
  "aria-hidden": "true",
489
489
  sx: {
490
490
  position: "absolute",
@@ -494,11 +494,11 @@ var ge = (e) => {
494
494
  gridTemplateRows: `repeat(${f}, 1fr)`,
495
495
  gap: "2px",
496
496
  pointerEvents: "none",
497
- "& > div": { backgroundColor: (e) => $(e.palette.text.primary, .05) }
497
+ "& > div": { backgroundColor: (e) => W(e.palette.text.primary, .05) }
498
498
  },
499
- children: Array.from({ length: f * y }, (e, t) => M("div", {}, t))
499
+ children: Array.from({ length: f * y }, (e, t) => V("div", {}, t))
500
500
  }),
501
- M(j, {
501
+ V(H, {
502
502
  "aria-hidden": "true",
503
503
  sx: {
504
504
  position: "absolute",
@@ -509,9 +509,9 @@ var ge = (e) => {
509
509
  backgroundColor: (e) => e.palette.text.secondary
510
510
  }
511
511
  },
512
- children: ie(f, y).map((e, t) => M("div", { style: e }, t))
512
+ children: de(f, y).map((e, t) => V("div", { style: e }, t))
513
513
  }),
514
- c.length > 0 ? V(j, {
514
+ c.length > 0 ? j(H, {
515
515
  "aria-hidden": "true",
516
516
  sx: {
517
517
  position: "absolute",
@@ -525,7 +525,7 @@ var ge = (e) => {
525
525
  },
526
526
  "& line": { stroke: (e) => e.palette.text.primary }
527
527
  },
528
- children: [c.filter((e) => !ne(e)).map((e) => M("div", { style: ce(e) }, e)), c.some(ne) ? M("svg", {
528
+ children: [c.filter((e) => !le(e)).map((e) => V("div", { style: me(e) }, e)), c.some(le) ? V("svg", {
529
529
  viewBox: "0 0 100 100",
530
530
  preserveAspectRatio: "none",
531
531
  style: {
@@ -535,11 +535,11 @@ var ge = (e) => {
535
535
  height: "100%",
536
536
  overflow: "visible"
537
537
  },
538
- children: c.filter(ne).flatMap((e) => function(e, t, o) {
538
+ children: c.filter(le).flatMap((e) => function(e, t, o) {
539
539
  const r = [];
540
540
  for (let n = 0; n < t; n++) for (let l = 0; l < o; l++) {
541
541
  const a = l / o * 100, i = (l + 1) / o * 100, d = n / t * 100, s = (n + 1) / t * 100, g = e === u.Edge.DiagonalDown;
542
- r.push(M("line", {
542
+ r.push(V("line", {
543
543
  x1: a,
544
544
  y1: g ? d : s,
545
545
  x2: i,
@@ -553,7 +553,7 @@ var ge = (e) => {
553
553
  }(e, f, y))
554
554
  }) : null]
555
555
  }) : null,
556
- M(b, {
556
+ V(b, {
557
557
  getBorderAt: x,
558
558
  rowCount: f,
559
559
  columnCount: y,
@@ -564,15 +564,15 @@ var ge = (e) => {
564
564
  width: "100%"
565
565
  }
566
566
  }),
567
- ee.filter(p).map((e) => M(j, {
567
+ te.filter(p).map((e) => V(H, {
568
568
  component: "button",
569
569
  type: "button",
570
- "aria-label": le(s, e),
570
+ "aria-label": ae(s, e),
571
571
  "aria-pressed": !!t[e],
572
- title: le(s, e),
572
+ title: ae(s, e),
573
573
  disabled: !h(e),
574
574
  onClick: (t) => {
575
- t.stopPropagation(), r(re.get(e));
575
+ t.stopPropagation(), r(ne.get(e));
576
576
  },
577
577
  sx: {
578
578
  position: "absolute",
@@ -583,16 +583,16 @@ var ge = (e) => {
583
583
  pointerEvents: "none",
584
584
  borderRadius: "3px",
585
585
  "&:focus-visible": { outline: (e) => `2px solid ${e.palette.primary.main}` },
586
- ...ce(e)
586
+ ...me(e)
587
587
  }
588
588
  }, e))
589
589
  ]
590
590
  })
591
591
  });
592
592
  };
593
- function ce(e) {
594
- const t = `calc(${100 * se(e)}% - 3px)`;
595
- return de(e) ? {
593
+ function me(e) {
594
+ const t = `calc(${100 * ge(e)}% - 3px)`;
595
+ return se(e) ? {
596
596
  top: 0,
597
597
  bottom: 0,
598
598
  left: t,
@@ -604,69 +604,69 @@ function ce(e) {
604
604
  height: "6px"
605
605
  };
606
606
  }
607
- ge.displayName = "BorderPreview";
608
- var me = u.StrokeStyle.Thin, pe = Object.freeze([
607
+ ce.displayName = "BorderPreview";
608
+ var pe = u.StrokeStyle.Thin, ue = Object.freeze([
609
609
  u.Edge.Left,
610
610
  u.Edge.Top,
611
611
  u.Edge.Right,
612
612
  u.Edge.Bottom
613
- ]), ue = Object.freeze([u.Edge.Horizontal, u.Edge.Vertical]), he = Object.freeze([...pe, ...ue]), fe = Object.freeze([u.Edge.DiagonalUp, u.Edge.DiagonalDown]), be = Object.freeze([...he, ...fe]), ye = (e, t, o) => {
613
+ ]), he = Object.freeze([u.Edge.Horizontal, u.Edge.Vertical]), fe = Object.freeze([...ue, ...he]), be = Object.freeze([u.Edge.DiagonalUp, u.Edge.DiagonalDown]), ye = Object.freeze([...fe, ...be]), xe = (e, t, o) => {
614
614
  const r = {
615
615
  style: t,
616
616
  color: o?.toString()
617
617
  }, n = {};
618
618
  for (const t of e) n[t] = r;
619
619
  return n;
620
- }, xe = (e) => {
620
+ }, Ee = (e) => {
621
621
  const t = {};
622
622
  for (const o of e) t[o] = null;
623
623
  return t;
624
- }, Ee = (e) => e ? e.toString() : null, Ke = C((o) => {
625
- const { selection: n, disabled: l, className: i, ...c } = o, m = O(), { getEdgeStroke: p, createBorder: h, applyStyle: f, styles: b, schemeLookup: y, autoColor: x, darkMode: E, hasInnerHorizontal: K, hasInnerVertical: v } = n, T = l || n.disabled, C = w((e) => e === u.Edge.Horizontal ? !K : e === u.Edge.Vertical && !v, [K, v]), [A, k] = B(() => {
624
+ }, Ke = (e) => e ? e.toString() : null, Se = A((o) => {
625
+ const { selection: n, disabled: l, className: i, ...c } = o, m = C(), { getEdgeStroke: p, createBorder: h, applyStyle: f, styles: b, autoColor: y, darkMode: x, hasInnerHorizontal: E, hasInnerVertical: K } = n, S = b.schemeLookup(), T = l || n.disabled, O = v((e) => e === u.Edge.Horizontal ? !E : e === u.Edge.Vertical && !K, [E, K]), [A, k] = R(() => {
626
626
  const e = p(u.Edge.Bottom)?.getStyle();
627
- return e && e !== u.StrokeStyle.None ? e : me;
628
- }), [z, D] = B(() => {
627
+ return e && e !== u.StrokeStyle.None ? e : pe;
628
+ }), [z, D] = R(() => {
629
629
  const e = p(u.Edge.Bottom);
630
630
  return !e || e.isNone() ? null : e.getProperties().color ? e.getColor() : null;
631
- }), N = w(() => b.recentColors(), [b]), R = w((e) => {
632
- f({ borders: e }, W("op.setBorders"));
633
- }, [f]), H = w((e) => {
634
- 0 !== e.length && f([{ borders: xe(e) }, { borders: ye(e, A, z) }], W("op.setBorders"));
631
+ }), N = v(() => b.recentColors(), [b]), B = v((e) => {
632
+ f({ borders: e }, G("op.setBorders"));
633
+ }, [f]), F = v((e) => {
634
+ 0 !== e.length && f([{ borders: Ee(e) }, { borders: xe(e, A, z) }], G("op.setBorders"));
635
635
  }, [
636
636
  f,
637
637
  A,
638
638
  z
639
- ]), U = w((e) => {
640
- 0 !== e.length && R(ye(e, u.StrokeStyle.None, null));
641
- }, [R]), L = w((e) => {
642
- H(e.filter((e) => !C(e)));
643
- }, [H, C]), $ = {};
644
- for (const e of be) {
639
+ ]), U = v((e) => {
640
+ 0 !== e.length && B(xe(e, u.StrokeStyle.None, null));
641
+ }, [B]), L = v((e) => {
642
+ F(e.filter((e) => !O(e)));
643
+ }, [F, O]), P = {};
644
+ for (const e of ye) {
645
645
  const t = p(e);
646
- t && !t.isNone() && ($[e] = t.getProperties());
646
+ t && !t.isNone() && (P[e] = t.getProperties());
647
647
  }
648
- const q = w((e) => {
649
- const t = $[e];
650
- return (t?.style ?? u.StrokeStyle.None) === A && Ee(t?.color) === Ee(z);
648
+ const W = v((e) => {
649
+ const t = P[e];
650
+ return (t?.style ?? u.StrokeStyle.None) === A && Ke(t?.color) === Ke(z);
651
651
  }, [
652
- $,
652
+ P,
653
653
  A,
654
654
  z
655
655
  ]), J = (e) => {
656
- const t = e.filter((e) => !C(e));
657
- return t.length > 0 && t.every(q);
658
- }, Y = w((e) => {
659
- const t = e.filter((e) => !C(e));
660
- A === u.StrokeStyle.None || t.every(q) ? U(t) : H(t);
656
+ const t = e.filter((e) => !O(e));
657
+ return t.length > 0 && t.every(W);
658
+ }, Y = v((e) => {
659
+ const t = e.filter((e) => !O(e));
660
+ A === u.StrokeStyle.None || t.every(W) ? U(t) : F(t);
661
661
  }, [
662
662
  U,
663
- H,
664
- q,
665
- C,
663
+ F,
664
+ W,
665
+ O,
666
666
  A
667
- ]), Q = (e) => ye(e, A, z), X = (e, o, r) => M(F, {
667
+ ]), Q = (e) => xe(e, A, z), X = (e, o, r) => V(I, {
668
668
  disabled: T,
669
- icon: M(t, {
669
+ icon: V(t, {
670
670
  border: e.length > 0 ? Q(e) : null,
671
671
  createBorder: h
672
672
  }),
@@ -676,11 +676,11 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
676
676
  },
677
677
  onClick: r
678
678
  }), _ = (e, o) => {
679
- const r = T || e.every(C);
680
- return M(F, {
679
+ const r = T || e.every(O);
680
+ return V(I, {
681
681
  disabled: r,
682
682
  selected: !r && A !== u.StrokeStyle.None && J(e),
683
- icon: M(t, {
683
+ icon: V(t, {
684
684
  border: Q(e),
685
685
  createBorder: h
686
686
  }),
@@ -690,44 +690,44 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
690
690
  },
691
691
  onClick: () => Y(e)
692
692
  });
693
- }, Z = (e) => _([e], le(m, e));
694
- return V(j, {
695
- className: G("sxl-format-border-panel", i),
693
+ }, Z = (e) => _([e], ae(m, e));
694
+ return j(H, {
695
+ className: q("sxl-format-border-panel", i),
696
696
  sx: d,
697
697
  ...c,
698
698
  children: [
699
- V(s, { children: [M(r, {
699
+ j(s, { children: [V(r, {
700
700
  disabled: T || A === u.StrokeStyle.None,
701
- darkMode: E,
702
- icon: M(S, { iconKey: "stroke.colored" }),
701
+ darkMode: x,
702
+ icon: V(w, { iconKey: "stroke.colored" }),
703
703
  tooltip: m("border.colorTooltip"),
704
704
  selectedColor: z,
705
705
  onSelectColor: (e) => D(e),
706
706
  propsPanel: {
707
707
  disableAlpha: !0,
708
- schemeLookup: y,
708
+ schemeLookup: S,
709
709
  recentColors: N,
710
- autoColor: x
710
+ autoColor: y
711
711
  }
712
- }), M(e, {
712
+ }), V(e, {
713
713
  disabled: T,
714
- darkMode: E,
714
+ darkMode: x,
715
715
  selectedStyle: A,
716
716
  styleColor: z,
717
- variant: I.Toolbar,
717
+ variant: M.Toolbar,
718
718
  onSelectStyle: (e) => k(e ?? u.StrokeStyle.None)
719
719
  })] }),
720
- V(g, {
720
+ j(g, {
721
721
  sx: { justifyContent: "center" },
722
722
  children: [
723
- X(he, m("border.all"), () => L(he)),
724
- X(pe, m("border.outside"), () => L(pe)),
725
- X([], m("border.none"), () => R(null))
723
+ X(fe, m("border.all"), () => L(fe)),
724
+ X(ue, m("border.outside"), () => L(ue)),
725
+ X([], m("border.none"), () => B(null))
726
726
  ]
727
727
  }),
728
- V(a, {
728
+ j(a, {
729
729
  sx: { px: 1.5 },
730
- children: [V(j, {
730
+ children: [j(H, {
731
731
  sx: {
732
732
  display: "grid",
733
733
  gridTemplateColumns: "auto minmax(0, 156px) auto",
@@ -737,7 +737,7 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
737
737
  minWidth: 0
738
738
  },
739
739
  children: [
740
- V(j, {
740
+ j(H, {
741
741
  sx: {
742
742
  display: "flex",
743
743
  flexDirection: "column",
@@ -750,23 +750,23 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
750
750
  Z(u.Edge.Bottom)
751
751
  ]
752
752
  }),
753
- M(ge, {
754
- edges: $,
753
+ V(ce, {
754
+ edges: P,
755
755
  createBorder: h,
756
756
  disabled: T,
757
757
  height: 104,
758
- omittedEdges: he.filter(C),
758
+ omittedEdges: fe.filter(O),
759
759
  onToggleEdges: Y
760
760
  }),
761
- M(j, {
761
+ V(H, {
762
762
  sx: {
763
763
  display: "flex",
764
764
  alignItems: "center"
765
765
  },
766
- children: _(ue, m("border.inner"))
766
+ children: _(he, m("border.inner"))
767
767
  }),
768
768
  Z(u.Edge.DiagonalUp),
769
- V(j, {
769
+ j(H, {
770
770
  sx: {
771
771
  display: "flex",
772
772
  justifyContent: "space-between",
@@ -780,7 +780,7 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
780
780
  }),
781
781
  Z(u.Edge.DiagonalDown)
782
782
  ]
783
- }), M(P, {
783
+ }), V($, {
784
784
  variant: "caption",
785
785
  component: "div",
786
786
  sx: {
@@ -794,59 +794,58 @@ var me = u.StrokeStyle.Thin, pe = Object.freeze([
794
794
  ]
795
795
  });
796
796
  });
797
- Ke.displayName = "BorderPanel";
798
- var Se = {
797
+ Se.displayName = "BorderPanel";
798
+ var we = {
799
799
  Number: "number",
800
800
  Alignment: "alignment",
801
801
  Font: "font",
802
802
  Border: "border",
803
803
  Fill: "fill"
804
- }, we = "format.tab", ve = Object.freeze([
805
- Se.Number,
806
- Se.Alignment,
807
- Se.Font,
808
- Se.Border,
809
- Se.Fill
810
- ]), Te = C((e) => {
811
- const t = e.model, o = O();
812
- K(t, "onSelectedSheetChange");
804
+ }, ve = "format.tab", Te = Object.freeze([
805
+ we.Number,
806
+ we.Alignment,
807
+ we.Font,
808
+ we.Border,
809
+ we.Fill
810
+ ]), Oe = A((e) => {
811
+ const t = e.model, o = C();
812
+ S(t, "onSelectedSheetChange");
813
813
  const r = t.getSelectedWorksheet();
814
814
  if (!r) {
815
815
  const { model: t, args: r, entryKey: n, frame: l, ref: a, ...i } = e;
816
- return M(H, {
816
+ return V(U, {
817
817
  square: !0,
818
818
  ref: a,
819
819
  sx: {
820
820
  display: "flex",
821
- flex: "1 1 auto",
822
- padding: (e) => e.spacing(2, 2)
821
+ flex: "1 1 auto"
823
822
  },
824
823
  ...i,
825
- children: o("format.noWorksheet")
824
+ children: V(x, { children: o("format.noWorksheet") })
826
825
  });
827
826
  }
828
- return M(Oe, {
827
+ return V(Ce, {
829
828
  ...e,
830
829
  sheet: r
831
830
  });
832
831
  });
833
- Te.displayName = "FormatTaskPane";
834
- var Oe = C((e) => {
835
- const { model: t, sheet: o, args: r, entryKey: n, frame: l, ref: a, ...i } = e, d = O(), s = ((e) => {
836
- const [, t] = D((e) => e + 1, 0);
837
- E(e, {
832
+ Oe.displayName = "FormatTaskPane";
833
+ var Ce = A((e) => {
834
+ const { model: t, sheet: o, args: r, entryKey: n, frame: l, ref: a, ...i } = e, d = C(), s = ((e) => {
835
+ const [, t] = N((e) => e + 1, 0);
836
+ K(e, {
838
837
  onSelectionChange: () => t(),
839
838
  onStyleChange: () => t()
840
839
  });
841
- const [o] = v(["formatBoldToggle"]), r = x(), n = e.getSelectedCell(), l = e.getStyles(), a = e.getSelectedRanges(), i = w((t, o, r) => {
840
+ const [o] = T(["formatBoldToggle"]), r = E(), n = e.getSelectedCell(), l = e.getStyles(), a = e.getSelectedRanges(), i = v((t, o, r) => {
842
841
  const n = Array.isArray(t) ? t : [t];
843
842
  e.doBatch(() => {
844
843
  for (const t of n) e.getSelectedRanges().getStyle().update(t, {
845
- autoSelect: q,
844
+ autoSelect: J,
846
845
  autoFit: r ?? !0
847
846
  });
848
- }, { description: o ?? W("op.updateStyle") });
849
- }, [e]), d = w((t) => e.createCell(t), [e]), s = w((e) => l.getNormal().createStyle({ borders: e }).getBorders(), [l]), g = a.getCoords()[0], c = w((t) => {
847
+ }, { description: o ?? G("op.updateStyle") });
848
+ }, [e]), d = v((t) => e.createCell(t), [e]), s = v((e) => l.getNormal().createStyle({ borders: e }).getBorders(), [l]), g = a.getCoords()[0], c = v((t) => {
850
849
  if (!g) return null;
851
850
  const o = (t, o) => e.getCell({
852
851
  rowIndex: t,
@@ -869,7 +868,6 @@ var Oe = C((e) => {
869
868
  cell: n,
870
869
  style: n.getStyle(),
871
870
  styles: l,
872
- schemeLookup: l.schemeLookup(),
873
871
  autoColor: l.getNormal().getFont().getColor(),
874
872
  darkMode: "dark" === r,
875
873
  disabled: o?.disabled() ?? !1,
@@ -880,13 +878,13 @@ var Oe = C((e) => {
880
878
  hasInnerHorizontal: a.getRowCount() > 1,
881
879
  hasInnerVertical: a.getColumnCount() > 1
882
880
  };
883
- })(o), [g, h] = T(we, Se.Number), b = ve.includes(g) ? g : Se.Number;
884
- k(() => {
881
+ })(o), [g, h] = O(ve, we.Number), b = Te.includes(g) ? g : we.Number;
882
+ z(() => {
885
883
  const e = r?.tab;
886
- e && h(e);
884
+ e && Te.includes(e) && h(e);
887
885
  }, [r]);
888
- const y = s.style.getNumberFormat(), K = "number" == typeof y ? f.resolve(y) : y ?? "General";
889
- return V(H, {
886
+ const y = s.style.getNumberFormat(), x = "number" == typeof y ? f.resolve(y) : y ?? "General";
887
+ return j(U, {
890
888
  square: !0,
891
889
  ref: a,
892
890
  sx: {
@@ -900,14 +898,14 @@ var Oe = C((e) => {
900
898
  },
901
899
  ...i,
902
900
  children: [
903
- M(j, {
901
+ V(H, {
904
902
  sx: {
905
903
  flexShrink: 0,
906
904
  padding: (e) => e.spacing(1.5, 2)
907
905
  },
908
- children: M(J, { selection: s })
906
+ children: V(Y, { selection: s })
909
907
  }),
910
- M(L, {
908
+ V(P, {
911
909
  value: b,
912
910
  onChange: (e, t) => h(t),
913
911
  variant: "scrollable",
@@ -926,12 +924,12 @@ var Oe = C((e) => {
926
924
  padding: "8px 4px"
927
925
  }
928
926
  },
929
- children: ve.map((e) => M(U, {
927
+ children: Te.map((e) => V(L, {
930
928
  value: e,
931
- label: Ce(d, e)
929
+ label: Ae(d, e)
932
930
  }, e))
933
931
  }),
934
- V(j, {
932
+ j(H, {
935
933
  sx: {
936
934
  flex: "1 1 auto",
937
935
  minHeight: 0,
@@ -939,34 +937,34 @@ var Oe = C((e) => {
939
937
  padding: (e) => e.spacing(2.5, 2)
940
938
  },
941
939
  children: [
942
- b === Se.Number ? M(c, {
940
+ b === we.Number ? V(c, {
943
941
  hideSample: !0,
944
942
  showQuickFormats: !0,
945
- value: K,
943
+ value: x,
946
944
  disabled: s.disabled,
947
945
  context: () => s.cell,
948
946
  onChange: (e) => {
949
- s.applyStyle({ numberFormat: e }, W("op.setNumberFormat"));
947
+ s.applyStyle({ numberFormat: e }, G("op.setNumberFormat"));
950
948
  }
951
949
  }) : null,
952
- b === Se.Alignment ? M(_, { selection: s }) : null,
953
- b === Se.Font ? M(Z, { selection: s }) : null,
954
- b === Se.Fill ? M(p, { selection: m(s) }) : null,
955
- b === Se.Border ? M(Ke, { selection: s }) : null
950
+ b === we.Alignment ? V(Z, { selection: s }) : null,
951
+ b === we.Font ? V(ee, { selection: s }) : null,
952
+ b === we.Fill ? V(p, { selection: m(s) }) : null,
953
+ b === we.Border ? V(Se, { selection: s }) : null
956
954
  ]
957
955
  })
958
956
  ]
959
957
  });
960
958
  });
961
- function Ce(e, t) {
959
+ function Ae(e, t) {
962
960
  switch (t) {
963
- case Se.Number: return e("format.tabNumber");
964
- case Se.Alignment: return e("format.tabAlignment");
965
- case Se.Font: return e("format.tabFont");
966
- case Se.Fill: return e("format.tabFill");
967
- case Se.Border: return e("format.tabBorder");
961
+ case we.Number: return e("format.tabNumber");
962
+ case we.Alignment: return e("format.tabAlignment");
963
+ case we.Font: return e("format.tabFont");
964
+ case we.Fill: return e("format.tabFill");
965
+ case we.Border: return e("format.tabBorder");
968
966
  default: return t;
969
967
  }
970
968
  }
971
- Oe.displayName = "FormatTaskPaneBody";
972
- export { we as FORMAT_TAB_KEY, Se as FormatTab, Te as FormatTaskPane, Te as default };
969
+ Ce.displayName = "FormatTaskPaneBody";
970
+ export { ve as FORMAT_TAB_KEY, we as FormatTab, Oe as FormatTaskPane, Oe as default };