@sheetxl/react 0.8.0-beta.12 → 0.8.0-beta.14
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/{DGG1auUKsjFbAazu.mjs → 3bA4ZNVK9px28j8g.mjs} +3 -3
- package/browser/esm/{CUekkfE6uwwsdQpc.mjs → B1mBZyt2eP2CpVwp.mjs} +1 -1
- package/browser/esm/{ZoS0cpNEBcv6p-Z1.mjs → B9bUlu6d3vrRZxS-.mjs} +3 -3
- package/browser/esm/BAhJx_sa3wR4i_0q.mjs +145 -0
- package/browser/esm/{BDlpRkuBok0Uu4Hn.mjs → BCZ5elyhp4P5oEuf.mjs} +1 -1
- package/browser/esm/BLYs69szBviI7Jjh.mjs +303 -0
- package/browser/esm/{D_usN3pWuCJU2GN-.mjs → BNyPX5tVpHU3d3Vj.mjs} +2 -2
- package/browser/esm/{_6Sb6ElRcZftxMNh.mjs → BSqY5OuRUNgKmwp8.mjs} +1 -1
- package/browser/esm/{D22NJmTiky4NL8tM.mjs → Bk4hW9MxdjC3CGlC.mjs} +1 -1
- package/browser/esm/{D2GydDzPuvIjdpok.mjs → BoJ5N_Kc7V9zyftG.mjs} +1 -1
- package/browser/esm/{C_LUq-BnguetvGZz.mjs → C1yjI8GDwCp8bC1Z.mjs} +2 -2
- package/browser/esm/{LBQDhVhz7S7i6a8i.mjs → C6TgQuQt88nz0-jL.mjs} +1 -1
- package/browser/esm/{CSFORKZ8zrVL_Y0w.mjs → CAT9L5BY3HAluoJf.mjs} +1 -1
- package/browser/esm/{DxEczXCHTerDemDP.mjs → CDf6czK5WuKJhq0y.mjs} +4 -4
- package/browser/esm/CoRairrEG42TjiZk.mjs +19 -0
- package/browser/esm/CuPu7ToiaqUerd85.mjs +401 -0
- package/browser/esm/{BapujiblfiXDlu67.mjs → D0Sg0TONmNBjIlEg.mjs} +1 -1
- package/browser/esm/{Cslk_qRdBSuJIi1O.mjs → DxwO-Y_gJ9IaBQ4B.mjs} +6 -6
- package/browser/esm/{DN3lqq95KY0K6f1x.mjs → K9YyKehkJlT3axZh.mjs} +1 -1
- package/browser/esm/NG_Q0Dq4JXnEWACp.mjs +341 -0
- package/browser/esm/{B4mT3G7GHwgDYFGP.mjs → PL83wgS5ferhptps.mjs} +2 -2
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +74 -73
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +3971 -3744
- package/browser/esm/{CtGhA0kS2MCfEsHN.mjs → nm3DZw1nJMIh89Dx.mjs} +3 -3
- package/browser/esm/note.mjs +5 -5
- package/browser/esm/picture.mjs +2 -81
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +112 -111
- package/browser/esm/{Ck1LbcsdSfKNi6xq.mjs → wQh060x4Bo_NqUYk.mjs} +1 -1
- package/node/esm/6VFNx4NTcuHaXbnF.mjs +146 -0
- package/node/esm/{CzN6c6KyxVmNvayz.mjs → BBm7LjTGVud73kml.mjs} +1 -1
- package/node/esm/{CH1DVfFhjdd_3pw1.mjs → BayAQ4VhPgK40T5V.mjs} +2 -2
- package/node/esm/{T5lfCrudsUnOTxEn.mjs → BgH9YejvQpQrZeHl.mjs} +1 -1
- package/node/esm/{iL9jKJcnED6oi0B4.mjs → ByTkh2-kGcBTZn9j.mjs} +1 -1
- package/node/esm/{DayGI0Bt57FDNbVF.mjs → C0HgFe1pYpEl1EgM.mjs} +1 -1
- package/node/esm/{MWges5ywL3aEdChp.mjs → CEyXz1TulkCpAv0t.mjs} +1 -1
- package/node/esm/{C0KLMCRb3sbd5Q20.mjs → CMSfxUMv1tFyNlRJ.mjs} +5 -5
- package/node/esm/{DWkPWuf5ZrLRMixG.mjs → CZfiN5xD1_Zws8z-.mjs} +15 -15
- package/node/esm/{DXiNwr6ZnXBe7TlG.mjs → D-lQa7ydREp9WwxP.mjs} +1 -1
- package/node/esm/{Bi2Jwc0zpweaNzKc.mjs → D2dDGnBtilmmDxBJ.mjs} +2 -2
- package/node/esm/{CNOLkUDURBElaaIf.mjs → DA6UdPMREzxobL8H.mjs} +3 -3
- package/node/esm/{YB_qExw23Ci4nMYy.mjs → Duu2zmr8YkGTo-iP.mjs} +2 -2
- package/node/esm/{Apcuz4_QtBHt7G47.mjs → Dztz6JUUcE4NG6sn.mjs} +1 -1
- package/node/esm/ShpbUw8_QnOxZu2h.mjs +19 -0
- package/node/esm/{DyetXBW7vFLJWB22.mjs → _OzLYz_iliC3tcW2.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +79 -78
- package/node/esm/eG-mlQfoOvRwAwU1.mjs +406 -0
- package/node/esm/{DKqdv5JubgVaq-g9.mjs → fhOm7EkeM-0FAdDI.mjs} +1 -1
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +6469 -6242
- package/node/esm/note.mjs +18 -18
- package/node/esm/picture.mjs +269 -50
- package/node/esm/{CalVk3o4-kX79s3v.mjs → r0Bg1Uwd5WHBFQyj.mjs} +1 -1
- package/node/esm/shape.mjs +186 -580
- package/node/esm/slicer.mjs +51 -50
- package/node/esm/{bRD1KCpSpAYTEs50.mjs → wtQ7d7f37N1tuJZB.mjs} +1 -1
- package/package.json +7 -7
- package/resources/locales/de/picture.cmd.json +157 -0
- package/resources/locales/de/sheet.cmd.json +24 -2
- package/resources/locales/de/ui.msg.json +3 -0
- package/resources/locales/en/picture.cmd.json +157 -0
- package/resources/locales/en/sheet.cmd.json +24 -2
- package/resources/locales/en/ui.msg.json +3 -0
- package/types/src/chart/ChartCommands.d.ts +1 -1
- package/types/src/chart/paint/_graphics.d.ts +0 -8
- package/types/src/chart/paint/echarts.d.ts +1 -1
- package/types/src/chart/paint/index.d.ts +1 -1
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +1 -1
- package/types/src/chart/paint/kinds/_builtIns.d.ts +0 -9
- package/types/src/chart/paint/toEChartsOption.d.ts +1 -1
- package/types/src/layer/CircularIndicatorLayer.d.ts +1 -1
- package/types/src/layer/HyperlinkLayer.d.ts +13 -9
- package/types/src/layer/_visibleCellFeatures.d.ts +11 -0
- package/types/src/layer/useValidationPicker.d.ts +1 -1
- package/types/src/movable/useFramePreview.d.ts +17 -0
- package/types/src/picture/PictureCommands.d.ts +8 -0
- package/types/src/picture/_pictureHyperlink.d.ts +13 -0
- package/types/src/picture/pictureCrop.d.ts +32 -0
- package/types/src/sheet/_hyperlinkEdit.d.ts +7 -0
- package/types/src/sheet/circularReferences.d.ts +1 -1
- package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
- package/browser/esm/BR-AiOwuQlYh5-tr.mjs +0 -730
- package/browser/esm/DhYQRc8L2kALmFNz.mjs +0 -75
- package/node/esm/Cp1DuCae46eQKzWy.mjs +0 -76
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.14
|
|
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 { n as e } from "./ShpbUw8_QnOxZu2h.mjs";
|
|
8
|
+
import { PictureEditor as t, n as a, r as o, t as n } from "./picture.mjs";
|
|
9
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
10
|
+
import { DOMUtils as r, messageKey as c, t as i } from "@sheetxl/utils";
|
|
11
|
+
import { NotifierType as p } from "@sheetxl/utils-react";
|
|
12
|
+
var l = {
|
|
13
|
+
cropAspect1x1: [1, 1],
|
|
14
|
+
cropAspect2x3: [2, 3],
|
|
15
|
+
cropAspect3x4: [3, 4],
|
|
16
|
+
cropAspect3x5: [3, 5],
|
|
17
|
+
cropAspect4x5: [4, 5],
|
|
18
|
+
cropAspect3x2: [3, 2],
|
|
19
|
+
cropAspect4x3: [4, 3],
|
|
20
|
+
cropAspect5x3: [5, 3],
|
|
21
|
+
cropAspect5x4: [5, 4],
|
|
22
|
+
cropAspect16x9: [16, 9],
|
|
23
|
+
cropAspect16x10: [16, 10]
|
|
24
|
+
}, u = {
|
|
25
|
+
renderer: (e) => {
|
|
26
|
+
const a = e.movable.getContent();
|
|
27
|
+
return s(t, {
|
|
28
|
+
loadingPanel: s("div", { style: {
|
|
29
|
+
position: "absolute",
|
|
30
|
+
width: "100%",
|
|
31
|
+
height: "100%"
|
|
32
|
+
} }),
|
|
33
|
+
picture: a,
|
|
34
|
+
description: a.getDescription() ?? a.getName?.() ?? void 0,
|
|
35
|
+
...e
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
commands: (t, s) => {
|
|
39
|
+
const { sheet: u, movable: d, notifier: m } = s, g = d.getContent(), y = async (e) => {
|
|
40
|
+
try {
|
|
41
|
+
await e();
|
|
42
|
+
} catch (e) {
|
|
43
|
+
m?.showError?.(e);
|
|
44
|
+
}
|
|
45
|
+
}, h = g.isReadOnly() ? [c("reason.sheetProtected")] : [], b = g.toJSON().locks?.noCrop ? [c("reason.pictureCropLocked")] : h;
|
|
46
|
+
t.updateCommand("cropToShape", {
|
|
47
|
+
tags: ["noTransaction", "noRepeat"],
|
|
48
|
+
disabledReasons: b,
|
|
49
|
+
callback: (e) => y(() => {
|
|
50
|
+
const t = "object" == typeof e && null !== e ? e.geometry : e;
|
|
51
|
+
g.setShapeType("string" == typeof t ? t : "rect");
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
for (const [e, [a, o]] of Object.entries(l)) t.updateCommand(e, {
|
|
55
|
+
tags: ["noTransaction", "noRepeat"],
|
|
56
|
+
disabledReasons: b,
|
|
57
|
+
callback: () => y(() => {
|
|
58
|
+
const e = n(d.getBounds(), g.getCrop(), a / o);
|
|
59
|
+
return u.doBatch(() => {
|
|
60
|
+
d.setBounds(e.bounds), g.setCrop(e.crop);
|
|
61
|
+
}, { description: c("op.setPictureCrop") });
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
const f = (e) => () => y(async () => {
|
|
65
|
+
const t = await g.getDetails();
|
|
66
|
+
g.setCrop(e(d.getBounds(), t.getNaturalSize()));
|
|
67
|
+
});
|
|
68
|
+
t.updateCommand("cropFill", {
|
|
69
|
+
tags: ["noTransaction", "noRepeat"],
|
|
70
|
+
disabledReasons: b,
|
|
71
|
+
callback: f(a)
|
|
72
|
+
}), t.updateCommand("cropFit", {
|
|
73
|
+
tags: ["noTransaction", "noRepeat"],
|
|
74
|
+
disabledReasons: b,
|
|
75
|
+
callback: f(o)
|
|
76
|
+
});
|
|
77
|
+
const R = g.getHyperlink(), C = R ? [] : [c("reason.pictureNoHyperlink")];
|
|
78
|
+
t.updateCommand("updatePictureHyperlink", {
|
|
79
|
+
tags: ["noTransaction", "noRepeat"],
|
|
80
|
+
callback: () => {
|
|
81
|
+
e(g, u, m);
|
|
82
|
+
}
|
|
83
|
+
}), t.updateCommand("openPictureHyperlink", {
|
|
84
|
+
tags: ["noTransaction", "noRepeat"],
|
|
85
|
+
disabledReasons: C,
|
|
86
|
+
callback: () => y(async () => {
|
|
87
|
+
await g.getHyperlink()?.open();
|
|
88
|
+
})
|
|
89
|
+
}), t.updateCommand("deletePictureHyperlink", {
|
|
90
|
+
tags: ["noTransaction", "noRepeat"],
|
|
91
|
+
disabledReasons: R ? h : C,
|
|
92
|
+
callback: () => y(() => {
|
|
93
|
+
g.setHyperlink(null);
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
const k = async (e) => {
|
|
97
|
+
const t = await (async (e) => {
|
|
98
|
+
const t = await Promise.resolve(m?.showBusy?.(i(c("op.setPictureResource"))) ?? null);
|
|
99
|
+
try {
|
|
100
|
+
const t = u.getResources().add(e);
|
|
101
|
+
return await t.toBuffer(), t;
|
|
102
|
+
} catch (e) {
|
|
103
|
+
let t = e;
|
|
104
|
+
if ("string" != typeof t) {
|
|
105
|
+
console.warn(e);
|
|
106
|
+
const a = "string" == typeof e?.cause ? e.cause : "";
|
|
107
|
+
let o = "string" == typeof e?.message ? e.message : "";
|
|
108
|
+
a && (o = o ? `${o} (${a})` : a), t = i("error.insertImage.unresolved", { detail: o });
|
|
109
|
+
}
|
|
110
|
+
return m?.showMessage?.(t, { type: p.Error }), null;
|
|
111
|
+
} finally {
|
|
112
|
+
t?.();
|
|
113
|
+
}
|
|
114
|
+
})(e);
|
|
115
|
+
t && g.setResource(t);
|
|
116
|
+
};
|
|
117
|
+
t.updateCommand("changePictureFromFile", {
|
|
118
|
+
tags: ["noTransaction", "noRepeat"],
|
|
119
|
+
callback: async (e) => {
|
|
120
|
+
let t = null, a = null;
|
|
121
|
+
"string" == typeof e ? a = e : t = e ?? null, (t || (t = await r.openFileDialog(a ?? "image/*"), t)) && await k({ source: { file: await Promise.resolve(t) } });
|
|
122
|
+
}
|
|
123
|
+
}), t.updateCommand("changePictureFromURL", {
|
|
124
|
+
tags: ["noTransaction", "noRepeat"],
|
|
125
|
+
callback: async (e) => {
|
|
126
|
+
if (!e) {
|
|
127
|
+
const t = await m?.showInput?.({
|
|
128
|
+
title: i("dialog.changePicture.title"),
|
|
129
|
+
description: i("dialog.changePicture.description"),
|
|
130
|
+
inputLabel: i("dialog.insertImage.inputLabel"),
|
|
131
|
+
initialValue: "https://picsum.photos/360",
|
|
132
|
+
propsInput: { style: { minWidth: "440px" } },
|
|
133
|
+
options: [{
|
|
134
|
+
id: "Change",
|
|
135
|
+
label: () => i("dialog.change")
|
|
136
|
+
}]
|
|
137
|
+
});
|
|
138
|
+
if (!t || "Change" !== t.option) return;
|
|
139
|
+
e = t.input;
|
|
140
|
+
}
|
|
141
|
+
e && await k({ source: { fetch: e } });
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
export { u as PictureKind };
|
|
@@ -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.14
|
|
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.14
|
|
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 "./
|
|
7
|
+
import { n as e } from "./C0HgFe1pYpEl1EgM.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";
|
|
@@ -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.14
|
|
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.14
|
|
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.14
|
|
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.14
|
|
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,13 +1,13 @@
|
|
|
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.14
|
|
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 } from "./
|
|
8
|
-
import { d as n } from "./
|
|
9
|
-
import { t as e } from "./
|
|
10
|
-
import { n as o } from "./
|
|
7
|
+
import { t } from "./CEyXz1TulkCpAv0t.mjs";
|
|
8
|
+
import { d as n } from "./CZfiN5xD1_Zws8z-.mjs";
|
|
9
|
+
import { t as e } from "./BBm7LjTGVud73kml.mjs";
|
|
10
|
+
import { n as o } from "./C0HgFe1pYpEl1EgM.mjs";
|
|
11
11
|
import { ShapeEditor as r } from "./shape.mjs";
|
|
12
12
|
import { memo as a, useCallback as s, useReducer as i, useRef as c } from "react";
|
|
13
13
|
import { jsx as l } 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.14
|
|
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 "./CEyXz1TulkCpAv0t.mjs";
|
|
8
8
|
import { createContext as t, memo as n, useCallback as o, useEffect as r, useReducer as l, useRef as a, useState as i } from "react";
|
|
9
9
|
import { Fragment as s, jsx as c, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import { LazyModules as u, defineLazyModule as p } from "@sheetxl/utils";
|
|
@@ -158,11 +158,11 @@ var R = {
|
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
B.displayName = "MovableControl";
|
|
161
|
-
var k = /* @__PURE__ */ new Map(),
|
|
161
|
+
var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Set(), D = () => {
|
|
162
162
|
for (const e of [...I]) e();
|
|
163
163
|
}, E = !1, N = () => {
|
|
164
164
|
E || (E = !0, function(e) {
|
|
165
|
-
e("picture", () => import("./
|
|
165
|
+
e("picture", () => import("./6VFNx4NTcuHaXbnF.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./BayAQ4VhPgK40T5V.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./ByTkh2-kGcBTZn9j.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./CMSfxUMv1tFyNlRJ.mjs"), {
|
|
166
166
|
select: (e) => e.ShapeKind,
|
|
167
167
|
selectionShadow: !1
|
|
168
168
|
}), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => c(e, {
|
|
@@ -174,13 +174,13 @@ var k = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), j = /* @__PURE
|
|
|
174
174
|
...o,
|
|
175
175
|
note: t.movable.getContent()
|
|
176
176
|
});
|
|
177
|
-
} }), e("error", () => import("./
|
|
177
|
+
} }), e("error", () => import("./Dztz6JUUcE4NG6sn.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
|
|
178
178
|
const t = (t, n) => {
|
|
179
179
|
e(t, () => import("./control.mjs"), { select: n });
|
|
180
180
|
};
|
|
181
181
|
t("button", (e) => e.ButtonRenderer), t("checkBox", (e) => e.CheckBoxRenderer), t("optionButton", (e) => e.OptionButtonRenderer), t("listBox", (e) => e.ListBoxRenderer), t("dropDown", (e) => e.DropDownRenderer), t("scrollBar", (e) => e.ScrollBarRenderer), t("spinner", (e) => e.SpinnerRenderer), t("groupBox", (e) => e.GroupBoxRenderer), t("label", (e) => e.LabelRenderer), t("editBox", (e) => e.UnmodeledControlRenderer), t("dialog", (e) => e.UnmodeledControlRenderer), t("formControl", (e) => e.UnmodeledControlRenderer);
|
|
182
182
|
}(_));
|
|
183
|
-
}, L = (e) => (N(),
|
|
183
|
+
}, L = (e) => (N(), j.get(e) ?? k.get(e)), A = (e) => {
|
|
184
184
|
const { movable: t, fallback: n, children: o } = e, [, a] = l((e) => e + 1, 0), i = t.isContentLoaded();
|
|
185
185
|
return f(!i), r(() => {
|
|
186
186
|
if (i) return;
|
|
@@ -258,28 +258,28 @@ var k = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), j = /* @__PURE
|
|
|
258
258
|
function F(e, t, n) {
|
|
259
259
|
N();
|
|
260
260
|
const o = $(`movable-renderer:${e}`, t, n);
|
|
261
|
-
return
|
|
262
|
-
|
|
261
|
+
return j.set(e, o), D(), () => {
|
|
262
|
+
j.get(e) === o && (j.delete(e), u.remove(o.lazyModule), D());
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
function H(e, t) {
|
|
266
266
|
let n = null;
|
|
267
267
|
const o = {
|
|
268
268
|
load: () => (n ??= t().then((t) => {
|
|
269
|
-
o.pane = t,
|
|
269
|
+
o.pane = t, S.get(e) === o && D();
|
|
270
270
|
}, (e) => {
|
|
271
271
|
throw n = null, e;
|
|
272
272
|
}), n),
|
|
273
273
|
pane: void 0
|
|
274
274
|
};
|
|
275
|
-
return
|
|
276
|
-
|
|
275
|
+
return S.set(e, o), D(), () => {
|
|
276
|
+
S.get(e) === o && (S.delete(e), D());
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
function O(e) {
|
|
280
280
|
const t = L(e);
|
|
281
281
|
if (!t?.module) return;
|
|
282
|
-
const n =
|
|
282
|
+
const n = S.get(e);
|
|
283
283
|
n && !n.pane && n.load().catch(() => {});
|
|
284
284
|
const { control: o, commands: r, toolbar: l, pane: a } = t.module;
|
|
285
285
|
return {
|
|
@@ -294,7 +294,7 @@ async function T(e) {
|
|
|
294
294
|
const t = L(e);
|
|
295
295
|
if (t) {
|
|
296
296
|
try {
|
|
297
|
-
await t.loadModule(), await
|
|
297
|
+
await t.loadModule(), await S.get(e)?.load();
|
|
298
298
|
} catch {
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
@@ -317,12 +317,12 @@ function Y(e) {
|
|
|
317
317
|
return L(e)?.Renderer;
|
|
318
318
|
}
|
|
319
319
|
function W() {
|
|
320
|
-
return N(), [.../* @__PURE__ */ new Set([...k.keys(), ...
|
|
320
|
+
return N(), [.../* @__PURE__ */ new Set([...k.keys(), ...j.keys()])];
|
|
321
321
|
}
|
|
322
322
|
function _(e, t, n) {
|
|
323
323
|
k.set(e, $(`movable-renderer:built-in:${e}`, t, {
|
|
324
324
|
hitArea: "content",
|
|
325
325
|
...n
|
|
326
|
-
}, () => !
|
|
326
|
+
}, () => !j.has(e)));
|
|
327
327
|
}
|
|
328
328
|
export { w as _, W as a, H as c, B as d, P as f, M as g, b as h, Y as i, F as l, C as m, X as n, G as o, y as p, O as r, _ as s, V as t, T as u, v };
|
|
@@ -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.14
|
|
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.14
|
|
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 "./fhOm7EkeM-0FAdDI.mjs";
|
|
8
8
|
import { Color as t, IFill as i, IStroke as r, PaintUtils as s } from "@sheetxl/sdk";
|
|
9
9
|
import * as n from "echarts/core";
|
|
10
10
|
import { BarChart as o, LineChart as l, PieChart as a } from "echarts/charts";
|
|
@@ -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.14
|
|
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.
|
|
@@ -46,13 +46,13 @@ var p = (i, r) => {
|
|
|
46
46
|
}, g = (e, t) => e ? "percent" in e ? e.percent / 100 * 1.2 : `${e.points}pt` : t, h = (e, t, r) => {
|
|
47
47
|
const n = [];
|
|
48
48
|
t.underline && "none" !== t.underline && n.push("underline"), t.strike && "none" !== t.strike && n.push("line-through");
|
|
49
|
-
const l = t.font?.family
|
|
49
|
+
const l = [t.font?.family, ...t.font?.fallbacks ?? []].filter((e) => !!e);
|
|
50
50
|
return {
|
|
51
51
|
fontSize: "number" == typeof t.size ? `${t.size}pt` : void 0,
|
|
52
52
|
fontWeight: t.weight,
|
|
53
53
|
fontStyle: t.style === i.Style.Italic ? "italic" : void 0,
|
|
54
54
|
textDecoration: n.length ? n.join(" ") : void 0,
|
|
55
|
-
fontFamily: l,
|
|
55
|
+
fontFamily: l.length ? i.toCSSFontFamily(l[0], l.slice(1)) : void 0,
|
|
56
56
|
color: p(e, t.color) ?? r ?? void 0,
|
|
57
57
|
letterSpacing: "number" == typeof t.letterSpacing ? `${t.letterSpacing}pt` : void 0,
|
|
58
58
|
verticalAlign: "number" == typeof t.baseline && 0 !== t.baseline ? `${t.baseline}%` : void 0,
|
|
@@ -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.14
|
|
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.
|
|
@@ -23,7 +23,7 @@ var y = {
|
|
|
23
23
|
}, v = () => {
|
|
24
24
|
const [e] = m(y.Mode, b[y.Mode]), { themeMode: t } = p({ mode: e ?? void 0 });
|
|
25
25
|
return t;
|
|
26
|
-
}, k = d("chart:paint", () => import("./
|
|
26
|
+
}, k = d("chart:paint", () => import("./D2dDGnBtilmmDxBJ.mjs")), w = (e, t) => {
|
|
27
27
|
const r = e.getElementType();
|
|
28
28
|
if ("point" === r) {
|
|
29
29
|
const r = e.getParent();
|
|
@@ -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.14
|
|
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.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.14
|
|
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 { messageKey as e } from "@sheetxl/utils";
|
|
8
|
+
var i = "hovered-picture-link", s = (i, s, t) => {
|
|
9
|
+
t?.showWindow?.("hyperlink", {
|
|
10
|
+
disabled: i.isReadOnly(),
|
|
11
|
+
initialValue: i.getHyperlink()?.getAddress() ?? null,
|
|
12
|
+
hideDisplayText: !0,
|
|
13
|
+
sheetName: s.getName(),
|
|
14
|
+
onInput: (s) => {
|
|
15
|
+
i.setHyperlink(s?.address ? s.address : null, { description: e("op.setPictureHyperlink") });
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
export { s as n, i 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.14
|
|
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.
|
package/node/esm/chart.mjs
CHANGED
|
@@ -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.14
|
|
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 { i as e, n as t, t as r } from "./
|
|
7
|
+
import { i as e, n as t, t as r } from "./Duu2zmr8YkGTo-iP.mjs";
|
|
8
8
|
import { forwardRef as o, memo as n, useCallback as l, useLayoutEffect as i, useRef as s } from "react";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
10
|
import { useImperativeElement as m } from "@sheetxl/utils-react";
|