@sheetxl/react 0.8.0-beta.22 → 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/{Bjzo7g25tw9kTCYC.mjs → 6KeWPjMKNZY8i19M.mjs} +2 -2
- package/browser/esm/{CJVcfqrty5b-eowN.mjs → 9t5N76NQ0awbiItG.mjs} +2 -2
- package/browser/esm/{QKnTzTdIYAMcBU8r.mjs → B-rvtChAVnzrPJsd.mjs} +1 -1
- package/browser/esm/{DxsGY5rYjITV3SLK.mjs → B0asaf6iVJnOyxYq.mjs} +1 -1
- package/browser/esm/{np1ChcItFltS6AC5.mjs → BoljuF1xywgBQ3vp.mjs} +1 -1
- package/browser/esm/{CgOhJ3utK7aSQm26.mjs → BuDfdWztNZKCN_Ld.mjs} +1 -1
- package/browser/esm/{D7P7zWW2gdWclI2p.mjs → BwuvgXRS-KMp6XCe.mjs} +3 -3
- package/browser/esm/{Biz8qA4-1wRN8de2.mjs → By0ADE8R8h3hKM64.mjs} +1 -1
- package/browser/esm/{DyFeCww9e_4G9c-1.mjs → CGazs9mfVVzc04Y7.mjs} +178 -158
- package/browser/esm/{DgmkBz2cYtVZ8tXv.mjs → CXX4sovIFgAQsSxN.mjs} +1 -1
- package/browser/esm/{D8NUgUzdI7YFxyyA.mjs → CaV--rSRIoGsErhZ.mjs} +7 -7
- package/browser/esm/{D01C312OntVURMN9.mjs → CfIPv0YuwhlpYzf2.mjs} +122 -122
- package/browser/esm/{mJyEnJIX0iGfGtvE.mjs → Cgbmuy79jiY1HjS3.mjs} +1 -1
- package/browser/esm/{HQkKZC6SPUdQwgxi.mjs → CmoM33qZfV9EioFC.mjs} +1 -1
- package/browser/esm/{hTeTTb8oYTssk6EY.mjs → DHncl8rL4Tri3OBI.mjs} +1 -1
- package/browser/esm/{D0g7sllamMog1m-Z.mjs → DK8YNIcwWG9l7BpT.mjs} +3 -3
- package/browser/esm/{BPS1PDZKyF6ivJwa.mjs → DQfqezyi9TgWoADc.mjs} +1 -1
- package/browser/esm/{DH8xeknZXWn7AV5q.mjs → Dw1dknWgStq1jnIp.mjs} +6 -6
- package/browser/esm/{B9rbGikcuRq1OnhM.mjs → IF4tK8a7bQsrq8gd.mjs} +2 -2
- package/browser/esm/{BqIbT28MM3SBdvh_.mjs → ISe4yn20JJcyYnhz.mjs} +2 -2
- package/browser/esm/{mUKvsPCmRWzQke-M.mjs → UKEdlUOzahaOstGm.mjs} +1 -1
- package/browser/esm/{DhGJU1camaOf7KOq.mjs → W00O27emy3mpzSYw.mjs} +4 -4
- package/browser/esm/chart.mjs +11 -11
- package/browser/esm/control.mjs +16 -16
- package/browser/esm/{C7rc3CMd_XOITW1V.mjs → dwz-qrgJG3GabtJ0.mjs} +7 -7
- package/browser/esm/group.mjs +29 -29
- package/browser/esm/index.mjs +6469 -6440
- package/browser/esm/{B9wkino8VMasq6E3.mjs → jmoe5Dbqx1WjBgUO.mjs} +2 -2
- package/browser/esm/note.mjs +10 -10
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/{CrTfqdSwWScJN566.mjs → plaFoOG2sGGR9984.mjs} +1 -1
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +55 -50
- package/node/esm/{GG78Gq3CY8SDS-48.mjs → 7HceIR_VkgIhKM8f.mjs} +12 -12
- package/node/esm/{CZc2QH8i-TgW9nGI.mjs → 9vtv3spOcuota3Vb.mjs} +1 -1
- package/node/esm/{BPMjPMRyVTEZq_6j.mjs → B0EM467vxmzaUp9t.mjs} +1 -1
- package/node/esm/{BpcTu_chuDjr_XFv.mjs → BUiM5r_ksWRJMWPn.mjs} +1 -1
- package/node/esm/{CE5fMGMmykts2yJP.mjs → BYhlpUYwaNUr67Yi.mjs} +1 -1
- package/node/esm/{COlzVELrEvgm2STX.mjs → Bd_YMUKA8RxBL4G2.mjs} +4 -4
- package/node/esm/{DHTbAHbCiEWhilV_.mjs → BgCEqNCStGMDZ1QF.mjs} +1 -1
- package/node/esm/{FUQMKIiQQ5m3xzeO.mjs → BguHdiclysorJICc.mjs} +1 -1
- package/node/esm/{C3XXdc_UXH2g2W5E.mjs → BlahUrDcsABBUCM0.mjs} +1 -1
- package/node/esm/{C91YeRrspETjFcRc.mjs → Bub_Mjqm7gIOrcpM.mjs} +2 -2
- package/node/esm/{aLt3NYdUcYQu4Ur4.mjs → CH0kTLjibrtP2Cbj.mjs} +1 -1
- package/node/esm/{i4aPmKocZebCBeSd.mjs → CHPFQjpRp8efzowW.mjs} +6 -6
- package/node/esm/{l0GtU6LYlBywzc9T.mjs → CtBn6NAJs8ogJXEf.mjs} +2 -2
- package/node/esm/{CzQMRmArhJ6blZJp.mjs → D1Kny6jQY-Z5cM3U.mjs} +1 -1
- package/node/esm/{CcLUKcJROXrbSXjb.mjs → D2CFdcWIygfybLGD.mjs} +1 -1
- package/node/esm/{CfpNgRvWmu36cTfV.mjs → DFc3ldcMwcvqOz8-.mjs} +5 -5
- package/node/esm/{cju5Gx-t_74o116W.mjs → DHtgb2GVYcKg4gyl.mjs} +2 -2
- package/node/esm/{DX7ysYSfnigj0ak8.mjs → DUzvBfMhVRALWCyY.mjs} +1 -1
- package/node/esm/{DxKxx-yEkSydHyWQ.mjs → DXMUS-l19Pg6Apgt.mjs} +1 -1
- package/node/esm/chart.mjs +19 -19
- package/node/esm/control.mjs +16 -16
- package/node/esm/{BcASbEBHzMKiXn5i.mjs → fFLn4uIFYXSk57YZ.mjs} +1 -1
- package/node/esm/group.mjs +27 -27
- package/node/esm/index.mjs +3640 -3610
- package/node/esm/note.mjs +10 -10
- package/node/esm/picture.mjs +182 -161
- package/node/esm/shape.mjs +169 -169
- package/node/esm/slicer.mjs +100 -95
- package/node/esm/{-6T2zqPkDm0WgUKI.mjs → xDrQGeYKZL5Q1dWB.mjs} +2 -2
- package/package.json +7 -7
- package/types/src/cell/CornerTriangle.d.ts +2 -1
- package/types/src/editor/SheetCellEditorLayer.d.ts +0 -5
- package/types/src/editor/formulaPresentation.d.ts +4 -3
- package/types/src/movable/IMovableArea.d.ts +11 -0
- package/types/src/sheet/IWorksheetElement.d.ts +13 -4
- package/types/src/theme/ExplicitTokens.d.ts +18 -0
- package/types/src/theme/ThemeRootStyles.d.ts +31 -0
- package/types/src/theme/buildTokensCSS.d.ts +15 -0
- package/types/src/theme/index.d.ts +2 -4
- package/types/src/theme/useAppColorScheme.d.ts +4 -1
- package/types/src/theme/useGridColorScheme.d.ts +2 -1
- package/types/src/theme/useSystemColors.d.ts +0 -14
- package/types/src/workbook/IWorkbookElement.d.ts +71 -10
|
@@ -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 "./B0asaf6iVJnOyxYq.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.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 { 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 "./6KeWPjMKNZY8i19M.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.24
|
|
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.24
|
|
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.24
|
|
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.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -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.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 "./
|
|
8
|
-
import { i as t, n, r, t as i } from "./
|
|
7
|
+
import { n as e } from "./BoljuF1xywgBQ3vp.mjs";
|
|
8
|
+
import { i as t, n, r, t as i } from "./CGazs9mfVVzc04Y7.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,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.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -1,26 +1,26 @@
|
|
|
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 { i as r, r as i, t as a } from "./
|
|
11
|
-
import { forwardRef as o, memo as s,
|
|
12
|
-
import { jsx as
|
|
7
|
+
import { t as e } from "./DQfqezyi9TgWoADc.mjs";
|
|
8
|
+
import { n as t } from "./UKEdlUOzahaOstGm.mjs";
|
|
9
|
+
import { t as n } from "./BoljuF1xywgBQ3vp.mjs";
|
|
10
|
+
import { i as r, r as i, t as a } from "./jmoe5Dbqx1WjBgUO.mjs";
|
|
11
|
+
import { forwardRef as o, memo as s, useCallback as c, useEffect as l, useId as u, useMemo as d, useReducer as ee, useRef as te, useState as f } from "react";
|
|
12
|
+
import { jsx as p, jsxs as ne } from "react/jsx-runtime";
|
|
13
13
|
import { useSurfaceStateSetter as re } from "@sheetxl/grid-react";
|
|
14
14
|
import { ReactUtils as ie, useImperativeElement as ae, useNotifier as oe, usePendingRender as se } from "@sheetxl/utils-react";
|
|
15
|
-
var
|
|
16
|
-
let r =
|
|
15
|
+
var m = (e) => Math.round(1e3 * e) / 1e3, h = (e, t, n) => {
|
|
16
|
+
let r = m(50 * (1 - e.width / (n * t.width))), i = m(50 * (1 - e.height / (n * t.height)));
|
|
17
17
|
return {
|
|
18
18
|
left: r,
|
|
19
19
|
right: r,
|
|
20
20
|
top: i,
|
|
21
21
|
bottom: i
|
|
22
22
|
};
|
|
23
|
-
},
|
|
23
|
+
}, g = (e, t) => h(e, t, Math.max(e.width / t.width, e.height / t.height)), _ = (e, t) => h(e, t, Math.min(e.width / t.width, e.height / t.height)), v = (e, t, n) => {
|
|
24
24
|
let r = Math.min(e.width, e.height * n), i = r / n, { left: a = 0, top: o = 0, right: s = 0, bottom: c = 0 } = t, l = (e.width - r) / 2 / e.width * (100 - a - s), u = (e.height - i) / 2 / e.height * (100 - o - c);
|
|
25
25
|
return {
|
|
26
26
|
bounds: {
|
|
@@ -30,18 +30,18 @@ var p = (e) => Math.round(1e3 * e) / 1e3, m = (e, t, n) => {
|
|
|
30
30
|
height: i
|
|
31
31
|
},
|
|
32
32
|
crop: {
|
|
33
|
-
left:
|
|
34
|
-
right:
|
|
35
|
-
top:
|
|
36
|
-
bottom:
|
|
33
|
+
left: m(a + l),
|
|
34
|
+
right: m(s + l),
|
|
35
|
+
top: m(o + u),
|
|
36
|
+
bottom: m(c + u)
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, y = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0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/tv9s//3djwA=", b = {
|
|
40
40
|
left: "0%",
|
|
41
41
|
top: "0%",
|
|
42
42
|
width: "100%",
|
|
43
43
|
height: "100%"
|
|
44
|
-
},
|
|
44
|
+
}, x = {
|
|
45
45
|
position: "absolute",
|
|
46
46
|
left: 0,
|
|
47
47
|
top: 0,
|
|
@@ -49,84 +49,107 @@ var p = (e) => Math.round(1e3 * e) / 1e3, m = (e, t, n) => {
|
|
|
49
49
|
height: "100%",
|
|
50
50
|
display: "block",
|
|
51
51
|
pointerEvents: "none"
|
|
52
|
-
},
|
|
53
|
-
let { children:
|
|
54
|
-
e(
|
|
55
|
-
onBoundsChange:
|
|
56
|
-
onSelectionChange:
|
|
52
|
+
}, S = s(o((o, s) => {
|
|
53
|
+
let { children: m, disabled: h, style: g, picture: _, movable: v, zoom: S = 1, gesture: ce, description: le, tile: C, offsetX: ue = 0, offsetY: w = 0, isDragging: de, onHide: fe, onShow: pe, onDragZone: me, onTap: T, adornmentHost: he, flip: E, onKeyDownCapture: ge, onFocus: _e, onBlur: ve, loadingPanel: ye, ...be } = o, [D, O] = f(!1), [k, xe] = f(null), [A, j] = f(null), [M, N] = f(null), [Se, P] = ee((e) => e + 1, 0);
|
|
54
|
+
e(_, { onAnyChange: P }), e(v ?? null, {
|
|
55
|
+
onBoundsChange: P,
|
|
56
|
+
onSelectionChange: P
|
|
57
57
|
});
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
if (!
|
|
58
|
+
let Ce = t(), F = oe(), I = _.toJSON(), { width: L, height: R, rotation: z } = r(v), B = L > 0 && R > 0, V = !!I.fill || !!I.stroke || I.geometry !== void 0 && I.geometry !== "rect", we = I.adjustments ? JSON.stringify(I.adjustments) : "", [H, U] = f(null), [Te, W] = f(!1);
|
|
59
|
+
l(() => {
|
|
60
|
+
if (!V || !B) return U(null), void W(!1);
|
|
61
61
|
let e = !0;
|
|
62
|
-
return
|
|
63
|
-
e && (
|
|
62
|
+
return _.getGeometry(L, R).then((t) => {
|
|
63
|
+
e && (U(t), W(!0));
|
|
64
64
|
}, () => {
|
|
65
|
-
e && (
|
|
65
|
+
e && (U(null), W(!0));
|
|
66
66
|
}), () => {
|
|
67
67
|
e = !1;
|
|
68
68
|
};
|
|
69
69
|
}, [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
_,
|
|
71
|
+
V,
|
|
72
|
+
B,
|
|
73
|
+
I.geometry,
|
|
74
74
|
we
|
|
75
75
|
]);
|
|
76
|
-
let
|
|
76
|
+
let G = d(() => H && B ? H.getWidth() === L && H.getHeight() === R ? H : H.resize(L, R) : null, [
|
|
77
|
+
H,
|
|
77
78
|
B,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
L,
|
|
80
|
+
R
|
|
81
|
+
]), [Ee, De] = f(null);
|
|
82
|
+
l(() => {
|
|
83
|
+
if (!C || !A) return;
|
|
84
|
+
let e = !0, t = new Image();
|
|
85
|
+
return t.src = A, (typeof t.decode == "function" ? t.decode() : Promise.resolve()).catch(() => {}).then(() => {
|
|
86
|
+
e && De(A);
|
|
87
|
+
}), () => {
|
|
88
|
+
e = !1;
|
|
89
|
+
};
|
|
90
|
+
}, [C, A]), se(!D && (C ? Ee !== A || !A : !k) || V && B && !Te);
|
|
91
|
+
let K = Ce?.getStyles() ?? null, q = d(() => V ? i({
|
|
92
|
+
fill: I.fill,
|
|
93
|
+
stroke: I.stroke,
|
|
86
94
|
style: null
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
]),
|
|
93
|
-
if (!
|
|
95
|
+
}, K) : null, [
|
|
96
|
+
V,
|
|
97
|
+
I.fill,
|
|
98
|
+
I.stroke,
|
|
99
|
+
K
|
|
100
|
+
]), Oe = `${u().replace(/[^A-Za-z0-9_-]/g, "")}-clip`, J = d(() => {
|
|
101
|
+
if (!G || I.geometry === void 0 || I.geometry === "rect") return null;
|
|
94
102
|
let e = [];
|
|
95
|
-
return
|
|
103
|
+
return G.forEachPath((t) => {
|
|
96
104
|
t.layer === "fill" && e.push(t.d);
|
|
97
105
|
}), e.length > 0 ? e.join(" ") : null;
|
|
98
|
-
}, [
|
|
106
|
+
}, [G, I.geometry]), ke = E?.horizontal ?? !1, Ae = E?.vertical ?? !1, je = d(() => z % 360 == 0 && B ? {
|
|
99
107
|
dpr: ie.getDevicePixelRatio(),
|
|
100
|
-
zoom:
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
103
|
-
flipH:
|
|
104
|
-
flipV:
|
|
108
|
+
zoom: S,
|
|
109
|
+
width: L,
|
|
110
|
+
height: R,
|
|
111
|
+
flipH: ke,
|
|
112
|
+
flipV: Ae
|
|
105
113
|
} : null, [
|
|
114
|
+
z,
|
|
115
|
+
B,
|
|
116
|
+
S,
|
|
106
117
|
L,
|
|
107
118
|
R,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
ke,
|
|
120
|
+
Ae
|
|
121
|
+
]), Y = _.getHyperlink?.() ?? null, X = re(n, null), Z = te(null);
|
|
122
|
+
l(() => () => {
|
|
123
|
+
Z.current?.(), X((e) => e === _ ? null : e);
|
|
124
|
+
}, [_, X]), l(() => {
|
|
125
|
+
Y || X((e) => e === _ ? null : e);
|
|
126
|
+
}, [
|
|
127
|
+
!Y,
|
|
128
|
+
_,
|
|
129
|
+
X
|
|
130
|
+
]);
|
|
131
|
+
let Q = c((e) => {
|
|
132
|
+
v?.unselect(), e.open().catch((e) => {
|
|
133
|
+
F.showError?.(e instanceof Error ? e : String(e));
|
|
134
|
+
});
|
|
135
|
+
}, [v, F]);
|
|
136
|
+
l(() => {
|
|
137
|
+
T?.(() => {
|
|
138
|
+
let e = _.getHyperlink?.();
|
|
139
|
+
return !!e && (Q(e), !0);
|
|
140
|
+
});
|
|
118
141
|
}, [
|
|
119
|
-
|
|
120
|
-
|
|
142
|
+
T,
|
|
143
|
+
_,
|
|
121
144
|
Q
|
|
122
|
-
]),
|
|
123
|
-
|
|
124
|
-
|
|
145
|
+
]), l(() => {
|
|
146
|
+
j(null), _.getDetails().then((e) => {
|
|
147
|
+
O(!1), j(e.asUrl()), N(e.asSVGText?.() || null);
|
|
125
148
|
}).catch((e) => {
|
|
126
|
-
console.warn(e),
|
|
149
|
+
console.warn(e), O(!0), j(y), N(null);
|
|
127
150
|
});
|
|
128
|
-
}, [
|
|
129
|
-
let
|
|
151
|
+
}, [_, Se]);
|
|
152
|
+
let Me = ae(s, () => ({ isPictureEditor: () => !0 }), []), Ne = I.image?.sourceRect, Pe = d(() => ((e) => {
|
|
130
153
|
let { left: t = 0, top: n = 0, right: r = 0, bottom: i = 0 } = e ?? {}, a = (100 - t - r) / 100, o = (100 - n - i) / 100;
|
|
131
154
|
return {
|
|
132
155
|
left: -t / a + "%",
|
|
@@ -134,170 +157,167 @@ var p = (e) => Math.round(1e3 * e) / 1e3, m = (e, t, n) => {
|
|
|
134
157
|
width: 100 / a + "%",
|
|
135
158
|
height: 100 / o + "%"
|
|
136
159
|
};
|
|
137
|
-
})(
|
|
138
|
-
if (
|
|
139
|
-
backgroundPosition: `${
|
|
140
|
-
backgroundImage: `url(${
|
|
160
|
+
})(Ne), [Ne]), Fe = d(() => {
|
|
161
|
+
if (A || M) return C ? p("div", { style: {
|
|
162
|
+
backgroundPosition: `${ue}px ${w}px`,
|
|
163
|
+
backgroundImage: `url(${A})`,
|
|
141
164
|
backgroundRepeat: "repeat",
|
|
142
165
|
backgroundSize: "auto",
|
|
143
166
|
width: "100%",
|
|
144
167
|
height: "100%",
|
|
145
|
-
filter: "var(--
|
|
146
|
-
} }) :
|
|
168
|
+
filter: "var(--_sxl-image-filter)"
|
|
169
|
+
} }) : p("img", {
|
|
147
170
|
style: {
|
|
148
171
|
position: "absolute",
|
|
149
|
-
...
|
|
150
|
-
border:
|
|
151
|
-
backgroundColor:
|
|
152
|
-
boxShadow:
|
|
153
|
-
objectFit:
|
|
154
|
-
opacity: +!!
|
|
155
|
-
filter: "var(--
|
|
172
|
+
...D ? b : Pe,
|
|
173
|
+
border: D ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
|
|
174
|
+
backgroundColor: D ? "var(--sxl-color-base-100, white)" : void 0,
|
|
175
|
+
boxShadow: D ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
|
|
176
|
+
objectFit: D ? "contain" : void 0,
|
|
177
|
+
opacity: +!!k,
|
|
178
|
+
filter: "var(--_sxl-image-filter)"
|
|
156
179
|
},
|
|
157
180
|
draggable: !1,
|
|
158
|
-
src:
|
|
181
|
+
src: A ?? void 0,
|
|
159
182
|
onLoad: () => {
|
|
160
|
-
|
|
183
|
+
xe(!0);
|
|
161
184
|
},
|
|
162
185
|
onError: ({ currentTarget: e }) => {
|
|
163
|
-
console.log("error"), e.onerror = null,
|
|
186
|
+
console.log("error"), e.onerror = null, j(y), O(!0);
|
|
164
187
|
},
|
|
165
|
-
alt:
|
|
188
|
+
alt: le ?? `${_.getType()}`
|
|
166
189
|
});
|
|
167
190
|
}, [
|
|
168
|
-
O,
|
|
169
|
-
g,
|
|
170
191
|
k,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
192
|
+
_,
|
|
193
|
+
A,
|
|
194
|
+
M,
|
|
195
|
+
de,
|
|
175
196
|
C,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
197
|
+
ue,
|
|
198
|
+
w,
|
|
199
|
+
Pe,
|
|
200
|
+
D,
|
|
201
|
+
le
|
|
179
202
|
]);
|
|
180
|
-
if (
|
|
181
|
-
let
|
|
203
|
+
if (_.isDeleted()) return;
|
|
204
|
+
let Ie = E && (E.horizontal || E.vertical) ? `scale(${E.horizontal ? -1 : 1}, ${E.vertical ? -1 : 1})` : void 0, $ = g?.pointerEvents === "none" ? "none" : "visiblePainted", { left: Le = 0, top: Re = 0, right: ze = 0, bottom: Be = 0 } = I.image?.stretch ?? {};
|
|
182
205
|
return ne("div", {
|
|
183
206
|
className: "sxl-picture-editor",
|
|
184
207
|
style: {
|
|
185
208
|
position: "relative",
|
|
186
209
|
display: "flex",
|
|
187
210
|
flex: "1 1 100%",
|
|
188
|
-
filter:
|
|
189
|
-
transform:
|
|
211
|
+
filter: de ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
|
|
212
|
+
transform: Ie,
|
|
190
213
|
transformOrigin: "center",
|
|
191
|
-
...
|
|
214
|
+
...g,
|
|
192
215
|
pointerEvents: "none",
|
|
193
216
|
width: "100%",
|
|
194
217
|
height: "100%"
|
|
195
218
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
$.current?.();
|
|
219
|
+
...be,
|
|
220
|
+
onPointerDownCapture: Y ? (e) => {
|
|
221
|
+
if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || !v || v.isSelected()) return;
|
|
222
|
+
Z.current?.();
|
|
201
223
|
let t = e.currentTarget.ownerDocument, { pointerId: n, clientX: r, clientY: i, timeStamp: a } = e.nativeEvent, o = (e) => {
|
|
202
|
-
if (e.pointerId !== n || (
|
|
203
|
-
let t =
|
|
204
|
-
t && (
|
|
205
|
-
Ce.showError?.(e instanceof Error ? e : String(e));
|
|
206
|
-
}));
|
|
224
|
+
if (e.pointerId !== n || (Z.current?.(), !(Math.abs(e.clientX - r) <= 4 && Math.abs(e.clientY - i) <= 4 && e.timeStamp - a <= 500))) return;
|
|
225
|
+
let t = _.getHyperlink();
|
|
226
|
+
t && Q(t);
|
|
207
227
|
}, s = (e) => {
|
|
208
|
-
e.pointerId === n &&
|
|
228
|
+
e.pointerId === n && Z.current?.();
|
|
209
229
|
};
|
|
210
|
-
t.addEventListener("pointerup", o), t.addEventListener("pointercancel", s),
|
|
211
|
-
|
|
230
|
+
t.addEventListener("pointerup", o), t.addEventListener("pointercancel", s), Z.current = () => {
|
|
231
|
+
Z.current = null, t.removeEventListener("pointerup", o), t.removeEventListener("pointercancel", s);
|
|
212
232
|
};
|
|
213
233
|
} : void 0,
|
|
214
|
-
onPointerEnter:
|
|
215
|
-
|
|
234
|
+
onPointerEnter: Y ? () => {
|
|
235
|
+
X(_);
|
|
216
236
|
} : void 0,
|
|
217
|
-
onPointerLeave:
|
|
218
|
-
|
|
237
|
+
onPointerLeave: Y ? () => {
|
|
238
|
+
X((e) => e === _ ? null : e);
|
|
219
239
|
} : void 0,
|
|
220
240
|
onKeyDownCapture: (e) => {
|
|
221
|
-
|
|
241
|
+
ge?.(e);
|
|
222
242
|
},
|
|
223
|
-
ref:
|
|
243
|
+
ref: Me,
|
|
224
244
|
children: [
|
|
225
|
-
|
|
245
|
+
G && q ? p("svg", {
|
|
226
246
|
className: "sxl-picture-fill",
|
|
227
|
-
viewBox: `0 0 ${
|
|
247
|
+
viewBox: `0 0 ${L} ${R}`,
|
|
228
248
|
preserveAspectRatio: "none",
|
|
229
249
|
overflow: "visible",
|
|
230
|
-
style:
|
|
231
|
-
children:
|
|
232
|
-
geometry:
|
|
250
|
+
style: x,
|
|
251
|
+
children: p(a, {
|
|
252
|
+
geometry: G,
|
|
233
253
|
style: {
|
|
234
|
-
...
|
|
254
|
+
...q,
|
|
235
255
|
stroke: null,
|
|
236
256
|
strokeGradient: void 0,
|
|
237
257
|
strokeWidth: 0
|
|
238
258
|
},
|
|
239
|
-
zoom:
|
|
240
|
-
grid:
|
|
241
|
-
hit:
|
|
259
|
+
zoom: S,
|
|
260
|
+
grid: je,
|
|
261
|
+
hit: $
|
|
242
262
|
})
|
|
243
263
|
}) : null,
|
|
244
|
-
|
|
264
|
+
J ? p("svg", {
|
|
245
265
|
width: 0,
|
|
246
266
|
height: 0,
|
|
247
267
|
style: { position: "absolute" },
|
|
248
268
|
"aria-hidden": !0,
|
|
249
|
-
children:
|
|
250
|
-
id:
|
|
269
|
+
children: p("defs", { children: p("clipPath", {
|
|
270
|
+
id: Oe,
|
|
251
271
|
clipPathUnits: "objectBoundingBox",
|
|
252
|
-
children:
|
|
253
|
-
d:
|
|
254
|
-
transform: `scale(${1 /
|
|
272
|
+
children: p("path", {
|
|
273
|
+
d: J,
|
|
274
|
+
transform: `scale(${1 / L} ${1 / R})`
|
|
255
275
|
})
|
|
256
276
|
}) })
|
|
257
277
|
}) : null,
|
|
258
|
-
|
|
278
|
+
p("div", {
|
|
259
279
|
className: "sxl-picture-clip",
|
|
260
280
|
style: {
|
|
261
281
|
position: "absolute",
|
|
262
|
-
...
|
|
263
|
-
clipPath:
|
|
264
|
-
pointerEvents:
|
|
265
|
-
cursor:
|
|
282
|
+
...b,
|
|
283
|
+
clipPath: J ? `url(#${Oe})` : void 0,
|
|
284
|
+
pointerEvents: g?.pointerEvents ?? "auto",
|
|
285
|
+
cursor: Y && !v?.isSelected() ? "pointer" : void 0
|
|
266
286
|
},
|
|
267
287
|
children: ne("div", {
|
|
268
288
|
className: "sxl-picture-image",
|
|
269
289
|
style: {
|
|
270
290
|
position: "absolute",
|
|
271
|
-
left: `${
|
|
272
|
-
top: `${
|
|
273
|
-
right: `${
|
|
274
|
-
bottom: `${
|
|
291
|
+
left: `${Le}%`,
|
|
292
|
+
top: `${Re}%`,
|
|
293
|
+
right: `${ze}%`,
|
|
294
|
+
bottom: `${Be}%`,
|
|
275
295
|
overflow: "hidden"
|
|
276
296
|
},
|
|
277
|
-
children: [
|
|
297
|
+
children: [k || D ? void 0 : ye, Fe]
|
|
278
298
|
})
|
|
279
299
|
}),
|
|
280
|
-
|
|
300
|
+
G && q && q.strokeWidth > 0 ? p("svg", {
|
|
281
301
|
className: "sxl-picture-border",
|
|
282
|
-
viewBox: `0 0 ${
|
|
302
|
+
viewBox: `0 0 ${L} ${R}`,
|
|
283
303
|
preserveAspectRatio: "none",
|
|
284
304
|
overflow: "visible",
|
|
285
|
-
style:
|
|
286
|
-
children:
|
|
287
|
-
geometry:
|
|
305
|
+
style: x,
|
|
306
|
+
children: p(a, {
|
|
307
|
+
geometry: G,
|
|
288
308
|
style: {
|
|
289
|
-
...
|
|
309
|
+
...q,
|
|
290
310
|
fill: null,
|
|
291
311
|
gradient: void 0,
|
|
292
312
|
image: void 0
|
|
293
313
|
},
|
|
294
|
-
zoom:
|
|
295
|
-
grid:
|
|
296
|
-
hit:
|
|
314
|
+
zoom: S,
|
|
315
|
+
grid: je,
|
|
316
|
+
hit: $
|
|
297
317
|
})
|
|
298
318
|
}) : null
|
|
299
319
|
]
|
|
300
320
|
});
|
|
301
321
|
}));
|
|
302
|
-
|
|
303
|
-
export {
|
|
322
|
+
S.displayName = "PictureEditor";
|
|
323
|
+
export { _ as i, v as n, g as r, S 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.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -1,22 +1,22 @@
|
|
|
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 "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./B0asaf6iVJnOyxYq.mjs";
|
|
8
|
+
import { t } from "./plaFoOG2sGGR9984.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";
|
|
12
12
|
var l = r(n((e, n) => {
|
|
13
|
-
let { children: r, disabled: c, style: l, movable: u, zoom: d = 1, description: f, isDragging: p, onHide: m, onShow: h, onDragZone: g,
|
|
13
|
+
let { children: r, disabled: c, style: l, movable: u, zoom: d = 1, description: f, isDragging: p, onHide: m, onShow: h, onDragZone: g, onTap: _, adornmentHost: v, flip: y, gesture: b, ...x } = e;
|
|
14
14
|
i(() => {}, [f]);
|
|
15
|
-
let
|
|
15
|
+
let S = o(n, () => ({ isEmptyFrame: () => !0 }), []), [C, { height: w, width: T }] = s(), E = t([S, C]);
|
|
16
16
|
return a("div", {
|
|
17
17
|
className: "sxl-unknown-editor",
|
|
18
|
-
...
|
|
19
|
-
ref:
|
|
18
|
+
...x,
|
|
19
|
+
ref: E,
|
|
20
20
|
style: {
|
|
21
21
|
width: "100%",
|
|
22
22
|
height: "100%",
|