@sheetxl/react 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{B5I4vV_DP3EjMFOh.mjs → 4M1ime0lSMPwFdwq.mjs} +1 -1
- package/browser/esm/{B41IwWSVZSFBKWbl.mjs → 56NlLn16iTCMXWTn.mjs} +6 -6
- package/browser/esm/BBpLlCS6trF9IqY7.mjs +325 -0
- package/browser/esm/{DfPC75_EpLobRWyU.mjs → BCGOU0KEA92-tHXw.mjs} +5 -5
- package/browser/esm/{D9LWDuiSBP9TanuP.mjs → BPyvBK7c6TKRxVZb.mjs} +1 -1
- package/browser/esm/{Cy91S4xWoxd66-_0.mjs → BkkfkHsyalXv3k4Q.mjs} +1 -1
- package/browser/esm/{BCViSL9zpUH8tVsE.mjs → Bks84B7NgyzaBVv0.mjs} +1 -1
- package/browser/esm/{Vh1oaya1vexsM57z.mjs → Bl0-xYLr5UA_pMTT.mjs} +6 -6
- package/browser/esm/{Yzp80cMm3GyMSyGB.mjs → Bp-3XmIZb2fkqunF.mjs} +2 -2
- package/browser/esm/{sFi_HFLodIR0bKfI.mjs → C1luDkna9W7PNKrz.mjs} +1 -1
- package/browser/esm/{DrVUyngAZ439vUOV.mjs → CKYZvqAf2y2oAkB7.mjs} +1 -1
- package/browser/esm/{CclhdAtAI6HRaWjs.mjs → CsGmLR7d80u8xidY.mjs} +1 -1
- package/browser/esm/D20ReZZxs2JHIqXW.mjs +1681 -0
- package/browser/esm/{BhlDgb8_WVpUrXCE.mjs → D4OKTHNu7UroAOVB.mjs} +1 -1
- package/browser/esm/{2d3KRM4JSpo_wPqH.mjs → D9kzGjqEClI2OQO8.mjs} +1 -1
- package/browser/esm/{C257AeDQl6k6J19h.mjs → DAGQOiFH2fGWDOqj.mjs} +2 -2
- package/browser/esm/{BFUcvh3uC4U54r93.mjs → DBCT8TZn5tx3RRgu.mjs} +1 -1
- package/browser/esm/{CBACZ2nUHuOoDHLf.mjs → DIXBmbnM-qkL9ot2.mjs} +8 -6
- package/browser/esm/{DMVzoJFREEuE236r.mjs → DpQkiVYU6nJmsEXE.mjs} +3 -3
- package/browser/esm/{D2iNsoem4M78aLXn.mjs → Dq9OEmhDbQi90JyF.mjs} +3 -3
- package/browser/esm/{BDOdvxrpOY4gcCIl.mjs → Du_yTZVTH9ZhIwVz.mjs} +1 -1
- package/browser/esm/DzcsaJD62P_RrIgp.mjs +127 -0
- package/browser/esm/{Bs3j5q_SFWPRYcAj.mjs → OYfZSA6eTFsqp5MC.mjs} +1308 -1281
- package/browser/esm/{BIunYBnpZF-P8JFl.mjs → X9EpvcUhpbtf95sq.mjs} +1 -1
- package/browser/esm/{DO0HWpJD0WrboRDe.mjs → XkePaxnbmJijuUST.mjs} +1 -1
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/{lt-QhChnw2xCbjtV.mjs → dE1dGLDL9PIqTCiM.mjs} +73 -35
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +8930 -9026
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/{EJWEWelOH8yX7oez.mjs → pAnBA5Hy2mjpkAWB.mjs} +2 -2
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/node/esm/{BZK8xNBGYCcvGYr-.mjs → BCTgV60zEAPoPG-u.mjs} +1 -1
- package/node/esm/{lAMyxp6V7Yamdtue.mjs → BRsrSOeAgAbh8LCL.mjs} +30 -28
- package/node/esm/BSYkbwvzEjg5tnyi.mjs +327 -0
- package/node/esm/BXCAuiepvo2pCMA6.mjs +177 -0
- package/node/esm/{DYAI1q7pZQijIEuk.mjs → Bf1ybiY9HNcds5_H.mjs} +1 -1
- package/node/esm/{BKe0zQV-NngKQLC6.mjs → BkT-mLvzP5h10mLU.mjs} +1 -1
- package/node/esm/{gXZTHKanG6sR8nJB.mjs → C-l3nPRIH0q_ucYX.mjs} +1 -1
- package/node/esm/{DMccpcT9DZhrCesw.mjs → C0syazJAmS6_LFTY.mjs} +5 -5
- package/node/esm/{0XJbNeNNSyYBMnWw.mjs → C3frF4D3I2rcLHK1.mjs} +1 -1
- package/node/esm/{Bvq6hR9TahHJQDSE.mjs → CIPjf-XhEAQufN0V.mjs} +1 -1
- package/node/esm/{wamMRABbIHPbB6TV.mjs → CJKhZu3BbJY3VsWH.mjs} +1 -1
- package/node/esm/CWoaMwpLSM7gBaVh.mjs +1681 -0
- package/node/esm/{xaiZuv1DcjoKGxuV.mjs → CcblOBJaE8U6tCWg.mjs} +1 -1
- package/node/esm/{EFIovoxkRAaNFoV2.mjs → D5UV0AjhZIYGotrV.mjs} +1 -1
- package/node/esm/{eRa_lhdJaHzyCbSo.mjs → D5rzzywf1R4MvJU0.mjs} +1 -1
- package/node/esm/{ChvRYQa8Z3QcAih_.mjs → DEH7X3vDYP518pp4.mjs} +1 -1
- package/node/esm/{BmwLJCwadUcJzm7_.mjs → DO7K3oDOoCZ4fpv-.mjs} +2 -2
- package/node/esm/{BMZIDcAXGazWv925.mjs → DnZ2zYP0QCJWioMW.mjs} +1 -1
- package/node/esm/{Bx4zBoy7r3wKhSfW.mjs → DrQEt2TfEEgKvYKL.mjs} +1 -1
- package/node/esm/{Drew11dteKH8ST2G.mjs → Dxv-9TQ2qdooz9VX.mjs} +347 -320
- package/node/esm/EvhDIPxbJ1B3lfrj.mjs +166 -0
- package/node/esm/{CHEbVdYUW8SqO1s1.mjs → KC9JU5CVeDBJ2aHR.mjs} +1 -1
- package/node/esm/{DS_Y37x1b6oFkuSX.mjs → WFBPS4qHr0sTxFmI.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +2 -2
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +11035 -11128
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +5 -5
- package/node/esm/shape.mjs +6 -6
- package/node/esm/slicer.mjs +4 -4
- package/package.json +7 -7
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/cells.cmd.json +1589 -0
- package/resources/locales/de/chart.cmd.json +15 -0
- package/resources/locales/de/editor.cmd.json +8 -8
- package/resources/locales/de/movable.cmd.json +0 -8
- package/resources/locales/de/sheet.cmd.json +190 -1713
- package/resources/locales/de/ui.msg.json +67 -0
- package/resources/locales/en/cells.cmd.json +1602 -0
- package/resources/locales/en/chart.cmd.json +15 -0
- package/resources/locales/en/editor.cmd.json +8 -8
- package/resources/locales/en/movable.cmd.json +0 -8
- package/resources/locales/en/sheet.cmd.json +193 -1729
- package/resources/locales/en/ui.msg.json +67 -0
- package/types/src/chart/ChartCommands.d.ts +5 -3
- package/types/src/chart/ChartElement.d.ts +1 -1
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +23 -2
- package/types/src/chart/_outlinePath.d.ts +17 -0
- package/types/src/chart/paint/_fills.d.ts +4 -1
- package/types/src/chart/paint/_graphics.d.ts +5 -2
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +19 -5
- package/types/src/clipboard/ClipboardCommands.d.ts +16 -4
- package/types/src/commands/PaneScopeProvider.d.ts +2 -2
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/icons/chart/ChartIcons.d.ts +20 -0
- package/types/src/icons/chart/_ChartIconPack.d.ts +4 -0
- package/types/src/icons/chart/_chartIconKeys.d.ts +4 -0
- package/types/src/icons/chart/index.d.ts +1 -49
- package/types/src/index.d.ts +1 -0
- package/types/src/layer/MovableKindScope.d.ts +3 -2
- package/types/src/layer/MovableToolbar.d.ts +27 -0
- package/types/src/layer/RangeToolbar.d.ts +17 -4
- package/types/src/layer/SheetMovableLayer.d.ts +6 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +1 -1
- package/types/src/layer/index.d.ts +1 -0
- package/types/src/movable/MovableCommands.d.ts +8 -2
- package/types/src/movable/MovableLayer.d.ts +2 -0
- package/types/src/movable/MovableRenderers.d.ts +43 -1
- package/types/src/movable/_drawingFormat.d.ts +15 -0
- package/types/src/presence/PresenceCommands.d.ts +1 -1
- package/types/src/sheet/IWorksheetElement.d.ts +9 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +17 -10
- package/types/src/sheet/SheetCommands.d.ts +17 -4
- package/types/src/taskPane/FormatPane.d.ts +46 -0
- package/types/src/taskPane/MovablePane.d.ts +8 -10
- package/types/src/taskPane/TaskPaneArea.d.ts +57 -2
- package/types/src/taskPane/TaskPaneEmpty.d.ts +14 -0
- package/types/src/taskPane/TaskPaneKeys.d.ts +8 -4
- package/types/src/taskPane/TaskPaneRegistry.d.ts +2 -1
- package/types/src/taskPane/TaskPaneStrip.d.ts +13 -2
- package/types/src/taskPane/_taskPaneHost.d.ts +9 -0
- package/types/src/taskPane/index.d.ts +2 -0
- package/types/src/taskPane/useTaskPane.d.ts +14 -18
- package/browser/esm/CNWfLXcWFeRPAr_J.mjs +0 -264
- package/node/esm/8ar-ImM_B3-FjI_A.mjs +0 -128
- package/node/esm/BwlokhQZotu1DmAO.mjs +0 -265
- package/types/src/icons/chart/ChartAreaIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBubble3DIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBubbleIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartPieIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartWaterfallIcon.d.ts +0 -5
- package/types/src/icons/chart/ThemedChartIcon.d.ts +0 -20
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.4
|
|
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 "./sFi_HFLodIR0bKfI.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 ? e === "auto" ? i : e : t || (i === "dark" && r ? "dark" : "light");
|
|
25
|
-
}, x = (e) => {
|
|
26
|
-
let [t] = h(_.Mode, v[_.Mode]), { themeMode: n } = g({ mode: e ?? t ?? void 0 });
|
|
27
|
-
return n;
|
|
28
|
-
}, S = p("chart:paint", () => import("./Bs3j5q_SFWPRYcAj.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,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
-
*/
|
|
7
|
-
import { n as e } from "./BZK8xNBGYCcvGYr-.mjs";
|
|
8
|
-
import { ChartEditor as t } from "./chart.mjs";
|
|
9
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
10
|
-
import { messageKey as s, t as o } from "@sheetxl/utils";
|
|
11
|
-
var i = /* @__PURE__ */ new Set([
|
|
12
|
-
"waterfall",
|
|
13
|
-
"histogram",
|
|
14
|
-
"pareto",
|
|
15
|
-
"boxwhisker",
|
|
16
|
-
"treemap",
|
|
17
|
-
"sunburst",
|
|
18
|
-
"funnel",
|
|
19
|
-
"regionMap"
|
|
20
|
-
]), r = [
|
|
21
|
-
{
|
|
22
|
-
key: "chartTitleToggle",
|
|
23
|
-
state: (e) => e.getTitle().getVisible(),
|
|
24
|
-
show: ["chartTitleAboveChart"],
|
|
25
|
-
hide: ["chartTitleNone"]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: "chartLegendToggle",
|
|
29
|
-
state: (e) => e.getLegend().getVisible(),
|
|
30
|
-
show: ["legendRight"],
|
|
31
|
-
hide: ["legendNone"]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
key: "chartDataLabelsToggle",
|
|
35
|
-
state: (e) => e.getDataLabels().getVisible(),
|
|
36
|
-
show: ["dataLabelShow"],
|
|
37
|
-
hide: ["dataLabelNone"]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
key: "chartDataTableToggle",
|
|
41
|
-
state: (e) => e.getDataTable().getVisible(),
|
|
42
|
-
show: ["dataTableShow"],
|
|
43
|
-
hide: ["dataTableNone"]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: "chartGridlinesToggle",
|
|
47
|
-
state: (e) => e.getAxes().getValueAxis()?.getMajorGridlines().getVisible() ?? !1,
|
|
48
|
-
show: ["primaryValueGridLinesMajor"],
|
|
49
|
-
hide: ["primaryValueGridLinesNone"]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
key: "chartAxisTitlesToggle",
|
|
53
|
-
state: (e) => e.getAxes().getItems().some((e) => "primary" === e.getAxisGroup() && e.getTitle().getVisible()),
|
|
54
|
-
show: ["primaryCategoryAxisTitleAdjacentToAxis", "primaryValueAxisTitleRotated"],
|
|
55
|
-
hide: ["primaryCategoryAxisTitleNone", "primaryValueAxisTitleNone"]
|
|
56
|
-
}
|
|
57
|
-
], l = {
|
|
58
|
-
renderer: (e) => a(t, {
|
|
59
|
-
...e,
|
|
60
|
-
chart: e.movable.getContent()
|
|
61
|
-
}),
|
|
62
|
-
commands: (t, a) => {
|
|
63
|
-
const { sheet: l, movable: n, notifier: c } = a, d = n.getContent();
|
|
64
|
-
t.use(e({
|
|
65
|
-
transaction: l,
|
|
66
|
-
notifier: c
|
|
67
|
-
}));
|
|
68
|
-
const g = () => ({ chart: () => d }), h = () => d.isReadOnly() ? [s("reason.sheetProtected")] : [], m = () => {
|
|
69
|
-
const e = d.isReadOnly() ? [s("reason.sheetProtected")] : i.has(d.getChartType()) ? [s("reason.chartTypeNotEditable")] : [];
|
|
70
|
-
t.updateCommand("chartChangeType", {
|
|
71
|
-
callback: (e) => {
|
|
72
|
-
const t = "string" == typeof e ? e : e?.type;
|
|
73
|
-
t && d.setChartType(t);
|
|
74
|
-
},
|
|
75
|
-
state: d.getChartType(),
|
|
76
|
-
context: g,
|
|
77
|
-
disabledReasons: e
|
|
78
|
-
}), t.updateCommand("chartSwitchRowColumn", {
|
|
79
|
-
callback: () => {
|
|
80
|
-
d.setSeriesBy("rows" === d.getSeriesBy() ? "columns" : "rows");
|
|
81
|
-
},
|
|
82
|
-
state: d.getSeriesBy(),
|
|
83
|
-
context: g,
|
|
84
|
-
disabledReasons: e
|
|
85
|
-
}), t.updateCommand("chartSelectData", {
|
|
86
|
-
tags: ["noTransaction", "noRepeat"],
|
|
87
|
-
callback: async (e) => {
|
|
88
|
-
if (!e) {
|
|
89
|
-
const t = await c?.showInput?.({
|
|
90
|
-
title: o("dialog.chartSelectData.title"),
|
|
91
|
-
description: o("dialog.chartSelectData.description"),
|
|
92
|
-
inputLabel: o("dialog.chartSelectData.inputLabel"),
|
|
93
|
-
initialValue: d.getSeries()[0]?.getValuesRange()?.getAddress() ?? "",
|
|
94
|
-
options: [{
|
|
95
|
-
id: "Select",
|
|
96
|
-
label: () => o("dialog.select")
|
|
97
|
-
}]
|
|
98
|
-
});
|
|
99
|
-
if (!t || "Select" !== t.option || !t.input) return;
|
|
100
|
-
e = t.input;
|
|
101
|
-
}
|
|
102
|
-
d.setData(e);
|
|
103
|
-
},
|
|
104
|
-
context: g,
|
|
105
|
-
disabledReasons: e
|
|
106
|
-
}), t.updateCommand("chartAddElement", {
|
|
107
|
-
callback: (e) => {
|
|
108
|
-
e && d.setElement(e);
|
|
109
|
-
},
|
|
110
|
-
context: g,
|
|
111
|
-
disabledReasons: e
|
|
112
|
-
});
|
|
113
|
-
for (const a of r) {
|
|
114
|
-
const s = a.state(d);
|
|
115
|
-
t.updateCommand(a.key, {
|
|
116
|
-
callback: () => {
|
|
117
|
-
for (const e of s ? a.hide : a.show) d.setElement(e);
|
|
118
|
-
},
|
|
119
|
-
state: s,
|
|
120
|
-
context: g,
|
|
121
|
-
disabledReasons: "chartTitleToggle" === a.key || "chartLegendToggle" === a.key ? h() : e
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
return m(), d.addListeners({ onAnyChange: m });
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
export { l as ChartKind };
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
-
*/
|
|
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
|
-
Mode: "themeMode",
|
|
14
|
-
DarkGrid: "enableDarkGrid",
|
|
15
|
-
DarkImages: "enableDarkImages"
|
|
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("./Drew11dteKH8ST2G.mjs")), C = (e, t) => {
|
|
29
|
-
const r = e.getElementType();
|
|
30
|
-
if ("point" === r) {
|
|
31
|
-
const r = e.getParent();
|
|
32
|
-
return t === r || "point" === t?.getElementType() && t.getParent() === r ? e : r;
|
|
33
|
-
}
|
|
34
|
-
if ("legendEntry" === r) {
|
|
35
|
-
const r = e.getParent();
|
|
36
|
-
return t === r || "legendEntry" === t?.getElementType() ? e : r;
|
|
37
|
-
}
|
|
38
|
-
if ("dataLabel" === r) {
|
|
39
|
-
const r = e.getParent()?.getParent(), n = r?.getDataLabels();
|
|
40
|
-
return n ? t === n || "dataLabel" === t?.getElementType() && t.getParent()?.getParent() === r ? e : n : e;
|
|
41
|
-
}
|
|
42
|
-
return e;
|
|
43
|
-
}, P = {
|
|
44
|
-
boxes: [],
|
|
45
|
-
handles: []
|
|
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(() => {
|
|
51
|
-
let e = !0;
|
|
52
|
-
const t = (e, t) => {
|
|
53
|
-
z(t), A(e), I.current !== e && (I.current = e, F.current?.(e));
|
|
54
|
-
};
|
|
55
|
-
if (u.isPromiseLike(h)) return h.then((r) => {
|
|
56
|
-
e && t(r, null);
|
|
57
|
-
}, (r) => {
|
|
58
|
-
e && t(null, r);
|
|
59
|
-
}), () => {
|
|
60
|
-
e = !1;
|
|
61
|
-
};
|
|
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({
|
|
65
|
-
width: j,
|
|
66
|
-
height: V
|
|
67
|
-
});
|
|
68
|
-
X.current = {
|
|
69
|
-
width: j,
|
|
70
|
-
height: V
|
|
71
|
-
};
|
|
72
|
-
const Y = E(), q = "dark" === (w ?? Y), H = n(async (e) => {
|
|
73
|
-
const t = X.current;
|
|
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) => {
|
|
80
|
-
const r = J.current;
|
|
81
|
-
if (!r) return null;
|
|
82
|
-
const n = r.getBoundingClientRect(), o = O.current || 1;
|
|
83
|
-
return {
|
|
84
|
-
x: (e - n.left) / o,
|
|
85
|
-
y: (t - n.top) / o
|
|
86
|
-
};
|
|
87
|
-
}, []), U = n((e, t) => {
|
|
88
|
-
const r = K.current, n = Q(e, t);
|
|
89
|
-
return S && r && n ? S.getElementAt(n, r) : null;
|
|
90
|
-
}, [S, Q]), W = g(t, () => ({
|
|
91
|
-
isChartElement: () => !0,
|
|
92
|
-
getChart: () => S,
|
|
93
|
-
toSVG: H,
|
|
94
|
-
getElementAt: U
|
|
95
|
-
}), [
|
|
96
|
-
S,
|
|
97
|
-
H,
|
|
98
|
-
U
|
|
99
|
-
]), Z = y([
|
|
100
|
-
W,
|
|
101
|
-
N,
|
|
102
|
-
J
|
|
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(() => {
|
|
105
|
-
if (te) return;
|
|
106
|
-
let e = !0;
|
|
107
|
-
return M.load().then((t) => {
|
|
108
|
-
e && re(t);
|
|
109
|
-
}, (t) => {
|
|
110
|
-
e && oe(t);
|
|
111
|
-
}), () => {
|
|
112
|
-
e = !1;
|
|
113
|
-
};
|
|
114
|
-
}, [te]);
|
|
115
|
-
const ce = n(() => {
|
|
116
|
-
const e = K.current;
|
|
117
|
-
ae(S && e && k && !k.isEmpty() ? ((e, t, r) => {
|
|
118
|
-
const n = [], o = [];
|
|
119
|
-
for (const l of r.getItems()) {
|
|
120
|
-
if (l.getChart() !== e) continue;
|
|
121
|
-
const s = l.getElementType();
|
|
122
|
-
if ("series" === s || "dataLabels" === s) {
|
|
123
|
-
const r = "series" === s ? l : l.getParent(), o = "series" === s ? r.getPoints() : r.getPoints().map((e) => e.getDataLabel());
|
|
124
|
-
for (const r of o) {
|
|
125
|
-
const o = e.getElementBounds(r, t);
|
|
126
|
-
o && n.push(o);
|
|
127
|
-
}
|
|
128
|
-
if (n.length > 0) continue;
|
|
129
|
-
}
|
|
130
|
-
const i = e.getElementBounds(l, t);
|
|
131
|
-
if (i && (n.push(i), 1 === r.getItems().length)) {
|
|
132
|
-
const e = [
|
|
133
|
-
i.x,
|
|
134
|
-
i.x + i.width / 2,
|
|
135
|
-
i.x + i.width
|
|
136
|
-
], t = [
|
|
137
|
-
i.y,
|
|
138
|
-
i.y + i.height / 2,
|
|
139
|
-
i.y + i.height
|
|
140
|
-
];
|
|
141
|
-
for (const r of e) for (const n of t) r === e[1] && n === t[1] || o.push({
|
|
142
|
-
x: r,
|
|
143
|
-
y: n
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
boxes: n,
|
|
149
|
-
handles: o
|
|
150
|
-
};
|
|
151
|
-
})(S, e, k) : P);
|
|
152
|
-
}, [S, k]);
|
|
153
|
-
l(() => k?.addListeners({ onChange: ce }), [k, ce]), s(() => {
|
|
154
|
-
const e = _.current;
|
|
155
|
-
if (!(te && e && S && j && V)) return;
|
|
156
|
-
const t = S.getLayout({
|
|
157
|
-
width: j,
|
|
158
|
-
height: V
|
|
159
|
-
});
|
|
160
|
-
if (K.current = t, !t) return ee.current?.dispose(), ee.current = null, e.style.backgroundColor = "", void ce();
|
|
161
|
-
const r = void 0 === t.chartArea.fill;
|
|
162
|
-
e.style.backgroundColor = r ? `var(--sxl-color-base-100, ${q ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = r ? `${t.chartArea.cornerRadius}px` : "";
|
|
163
|
-
const n = {
|
|
164
|
-
darkMode: q,
|
|
165
|
-
background: "transparent"
|
|
166
|
-
};
|
|
167
|
-
ee.current ? ee.current.update(t, n) : ee.current = te.mountChart(e, t, n), ce();
|
|
168
|
-
}, [
|
|
169
|
-
te,
|
|
170
|
-
S,
|
|
171
|
-
j,
|
|
172
|
-
V,
|
|
173
|
-
le,
|
|
174
|
-
q,
|
|
175
|
-
ce
|
|
176
|
-
]), l(() => () => {
|
|
177
|
-
ee.current?.dispose(), ee.current = null, K.current = null;
|
|
178
|
-
}, [S]);
|
|
179
|
-
const de = n((e) => {
|
|
180
|
-
if (L?.(e), 0 !== e.button && 2 !== e.button) return;
|
|
181
|
-
const t = K.current, r = Q(e.clientX, e.clientY);
|
|
182
|
-
if (!S || !t || !r) return;
|
|
183
|
-
const n = S.getElementAt(r, t);
|
|
184
|
-
if (D?.({
|
|
185
|
-
element: n,
|
|
186
|
-
point: r,
|
|
187
|
-
event: e
|
|
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]);
|
|
192
|
-
}, [
|
|
193
|
-
S,
|
|
194
|
-
k,
|
|
195
|
-
D,
|
|
196
|
-
L,
|
|
197
|
-
Q
|
|
198
|
-
]);
|
|
199
|
-
if (S?.isDeleted()) return;
|
|
200
|
-
const ue = ne ?? T;
|
|
201
|
-
return d("div", {
|
|
202
|
-
...G,
|
|
203
|
-
onPointerDown: de,
|
|
204
|
-
style: {
|
|
205
|
-
...void 0 !== b ? { width: b } : {},
|
|
206
|
-
...void 0 !== v ? { height: v } : {},
|
|
207
|
-
...o,
|
|
208
|
-
overflow: "hidden"
|
|
209
|
-
},
|
|
210
|
-
ref: Z,
|
|
211
|
-
children: [
|
|
212
|
-
ue ? c("div", {
|
|
213
|
-
className: "sxl-chart-element-error",
|
|
214
|
-
style: {
|
|
215
|
-
padding: "8px",
|
|
216
|
-
fontSize: "12px",
|
|
217
|
-
color: "var(--sxl-color-error, #b00020)"
|
|
218
|
-
},
|
|
219
|
-
children: ue.message
|
|
220
|
-
}) : null,
|
|
221
|
-
c("div", {
|
|
222
|
-
className: "sxl-chart-element",
|
|
223
|
-
ref: _,
|
|
224
|
-
style: {
|
|
225
|
-
width: j || "100%",
|
|
226
|
-
height: V || "100%",
|
|
227
|
-
zoom: x,
|
|
228
|
-
position: "relative"
|
|
229
|
-
}
|
|
230
|
-
}),
|
|
231
|
-
ie.boxes.length > 0 ? d("div", {
|
|
232
|
-
className: "sxl-chart-element-selection",
|
|
233
|
-
style: {
|
|
234
|
-
position: "absolute",
|
|
235
|
-
left: 0,
|
|
236
|
-
top: 0,
|
|
237
|
-
width: j,
|
|
238
|
-
height: V,
|
|
239
|
-
zoom: x,
|
|
240
|
-
pointerEvents: "none"
|
|
241
|
-
},
|
|
242
|
-
children: [ie.boxes.map((e, t) => c("div", { style: {
|
|
243
|
-
position: "absolute",
|
|
244
|
-
left: e.x - 1,
|
|
245
|
-
top: e.y - 1,
|
|
246
|
-
width: Math.max(0, e.width),
|
|
247
|
-
height: Math.max(0, e.height),
|
|
248
|
-
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
249
|
-
boxSizing: "content-box"
|
|
250
|
-
} }, `box-${t}`)), ie.handles.map((e, t) => c("div", { style: {
|
|
251
|
-
position: "absolute",
|
|
252
|
-
left: e.x - 3,
|
|
253
|
-
top: e.y - 3,
|
|
254
|
-
width: 6,
|
|
255
|
-
height: 6,
|
|
256
|
-
background: "var(--sxl-color-base-100, #fff)",
|
|
257
|
-
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
258
|
-
boxSizing: "border-box"
|
|
259
|
-
} }, `handle-${t}`))]
|
|
260
|
-
}) : null
|
|
261
|
-
]
|
|
262
|
-
});
|
|
263
|
-
}));
|
|
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 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
/** @internal */
|
|
3
|
-
export declare const ChartAreaStackedPercentIcon: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
4
|
-
export default ChartAreaStackedPercentIcon;
|
|
5
|
-
//# sourceMappingURL=ChartAreaStackedPercentIcon.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
/** @internal */
|
|
3
|
-
export declare const ChartBarStackedPercentIcon: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
4
|
-
export default ChartBarStackedPercentIcon;
|
|
5
|
-
//# sourceMappingURL=ChartBarStackedPercentIcon.d.ts.map
|