@sheetxl/react 0.8.0-beta.12 → 0.8.0-beta.13
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/{D2GydDzPuvIjdpok.mjs → -wQNyCnoJdQUTTfP.mjs} +1 -1
- package/browser/esm/{CUekkfE6uwwsdQpc.mjs → AL94cpxFjPurAMQG.mjs} +1 -1
- package/browser/esm/{Ck1LbcsdSfKNi6xq.mjs → B4K8rf7TAv0SBkbG.mjs} +1 -1
- package/browser/esm/{BapujiblfiXDlu67.mjs → BrwfFgqKdMG_-iar.mjs} +1 -1
- package/browser/esm/ByBGwdqhc_l75i5G.mjs +145 -0
- package/browser/esm/{C_LUq-BnguetvGZz.mjs → C1zqAqKQ6oa4FiTH.mjs} +2 -2
- package/browser/esm/C9lQPmVMIlUwXkKr.mjs +303 -0
- package/browser/esm/{D_usN3pWuCJU2GN-.mjs → CIrcPI7uOT93ydNn.mjs} +2 -2
- package/browser/esm/{DxEczXCHTerDemDP.mjs → CZsNidKZjsn0lNnA.mjs} +4 -4
- package/browser/esm/{DN3lqq95KY0K6f1x.mjs → CcewpxckpDrXSiZ-.mjs} +1 -1
- package/browser/esm/{D22NJmTiky4NL8tM.mjs → CdDvFP8Fqm8uU7Rw.mjs} +1 -1
- package/browser/esm/{CSFORKZ8zrVL_Y0w.mjs → CfewUx0gINn-wXt3.mjs} +1 -1
- package/browser/esm/{LBQDhVhz7S7i6a8i.mjs → CfvYfq6ALVqkCsdg.mjs} +1 -1
- package/browser/esm/CulxiChz6lj3G9lw.mjs +341 -0
- package/browser/esm/D5Uy22WeT7vUS36Z.mjs +19 -0
- package/browser/esm/{Cslk_qRdBSuJIi1O.mjs → Dd8deQ2CDMdrhzF1.mjs} +6 -6
- package/browser/esm/{CtGhA0kS2MCfEsHN.mjs → Dit7p67J_fDF5RDj.mjs} +3 -3
- package/browser/esm/{ZoS0cpNEBcv6p-Z1.mjs → DzWFl-_dCN-EOkio.mjs} +3 -3
- package/browser/esm/{B4mT3G7GHwgDYFGP.mjs → MIDbAwdzknMaoTU5.mjs} +2 -2
- package/browser/esm/{BDlpRkuBok0Uu4Hn.mjs → ao9zR4H88b7AmZEV.mjs} +1 -1
- 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/note.mjs +5 -5
- package/browser/esm/picture.mjs +2 -81
- package/browser/esm/sXn9faQLuh4P0TZ9.mjs +401 -0
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +112 -111
- package/browser/esm/{DGG1auUKsjFbAazu.mjs → u3A8I4A7GKIOLOOb.mjs} +3 -3
- package/browser/esm/{_6Sb6ElRcZftxMNh.mjs → x6A47UA3fzV361tO.mjs} +1 -1
- package/node/esm/{CalVk3o4-kX79s3v.mjs → A_4Y7EtzCWp1AG3Y.mjs} +1 -1
- package/node/esm/BNwVylzKMErhrx4i.mjs +406 -0
- package/node/esm/BPBUSXc5TVnD15By.mjs +146 -0
- package/node/esm/{bRD1KCpSpAYTEs50.mjs → BTT6UB5lGvPxcq3F.mjs} +1 -1
- package/node/esm/{DXiNwr6ZnXBe7TlG.mjs → BYiAmyF-aOOuMkD1.mjs} +1 -1
- package/node/esm/{YB_qExw23Ci4nMYy.mjs → BqS8o-CmPoCjHDHp.mjs} +2 -2
- package/node/esm/{Bi2Jwc0zpweaNzKc.mjs → CC_XgLOFPvqmFyZ_.mjs} +2 -2
- package/node/esm/{Apcuz4_QtBHt7G47.mjs → CMGUrHMaBDeCezK5.mjs} +1 -1
- package/node/esm/{DWkPWuf5ZrLRMixG.mjs → CP07qkepi21zlB0n.mjs} +15 -15
- package/node/esm/{CzN6c6KyxVmNvayz.mjs → CQJJMfuXl6mbgHdT.mjs} +1 -1
- package/node/esm/{DyetXBW7vFLJWB22.mjs → CVDVFhM7OIpaOlyN.mjs} +1 -1
- package/node/esm/{iL9jKJcnED6oi0B4.mjs → CVMuO9bpR5YK0pPb.mjs} +1 -1
- package/node/esm/{T5lfCrudsUnOTxEn.mjs → CaZG4HD3SmHvD-Tu.mjs} +1 -1
- package/node/esm/{DKqdv5JubgVaq-g9.mjs → CuRPfxQCj2jookWL.mjs} +1 -1
- package/node/esm/D8mYmUPUA6i8oFgR.mjs +19 -0
- package/node/esm/{MWges5ywL3aEdChp.mjs → DAUtyjkW5uSdnTli.mjs} +1 -1
- package/node/esm/{C0KLMCRb3sbd5Q20.mjs → DfvJ0Dpn-AP2mGtz.mjs} +5 -5
- package/node/esm/{DayGI0Bt57FDNbVF.mjs → DipZYwHed-W6QMtQ.mjs} +1 -1
- package/node/esm/{CNOLkUDURBElaaIf.mjs → NvP_j9pSsDiJ_PyY.mjs} +3 -3
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +79 -78
- package/node/esm/{CH1DVfFhjdd_3pw1.mjs → eecr5gnC2KqVhOzX.mjs} +2 -2
- 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/shape.mjs +186 -580
- package/node/esm/slicer.mjs +51 -50
- 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
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { PictureEditor as e } from "./picture.mjs";
|
|
8
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
9
|
-
import { DOMUtils as n, messageKey as r, t as i } from "@sheetxl/utils";
|
|
10
|
-
import { NotifierType as a } from "@sheetxl/utils-react";
|
|
11
|
-
var o = {
|
|
12
|
-
renderer: (n) => {
|
|
13
|
-
let r = n.movable.getContent();
|
|
14
|
-
return t(e, {
|
|
15
|
-
loadingPanel: t("div", { style: {
|
|
16
|
-
position: "absolute",
|
|
17
|
-
width: "100%",
|
|
18
|
-
height: "100%"
|
|
19
|
-
} }),
|
|
20
|
-
picture: r,
|
|
21
|
-
description: r.getDescription() ?? r.getName?.() ?? void 0,
|
|
22
|
-
...n
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
commands: (e, t) => {
|
|
26
|
-
let { sheet: o, movable: s, notifier: c } = t, l = s.getContent(), u = async (e) => {
|
|
27
|
-
let t = await (async (e) => {
|
|
28
|
-
let t = await Promise.resolve(c?.showBusy?.(i(r("op.setPictureResource"))) ?? null);
|
|
29
|
-
try {
|
|
30
|
-
let t = o.getResources().add(e);
|
|
31
|
-
return await t.toBuffer(), t;
|
|
32
|
-
} catch (e) {
|
|
33
|
-
let t = e;
|
|
34
|
-
if (typeof t != "string") {
|
|
35
|
-
console.warn(e);
|
|
36
|
-
let n = typeof e?.cause == "string" ? e.cause : "", r = typeof e?.message == "string" ? e.message : "";
|
|
37
|
-
n && (r = r ? `${r} (${n})` : n), t = i("error.insertImage.unresolved", { detail: r });
|
|
38
|
-
}
|
|
39
|
-
return c?.showMessage?.(t, { type: a.Error }), null;
|
|
40
|
-
} finally {
|
|
41
|
-
t?.();
|
|
42
|
-
}
|
|
43
|
-
})(e);
|
|
44
|
-
t && l.setResource(t);
|
|
45
|
-
};
|
|
46
|
-
e.updateCommand("changePictureFromFile", {
|
|
47
|
-
tags: ["noTransaction", "noRepeat"],
|
|
48
|
-
callback: async (e) => {
|
|
49
|
-
let t = null, r = null;
|
|
50
|
-
typeof e == "string" ? r = e : t = e ?? null, (t || (t = await n.openFileDialog(r ?? "image/*"), t)) && await u({ source: { file: await Promise.resolve(t) } });
|
|
51
|
-
}
|
|
52
|
-
}), e.updateCommand("changePictureFromURL", {
|
|
53
|
-
tags: ["noTransaction", "noRepeat"],
|
|
54
|
-
callback: async (e) => {
|
|
55
|
-
if (!e) {
|
|
56
|
-
let t = await c?.showInput?.({
|
|
57
|
-
title: i("dialog.changePicture.title"),
|
|
58
|
-
description: i("dialog.changePicture.description"),
|
|
59
|
-
inputLabel: i("dialog.insertImage.inputLabel"),
|
|
60
|
-
initialValue: "https://picsum.photos/360",
|
|
61
|
-
propsInput: { style: { minWidth: "440px" } },
|
|
62
|
-
options: [{
|
|
63
|
-
id: "Change",
|
|
64
|
-
label: () => i("dialog.change")
|
|
65
|
-
}]
|
|
66
|
-
});
|
|
67
|
-
if (!t || t.option !== "Change") return;
|
|
68
|
-
e = t.input;
|
|
69
|
-
}
|
|
70
|
-
e && await u({ source: { fetch: e } });
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export { o as PictureKind };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { PictureEditor as e } from "./picture.mjs";
|
|
8
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
9
|
-
import { DOMUtils as i, messageKey as o, t as a } from "@sheetxl/utils";
|
|
10
|
-
import { NotifierType as n } from "@sheetxl/utils-react";
|
|
11
|
-
var s = {
|
|
12
|
-
renderer: (i) => {
|
|
13
|
-
const o = i.movable.getContent();
|
|
14
|
-
return t(e, {
|
|
15
|
-
loadingPanel: t("div", { style: {
|
|
16
|
-
position: "absolute",
|
|
17
|
-
width: "100%",
|
|
18
|
-
height: "100%"
|
|
19
|
-
} }),
|
|
20
|
-
picture: o,
|
|
21
|
-
description: o.getDescription() ?? o.getName?.() ?? void 0,
|
|
22
|
-
...i
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
commands: (e, t) => {
|
|
26
|
-
const { sheet: s, movable: r, notifier: l } = t, c = r.getContent(), u = async (e) => {
|
|
27
|
-
const t = await (async (e) => {
|
|
28
|
-
const t = await Promise.resolve(l?.showBusy?.(a(o("op.setPictureResource"))) ?? null);
|
|
29
|
-
try {
|
|
30
|
-
const t = s.getResources().add(e);
|
|
31
|
-
return await t.toBuffer(), t;
|
|
32
|
-
} catch (e) {
|
|
33
|
-
let t = e;
|
|
34
|
-
if ("string" != typeof t) {
|
|
35
|
-
console.warn(e);
|
|
36
|
-
const i = "string" == typeof e?.cause ? e.cause : "";
|
|
37
|
-
let o = "string" == typeof e?.message ? e.message : "";
|
|
38
|
-
i && (o = o ? `${o} (${i})` : i), t = a("error.insertImage.unresolved", { detail: o });
|
|
39
|
-
}
|
|
40
|
-
return l?.showMessage?.(t, { type: n.Error }), null;
|
|
41
|
-
} finally {
|
|
42
|
-
t?.();
|
|
43
|
-
}
|
|
44
|
-
})(e);
|
|
45
|
-
t && c.setResource(t);
|
|
46
|
-
};
|
|
47
|
-
e.updateCommand("changePictureFromFile", {
|
|
48
|
-
tags: ["noTransaction", "noRepeat"],
|
|
49
|
-
callback: async (e) => {
|
|
50
|
-
let t = null, o = null;
|
|
51
|
-
"string" == typeof e ? o = e : t = e ?? null, (t || (t = await i.openFileDialog(o ?? "image/*"), t)) && await u({ source: { file: await Promise.resolve(t) } });
|
|
52
|
-
}
|
|
53
|
-
}), e.updateCommand("changePictureFromURL", {
|
|
54
|
-
tags: ["noTransaction", "noRepeat"],
|
|
55
|
-
callback: async (e) => {
|
|
56
|
-
if (!e) {
|
|
57
|
-
const t = await l?.showInput?.({
|
|
58
|
-
title: a("dialog.changePicture.title"),
|
|
59
|
-
description: a("dialog.changePicture.description"),
|
|
60
|
-
inputLabel: a("dialog.insertImage.inputLabel"),
|
|
61
|
-
initialValue: "https://picsum.photos/360",
|
|
62
|
-
propsInput: { style: { minWidth: "440px" } },
|
|
63
|
-
options: [{
|
|
64
|
-
id: "Change",
|
|
65
|
-
label: () => a("dialog.change")
|
|
66
|
-
}]
|
|
67
|
-
});
|
|
68
|
-
if (!t || "Change" !== t.option) return;
|
|
69
|
-
e = t.input;
|
|
70
|
-
}
|
|
71
|
-
e && await u({ source: { fetch: e } });
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
export { s as PictureKind };
|