@sheetxl/react 0.8.0-beta.21 → 0.8.0-beta.23

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 (79) hide show
  1. package/browser/esm/{Dl0ye0MfTml4mjhA.mjs → 2-8Z3hKcjFc9IUm_.mjs} +3 -3
  2. package/browser/esm/{fHDciYUZvXpLzoID.mjs → B1qMCa-WDnmPYR_C.mjs} +2 -2
  3. package/browser/esm/{zTaXN_1rvsoWg94m.mjs → B1rKvYmr4ynvDkqM.mjs} +3 -3
  4. package/browser/esm/B7RYx03rC74aIduo.mjs +264 -0
  5. package/browser/esm/{C2HjD-DbaqXq93R7.mjs → BG96UT5-ooOuigD0.mjs} +1 -1
  6. package/browser/esm/{BQur1iFrng9Y4kh4.mjs → BHukFXtx1rpfvfIy.mjs} +1 -1
  7. package/browser/esm/{BjnWnPjhT1QFkbUC.mjs → BN7pckCvCRZMPCmK.mjs} +7 -7
  8. package/browser/esm/{BzCq_Z7J2qQlY4Dp.mjs → BklsD3lkZGRSwAFi.mjs} +1 -1
  9. package/browser/esm/{CdE8JeJkTtdh5qqp.mjs → C-eTPeTwXQoqn3Lb.mjs} +2 -2
  10. package/browser/esm/{CA6w64diOtRCgr4n.mjs → C9wgyCKVT4rwQMSD.mjs} +1 -1
  11. package/browser/esm/{DG1f60gvSkz8Y3qb.mjs → CD5gjg2DVLsy6h33.mjs} +6 -6
  12. package/browser/esm/{DL2WZkJdK1lZfpJo.mjs → CEtZlL4v4JU0TDVR.mjs} +122 -122
  13. package/browser/esm/{6lfBozPNyWlFBEDn.mjs → CGEyv-QdxMuQmLqk.mjs} +1 -1
  14. package/browser/esm/{CkYId3pjG9v3XZM2.mjs → CLD7Vob5oUran-l0.mjs} +1 -1
  15. package/browser/esm/{B7TCFLHs7nnOgLMi.mjs → CXJmpmqTkVe25Ita.mjs} +2 -2
  16. package/browser/esm/{mOYnwl3MMod-yX7a.mjs → CmYMKPG-TaW2dJPu.mjs} +1 -1
  17. package/browser/esm/{_T8e_9xhVAagwkPD.mjs → CruGvs0fdtWWO_Di.mjs} +1 -1
  18. package/browser/esm/{Co65nK3fyBcyVzrS.mjs → Cw3PQMs1RDxzIo35.mjs} +2 -2
  19. package/browser/esm/{C46qV9hBGqlz6_Kt.mjs → D5r5ejlRpFFXN6TK.mjs} +4 -4
  20. package/browser/esm/{C9dHNoiKtX9PLY1g.mjs → D952mmmww4cYPatc.mjs} +1 -1
  21. package/browser/esm/{BwMC6jAg2neI4LTH.mjs → DQ5DeFNj_0mj6QMd.mjs} +1 -1
  22. package/browser/esm/{CPwcEeQtvkrESNEy.mjs → DSvlk_YzOev20rgN.mjs} +173 -160
  23. package/browser/esm/{k1IvXgw5-153QQUo.mjs → DedLmnV_HajYHYSM.mjs} +2 -2
  24. package/browser/esm/{CCL3pFmdsuwahoCR.mjs → G6Ek0k1QC1pUHvPd.mjs} +1 -1
  25. package/browser/esm/{CHgyrBEiFmspcFXV.mjs → OPWkc7t367MwVsVU.mjs} +1 -1
  26. package/browser/esm/chart.mjs +11 -11
  27. package/browser/esm/control.mjs +16 -16
  28. package/browser/esm/group.mjs +29 -29
  29. package/browser/esm/index.mjs +6524 -6512
  30. package/browser/esm/note.mjs +10 -10
  31. package/browser/esm/picture.mjs +2 -2
  32. package/browser/esm/shape.mjs +2 -2
  33. package/browser/esm/slicer.mjs +55 -50
  34. package/node/esm/{fM9xnrz0LJWdndYE.mjs → B5ae_WW6vAz2jOsn.mjs} +1 -1
  35. package/node/esm/{JrDkDzP0l4TgHusH.mjs → BD04OJgRWKiE2W1H.mjs} +1 -1
  36. package/node/esm/{uzlKB6H0b-ol8pDK.mjs → BGLOvRRJr4nt8QdO.mjs} +2 -2
  37. package/node/esm/{B2a1mRx9B8XMRd8H.mjs → BKrvkWuGTMdkvdy6.mjs} +1 -1
  38. package/node/esm/{CdKkuM4Yy04LbhRL.mjs → BMWwIbesFn8e6-Ov.mjs} +1 -1
  39. package/node/esm/{BBBfGP0lLhBFoR9F.mjs → BhgjRcXOyNKBdqUW.mjs} +5 -5
  40. package/node/esm/{DtrPF3bSD4CZC5VG.mjs → Bv0fGxNecKUr_qYS.mjs} +1 -1
  41. package/node/esm/{Mq8a4csdTfwY5CnZ.mjs → CF5ztfx05vyEMEub.mjs} +1 -1
  42. package/node/esm/{CGEbcsNJ40cYQEWX.mjs → CeSZX96RPPjn29Hw.mjs} +2 -2
  43. package/node/esm/{Bzuh8HcJcFD2dYTY.mjs → CeuVkQpY8O4nZG-k.mjs} +2 -2
  44. package/node/esm/{BQpm93aEyzN5TiU6.mjs → Csl959_HnUC4Y06N.mjs} +1 -1
  45. package/node/esm/{B4qJFO-8Vml8JbaC.mjs → Cx16BErZDzlQEXH_.mjs} +2 -2
  46. package/node/esm/{Df-nWyFJwXaVd79x.mjs → D8mwVRSclIFn5SVM.mjs} +80 -78
  47. package/node/esm/{COg8aOu0d67g_Pg5.mjs → DJyNfqgeIlJ6lOHS.mjs} +1 -1
  48. package/node/esm/{cgqViNUwnlIX8-UW.mjs → DL2RKBB2PXzdJyx_.mjs} +4 -4
  49. package/node/esm/{CNYzecnb2TInTI8p.mjs → DmHHRlyfyFWj6wvW.mjs} +1 -1
  50. package/node/esm/{8PerdW56-NyRf0pg.mjs → VFXZqkIvB9MDE2Ea.mjs} +1 -1
  51. package/node/esm/{tRhXTPxocmY7ZY3z.mjs → YC2O0ix33xKY0ShQ.mjs} +12 -12
  52. package/node/esm/chart.mjs +19 -19
  53. package/node/esm/control.mjs +16 -16
  54. package/node/esm/group.mjs +27 -27
  55. package/node/esm/{EXPN4LM0alUK5Zw7.mjs → iMUcM8KW4HIW2Ksm.mjs} +1 -1
  56. package/node/esm/index.mjs +5598 -5585
  57. package/node/esm/{BadjRr_jKKGvmEW-.mjs → k3c-0DQ1fifSFOnO.mjs} +1 -1
  58. package/node/esm/note.mjs +10 -10
  59. package/node/esm/picture.mjs +175 -162
  60. package/node/esm/shape.mjs +164 -164
  61. package/node/esm/slicer.mjs +100 -95
  62. package/node/esm/{CD1OBtF4vEthYy6e.mjs → vYeFE_eUMRqsgnkd.mjs} +1 -1
  63. package/package.json +7 -7
  64. package/types/src/cell/CornerTriangle.d.ts +2 -1
  65. package/types/src/editor/SheetCellEditorLayer.d.ts +0 -5
  66. package/types/src/editor/formulaPresentation.d.ts +4 -3
  67. package/types/src/movable/IMovableArea.d.ts +11 -0
  68. package/types/src/movable/MovableLayer.d.ts +1 -1
  69. package/types/src/sheet/IWorksheetElement.d.ts +13 -4
  70. package/types/src/theme/ExplicitTokens.d.ts +18 -0
  71. package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
  72. package/types/src/theme/ThemeRootStyles.d.ts +31 -0
  73. package/types/src/theme/buildTokensCSS.d.ts +15 -0
  74. package/types/src/theme/index.d.ts +2 -4
  75. package/types/src/theme/useAppColorScheme.d.ts +4 -1
  76. package/types/src/theme/useGridColorScheme.d.ts +7 -2
  77. package/types/src/theme/useSystemColors.d.ts +0 -14
  78. package/types/src/workbook/IWorkbookElement.d.ts +36 -8
  79. package/browser/esm/BzFKdDmdCdg3cXdh.mjs +0 -262
@@ -1,29 +1,31 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { forwardRef as e, memo as t, useCallback as r, useEffect as n, useLayoutEffect as o, useRef as l, useState as s } from "react";
8
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
9
- import { CommonUtils as c, defineLazyModule as d } from "@sheetxl/utils";
10
- import { useImperativeElement as u, useMeasure as h, usePendingRender as g, usePersistentState as m, useResolvedThemeMode as p } from "@sheetxl/utils-react";
11
- import { useMergeRefs as f } from "react-merge-refs";
12
- var x = {
7
+ import { createContext as e, forwardRef as t, memo as r, useCallback as n, useContext as o, useEffect as l, useLayoutEffect as s, useRef as i, useState as a } from "react";
8
+ import { jsx as c, jsxs as d } from "react/jsx-runtime";
9
+ import { CommonUtils as u, defineLazyModule as h } from "@sheetxl/utils";
10
+ import { useImperativeElement as g, useMeasure as m, usePendingRender as p, usePersistentState as f, useResolvedThemeMode as x } from "@sheetxl/utils-react";
11
+ import { useMergeRefs as y } from "react-merge-refs";
12
+ var b = {
13
13
  Mode: "themeMode",
14
14
  DarkGrid: "enableDarkGrid",
15
15
  DarkImages: "enableDarkImages"
16
- }, y = {
17
- [x.Mode]: null,
18
- [x.DarkGrid]: !1,
19
- [x.DarkImages]: !1
20
- }, b = (e) => {
21
- const [t] = m(x.Mode, y[x.Mode]), [r] = m(x.DarkGrid, y[x.DarkGrid]), { themeMode: n } = p({ mode: e ?? t ?? void 0 });
22
- return e || ("dark" === n && r ? "dark" : "light");
23
- }, v = () => {
24
- const [e] = m(x.Mode, y[x.Mode]), { themeMode: t } = p({ mode: e ?? void 0 });
25
- return t;
26
- }, k = d("chart:paint", () => import("./CGEbcsNJ40cYQEWX.mjs")), w = (e, t) => {
16
+ }, v = {
17
+ [b.Mode]: null,
18
+ [b.DarkGrid]: !1,
19
+ [b.DarkImages]: !1
20
+ }, k = e(null);
21
+ k.displayName = "GridColorSchemeContext";
22
+ var w = (e) => {
23
+ const t = o(k), [r] = f(b.Mode, v[b.Mode]), [n] = f(b.DarkGrid, v[b.DarkGrid]), { themeMode: l } = x({ mode: e ?? r ?? void 0 });
24
+ return e ? "auto" === e ? l : e : t || ("dark" === l && n ? "dark" : "light");
25
+ }, E = (e) => {
26
+ const [t] = f(b.Mode, v[b.Mode]), { themeMode: r } = x({ mode: e ?? t ?? void 0 });
27
+ return r;
28
+ }, M = h("chart:paint", () => import("./CeSZX96RPPjn29Hw.mjs")), C = (e, t) => {
27
29
  const r = e.getElementType();
28
30
  if ("point" === r) {
29
31
  const r = e.getParent();
@@ -38,28 +40,28 @@ var x = {
38
40
  return n ? t === n || "dataLabel" === t?.getElementType() && t.getParent()?.getParent() === r ? e : n : e;
39
41
  }
40
42
  return e;
41
- }, E = {
43
+ }, P = {
42
44
  boxes: [],
43
45
  handles: []
44
- }, M = t(e((e, t) => {
45
- const { children: d, style: m, chart: p, onChartChange: x, zoom: y = 1, width: b, height: M, selection: P = null, colorScheme: C, onElementPress: D, onPointerDown: L, ...A } = e, [G, S] = s(() => c.isPromiseLike(p) ? null : p), [T, z] = s(null), F = l(x);
46
- F.current = x;
47
- const I = l(null);
48
- n(() => {
46
+ }, D = r(t((e, t) => {
47
+ const { children: r, style: o, chart: h, onChartChange: f, zoom: x = 1, width: b, height: v, selection: k = null, colorScheme: w, onElementPress: D, onPointerDown: L, ...G } = e, [S, A] = a(() => u.isPromiseLike(h) ? null : h), [T, z] = a(null), F = i(f);
48
+ F.current = f;
49
+ const I = i(null);
50
+ l(() => {
49
51
  let e = !0;
50
52
  const t = (e, t) => {
51
- z(t), S(e), I.current !== e && (I.current = e, F.current?.(e));
53
+ z(t), A(e), I.current !== e && (I.current = e, F.current?.(e));
52
54
  };
53
- if (c.isPromiseLike(p)) return p.then((r) => {
55
+ if (u.isPromiseLike(h)) return h.then((r) => {
54
56
  e && t(r, null);
55
57
  }, (r) => {
56
58
  e && t(null, r);
57
59
  }), () => {
58
60
  e = !1;
59
61
  };
60
- t(p, null);
61
- }, [p]);
62
- const [N, $] = h(), B = "number" == typeof b ? b : $.width, R = "number" == typeof M ? M : $.height, j = B ? Math.round(B / y) : 0, V = R ? Math.round(R / y) : 0, X = l({
62
+ t(h, null);
63
+ }, [h]);
64
+ const [N, $] = m(), B = "number" == typeof b ? b : $.width, R = "number" == typeof v ? v : $.height, j = B ? Math.round(B / x) : 0, V = R ? Math.round(R / x) : 0, X = i({
63
65
  width: j,
64
66
  height: V
65
67
  });
@@ -67,14 +69,14 @@ var x = {
67
69
  width: j,
68
70
  height: V
69
71
  };
70
- const Y = v(), q = "dark" === (C ?? Y), H = r(async (e) => {
72
+ const Y = E(), q = "dark" === (w ?? Y), H = n(async (e) => {
71
73
  const t = X.current;
72
- if (!G || !t.width || !t.height) return null;
73
- const r = G.getLayout(t);
74
- return r ? (await k.load()).renderChartToSVG(r, { darkMode: e?.darkMode ?? !1 }) : null;
75
- }, [G]), J = l(null), K = l(null), O = l(y);
76
- O.current = y;
77
- const Q = r((e, t) => {
74
+ if (!S || !t.width || !t.height) return null;
75
+ const r = S.getLayout(t);
76
+ return r ? (await M.load()).renderChartToSVG(r, { darkMode: e?.darkMode ?? !1 }) : null;
77
+ }, [S]), J = i(null), K = i(null), O = i(x);
78
+ O.current = x;
79
+ const Q = n((e, t) => {
78
80
  const r = J.current;
79
81
  if (!r) return null;
80
82
  const n = r.getBoundingClientRect(), o = O.current || 1;
@@ -82,27 +84,27 @@ var x = {
82
84
  x: (e - n.left) / o,
83
85
  y: (t - n.top) / o
84
86
  };
85
- }, []), U = r((e, t) => {
87
+ }, []), U = n((e, t) => {
86
88
  const r = K.current, n = Q(e, t);
87
- return G && r && n ? G.getElementAt(n, r) : null;
88
- }, [G, Q]), W = u(t, () => ({
89
+ return S && r && n ? S.getElementAt(n, r) : null;
90
+ }, [S, Q]), W = g(t, () => ({
89
91
  isChartElement: () => !0,
90
- getChart: () => G,
92
+ getChart: () => S,
91
93
  toSVG: H,
92
94
  getElementAt: U
93
95
  }), [
94
- G,
96
+ S,
95
97
  H,
96
98
  U
97
- ]), Z = f([
99
+ ]), Z = y([
98
100
  W,
99
101
  N,
100
102
  J
101
- ]), _ = l(null), ee = l(null), [te, re] = s(() => k.peek() ?? null), [ne, oe] = s(null), [le, se] = s(0), [ie, ae] = s(E);
102
- n(() => G?.addListeners({ onLayoutChange: () => se((e) => e + 1) }), [G]), g(!(ne || T || te && G)), n(() => {
103
+ ]), _ = i(null), ee = i(null), [te, re] = a(() => M.peek() ?? null), [ne, oe] = a(null), [le, se] = a(0), [ie, ae] = a(P);
104
+ l(() => S?.addListeners({ onLayoutChange: () => se((e) => e + 1) }), [S]), p(!(ne || T || te && S)), l(() => {
103
105
  if (te) return;
104
106
  let e = !0;
105
- return k.load().then((t) => {
107
+ return M.load().then((t) => {
106
108
  e && re(t);
107
109
  }, (t) => {
108
110
  e && oe(t);
@@ -110,9 +112,9 @@ var x = {
110
112
  e = !1;
111
113
  };
112
114
  }, [te]);
113
- const ce = r(() => {
115
+ const ce = n(() => {
114
116
  const e = K.current;
115
- ae(G && e && P && !P.isEmpty() ? ((e, t, r) => {
117
+ ae(S && e && k && !k.isEmpty() ? ((e, t, r) => {
116
118
  const n = [], o = [];
117
119
  for (const l of r.getItems()) {
118
120
  if (l.getChart() !== e) continue;
@@ -146,12 +148,12 @@ var x = {
146
148
  boxes: n,
147
149
  handles: o
148
150
  };
149
- })(G, e, P) : E);
150
- }, [G, P]);
151
- n(() => P?.addListeners({ onChange: ce }), [P, ce]), o(() => {
151
+ })(S, e, k) : P);
152
+ }, [S, k]);
153
+ l(() => k?.addListeners({ onChange: ce }), [k, ce]), s(() => {
152
154
  const e = _.current;
153
- if (!(te && e && G && j && V)) return;
154
- const t = G.getLayout({
155
+ if (!(te && e && S && j && V)) return;
156
+ const t = S.getLayout({
155
157
  width: j,
156
158
  height: V
157
159
  });
@@ -165,49 +167,49 @@ var x = {
165
167
  ee.current ? ee.current.update(t, n) : ee.current = te.mountChart(e, t, n), ce();
166
168
  }, [
167
169
  te,
168
- G,
170
+ S,
169
171
  j,
170
172
  V,
171
173
  le,
172
174
  q,
173
175
  ce
174
- ]), n(() => () => {
176
+ ]), l(() => () => {
175
177
  ee.current?.dispose(), ee.current = null, K.current = null;
176
- }, [G]);
177
- const de = r((e) => {
178
+ }, [S]);
179
+ const de = n((e) => {
178
180
  if (L?.(e), 0 !== e.button && 2 !== e.button) return;
179
181
  const t = K.current, r = Q(e.clientX, e.clientY);
180
- if (!G || !t || !r) return;
181
- const n = G.getElementAt(r, t);
182
+ if (!S || !t || !r) return;
183
+ const n = S.getElementAt(r, t);
182
184
  if (D?.({
183
185
  element: n,
184
186
  point: r,
185
187
  event: e
186
- }), !P) return;
187
- if (!n || "chartArea" === n.getElementType()) return void P.clear();
188
- const o = w(n, P.getActive());
189
- P.isSelected(o) && 1 === P.getItems().length || P.select([o]);
188
+ }), !k) return;
189
+ if (!n || "chartArea" === n.getElementType()) return void k.clear();
190
+ const o = C(n, k.getActive());
191
+ k.isSelected(o) && 1 === k.getItems().length || k.select([o]);
190
192
  }, [
191
- G,
192
- P,
193
+ S,
194
+ k,
193
195
  D,
194
196
  L,
195
197
  Q
196
198
  ]);
197
- if (G?.isDeleted()) return;
199
+ if (S?.isDeleted()) return;
198
200
  const ue = ne ?? T;
199
- return a("div", {
200
- ...A,
201
+ return d("div", {
202
+ ...G,
201
203
  onPointerDown: de,
202
204
  style: {
203
205
  ...void 0 !== b ? { width: b } : {},
204
- ...void 0 !== M ? { height: M } : {},
205
- ...m,
206
+ ...void 0 !== v ? { height: v } : {},
207
+ ...o,
206
208
  overflow: "hidden"
207
209
  },
208
210
  ref: Z,
209
211
  children: [
210
- ue ? i("div", {
212
+ ue ? c("div", {
211
213
  className: "sxl-chart-element-error",
212
214
  style: {
213
215
  padding: "8px",
@@ -216,17 +218,17 @@ var x = {
216
218
  },
217
219
  children: ue.message
218
220
  }) : null,
219
- i("div", {
221
+ c("div", {
220
222
  className: "sxl-chart-element",
221
223
  ref: _,
222
224
  style: {
223
225
  width: j || "100%",
224
226
  height: V || "100%",
225
- zoom: y,
227
+ zoom: x,
226
228
  position: "relative"
227
229
  }
228
230
  }),
229
- ie.boxes.length > 0 ? a("div", {
231
+ ie.boxes.length > 0 ? d("div", {
230
232
  className: "sxl-chart-element-selection",
231
233
  style: {
232
234
  position: "absolute",
@@ -234,10 +236,10 @@ var x = {
234
236
  top: 0,
235
237
  width: j,
236
238
  height: V,
237
- zoom: y,
239
+ zoom: x,
238
240
  pointerEvents: "none"
239
241
  },
240
- children: [ie.boxes.map((e, t) => i("div", { style: {
242
+ children: [ie.boxes.map((e, t) => c("div", { style: {
241
243
  position: "absolute",
242
244
  left: e.x - 1,
243
245
  top: e.y - 1,
@@ -245,7 +247,7 @@ var x = {
245
247
  height: Math.max(0, e.height),
246
248
  border: "1px solid var(--sxl-color-primary, #1a73e8)",
247
249
  boxSizing: "content-box"
248
- } }, `box-${t}`)), ie.handles.map((e, t) => i("div", { style: {
250
+ } }, `box-${t}`)), ie.handles.map((e, t) => c("div", { style: {
249
251
  position: "absolute",
250
252
  left: e.x - 3,
251
253
  top: e.y - 3,
@@ -259,5 +261,5 @@ var x = {
259
261
  ]
260
262
  });
261
263
  }));
262
- M.displayName = "ChartElement";
263
- export { y as a, b as i, w as n, x as o, v as r, M as t };
264
+ D.displayName = "ChartElement";
265
+ export { k as a, w as i, C as n, v as o, E as r, b as s, D as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./DtrPF3bSD4CZC5VG.mjs";
7
+ import { t as e } from "./Bv0fGxNecKUr_qYS.mjs";
8
8
  import { createContext as t, memo as n, useCallback as o, useEffect as r, useReducer as l, useRef as a, useState as i } from "react";
9
9
  import { Fragment as s, jsx as c, jsxs as d } from "react/jsx-runtime";
10
10
  import { LazyModules as u, defineLazyModule as p } from "@sheetxl/utils";
@@ -162,7 +162,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
162
162
  for (const e of [...I]) e();
163
163
  }, E = !1, N = () => {
164
164
  E || (E = !0, function(e) {
165
- e("picture", () => import("./B4qJFO-8Vml8JbaC.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./Bzuh8HcJcFD2dYTY.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./JrDkDzP0l4TgHusH.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./BBBfGP0lLhBFoR9F.mjs"), {
165
+ e("picture", () => import("./Cx16BErZDzlQEXH_.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./CeuVkQpY8O4nZG-k.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./BD04OJgRWKiE2W1H.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./BhgjRcXOyNKBdqUW.mjs"), {
166
166
  select: (e) => e.ShapeKind,
167
167
  selectionShadow: !1
168
168
  }), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => c(e, {
@@ -174,7 +174,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
174
174
  ...o,
175
175
  note: t.movable.getContent()
176
176
  });
177
- } }), e("error", () => import("./tRhXTPxocmY7ZY3z.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
177
+ } }), e("error", () => import("./YC2O0ix33xKY0ShQ.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
178
178
  const t = (t, n) => {
179
179
  e(t, () => import("./control.mjs"), { select: n });
180
180
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -16,12 +16,12 @@ var l = Object.defineProperty, d = (e, r) => {
16
16
  });
17
17
  return r || l(o, Symbol.toStringTag, { value: "Module" }), o;
18
18
  }, m = r(e((e, r) => {
19
- const { children: i, disabled: l, style: d, movable: m, zoom: g = 1, description: p, isDragging: c, onHide: b, onShow: u, onDragZone: v, adornmentHost: x, flip: y, gesture: f, ...h } = e;
20
- o(() => {}, [p]);
21
- const w = n(r, () => ({ isEmptyFrame: () => !0 }), []), [k, { height: C, width: S }] = a(), j = s([w, k]);
19
+ const { children: i, disabled: l, style: d, movable: m, zoom: p = 1, description: g, isDragging: c, onHide: b, onShow: u, onDragZone: v, onTap: x, adornmentHost: y, flip: f, gesture: h, ...w } = e;
20
+ o(() => {}, [g]);
21
+ const k = n(r, () => ({ isEmptyFrame: () => !0 }), []), [C, { height: S, width: T }] = a(), j = s([k, C]);
22
22
  return t("div", {
23
23
  className: "sxl-unknown-editor",
24
- ...h,
24
+ ...w,
25
25
  ref: j,
26
26
  style: {
27
27
  width: "100%",
@@ -31,7 +31,7 @@ var l = Object.defineProperty, d = (e, r) => {
31
31
  backgroundImage: "var(--sxl-image-background)",
32
32
  alignItems: "center",
33
33
  justifyContent: "center",
34
- zoom: g,
34
+ zoom: p,
35
35
  display: "flex",
36
36
  position: "relative",
37
37
  filter: l ? "blur(1px)" : void 0,
@@ -40,16 +40,16 @@ var l = Object.defineProperty, d = (e, r) => {
40
40
  wordBreak: "break-word",
41
41
  ...d
42
42
  },
43
- children: p
43
+ children: g
44
44
  });
45
- })), g = d({
45
+ })), p = d({
46
46
  ErrorContentFrame: () => c,
47
47
  UnsupportedContentFrame: () => b
48
- }), p = Object.freeze({ border: "var(--sxl-color-error, red) solid 2px" }), c = r((e) => {
48
+ }), g = Object.freeze({ border: "var(--sxl-color-error, red) solid 2px" }), c = r((e) => {
49
49
  const r = i(), o = e.movable.getContent(), n = o.getError(), a = n?.message ?? String(n);
50
50
  return t(m, {
51
51
  ...e,
52
- style: p,
52
+ style: g,
53
53
  description: r("movable.contentError", {
54
54
  type: o.getOriginalType(),
55
55
  message: a
@@ -59,8 +59,8 @@ var l = Object.defineProperty, d = (e, r) => {
59
59
  const r = i();
60
60
  return t(m, {
61
61
  ...e,
62
- style: p,
62
+ style: g,
63
63
  description: r("movable.unsupportedType", { type: e.movable.getContent().getType() })
64
64
  });
65
65
  });
66
- export { d as i, b as n, m as r, g as t };
66
+ export { d as i, b as n, m as r, p as t };
@@ -1,41 +1,41 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { i as e, n as t, t as r } from "./Df-nWyFJwXaVd79x.mjs";
8
- import { forwardRef as o, memo as n, useCallback as l, useLayoutEffect as i, useRef as s } from "react";
9
- import { jsx as a } from "react/jsx-runtime";
7
+ import { i as e, n as t, t as r } from "./D8mwVRSclIFn5SVM.mjs";
8
+ import { forwardRef as o, memo as n, useCallback as l, useLayoutEffect as a, useRef as i } from "react";
9
+ import { jsx as s } from "react/jsx-runtime";
10
10
  import { useImperativeElement as m } from "@sheetxl/utils-react";
11
11
  import { useMergeRefs as c } from "react-merge-refs";
12
- var g = n(o((t, o) => {
13
- const { children: n, disabled: g, style: h, chart: p, zoom: d = 1, isDragging: u, movable: f, onHide: x, onShow: E, onDragZone: v, adornmentHost: b, flip: y, gesture: S, ...w } = t, A = m(o, () => ({ isChartEditor: () => !0 }), []), C = s(null), D = c([A, C]), j = e(), z = f?.getRange()?.getWorksheet()?.getView()?.getChartElementSelection() ?? null;
14
- i(() => {
12
+ var p = n(o((t, o) => {
13
+ const { children: n, disabled: p, style: g, chart: h, zoom: d = 1, isDragging: u, movable: f, onHide: x, onShow: E, onDragZone: v, onTap: b, adornmentHost: y, flip: S, gesture: w, ...A } = t, C = m(o, () => ({ isChartEditor: () => !0 }), []), D = i(null), T = c([C, D]), j = e(), z = f?.getRange()?.getWorksheet()?.getView()?.getChartElementSelection() ?? null;
14
+ a(() => {
15
15
  v?.((e) => {
16
16
  const t = "touches" in e ? e.touches[0] : e;
17
17
  if (!t) return !0;
18
- const r = C.current?.getElementAt(t.clientX, t.clientY) ?? null;
18
+ const r = D.current?.getElementAt(t.clientX, t.clientY) ?? null;
19
19
  return !r || "chartArea" === r.getElementType();
20
20
  });
21
21
  }, [v]);
22
22
  const H = l((e) => {
23
- !g && e.element && "chartArea" !== e.element.getElementType() && (e.event.stopPropagation(), f && !f.isSelected() && f.select());
24
- }, [f, g]);
25
- if (!p.isDeleted()) return a(r, {
26
- ...w,
27
- chart: p,
23
+ !p && e.element && "chartArea" !== e.element.getElementType() && (e.event.stopPropagation(), f && !f.isSelected() && f.select());
24
+ }, [f, p]);
25
+ if (!h.isDeleted()) return s(r, {
26
+ ...A,
27
+ chart: h,
28
28
  zoom: d,
29
29
  colorScheme: j,
30
- selection: g ? null : z,
30
+ selection: p ? null : z,
31
31
  onElementPress: H,
32
32
  style: {
33
- ...h,
34
- filter: g ? "blur(1px)" : void 0,
33
+ ...g,
34
+ filter: p ? "blur(1px)" : void 0,
35
35
  boxShadow: u ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0
36
36
  },
37
- ref: D
37
+ ref: T
38
38
  });
39
39
  }));
40
- g.displayName = "ChartEditor";
41
- export { g as ChartEditor, r as ChartElement, t as nextSelected };
40
+ p.displayName = "ChartEditor";
41
+ export { p as ChartEditor, r as ChartElement, t as nextSelected };
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./DtrPF3bSD4CZC5VG.mjs";
7
+ import { t as e } from "./Bv0fGxNecKUr_qYS.mjs";
8
8
  import { IFont as t } from "@sheetxl/sdk";
9
9
  import { memo as n, useEffect as r, useReducer as o, useRef as i } from "react";
10
10
  import { jsx as l, jsxs as d } from "react/jsx-runtime";
@@ -29,22 +29,22 @@ var a = (e) => {
29
29
  whiteSpace: "nowrap"
30
30
  }, g = (t, i) => {
31
31
  const d = n((n) => {
32
- const { children: i, disabled: d, style: a, movable: c, zoom: g = 1, isDragging: h, onHide: p, onShow: u, onDragZone: m, adornmentHost: x, flip: y, ...f } = n, b = c.getContent(), [, v] = o((e) => e + 1, 0);
33
- e(b, { onAnyChange() {
34
- v();
32
+ const { children: i, disabled: d, style: a, movable: c, zoom: g = 1, isDragging: h, onHide: p, onShow: u, onDragZone: m, onTap: x, adornmentHost: y, flip: f, ...b } = n, v = c.getContent(), [, w] = o((e) => e + 1, 0);
33
+ e(v, { onAnyChange() {
34
+ w();
35
35
  } });
36
- const w = b, C = b, I = w.getLinkedCell?.() ?? null;
36
+ const C = v, I = v, S = C.getLinkedCell?.() ?? null;
37
37
  r(() => {
38
- if (I) return w.getLinkedRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
39
- }, [b, I]);
40
- const S = C.getListFillRange?.() ?? null;
38
+ if (S) return C.getLinkedRange?.()?.addListener(() => w(), { ignoreAddressChanges: !0 });
39
+ }, [v, S]);
40
+ const R = I.getListFillRange?.() ?? null;
41
41
  if (r(() => {
42
- if (S) return C.getListSourceRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
43
- }, [b, S]), b.isDeleted()) return null;
44
- const R = c.getBounds();
42
+ if (R) return I.getListSourceRange?.()?.addListener(() => w(), { ignoreAddressChanges: !0 });
43
+ }, [v, R]), v.isDeleted()) return null;
44
+ const k = c.getBounds();
45
45
  return l("div", {
46
46
  className: "sxl-form-control-renderer",
47
- ...f,
47
+ ...b,
48
48
  style: {
49
49
  width: "100%",
50
50
  height: "100%",
@@ -58,9 +58,9 @@ var a = (e) => {
58
58
  inert: !0,
59
59
  style: s,
60
60
  children: l(t, {
61
- control: b,
62
- width: R?.width ?? 0,
63
- height: R?.height ?? 0
61
+ control: v,
62
+ width: k?.width ?? 0,
63
+ height: k?.height ?? 0
64
64
  })
65
65
  })
66
66
  });
@@ -1,45 +1,45 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./DtrPF3bSD4CZC5VG.mjs";
8
- import { h as t, i as o, p as n } from "./cgqViNUwnlIX8-UW.mjs";
7
+ import { t as e } from "./Bv0fGxNecKUr_qYS.mjs";
8
+ import { h as t, i as o, p as n } from "./DL2RKBB2PXzdJyx_.mjs";
9
9
  import { forwardRef as i, memo as r, useContext as s, useEffect as l, useReducer as a } from "react";
10
10
  import { jsx as d, jsxs as g } from "react/jsx-runtime";
11
11
  import { useSurfaceState as h } from "@sheetxl/grid-react";
12
12
  var p = r(i((i, r) => {
13
- const { children: p, disabled: m, style: c, container: u, movable: v, zoom: f = 1, isDragging: x, onHide: y, onShow: b, onDragZone: w, adornmentHost: C, flip: E, gesture: $, ...I } = i, [, j] = a((e) => e + 1, 0);
13
+ const { children: p, disabled: m, style: c, container: u, movable: v, zoom: f = 1, isDragging: x, onHide: y, onShow: b, onDragZone: w, onTap: C, adornmentHost: E, flip: $, gesture: I, ...j } = i, [, B] = a((e) => e + 1, 0);
14
14
  e(v ?? null, {
15
- onBoundsChange: j,
16
- onSelectionChange: j,
17
- onAnyChange: j
15
+ onBoundsChange: B,
16
+ onSelectionChange: B,
17
+ onAnyChange: B
18
18
  });
19
- const B = v?.getMovables() ?? null;
20
- e(B, { onCollectionChange: j });
21
- const [N] = h("movable-drag", null), z = s(n), D = B?.getItems({ ignoreHidden: !0 }) ?? [];
19
+ const N = v?.getMovables() ?? null;
20
+ e(N, { onCollectionChange: B });
21
+ const [z] = h("movable-drag", null), D = s(n), H = N?.getItems({ ignoreHidden: !0 }) ?? [];
22
22
  l(() => {
23
- const e = D.map((e) => e.addListeners({
24
- onBoundsChange: j,
25
- onAnyChange: j,
26
- onSelectionChange: j
23
+ const e = H.map((e) => e.addListeners({
24
+ onBoundsChange: B,
25
+ onAnyChange: B,
26
+ onSelectionChange: B
27
27
  }));
28
28
  return () => {
29
29
  for (const t of e) t();
30
30
  };
31
- }, [D.map((e) => e.getId()).join("|")]);
32
- const H = v?.getBounds();
33
- if (u.isDeleted() || !v || !H) return null;
34
- const S = "none" === c?.pointerEvents, k = !S && !m && v.isSelected(), A = N?.[v.getId()] ?? null, F = A?.bounds ?? H, O = v.getFlip(), R = E ?? A?.flip ?? O, G = (H.width > 0 ? F.width / H.width : 1) * (R.horizontal !== O.horizontal ? -1 : 1), L = (H.height > 0 ? F.height / H.height : 1) * (R.vertical !== O.vertical ? -1 : 1), M = v.getRotation() || 0, T = [
35
- `translate(${F.width * f / 2}px, ${F.height * f / 2}px)`,
31
+ }, [H.map((e) => e.getId()).join("|")]);
32
+ const S = v?.getBounds();
33
+ if (u.isDeleted() || !v || !S) return null;
34
+ const k = "none" === c?.pointerEvents, A = !k && !m && v.isSelected(), F = z?.[v.getId()] ?? null, O = F?.bounds ?? S, R = v.getFlip(), T = $ ?? F?.flip ?? R, G = (S.width > 0 ? O.width / S.width : 1) * (T.horizontal !== R.horizontal ? -1 : 1), L = (S.height > 0 ? O.height / S.height : 1) * (T.vertical !== R.vertical ? -1 : 1), M = v.getRotation() || 0, W = [
35
+ `translate(${O.width * f / 2}px, ${O.height * f / 2}px)`,
36
36
  1 !== G || 1 !== L ? `scale(${G}, ${L})` : "",
37
37
  M ? `rotate(${-M}deg)` : "",
38
- `translate(${-(H.x + H.width / 2) * f}px, ${-(H.y + H.height / 2) * f}px)`
38
+ `translate(${-(S.x + S.width / 2) * f}px, ${-(S.y + S.height / 2) * f}px)`
39
39
  ].filter(Boolean).join(" ");
40
40
  return g("div", {
41
41
  className: "sxl-group-editor",
42
- ...I,
42
+ ...j,
43
43
  ref: r,
44
44
  style: {
45
45
  width: "100%",
@@ -56,11 +56,11 @@ var p = r(i((i, r) => {
56
56
  left: 0,
57
57
  top: 0,
58
58
  transformOrigin: "0 0",
59
- transform: T,
59
+ transform: W,
60
60
  pointerEvents: "none"
61
61
  },
62
- children: D.map((e) => {
63
- const n = o(e.getContent().getType()), i = N?.[e.getId()] ?? null, r = i?.bounds ?? e.getBounds();
62
+ children: H.map((e) => {
63
+ const n = o(e.getContent().getType()), i = z?.[e.getId()] ?? null, r = i?.bounds ?? e.getBounds();
64
64
  if (!r || !n) return null;
65
65
  const s = i?.rotation ?? (e.getRotation() || 0);
66
66
  return d("div", {
@@ -83,19 +83,19 @@ var p = r(i((i, r) => {
83
83
  flip: i?.flip ?? e.getFlip(),
84
84
  disabled: m,
85
85
  isDragging: x || !!i,
86
- adornmentHost: z.get(e) ?? null,
86
+ adornmentHost: D.get(e) ?? null,
87
87
  style: {
88
88
  position: "relative",
89
89
  left: 0,
90
90
  top: 0,
91
91
  width: "100%",
92
92
  height: "100%",
93
- pointerEvents: S ? "none" : "auto"
93
+ pointerEvents: k ? "none" : "auto"
94
94
  }
95
95
  })
96
96
  }, e.getId());
97
97
  })
98
- }), k ? d("svg", {
98
+ }), A ? d("svg", {
99
99
  className: "sxl-group-edge",
100
100
  width: "100%",
101
101
  height: "100%",