@sheetxl/react 1.0.5 → 1.0.6

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 (149) hide show
  1. package/browser/esm/{CdLMc8_FiTxEsxwZ.mjs → 4M1ime0lSMPwFdwq.mjs} +1 -1
  2. package/browser/esm/{DwNflr1J0woLdEr3.mjs → 56NlLn16iTCMXWTn.mjs} +6 -6
  3. package/browser/esm/BBpLlCS6trF9IqY7.mjs +325 -0
  4. package/browser/esm/{DGAS1Bt4tv72VwsG.mjs → BCGOU0KEA92-tHXw.mjs} +5 -5
  5. package/browser/esm/{Bpm5mA-WhhskQ7O_.mjs → BPyvBK7c6TKRxVZb.mjs} +1 -1
  6. package/browser/esm/{CLpO-44ZQYtUuHJ_.mjs → BkkfkHsyalXv3k4Q.mjs} +1 -1
  7. package/browser/esm/{DFZDRvUoKsQrTNFt.mjs → Bks84B7NgyzaBVv0.mjs} +1 -1
  8. package/browser/esm/{CyE8HNEdNOeXsRj7.mjs → Bl0-xYLr5UA_pMTT.mjs} +6 -6
  9. package/browser/esm/{BSszu1CZPC63X-0W.mjs → Bp-3XmIZb2fkqunF.mjs} +2 -2
  10. package/browser/esm/{Dbyt1u9b-bkpxFZg.mjs → C1luDkna9W7PNKrz.mjs} +1 -1
  11. package/browser/esm/{DaYS3AaeatKiMKI0.mjs → CKYZvqAf2y2oAkB7.mjs} +1 -1
  12. package/browser/esm/{Bgi1ceZnvTvhowQZ.mjs → CsGmLR7d80u8xidY.mjs} +1 -1
  13. package/browser/esm/D20ReZZxs2JHIqXW.mjs +1681 -0
  14. package/browser/esm/{cMzhFYhRaujQDn1e.mjs → D4OKTHNu7UroAOVB.mjs} +1 -1
  15. package/browser/esm/{CdURrZNtQtHiyEq0.mjs → D9kzGjqEClI2OQO8.mjs} +1 -1
  16. package/browser/esm/{CcJ2ckwm0AJLIkJ7.mjs → DAGQOiFH2fGWDOqj.mjs} +2 -2
  17. package/browser/esm/{HVbo12BbnUEOXJxl.mjs → DBCT8TZn5tx3RRgu.mjs} +1 -1
  18. package/browser/esm/{DRCPWIFyD3G_s4iR.mjs → DIXBmbnM-qkL9ot2.mjs} +8 -6
  19. package/browser/esm/{D3zD1F3zK9CjIbaI.mjs → DpQkiVYU6nJmsEXE.mjs} +3 -3
  20. package/browser/esm/{DzHsdPz_a3UaTaW0.mjs → Dq9OEmhDbQi90JyF.mjs} +3 -3
  21. package/browser/esm/{CSXyl6ZhfB9ZcjfG.mjs → Du_yTZVTH9ZhIwVz.mjs} +1 -1
  22. package/browser/esm/DzcsaJD62P_RrIgp.mjs +127 -0
  23. package/browser/esm/{BUAQF-RIane5evWy.mjs → OYfZSA6eTFsqp5MC.mjs} +1308 -1281
  24. package/browser/esm/{D9nqzJMnC7S3IWTw.mjs → X9EpvcUhpbtf95sq.mjs} +1 -1
  25. package/browser/esm/{DPYZc-PX9UPpwgYO.mjs → XkePaxnbmJijuUST.mjs} +1 -1
  26. package/browser/esm/chart.mjs +3 -3
  27. package/browser/esm/control.mjs +2 -2
  28. package/browser/esm/{CAYrch6ikCVjpWpz.mjs → dE1dGLDL9PIqTCiM.mjs} +73 -35
  29. package/browser/esm/group.mjs +3 -3
  30. package/browser/esm/index.mjs +8930 -9026
  31. package/browser/esm/note.mjs +4 -4
  32. package/browser/esm/{D1KeJvm_q_Zi-53a.mjs → pAnBA5Hy2mjpkAWB.mjs} +2 -2
  33. package/browser/esm/picture.mjs +2 -2
  34. package/browser/esm/shape.mjs +2 -2
  35. package/browser/esm/slicer.mjs +4 -4
  36. package/node/esm/{Ch9ynF_jZSrlpZDS.mjs → BCTgV60zEAPoPG-u.mjs} +1 -1
  37. package/node/esm/{NeaxzrPfaXj62lfB.mjs → BRsrSOeAgAbh8LCL.mjs} +30 -28
  38. package/node/esm/BSYkbwvzEjg5tnyi.mjs +327 -0
  39. package/node/esm/BXCAuiepvo2pCMA6.mjs +177 -0
  40. package/node/esm/{H0KeMIq51yNI7XAn.mjs → Bf1ybiY9HNcds5_H.mjs} +1 -1
  41. package/node/esm/{BzT_rMN7K8KBVLqx.mjs → BkT-mLvzP5h10mLU.mjs} +1 -1
  42. package/node/esm/{9AXvpka4egnBDM3A.mjs → C-l3nPRIH0q_ucYX.mjs} +1 -1
  43. package/node/esm/{-mV1DEJz3g_r9ZVt.mjs → C0syazJAmS6_LFTY.mjs} +5 -5
  44. package/node/esm/{Dd56hZZkvQyCC3Pa.mjs → C3frF4D3I2rcLHK1.mjs} +1 -1
  45. package/node/esm/{KeTXNAWP4ZhLJ0zG.mjs → CIPjf-XhEAQufN0V.mjs} +1 -1
  46. package/node/esm/{CTwwxwXFVbjbYYV_.mjs → CJKhZu3BbJY3VsWH.mjs} +1 -1
  47. package/node/esm/CWoaMwpLSM7gBaVh.mjs +1681 -0
  48. package/node/esm/{Dbj9JZP9wWrDb6Q-.mjs → CcblOBJaE8U6tCWg.mjs} +1 -1
  49. package/node/esm/{BvJUJ2iYjuNxDnjg.mjs → D5UV0AjhZIYGotrV.mjs} +1 -1
  50. package/node/esm/{DmVgKO2JYltH2hmt.mjs → D5rzzywf1R4MvJU0.mjs} +1 -1
  51. package/node/esm/{BgXCGRb7kgCTG-YG.mjs → DEH7X3vDYP518pp4.mjs} +1 -1
  52. package/node/esm/{DvysKgejoU1ToqEJ.mjs → DO7K3oDOoCZ4fpv-.mjs} +2 -2
  53. package/node/esm/{DKz-pmZGTrJglwuX.mjs → DnZ2zYP0QCJWioMW.mjs} +1 -1
  54. package/node/esm/{Dn4jtkqnECzc_xp2.mjs → DrQEt2TfEEgKvYKL.mjs} +1 -1
  55. package/node/esm/{CYJHipsfG6d4VZaU.mjs → Dxv-9TQ2qdooz9VX.mjs} +347 -320
  56. package/node/esm/EvhDIPxbJ1B3lfrj.mjs +166 -0
  57. package/node/esm/{Dd5QCp7bMWDf3GlP.mjs → KC9JU5CVeDBJ2aHR.mjs} +1 -1
  58. package/node/esm/{Bi20m4omZHHDwJ3B.mjs → WFBPS4qHr0sTxFmI.mjs} +1 -1
  59. package/node/esm/chart.mjs +2 -2
  60. package/node/esm/control.mjs +2 -2
  61. package/node/esm/group.mjs +3 -3
  62. package/node/esm/index.mjs +11035 -11128
  63. package/node/esm/note.mjs +4 -4
  64. package/node/esm/picture.mjs +5 -5
  65. package/node/esm/shape.mjs +6 -6
  66. package/node/esm/slicer.mjs +4 -4
  67. package/package.json +7 -7
  68. package/resources/contents.json +6 -0
  69. package/resources/locales/contents.json +14 -0
  70. package/resources/locales/de/cells.cmd.json +1589 -0
  71. package/resources/locales/de/chart.cmd.json +15 -0
  72. package/resources/locales/de/editor.cmd.json +8 -8
  73. package/resources/locales/de/movable.cmd.json +0 -8
  74. package/resources/locales/de/sheet.cmd.json +190 -1713
  75. package/resources/locales/de/ui.msg.json +67 -0
  76. package/resources/locales/en/cells.cmd.json +1602 -0
  77. package/resources/locales/en/chart.cmd.json +15 -0
  78. package/resources/locales/en/editor.cmd.json +8 -8
  79. package/resources/locales/en/movable.cmd.json +0 -8
  80. package/resources/locales/en/sheet.cmd.json +193 -1729
  81. package/resources/locales/en/ui.msg.json +67 -0
  82. package/types/src/chart/ChartCommands.d.ts +5 -3
  83. package/types/src/chart/ChartElement.d.ts +1 -1
  84. package/types/src/chart/PresetChartTypeDescriptors.d.ts +23 -2
  85. package/types/src/chart/_outlinePath.d.ts +17 -0
  86. package/types/src/chart/paint/_fills.d.ts +4 -1
  87. package/types/src/chart/paint/_graphics.d.ts +5 -2
  88. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +19 -5
  89. package/types/src/clipboard/ClipboardCommands.d.ts +16 -4
  90. package/types/src/commands/PaneScopeProvider.d.ts +2 -2
  91. package/types/src/editor/EditorCommands.d.ts +3 -3
  92. package/types/src/icons/chart/ChartIcons.d.ts +20 -0
  93. package/types/src/icons/chart/_ChartIconPack.d.ts +4 -0
  94. package/types/src/icons/chart/_chartIconKeys.d.ts +4 -0
  95. package/types/src/icons/chart/index.d.ts +1 -49
  96. package/types/src/index.d.ts +1 -0
  97. package/types/src/layer/MovableKindScope.d.ts +3 -2
  98. package/types/src/layer/MovableToolbar.d.ts +27 -0
  99. package/types/src/layer/RangeToolbar.d.ts +17 -4
  100. package/types/src/layer/SheetMovableLayer.d.ts +6 -0
  101. package/types/src/layer/ValidationDropdownLayer.d.ts +1 -1
  102. package/types/src/layer/index.d.ts +1 -0
  103. package/types/src/movable/MovableCommands.d.ts +8 -2
  104. package/types/src/movable/MovableLayer.d.ts +2 -0
  105. package/types/src/movable/MovableRenderers.d.ts +43 -1
  106. package/types/src/movable/_drawingFormat.d.ts +15 -0
  107. package/types/src/presence/PresenceCommands.d.ts +1 -1
  108. package/types/src/sheet/IWorksheetElement.d.ts +9 -0
  109. package/types/src/sheet/SheetCommandProvider.d.ts +17 -10
  110. package/types/src/sheet/SheetCommands.d.ts +17 -4
  111. package/types/src/taskPane/FormatPane.d.ts +46 -0
  112. package/types/src/taskPane/MovablePane.d.ts +8 -10
  113. package/types/src/taskPane/TaskPaneArea.d.ts +57 -2
  114. package/types/src/taskPane/TaskPaneEmpty.d.ts +14 -0
  115. package/types/src/taskPane/TaskPaneKeys.d.ts +8 -4
  116. package/types/src/taskPane/TaskPaneRegistry.d.ts +2 -1
  117. package/types/src/taskPane/TaskPaneStrip.d.ts +13 -2
  118. package/types/src/taskPane/_taskPaneHost.d.ts +9 -0
  119. package/types/src/taskPane/index.d.ts +2 -0
  120. package/types/src/taskPane/useTaskPane.d.ts +14 -18
  121. package/browser/esm/ZPOCHFycZqmFav3f.mjs +0 -264
  122. package/node/esm/BuQt6aujDbFNe4im.mjs +0 -128
  123. package/node/esm/CjUIWph6hGIsBoRP.mjs +0 -265
  124. package/types/src/icons/chart/ChartAreaIcon.d.ts +0 -5
  125. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +0 -5
  126. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +0 -5
  127. package/types/src/icons/chart/ChartBarIcon.d.ts +0 -5
  128. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +0 -5
  129. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +0 -5
  130. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +0 -5
  131. package/types/src/icons/chart/ChartBubbleIcon.d.ts +0 -5
  132. package/types/src/icons/chart/ChartColumnIcon.d.ts +0 -5
  133. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +0 -5
  134. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +0 -5
  135. package/types/src/icons/chart/ChartLineIcon.d.ts +0 -5
  136. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +0 -5
  137. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +0 -5
  138. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +0 -5
  139. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +0 -5
  140. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +0 -5
  141. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +0 -5
  142. package/types/src/icons/chart/ChartPieIcon.d.ts +0 -5
  143. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +0 -5
  144. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +0 -5
  145. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +0 -5
  146. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +0 -5
  147. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +0 -5
  148. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +0 -5
  149. package/types/src/icons/chart/ThemedChartIcon.d.ts +0 -20
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./CdLMc8_FiTxEsxwZ.mjs";
8
- import { t } from "./DFZDRvUoKsQrTNFt.mjs";
9
- import { t as n } from "./BSszu1CZPC63X-0W.mjs";
7
+ import { t as e } from "./4M1ime0lSMPwFdwq.mjs";
8
+ import { t } from "./Bks84B7NgyzaBVv0.mjs";
9
+ import { t as n } from "./Bp-3XmIZb2fkqunF.mjs";
10
10
  import { Color as r, IColor as i, IFont as a, IFontStyle as o, IStroke as s } from "@sheetxl/sdk";
11
11
  import { forwardRef as c, memo as l, useReducer as u } from "react";
12
12
  import { jsx as d } 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. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { i as e, n as t, r as n, t as r } from "./CcJ2ckwm0AJLIkJ7.mjs";
7
+ import { i as e, n as t, r as n, t as r } from "./DAGQOiFH2fGWDOqj.mjs";
8
8
  var i = !1;
9
9
  function a(e) {
10
10
  let t = [];
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- export { t as PictureEditor } from "./DGAS1Bt4tv72VwsG.mjs";
7
+ export { t as PictureEditor } from "./BCGOU0KEA92-tHXw.mjs";
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- export { t as ShapeEditor } from "./DwNflr1J0woLdEr3.mjs";
7
+ export { t as ShapeEditor } from "./56NlLn16iTCMXWTn.mjs";
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./CdLMc8_FiTxEsxwZ.mjs";
8
- import { n as t } from "./HVbo12BbnUEOXJxl.mjs";
9
- import { i as n, r, t as i } from "./CdURrZNtQtHiyEq0.mjs";
7
+ import { t as e } from "./4M1ime0lSMPwFdwq.mjs";
8
+ import { n as t } from "./DBCT8TZn5tx3RRgu.mjs";
9
+ import { i as n, r, t as i } from "./D9kzGjqEClI2OQO8.mjs";
10
10
  import { IFont as a } from "@sheetxl/sdk";
11
11
  import { forwardRef as o, memo as s, useCallback as c, useEffect as l, useLayoutEffect as u, useMemo as d, useReducer as f, useRef as p, useState as m } from "react";
12
12
  import { jsx as h, jsxs as g } 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. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,25 +1,25 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./Dbj9JZP9wWrDb6Q-.mjs";
7
+ import { t as e } from "./CcblOBJaE8U6tCWg.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";
11
- import { useGridPane as h } from "@sheetxl/grid-react";
12
- import { ReactUtils as m, usePendingRender as f } from "@sheetxl/utils-react";
11
+ import { useGridPane as m } from "@sheetxl/grid-react";
12
+ import { ReactUtils as h, usePendingRender as f } from "@sheetxl/utils-react";
13
13
  var g = Object.freeze({
14
14
  x: 0,
15
15
  y: 0,
16
16
  width: 0,
17
17
  height: 0
18
18
  }), v = (e, t, n) => {
19
- const o = n?.bounds ?? e.getBounds(), r = o ? t.toPaneBounds(o) : g, l = m.getDevicePixelRatio();
19
+ const o = n?.bounds ?? e.getBounds(), r = o ? t.toPaneBounds(o) : g, l = h.getDevicePixelRatio();
20
20
  return {
21
- left: m.snapDeviceEdge(r.x, l),
22
- top: m.snapDeviceEdge(r.y, l),
21
+ left: h.snapDeviceEdge(r.x, l),
22
+ top: h.snapDeviceEdge(r.y, l),
23
23
  width: r.width,
24
24
  height: r.height,
25
25
  rotation: n?.rotation ?? (e.getRotation() || 0),
@@ -52,7 +52,7 @@ var g = Object.freeze({
52
52
  for (let n = e.getParent(); n; n = n.getParent()) t++;
53
53
  return t;
54
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);
55
+ const i = m(), [, s] = l((e) => e + 1, 0);
56
56
  e(t, {
57
57
  onBoundsChange: () => s(),
58
58
  onAnyChange: () => s()
@@ -96,7 +96,7 @@ var R = {
96
96
  const n = 180 * Math.atan2(e[1], e[0]) / Math.PI + t;
97
97
  return z[(Math.round(n / 45) % 4 + 4) % 4];
98
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) => {
99
+ const { directions: t, rotation: n, isDragging: r = !1, onResizeStart: l, onResize: i, onResizeEnd: s, onResizeCancel: u, context: p = !1, onMoveStart: m, children: h } = e, f = a(null), g = o((e) => {
100
100
  if (0 !== e.button) return;
101
101
  e.stopPropagation(), e.preventDefault();
102
102
  const t = R[e.currentTarget.dataset.direction ?? ""];
@@ -118,8 +118,8 @@ var R = {
118
118
  const t = f.current;
119
119
  t && t.pointerId === e.pointerId && (f.current = null, u());
120
120
  }, [u]), x = o((e) => {
121
- 0 === e.button && (e.stopPropagation(), e.preventDefault(), h?.(e.nativeEvent));
122
- }, [h]);
121
+ 0 === e.button && (e.stopPropagation(), e.preventDefault(), m?.(e.nativeEvent));
122
+ }, [m]);
123
123
  return d("div", {
124
124
  className: [
125
125
  "sxl-movable-control",
@@ -127,7 +127,7 @@ var R = {
127
127
  p ? "sxl-context" : null
128
128
  ].filter(Boolean).join(" "),
129
129
  children: [
130
- m,
130
+ h,
131
131
  c("div", { className: "sxl-movable-control-outline" }),
132
132
  t.map((e) => {
133
133
  const t = R[e];
@@ -145,7 +145,7 @@ var R = {
145
145
  onPointerCancel: w
146
146
  }, e) : null;
147
147
  }),
148
- h ? c("div", {
148
+ m ? c("div", {
149
149
  className: "sxl-movable-move-handle",
150
150
  onPointerDown: x,
151
151
  children: c("svg", {
@@ -162,7 +162,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
162
162
  for (const e of [...I]) e();
163
163
  }, E = !1, N = () => {
164
164
  E || (E = !0, function(e) {
165
- e("picture", () => import("./DvysKgejoU1ToqEJ.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./BuQt6aujDbFNe4im.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./9AXvpka4egnBDM3A.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./-mV1DEJz3g_r9ZVt.mjs"), {
165
+ e("picture", () => import("./DO7K3oDOoCZ4fpv-.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./EvhDIPxbJ1B3lfrj.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./C-l3nPRIH0q_ucYX.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./C0syazJAmS6_LFTY.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,7 +174,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
174
174
  ...o,
175
175
  note: t.movable.getContent()
176
176
  });
177
- } }), e("error", () => import("./H0KeMIq51yNI7XAn.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
177
+ } }), e("error", () => import("./Bf1ybiY9HNcds5_H.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
  };
@@ -203,7 +203,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
203
203
  o = !1, r();
204
204
  };
205
205
  }, [e, n]), n;
206
- }, U = (e) => {
206
+ }, T = (e) => {
207
207
  const t = K(e.kind), [n, o] = i(!1);
208
208
  if (r(() => {
209
209
  if (t) return;
@@ -216,7 +216,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
216
216
  }, [e.kind, t]), f(!t && !n), !t) return c(s, { children: e.fallback });
217
217
  const l = t.renderer;
218
218
  return c(l, { ...e.props });
219
- }, $ = (e, t, n, o) => {
219
+ }, U = (e, t, n, o) => {
220
220
  const r = p(e, t, {
221
221
  select: (e) => {
222
222
  const t = n?.select ? n.select(e) : e, o = "object" == typeof (r = t) && null !== r && "renderer" in r ? t : { renderer: t };
@@ -229,7 +229,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
229
229
  const a = n?.fallback ?? null, i = (e) => c(A, {
230
230
  movable: e.movable,
231
231
  fallback: a,
232
- children: c(U, {
232
+ children: c(T, {
233
233
  kind: s,
234
234
  fallback: a,
235
235
  props: e
@@ -255,14 +255,14 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
255
255
  };
256
256
  return s;
257
257
  };
258
- function F(e, t, n) {
258
+ function $(e, t, n) {
259
259
  N();
260
- const o = $(`movable-renderer:${e}`, t, n);
260
+ const o = U(`movable-renderer:${e}`, t, n);
261
261
  return j.set(e, o), D(), () => {
262
262
  j.get(e) === o && (j.delete(e), u.remove(o.lazyModule), D());
263
263
  };
264
264
  }
265
- function H(e, t) {
265
+ function F(e, t) {
266
266
  let n = null;
267
267
  const o = {
268
268
  load: () => (n ??= t().then((t) => {
@@ -276,21 +276,23 @@ function H(e, t) {
276
276
  S.get(e) === o && (S.delete(e), D());
277
277
  };
278
278
  }
279
- function O(e) {
279
+ function H(e) {
280
280
  const t = L(e);
281
281
  if (!t?.module) return;
282
282
  const n = S.get(e);
283
283
  n && !n.pane && n.load().catch(() => {});
284
- const { control: o, commands: r, toolbar: l, pane: a } = t.module;
284
+ const { control: o, commands: r, toolbar: l, floatingToolbar: a, buttons: i, pane: s } = t.module;
285
285
  return {
286
286
  type: e,
287
287
  control: o,
288
288
  commands: r,
289
289
  toolbar: l,
290
- pane: n ? n.pane : a
290
+ floatingToolbar: a,
291
+ buttons: i,
292
+ pane: n ? n.pane : s
291
293
  };
292
294
  }
293
- async function T(e) {
295
+ async function O(e) {
294
296
  const t = L(e);
295
297
  if (t) {
296
298
  try {
@@ -298,7 +300,7 @@ async function T(e) {
298
300
  } catch {
299
301
  return;
300
302
  }
301
- return O(e);
303
+ return H(e);
302
304
  }
303
305
  }
304
306
  function V(e) {
@@ -320,9 +322,9 @@ function W() {
320
322
  return N(), [.../* @__PURE__ */ new Set([...k.keys(), ...j.keys()])];
321
323
  }
322
324
  function _(e, t, n) {
323
- k.set(e, $(`movable-renderer:built-in:${e}`, t, {
325
+ k.set(e, U(`movable-renderer:built-in:${e}`, t, {
324
326
  hitArea: "content",
325
327
  ...n
326
328
  }, () => !j.has(e)));
327
329
  }
328
- export { w as _, W as a, H as c, B as d, P as f, x 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 };
330
+ export { w as _, W as a, F as c, B as d, P as f, x as g, b as h, Y as i, $ as l, C as m, X as n, G as o, y as p, H as r, _ as s, V as t, O as u, v };
@@ -0,0 +1,327 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { createContext as e, forwardRef as t, memo as r, useCallback as n, useContext as o, useEffect as l, useId as i, useLayoutEffect as s, useRef as a, useState as c } from "react";
8
+ import { jsx as d, jsxs as h } from "react/jsx-runtime";
9
+ import { CommonUtils as u, defineLazyModule as g } from "@sheetxl/utils";
10
+ import { useImperativeElement as m, useMeasure as p, usePendingRender as f, usePersistentState as y, useResolvedThemeMode as k } from "@sheetxl/utils-react";
11
+ import { useMergeRefs as $ } from "react-merge-refs";
12
+ var x = {
13
+ Mode: "themeMode",
14
+ DarkGrid: "enableDarkGrid",
15
+ DarkImages: "enableDarkImages"
16
+ }, M = {
17
+ [x.Mode]: null,
18
+ [x.DarkGrid]: !1,
19
+ [x.DarkImages]: !1
20
+ }, v = e(null);
21
+ v.displayName = "GridColorSchemeContext";
22
+ var b = (e) => {
23
+ const t = o(v), [r] = y(x.Mode, M[x.Mode]), [n] = y(x.DarkGrid, M[x.DarkGrid]), { themeMode: l } = k({ mode: e ?? r ?? void 0 });
24
+ return e ? "auto" === e ? l : e : t || ("dark" === l && n ? "dark" : "light");
25
+ }, w = (e) => {
26
+ const [t] = y(x.Mode, M[x.Mode]), { themeMode: r } = k({ mode: e ?? t ?? void 0 });
27
+ return r;
28
+ }, L = g("chart:paint", () => import("./Dxv-9TQ2qdooz9VX.mjs")), E = (e) => String(Math.round(100 * e) / 100), C = (e) => `${E(e.x)} ${E(e.y)}`, A = (e, t, r) => {
29
+ const n = r * Math.PI / 180;
30
+ return {
31
+ x: e.x + t * Math.sin(n),
32
+ y: e.y - t * Math.cos(n)
33
+ };
34
+ }, P = (e, t, r) => {
35
+ const n = r ? 1 : 0, o = C({
36
+ x: e.x - t,
37
+ y: e.y
38
+ }), l = C({
39
+ x: e.x + t,
40
+ y: e.y
41
+ });
42
+ return `M${o}A${E(t)} ${E(t)} 0 1 ${n} ${l}A${E(t)} ${E(t)} 0 1 ${n} ${o}Z`;
43
+ }, D = (e) => {
44
+ const { center: t, innerRadius: r, outerRadius: n, startAngle: o, endAngle: l } = e, i = l - o;
45
+ if (!(i > 0 && n > 0)) return "";
46
+ if (i >= 360) return P(t, n, !0) + (r > 0 ? P(t, r, !1) : "");
47
+ const s = i > 180 ? 1 : 0, a = `M${C(A(t, n, o))}A${E(n)} ${E(n)} 0 ${s} 1 ${C(A(t, n, l))}`;
48
+ return r > 0 ? `${a}L${C(A(t, r, l))}A${E(r)} ${E(r)} 0 ${s} 0 ${C(A(t, r, o))}Z` : `${a}L${C(t)}Z`;
49
+ }, G = (e) => {
50
+ if (e.length < 3) return "";
51
+ let t = 0;
52
+ for (let r = 0; r < e.length; r++) {
53
+ const n = e[r], o = e[(r + 1) % e.length];
54
+ t += n.x * o.y - o.x * n.y;
55
+ }
56
+ return `M${(t >= 0 ? e : [...e].reverse()).map(C).join("L")}Z`;
57
+ }, S = (e) => {
58
+ const t = Math.min(e.x, e.x + e.width), r = Math.min(e.y, e.y + e.height);
59
+ return `M${E(t)} ${E(r)}h${E(Math.abs(e.width))}v${E(Math.abs(e.height))}h${E(-Math.abs(e.width))}Z`;
60
+ }, Z = (e, t) => {
61
+ const r = e.getElementType();
62
+ if ("point" === r) {
63
+ const r = e.getParent();
64
+ return t === r || "point" === t?.getElementType() && t.getParent() === r ? e : r;
65
+ }
66
+ if ("legendEntry" === r) {
67
+ const r = e.getParent();
68
+ return t === r || "legendEntry" === t?.getElementType() ? e : r;
69
+ }
70
+ if ("dataLabel" === r) {
71
+ const r = e.getParent()?.getParent(), n = r?.getDataLabels();
72
+ return n ? t === n || "dataLabel" === t?.getElementType() && t.getParent()?.getParent() === r ? e : n : e;
73
+ }
74
+ return e;
75
+ }, F = {
76
+ filled: "",
77
+ lines: []
78
+ }, I = (e, t, r) => {
79
+ const n = [];
80
+ for (const o of r.getItems()) {
81
+ if (o.getChart() !== e) continue;
82
+ const r = e.getElementOutline(o, t);
83
+ r && n.push(...r);
84
+ }
85
+ return n.length > 0 ? ((e) => {
86
+ let t = "";
87
+ const r = [];
88
+ for (const n of e) switch (n.type) {
89
+ case "rect":
90
+ t += S(n);
91
+ break;
92
+ case "circle":
93
+ n.radius > 0 && (t += P(n.center, n.radius, !0));
94
+ break;
95
+ case "sector":
96
+ t += D(n);
97
+ break;
98
+ case "polygon":
99
+ t += G(n.points);
100
+ break;
101
+ case "line": n.points.length > 1 && r.push({
102
+ d: `M${n.points.map(C).join("L")}${n.closed ? "Z" : ""}`,
103
+ width: n.width
104
+ });
105
+ }
106
+ return {
107
+ filled: t,
108
+ lines: r
109
+ };
110
+ })(n) : F;
111
+ }, T = r(t((e, t) => {
112
+ const { children: r, style: o, chart: g, onChartChange: y, zoom: k = 1, width: x, height: M, selection: v = null, colorScheme: b, onElementPress: E, onPointerDown: C, ...A } = e, [P, D] = c(() => u.isPromiseLike(g) ? null : g), [G, S] = c(null), T = a(y);
113
+ T.current = y;
114
+ const j = a(null);
115
+ l(() => {
116
+ let e = !0;
117
+ const t = (e, t) => {
118
+ S(t), D(e), j.current !== e && (j.current = e, T.current?.(e));
119
+ };
120
+ if (u.isPromiseLike(g)) return g.then((r) => {
121
+ e && t(r, null);
122
+ }, (r) => {
123
+ e && t(null, r);
124
+ }), () => {
125
+ e = !1;
126
+ };
127
+ t(g, null);
128
+ }, [g]);
129
+ const [N, R] = p(), z = "number" == typeof x ? x : R.width, W = "number" == typeof M ? M : R.height, B = z ? Math.round(z / k) : 0, O = W ? Math.round(W / k) : 0, U = a({
130
+ width: B,
131
+ height: O
132
+ });
133
+ U.current = {
134
+ width: B,
135
+ height: O
136
+ };
137
+ const V = w(), X = "dark" === (b ?? V), Y = n(async (e) => {
138
+ const t = U.current;
139
+ if (!P || !t.width || !t.height) return null;
140
+ const r = P.getLayout(t);
141
+ return r ? (await L.load()).renderChartToSVG(r, { darkMode: e?.darkMode ?? !1 }) : null;
142
+ }, [P]), _ = a(null), q = a(null), H = a(k);
143
+ H.current = k;
144
+ const J = n((e, t) => {
145
+ const r = _.current;
146
+ if (!r) return null;
147
+ const n = r.getBoundingClientRect(), o = H.current || 1;
148
+ return {
149
+ x: (e - n.left) / o,
150
+ y: (t - n.top) / o
151
+ };
152
+ }, []), K = n((e, t) => {
153
+ const r = q.current, n = J(e, t);
154
+ return P && r && n ? P.getElementAt(n, r) : null;
155
+ }, [P, J]), Q = m(t, () => ({
156
+ isChartElement: () => !0,
157
+ getChart: () => P,
158
+ toSVG: Y,
159
+ getElementAt: K
160
+ }), [
161
+ P,
162
+ Y,
163
+ K
164
+ ]), ee = $([
165
+ Q,
166
+ N,
167
+ _
168
+ ]), te = a(null), re = a(null), [ne, oe] = c(() => L.peek() ?? null), [le, ie] = c(null), [se, ae] = c(0), [ce, de] = c(F), he = `sxl-chart-outline-${i().replace(/[^a-zA-Z0-9_-]/g, "")}`;
169
+ l(() => P?.addListeners({ onLayoutChange: () => ae((e) => e + 1) }), [P]), f(!(le || G || ne && P)), l(() => {
170
+ if (ne) return;
171
+ let e = !0;
172
+ return L.load().then((t) => {
173
+ e && oe(t);
174
+ }, (t) => {
175
+ e && ie(t);
176
+ }), () => {
177
+ e = !1;
178
+ };
179
+ }, [ne]);
180
+ const ue = n(() => {
181
+ const e = q.current;
182
+ de(P && e && v && !v.isEmpty() ? I(P, e, v) : F);
183
+ }, [P, v]);
184
+ l(() => v?.addListeners({ onChange: ue }), [v, ue]), s(() => {
185
+ const e = te.current;
186
+ if (!(ne && e && P && B && O)) return;
187
+ const t = P.getLayout({
188
+ width: B,
189
+ height: O
190
+ });
191
+ if (q.current = t, !t) return re.current?.dispose(), re.current = null, e.style.backgroundColor = "", void ue();
192
+ const r = void 0 === t.chartArea.fill;
193
+ e.style.backgroundColor = r ? `var(--sxl-color-base-100, ${X ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = r ? `${t.chartArea.cornerRadius}px` : "";
194
+ const n = {
195
+ darkMode: X,
196
+ background: "transparent"
197
+ };
198
+ re.current ? re.current.update(t, n) : re.current = ne.mountChart(e, t, n), ue();
199
+ }, [
200
+ ne,
201
+ P,
202
+ B,
203
+ O,
204
+ se,
205
+ X,
206
+ ue
207
+ ]), l(() => () => {
208
+ re.current?.dispose(), re.current = null, q.current = null;
209
+ }, [P]);
210
+ const ge = n((e) => {
211
+ if (C?.(e), 0 !== e.button && 2 !== e.button) return;
212
+ const t = q.current, r = J(e.clientX, e.clientY);
213
+ if (!P || !t || !r) return;
214
+ const n = P.getElementAt(r, t);
215
+ if (E?.({
216
+ element: n,
217
+ point: r,
218
+ event: e
219
+ }), !v) return;
220
+ if (!n || "chartArea" === n.getElementType()) return void v.clear();
221
+ const o = Z(n, v.getActive());
222
+ v.isSelected(o) && 1 === v.getItems().length || v.select([o]);
223
+ }, [
224
+ P,
225
+ v,
226
+ E,
227
+ C,
228
+ J
229
+ ]);
230
+ if (P?.isDeleted()) return;
231
+ const me = le ?? G, pe = "" !== ce.filled || ce.lines.length > 0, fe = 2 / (k || 1), ye = 1 / (k || 1);
232
+ return h("div", {
233
+ ...A,
234
+ onPointerDown: ge,
235
+ style: {
236
+ ...void 0 !== x ? { width: x } : {},
237
+ ...void 0 !== M ? { height: M } : {},
238
+ ...o,
239
+ overflow: "hidden"
240
+ },
241
+ ref: ee,
242
+ children: [me ? d("div", {
243
+ className: "sxl-chart-element-error",
244
+ style: {
245
+ padding: "8px",
246
+ fontSize: "12px",
247
+ color: "var(--sxl-color-error, #b00020)"
248
+ },
249
+ children: me.message
250
+ }) : null, h("div", {
251
+ style: {
252
+ position: "relative",
253
+ width: "100%",
254
+ height: "100%"
255
+ },
256
+ children: [d("div", {
257
+ className: "sxl-chart-element",
258
+ ref: te,
259
+ style: {
260
+ width: B || "100%",
261
+ height: O || "100%",
262
+ zoom: k,
263
+ position: "relative"
264
+ }
265
+ }), pe ? h("svg", {
266
+ className: "sxl-chart-element-selection",
267
+ width: B * k,
268
+ height: O * k,
269
+ viewBox: `0 0 ${B} ${O}`,
270
+ fill: "none",
271
+ strokeLinejoin: "round",
272
+ strokeLinecap: "round",
273
+ style: {
274
+ position: "absolute",
275
+ left: 0,
276
+ top: 0,
277
+ pointerEvents: "none"
278
+ },
279
+ children: [h("mask", {
280
+ id: he,
281
+ maskUnits: "userSpaceOnUse",
282
+ x: 0,
283
+ y: 0,
284
+ width: B,
285
+ height: O,
286
+ children: [
287
+ d("rect", {
288
+ width: B,
289
+ height: O,
290
+ fill: "#fff"
291
+ }),
292
+ ce.filled ? d("path", {
293
+ d: ce.filled,
294
+ fill: "#000"
295
+ }) : null,
296
+ ce.lines.map((e, t) => d("path", {
297
+ d: e.d,
298
+ stroke: "#000",
299
+ strokeWidth: e.width,
300
+ strokeLinecap: "butt"
301
+ }, t))
302
+ ]
303
+ }), d("g", {
304
+ mask: `url(#${he})`,
305
+ children: [{
306
+ stroke: "var(--sxl-color-base-100, #fff)",
307
+ reach: fe + ye
308
+ }, {
309
+ stroke: "var(--sxl-color-primary, #1a73e8)",
310
+ reach: fe
311
+ }].map(({ stroke: e, reach: t }, r) => h("g", {
312
+ stroke: e,
313
+ children: [ce.filled ? d("path", {
314
+ d: ce.filled,
315
+ strokeWidth: 2 * t
316
+ }) : null, ce.lines.map((e, r) => d("path", {
317
+ d: e.d,
318
+ strokeWidth: e.width + 2 * t
319
+ }, r))]
320
+ }, r))
321
+ })]
322
+ }) : null]
323
+ })]
324
+ });
325
+ }));
326
+ T.displayName = "ChartElement";
327
+ export { v as a, b as i, Z as n, M as o, w as r, x as s, T as t };