@sheetxl/react 0.8.0-beta.20 → 0.8.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{BzZ2vOT8CNsqcL8P.mjs → B9rbGikcuRq1OnhM.mjs} +2 -2
- package/browser/esm/{CM9e6dbkYbw56iFf.mjs → B9wkino8VMasq6E3.mjs} +2 -2
- package/browser/esm/{B06WJCAWTIB7QYlK.mjs → BPS1PDZKyF6ivJwa.mjs} +1 -1
- package/browser/esm/{BkBxhk45Iln3h-sG.mjs → Biz8qA4-1wRN8de2.mjs} +1 -1
- package/browser/esm/{C5RaHvks1HTBfWcr.mjs → Bjzo7g25tw9kTCYC.mjs} +2 -2
- package/browser/esm/{qeb-_mAjUAWD7bo4.mjs → BqIbT28MM3SBdvh_.mjs} +2 -2
- package/browser/esm/C7rc3CMd_XOITW1V.mjs +264 -0
- package/browser/esm/{CUPlUCBX7owYqDq5.mjs → CJVcfqrty5b-eowN.mjs} +2 -2
- package/browser/esm/{BGcs5WWx5PpaiJo4.mjs → CgOhJ3utK7aSQm26.mjs} +1 -1
- package/browser/esm/{CU67T36gmVTq9ZwH.mjs → CrTfqdSwWScJN566.mjs} +1 -1
- package/browser/esm/{Cwye4MAU1-EF7Xlv.mjs → D01C312OntVURMN9.mjs} +14 -14
- package/browser/esm/{CPjk4grd05Rp-e3V.mjs → D0g7sllamMog1m-Z.mjs} +3 -3
- package/browser/esm/{DcEGutcM_5gl0fZm.mjs → D7P7zWW2gdWclI2p.mjs} +3 -3
- package/browser/esm/{BFjx8_H3wUxrWDq9.mjs → D8NUgUzdI7YFxyyA.mjs} +4 -4
- package/browser/esm/{Ca_Ki0Si5ozlm1sl.mjs → DH8xeknZXWn7AV5q.mjs} +10 -10
- package/browser/esm/{DeOhqQroIiAic6-j.mjs → DgmkBz2cYtVZ8tXv.mjs} +1 -1
- package/browser/esm/{SESUB_fypyWmhCWm.mjs → DhGJU1camaOf7KOq.mjs} +12 -12
- package/browser/esm/{BcC6S9k7zkHfCNRX.mjs → DxsGY5rYjITV3SLK.mjs} +1 -1
- package/browser/esm/{Dkw3FFdQKXZQrkFv.mjs → DyFeCww9e_4G9c-1.mjs} +10 -10
- package/browser/esm/{COn0z_IT5hyEPNfV.mjs → HQkKZC6SPUdQwgxi.mjs} +1 -1
- package/browser/esm/{CtbJ8PCap2NGxlu0.mjs → QKnTzTdIYAMcBU8r.mjs} +1 -1
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +3 -3
- package/browser/esm/group.mjs +7 -7
- package/browser/esm/{CckrsFaUWle82oNL.mjs → hTeTTb8oYTssk6EY.mjs} +1 -1
- package/browser/esm/index.mjs +6538 -6531
- package/browser/esm/{QJPDAP6UIHTbY1fM.mjs → mJyEnJIX0iGfGtvE.mjs} +3 -3
- package/browser/esm/{B8_6V0LUnuA1dLW6.mjs → mUKvsPCmRWzQke-M.mjs} +1 -1
- package/browser/esm/note.mjs +5 -5
- package/browser/esm/{C1Qp40Kq88D9nzcX.mjs → np1ChcItFltS6AC5.mjs} +1 -1
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +10 -10
- package/node/esm/{gfwmGAXGhq9IIu1U.mjs → -6T2zqPkDm0WgUKI.mjs} +2 -2
- package/node/esm/{Jy5x43_CAF31L14-.mjs → BPMjPMRyVTEZq_6j.mjs} +1 -1
- package/node/esm/{C9Yq98-vMDznppO2.mjs → BcASbEBHzMKiXn5i.mjs} +3 -3
- package/node/esm/{c1FOnFN_eCD6KR4l.mjs → BpcTu_chuDjr_XFv.mjs} +1 -1
- package/node/esm/{Nn0yfoegNHIym4QM.mjs → C3XXdc_UXH2g2W5E.mjs} +1 -1
- package/node/esm/{DrFBSp6XMEAjkdoG.mjs → C91YeRrspETjFcRc.mjs} +2 -2
- package/node/esm/{DytW9LaLlJGM-6m6.mjs → CE5fMGMmykts2yJP.mjs} +1 -1
- package/node/esm/{CqnJ_hGK1txHO0j9.mjs → COlzVELrEvgm2STX.mjs} +18 -18
- package/node/esm/{G9tXP39ldfioRVhL.mjs → CZc2QH8i-TgW9nGI.mjs} +1 -1
- package/node/esm/{7_AWLfp_6MpYBpiV.mjs → CcLUKcJROXrbSXjb.mjs} +1 -1
- package/node/esm/{DmPmSA-2Aha-_6qu.mjs → CfpNgRvWmu36cTfV.mjs} +9 -9
- package/node/esm/{CER7_OJffhze14wR.mjs → CzQMRmArhJ6blZJp.mjs} +1 -1
- package/node/esm/{BOAB33GIG2M2CWMr.mjs → DHTbAHbCiEWhilV_.mjs} +1 -1
- package/node/esm/{D63HF8XToGXrf7ds.mjs → DX7ysYSfnigj0ak8.mjs} +1 -1
- package/node/esm/{C7wmHIY8RLeNSX3T.mjs → DxKxx-yEkSydHyWQ.mjs} +1 -1
- package/node/esm/{77PQMLXXAN7fjBHS.mjs → FUQMKIiQQ5m3xzeO.mjs} +1 -1
- package/node/esm/{CBHY_xaB7ke3yH-f.mjs → GG78Gq3CY8SDS-48.mjs} +2 -2
- package/node/esm/{UBas29HOMjk4p5jo.mjs → aLt3NYdUcYQu4Ur4.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/{Ef8HHL90yLZgk3Gf.mjs → cju5Gx-t_74o116W.mjs} +2 -2
- package/node/esm/control.mjs +3 -3
- package/node/esm/group.mjs +9 -9
- package/node/esm/{CWOKAmLpdinc-0TK.mjs → i4aPmKocZebCBeSd.mjs} +83 -81
- package/node/esm/index.mjs +5627 -5620
- package/node/esm/{BbnUYxeK64Fq92Lo.mjs → l0GtU6LYlBywzc9T.mjs} +2 -2
- package/node/esm/note.mjs +5 -5
- package/node/esm/picture.mjs +31 -31
- package/node/esm/shape.mjs +25 -25
- package/node/esm/slicer.mjs +17 -17
- package/package.json +7 -7
- package/types/src/movable/MovableLayer.d.ts +1 -1
- package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
- package/types/src/theme/useGridColorScheme.d.ts +5 -1
- package/browser/esm/Ch5X-uGft55TOqxa.mjs +0 -262
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 "./
|
|
7
|
+
import { t as e } from "./CrTfqdSwWScJN566.mjs";
|
|
8
8
|
import { forwardRef as t, memo as n, useMemo as r, useRef as i } from "react";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
10
|
var o = "data-run", s = (e) => typeof e == "string" ? e ? [{ text: e }] : [] : e.runs ?? [], c = (e) => {
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -305,7 +305,7 @@ var _ = (e) => {
|
|
|
305
305
|
if (!S) break;
|
|
306
306
|
let n = 8 / (a > 0 ? a : 1);
|
|
307
307
|
s !== "none" && n > h && E.push(f("path", {
|
|
308
|
-
className: "shape-hit",
|
|
308
|
+
className: "sxl-shape-hit",
|
|
309
309
|
d: i,
|
|
310
310
|
fill: "none",
|
|
311
311
|
stroke: "transparent",
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 { n as e } from "./
|
|
7
|
+
import { n as e } from "./DxsGY5rYjITV3SLK.mjs";
|
|
8
8
|
var t = function(e, n) {
|
|
9
9
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
10
10
|
e.__proto__ = t;
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 { n as e } from "./
|
|
7
|
+
import { n as e } from "./CgOhJ3utK7aSQm26.mjs";
|
|
8
8
|
import { ChartEditor as t } from "./chart.mjs";
|
|
9
9
|
import { jsx as n } from "react/jsx-runtime";
|
|
10
10
|
import { messageKey as r, t as i } from "@sheetxl/utils";
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./CrTfqdSwWScJN566.mjs";
|
|
8
|
+
import { createContext as t, forwardRef as n, memo as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { CommonUtils as f, defineLazyModule as p } from "@sheetxl/utils";
|
|
11
|
+
import { useImperativeElement as ee, useMeasure as m, usePendingRender as te, usePersistentState as h, useResolvedThemeMode as g } from "@sheetxl/utils-react";
|
|
12
|
+
var _ = {
|
|
13
|
+
Mode: "themeMode",
|
|
14
|
+
DarkGrid: "enableDarkGrid",
|
|
15
|
+
DarkImages: "enableDarkImages"
|
|
16
|
+
}, v = {
|
|
17
|
+
[_.Mode]: null,
|
|
18
|
+
[_.DarkGrid]: !1,
|
|
19
|
+
[_.DarkImages]: !1
|
|
20
|
+
}, y = t(null);
|
|
21
|
+
y.displayName = "GridColorSchemeContext";
|
|
22
|
+
var b = (e) => {
|
|
23
|
+
let t = a(y), [n] = h(_.Mode, v[_.Mode]), [r] = h(_.DarkGrid, v[_.DarkGrid]), { themeMode: i } = g({ mode: e ?? n ?? void 0 });
|
|
24
|
+
return e || t || (i === "dark" && r ? "dark" : "light");
|
|
25
|
+
}, x = () => {
|
|
26
|
+
let [e] = h(_.Mode, v[_.Mode]), { themeMode: t } = g({ mode: e ?? void 0 });
|
|
27
|
+
return t;
|
|
28
|
+
}, S = p("chart:paint", () => import("./D0g7sllamMog1m-Z.mjs")), C = (e, t) => {
|
|
29
|
+
let n = e.getElementType();
|
|
30
|
+
if (n === "point") {
|
|
31
|
+
let n = e.getParent();
|
|
32
|
+
return t === n || t?.getElementType() === "point" && t.getParent() === n ? e : n;
|
|
33
|
+
}
|
|
34
|
+
if (n === "legendEntry") {
|
|
35
|
+
let n = e.getParent();
|
|
36
|
+
return t === n || t?.getElementType() === "legendEntry" ? e : n;
|
|
37
|
+
}
|
|
38
|
+
if (n === "dataLabel") {
|
|
39
|
+
let n = e.getParent()?.getParent(), r = n?.getDataLabels();
|
|
40
|
+
return r ? t === r || t?.getElementType() === "dataLabel" && t.getParent()?.getParent() === n ? e : r : e;
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}, w = {
|
|
44
|
+
boxes: [],
|
|
45
|
+
handles: []
|
|
46
|
+
}, T = r(n((t, n) => {
|
|
47
|
+
let { children: r, style: a, chart: p, onChartChange: h, zoom: g = 1, width: _, height: v, selection: y = null, colorScheme: b, onElementPress: T, onPointerDown: E, ...ne } = t, [D, O] = l(() => f.isPromiseLike(p) ? null : p), [k, re] = l(null), A = c(h);
|
|
48
|
+
A.current = h;
|
|
49
|
+
let j = c(null);
|
|
50
|
+
o(() => {
|
|
51
|
+
let e = !0, t = (e, t) => {
|
|
52
|
+
re(t), O(e), j.current !== e && (j.current = e, A.current?.(e));
|
|
53
|
+
};
|
|
54
|
+
if (f.isPromiseLike(p)) return p.then((n) => {
|
|
55
|
+
e && t(n, null);
|
|
56
|
+
}, (n) => {
|
|
57
|
+
e && t(null, n);
|
|
58
|
+
}), () => {
|
|
59
|
+
e = !1;
|
|
60
|
+
};
|
|
61
|
+
t(p, null);
|
|
62
|
+
}, [p]);
|
|
63
|
+
let [ie, M] = m(), N = typeof _ == "number" ? _ : M.width, P = typeof v == "number" ? v : M.height, F = N ? Math.round(N / g) : 0, I = P ? Math.round(P / g) : 0, L = c({
|
|
64
|
+
width: F,
|
|
65
|
+
height: I
|
|
66
|
+
});
|
|
67
|
+
L.current = {
|
|
68
|
+
width: F,
|
|
69
|
+
height: I
|
|
70
|
+
};
|
|
71
|
+
let ae = x(), R = (b ?? ae) === "dark", z = i(async (e) => {
|
|
72
|
+
let t = L.current;
|
|
73
|
+
if (!D || !t.width || !t.height) return null;
|
|
74
|
+
let n = D.getLayout(t);
|
|
75
|
+
return n ? (await S.load()).renderChartToSVG(n, { darkMode: e?.darkMode ?? !1 }) : null;
|
|
76
|
+
}, [D]), B = c(null), V = c(null), H = c(g);
|
|
77
|
+
H.current = g;
|
|
78
|
+
let U = i((e, t) => {
|
|
79
|
+
let n = B.current;
|
|
80
|
+
if (!n) return null;
|
|
81
|
+
let r = n.getBoundingClientRect(), i = H.current || 1;
|
|
82
|
+
return {
|
|
83
|
+
x: (e - r.left) / i,
|
|
84
|
+
y: (t - r.top) / i
|
|
85
|
+
};
|
|
86
|
+
}, []), W = i((e, t) => {
|
|
87
|
+
let n = V.current, r = U(e, t);
|
|
88
|
+
return D && n && r ? D.getElementAt(r, n) : null;
|
|
89
|
+
}, [D, U]), oe = ee(n, () => ({
|
|
90
|
+
isChartElement: () => !0,
|
|
91
|
+
getChart: () => D,
|
|
92
|
+
toSVG: z,
|
|
93
|
+
getElementAt: W
|
|
94
|
+
}), [
|
|
95
|
+
D,
|
|
96
|
+
z,
|
|
97
|
+
W
|
|
98
|
+
]), G = e([
|
|
99
|
+
oe,
|
|
100
|
+
ie,
|
|
101
|
+
B
|
|
102
|
+
]), K = c(null), q = c(null), [J, se] = l(() => S.peek() ?? null), [Y, X] = l(null), [ce, le] = l(0), [Z, ue] = l(w);
|
|
103
|
+
o(() => D?.addListeners({ onLayoutChange: () => le((e) => e + 1) }), [D]), te(!(Y || k || J && D)), o(() => {
|
|
104
|
+
if (J) return;
|
|
105
|
+
let e = !0;
|
|
106
|
+
return S.load().then((t) => {
|
|
107
|
+
e && se(t);
|
|
108
|
+
}, (t) => {
|
|
109
|
+
e && X(t);
|
|
110
|
+
}), () => {
|
|
111
|
+
e = !1;
|
|
112
|
+
};
|
|
113
|
+
}, [J]);
|
|
114
|
+
let Q = i(() => {
|
|
115
|
+
let e = V.current;
|
|
116
|
+
ue(D && e && y && !y.isEmpty() ? ((e, t, n) => {
|
|
117
|
+
let r = [], i = [];
|
|
118
|
+
for (let a of n.getItems()) {
|
|
119
|
+
if (a.getChart() !== e) continue;
|
|
120
|
+
let o = a.getElementType();
|
|
121
|
+
if (o === "series" || o === "dataLabels") {
|
|
122
|
+
let n = o === "series" ? a : a.getParent(), i = o === "series" ? n.getPoints() : n.getPoints().map((e) => e.getDataLabel());
|
|
123
|
+
for (let n of i) {
|
|
124
|
+
let i = e.getElementBounds(n, t);
|
|
125
|
+
i && r.push(i);
|
|
126
|
+
}
|
|
127
|
+
if (r.length > 0) continue;
|
|
128
|
+
}
|
|
129
|
+
let s = e.getElementBounds(a, t);
|
|
130
|
+
if (s && (r.push(s), n.getItems().length === 1)) {
|
|
131
|
+
let e = [
|
|
132
|
+
s.x,
|
|
133
|
+
s.x + s.width / 2,
|
|
134
|
+
s.x + s.width
|
|
135
|
+
], t = [
|
|
136
|
+
s.y,
|
|
137
|
+
s.y + s.height / 2,
|
|
138
|
+
s.y + s.height
|
|
139
|
+
];
|
|
140
|
+
for (let n of e) for (let r of t) n === e[1] && r === t[1] || i.push({
|
|
141
|
+
x: n,
|
|
142
|
+
y: r
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
boxes: r,
|
|
148
|
+
handles: i
|
|
149
|
+
};
|
|
150
|
+
})(D, e, y) : w);
|
|
151
|
+
}, [D, y]);
|
|
152
|
+
o(() => y?.addListeners({ onChange: Q }), [y, Q]), s(() => {
|
|
153
|
+
let e = K.current;
|
|
154
|
+
if (!(J && e && D && F && I)) return;
|
|
155
|
+
let t = D.getLayout({
|
|
156
|
+
width: F,
|
|
157
|
+
height: I
|
|
158
|
+
});
|
|
159
|
+
if (V.current = t, !t) return q.current?.dispose(), q.current = null, e.style.backgroundColor = "", void Q();
|
|
160
|
+
let n = t.chartArea.fill === void 0;
|
|
161
|
+
e.style.backgroundColor = n ? `var(--sxl-color-base-100, ${R ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = n ? `${t.chartArea.cornerRadius}px` : "";
|
|
162
|
+
let r = {
|
|
163
|
+
darkMode: R,
|
|
164
|
+
background: "transparent"
|
|
165
|
+
};
|
|
166
|
+
q.current ? q.current.update(t, r) : q.current = J.mountChart(e, t, r), Q();
|
|
167
|
+
}, [
|
|
168
|
+
J,
|
|
169
|
+
D,
|
|
170
|
+
F,
|
|
171
|
+
I,
|
|
172
|
+
ce,
|
|
173
|
+
R,
|
|
174
|
+
Q
|
|
175
|
+
]), o(() => () => {
|
|
176
|
+
q.current?.dispose(), q.current = null, V.current = null;
|
|
177
|
+
}, [D]);
|
|
178
|
+
let de = i((e) => {
|
|
179
|
+
if (E?.(e), e.button !== 0 && e.button !== 2) return;
|
|
180
|
+
let t = V.current, n = U(e.clientX, e.clientY);
|
|
181
|
+
if (!D || !t || !n) return;
|
|
182
|
+
let r = D.getElementAt(n, t);
|
|
183
|
+
if (T?.({
|
|
184
|
+
element: r,
|
|
185
|
+
point: n,
|
|
186
|
+
event: e
|
|
187
|
+
}), !y) return;
|
|
188
|
+
if (!r || r.getElementType() === "chartArea") return void y.clear();
|
|
189
|
+
let i = C(r, y.getActive());
|
|
190
|
+
y.isSelected(i) && y.getItems().length === 1 || y.select([i]);
|
|
191
|
+
}, [
|
|
192
|
+
D,
|
|
193
|
+
y,
|
|
194
|
+
T,
|
|
195
|
+
E,
|
|
196
|
+
U
|
|
197
|
+
]);
|
|
198
|
+
if (D?.isDeleted()) return;
|
|
199
|
+
let $ = Y ?? k;
|
|
200
|
+
return d("div", {
|
|
201
|
+
...ne,
|
|
202
|
+
onPointerDown: de,
|
|
203
|
+
style: {
|
|
204
|
+
..._ === void 0 ? {} : { width: _ },
|
|
205
|
+
...v === void 0 ? {} : { height: v },
|
|
206
|
+
...a,
|
|
207
|
+
overflow: "hidden"
|
|
208
|
+
},
|
|
209
|
+
ref: G,
|
|
210
|
+
children: [
|
|
211
|
+
$ ? u("div", {
|
|
212
|
+
className: "sxl-chart-element-error",
|
|
213
|
+
style: {
|
|
214
|
+
padding: "8px",
|
|
215
|
+
fontSize: "12px",
|
|
216
|
+
color: "var(--sxl-color-error, #b00020)"
|
|
217
|
+
},
|
|
218
|
+
children: $.message
|
|
219
|
+
}) : null,
|
|
220
|
+
u("div", {
|
|
221
|
+
className: "sxl-chart-element",
|
|
222
|
+
ref: K,
|
|
223
|
+
style: {
|
|
224
|
+
width: F || "100%",
|
|
225
|
+
height: I || "100%",
|
|
226
|
+
zoom: g,
|
|
227
|
+
position: "relative"
|
|
228
|
+
}
|
|
229
|
+
}),
|
|
230
|
+
Z.boxes.length > 0 ? d("div", {
|
|
231
|
+
className: "sxl-chart-element-selection",
|
|
232
|
+
style: {
|
|
233
|
+
position: "absolute",
|
|
234
|
+
left: 0,
|
|
235
|
+
top: 0,
|
|
236
|
+
width: F,
|
|
237
|
+
height: I,
|
|
238
|
+
zoom: g,
|
|
239
|
+
pointerEvents: "none"
|
|
240
|
+
},
|
|
241
|
+
children: [Z.boxes.map((e, t) => u("div", { style: {
|
|
242
|
+
position: "absolute",
|
|
243
|
+
left: e.x - 1,
|
|
244
|
+
top: e.y - 1,
|
|
245
|
+
width: Math.max(0, e.width),
|
|
246
|
+
height: Math.max(0, e.height),
|
|
247
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
248
|
+
boxSizing: "content-box"
|
|
249
|
+
} }, `box-${t}`)), Z.handles.map((e, t) => u("div", { style: {
|
|
250
|
+
position: "absolute",
|
|
251
|
+
left: e.x - 3,
|
|
252
|
+
top: e.y - 3,
|
|
253
|
+
width: 6,
|
|
254
|
+
height: 6,
|
|
255
|
+
background: "var(--sxl-color-base-100, #fff)",
|
|
256
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
257
|
+
boxSizing: "border-box"
|
|
258
|
+
} }, `handle-${t}`))]
|
|
259
|
+
}) : null
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
}));
|
|
263
|
+
T.displayName = "ChartElement";
|
|
264
|
+
export { y as a, b as i, C as n, v as o, x as r, _ as s, T as t };
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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, r as n, t as r } from "./
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Bjzo7g25tw9kTCYC.mjs";
|
|
8
8
|
var i = !1;
|
|
9
9
|
function a(e) {
|
|
10
10
|
let 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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 "./
|
|
8
|
-
import { n as t } from "./
|
|
9
|
-
import { t as n } from "./
|
|
10
|
-
import { t as r } from "./
|
|
11
|
-
import { i, n as a, r as o, t as ee } from "./
|
|
7
|
+
import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
|
|
8
|
+
import { n as t } from "./mUKvsPCmRWzQke-M.mjs";
|
|
9
|
+
import { t as n } from "./hTeTTb8oYTssk6EY.mjs";
|
|
10
|
+
import { t as r } from "./mJyEnJIX0iGfGtvE.mjs";
|
|
11
|
+
import { i, n as a, r as o, t as ee } from "./B9wkino8VMasq6E3.mjs";
|
|
12
12
|
import { forwardRef as s, memo as c, useCallback as l, useEffect as u, useMemo as d, useReducer as f, useRef as p, useState as m } from "react";
|
|
13
13
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
14
14
|
import { messageKey as te } from "@sheetxl/utils";
|
|
@@ -48,7 +48,7 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
|
|
|
48
48
|
let _ = r > 0 ? r : 1, v = 4.5 / _;
|
|
49
49
|
return h("svg", {
|
|
50
50
|
ref: a,
|
|
51
|
-
className: ee ? "shape-handles movable-gesture" : "shape-handles",
|
|
51
|
+
className: ee ? "sxl-shape-handles sxl-movable-gesture" : "sxl-shape-handles",
|
|
52
52
|
viewBox: `0 0 ${t} ${n}`,
|
|
53
53
|
width: "100%",
|
|
54
54
|
height: "100%",
|
|
@@ -63,7 +63,7 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
|
|
|
63
63
|
touchAction: "none"
|
|
64
64
|
},
|
|
65
65
|
children: e.map((e) => g("g", {
|
|
66
|
-
className: "shape-handle",
|
|
66
|
+
className: "sxl-shape-handle",
|
|
67
67
|
style: { "--shape-scale": _ },
|
|
68
68
|
children: [h("circle", {
|
|
69
69
|
cx: e.x,
|
|
@@ -74,7 +74,7 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
|
|
|
74
74
|
strokeWidth: 1 / _,
|
|
75
75
|
style: { pointerEvents: "none" }
|
|
76
76
|
}), h("circle", {
|
|
77
|
-
className: "shape-handle-hit",
|
|
77
|
+
className: "sxl-shape-handle-hit",
|
|
78
78
|
cx: e.x,
|
|
79
79
|
cy: e.y,
|
|
80
80
|
r: v,
|
|
@@ -230,7 +230,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
|
|
|
230
230
|
zoom: T,
|
|
231
231
|
onDrag: xe
|
|
232
232
|
}), ue && (Z = ne(h("div", {
|
|
233
|
-
className: "shape-adornment",
|
|
233
|
+
className: "sxl-shape-adornment",
|
|
234
234
|
style: {
|
|
235
235
|
position: "absolute",
|
|
236
236
|
left: 0,
|
|
@@ -244,7 +244,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
|
|
|
244
244
|
}), ue)));
|
|
245
245
|
let Ae = J === Y ? void 0 : "scaleX(-1)", Q = G?.getTextRect(), $ = k.text, je = !!$ && $.paragraphs.some((e) => e.runs.some((e) => e.text !== ""));
|
|
246
246
|
return g("div", {
|
|
247
|
-
className: "shape-editor",
|
|
247
|
+
className: "sxl-shape-editor",
|
|
248
248
|
...pe,
|
|
249
249
|
ref: Ce,
|
|
250
250
|
style: {
|
|
@@ -259,7 +259,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
|
|
|
259
259
|
},
|
|
260
260
|
children: [
|
|
261
261
|
y(A, j) ? g("svg", {
|
|
262
|
-
className: "shape-geometry",
|
|
262
|
+
className: "sxl-shape-geometry",
|
|
263
263
|
viewBox: `0 0 ${A > 0 ? A : 1 / T} ${j > 0 ? j : 1 / T}`,
|
|
264
264
|
width: A > 0 ? "100%" : "1px",
|
|
265
265
|
height: j > 0 ? "100%" : "1px",
|
|
@@ -271,7 +271,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
|
|
|
271
271
|
top: 0,
|
|
272
272
|
display: "block",
|
|
273
273
|
pointerEvents: "none",
|
|
274
|
-
filter: Oe ? "drop-shadow(1px 1px 2px rgba(0,0,0
|
|
274
|
+
filter: Oe ? "drop-shadow(1px 1px 2px var(--sxl-color-shadow, rgba(0, 0, 0, 0.15)))" : void 0
|
|
275
275
|
},
|
|
276
276
|
children: [G ? h(ee, {
|
|
277
277
|
geometry: G,
|
|
@@ -300,7 +300,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
|
|
|
300
300
|
}) : null]
|
|
301
301
|
}) : null,
|
|
302
302
|
je && Q ? h("div", {
|
|
303
|
-
className: "shape-text-frame",
|
|
303
|
+
className: "sxl-shape-text-frame",
|
|
304
304
|
style: {
|
|
305
305
|
position: "absolute",
|
|
306
306
|
left: Q.l,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 "./
|
|
8
|
-
import { $ as t, $n as n, $r as r, $t as i, A as a, Ai as o, An as s, Ar as c, At as l, B as u, Bn as d, Br as f, Bt as p, C as m, Ci as h, Cr as g, Ct as _, D as v, Di as y, Dn as b, Dr as x, Dt as S, E as C, Ei as w, En as T, Er as E, Et as D, F as O, Fi as k, Fn as A, Fr as j, Ft as M, G as N, Gn as P, Gr as F, Gt as I, H as ee, Hn as L, Hr as R, Ht as te, I as ne, Ii as re, In as ie, Ir as ae, It as oe, J as se, Jn as ce, Jr as le, Jt as ue, K as de, Kn as fe, Kr as pe, Kt as me, L as he, Li as ge, Ln as _e, Lr as ve, Lt as ye, M as be, Mi as xe, Mn as Se, Mr as Ce, Mt as we, N as Te, Ni as z, Nn as Ee, Nr as De, Nt as Oe, O as ke, Oi as B, On as Ae, Or as je, Ot as Me, P as Ne, Pi as Pe, Pn as Fe, Pr as Ie, Pt as Le, Q as Re, Qn as ze, Qr as Be, Qt as Ve, R as V, Ri as H, Rn as He, Rr as Ue, Rt as We, S as Ge, Si as Ke, Sn as qe, Sr as Je, St as Ye, T as Xe, Ti as Ze, Tn as Qe, Tr as $e, Tt as et, U as tt, Un as nt, Ur as rt, Ut as it, V as at, Vn as ot, Vr as st, Vt as ct, W as lt, Wn as ut, Wr as dt, Wt as ft, X as pt, Xn as mt, Xr as ht, Xt as gt, Y as _t, Yn as vt, Yr as yt, Yt as bt, Z as xt, Zn as St, Zr as Ct, Zt as wt, _ as Tt, _i as Et, _n as Dt, _r as Ot, _t as kt, a as At, ai as jt, an as Mt, ar as Nt, at as Pt, b as Ft, bi as U, bn as It, br as Lt, bt as Rt, c as zt, ci as W, cn as Bt, cr as Vt, ct as Ht, d as Ut, di as G, dn as Wt, dr as Gt, dt as Kt, ei as qt, en as Jt, er as Yt, et as Xt, f as Zt, fi as Qt, fn as $t, fr as en, ft as tn, g as nn, gi as rn, gn as an, gr as on, gt as sn, h as cn, hi as K, hn as ln, hr as un, ht as dn, i as fn, ii as pn, in as mn, ir as hn, it as gn, j as _n, ji as vn, jn as yn, jr as bn, jt as xn, k as Sn, ki as Cn, kn as wn, kr as Tn, kt as En, l as Dn, li as On, ln as kn, lr as An, lt as jn, m as Mn, mi as Nn, mn as Pn, mr as Fn, mt as In, n as Ln, ni as Rn, nn as zn, nr as Bn, nt as Vn, o as Hn, oi as Un, on as Wn, or as Gn, ot as Kn, p as qn, pi as q, pn as Jn, pr as Yn, pt as Xn, q as Zn, qn as Qn, qr as J, qt as $n, r as er, ri as tr, rn as nr, rr, rt as ir, s as ar, si as or, sn as sr, sr as cr, st as lr, t as ur, ti as dr, tn as fr, tr as pr, tt as mr, u as hr, ui as Y, un as gr, ur as _r, ut as vr, v as yr, vi as br, vn as xr, vr as Sr, vt as Cr, w as wr, wi as Tr, wr as X, wt as Er, x as Dr, xi as Or, xn as kr, xr as Ar, xt as jr, y as Mr, yi as Nr, yn as Pr, yr as Fr, yt as Ir, z as Lr, zn as Rr, zr, zt as Br } from "./
|
|
7
|
+
import { t as e } from "./DxsGY5rYjITV3SLK.mjs";
|
|
8
|
+
import { $ as t, $n as n, $r as r, $t as i, A as a, Ai as o, An as s, Ar as c, At as l, B as u, Bn as d, Br as f, Bt as p, C as m, Ci as h, Cr as g, Ct as _, D as v, Di as y, Dn as b, Dr as x, Dt as S, E as C, Ei as w, En as T, Er as E, Et as D, F as O, Fi as k, Fn as A, Fr as j, Ft as M, G as N, Gn as P, Gr as F, Gt as I, H as ee, Hn as L, Hr as R, Ht as te, I as ne, Ii as re, In as ie, Ir as ae, It as oe, J as se, Jn as ce, Jr as le, Jt as ue, K as de, Kn as fe, Kr as pe, Kt as me, L as he, Li as ge, Ln as _e, Lr as ve, Lt as ye, M as be, Mi as xe, Mn as Se, Mr as Ce, Mt as we, N as Te, Ni as z, Nn as Ee, Nr as De, Nt as Oe, O as ke, Oi as B, On as Ae, Or as je, Ot as Me, P as Ne, Pi as Pe, Pn as Fe, Pr as Ie, Pt as Le, Q as Re, Qn as ze, Qr as Be, Qt as Ve, R as V, Ri as H, Rn as He, Rr as Ue, Rt as We, S as Ge, Si as Ke, Sn as qe, Sr as Je, St as Ye, T as Xe, Ti as Ze, Tn as Qe, Tr as $e, Tt as et, U as tt, Un as nt, Ur as rt, Ut as it, V as at, Vn as ot, Vr as st, Vt as ct, W as lt, Wn as ut, Wr as dt, Wt as ft, X as pt, Xn as mt, Xr as ht, Xt as gt, Y as _t, Yn as vt, Yr as yt, Yt as bt, Z as xt, Zn as St, Zr as Ct, Zt as wt, _ as Tt, _i as Et, _n as Dt, _r as Ot, _t as kt, a as At, ai as jt, an as Mt, ar as Nt, at as Pt, b as Ft, bi as U, bn as It, br as Lt, bt as Rt, c as zt, ci as W, cn as Bt, cr as Vt, ct as Ht, d as Ut, di as G, dn as Wt, dr as Gt, dt as Kt, ei as qt, en as Jt, er as Yt, et as Xt, f as Zt, fi as Qt, fn as $t, fr as en, ft as tn, g as nn, gi as rn, gn as an, gr as on, gt as sn, h as cn, hi as K, hn as ln, hr as un, ht as dn, i as fn, ii as pn, in as mn, ir as hn, it as gn, j as _n, ji as vn, jn as yn, jr as bn, jt as xn, k as Sn, ki as Cn, kn as wn, kr as Tn, kt as En, l as Dn, li as On, ln as kn, lr as An, lt as jn, m as Mn, mi as Nn, mn as Pn, mr as Fn, mt as In, n as Ln, ni as Rn, nn as zn, nr as Bn, nt as Vn, o as Hn, oi as Un, on as Wn, or as Gn, ot as Kn, p as qn, pi as q, pn as Jn, pr as Yn, pt as Xn, q as Zn, qn as Qn, qr as J, qt as $n, r as er, ri as tr, rn as nr, rr, rt as ir, s as ar, si as or, sn as sr, sr as cr, st as lr, t as ur, ti as dr, tn as fr, tr as pr, tt as mr, u as hr, ui as Y, un as gr, ur as _r, ut as vr, v as yr, vi as br, vn as xr, vr as Sr, vt as Cr, w as wr, wi as Tr, wr as X, wt as Er, x as Dr, xi as Or, xn as kr, xr as Ar, xt as jr, y as Mr, yi as Nr, yn as Pr, yr as Fr, yt as Ir, z as Lr, zn as Rr, zr, zt as Br } from "./Bjzo7g25tw9kTCYC.mjs";
|
|
9
9
|
import { Color as Vr, IFill as Hr, IStroke as Ur, PaintUtils as Wr } from "@sheetxl/sdk";
|
|
10
10
|
var Gr = {
|
|
11
11
|
pct5: "0040000000040000",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 { n as e } from "./
|
|
8
|
-
import { i as t, n, r, t as i } from "./
|
|
7
|
+
import { n as e } from "./np1ChcItFltS6AC5.mjs";
|
|
8
|
+
import { i as t, n, r, t as i } from "./DyFeCww9e_4G9c-1.mjs";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
10
|
import { DOMUtils as o, messageKey as s, t as c } from "@sheetxl/utils";
|
|
11
11
|
import { NotifierType as l } from "@sheetxl/utils-react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./DxsGY5rYjITV3SLK.mjs";
|
|
8
|
+
import { t } from "./CrTfqdSwWScJN566.mjs";
|
|
9
9
|
import { forwardRef as n, memo as r, useEffect as i } from "react";
|
|
10
10
|
import { jsx as a } from "react/jsx-runtime";
|
|
11
11
|
import { useImperativeElement as o, useMeasure as s, useTranslator as c } from "@sheetxl/utils-react";
|
|
@@ -14,7 +14,7 @@ var l = r(n((e, n) => {
|
|
|
14
14
|
i(() => {}, [f]);
|
|
15
15
|
let x = o(n, () => ({ isEmptyFrame: () => !0 }), []), [S, { height: C, width: w }] = s(), T = t([x, S]);
|
|
16
16
|
return a("div", {
|
|
17
|
-
className: "unknown-editor",
|
|
17
|
+
className: "sxl-unknown-editor",
|
|
18
18
|
...b,
|
|
19
19
|
ref: T,
|
|
20
20
|
style: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 "./
|
|
8
|
-
import { d as t } from "./
|
|
9
|
-
import { t as n } from "./
|
|
10
|
-
import { n as r } from "./
|
|
11
|
-
import { t as i } from "./
|
|
7
|
+
import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
|
|
8
|
+
import { d as t } from "./DhGJU1camaOf7KOq.mjs";
|
|
9
|
+
import { t as n } from "./HQkKZC6SPUdQwgxi.mjs";
|
|
10
|
+
import { n as r } from "./CgOhJ3utK7aSQm26.mjs";
|
|
11
|
+
import { t as i } from "./D01C312OntVURMN9.mjs";
|
|
12
12
|
import { memo as a, useCallback as o, useReducer as s, useRef as c } from "react";
|
|
13
13
|
import { jsx as l } from "react/jsx-runtime";
|
|
14
14
|
import { messageKey as u } from "@sheetxl/utils";
|
|
@@ -150,14 +150,14 @@ var p = (e, t) => {
|
|
|
150
150
|
}, [g, v]);
|
|
151
151
|
return l("div", {
|
|
152
152
|
className: [
|
|
153
|
-
"movable-control",
|
|
154
|
-
"connector",
|
|
155
|
-
a ? "dragging" : null
|
|
153
|
+
"sxl-movable-control",
|
|
154
|
+
"sxl-connector",
|
|
155
|
+
a ? "sxl-dragging" : null
|
|
156
156
|
].filter(Boolean).join(" "),
|
|
157
157
|
children: ["start", "end"].map((e) => {
|
|
158
158
|
let t = p(e, i), n = e === "start" ? !!x?.isStartConnected() : !!x?.isEndConnected();
|
|
159
159
|
return l("div", {
|
|
160
|
-
className: n ? "movable-control-handle connector-end glued" : "movable-control-handle connector-end",
|
|
160
|
+
className: n ? "sxl-movable-control-handle sxl-connector-end sxl-glued" : "sxl-movable-control-handle sxl-connector-end",
|
|
161
161
|
"data-end": e,
|
|
162
162
|
style: {
|
|
163
163
|
left: 50 * (t[0] + 1) + "%",
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
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 "./
|
|
7
|
+
import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
|
|
8
8
|
import { createContext as t, memo as n, useCallback as r, useEffect as i, useReducer as a, useRef as o, useState as s } from "react";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { LazyModules as d, defineLazyModule as f } from "@sheetxl/utils";
|
|
@@ -60,7 +60,7 @@ var g = Object.freeze({
|
|
|
60
60
|
i(t, e);
|
|
61
61
|
}, [t, i]), d = _(t, s, n);
|
|
62
62
|
return l("div", {
|
|
63
|
-
className: "movable-adornment",
|
|
63
|
+
className: "sxl-movable-adornment",
|
|
64
64
|
ref: u,
|
|
65
65
|
style: {
|
|
66
66
|
position: "absolute",
|
|
@@ -121,17 +121,17 @@ var w = {
|
|
|
121
121
|
}, [p]);
|
|
122
122
|
return u("div", {
|
|
123
123
|
className: [
|
|
124
|
-
"movable-control",
|
|
125
|
-
i ? "dragging" : null,
|
|
126
|
-
f ? "context" : null
|
|
124
|
+
"sxl-movable-control",
|
|
125
|
+
i ? "sxl-dragging" : null,
|
|
126
|
+
f ? "sxl-context" : null
|
|
127
127
|
].filter(Boolean).join(" "),
|
|
128
128
|
children: [
|
|
129
129
|
m,
|
|
130
|
-
l("div", { className: "movable-control-outline" }),
|
|
130
|
+
l("div", { className: "sxl-movable-control-outline" }),
|
|
131
131
|
t.map((e) => {
|
|
132
132
|
let t = w[e];
|
|
133
133
|
return t ? l("div", {
|
|
134
|
-
className: "movable-control-handle",
|
|
134
|
+
className: "sxl-movable-control-handle",
|
|
135
135
|
"data-direction": e,
|
|
136
136
|
style: {
|
|
137
137
|
left: 50 * (t[0] + 1) + "%",
|
|
@@ -145,7 +145,7 @@ var w = {
|
|
|
145
145
|
}, e) : null;
|
|
146
146
|
}),
|
|
147
147
|
p ? l("div", {
|
|
148
|
-
className: "movable-move-handle",
|
|
148
|
+
className: "sxl-movable-move-handle",
|
|
149
149
|
onPointerDown: b,
|
|
150
150
|
children: l("svg", {
|
|
151
151
|
viewBox: "0 0 24 24",
|
|
@@ -161,7 +161,7 @@ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE
|
|
|
161
161
|
for (let e of [...j]) e();
|
|
162
162
|
}, N = !1, P = () => {
|
|
163
163
|
N || (N = !0, function(e) {
|
|
164
|
-
e("picture", () => import("./
|
|
164
|
+
e("picture", () => import("./D7P7zWW2gdWclI2p.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./BqIbT28MM3SBdvh_.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./QKnTzTdIYAMcBU8r.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./DH8xeknZXWn7AV5q.mjs"), {
|
|
165
165
|
select: (e) => e.ShapeKind,
|
|
166
166
|
selectionShadow: !1
|
|
167
167
|
}), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => l(e, {
|
|
@@ -173,7 +173,7 @@ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE
|
|
|
173
173
|
...r,
|
|
174
174
|
note: t.movable.getContent()
|
|
175
175
|
});
|
|
176
|
-
} }), e("error", () => import("./
|
|
176
|
+
} }), e("error", () => import("./D8NUgUzdI7YFxyyA.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => l(e, { ...t }) });
|
|
177
177
|
let t = (t, n) => {
|
|
178
178
|
e(t, () => import("./control.mjs"), { select: n });
|
|
179
179
|
};
|
|
@@ -232,7 +232,7 @@ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE
|
|
|
232
232
|
})
|
|
233
233
|
}), c = {
|
|
234
234
|
Renderer: n?.hitArea === "content" ? s : (e) => l("div", {
|
|
235
|
-
className: "movable-content",
|
|
235
|
+
className: "sxl-movable-content",
|
|
236
236
|
style: e.style,
|
|
237
237
|
children: s(e)
|
|
238
238
|
}),
|
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|