@sheetxl/react 0.8.0-beta.11 → 0.8.0-beta.12

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 (116) hide show
  1. package/browser/esm/{94dxo1A-z8lgiiGw.mjs → B4mT3G7GHwgDYFGP.mjs} +2 -2
  2. package/browser/esm/{B26QVfjer2oY2ewK.mjs → BDlpRkuBok0Uu4Hn.mjs} +1 -1
  3. package/browser/esm/{CRi6DQ3UXmPEv-w_.mjs → BR-AiOwuQlYh5-tr.mjs} +147 -146
  4. package/browser/esm/{ClAtIfYbsUPA073B.mjs → BapujiblfiXDlu67.mjs} +1 -1
  5. package/browser/esm/{D2u6THGErqw64KQI.mjs → CSFORKZ8zrVL_Y0w.mjs} +1 -1
  6. package/browser/esm/{Bl2BFCQ00fotauKB.mjs → CUekkfE6uwwsdQpc.mjs} +1 -1
  7. package/browser/esm/{DgL7Dy-Lqcr1TvW6.mjs → C_LUq-BnguetvGZz.mjs} +4851 -4818
  8. package/browser/esm/{BQYS2Yf-EAV_tBLr.mjs → Ck1LbcsdSfKNi6xq.mjs} +1 -1
  9. package/browser/esm/{1-LEUre9ZLG0OYYB.mjs → Cslk_qRdBSuJIi1O.mjs} +6 -6
  10. package/browser/esm/CtGhA0kS2MCfEsHN.mjs +262 -0
  11. package/browser/esm/{BegvsXeRs7e-9t8k.mjs → D22NJmTiky4NL8tM.mjs} +1 -1
  12. package/browser/esm/{B93LSmhnvkxNXTq-.mjs → D2GydDzPuvIjdpok.mjs} +1 -1
  13. package/browser/esm/{CzRIbc-Lk__VMLKM.mjs → DGG1auUKsjFbAazu.mjs} +3 -3
  14. package/browser/esm/{Bos4Rkp8UTF7QXUB.mjs → DN3lqq95KY0K6f1x.mjs} +1 -1
  15. package/browser/esm/{Dnh1kpz3v1JKtRD_.mjs → D_usN3pWuCJU2GN-.mjs} +2 -2
  16. package/browser/esm/{cQ6xdPFkEcuDlNTN.mjs → DhYQRc8L2kALmFNz.mjs} +1 -1
  17. package/browser/esm/{DS66lAIM-9M-YoZQ.mjs → DxEczXCHTerDemDP.mjs} +112 -104
  18. package/browser/esm/{C1pc9F4Rt2C5FKUo.mjs → LBQDhVhz7S7i6a8i.mjs} +1 -1
  19. package/browser/esm/{CPnnESfZz2jjJd82.mjs → ZoS0cpNEBcv6p-Z1.mjs} +1 -1
  20. package/browser/esm/{DMdsMPT0fWBbTkNn.mjs → _6Sb6ElRcZftxMNh.mjs} +1 -1
  21. package/browser/esm/chart.mjs +28 -27
  22. package/browser/esm/control.mjs +2 -2
  23. package/browser/esm/group.mjs +3 -3
  24. package/browser/esm/index.mjs +5750 -5089
  25. package/browser/esm/note.mjs +4 -4
  26. package/browser/esm/picture.mjs +41 -41
  27. package/browser/esm/shape.mjs +2 -2
  28. package/browser/esm/slicer.mjs +4 -4
  29. package/node/esm/{BaRfst1euuhquupX.mjs → Apcuz4_QtBHt7G47.mjs} +1 -1
  30. package/node/esm/{b-XRVRI1fYQQMkTC.mjs → Bi2Jwc0zpweaNzKc.mjs} +525 -492
  31. package/node/esm/{D_pCpfdQowV_4Aje.mjs → C0KLMCRb3sbd5Q20.mjs} +5 -5
  32. package/node/esm/{sigD1UFqvPlWUw_9.mjs → CH1DVfFhjdd_3pw1.mjs} +2 -2
  33. package/node/esm/{Be9c1GwQkPo8Piuh.mjs → CNOLkUDURBElaaIf.mjs} +1 -1
  34. package/node/esm/{BiaDWnN3tT7neoRL.mjs → CalVk3o4-kX79s3v.mjs} +1 -1
  35. package/node/esm/{DgGEHydEjD7nfsDB.mjs → Cp1DuCae46eQKzWy.mjs} +1 -1
  36. package/node/esm/{BlxXufqBBg1PtsXd.mjs → CzN6c6KyxVmNvayz.mjs} +1 -1
  37. package/node/esm/{6zApGj9DozhFy-bx.mjs → DKqdv5JubgVaq-g9.mjs} +1 -1
  38. package/node/esm/{umljAT66yb3_rURh.mjs → DWkPWuf5ZrLRMixG.mjs} +118 -110
  39. package/node/esm/{JiQGhLkoL8CJpVvA.mjs → DXiNwr6ZnXBe7TlG.mjs} +1 -1
  40. package/node/esm/{DTMTIrYIK1eZswsM.mjs → DayGI0Bt57FDNbVF.mjs} +1 -1
  41. package/node/esm/{C_SNx7TlFEcwbYjx.mjs → DyetXBW7vFLJWB22.mjs} +1 -1
  42. package/node/esm/{Dj5FM7_-YWhCtCCt.mjs → MWges5ywL3aEdChp.mjs} +1 -1
  43. package/node/esm/{BMVK5plvmBOAIlxP.mjs → T5lfCrudsUnOTxEn.mjs} +1 -1
  44. package/node/esm/YB_qExw23Ci4nMYy.mjs +263 -0
  45. package/node/esm/{DxQZmb-j4NLUO9Af.mjs → bRD1KCpSpAYTEs50.mjs} +1 -1
  46. package/node/esm/chart.mjs +26 -25
  47. package/node/esm/control.mjs +2 -2
  48. package/node/esm/group.mjs +3 -3
  49. package/node/esm/{gpD-9LDW92phhoma.mjs → iL9jKJcnED6oi0B4.mjs} +1 -1
  50. package/node/esm/index.mjs +7658 -6996
  51. package/node/esm/note.mjs +4 -4
  52. package/node/esm/picture.mjs +41 -41
  53. package/node/esm/shape.mjs +50 -49
  54. package/node/esm/slicer.mjs +4 -4
  55. package/package.json +7 -7
  56. package/resources/locales/de/sheet.cmd.json +21 -0
  57. package/resources/locales/de/workbook.cmd.json +6 -0
  58. package/resources/locales/en/sheet.cmd.json +21 -0
  59. package/resources/locales/en/ui.msg.json +2 -0
  60. package/resources/locales/en/workbook.cmd.json +6 -0
  61. package/types/src/border/useBorders.d.ts +2 -2
  62. package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
  63. package/types/src/cell/CellContent.d.ts +68 -0
  64. package/types/src/cell/CellControlContext.d.ts +37 -0
  65. package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +5 -5
  66. package/types/src/cell/CellImageRenderer.d.ts +11 -0
  67. package/types/src/cell/CellRenderers.d.ts +190 -0
  68. package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +9 -6
  69. package/types/src/cell/ColumnButton.d.ts +3 -3
  70. package/types/src/cell/OutlineButton.d.ts +4 -4
  71. package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
  72. package/types/src/cell/index.d.ts +8 -2
  73. package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
  74. package/types/src/cell/useInsertableCellControls.d.ts +25 -0
  75. package/types/src/chart/ChartEditor.d.ts +2 -0
  76. package/types/src/chart/ChartElement.d.ts +14 -3
  77. package/types/src/chart/paint/_mode.d.ts +6 -0
  78. package/types/src/chart/paint/echarts.d.ts +5 -2
  79. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +8 -0
  80. package/types/src/chart/paint/toEChartsOption.d.ts +11 -0
  81. package/types/src/editableLabel/EditableLabel.d.ts +3 -1
  82. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
  83. package/types/src/editor/useFormulaHints.d.ts +1 -1
  84. package/types/src/layer/CellErrorLayer.d.ts +3 -2
  85. package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
  86. package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
  87. package/types/src/layer/HyperlinkLayer.d.ts +8 -5
  88. package/types/src/layer/ProtectionLayer.d.ts +1 -2
  89. package/types/src/layer/SheetCellLayer.d.ts +11 -4
  90. package/types/src/layer/SheetMovableLayer.d.ts +2 -1
  91. package/types/src/layer/SheetOutlineLayer.d.ts +1 -1
  92. package/types/src/layer/TableLayer.d.ts +1 -1
  93. package/types/src/layer/TableToolbar.d.ts +1 -1
  94. package/types/src/layer/ValidationPromptLayer.d.ts +16 -4
  95. package/types/src/layer/index.d.ts +1 -0
  96. package/types/src/listener/useRangeListener.d.ts +13 -7
  97. package/types/src/movable/DefaultMovable.d.ts +1 -1
  98. package/types/src/movable/MovableControl.d.ts +3 -1
  99. package/types/src/movable/MovableFrame.d.ts +2 -1
  100. package/types/src/movable/MovableLayer.d.ts +6 -3
  101. package/types/src/sheet/ISheetHeaderElement.d.ts +2 -2
  102. package/types/src/sheet/IWorksheetElement.d.ts +21 -22
  103. package/types/src/sheet/SheetCommandProvider.d.ts +3 -0
  104. package/types/src/sheet/SheetOutlineElement.d.ts +2 -2
  105. package/types/src/sheet/SheetPanels.d.ts +2 -2
  106. package/types/src/tabStrip/Sortable.d.ts +5 -5
  107. package/types/src/tabStrip/TabStrip.d.ts +6 -6
  108. package/types/src/tabStrip/TabStripItem.d.ts +15 -13
  109. package/types/src/taskPane/CellControlPane.d.ts +17 -0
  110. package/types/src/taskPane/index.d.ts +1 -0
  111. package/types/src/taskPane/useTaskPane.d.ts +6 -3
  112. package/types/src/workbook/DefaultRenderers.d.ts +4 -4
  113. package/types/src/workbook/IWorkbookElement.d.ts +52 -20
  114. package/types/src/workbook/WorkbookStrip.d.ts +5 -5
  115. package/browser/esm/ugfE7YeZALQURDKF.mjs +0 -241
  116. package/node/esm/DJPgbB1X22YmhbaR.mjs +0 -242
@@ -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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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 "./Dj5FM7_-YWhCtCCt.mjs";
8
- import { d as n } from "./umljAT66yb3_rURh.mjs";
9
- import { t as e } from "./BlxXufqBBg1PtsXd.mjs";
10
- import { n as o } from "./DTMTIrYIK1eZswsM.mjs";
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";
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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 "./DTMTIrYIK1eZswsM.mjs";
7
+ import { n as e } from "./DayGI0Bt57FDNbVF.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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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,39 +1,39 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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 "./Dj5FM7_-YWhCtCCt.mjs";
8
- import { createContext as t, memo as n, useCallback as o, useEffect as r, useReducer as l, useRef as a } from "react";
9
- import { Fragment as i, jsx as s, jsxs as c } from "react/jsx-runtime";
10
- import { LazyModules as d, defineLazyModule as u } from "@sheetxl/utils";
11
- import { ReactUtils as p } from "@sheetxl/utils-react";
12
- import { useGridPane as m } from "@sheetxl/grid-react";
13
- var h = Object.freeze({
7
+ import { t as e } from "./MWges5ywL3aEdChp.mjs";
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
+ import { Fragment as s, jsx as c, jsxs as d } from "react/jsx-runtime";
10
+ import { LazyModules as u, defineLazyModule as p } from "@sheetxl/utils";
11
+ import { useGridPane as h } from "@sheetxl/grid-react";
12
+ import { ReactUtils as m, usePendingRender as f } from "@sheetxl/utils-react";
13
+ var g = Object.freeze({
14
14
  x: 0,
15
15
  y: 0,
16
16
  width: 0,
17
17
  height: 0
18
- }), f = (e, t, n) => {
19
- const o = n?.bounds ?? e.getBounds(), r = o ? t.toPaneBounds(o) : h, l = p.getDevicePixelRatio();
18
+ }), v = (e, t, n) => {
19
+ const o = n?.bounds ?? e.getBounds(), r = o ? t.toPaneBounds(o) : g, l = m.getDevicePixelRatio();
20
20
  return {
21
- left: p.snapDeviceEdge(r.x, l),
22
- top: p.snapDeviceEdge(r.y, l),
21
+ left: m.snapDeviceEdge(r.x, l),
22
+ top: m.snapDeviceEdge(r.y, l),
23
23
  width: r.width,
24
24
  height: r.height,
25
25
  rotation: n?.rotation ?? (e.getRotation() || 0),
26
26
  flip: n?.flip ?? e.getFlip()
27
27
  };
28
- }, g = "data-movable-id", v = (e) => {
28
+ }, b = "data-movable-id", w = (e) => {
29
29
  let t = e;
30
30
  for (let e = t.getParent(); e; e = t.getParent()) t = e;
31
31
  return t;
32
- }, b = (e, t, n) => {
32
+ }, M = (e, t, n) => {
33
33
  const o = [];
34
34
  let r = t;
35
35
  for (; r && r !== n;) {
36
- const e = r.getAttribute?.(g);
36
+ const e = r.getAttribute?.(b);
37
37
  e && o.unshift(e), r = r.parentElement;
38
38
  }
39
39
  if (0 === o.length) return e;
@@ -46,21 +46,21 @@ var h = Object.freeze({
46
46
  const a = l.length - 1;
47
47
  for (let e = a; e >= 0; e--) if (l[e].isSelected()) return l[Math.min(e + 1, a)];
48
48
  const i = e.getRange().getWorksheet().getView().getMovableSelection().getContainer();
49
- return i && v(i) === e ? l[Math.min(w(i) + 1, a)] : e;
50
- }, w = (e) => {
49
+ return i && w(i) === e ? l[Math.min(x(i) + 1, a)] : e;
50
+ }, x = (e) => {
51
51
  let t = 0;
52
52
  for (let n = e.getParent(); n; n = n.getParent()) t++;
53
53
  return t;
54
- }, x = t(/* @__PURE__ */ new Map()), y = n(({ movable: t, preview: n, onHost: r, children: a }) => {
55
- const i = m(), [, c] = l((e) => e + 1, 0);
54
+ }, y = t(/* @__PURE__ */ new Map()), C = n(({ movable: t, preview: n, onHost: r, children: a }) => {
55
+ const i = h(), [, s] = l((e) => e + 1, 0);
56
56
  e(t, {
57
- onBoundsChange: () => c(),
58
- onAnyChange: () => c()
57
+ onBoundsChange: () => s(),
58
+ onAnyChange: () => s()
59
59
  });
60
60
  const d = o((e) => {
61
61
  r(t, e);
62
- }, [t, r]), u = f(t, i, n);
63
- return s("div", {
62
+ }, [t, r]), u = v(t, i, n);
63
+ return c("div", {
64
64
  className: "movable-adornment",
65
65
  ref: d,
66
66
  style: {
@@ -77,8 +77,8 @@ var h = Object.freeze({
77
77
  children: a
78
78
  });
79
79
  });
80
- y.displayName = "MovableAdornment";
81
- var C = {
80
+ C.displayName = "MovableAdornment";
81
+ var R = {
82
82
  nw: [-1, -1],
83
83
  n: [0, -1],
84
84
  ne: [1, -1],
@@ -87,19 +87,19 @@ var C = {
87
87
  sw: [-1, 1],
88
88
  s: [0, 1],
89
89
  se: [1, 1]
90
- }, M = [
90
+ }, z = [
91
91
  "ew-resize",
92
92
  "nwse-resize",
93
93
  "ns-resize",
94
94
  "nesw-resize"
95
- ], R = (e, t) => {
95
+ ], P = (e, t) => {
96
96
  const n = 180 * Math.atan2(e[1], e[0]) / Math.PI + t;
97
- return M[(Math.round(n / 45) % 4 + 4) % 4];
98
- }, z = n((e) => {
99
- const { directions: t, rotation: n, isDragging: r = !1, onResizeStart: l, onResize: i, onResizeEnd: d, onResizeCancel: u, context: p = !1, onMoveStart: m, children: h } = e, f = a(null), g = o((e) => {
97
+ return z[(Math.round(n / 45) % 4 + 4) % 4];
98
+ }, B = n((e) => {
99
+ const { directions: t, rotation: n, isDragging: r = !1, onResizeStart: l, onResize: i, onResizeEnd: s, onResizeCancel: u, context: p = !1, onMoveStart: h, children: m } = e, f = a(null), g = o((e) => {
100
100
  if (0 !== e.button) return;
101
101
  e.stopPropagation(), e.preventDefault();
102
- const t = C[e.currentTarget.dataset.direction ?? ""];
102
+ const t = R[e.currentTarget.dataset.direction ?? ""];
103
103
  t && l() && (f.current = {
104
104
  pointerId: e.pointerId,
105
105
  direction: t,
@@ -113,31 +113,31 @@ var C = {
113
113
  t && t.pointerId === e.pointerId && (e.stopPropagation(), i(t.direction, [e.clientX - t.press.x, e.clientY - t.press.y], e.shiftKey));
114
114
  }, [i]), b = o((e) => {
115
115
  const t = f.current;
116
- t && t.pointerId === e.pointerId && (e.stopPropagation(), f.current = null, d());
117
- }, [d]), w = o((e) => {
116
+ t && t.pointerId === e.pointerId && (e.stopPropagation(), f.current = null, s());
117
+ }, [s]), w = o((e) => {
118
118
  const t = f.current;
119
119
  t && t.pointerId === e.pointerId && (f.current = null, u());
120
- }, [u]), x = o((e) => {
121
- 0 === e.button && (e.stopPropagation(), e.preventDefault(), m?.(e.nativeEvent));
122
- }, [m]);
123
- return c("div", {
120
+ }, [u]), M = o((e) => {
121
+ 0 === e.button && (e.stopPropagation(), e.preventDefault(), h?.(e.nativeEvent));
122
+ }, [h]);
123
+ return d("div", {
124
124
  className: [
125
125
  "movable-control",
126
126
  r ? "dragging" : null,
127
127
  p ? "context" : null
128
128
  ].filter(Boolean).join(" "),
129
129
  children: [
130
- h,
131
- s("div", { className: "movable-control-outline" }),
130
+ m,
131
+ c("div", { className: "movable-control-outline" }),
132
132
  t.map((e) => {
133
- const t = C[e];
134
- return t ? s("div", {
133
+ const t = R[e];
134
+ return t ? c("div", {
135
135
  className: "movable-control-handle",
136
136
  "data-direction": e,
137
137
  style: {
138
138
  left: 50 * (t[0] + 1) + "%",
139
139
  top: 50 * (t[1] + 1) + "%",
140
- cursor: R(t, n)
140
+ cursor: P(t, n)
141
141
  },
142
142
  onPointerDown: g,
143
143
  onPointerMove: v,
@@ -145,89 +145,97 @@ var C = {
145
145
  onPointerCancel: w
146
146
  }, e) : null;
147
147
  }),
148
- m ? s("div", {
148
+ h ? c("div", {
149
149
  className: "movable-move-handle",
150
- onPointerDown: x,
151
- children: s("svg", {
150
+ onPointerDown: M,
151
+ children: c("svg", {
152
152
  viewBox: "0 0 24 24",
153
153
  "aria-hidden": "true",
154
- children: s("path", { d: "M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z" })
154
+ children: c("path", { d: "M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z" })
155
155
  })
156
156
  }) : null
157
157
  ]
158
158
  });
159
159
  });
160
- z.displayName = "MovableControl";
161
- var P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Set(), j = () => {
162
- for (const e of [...S]) e();
163
- }, I = !1, D = () => {
164
- I || (I = !0, function(e) {
165
- e("picture", () => import("./DgGEHydEjD7nfsDB.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./sigD1UFqvPlWUw_9.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./gpD-9LDW92phhoma.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./D_pCpfdQowV_4Aje.mjs"), {
160
+ B.displayName = "MovableControl";
161
+ var k = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Set(), D = () => {
162
+ for (const e of [...I]) e();
163
+ }, E = !1, N = () => {
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"), {
166
166
  select: (e) => e.ShapeKind,
167
167
  selectionShadow: !1
168
- }), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => s(e, {
168
+ }), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => c(e, {
169
169
  ...t,
170
170
  container: t.movable.getContent()
171
171
  }) }), e("note", () => import("./note.mjs"), { select: ({ NoteEditor: e }) => (t) => {
172
172
  const { onContextMenuCapture: n, ...o } = t;
173
- return s(e, {
173
+ return c(e, {
174
174
  ...o,
175
175
  note: t.movable.getContent()
176
176
  });
177
- } }), e("error", () => import("./BaRfst1euuhquupX.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => s(e, { ...t }) });
177
+ } }), e("error", () => import("./Apcuz4_QtBHt7G47.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
- }(Y));
183
- }, E = (e) => (D(), B.get(e) ?? P.get(e)), N = (e) => {
184
- const { movable: t, fallback: n, children: o } = e, [, a] = l((e) => e + 1, 0), c = t.isContentLoaded();
185
- return r(() => {
186
- if (c) return;
182
+ }(_));
183
+ }, L = (e) => (N(), S.get(e) ?? k.get(e)), A = (e) => {
184
+ const { movable: t, fallback: n, children: o } = e, [, a] = l((e) => e + 1, 0), i = t.isContentLoaded();
185
+ return f(!i), r(() => {
186
+ if (i) return;
187
187
  let e = !0;
188
188
  return t.whenContentLoaded().then(() => {
189
189
  e && a();
190
190
  }), () => {
191
191
  e = !1;
192
192
  };
193
- }, [t, c]), s(i, { children: c ? o : n });
194
- }, L = (e) => {
193
+ }, [t, i]), c(s, { children: i ? o : n });
194
+ }, K = (e) => {
195
195
  const [, t] = l((e) => e + 1, 0), n = e.module;
196
196
  return r(() => {
197
197
  if (n) return;
198
198
  let o = !0;
199
- const r = O(() => {
199
+ const r = V(() => {
200
200
  o && e.module && t();
201
201
  });
202
202
  return e.loadModule().catch(() => {}), () => {
203
203
  o = !1, r();
204
204
  };
205
205
  }, [e, n]), n;
206
- }, A = (e) => {
207
- const t = L(e.kind);
208
- if (!t) return s(i, { children: e.fallback });
209
- const n = t.renderer;
210
- return s(n, { ...e.props });
211
- }, K = (e, t, n, o) => {
212
- const r = u(e, t, {
206
+ }, U = (e) => {
207
+ const t = K(e.kind), [n, o] = i(!1);
208
+ if (r(() => {
209
+ if (t) return;
210
+ let n = !0;
211
+ return e.kind.loadModule().catch(() => {
212
+ n && o(!0);
213
+ }), () => {
214
+ n = !1;
215
+ };
216
+ }, [e.kind, t]), f(!t && !n), !t) return c(s, { children: e.fallback });
217
+ const l = t.renderer;
218
+ return c(l, { ...e.props });
219
+ }, $ = (e, t, n, o) => {
220
+ const r = p(e, t, {
213
221
  select: (e) => {
214
222
  const t = n?.select ? n.select(e) : e, o = "object" == typeof (r = t) && null !== r && "renderer" in r ? t : { renderer: t };
215
223
  var r;
216
- return c.module = o, c.control = o.control, c.loaded = !0, j(), o;
224
+ return s.module = o, s.control = o.control, s.loaded = !0, D(), o;
217
225
  },
218
226
  prefetch: !1 !== n?.prefetch && (o ?? !0)
219
227
  });
220
228
  let l = null;
221
- const a = n?.fallback ?? null, i = (e) => s(N, {
229
+ const a = n?.fallback ?? null, i = (e) => c(A, {
222
230
  movable: e.movable,
223
231
  fallback: a,
224
- children: s(A, {
225
- kind: c,
232
+ children: c(U, {
233
+ kind: s,
226
234
  fallback: a,
227
235
  props: e
228
236
  })
229
- }), c = {
230
- Renderer: "content" === n?.hitArea ? i : (e) => s("div", {
237
+ }), s = {
238
+ Renderer: "content" === n?.hitArea ? i : (e) => c("div", {
231
239
  className: "movable-content",
232
240
  style: e.style,
233
241
  children: i(e)
@@ -235,8 +243,8 @@ var P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), k = /* @__PURE
235
243
  loaded: !1,
236
244
  control: void 0,
237
245
  LazyControl: (e) => {
238
- const t = L(c)?.control ?? z;
239
- return s(t, { ...e });
246
+ const t = K(s)?.control ?? B;
247
+ return c(t, { ...e });
240
248
  },
241
249
  ownShadow: !1 === n?.selectionShadow,
242
250
  loadModule: () => (l ??= r.load().then((e) => (l = null, e), (t) => {
@@ -245,33 +253,33 @@ var P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), k = /* @__PURE
245
253
  module: void 0,
246
254
  lazyModule: r
247
255
  };
248
- return c;
256
+ return s;
249
257
  };
250
- function U(e, t, n) {
251
- D();
252
- const o = K(`movable-renderer:${e}`, t, n);
253
- return B.set(e, o), j(), () => {
254
- B.get(e) === o && (B.delete(e), d.remove(o.lazyModule), j());
258
+ function F(e, t, n) {
259
+ N();
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());
255
263
  };
256
264
  }
257
- function $(e, t) {
265
+ function H(e, t) {
258
266
  let n = null;
259
267
  const o = {
260
268
  load: () => (n ??= t().then((t) => {
261
- o.pane = t, k.get(e) === o && j();
269
+ o.pane = t, j.get(e) === o && D();
262
270
  }, (e) => {
263
271
  throw n = null, e;
264
272
  }), n),
265
273
  pane: void 0
266
274
  };
267
- return k.set(e, o), j(), () => {
268
- k.get(e) === o && (k.delete(e), j());
275
+ return j.set(e, o), D(), () => {
276
+ j.get(e) === o && (j.delete(e), D());
269
277
  };
270
278
  }
271
- function F(e) {
272
- const t = E(e);
279
+ function O(e) {
280
+ const t = L(e);
273
281
  if (!t?.module) return;
274
- const n = k.get(e);
282
+ const n = j.get(e);
275
283
  n && !n.pane && n.load().catch(() => {});
276
284
  const { control: o, commands: r, toolbar: l, pane: a } = t.module;
277
285
  return {
@@ -282,39 +290,39 @@ function F(e) {
282
290
  pane: n ? n.pane : a
283
291
  };
284
292
  }
285
- async function H(e) {
286
- const t = E(e);
293
+ async function T(e) {
294
+ const t = L(e);
287
295
  if (t) {
288
296
  try {
289
- await t.loadModule(), await k.get(e)?.load();
297
+ await t.loadModule(), await j.get(e)?.load();
290
298
  } catch {
291
299
  return;
292
300
  }
293
- return F(e);
301
+ return O(e);
294
302
  }
295
303
  }
296
- function O(e) {
297
- return S.add(e), () => {
298
- S.delete(e);
304
+ function V(e) {
305
+ return I.add(e), () => {
306
+ I.delete(e);
299
307
  };
300
308
  }
301
- function T(e) {
302
- return !E(e)?.ownShadow;
309
+ function G(e) {
310
+ return !L(e)?.ownShadow;
303
311
  }
304
- function V(e) {
305
- const t = E(e);
312
+ function X(e) {
313
+ const t = L(e);
306
314
  if (t) return t.loaded ? t.control : t.LazyControl;
307
315
  }
308
- function G(e) {
309
- return E(e)?.Renderer;
316
+ function Y(e) {
317
+ return L(e)?.Renderer;
310
318
  }
311
- function X() {
312
- return D(), [.../* @__PURE__ */ new Set([...P.keys(), ...B.keys()])];
319
+ function W() {
320
+ return N(), [.../* @__PURE__ */ new Set([...k.keys(), ...S.keys()])];
313
321
  }
314
- function Y(e, t, n) {
315
- P.set(e, K(`movable-renderer:built-in:${e}`, t, {
322
+ function _(e, t, n) {
323
+ k.set(e, $(`movable-renderer:built-in:${e}`, t, {
316
324
  hitArea: "content",
317
325
  ...n
318
- }, () => !B.has(e)));
326
+ }, () => !S.has(e)));
319
327
  }
320
- export { v as _, X as a, $ as c, z as d, R as f, b as g, g as h, G as i, U as l, y as m, V as n, T as o, x as p, F as r, Y as s, O as t, H as u, f as v };
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.11
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
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.