@sheetxl/react 0.8.0-beta.11 → 0.8.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{94dxo1A-z8lgiiGw.mjs → B4mT3G7GHwgDYFGP.mjs} +2 -2
- package/browser/esm/{B26QVfjer2oY2ewK.mjs → BDlpRkuBok0Uu4Hn.mjs} +1 -1
- package/browser/esm/{CRi6DQ3UXmPEv-w_.mjs → BR-AiOwuQlYh5-tr.mjs} +147 -146
- package/browser/esm/{ClAtIfYbsUPA073B.mjs → BapujiblfiXDlu67.mjs} +1 -1
- package/browser/esm/{D2u6THGErqw64KQI.mjs → CSFORKZ8zrVL_Y0w.mjs} +1 -1
- package/browser/esm/{Bl2BFCQ00fotauKB.mjs → CUekkfE6uwwsdQpc.mjs} +1 -1
- package/browser/esm/{DgL7Dy-Lqcr1TvW6.mjs → C_LUq-BnguetvGZz.mjs} +4851 -4818
- package/browser/esm/{BQYS2Yf-EAV_tBLr.mjs → Ck1LbcsdSfKNi6xq.mjs} +1 -1
- package/browser/esm/{1-LEUre9ZLG0OYYB.mjs → Cslk_qRdBSuJIi1O.mjs} +6 -6
- package/browser/esm/CtGhA0kS2MCfEsHN.mjs +262 -0
- package/browser/esm/{BegvsXeRs7e-9t8k.mjs → D22NJmTiky4NL8tM.mjs} +1 -1
- package/browser/esm/{B93LSmhnvkxNXTq-.mjs → D2GydDzPuvIjdpok.mjs} +1 -1
- package/browser/esm/{CzRIbc-Lk__VMLKM.mjs → DGG1auUKsjFbAazu.mjs} +3 -3
- package/browser/esm/{Bos4Rkp8UTF7QXUB.mjs → DN3lqq95KY0K6f1x.mjs} +1 -1
- package/browser/esm/{Dnh1kpz3v1JKtRD_.mjs → D_usN3pWuCJU2GN-.mjs} +2 -2
- package/browser/esm/{cQ6xdPFkEcuDlNTN.mjs → DhYQRc8L2kALmFNz.mjs} +1 -1
- package/browser/esm/{DS66lAIM-9M-YoZQ.mjs → DxEczXCHTerDemDP.mjs} +112 -104
- package/browser/esm/{C1pc9F4Rt2C5FKUo.mjs → LBQDhVhz7S7i6a8i.mjs} +1 -1
- package/browser/esm/{CPnnESfZz2jjJd82.mjs → ZoS0cpNEBcv6p-Z1.mjs} +1 -1
- package/browser/esm/{DMdsMPT0fWBbTkNn.mjs → _6Sb6ElRcZftxMNh.mjs} +1 -1
- package/browser/esm/chart.mjs +28 -27
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +5750 -5089
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/picture.mjs +41 -41
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/node/esm/{BaRfst1euuhquupX.mjs → Apcuz4_QtBHt7G47.mjs} +1 -1
- package/node/esm/{b-XRVRI1fYQQMkTC.mjs → Bi2Jwc0zpweaNzKc.mjs} +525 -492
- package/node/esm/{D_pCpfdQowV_4Aje.mjs → C0KLMCRb3sbd5Q20.mjs} +5 -5
- package/node/esm/{sigD1UFqvPlWUw_9.mjs → CH1DVfFhjdd_3pw1.mjs} +2 -2
- package/node/esm/{Be9c1GwQkPo8Piuh.mjs → CNOLkUDURBElaaIf.mjs} +1 -1
- package/node/esm/{BiaDWnN3tT7neoRL.mjs → CalVk3o4-kX79s3v.mjs} +1 -1
- package/node/esm/{DgGEHydEjD7nfsDB.mjs → Cp1DuCae46eQKzWy.mjs} +1 -1
- package/node/esm/{BlxXufqBBg1PtsXd.mjs → CzN6c6KyxVmNvayz.mjs} +1 -1
- package/node/esm/{6zApGj9DozhFy-bx.mjs → DKqdv5JubgVaq-g9.mjs} +1 -1
- package/node/esm/{umljAT66yb3_rURh.mjs → DWkPWuf5ZrLRMixG.mjs} +118 -110
- package/node/esm/{JiQGhLkoL8CJpVvA.mjs → DXiNwr6ZnXBe7TlG.mjs} +1 -1
- package/node/esm/{DTMTIrYIK1eZswsM.mjs → DayGI0Bt57FDNbVF.mjs} +1 -1
- package/node/esm/{C_SNx7TlFEcwbYjx.mjs → DyetXBW7vFLJWB22.mjs} +1 -1
- package/node/esm/{Dj5FM7_-YWhCtCCt.mjs → MWges5ywL3aEdChp.mjs} +1 -1
- package/node/esm/{BMVK5plvmBOAIlxP.mjs → T5lfCrudsUnOTxEn.mjs} +1 -1
- package/node/esm/YB_qExw23Ci4nMYy.mjs +263 -0
- package/node/esm/{DxQZmb-j4NLUO9Af.mjs → bRD1KCpSpAYTEs50.mjs} +1 -1
- package/node/esm/chart.mjs +26 -25
- package/node/esm/control.mjs +2 -2
- package/node/esm/group.mjs +3 -3
- package/node/esm/{gpD-9LDW92phhoma.mjs → iL9jKJcnED6oi0B4.mjs} +1 -1
- package/node/esm/index.mjs +7658 -6996
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +41 -41
- package/node/esm/shape.mjs +50 -49
- package/node/esm/slicer.mjs +4 -4
- package/package.json +7 -7
- package/resources/locales/de/sheet.cmd.json +21 -0
- package/resources/locales/de/workbook.cmd.json +6 -0
- package/resources/locales/en/sheet.cmd.json +21 -0
- package/resources/locales/en/ui.msg.json +2 -0
- package/resources/locales/en/workbook.cmd.json +6 -0
- package/types/src/border/useBorders.d.ts +2 -2
- package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
- package/types/src/cell/CellContent.d.ts +68 -0
- package/types/src/cell/CellControlContext.d.ts +37 -0
- package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +5 -5
- package/types/src/cell/CellImageRenderer.d.ts +11 -0
- package/types/src/cell/CellRenderers.d.ts +190 -0
- package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +9 -6
- package/types/src/cell/ColumnButton.d.ts +3 -3
- package/types/src/cell/OutlineButton.d.ts +4 -4
- package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
- package/types/src/cell/index.d.ts +8 -2
- package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
- package/types/src/cell/useInsertableCellControls.d.ts +25 -0
- package/types/src/chart/ChartEditor.d.ts +2 -0
- package/types/src/chart/ChartElement.d.ts +14 -3
- package/types/src/chart/paint/_mode.d.ts +6 -0
- package/types/src/chart/paint/echarts.d.ts +5 -2
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +8 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +11 -0
- package/types/src/editableLabel/EditableLabel.d.ts +3 -1
- package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
- package/types/src/editor/useFormulaHints.d.ts +1 -1
- package/types/src/layer/CellErrorLayer.d.ts +3 -2
- package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
- package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
- package/types/src/layer/HyperlinkLayer.d.ts +8 -5
- package/types/src/layer/ProtectionLayer.d.ts +1 -2
- package/types/src/layer/SheetCellLayer.d.ts +11 -4
- package/types/src/layer/SheetMovableLayer.d.ts +2 -1
- package/types/src/layer/SheetOutlineLayer.d.ts +1 -1
- package/types/src/layer/TableLayer.d.ts +1 -1
- package/types/src/layer/TableToolbar.d.ts +1 -1
- package/types/src/layer/ValidationPromptLayer.d.ts +16 -4
- package/types/src/layer/index.d.ts +1 -0
- package/types/src/listener/useRangeListener.d.ts +13 -7
- package/types/src/movable/DefaultMovable.d.ts +1 -1
- package/types/src/movable/MovableControl.d.ts +3 -1
- package/types/src/movable/MovableFrame.d.ts +2 -1
- package/types/src/movable/MovableLayer.d.ts +6 -3
- package/types/src/sheet/ISheetHeaderElement.d.ts +2 -2
- package/types/src/sheet/IWorksheetElement.d.ts +21 -22
- package/types/src/sheet/SheetCommandProvider.d.ts +3 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +2 -2
- package/types/src/sheet/SheetPanels.d.ts +2 -2
- package/types/src/tabStrip/Sortable.d.ts +5 -5
- package/types/src/tabStrip/TabStrip.d.ts +6 -6
- package/types/src/tabStrip/TabStripItem.d.ts +15 -13
- package/types/src/taskPane/CellControlPane.d.ts +17 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/taskPane/useTaskPane.d.ts +6 -3
- package/types/src/workbook/DefaultRenderers.d.ts +4 -4
- package/types/src/workbook/IWorkbookElement.d.ts +52 -20
- package/types/src/workbook/WorkbookStrip.d.ts +5 -5
- package/browser/esm/ugfE7YeZALQURDKF.mjs +0 -241
- package/node/esm/DJPgbB1X22YmhbaR.mjs +0 -242
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { 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 "./LBQDhVhz7S7i6a8i.mjs";
|
|
8
|
+
import { d as t } from "./DxEczXCHTerDemDP.mjs";
|
|
9
|
+
import { t as n } from "./D22NJmTiky4NL8tM.mjs";
|
|
10
|
+
import { n as r } from "./CUekkfE6uwwsdQpc.mjs";
|
|
11
|
+
import { t as i } from "./BR-AiOwuQlYh5-tr.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";
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./DN3lqq95KY0K6f1x.mjs";
|
|
8
|
+
import { forwardRef as t, memo as n, useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { CommonUtils as u, defineLazyModule as ee } from "@sheetxl/utils";
|
|
11
|
+
import { useImperativeElement as te, useMeasure as ne, usePendingRender as re, usePersistentState as d, useResolvedThemeMode as f } from "@sheetxl/utils-react";
|
|
12
|
+
var p = {
|
|
13
|
+
Mode: "themeMode",
|
|
14
|
+
DarkGrid: "enableDarkGrid",
|
|
15
|
+
DarkImages: "enableDarkImages"
|
|
16
|
+
}, m = {
|
|
17
|
+
[p.Mode]: null,
|
|
18
|
+
[p.DarkGrid]: !1,
|
|
19
|
+
[p.DarkImages]: !1
|
|
20
|
+
}, h = (e) => {
|
|
21
|
+
let [t] = d(p.Mode, m[p.Mode]), [n] = d(p.DarkGrid, m[p.DarkGrid]), { themeMode: r } = f({ mode: e ?? t ?? void 0 });
|
|
22
|
+
return e || (r === "dark" && n ? "dark" : "light");
|
|
23
|
+
}, g = () => {
|
|
24
|
+
let [e] = d(p.Mode, m[p.Mode]), { themeMode: t } = f({ mode: e ?? void 0 });
|
|
25
|
+
return t;
|
|
26
|
+
}, _ = ee("chart:paint", () => import("./C_LUq-BnguetvGZz.mjs")), v = (e, t) => {
|
|
27
|
+
let n = e.getElementType();
|
|
28
|
+
if (n === "point") {
|
|
29
|
+
let n = e.getParent();
|
|
30
|
+
return t === n || t?.getElementType() === "point" && t.getParent() === n ? e : n;
|
|
31
|
+
}
|
|
32
|
+
if (n === "legendEntry") {
|
|
33
|
+
let n = e.getParent();
|
|
34
|
+
return t === n || t?.getElementType() === "legendEntry" ? e : n;
|
|
35
|
+
}
|
|
36
|
+
if (n === "dataLabel") {
|
|
37
|
+
let n = e.getParent()?.getParent(), r = n?.getDataLabels();
|
|
38
|
+
return r ? t === r || t?.getElementType() === "dataLabel" && t.getParent()?.getParent() === n ? e : r : e;
|
|
39
|
+
}
|
|
40
|
+
return e;
|
|
41
|
+
}, y = {
|
|
42
|
+
boxes: [],
|
|
43
|
+
handles: []
|
|
44
|
+
}, b = n(t((t, n) => {
|
|
45
|
+
let { children: ee, style: d, chart: f, onChartChange: p, zoom: m = 1, width: h, height: b, selection: x = null, colorScheme: ie, onElementPress: S, onPointerDown: C, ...w } = t, [T, ae] = s(() => u.isPromiseLike(f) ? null : f), [E, oe] = s(null), D = o(p);
|
|
46
|
+
D.current = p;
|
|
47
|
+
let O = o(null);
|
|
48
|
+
i(() => {
|
|
49
|
+
let e = !0, t = (e, t) => {
|
|
50
|
+
oe(t), ae(e), O.current !== e && (O.current = e, D.current?.(e));
|
|
51
|
+
};
|
|
52
|
+
if (u.isPromiseLike(f)) return f.then((n) => {
|
|
53
|
+
e && t(n, null);
|
|
54
|
+
}, (n) => {
|
|
55
|
+
e && t(null, n);
|
|
56
|
+
}), () => {
|
|
57
|
+
e = !1;
|
|
58
|
+
};
|
|
59
|
+
t(f, null);
|
|
60
|
+
}, [f]);
|
|
61
|
+
let [k, A] = ne(), j = typeof h == "number" ? h : A.width, M = typeof b == "number" ? b : A.height, N = j ? Math.round(j / m) : 0, P = M ? Math.round(M / m) : 0, F = o({
|
|
62
|
+
width: N,
|
|
63
|
+
height: P
|
|
64
|
+
});
|
|
65
|
+
F.current = {
|
|
66
|
+
width: N,
|
|
67
|
+
height: P
|
|
68
|
+
};
|
|
69
|
+
let I = g(), L = (ie ?? I) === "dark", R = r(async (e) => {
|
|
70
|
+
let t = F.current;
|
|
71
|
+
if (!T || !t.width || !t.height) return null;
|
|
72
|
+
let n = T.getLayout(t);
|
|
73
|
+
return n ? (await _.load()).renderChartToSVG(n, { darkMode: e?.darkMode ?? !1 }) : null;
|
|
74
|
+
}, [T]), z = o(null), B = o(null), V = o(m);
|
|
75
|
+
V.current = m;
|
|
76
|
+
let H = r((e, t) => {
|
|
77
|
+
let n = z.current;
|
|
78
|
+
if (!n) return null;
|
|
79
|
+
let r = n.getBoundingClientRect(), i = V.current || 1;
|
|
80
|
+
return {
|
|
81
|
+
x: (e - r.left) / i,
|
|
82
|
+
y: (t - r.top) / i
|
|
83
|
+
};
|
|
84
|
+
}, []), U = r((e, t) => {
|
|
85
|
+
let n = B.current, r = H(e, t);
|
|
86
|
+
return T && n && r ? T.getElementAt(r, n) : null;
|
|
87
|
+
}, [T, H]), W = te(n, () => ({
|
|
88
|
+
isChartElement: () => !0,
|
|
89
|
+
getChart: () => T,
|
|
90
|
+
toSVG: R,
|
|
91
|
+
getElementAt: U
|
|
92
|
+
}), [
|
|
93
|
+
T,
|
|
94
|
+
R,
|
|
95
|
+
U
|
|
96
|
+
]), G = e([
|
|
97
|
+
W,
|
|
98
|
+
k,
|
|
99
|
+
z
|
|
100
|
+
]), K = o(null), q = o(null), [J, Y] = s(() => _.peek() ?? null), [X, se] = s(null), [ce, le] = s(0), [Z, ue] = s(y);
|
|
101
|
+
i(() => T?.addListeners({ onLayoutChange: () => le((e) => e + 1) }), [T]), re(!(X || E || J && T)), i(() => {
|
|
102
|
+
if (J) return;
|
|
103
|
+
let e = !0;
|
|
104
|
+
return _.load().then((t) => {
|
|
105
|
+
e && Y(t);
|
|
106
|
+
}, (t) => {
|
|
107
|
+
e && se(t);
|
|
108
|
+
}), () => {
|
|
109
|
+
e = !1;
|
|
110
|
+
};
|
|
111
|
+
}, [J]);
|
|
112
|
+
let Q = r(() => {
|
|
113
|
+
let e = B.current;
|
|
114
|
+
ue(T && e && x && !x.isEmpty() ? ((e, t, n) => {
|
|
115
|
+
let r = [], i = [];
|
|
116
|
+
for (let a of n.getItems()) {
|
|
117
|
+
if (a.getChart() !== e) continue;
|
|
118
|
+
let o = a.getElementType();
|
|
119
|
+
if (o === "series" || o === "dataLabels") {
|
|
120
|
+
let n = o === "series" ? a : a.getParent(), i = o === "series" ? n.getPoints() : n.getPoints().map((e) => e.getDataLabel());
|
|
121
|
+
for (let n of i) {
|
|
122
|
+
let i = e.getElementBounds(n, t);
|
|
123
|
+
i && r.push(i);
|
|
124
|
+
}
|
|
125
|
+
if (r.length > 0) continue;
|
|
126
|
+
}
|
|
127
|
+
let s = e.getElementBounds(a, t);
|
|
128
|
+
if (s && (r.push(s), n.getItems().length === 1)) {
|
|
129
|
+
let e = [
|
|
130
|
+
s.x,
|
|
131
|
+
s.x + s.width / 2,
|
|
132
|
+
s.x + s.width
|
|
133
|
+
], t = [
|
|
134
|
+
s.y,
|
|
135
|
+
s.y + s.height / 2,
|
|
136
|
+
s.y + s.height
|
|
137
|
+
];
|
|
138
|
+
for (let n of e) for (let r of t) n === e[1] && r === t[1] || i.push({
|
|
139
|
+
x: n,
|
|
140
|
+
y: r
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
boxes: r,
|
|
146
|
+
handles: i
|
|
147
|
+
};
|
|
148
|
+
})(T, e, x) : y);
|
|
149
|
+
}, [T, x]);
|
|
150
|
+
i(() => x?.addListeners({ onChange: Q }), [x, Q]), a(() => {
|
|
151
|
+
let e = K.current;
|
|
152
|
+
if (!(J && e && T && N && P)) return;
|
|
153
|
+
let t = T.getLayout({
|
|
154
|
+
width: N,
|
|
155
|
+
height: P
|
|
156
|
+
});
|
|
157
|
+
if (B.current = t, !t) return q.current?.dispose(), q.current = null, e.style.backgroundColor = "", void Q();
|
|
158
|
+
let n = t.chartArea.fill === void 0;
|
|
159
|
+
e.style.backgroundColor = n ? `var(--sxl-color-base-100, ${L ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = n ? `${t.chartArea.cornerRadius}px` : "";
|
|
160
|
+
let r = {
|
|
161
|
+
darkMode: L,
|
|
162
|
+
background: "transparent"
|
|
163
|
+
};
|
|
164
|
+
q.current ? q.current.update(t, r) : q.current = J.mountChart(e, t, r), Q();
|
|
165
|
+
}, [
|
|
166
|
+
J,
|
|
167
|
+
T,
|
|
168
|
+
N,
|
|
169
|
+
P,
|
|
170
|
+
ce,
|
|
171
|
+
L,
|
|
172
|
+
Q
|
|
173
|
+
]), i(() => () => {
|
|
174
|
+
q.current?.dispose(), q.current = null, B.current = null;
|
|
175
|
+
}, [T]);
|
|
176
|
+
let de = r((e) => {
|
|
177
|
+
if (C?.(e), e.button !== 0 && e.button !== 2) return;
|
|
178
|
+
let t = B.current, n = H(e.clientX, e.clientY);
|
|
179
|
+
if (!T || !t || !n) return;
|
|
180
|
+
let r = T.getElementAt(n, t);
|
|
181
|
+
if (S?.({
|
|
182
|
+
element: r,
|
|
183
|
+
point: n,
|
|
184
|
+
event: e
|
|
185
|
+
}), !x) return;
|
|
186
|
+
if (!r || r.getElementType() === "chartArea") return void x.clear();
|
|
187
|
+
let i = v(r, x.getActive());
|
|
188
|
+
x.isSelected(i) && x.getItems().length === 1 || x.select([i]);
|
|
189
|
+
}, [
|
|
190
|
+
T,
|
|
191
|
+
x,
|
|
192
|
+
S,
|
|
193
|
+
C,
|
|
194
|
+
H
|
|
195
|
+
]);
|
|
196
|
+
if (T?.isDeleted()) return;
|
|
197
|
+
let $ = X ?? E;
|
|
198
|
+
return l("div", {
|
|
199
|
+
...w,
|
|
200
|
+
onPointerDown: de,
|
|
201
|
+
style: {
|
|
202
|
+
...h === void 0 ? {} : { width: h },
|
|
203
|
+
...b === void 0 ? {} : { height: b },
|
|
204
|
+
...d,
|
|
205
|
+
overflow: "hidden"
|
|
206
|
+
},
|
|
207
|
+
ref: G,
|
|
208
|
+
children: [
|
|
209
|
+
$ ? c("div", {
|
|
210
|
+
className: "chart-element-error",
|
|
211
|
+
style: {
|
|
212
|
+
padding: "8px",
|
|
213
|
+
fontSize: "12px",
|
|
214
|
+
color: "var(--sxl-color-error, #b00020)"
|
|
215
|
+
},
|
|
216
|
+
children: $.message
|
|
217
|
+
}) : null,
|
|
218
|
+
c("div", {
|
|
219
|
+
className: "chart-element",
|
|
220
|
+
ref: K,
|
|
221
|
+
style: {
|
|
222
|
+
width: N || "100%",
|
|
223
|
+
height: P || "100%",
|
|
224
|
+
zoom: m,
|
|
225
|
+
position: "relative"
|
|
226
|
+
}
|
|
227
|
+
}),
|
|
228
|
+
Z.boxes.length > 0 ? l("div", {
|
|
229
|
+
className: "chart-element-selection",
|
|
230
|
+
style: {
|
|
231
|
+
position: "absolute",
|
|
232
|
+
left: 0,
|
|
233
|
+
top: 0,
|
|
234
|
+
width: N,
|
|
235
|
+
height: P,
|
|
236
|
+
zoom: m,
|
|
237
|
+
pointerEvents: "none"
|
|
238
|
+
},
|
|
239
|
+
children: [Z.boxes.map((e, t) => c("div", { style: {
|
|
240
|
+
position: "absolute",
|
|
241
|
+
left: e.x - 1,
|
|
242
|
+
top: e.y - 1,
|
|
243
|
+
width: Math.max(0, e.width),
|
|
244
|
+
height: Math.max(0, e.height),
|
|
245
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
246
|
+
boxSizing: "content-box"
|
|
247
|
+
} }, `box-${t}`)), Z.handles.map((e, t) => c("div", { style: {
|
|
248
|
+
position: "absolute",
|
|
249
|
+
left: e.x - 3,
|
|
250
|
+
top: e.y - 3,
|
|
251
|
+
width: 6,
|
|
252
|
+
height: 6,
|
|
253
|
+
background: "var(--sxl-color-base-100, #fff)",
|
|
254
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
255
|
+
boxSizing: "border-box"
|
|
256
|
+
} }, `handle-${t}`))]
|
|
257
|
+
}) : null
|
|
258
|
+
]
|
|
259
|
+
});
|
|
260
|
+
}));
|
|
261
|
+
b.displayName = "ChartElement";
|
|
262
|
+
export { m as a, h as i, v as n, p as o, g as r, b 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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./D2GydDzPuvIjdpok.mjs";
|
|
8
|
+
import { t } from "./DN3lqq95KY0K6f1x.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";
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./DN3lqq95KY0K6f1x.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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|