@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.
Files changed (87) hide show
  1. package/browser/esm/{D2GydDzPuvIjdpok.mjs → -wQNyCnoJdQUTTfP.mjs} +1 -1
  2. package/browser/esm/{CUekkfE6uwwsdQpc.mjs → AL94cpxFjPurAMQG.mjs} +1 -1
  3. package/browser/esm/{Ck1LbcsdSfKNi6xq.mjs → B4K8rf7TAv0SBkbG.mjs} +1 -1
  4. package/browser/esm/{BapujiblfiXDlu67.mjs → BrwfFgqKdMG_-iar.mjs} +1 -1
  5. package/browser/esm/ByBGwdqhc_l75i5G.mjs +145 -0
  6. package/browser/esm/{C_LUq-BnguetvGZz.mjs → C1zqAqKQ6oa4FiTH.mjs} +2 -2
  7. package/browser/esm/C9lQPmVMIlUwXkKr.mjs +303 -0
  8. package/browser/esm/{D_usN3pWuCJU2GN-.mjs → CIrcPI7uOT93ydNn.mjs} +2 -2
  9. package/browser/esm/{DxEczXCHTerDemDP.mjs → CZsNidKZjsn0lNnA.mjs} +4 -4
  10. package/browser/esm/{DN3lqq95KY0K6f1x.mjs → CcewpxckpDrXSiZ-.mjs} +1 -1
  11. package/browser/esm/{D22NJmTiky4NL8tM.mjs → CdDvFP8Fqm8uU7Rw.mjs} +1 -1
  12. package/browser/esm/{CSFORKZ8zrVL_Y0w.mjs → CfewUx0gINn-wXt3.mjs} +1 -1
  13. package/browser/esm/{LBQDhVhz7S7i6a8i.mjs → CfvYfq6ALVqkCsdg.mjs} +1 -1
  14. package/browser/esm/CulxiChz6lj3G9lw.mjs +341 -0
  15. package/browser/esm/D5Uy22WeT7vUS36Z.mjs +19 -0
  16. package/browser/esm/{Cslk_qRdBSuJIi1O.mjs → Dd8deQ2CDMdrhzF1.mjs} +6 -6
  17. package/browser/esm/{CtGhA0kS2MCfEsHN.mjs → Dit7p67J_fDF5RDj.mjs} +3 -3
  18. package/browser/esm/{ZoS0cpNEBcv6p-Z1.mjs → DzWFl-_dCN-EOkio.mjs} +3 -3
  19. package/browser/esm/{B4mT3G7GHwgDYFGP.mjs → MIDbAwdzknMaoTU5.mjs} +2 -2
  20. package/browser/esm/{BDlpRkuBok0Uu4Hn.mjs → ao9zR4H88b7AmZEV.mjs} +1 -1
  21. package/browser/esm/chart.mjs +3 -3
  22. package/browser/esm/control.mjs +74 -73
  23. package/browser/esm/group.mjs +3 -3
  24. package/browser/esm/index.mjs +3971 -3744
  25. package/browser/esm/note.mjs +5 -5
  26. package/browser/esm/picture.mjs +2 -81
  27. package/browser/esm/sXn9faQLuh4P0TZ9.mjs +401 -0
  28. package/browser/esm/shape.mjs +2 -2
  29. package/browser/esm/slicer.mjs +112 -111
  30. package/browser/esm/{DGG1auUKsjFbAazu.mjs → u3A8I4A7GKIOLOOb.mjs} +3 -3
  31. package/browser/esm/{_6Sb6ElRcZftxMNh.mjs → x6A47UA3fzV361tO.mjs} +1 -1
  32. package/node/esm/{CalVk3o4-kX79s3v.mjs → A_4Y7EtzCWp1AG3Y.mjs} +1 -1
  33. package/node/esm/BNwVylzKMErhrx4i.mjs +406 -0
  34. package/node/esm/BPBUSXc5TVnD15By.mjs +146 -0
  35. package/node/esm/{bRD1KCpSpAYTEs50.mjs → BTT6UB5lGvPxcq3F.mjs} +1 -1
  36. package/node/esm/{DXiNwr6ZnXBe7TlG.mjs → BYiAmyF-aOOuMkD1.mjs} +1 -1
  37. package/node/esm/{YB_qExw23Ci4nMYy.mjs → BqS8o-CmPoCjHDHp.mjs} +2 -2
  38. package/node/esm/{Bi2Jwc0zpweaNzKc.mjs → CC_XgLOFPvqmFyZ_.mjs} +2 -2
  39. package/node/esm/{Apcuz4_QtBHt7G47.mjs → CMGUrHMaBDeCezK5.mjs} +1 -1
  40. package/node/esm/{DWkPWuf5ZrLRMixG.mjs → CP07qkepi21zlB0n.mjs} +15 -15
  41. package/node/esm/{CzN6c6KyxVmNvayz.mjs → CQJJMfuXl6mbgHdT.mjs} +1 -1
  42. package/node/esm/{DyetXBW7vFLJWB22.mjs → CVDVFhM7OIpaOlyN.mjs} +1 -1
  43. package/node/esm/{iL9jKJcnED6oi0B4.mjs → CVMuO9bpR5YK0pPb.mjs} +1 -1
  44. package/node/esm/{T5lfCrudsUnOTxEn.mjs → CaZG4HD3SmHvD-Tu.mjs} +1 -1
  45. package/node/esm/{DKqdv5JubgVaq-g9.mjs → CuRPfxQCj2jookWL.mjs} +1 -1
  46. package/node/esm/D8mYmUPUA6i8oFgR.mjs +19 -0
  47. package/node/esm/{MWges5ywL3aEdChp.mjs → DAUtyjkW5uSdnTli.mjs} +1 -1
  48. package/node/esm/{C0KLMCRb3sbd5Q20.mjs → DfvJ0Dpn-AP2mGtz.mjs} +5 -5
  49. package/node/esm/{DayGI0Bt57FDNbVF.mjs → DipZYwHed-W6QMtQ.mjs} +1 -1
  50. package/node/esm/{CNOLkUDURBElaaIf.mjs → NvP_j9pSsDiJ_PyY.mjs} +3 -3
  51. package/node/esm/chart.mjs +2 -2
  52. package/node/esm/control.mjs +79 -78
  53. package/node/esm/{CH1DVfFhjdd_3pw1.mjs → eecr5gnC2KqVhOzX.mjs} +2 -2
  54. package/node/esm/group.mjs +3 -3
  55. package/node/esm/index.mjs +6469 -6242
  56. package/node/esm/note.mjs +18 -18
  57. package/node/esm/picture.mjs +269 -50
  58. package/node/esm/shape.mjs +186 -580
  59. package/node/esm/slicer.mjs +51 -50
  60. package/package.json +7 -7
  61. package/resources/locales/de/picture.cmd.json +157 -0
  62. package/resources/locales/de/sheet.cmd.json +24 -2
  63. package/resources/locales/de/ui.msg.json +3 -0
  64. package/resources/locales/en/picture.cmd.json +157 -0
  65. package/resources/locales/en/sheet.cmd.json +24 -2
  66. package/resources/locales/en/ui.msg.json +3 -0
  67. package/types/src/chart/ChartCommands.d.ts +1 -1
  68. package/types/src/chart/paint/_graphics.d.ts +0 -8
  69. package/types/src/chart/paint/echarts.d.ts +1 -1
  70. package/types/src/chart/paint/index.d.ts +1 -1
  71. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +1 -1
  72. package/types/src/chart/paint/kinds/_builtIns.d.ts +0 -9
  73. package/types/src/chart/paint/toEChartsOption.d.ts +1 -1
  74. package/types/src/layer/CircularIndicatorLayer.d.ts +1 -1
  75. package/types/src/layer/HyperlinkLayer.d.ts +13 -9
  76. package/types/src/layer/_visibleCellFeatures.d.ts +11 -0
  77. package/types/src/layer/useValidationPicker.d.ts +1 -1
  78. package/types/src/movable/useFramePreview.d.ts +17 -0
  79. package/types/src/picture/PictureCommands.d.ts +8 -0
  80. package/types/src/picture/_pictureHyperlink.d.ts +13 -0
  81. package/types/src/picture/pictureCrop.d.ts +32 -0
  82. package/types/src/sheet/_hyperlinkEdit.d.ts +7 -0
  83. package/types/src/sheet/circularReferences.d.ts +1 -1
  84. package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
  85. package/browser/esm/BR-AiOwuQlYh5-tr.mjs +0 -730
  86. package/browser/esm/DhYQRc8L2kALmFNz.mjs +0 -75
  87. 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.12
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 "./MWges5ywL3aEdChp.mjs";
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(), S = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Set(), D = () => {
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("./Cp1DuCae46eQKzWy.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./CH1DVfFhjdd_3pw1.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./iL9jKJcnED6oi0B4.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./C0KLMCRb3sbd5Q20.mjs"), {
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("./Apcuz4_QtBHt7G47.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
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(), S.get(e) ?? k.get(e)), A = (e) => {
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 S.set(e, o), D(), () => {
262
- S.get(e) === o && (S.delete(e), u.remove(o.lazyModule), D());
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, j.get(e) === o && D();
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 j.set(e, o), D(), () => {
276
- j.get(e) === o && (j.delete(e), D());
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 = j.get(e);
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 j.get(e)?.load();
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(), ...S.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
- }, () => !S.has(e)));
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.12
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.12
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.12
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.12
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.12
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.12
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.12
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 "./MWges5ywL3aEdChp.mjs";
8
- import { d as n } from "./DWkPWuf5ZrLRMixG.mjs";
9
- import { t as e } from "./CzN6c6KyxVmNvayz.mjs";
10
- import { n as o } from "./DayGI0Bt57FDNbVF.mjs";
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.12
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.12
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 ?? t.font?.fallbacks?.[0];
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,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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 "./YB_qExw23Ci4nMYy.mjs";
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";
@@ -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.12
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 "./MWges5ywL3aEdChp.mjs";
8
- import { memo as t, useEffect as n, useReducer as r, useRef as o } from "react";
9
- import { jsx as i, jsxs as l } from "react/jsx-runtime";
10
- var d = (e) => {
11
- const t = e.getFont();
12
- if (!t) return {};
13
- const n = {};
14
- return t.name && (n.fontFamily = t.name), void 0 !== t.size && (n.fontSize = `${t.size}pt`), t.bold && (n.fontWeight = "bold"), t.italic && (n.fontStyle = "italic"), t.color && (n.color = t.color), n;
15
- }, a = {
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
- }, s = {
22
- ...a,
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
- }, c = (o, l) => {
30
- const d = t((t) => {
31
- const { children: l, disabled: d, style: s, movable: c, zoom: g = 1, isDragging: h, onHide: p, onShow: u, onDragZone: x, adornmentHost: m, flip: y, ...f } = t, b = c.getContent(), [, v] = r((e) => e + 1, 0);
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
- n(() => {
37
+ r(() => {
37
38
  if (I) return w.getLinkedRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
38
39
  }, [b, I]);
39
- const R = C.getListFillRange?.() ?? null;
40
- if (n(() => {
41
- if (R) return C.getListSourceRange?.()?.addListener(() => v(), { ignoreAddressChanges: !0 });
42
- }, [b, R]), b.isDeleted()) return null;
43
- const S = c.getBounds();
44
- return i("div", {
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
- ...s
55
+ ...a
55
56
  },
56
- children: i("div", {
57
+ children: l("div", {
57
58
  inert: !0,
58
- style: a,
59
- children: i(o, {
59
+ style: s,
60
+ children: l(t, {
60
61
  control: b,
61
- width: S?.width ?? 0,
62
- height: S?.height ?? 0
62
+ width: R?.width ?? 0,
63
+ height: R?.height ?? 0
63
64
  })
64
65
  })
65
66
  });
66
67
  });
67
- return d.displayName = l, d;
68
- }, g = c(({ control: e }) => i("button", {
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
- ...a,
73
- ...d(e)
73
+ ...s,
74
+ ...a(e)
74
75
  },
75
76
  children: e.getCaption() ?? ""
76
- }), "ButtonRenderer"), h = c(({ control: e }) => {
77
- const t = o(null), r = e.isMixed();
78
- return n(() => {
79
- t.current && (t.current.indeterminate = r);
80
- }, [r]), l("label", {
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
- ...s,
83
- ...d(e)
83
+ ...c,
84
+ ...a(e)
84
85
  },
85
- children: [i("input", {
86
+ children: [l("input", {
86
87
  ref: t,
87
88
  type: "checkbox",
88
89
  checked: e.isChecked(),
89
90
  readOnly: !0
90
- }), i("span", { children: e.getCaption() ?? "" })]
91
+ }), l("span", { children: e.getCaption() ?? "" })]
91
92
  });
92
- }, "CheckBoxRenderer"), p = c(({ control: e }) => l("label", {
93
+ }, "CheckBoxRenderer"), u = g(({ control: e }) => d("label", {
93
94
  style: {
94
- ...s,
95
- ...d(e)
95
+ ...c,
96
+ ...a(e)
96
97
  },
97
- children: [i("input", {
98
+ children: [l("input", {
98
99
  type: "radio",
99
100
  checked: e.isChecked(),
100
101
  readOnly: !0
101
- }), i("span", { children: e.getCaption() ?? "" })]
102
- }), "OptionButtonRenderer"), u = c(({ control: e }) => {
102
+ }), l("span", { children: e.getCaption() ?? "" })]
103
+ }), "OptionButtonRenderer"), m = g(({ control: e }) => {
103
104
  const t = e.isHorizontal();
104
- return i("input", {
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
- ...a,
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 i("svg", {
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: i("polyline", {
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
- }, m = {
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
- }, y = c(({ width: e, height: t }) => {
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 l("div", {
151
+ return d("div", {
151
152
  style: {
152
- ...a,
153
+ ...s,
153
154
  display: "flex",
154
155
  flexDirection: n ? "row" : "column"
155
156
  },
156
- children: [i("button", {
157
+ children: [l("button", {
157
158
  type: "button",
158
159
  tabIndex: -1,
159
- style: m,
160
- children: i(x, { direction: n ? "left" : "up" })
161
- }), i("button", {
160
+ style: y,
161
+ children: l(x, { direction: n ? "left" : "up" })
162
+ }), l("button", {
162
163
  type: "button",
163
164
  tabIndex: -1,
164
- style: m,
165
- children: i(x, { direction: n ? "right" : "down" })
165
+ style: y,
166
+ children: l(x, { direction: n ? "right" : "down" })
166
167
  })]
167
168
  });
168
- }, "SpinnerRenderer"), f = (e) => e.getListItems().map((e, t) => i("option", {
169
+ }, "SpinnerRenderer"), b = (e) => e.getListItems().map((e, t) => l("option", {
169
170
  value: t,
170
171
  children: e
171
- }, t)), b = c(({ control: e }) => l("select", {
172
+ }, t)), v = g(({ control: e }) => d("select", {
172
173
  tabIndex: -1,
173
174
  value: e.getSelectedIndex() ?? -1,
174
- style: a,
175
+ style: s,
175
176
  onChange: () => {},
176
- children: [null === e.getSelectedIndex() ? i("option", { value: -1 }) : null, f(e)]
177
- }), "DropDownRenderer"), v = c(({ control: e }) => i("select", {
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: a,
182
+ style: s,
182
183
  onChange: () => {},
183
- children: f(e)
184
- }), "ListBoxRenderer"), w = c(({ control: e }) => i("fieldset", {
184
+ children: b(e)
185
+ }), "ListBoxRenderer"), C = g(({ control: e }) => l("fieldset", {
185
186
  style: {
186
- ...a,
187
+ ...s,
187
188
  padding: 0,
188
- ...d(e)
189
+ ...a(e)
189
190
  },
190
- children: i("legend", {
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"), C = c(({ control: e }) => i("span", {
198
+ }), "GroupBoxRenderer"), I = g(({ control: e }) => l("span", {
198
199
  style: {
199
- ...s,
200
- ...d(e)
200
+ ...c,
201
+ ...a(e)
201
202
  },
202
203
  children: e.getCaption() ?? ""
203
- }), "LabelRenderer"), I = c(({ control: e }) => i("div", {
204
+ }), "LabelRenderer"), S = g(({ control: e }) => l("div", {
204
205
  style: {
205
- ...a,
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 { g as ButtonRenderer, h as CheckBoxRenderer, b as DropDownRenderer, w as GroupBoxRenderer, C as LabelRenderer, v as ListBoxRenderer, p as OptionButtonRenderer, u as ScrollBarRenderer, y as SpinnerRenderer, I as UnmodeledControlRenderer };
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.12
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 "./DayGI0Bt57FDNbVF.mjs";
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";
@@ -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.12
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 "./MWges5ywL3aEdChp.mjs";
8
- import { h as t, i as o, p as n } from "./DWkPWuf5ZrLRMixG.mjs";
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";