@sheetxl/react 0.8.0-beta.23 → 0.8.0-beta.24
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/{DedLmnV_HajYHYSM.mjs → 6KeWPjMKNZY8i19M.mjs} +2 -2
- package/browser/esm/{C-eTPeTwXQoqn3Lb.mjs → 9t5N76NQ0awbiItG.mjs} +2 -2
- package/browser/esm/{DQ5DeFNj_0mj6QMd.mjs → B-rvtChAVnzrPJsd.mjs} +1 -1
- package/browser/esm/{G6Ek0k1QC1pUHvPd.mjs → B0asaf6iVJnOyxYq.mjs} +1 -1
- package/browser/esm/{CGEyv-QdxMuQmLqk.mjs → BoljuF1xywgBQ3vp.mjs} +1 -1
- package/browser/esm/{CLD7Vob5oUran-l0.mjs → BuDfdWztNZKCN_Ld.mjs} +1 -1
- package/browser/esm/{B1rKvYmr4ynvDkqM.mjs → BwuvgXRS-KMp6XCe.mjs} +3 -3
- package/browser/esm/{C9wgyCKVT4rwQMSD.mjs → By0ADE8R8h3hKM64.mjs} +1 -1
- package/browser/esm/{DSvlk_YzOev20rgN.mjs → CGazs9mfVVzc04Y7.mjs} +121 -114
- package/browser/esm/{BHukFXtx1rpfvfIy.mjs → CXX4sovIFgAQsSxN.mjs} +1 -1
- package/browser/esm/{BN7pckCvCRZMPCmK.mjs → CaV--rSRIoGsErhZ.mjs} +3 -3
- package/browser/esm/{CEtZlL4v4JU0TDVR.mjs → CfIPv0YuwhlpYzf2.mjs} +6 -6
- package/browser/esm/{BklsD3lkZGRSwAFi.mjs → Cgbmuy79jiY1HjS3.mjs} +1 -1
- package/browser/esm/{OPWkc7t367MwVsVU.mjs → CmoM33qZfV9EioFC.mjs} +1 -1
- package/browser/esm/{CmYMKPG-TaW2dJPu.mjs → DHncl8rL4Tri3OBI.mjs} +1 -1
- package/browser/esm/{2-8Z3hKcjFc9IUm_.mjs → DK8YNIcwWG9l7BpT.mjs} +3 -3
- package/browser/esm/{BG96UT5-ooOuigD0.mjs → DQfqezyi9TgWoADc.mjs} +1 -1
- package/browser/esm/{CD5gjg2DVLsy6h33.mjs → Dw1dknWgStq1jnIp.mjs} +6 -6
- package/browser/esm/{CXJmpmqTkVe25Ita.mjs → IF4tK8a7bQsrq8gd.mjs} +2 -2
- package/browser/esm/{B1qMCa-WDnmPYR_C.mjs → ISe4yn20JJcyYnhz.mjs} +2 -2
- package/browser/esm/{D952mmmww4cYPatc.mjs → UKEdlUOzahaOstGm.mjs} +1 -1
- package/browser/esm/{D5r5ejlRpFFXN6TK.mjs → W00O27emy3mpzSYw.mjs} +4 -4
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/{B7RYx03rC74aIduo.mjs → dwz-qrgJG3GabtJ0.mjs} +3 -3
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +6228 -6204
- package/browser/esm/{Cw3PQMs1RDxzIo35.mjs → jmoe5Dbqx1WjBgUO.mjs} +1 -1
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/{CruGvs0fdtWWO_Di.mjs → plaFoOG2sGGR9984.mjs} +1 -1
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/node/esm/{YC2O0ix33xKY0ShQ.mjs → 7HceIR_VkgIhKM8f.mjs} +1 -1
- package/node/esm/{B5ae_WW6vAz2jOsn.mjs → 9vtv3spOcuota3Vb.mjs} +1 -1
- package/node/esm/{DJyNfqgeIlJ6lOHS.mjs → B0EM467vxmzaUp9t.mjs} +1 -1
- package/node/esm/{k3c-0DQ1fifSFOnO.mjs → BUiM5r_ksWRJMWPn.mjs} +1 -1
- package/node/esm/{BKrvkWuGTMdkvdy6.mjs → BYhlpUYwaNUr67Yi.mjs} +1 -1
- package/node/esm/{DL2RKBB2PXzdJyx_.mjs → Bd_YMUKA8RxBL4G2.mjs} +4 -4
- package/node/esm/{DmHHRlyfyFWj6wvW.mjs → BgCEqNCStGMDZ1QF.mjs} +1 -1
- package/node/esm/{Csl959_HnUC4Y06N.mjs → BguHdiclysorJICc.mjs} +1 -1
- package/node/esm/{CF5ztfx05vyEMEub.mjs → BlahUrDcsABBUCM0.mjs} +1 -1
- package/node/esm/{CeSZX96RPPjn29Hw.mjs → Bub_Mjqm7gIOrcpM.mjs} +2 -2
- package/node/esm/{BMWwIbesFn8e6-Ov.mjs → CH0kTLjibrtP2Cbj.mjs} +1 -1
- package/node/esm/{D8mwVRSclIFn5SVM.mjs → CHPFQjpRp8efzowW.mjs} +2 -2
- package/node/esm/{BGLOvRRJr4nt8QdO.mjs → CtBn6NAJs8ogJXEf.mjs} +1 -1
- package/node/esm/{iMUcM8KW4HIW2Ksm.mjs → D1Kny6jQY-Z5cM3U.mjs} +1 -1
- package/node/esm/{BD04OJgRWKiE2W1H.mjs → D2CFdcWIygfybLGD.mjs} +1 -1
- package/node/esm/{BhgjRcXOyNKBdqUW.mjs → DFc3ldcMwcvqOz8-.mjs} +5 -5
- package/node/esm/{Cx16BErZDzlQEXH_.mjs → DHtgb2GVYcKg4gyl.mjs} +2 -2
- package/node/esm/{Bv0fGxNecKUr_qYS.mjs → DUzvBfMhVRALWCyY.mjs} +1 -1
- package/node/esm/{vYeFE_eUMRqsgnkd.mjs → DXMUS-l19Pg6Apgt.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +2 -2
- package/node/esm/{VFXZqkIvB9MDE2Ea.mjs → fFLn4uIFYXSk57YZ.mjs} +1 -1
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +2926 -2902
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +78 -70
- package/node/esm/shape.mjs +6 -6
- package/node/esm/slicer.mjs +4 -4
- package/node/esm/{CeuVkQpY8O4nZG-k.mjs → xDrQGeYKZL5Q1dWB.mjs} +2 -2
- package/package.json +7 -7
- package/types/src/workbook/IWorkbookElement.d.ts +35 -2
package/node/esm/note.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.24
|
|
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 { t as o } from "./
|
|
9
|
-
import { t } from "./
|
|
7
|
+
import { t as e } from "./DUzvBfMhVRALWCyY.mjs";
|
|
8
|
+
import { t as o } from "./BlahUrDcsABBUCM0.mjs";
|
|
9
|
+
import { t } from "./BUiM5r_ksWRJMWPn.mjs";
|
|
10
10
|
import { Color as r, IColor as n, IFont as i, IFontStyle as l, IStroke as a } from "@sheetxl/sdk";
|
|
11
11
|
import { forwardRef as s, memo as d, useReducer as c } from "react";
|
|
12
12
|
import { jsx as g } from "react/jsx-runtime";
|
package/node/esm/picture.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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.24
|
|
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 } from "./
|
|
8
|
-
import { n as e } from "./
|
|
9
|
-
import { t as o } from "./
|
|
10
|
-
import { i as r, r as i, t as n } from "./
|
|
7
|
+
import { t } from "./DUzvBfMhVRALWCyY.mjs";
|
|
8
|
+
import { n as e } from "./D1Kny6jQY-Z5cM3U.mjs";
|
|
9
|
+
import { t as o } from "./CH0kTLjibrtP2Cbj.mjs";
|
|
10
|
+
import { i as r, r as i, t as n } from "./CtBn6NAJs8ogJXEf.mjs";
|
|
11
11
|
import { forwardRef as l, memo as s, useCallback as a, useEffect as h, useId as c, useMemo as d, useReducer as u, useRef as p, useState as g } from "react";
|
|
12
12
|
import { jsx as f, jsxs as m } from "react/jsx-runtime";
|
|
13
13
|
import { useSurfaceStateSetter as v } from "@sheetxl/grid-react";
|
|
14
|
-
import { ReactUtils as x, useImperativeElement as y, useNotifier as w, usePendingRender as
|
|
15
|
-
var
|
|
16
|
-
const r =
|
|
14
|
+
import { ReactUtils as x, useImperativeElement as y, useNotifier as w, usePendingRender as P } from "@sheetxl/utils-react";
|
|
15
|
+
var b = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
16
|
+
const r = b(50 * (1 - t.width / (o * e.width))), i = b(50 * (1 - t.height / (o * e.height)));
|
|
17
17
|
return {
|
|
18
18
|
left: r,
|
|
19
19
|
right: r,
|
|
@@ -30,10 +30,10 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
30
30
|
height: i
|
|
31
31
|
},
|
|
32
32
|
crop: {
|
|
33
|
-
left:
|
|
34
|
-
right:
|
|
35
|
-
top:
|
|
36
|
-
bottom:
|
|
33
|
+
left: b(n + h),
|
|
34
|
+
right: b(s + h),
|
|
35
|
+
top: b(l + c),
|
|
36
|
+
bottom: b(a + c)
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}, z = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyok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URWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", C = {
|
|
@@ -50,7 +50,7 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
50
50
|
display: "block",
|
|
51
51
|
pointerEvents: "none"
|
|
52
52
|
}, F = s(l((l, s) => {
|
|
53
|
-
const { children:
|
|
53
|
+
const { children: b, disabled: k, style: Z, picture: O, movable: S, zoom: F = 1, gesture: Q, description: Y, tile: W, offsetX: X = 0, offsetY: A = 0, isDragging: R, onHide: H, onShow: M, onDragZone: D, onTap: G, adornmentHost: q, flip: I, onKeyDownCapture: J, onFocus: V, onBlur: E, loadingPanel: U, ...K } = l, [N, B] = g(!1), [L, T] = g(null), [$, _] = g(null), [tt, et] = g(null), [ot, rt] = u((t) => t + 1, 0);
|
|
54
54
|
t(O, { onAnyChange: rt }), t(S ?? null, {
|
|
55
55
|
onBoundsChange: rt,
|
|
56
56
|
onSelectionChange: rt
|
|
@@ -78,49 +78,58 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
78
78
|
ct,
|
|
79
79
|
st,
|
|
80
80
|
at
|
|
81
|
-
]);
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
]), [xt, yt] = g(null);
|
|
82
|
+
h(() => {
|
|
83
|
+
if (!W || !$) return;
|
|
84
|
+
let t = !0;
|
|
85
|
+
const e = new Image();
|
|
86
|
+
return e.src = $, ("function" == typeof e.decode ? e.decode() : Promise.resolve()).catch(() => {}).then(() => {
|
|
87
|
+
t && yt($);
|
|
88
|
+
}), () => {
|
|
89
|
+
t = !1;
|
|
90
|
+
};
|
|
91
|
+
}, [W, $]), P(!N && (W ? xt !== $ || !$ : !L) || dt && ct && !ft);
|
|
92
|
+
const wt = it?.getStyles() ?? null, Pt = d(() => dt ? i({
|
|
84
93
|
fill: lt.fill,
|
|
85
94
|
stroke: lt.stroke,
|
|
86
95
|
style: null
|
|
87
|
-
},
|
|
96
|
+
}, wt) : null, [
|
|
88
97
|
dt,
|
|
89
98
|
lt.fill,
|
|
90
99
|
lt.stroke,
|
|
91
|
-
|
|
92
|
-
]),
|
|
100
|
+
wt
|
|
101
|
+
]), bt = `${c().replace(/[^A-Za-z0-9_-]/g, "")}-clip`, kt = d(() => {
|
|
93
102
|
if (!vt || void 0 === lt.geometry || "rect" === lt.geometry) return null;
|
|
94
103
|
const t = [];
|
|
95
104
|
return vt.forEachPath((e) => {
|
|
96
105
|
"fill" === e.layer && t.push(e.d);
|
|
97
106
|
}), t.length > 0 ? t.join(" ") : null;
|
|
98
|
-
}, [vt, lt.geometry]),
|
|
107
|
+
}, [vt, lt.geometry]), Zt = I?.horizontal ?? !1, Ot = I?.vertical ?? !1, St = d(() => ht % 360 == 0 && ct ? {
|
|
99
108
|
dpr: x.getDevicePixelRatio(),
|
|
100
109
|
zoom: F,
|
|
101
110
|
width: st,
|
|
102
111
|
height: at,
|
|
103
|
-
flipH:
|
|
104
|
-
flipV:
|
|
112
|
+
flipH: Zt,
|
|
113
|
+
flipV: Ot
|
|
105
114
|
} : null, [
|
|
106
115
|
ht,
|
|
107
116
|
ct,
|
|
108
117
|
F,
|
|
109
118
|
st,
|
|
110
119
|
at,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]),
|
|
120
|
+
Zt,
|
|
121
|
+
Ot
|
|
122
|
+
]), zt = O.getHyperlink?.() ?? null, Ct = v(o, null), jt = p(null);
|
|
114
123
|
h(() => () => {
|
|
115
|
-
|
|
116
|
-
}, [O,
|
|
117
|
-
|
|
124
|
+
jt.current?.(), Ct((t) => t === O ? null : t);
|
|
125
|
+
}, [O, Ct]), h(() => {
|
|
126
|
+
zt || Ct((t) => t === O ? null : t);
|
|
118
127
|
}, [
|
|
119
|
-
!
|
|
128
|
+
!zt,
|
|
120
129
|
O,
|
|
121
|
-
|
|
130
|
+
Ct
|
|
122
131
|
]);
|
|
123
|
-
const
|
|
132
|
+
const Ft = a((t) => {
|
|
124
133
|
S?.unselect(), t.open().catch((t) => {
|
|
125
134
|
nt.showError?.(t instanceof Error ? t : String(t));
|
|
126
135
|
});
|
|
@@ -128,12 +137,12 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
128
137
|
h(() => {
|
|
129
138
|
G?.(() => {
|
|
130
139
|
const t = O.getHyperlink?.();
|
|
131
|
-
return !!t && (
|
|
140
|
+
return !!t && (Ft(t), !0);
|
|
132
141
|
});
|
|
133
142
|
}, [
|
|
134
143
|
G,
|
|
135
144
|
O,
|
|
136
|
-
|
|
145
|
+
Ft
|
|
137
146
|
]);
|
|
138
147
|
h(() => {
|
|
139
148
|
_(null), O.getDetails().then((t) => {
|
|
@@ -142,7 +151,7 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
142
151
|
console.warn(t), B(!0), _(z), et(null);
|
|
143
152
|
});
|
|
144
153
|
}, [O, ot]);
|
|
145
|
-
const
|
|
154
|
+
const Qt = y(s, () => ({ isPictureEditor: () => !0 }), []), Yt = lt.image?.sourceRect, Wt = d(() => ((t) => {
|
|
146
155
|
const { left: e = 0, top: o = 0, right: r = 0, bottom: i = 0 } = t ?? {}, n = (100 - e - r) / 100, l = (100 - o - i) / 100;
|
|
147
156
|
return {
|
|
148
157
|
left: -e / n + "%",
|
|
@@ -150,7 +159,7 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
150
159
|
width: 100 / n + "%",
|
|
151
160
|
height: 100 / l + "%"
|
|
152
161
|
};
|
|
153
|
-
})(
|
|
162
|
+
})(Yt), [Yt]), Xt = d(() => {
|
|
154
163
|
if ($ || tt) return W ? f("div", { style: {
|
|
155
164
|
backgroundPosition: `${X}px ${A}px`,
|
|
156
165
|
backgroundImage: `url(${$})`,
|
|
@@ -162,7 +171,7 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
162
171
|
} }) : f("img", {
|
|
163
172
|
style: {
|
|
164
173
|
position: "absolute",
|
|
165
|
-
...N ? C :
|
|
174
|
+
...N ? C : Wt,
|
|
166
175
|
border: N ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
|
|
167
176
|
backgroundColor: N ? "var(--sxl-color-base-100, white)" : void 0,
|
|
168
177
|
boxShadow: N ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
|
|
@@ -189,12 +198,12 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
189
198
|
W,
|
|
190
199
|
X,
|
|
191
200
|
A,
|
|
192
|
-
|
|
201
|
+
Wt,
|
|
193
202
|
N,
|
|
194
203
|
Y
|
|
195
204
|
]);
|
|
196
205
|
if (O.isDeleted()) return;
|
|
197
|
-
const
|
|
206
|
+
const At = I && (I.horizontal || I.vertical) ? `scale(${I.horizontal ? -1 : 1}, ${I.vertical ? -1 : 1})` : void 0, Rt = "none" === Z?.pointerEvents ? "none" : "visiblePainted", { left: Ht = 0, top: Mt = 0, right: Dt = 0, bottom: Gt = 0 } = lt.image?.stretch ?? {};
|
|
198
207
|
return m("div", {
|
|
199
208
|
className: "sxl-picture-editor",
|
|
200
209
|
style: {
|
|
@@ -202,42 +211,41 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
202
211
|
display: "flex",
|
|
203
212
|
flex: "1 1 100%",
|
|
204
213
|
filter: R ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
|
|
205
|
-
transform:
|
|
214
|
+
transform: At,
|
|
206
215
|
transformOrigin: "center",
|
|
207
216
|
...Z,
|
|
208
217
|
pointerEvents: "none",
|
|
209
218
|
width: "100%",
|
|
210
219
|
height: "100%"
|
|
211
220
|
},
|
|
212
|
-
tabIndex: 0,
|
|
213
221
|
...K,
|
|
214
|
-
onPointerDownCapture:
|
|
222
|
+
onPointerDownCapture: zt ? (t) => {
|
|
215
223
|
if (0 !== t.button || t.ctrlKey || t.metaKey || t.shiftKey || !S || S.isSelected()) return;
|
|
216
|
-
|
|
224
|
+
jt.current?.();
|
|
217
225
|
const e = t.currentTarget.ownerDocument, { pointerId: o, clientX: r, clientY: i, timeStamp: n } = t.nativeEvent, l = (t) => {
|
|
218
226
|
if (t.pointerId !== o) return;
|
|
219
|
-
if (
|
|
227
|
+
if (jt.current?.(), !(Math.abs(t.clientX - r) <= 4 && Math.abs(t.clientY - i) <= 4 && t.timeStamp - n <= 500)) return;
|
|
220
228
|
const e = O.getHyperlink();
|
|
221
|
-
e &&
|
|
229
|
+
e && Ft(e);
|
|
222
230
|
}, s = (t) => {
|
|
223
|
-
t.pointerId === o &&
|
|
231
|
+
t.pointerId === o && jt.current?.();
|
|
224
232
|
};
|
|
225
|
-
e.addEventListener("pointerup", l), e.addEventListener("pointercancel", s),
|
|
226
|
-
|
|
233
|
+
e.addEventListener("pointerup", l), e.addEventListener("pointercancel", s), jt.current = () => {
|
|
234
|
+
jt.current = null, e.removeEventListener("pointerup", l), e.removeEventListener("pointercancel", s);
|
|
227
235
|
};
|
|
228
236
|
} : void 0,
|
|
229
|
-
onPointerEnter:
|
|
230
|
-
|
|
237
|
+
onPointerEnter: zt ? () => {
|
|
238
|
+
Ct(O);
|
|
231
239
|
} : void 0,
|
|
232
|
-
onPointerLeave:
|
|
233
|
-
|
|
240
|
+
onPointerLeave: zt ? () => {
|
|
241
|
+
Ct((t) => t === O ? null : t);
|
|
234
242
|
} : void 0,
|
|
235
243
|
onKeyDownCapture: (t) => {
|
|
236
244
|
J?.(t);
|
|
237
245
|
},
|
|
238
|
-
ref:
|
|
246
|
+
ref: Qt,
|
|
239
247
|
children: [
|
|
240
|
-
vt &&
|
|
248
|
+
vt && Pt ? f("svg", {
|
|
241
249
|
className: "sxl-picture-fill",
|
|
242
250
|
viewBox: `0 0 ${st} ${at}`,
|
|
243
251
|
preserveAspectRatio: "none",
|
|
@@ -246,26 +254,26 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
246
254
|
children: f(n, {
|
|
247
255
|
geometry: vt,
|
|
248
256
|
style: {
|
|
249
|
-
...
|
|
257
|
+
...Pt,
|
|
250
258
|
stroke: null,
|
|
251
259
|
strokeGradient: void 0,
|
|
252
260
|
strokeWidth: 0
|
|
253
261
|
},
|
|
254
262
|
zoom: F,
|
|
255
|
-
grid:
|
|
256
|
-
hit:
|
|
263
|
+
grid: St,
|
|
264
|
+
hit: Rt
|
|
257
265
|
})
|
|
258
266
|
}) : null,
|
|
259
|
-
|
|
267
|
+
kt ? f("svg", {
|
|
260
268
|
width: 0,
|
|
261
269
|
height: 0,
|
|
262
270
|
style: { position: "absolute" },
|
|
263
271
|
"aria-hidden": !0,
|
|
264
272
|
children: f("defs", { children: f("clipPath", {
|
|
265
|
-
id:
|
|
273
|
+
id: bt,
|
|
266
274
|
clipPathUnits: "objectBoundingBox",
|
|
267
275
|
children: f("path", {
|
|
268
|
-
d:
|
|
276
|
+
d: kt,
|
|
269
277
|
transform: `scale(${1 / st} ${1 / at})`
|
|
270
278
|
})
|
|
271
279
|
}) })
|
|
@@ -275,24 +283,24 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
275
283
|
style: {
|
|
276
284
|
position: "absolute",
|
|
277
285
|
...C,
|
|
278
|
-
clipPath:
|
|
286
|
+
clipPath: kt ? `url(#${bt})` : void 0,
|
|
279
287
|
pointerEvents: Z?.pointerEvents ?? "auto",
|
|
280
|
-
cursor:
|
|
288
|
+
cursor: zt && !S?.isSelected() ? "pointer" : void 0
|
|
281
289
|
},
|
|
282
290
|
children: m("div", {
|
|
283
291
|
className: "sxl-picture-image",
|
|
284
292
|
style: {
|
|
285
293
|
position: "absolute",
|
|
286
|
-
left: `${
|
|
287
|
-
top: `${
|
|
288
|
-
right: `${
|
|
289
|
-
bottom: `${
|
|
294
|
+
left: `${Ht}%`,
|
|
295
|
+
top: `${Mt}%`,
|
|
296
|
+
right: `${Dt}%`,
|
|
297
|
+
bottom: `${Gt}%`,
|
|
290
298
|
overflow: "hidden"
|
|
291
299
|
},
|
|
292
|
-
children: [L || N ? void 0 : U,
|
|
300
|
+
children: [L || N ? void 0 : U, Xt]
|
|
293
301
|
})
|
|
294
302
|
}),
|
|
295
|
-
vt &&
|
|
303
|
+
vt && Pt && Pt.strokeWidth > 0 ? f("svg", {
|
|
296
304
|
className: "sxl-picture-border",
|
|
297
305
|
viewBox: `0 0 ${st} ${at}`,
|
|
298
306
|
preserveAspectRatio: "none",
|
|
@@ -301,14 +309,14 @@ var P = (t) => Math.round(1e3 * t) / 1e3, k = (t, e, o) => {
|
|
|
301
309
|
children: f(n, {
|
|
302
310
|
geometry: vt,
|
|
303
311
|
style: {
|
|
304
|
-
...
|
|
312
|
+
...Pt,
|
|
305
313
|
fill: null,
|
|
306
314
|
gradient: void 0,
|
|
307
315
|
image: void 0
|
|
308
316
|
},
|
|
309
317
|
zoom: F,
|
|
310
|
-
grid:
|
|
311
|
-
hit:
|
|
318
|
+
grid: St,
|
|
319
|
+
hit: Rt
|
|
312
320
|
})
|
|
313
321
|
}) : null
|
|
314
322
|
]
|
package/node/esm/shape.mjs
CHANGED
|
@@ -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.24
|
|
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 o } from "./
|
|
11
|
-
import { i as r, n as s, r as i, t as l } from "./
|
|
7
|
+
import { t as e } from "./DUzvBfMhVRALWCyY.mjs";
|
|
8
|
+
import { n as t } from "./D1Kny6jQY-Z5cM3U.mjs";
|
|
9
|
+
import { t as n } from "./BlahUrDcsABBUCM0.mjs";
|
|
10
|
+
import { t as o } from "./fFLn4uIFYXSk57YZ.mjs";
|
|
11
|
+
import { i as r, n as s, r as i, t as l } from "./CtBn6NAJs8ogJXEf.mjs";
|
|
12
12
|
import { forwardRef as a, memo as c, useCallback as p, useEffect as d, useMemo as h, useReducer as u, useRef as m, useState as g } from "react";
|
|
13
13
|
import { jsx as f, jsxs as y } from "react/jsx-runtime";
|
|
14
14
|
import { messageKey as v } from "@sheetxl/utils";
|
package/node/esm/slicer.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.24
|
|
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 { i as r, r as o, t as l } from "./
|
|
7
|
+
import { t as e } from "./DUzvBfMhVRALWCyY.mjs";
|
|
8
|
+
import { n as t } from "./D1Kny6jQY-Z5cM3U.mjs";
|
|
9
|
+
import { i as r, r as o, t as l } from "./9vtv3spOcuota3Vb.mjs";
|
|
10
10
|
import { IFont as i } from "@sheetxl/sdk";
|
|
11
11
|
import { forwardRef as n, memo as s, useCallback as a, useEffect as c, useLayoutEffect as d, useMemo as h, useReducer as p, useRef as u, useState as m } from "react";
|
|
12
12
|
import { jsx as g, jsxs as x } from "react/jsx-runtime";
|
|
@@ -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.24
|
|
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 "./B0EM467vxmzaUp9t.mjs";
|
|
8
8
|
import { ChartEditor as t } from "./chart.mjs";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
10
|
import { messageKey as s, t as o } from "@sheetxl/utils";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/react",
|
|
3
3
|
"description": "React - React components needed to build advanced grid and spreadsheet UIs.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.24",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
90
90
|
"@dnd-kit/sortable": "^10.0.0",
|
|
91
91
|
"@dnd-kit/utilities": "^3.2.2",
|
|
92
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
93
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
94
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
95
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
96
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
92
|
+
"@sheetxl/grid-react": "^0.8.0-beta.24",
|
|
93
|
+
"@sheetxl/io": "^0.8.0-beta.24",
|
|
94
|
+
"@sheetxl/sdk": "^0.8.0-beta.24",
|
|
95
|
+
"@sheetxl/utils": "^0.8.0-beta.24",
|
|
96
|
+
"@sheetxl/utils-react": "^0.8.0-beta.24",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
98
|
"echarts": "~6.1.0",
|
|
99
99
|
"react-merge-refs": "^3.0.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"react-dom": "^19.0.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@sheetxl/io-xlsx": "^0.8.0-beta.
|
|
107
|
+
"@sheetxl/io-xlsx": "^0.8.0-beta.24",
|
|
108
108
|
"@types/react": "^19.3.0",
|
|
109
109
|
"@types/react-dom": "^19.3.0"
|
|
110
110
|
}
|
|
@@ -35,6 +35,13 @@ export interface IWorkbookAttributes {
|
|
|
35
35
|
* `null` until the scope is created (or for a bare chromeless grid with no ambient command root).
|
|
36
36
|
*/
|
|
37
37
|
getCommandScope: () => Command.CommandScope | null;
|
|
38
|
+
/**
|
|
39
|
+
* Resolves once everything on screen has finished drawing: pictures decoded, charts laid out.
|
|
40
|
+
* Unlike {@link WorkbookElementProps.onRenderSettled} it is never cut short by
|
|
41
|
+
* {@link WorkbookElementProps.renderSettleTimeout}, so it suits a capture (a thumbnail, a
|
|
42
|
+
* screenshot). Wait for the next paint after it before reading the screen.
|
|
43
|
+
*/
|
|
44
|
+
whenRenderSettled: () => Promise<void>;
|
|
38
45
|
/**
|
|
39
46
|
* For runtime type checking
|
|
40
47
|
*/
|
|
@@ -48,6 +55,14 @@ export interface IWorkbookElement extends HTMLDivElement, IWorkbookAttributes {
|
|
|
48
55
|
export type WorkbookLoadEvent = {
|
|
49
56
|
source: IWorkbookElement;
|
|
50
57
|
};
|
|
58
|
+
/** What {@link WorkbookElementProps.onRenderSettled} is handed. */
|
|
59
|
+
export type WorkbookRenderSettledEvent = WorkbookLoadEvent & {
|
|
60
|
+
/**
|
|
61
|
+
* `true` when {@link WorkbookElementProps.renderSettleTimeout} ran out first, so some drawing may
|
|
62
|
+
* still be on its way. Await {@link IWorkbookAttributes.whenRenderSettled} for all of it.
|
|
63
|
+
*/
|
|
64
|
+
timedOut: boolean;
|
|
65
|
+
};
|
|
51
66
|
/**
|
|
52
67
|
* What every workbook menu renderer is handed. Spread the rest on the menu's root.
|
|
53
68
|
*/
|
|
@@ -137,10 +152,28 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
|
|
|
137
152
|
*/
|
|
138
153
|
tokens?: ExplicitTokens;
|
|
139
154
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
155
|
+
* Called when the workbook first renders, before its pictures and charts have finished drawing.
|
|
156
|
+
* To reveal it, use {@link WorkbookElementProps.onRenderSettled}.
|
|
142
157
|
*/
|
|
143
158
|
onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Called once the first screen has finished drawing (pictures, charts, the sheet background) and
|
|
161
|
+
* painted, or once {@link WorkbookElementProps.renderSettleTimeout} runs out. The workbook shows at
|
|
162
|
+
* this moment, so it opens whole rather than filling in piece by piece.
|
|
163
|
+
*
|
|
164
|
+
* @remarks
|
|
165
|
+
* Fires once, after {@link WorkbookElementProps.onWorkbookLoad} (and after a returned promise
|
|
166
|
+
* resolves).
|
|
167
|
+
*/
|
|
168
|
+
onRenderSettled?: (event: WorkbookRenderSettledEvent) => void;
|
|
169
|
+
/**
|
|
170
|
+
* How long, in milliseconds after the first paint, the workbook stays hidden waiting for the first
|
|
171
|
+
* screen to finish drawing. Whatever is still loading then appears when it is ready. `0` shows the
|
|
172
|
+
* workbook at its first paint; `Infinity` waits for everything.
|
|
173
|
+
*
|
|
174
|
+
* @defaultValue 300
|
|
175
|
+
*/
|
|
176
|
+
renderSettleTimeout?: number;
|
|
144
177
|
/**
|
|
145
178
|
* Called with the workbook once {@link WorkbookElementProps.workbook} resolves, and again whenever
|
|
146
179
|
* a new input resolves to a different one. Until the first input resolves, or if an input fails,
|