@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,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.13
|
|
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 "./DAUtyjkW5uSdnTli.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("./BPBUSXc5TVnD15By.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./eecr5gnC2KqVhOzX.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./CVMuO9bpR5YK0pPb.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./DfvJ0Dpn-AP2mGtz.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("./CMGUrHMaBDeCezK5.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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
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 "./DAUtyjkW5uSdnTli.mjs";
|
|
8
|
+
import { d as n } from "./CP07qkepi21zlB0n.mjs";
|
|
9
|
+
import { t as e } from "./CQJJMfuXl6mbgHdT.mjs";
|
|
10
|
+
import { n as o } from "./DipZYwHed-W6QMtQ.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,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.13
|
|
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.13
|
|
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,
|
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.13
|
|
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 "./BqS8o-CmPoCjHDHp.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";
|
package/node/esm/control.mjs
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
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.13
|
|
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 "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
7
|
+
import { t as e } from "./DAUtyjkW5uSdnTli.mjs";
|
|
8
|
+
import { IFont as t } from "@sheetxl/sdk";
|
|
9
|
+
import { memo as n, useEffect as r, useReducer as o, useRef as i } from "react";
|
|
10
|
+
import { jsx as l, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
var a = (e) => {
|
|
12
|
+
const n = e.getFont();
|
|
13
|
+
if (!n) return {};
|
|
14
|
+
const r = {};
|
|
15
|
+
return n.name && (r.fontFamily = t.toCSSFontFamily(n.name)), void 0 !== n.size && (r.fontSize = `${n.size}pt`), n.bold && (r.fontWeight = "bold"), n.italic && (r.fontStyle = "italic"), n.color && (r.color = n.color), r;
|
|
16
|
+
}, s = {
|
|
16
17
|
pointerEvents: "none",
|
|
17
18
|
width: "100%",
|
|
18
19
|
height: "100%",
|
|
19
20
|
boxSizing: "border-box",
|
|
20
21
|
margin: 0
|
|
21
|
-
},
|
|
22
|
-
...
|
|
22
|
+
}, c = {
|
|
23
|
+
...s,
|
|
23
24
|
display: "flex",
|
|
24
25
|
alignItems: "center",
|
|
25
26
|
gap: "0.35em",
|
|
26
27
|
padding: "0 2px",
|
|
27
28
|
overflow: "hidden",
|
|
28
29
|
whiteSpace: "nowrap"
|
|
29
|
-
},
|
|
30
|
-
const d =
|
|
31
|
-
const { children:
|
|
30
|
+
}, g = (t, i) => {
|
|
31
|
+
const d = n((n) => {
|
|
32
|
+
const { children: i, disabled: d, style: a, movable: c, zoom: g = 1, isDragging: h, onHide: p, onShow: u, onDragZone: m, adornmentHost: x, flip: y, ...f } = n, b = c.getContent(), [, v] = o((e) => e + 1, 0);
|
|
32
33
|
e(b, { onAnyChange() {
|
|
33
34
|
v();
|
|
34
35
|
} });
|
|
35
36
|
const w = b, C = b, I = w.getLinkedCell?.() ?? null;
|
|
36
|
-
|
|
37
|
+
r(() => {
|
|
37
38
|
if (I) return w.getLinkedRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
|
|
38
39
|
}, [b, I]);
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
if (
|
|
42
|
-
}, [b,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
40
|
+
const S = C.getListFillRange?.() ?? null;
|
|
41
|
+
if (r(() => {
|
|
42
|
+
if (S) return C.getListSourceRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
|
|
43
|
+
}, [b, S]), b.isDeleted()) return null;
|
|
44
|
+
const R = c.getBounds();
|
|
45
|
+
return l("div", {
|
|
45
46
|
className: "form-control-renderer",
|
|
46
47
|
...f,
|
|
47
48
|
style: {
|
|
@@ -51,57 +52,57 @@ var d = (e) => {
|
|
|
51
52
|
position: "relative",
|
|
52
53
|
boxShadow: h ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
|
|
53
54
|
overflow: "hidden",
|
|
54
|
-
...
|
|
55
|
+
...a
|
|
55
56
|
},
|
|
56
|
-
children:
|
|
57
|
+
children: l("div", {
|
|
57
58
|
inert: !0,
|
|
58
|
-
style:
|
|
59
|
-
children:
|
|
59
|
+
style: s,
|
|
60
|
+
children: l(t, {
|
|
60
61
|
control: b,
|
|
61
|
-
width:
|
|
62
|
-
height:
|
|
62
|
+
width: R?.width ?? 0,
|
|
63
|
+
height: R?.height ?? 0
|
|
63
64
|
})
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
67
|
});
|
|
67
|
-
return d.displayName =
|
|
68
|
-
},
|
|
68
|
+
return d.displayName = i, d;
|
|
69
|
+
}, h = g(({ control: e }) => l("button", {
|
|
69
70
|
type: "button",
|
|
70
71
|
tabIndex: -1,
|
|
71
72
|
style: {
|
|
72
|
-
...
|
|
73
|
-
...
|
|
73
|
+
...s,
|
|
74
|
+
...a(e)
|
|
74
75
|
},
|
|
75
76
|
children: e.getCaption() ?? ""
|
|
76
|
-
}), "ButtonRenderer"),
|
|
77
|
-
const t =
|
|
78
|
-
return
|
|
79
|
-
t.current && (t.current.indeterminate =
|
|
80
|
-
}, [
|
|
77
|
+
}), "ButtonRenderer"), p = g(({ control: e }) => {
|
|
78
|
+
const t = i(null), n = e.isMixed();
|
|
79
|
+
return r(() => {
|
|
80
|
+
t.current && (t.current.indeterminate = n);
|
|
81
|
+
}, [n]), d("label", {
|
|
81
82
|
style: {
|
|
82
|
-
...
|
|
83
|
-
...
|
|
83
|
+
...c,
|
|
84
|
+
...a(e)
|
|
84
85
|
},
|
|
85
|
-
children: [
|
|
86
|
+
children: [l("input", {
|
|
86
87
|
ref: t,
|
|
87
88
|
type: "checkbox",
|
|
88
89
|
checked: e.isChecked(),
|
|
89
90
|
readOnly: !0
|
|
90
|
-
}),
|
|
91
|
+
}), l("span", { children: e.getCaption() ?? "" })]
|
|
91
92
|
});
|
|
92
|
-
}, "CheckBoxRenderer"),
|
|
93
|
+
}, "CheckBoxRenderer"), u = g(({ control: e }) => d("label", {
|
|
93
94
|
style: {
|
|
94
|
-
...
|
|
95
|
-
...
|
|
95
|
+
...c,
|
|
96
|
+
...a(e)
|
|
96
97
|
},
|
|
97
|
-
children: [
|
|
98
|
+
children: [l("input", {
|
|
98
99
|
type: "radio",
|
|
99
100
|
checked: e.isChecked(),
|
|
100
101
|
readOnly: !0
|
|
101
|
-
}),
|
|
102
|
-
}), "OptionButtonRenderer"),
|
|
102
|
+
}), l("span", { children: e.getCaption() ?? "" })]
|
|
103
|
+
}), "OptionButtonRenderer"), m = g(({ control: e }) => {
|
|
103
104
|
const t = e.isHorizontal();
|
|
104
|
-
return
|
|
105
|
+
return l("input", {
|
|
105
106
|
type: "range",
|
|
106
107
|
tabIndex: -1,
|
|
107
108
|
readOnly: !0,
|
|
@@ -110,7 +111,7 @@ var d = (e) => {
|
|
|
110
111
|
step: e.getIncrement() ?? 1,
|
|
111
112
|
value: e.getValue() ?? e.getMin() ?? 0,
|
|
112
113
|
style: {
|
|
113
|
-
...
|
|
114
|
+
...s,
|
|
114
115
|
writingMode: t ? void 0 : "vertical-lr"
|
|
115
116
|
}
|
|
116
117
|
});
|
|
@@ -121,7 +122,7 @@ var d = (e) => {
|
|
|
121
122
|
left: "7,2 4,5 7,8",
|
|
122
123
|
right: "3,2 6,5 3,8"
|
|
123
124
|
}[e.direction];
|
|
124
|
-
return
|
|
125
|
+
return l("svg", {
|
|
125
126
|
viewBox: "0 0 10 10",
|
|
126
127
|
style: {
|
|
127
128
|
width: "100%",
|
|
@@ -129,14 +130,14 @@ var d = (e) => {
|
|
|
129
130
|
maxWidth: 10,
|
|
130
131
|
maxHeight: 10
|
|
131
132
|
},
|
|
132
|
-
children:
|
|
133
|
+
children: l("polyline", {
|
|
133
134
|
points: t,
|
|
134
135
|
fill: "none",
|
|
135
136
|
stroke: "currentColor",
|
|
136
137
|
strokeWidth: 1.5
|
|
137
138
|
})
|
|
138
139
|
});
|
|
139
|
-
},
|
|
140
|
+
}, y = {
|
|
140
141
|
flex: "1 1 0",
|
|
141
142
|
minWidth: 0,
|
|
142
143
|
minHeight: 0,
|
|
@@ -145,64 +146,64 @@ var d = (e) => {
|
|
|
145
146
|
display: "flex",
|
|
146
147
|
alignItems: "center",
|
|
147
148
|
justifyContent: "center"
|
|
148
|
-
},
|
|
149
|
+
}, f = g(({ width: e, height: t }) => {
|
|
149
150
|
const n = ((e, t, n) => e > 0 && t > 0 ? e > t : n)(e, t, !1);
|
|
150
|
-
return
|
|
151
|
+
return d("div", {
|
|
151
152
|
style: {
|
|
152
|
-
...
|
|
153
|
+
...s,
|
|
153
154
|
display: "flex",
|
|
154
155
|
flexDirection: n ? "row" : "column"
|
|
155
156
|
},
|
|
156
|
-
children: [
|
|
157
|
+
children: [l("button", {
|
|
157
158
|
type: "button",
|
|
158
159
|
tabIndex: -1,
|
|
159
|
-
style:
|
|
160
|
-
children:
|
|
161
|
-
}),
|
|
160
|
+
style: y,
|
|
161
|
+
children: l(x, { direction: n ? "left" : "up" })
|
|
162
|
+
}), l("button", {
|
|
162
163
|
type: "button",
|
|
163
164
|
tabIndex: -1,
|
|
164
|
-
style:
|
|
165
|
-
children:
|
|
165
|
+
style: y,
|
|
166
|
+
children: l(x, { direction: n ? "right" : "down" })
|
|
166
167
|
})]
|
|
167
168
|
});
|
|
168
|
-
}, "SpinnerRenderer"),
|
|
169
|
+
}, "SpinnerRenderer"), b = (e) => e.getListItems().map((e, t) => l("option", {
|
|
169
170
|
value: t,
|
|
170
171
|
children: e
|
|
171
|
-
}, t)),
|
|
172
|
+
}, t)), v = g(({ control: e }) => d("select", {
|
|
172
173
|
tabIndex: -1,
|
|
173
174
|
value: e.getSelectedIndex() ?? -1,
|
|
174
|
-
style:
|
|
175
|
+
style: s,
|
|
175
176
|
onChange: () => {},
|
|
176
|
-
children: [null === e.getSelectedIndex() ?
|
|
177
|
-
}), "DropDownRenderer"),
|
|
177
|
+
children: [null === e.getSelectedIndex() ? l("option", { value: -1 }) : null, b(e)]
|
|
178
|
+
}), "DropDownRenderer"), w = g(({ control: e }) => l("select", {
|
|
178
179
|
tabIndex: -1,
|
|
179
180
|
size: Math.max(2, e.getListItems().length),
|
|
180
181
|
value: e.getSelectedIndex() ?? void 0,
|
|
181
|
-
style:
|
|
182
|
+
style: s,
|
|
182
183
|
onChange: () => {},
|
|
183
|
-
children:
|
|
184
|
-
}), "ListBoxRenderer"),
|
|
184
|
+
children: b(e)
|
|
185
|
+
}), "ListBoxRenderer"), C = g(({ control: e }) => l("fieldset", {
|
|
185
186
|
style: {
|
|
186
|
-
...
|
|
187
|
+
...s,
|
|
187
188
|
padding: 0,
|
|
188
|
-
...
|
|
189
|
+
...a(e)
|
|
189
190
|
},
|
|
190
|
-
children:
|
|
191
|
+
children: l("legend", {
|
|
191
192
|
style: {
|
|
192
193
|
marginLeft: "6px",
|
|
193
194
|
padding: "0 2px"
|
|
194
195
|
},
|
|
195
196
|
children: e.getCaption() ?? ""
|
|
196
197
|
})
|
|
197
|
-
}), "GroupBoxRenderer"),
|
|
198
|
+
}), "GroupBoxRenderer"), I = g(({ control: e }) => l("span", {
|
|
198
199
|
style: {
|
|
199
|
-
...
|
|
200
|
-
...
|
|
200
|
+
...c,
|
|
201
|
+
...a(e)
|
|
201
202
|
},
|
|
202
203
|
children: e.getCaption() ?? ""
|
|
203
|
-
}), "LabelRenderer"),
|
|
204
|
+
}), "LabelRenderer"), S = g(({ control: e }) => l("div", {
|
|
204
205
|
style: {
|
|
205
|
-
...
|
|
206
|
+
...s,
|
|
206
207
|
border: "var(--sxl-color-neutral, grey) solid 1px",
|
|
207
208
|
backgroundColor: "var(--sxl-color-base-100, white)",
|
|
208
209
|
display: "flex",
|
|
@@ -213,4 +214,4 @@ var d = (e) => {
|
|
|
213
214
|
},
|
|
214
215
|
children: e.getName?.() ?? e.getTypeDescription()
|
|
215
216
|
}), "UnmodeledControlRenderer");
|
|
216
|
-
export {
|
|
217
|
+
export { h as ButtonRenderer, p as CheckBoxRenderer, v as DropDownRenderer, C as GroupBoxRenderer, I as LabelRenderer, w as ListBoxRenderer, u as OptionButtonRenderer, m as ScrollBarRenderer, f as SpinnerRenderer, S as UnmodeledControlRenderer };
|
|
@@ -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.13
|
|
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 "./DipZYwHed-W6QMtQ.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/node/esm/group.mjs
CHANGED
|
@@ -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.13
|
|
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 "./
|
|
8
|
-
import { h as t, i as o, p as n } from "./
|
|
7
|
+
import { t as e } from "./DAUtyjkW5uSdnTli.mjs";
|
|
8
|
+
import { h as t, i as o, p as n } from "./CP07qkepi21zlB0n.mjs";
|
|
9
9
|
import { forwardRef as i, memo as r, useContext as s, useEffect as l, useReducer as a } from "react";
|
|
10
10
|
import { jsx as d, jsxs as g } from "react/jsx-runtime";
|
|
11
11
|
import { useSurfaceState as h } from "@sheetxl/grid-react";
|