@sheetxl/react 0.8.0-beta.9 → 1.0.0

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 (398) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/2YDUWXaXpl9cdsk7.mjs +8 -0
  3. package/browser/esm/64NfoZ1s7Oe3vdpX.mjs +60 -0
  4. package/browser/esm/BJDz5J4gFUEYi1Wz.mjs +36 -0
  5. package/browser/esm/B_CI6xMNropeWGgr.mjs +134 -0
  6. package/browser/esm/BgA4Cz8iMysciFOb.mjs +45 -0
  7. package/browser/esm/BkG6VuJDmu_hfIo6.mjs +31 -0
  8. package/browser/esm/BmO7yh4NjxeJylOD.mjs +14092 -0
  9. package/browser/esm/BwFFSeqtE3TIuvtc.mjs +341 -0
  10. package/browser/esm/CENTtj0PnF_tvpST.mjs +79 -0
  11. package/browser/esm/CVY0-_x6IgpdUVNp.mjs +264 -0
  12. package/browser/esm/CdyivRoMgPXvRiiE.mjs +197 -0
  13. package/browser/esm/CiylJlRA7mt8yjPD.mjs +128 -0
  14. package/browser/esm/D9CTIGFUbVGJkeVE.mjs +401 -0
  15. package/browser/esm/D9NgFucLwPgAQNgf.mjs +19 -0
  16. package/browser/esm/DdFOaG09eksHtKwT.mjs +145 -0
  17. package/browser/esm/DdHdNjRkzo1iShOo.mjs +78 -0
  18. package/browser/esm/DfIvpHB7HDdmIYNm.mjs +9560 -0
  19. package/browser/esm/DfNDtzixfTPjmoW_.mjs +32 -0
  20. package/browser/esm/Dtb9bOBjtPdUAr8x.mjs +20 -0
  21. package/browser/esm/Dz5pGpL4XWXVdntj.mjs +323 -0
  22. package/browser/esm/{Dk6274Lic6AOmEAq.mjs → SJAlYSFKC-5yNZ-C.mjs} +84 -2
  23. package/browser/esm/chart.mjs +41 -0
  24. package/browser/esm/control.mjs +217 -0
  25. package/browser/esm/group.mjs +123 -0
  26. package/browser/esm/index.mjs +21677 -15289
  27. package/browser/esm/jHqSboF5oFvzSM7a.mjs +63 -0
  28. package/browser/esm/note.mjs +112 -0
  29. package/browser/esm/oljQE8EpIzoxUjUz.mjs +323 -0
  30. package/browser/esm/picture.mjs +7 -0
  31. package/browser/esm/shape.mjs +7 -0
  32. package/browser/esm/slicer.mjs +282 -0
  33. package/browser/esm/w8MsScJSe7QxP6jL.mjs +67 -0
  34. package/browser/esm/yRqWQRSVyiR1kYh8.mjs +42 -0
  35. package/licenses/dependencies.txt +327 -53
  36. package/node/esm/1XOgrNXKQF__O9SV.mjs +8 -0
  37. package/node/esm/Aw6aaKE_YOA1Vi_V.mjs +146 -0
  38. package/node/esm/B6Oqu2Gw1pwWPf_N.mjs +328 -0
  39. package/node/esm/BizlElAhqg_Bc624.mjs +198 -0
  40. package/node/esm/C06Y1xPsbxgn3YX7.mjs +128 -0
  41. package/node/esm/C2dHN_gvhBxlFFnJ.mjs +45 -0
  42. package/node/esm/C4_5UcCdys1hzt5E.mjs +68 -0
  43. package/node/esm/CIidiDtqyubz13ys.mjs +80 -0
  44. package/node/esm/CTFb8PjwC1q6yilw.mjs +80 -0
  45. package/node/esm/C_GJPG-BTFhta8GD.mjs +265 -0
  46. package/node/esm/CdTeYrDgGp-s-KNG.mjs +134 -0
  47. package/node/esm/{B-5p0wwNM6Y5jlI2.mjs → CeMKhq6cSxfWzN5H.mjs} +84 -2
  48. package/node/esm/DJIBAu8bEDmlVjtD.mjs +20 -0
  49. package/node/esm/DUQ1PY9P63cTe_Es.mjs +37 -0
  50. package/node/esm/Db8NRp_kZ-FfkZaO.mjs +32 -0
  51. package/node/esm/Dl2kdvb4G_ddqeDN.mjs +19 -0
  52. package/node/esm/DlDr-o5nAZgPbn6R.mjs +1697 -0
  53. package/node/esm/DvRLP1lEBfwHBrEC.mjs +63 -0
  54. package/node/esm/JVlPlE1ys7DM3yCP.mjs +35 -0
  55. package/node/esm/NSddS40Vqf1xKdDd.mjs +406 -0
  56. package/node/esm/QqwCS9GFuDnQausz.mjs +66 -0
  57. package/node/esm/chart.mjs +41 -0
  58. package/node/esm/control.mjs +217 -0
  59. package/node/esm/group.mjs +123 -0
  60. package/node/esm/index.mjs +16970 -10477
  61. package/node/esm/note.mjs +113 -0
  62. package/node/esm/picture.mjs +326 -0
  63. package/node/esm/shape.mjs +342 -0
  64. package/node/esm/slicer.mjs +284 -0
  65. package/package.json +56 -14
  66. package/resources/contents.json +36 -0
  67. package/resources/locales/contents.json +84 -0
  68. package/resources/locales/de/chart.cmd.json +82 -0
  69. package/resources/locales/de/movable.cmd.json +68 -0
  70. package/resources/locales/de/picture.cmd.json +188 -0
  71. package/resources/locales/de/pivot.cmd.json +79 -0
  72. package/resources/locales/de/shape.cmd.json +17 -0
  73. package/resources/locales/de/sheet.cmd.json +169 -16
  74. package/resources/locales/de/slicer.cmd.json +17 -0
  75. package/resources/locales/de/sparkline.cmd.json +301 -0
  76. package/resources/locales/de/table.cmd.json +13 -2
  77. package/resources/locales/de/ui.msg.json +353 -2
  78. package/resources/locales/de/workbook.cmd.json +8 -1
  79. package/resources/locales/en/chart.cmd.json +82 -0
  80. package/resources/locales/en/movable.cmd.json +68 -0
  81. package/resources/locales/en/picture.cmd.json +188 -0
  82. package/resources/locales/en/pivot.cmd.json +79 -0
  83. package/resources/locales/en/shape.cmd.json +17 -0
  84. package/resources/locales/en/sheet.cmd.json +170 -17
  85. package/resources/locales/en/slicer.cmd.json +17 -0
  86. package/resources/locales/en/sparkline.cmd.json +301 -0
  87. package/resources/locales/en/table.cmd.json +13 -2
  88. package/resources/locales/en/ui.msg.json +195 -3
  89. package/resources/locales/en/workbook.cmd.json +8 -1
  90. package/types/chart.d.ts +2 -0
  91. package/types/control.d.ts +2 -0
  92. package/types/group.d.ts +2 -0
  93. package/types/note.d.ts +2 -0
  94. package/types/picture.d.ts +2 -0
  95. package/types/shape.d.ts +2 -0
  96. package/types/slicer.d.ts +2 -0
  97. package/types/src/annotation/RangeAnnotationLayer.d.ts +110 -0
  98. package/types/src/annotation/RangeAnnotationTag.d.ts +23 -0
  99. package/types/src/annotation/RangeAnnotations.d.ts +180 -0
  100. package/types/src/annotation/index.d.ts +4 -0
  101. package/types/src/autoFill/FillMenu.d.ts +2 -2
  102. package/types/src/autoFill/FillSeries.d.ts +2 -2
  103. package/types/src/border/StaticBorderRenderer.d.ts +18 -1
  104. package/types/src/border/useBorders.d.ts +95 -3
  105. package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
  106. package/types/src/cell/CellContent.d.ts +68 -0
  107. package/types/src/cell/CellControlContext.d.ts +37 -0
  108. package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +10 -7
  109. package/types/src/cell/CellImageRenderer.d.ts +11 -0
  110. package/types/src/cell/CellRenderers.d.ts +190 -0
  111. package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +11 -8
  112. package/types/src/cell/ColumnButton.d.ts +3 -3
  113. package/types/src/cell/CornerTriangle.d.ts +2 -1
  114. package/types/src/cell/OutlineButton.d.ts +4 -4
  115. package/types/src/cell/PivotButton.d.ts +55 -0
  116. package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
  117. package/types/src/cell/StaticCellRenderer.d.ts +3 -3
  118. package/types/src/cell/_DropdownFace.d.ts +29 -0
  119. package/types/src/cell/index.d.ts +9 -2
  120. package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
  121. package/types/src/cell/useInsertableCellControls.d.ts +25 -0
  122. package/types/src/chart/ChartCommands.d.ts +15 -0
  123. package/types/src/chart/ChartEditor.d.ts +12 -2
  124. package/types/src/chart/ChartElement.d.ts +122 -0
  125. package/types/src/chart/ChartKind.d.ts +7 -0
  126. package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
  127. package/types/src/chart/index.d.ts +2 -1
  128. package/types/src/chart/paint/_fills.d.ts +24 -0
  129. package/types/src/chart/paint/_graphics.d.ts +38 -0
  130. package/types/src/chart/paint/_mode.d.ts +6 -0
  131. package/types/src/chart/paint/echarts.d.ts +33 -0
  132. package/types/src/chart/paint/index.d.ts +12 -0
  133. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +140 -0
  134. package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
  135. package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
  136. package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
  137. package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
  138. package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
  139. package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
  140. package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
  141. package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
  142. package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
  143. package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
  144. package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
  145. package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
  146. package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
  147. package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
  148. package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
  149. package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
  150. package/types/src/chart/paint/kinds/_builtIns.d.ts +3 -0
  151. package/types/src/chart/paint/toEChartsOption.d.ts +42 -0
  152. package/types/src/checklist/ValueChecklist.d.ts +44 -15
  153. package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
  154. package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
  155. package/types/src/commands/ContextualToolbar.d.ts +19 -0
  156. package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
  157. package/types/src/commands/index.d.ts +1 -0
  158. package/types/src/comment/CommentCardRequest.d.ts +9 -9
  159. package/types/src/comment/index.d.ts +0 -1
  160. package/types/src/comment/useSheetComments.d.ts +2 -2
  161. package/types/src/conditionalFormat/ConditionalFormatPresets.d.ts +6 -6
  162. package/types/src/context/WorksheetContext.d.ts +18 -0
  163. package/types/src/context/index.d.ts +1 -1
  164. package/types/src/control/FormControlRenderers.d.ts +8 -0
  165. package/types/src/editableLabel/EditableLabel.d.ts +3 -1
  166. package/types/src/editor/EditorCommands.d.ts +3 -3
  167. package/types/src/editor/SheetCellEditorLayer.d.ts +2 -7
  168. package/types/src/editor/SheetCellEditorStartLayer.d.ts +22 -5
  169. package/types/src/editor/SheetCellInput.d.ts +14 -0
  170. package/types/src/editor/SheetEditable.d.ts +6 -6
  171. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
  172. package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
  173. package/types/src/editor/VirtualKeyboardLayer.d.ts +50 -0
  174. package/types/src/editor/formulaAnchor.d.ts +12 -0
  175. package/types/src/editor/formulaPresentation.d.ts +4 -3
  176. package/types/src/editor/index.d.ts +2 -0
  177. package/types/src/editor/pickedReference.d.ts +3 -3
  178. package/types/src/editor/useEditRejectedNotice.d.ts +3 -3
  179. package/types/src/editor/useFormulaHints.d.ts +3 -3
  180. package/types/src/editor/useFormulaInput.d.ts +6 -3
  181. package/types/src/editor/validationAlert.d.ts +24 -0
  182. package/types/src/form/FormulaInput.d.ts +5 -2
  183. package/types/src/form/useEditCommit.d.ts +23 -3
  184. package/types/src/form/useInputField.d.ts +2 -3
  185. package/types/src/frame/CommandContext.d.ts +74 -3
  186. package/types/src/group/GroupEditor.d.ts +25 -0
  187. package/types/src/index.d.ts +10 -2
  188. package/types/src/layer/BorderLayer.d.ts +5 -2
  189. package/types/src/layer/CellErrorLayer.d.ts +18 -7
  190. package/types/src/layer/CellFillLayer.d.ts +2 -2
  191. package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
  192. package/types/src/layer/CellInsertLayer.d.ts +71 -0
  193. package/types/src/layer/CircularIndicatorLayer.d.ts +3 -3
  194. package/types/src/layer/CommentCardLayer.d.ts +7 -9
  195. package/types/src/layer/CommentsLayer.d.ts +2 -2
  196. package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
  197. package/types/src/layer/ConditionalIcons.d.ts +4 -4
  198. package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
  199. package/types/src/layer/ContextMenuLayer.d.ts +2 -2
  200. package/types/src/layer/FreezeDragLines.d.ts +17 -0
  201. package/types/src/layer/GridFreezeLayer.d.ts +11 -0
  202. package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
  203. package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
  204. package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
  205. package/types/src/layer/HyperlinkLayer.d.ts +116 -0
  206. package/types/src/layer/MovableKindScope.d.ts +17 -0
  207. package/types/src/layer/PivotLayer.d.ts +47 -0
  208. package/types/src/layer/PivotToolbar.d.ts +29 -0
  209. package/types/src/layer/ProtectionLayer.d.ts +4 -5
  210. package/types/src/layer/RangeToolbar.d.ts +75 -0
  211. package/types/src/layer/ResizeIndicator.d.ts +11 -10
  212. package/types/src/layer/ResizeTooltip.d.ts +13 -0
  213. package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
  214. package/types/src/layer/SheetCellLayer.d.ts +15 -8
  215. package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
  216. package/types/src/layer/SheetGridLineLayer.d.ts +25 -15
  217. package/types/src/layer/SheetHeaderCellLayer.d.ts +1 -1
  218. package/types/src/layer/SheetLayers.d.ts +171 -0
  219. package/types/src/layer/SheetMovableLayer.d.ts +4 -3
  220. package/types/src/layer/SheetOutlineLayer.d.ts +3 -3
  221. package/types/src/layer/SheetPivotCommandLayer.d.ts +13 -0
  222. package/types/src/layer/SheetSparklineCommandLayer.d.ts +14 -0
  223. package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
  224. package/types/src/layer/SparklineLayer.d.ts +32 -0
  225. package/types/src/layer/SpillLayer.d.ts +2 -2
  226. package/types/src/layer/TableLayer.d.ts +6 -5
  227. package/types/src/layer/TableToolbar.d.ts +23 -0
  228. package/types/src/layer/ValidationDropdownLayer.d.ts +2 -2
  229. package/types/src/layer/ValidationIndicatorLayer.d.ts +2 -2
  230. package/types/src/layer/ValidationPromptLayer.d.ts +47 -16
  231. package/types/src/layer/_sheetBorders.d.ts +6 -0
  232. package/types/src/layer/_tableColor.d.ts +6 -0
  233. package/types/src/layer/_visibleCellFeatures.d.ts +11 -0
  234. package/types/src/layer/cellTip.d.ts +13 -0
  235. package/types/src/layer/freezeDragState.d.ts +21 -0
  236. package/types/src/layer/index.d.ts +14 -0
  237. package/types/src/layer/resizeIndicatorState.d.ts +3 -1
  238. package/types/src/layer/useFreezeDrag.d.ts +22 -0
  239. package/types/src/layer/useNormalBorderLines.d.ts +15 -0
  240. package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
  241. package/types/src/layer/useSheetVisibleCells.d.ts +5 -6
  242. package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
  243. package/types/src/layer/useTableHeaderCells.d.ts +2 -2
  244. package/types/src/layer/useValidationPicker.d.ts +3 -3
  245. package/types/src/layer/useVisibleTables.d.ts +2 -2
  246. package/types/src/layer/validationMark.d.ts +3 -3
  247. package/types/src/listener/index.d.ts +5 -0
  248. package/types/src/listener/useCell.d.ts +29 -0
  249. package/types/src/listener/useCellRange.d.ts +23 -0
  250. package/types/src/listener/useCellValue.d.ts +26 -0
  251. package/types/src/listener/useModelListener.d.ts +4 -4
  252. package/types/src/listener/useRangeListener.d.ts +13 -7
  253. package/types/src/listener/useRangeSnapshot.d.ts +35 -0
  254. package/types/src/listener/useTable.d.ts +26 -0
  255. package/types/src/movable/ConnectionSites.d.ts +18 -0
  256. package/types/src/movable/DefaultMovable.d.ts +8 -0
  257. package/types/src/movable/IMovableArea.d.ts +28 -0
  258. package/types/src/movable/MovableAdornment.d.ts +9 -3
  259. package/types/src/movable/MovableCommandGroups.d.ts +22 -0
  260. package/types/src/movable/MovableCommands.d.ts +8 -3
  261. package/types/src/movable/MovableControl.d.ts +49 -1
  262. package/types/src/movable/MovableFrame.d.ts +5 -1
  263. package/types/src/movable/MovableLayer.d.ts +30 -5
  264. package/types/src/movable/MovableRenderers.d.ts +166 -11
  265. package/types/src/movable/PlaceholderFrames.d.ts +11 -0
  266. package/types/src/movable/RotateHandle.d.ts +12 -4
  267. package/types/src/movable/connect.d.ts +16 -0
  268. package/types/src/movable/framePlacement.d.ts +44 -1
  269. package/types/src/movable/geometry.d.ts +13 -3
  270. package/types/src/movable/index.d.ts +8 -0
  271. package/types/src/movable/pressTarget.d.ts +20 -0
  272. package/types/src/movable/useFramePreview.d.ts +17 -0
  273. package/types/src/picker/cellPickerOpen.d.ts +3 -3
  274. package/types/src/picker/useCellPicker.d.ts +7 -5
  275. package/types/src/picture/PictureCommands.d.ts +20 -0
  276. package/types/src/picture/PictureKind.d.ts +7 -0
  277. package/types/src/picture/_pictureHyperlink.d.ts +13 -0
  278. package/types/src/picture/index.d.ts +0 -1
  279. package/types/src/picture/pictureCrop.d.ts +32 -0
  280. package/types/src/pivot/PivotAreas.d.ts +16 -0
  281. package/types/src/pivot/PivotChip.d.ts +33 -0
  282. package/types/src/pivot/PivotChipMenu.d.ts +74 -0
  283. package/types/src/pivot/PivotCommands.d.ts +24 -0
  284. package/types/src/pivot/PivotFieldList.d.ts +14 -0
  285. package/types/src/pivot/PivotFields.d.ts +47 -0
  286. package/types/src/pivot/PivotFieldsModel.d.ts +143 -0
  287. package/types/src/pivot/PivotTablePane.d.ts +47 -0
  288. package/types/src/pivot/_PivotFieldsContext.d.ts +41 -0
  289. package/types/src/pivot/_pivotNew.d.ts +12 -0
  290. package/types/src/pivot/_pivotRegion.d.ts +14 -0
  291. package/types/src/pivot/index.d.ts +9 -0
  292. package/types/src/pivot/usePivotFields.d.ts +17 -0
  293. package/types/src/presence/PresenceCommands.d.ts +35 -0
  294. package/types/src/presence/PresenceHost.d.ts +58 -0
  295. package/types/src/presence/PresenceMessages.d.ts +42 -0
  296. package/types/src/presence/PresenceStore.d.ts +165 -0
  297. package/types/src/presence/PresenceTypes.d.ts +78 -0
  298. package/types/src/presence/index.d.ts +7 -0
  299. package/types/src/presence/usePresence.d.ts +20 -0
  300. package/types/src/richText/RichTextEditor.d.ts +2 -2
  301. package/types/src/selection/SelectionCommands.d.ts +2 -2
  302. package/types/src/selection/SheetSelectionLayer.d.ts +6 -12
  303. package/types/src/shape/ConnectorControl.d.ts +46 -0
  304. package/types/src/shape/ShapeCommands.d.ts +11 -0
  305. package/types/src/shape/ShapeControl.d.ts +8 -0
  306. package/types/src/shape/ShapeEditor.d.ts +2 -3
  307. package/types/src/shape/ShapeGallery.d.ts +21 -6
  308. package/types/src/shape/ShapeKind.d.ts +7 -0
  309. package/types/src/shape/ShapeSVG.d.ts +6 -8
  310. package/types/src/shape/index.d.ts +0 -1
  311. package/types/src/shape/shapeFrame.d.ts +46 -2
  312. package/types/src/shape/shapeStyle.d.ts +59 -8
  313. package/types/src/sheet/ISheetHeaderElement.d.ts +3 -3
  314. package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +110 -86
  315. package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
  316. package/types/src/sheet/SheetCommandProvider.d.ts +14 -6
  317. package/types/src/sheet/SheetCommands.d.ts +18 -3
  318. package/types/src/sheet/SheetKindIcon.d.ts +14 -0
  319. package/types/src/sheet/SheetOutlineElement.d.ts +6 -6
  320. package/types/src/sheet/SheetPanels.d.ts +11 -0
  321. package/types/src/sheet/SheetScrollbar.d.ts +4 -13
  322. package/types/src/sheet/TopLeftCorner.d.ts +2 -2
  323. package/types/src/sheet/WorksheetElement.d.ts +12 -0
  324. package/types/src/sheet/_freezeAt.d.ts +10 -0
  325. package/types/src/sheet/_hyperlinkEdit.d.ts +7 -0
  326. package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
  327. package/types/src/sheet/circularReferences.d.ts +4 -4
  328. package/types/src/sheet/index.d.ts +5 -2
  329. package/types/src/sheet/useCycleHighlight.d.ts +2 -2
  330. package/types/src/slicer/SlicerCommands.d.ts +10 -0
  331. package/types/src/slicer/SlicerEditor.d.ts +8 -2
  332. package/types/src/slicer/SlicerKind.d.ts +7 -0
  333. package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
  334. package/types/src/slicer/index.d.ts +2 -1
  335. package/types/src/slicer/slicerStyles.d.ts +32 -0
  336. package/types/src/sparkline/PictureCache.d.ts +37 -0
  337. package/types/src/sparkline/SparklineCommands.d.ts +23 -0
  338. package/types/src/sparkline/SparklinePictures.d.ts +7 -0
  339. package/types/src/sparkline/paint/_drawing.d.ts +24 -0
  340. package/types/src/sparkline/paint/echarts.d.ts +8 -0
  341. package/types/src/sparkline/paint/index.d.ts +8 -0
  342. package/types/src/tabStrip/SheetTab.d.ts +1 -1
  343. package/types/src/tabStrip/Sortable.d.ts +5 -5
  344. package/types/src/tabStrip/TabStrip.d.ts +13 -6
  345. package/types/src/tabStrip/TabStripItem.d.ts +15 -13
  346. package/types/src/table/TableCommands.d.ts +2 -2
  347. package/types/src/taskPane/CellControlPane.d.ts +15 -0
  348. package/types/src/taskPane/MovablePane.d.ts +15 -0
  349. package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
  350. package/types/src/taskPane/TaskPaneFrame.d.ts +4 -4
  351. package/types/src/taskPane/TaskPaneKeys.d.ts +38 -0
  352. package/types/src/taskPane/TaskPaneRegistry.d.ts +32 -12
  353. package/types/src/taskPane/_paneReasons.d.ts +7 -0
  354. package/types/src/taskPane/index.d.ts +3 -0
  355. package/types/src/taskPane/useTaskPane.d.ts +6 -3
  356. package/types/src/theme/ExplicitTokens.d.ts +18 -0
  357. package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
  358. package/types/src/theme/ThemeRootStyles.d.ts +31 -0
  359. package/types/src/theme/ThemeState.d.ts +2 -2
  360. package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
  361. package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
  362. package/types/src/theme/buildTokensCSS.d.ts +15 -0
  363. package/types/src/theme/index.d.ts +2 -4
  364. package/types/src/theme/useAppColorScheme.d.ts +4 -1
  365. package/types/src/theme/useGridColorScheme.d.ts +9 -4
  366. package/types/src/theme/useSystemColors.d.ts +1 -15
  367. package/types/src/workbook/DefaultMovableRenderers.d.ts +19 -1
  368. package/types/src/workbook/DefaultRenderers.d.ts +5 -4
  369. package/types/src/workbook/IWorkbookElement.d.ts +176 -30
  370. package/types/src/workbook/WorkbookCommands.d.ts +6 -1
  371. package/types/src/workbook/WorkbookStrip.d.ts +14 -5
  372. package/browser/cjs/index.cjs +0 -43
  373. package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +0 -1
  374. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
  375. package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
  376. package/types/src/chart/templates/area-template.json.d.ts +0 -9
  377. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
  378. package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
  379. package/types/src/chart/templates/bar-template.json.d.ts +0 -9
  380. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
  381. package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
  382. package/types/src/chart/templates/column-template.json.d.ts +0 -9
  383. package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
  384. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
  385. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
  386. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
  387. package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
  388. package/types/src/chart/templates/line-template.json.d.ts +0 -9
  389. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
  390. package/types/src/chart/templates/pie-template.json.d.ts +0 -9
  391. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
  392. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
  393. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
  394. package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
  395. package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
  396. package/types/src/context/SheetContext.d.ts +0 -18
  397. package/types/src/control/index.d.ts +0 -2
  398. package/types/src/sheet/SheetElement.d.ts +0 -15
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.0
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { SlicerEditor as e } from "./slicer.mjs";
8
+ import { jsx as t } from "react/jsx-runtime";
9
+ import { messageKey as n } from "@sheetxl/utils";
10
+ var r = {
11
+ renderer: (n) => t(e, {
12
+ ...n,
13
+ slicer: n.movable.getContent()
14
+ }),
15
+ commands: (e, t) => {
16
+ let { sheet: r, movable: i } = t, a = i.getContent(), o = () => ({
17
+ slicer: () => a,
18
+ styles: () => r.getStyles()
19
+ }), s = () => {
20
+ e.updateCommand("formatSlicerStyle", {
21
+ callback: (e) => {
22
+ e && a.setStyle(e);
23
+ },
24
+ state: a.getStyle(),
25
+ context: o,
26
+ disabledReasons: a.isReadOnly() ? [n("reason.sheetProtected")] : []
27
+ });
28
+ };
29
+ return s(), a.addListeners({ onAnyChange: s });
30
+ }
31
+ };
32
+ export { r as SlicerKind };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.0
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, useContext as t } from "react";
8
+ import { jsx as n } from "react/jsx-runtime";
9
+ var r = e(null);
10
+ function i(e) {
11
+ let { sheet: t, children: i } = e;
12
+ return n(r.Provider, {
13
+ value: t,
14
+ children: i
15
+ });
16
+ }
17
+ function a() {
18
+ return t(r);
19
+ }
20
+ export { a as n, i as t };
@@ -0,0 +1,323 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.0
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { t as e } from "./BgA4Cz8iMysciFOb.mjs";
8
+ import { n as t } from "./Dtb9bOBjtPdUAr8x.mjs";
9
+ import { t as n } from "./D9NgFucLwPgAQNgf.mjs";
10
+ import { i as r, r as i, t as a } from "./D9CTIGFUbVGJkeVE.mjs";
11
+ import { forwardRef as o, memo as s, useCallback as c, useEffect as l, useId as u, useMemo as d, useReducer as ee, useRef as te, useState as f } from "react";
12
+ import { jsx as p, jsxs as ne } from "react/jsx-runtime";
13
+ import { useSurfaceStateSetter as re } from "@sheetxl/grid-react";
14
+ import { ReactUtils as ie, useImperativeElement as ae, useNotifier as oe, usePendingRender as se } from "@sheetxl/utils-react";
15
+ var m = (e) => Math.round(1e3 * e) / 1e3, h = (e, t, n) => {
16
+ let r = m(50 * (1 - e.width / (n * t.width))), i = m(50 * (1 - e.height / (n * t.height)));
17
+ return {
18
+ left: r,
19
+ right: r,
20
+ top: i,
21
+ bottom: i
22
+ };
23
+ }, g = (e, t) => h(e, t, Math.max(e.width / t.width, e.height / t.height)), _ = (e, t) => h(e, t, Math.min(e.width / t.width, e.height / t.height)), v = (e, t, n) => {
24
+ let r = Math.min(e.width, e.height * n), i = r / n, { left: a = 0, top: o = 0, right: s = 0, bottom: c = 0 } = t, l = (e.width - r) / 2 / e.width * (100 - a - s), u = (e.height - i) / 2 / e.height * (100 - o - c);
25
+ return {
26
+ bounds: {
27
+ x: e.x + (e.width - r) / 2,
28
+ y: e.y + (e.height - i) / 2,
29
+ width: r,
30
+ height: i
31
+ },
32
+ crop: {
33
+ left: m(a + l),
34
+ right: m(s + l),
35
+ top: m(o + u),
36
+ bottom: m(c + u)
37
+ }
38
+ };
39
+ }, y = "data:image/webp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zH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", b = {
40
+ left: "0%",
41
+ top: "0%",
42
+ width: "100%",
43
+ height: "100%"
44
+ }, x = {
45
+ position: "absolute",
46
+ left: 0,
47
+ top: 0,
48
+ width: "100%",
49
+ height: "100%",
50
+ display: "block",
51
+ pointerEvents: "none"
52
+ }, S = s(o((o, s) => {
53
+ let { children: m, disabled: h, style: g, picture: _, movable: v, zoom: S = 1, gesture: ce, description: le, tile: C, offsetX: ue = 0, offsetY: w = 0, isDragging: de, onHide: fe, onShow: pe, onDragZone: me, onTap: T, adornmentHost: he, flip: E, onKeyDownCapture: ge, onFocus: _e, onBlur: ve, loadingPanel: ye, ...be } = o, [D, O] = f(!1), [k, xe] = f(null), [A, j] = f(null), [M, N] = f(null), [Se, P] = ee((e) => e + 1, 0);
54
+ e(_, { onAnyChange: P }), e(v ?? null, {
55
+ onBoundsChange: P,
56
+ onSelectionChange: P
57
+ });
58
+ let Ce = t(), F = oe(), I = _.toJSON(), { width: L, height: R, rotation: z } = r(v), B = L > 0 && R > 0, V = !!I.fill || !!I.stroke || I.geometry !== void 0 && I.geometry !== "rect", we = I.adjustments ? JSON.stringify(I.adjustments) : "", [H, U] = f(null), [Te, W] = f(!1);
59
+ l(() => {
60
+ if (!V || !B) return U(null), void W(!1);
61
+ let e = !0;
62
+ return _.getGeometry(L, R).then((t) => {
63
+ e && (U(t), W(!0));
64
+ }, () => {
65
+ e && (U(null), W(!0));
66
+ }), () => {
67
+ e = !1;
68
+ };
69
+ }, [
70
+ _,
71
+ V,
72
+ B,
73
+ I.geometry,
74
+ we
75
+ ]);
76
+ let G = d(() => H && B ? H.getWidth() === L && H.getHeight() === R ? H : H.resize(L, R) : null, [
77
+ H,
78
+ B,
79
+ L,
80
+ R
81
+ ]), [Ee, De] = f(null);
82
+ l(() => {
83
+ if (!C || !A) return;
84
+ let e = !0, t = new Image();
85
+ return t.src = A, (typeof t.decode == "function" ? t.decode() : Promise.resolve()).catch(() => {}).then(() => {
86
+ e && De(A);
87
+ }), () => {
88
+ e = !1;
89
+ };
90
+ }, [C, A]), se(!D && (C ? Ee !== A || !A : !k) || V && B && !Te);
91
+ let K = Ce?.getStyles() ?? null, q = d(() => V ? i({
92
+ fill: I.fill,
93
+ stroke: I.stroke,
94
+ style: null
95
+ }, K) : null, [
96
+ V,
97
+ I.fill,
98
+ I.stroke,
99
+ K
100
+ ]), Oe = `${u().replace(/[^A-Za-z0-9_-]/g, "")}-clip`, J = d(() => {
101
+ if (!G || I.geometry === void 0 || I.geometry === "rect") return null;
102
+ let e = [];
103
+ return G.forEachPath((t) => {
104
+ t.layer === "fill" && e.push(t.d);
105
+ }), e.length > 0 ? e.join(" ") : null;
106
+ }, [G, I.geometry]), ke = E?.horizontal ?? !1, Ae = E?.vertical ?? !1, je = d(() => z % 360 == 0 && B ? {
107
+ dpr: ie.getDevicePixelRatio(),
108
+ zoom: S,
109
+ width: L,
110
+ height: R,
111
+ flipH: ke,
112
+ flipV: Ae
113
+ } : null, [
114
+ z,
115
+ B,
116
+ S,
117
+ L,
118
+ R,
119
+ ke,
120
+ Ae
121
+ ]), Y = _.getHyperlink?.() ?? null, X = re(n, null), Z = te(null);
122
+ l(() => () => {
123
+ Z.current?.(), X((e) => e === _ ? null : e);
124
+ }, [_, X]), l(() => {
125
+ Y || X((e) => e === _ ? null : e);
126
+ }, [
127
+ !Y,
128
+ _,
129
+ X
130
+ ]);
131
+ let Q = c((e) => {
132
+ v?.unselect(), e.open().catch((e) => {
133
+ F.showError?.(e instanceof Error ? e : String(e));
134
+ });
135
+ }, [v, F]);
136
+ l(() => {
137
+ T?.(() => {
138
+ let e = _.getHyperlink?.();
139
+ return !!e && (Q(e), !0);
140
+ });
141
+ }, [
142
+ T,
143
+ _,
144
+ Q
145
+ ]), l(() => {
146
+ j(null), _.getDetails().then((e) => {
147
+ O(!1), j(e.asUrl()), N(e.asSVGText?.() || null);
148
+ }).catch((e) => {
149
+ console.warn(e), O(!0), j(y), N(null);
150
+ });
151
+ }, [_, Se]);
152
+ let Me = ae(s, () => ({ isPictureEditor: () => !0 }), []), Ne = I.image?.sourceRect, Pe = d(() => ((e) => {
153
+ let { left: t = 0, top: n = 0, right: r = 0, bottom: i = 0 } = e ?? {}, a = (100 - t - r) / 100, o = (100 - n - i) / 100;
154
+ return {
155
+ left: -t / a + "%",
156
+ top: -n / o + "%",
157
+ width: 100 / a + "%",
158
+ height: 100 / o + "%"
159
+ };
160
+ })(Ne), [Ne]), Fe = d(() => {
161
+ if (A || M) return C ? p("div", { style: {
162
+ backgroundPosition: `${ue}px ${w}px`,
163
+ backgroundImage: `url(${A})`,
164
+ backgroundRepeat: "repeat",
165
+ backgroundSize: "auto",
166
+ width: "100%",
167
+ height: "100%",
168
+ filter: "var(--_sxl-image-filter)"
169
+ } }) : p("img", {
170
+ style: {
171
+ position: "absolute",
172
+ ...D ? b : Pe,
173
+ border: D ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
174
+ backgroundColor: D ? "var(--sxl-color-base-100, white)" : void 0,
175
+ boxShadow: D ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
176
+ objectFit: D ? "contain" : void 0,
177
+ opacity: +!!k,
178
+ filter: "var(--_sxl-image-filter)"
179
+ },
180
+ draggable: !1,
181
+ src: A ?? void 0,
182
+ onLoad: () => {
183
+ xe(!0);
184
+ },
185
+ onError: ({ currentTarget: e }) => {
186
+ console.log("error"), e.onerror = null, j(y), O(!0);
187
+ },
188
+ alt: le ?? `${_.getType()}`
189
+ });
190
+ }, [
191
+ k,
192
+ _,
193
+ A,
194
+ M,
195
+ de,
196
+ C,
197
+ ue,
198
+ w,
199
+ Pe,
200
+ D,
201
+ le
202
+ ]);
203
+ if (_.isDeleted()) return;
204
+ let Ie = E && (E.horizontal || E.vertical) ? `scale(${E.horizontal ? -1 : 1}, ${E.vertical ? -1 : 1})` : void 0, $ = g?.pointerEvents === "none" ? "none" : "visiblePainted", { left: Le = 0, top: Re = 0, right: ze = 0, bottom: Be = 0 } = I.image?.stretch ?? {};
205
+ return ne("div", {
206
+ className: "sxl-picture-editor",
207
+ style: {
208
+ position: "relative",
209
+ display: "flex",
210
+ flex: "1 1 100%",
211
+ filter: de ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
212
+ transform: Ie,
213
+ transformOrigin: "center",
214
+ ...g,
215
+ pointerEvents: "none",
216
+ width: "100%",
217
+ height: "100%"
218
+ },
219
+ ...be,
220
+ onPointerDownCapture: Y ? (e) => {
221
+ if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || !v || v.isSelected()) return;
222
+ Z.current?.();
223
+ let t = e.currentTarget.ownerDocument, { pointerId: n, clientX: r, clientY: i, timeStamp: a } = e.nativeEvent, o = (e) => {
224
+ if (e.pointerId !== n || (Z.current?.(), !(Math.abs(e.clientX - r) <= 4 && Math.abs(e.clientY - i) <= 4 && e.timeStamp - a <= 500))) return;
225
+ let t = _.getHyperlink();
226
+ t && Q(t);
227
+ }, s = (e) => {
228
+ e.pointerId === n && Z.current?.();
229
+ };
230
+ t.addEventListener("pointerup", o), t.addEventListener("pointercancel", s), Z.current = () => {
231
+ Z.current = null, t.removeEventListener("pointerup", o), t.removeEventListener("pointercancel", s);
232
+ };
233
+ } : void 0,
234
+ onPointerEnter: Y ? () => {
235
+ X(_);
236
+ } : void 0,
237
+ onPointerLeave: Y ? () => {
238
+ X((e) => e === _ ? null : e);
239
+ } : void 0,
240
+ onKeyDownCapture: (e) => {
241
+ ge?.(e);
242
+ },
243
+ ref: Me,
244
+ children: [
245
+ G && q ? p("svg", {
246
+ className: "sxl-picture-fill",
247
+ viewBox: `0 0 ${L} ${R}`,
248
+ preserveAspectRatio: "none",
249
+ overflow: "visible",
250
+ style: x,
251
+ children: p(a, {
252
+ geometry: G,
253
+ style: {
254
+ ...q,
255
+ stroke: null,
256
+ strokeGradient: void 0,
257
+ strokeWidth: 0
258
+ },
259
+ zoom: S,
260
+ grid: je,
261
+ hit: $
262
+ })
263
+ }) : null,
264
+ J ? p("svg", {
265
+ width: 0,
266
+ height: 0,
267
+ style: { position: "absolute" },
268
+ "aria-hidden": !0,
269
+ children: p("defs", { children: p("clipPath", {
270
+ id: Oe,
271
+ clipPathUnits: "objectBoundingBox",
272
+ children: p("path", {
273
+ d: J,
274
+ transform: `scale(${1 / L} ${1 / R})`
275
+ })
276
+ }) })
277
+ }) : null,
278
+ p("div", {
279
+ className: "sxl-picture-clip",
280
+ style: {
281
+ position: "absolute",
282
+ ...b,
283
+ clipPath: J ? `url(#${Oe})` : void 0,
284
+ pointerEvents: g?.pointerEvents ?? "auto",
285
+ cursor: Y && !v?.isSelected() ? "pointer" : void 0
286
+ },
287
+ children: ne("div", {
288
+ className: "sxl-picture-image",
289
+ style: {
290
+ position: "absolute",
291
+ left: `${Le}%`,
292
+ top: `${Re}%`,
293
+ right: `${ze}%`,
294
+ bottom: `${Be}%`,
295
+ overflow: "hidden"
296
+ },
297
+ children: [k || D ? void 0 : ye, Fe]
298
+ })
299
+ }),
300
+ G && q && q.strokeWidth > 0 ? p("svg", {
301
+ className: "sxl-picture-border",
302
+ viewBox: `0 0 ${L} ${R}`,
303
+ preserveAspectRatio: "none",
304
+ overflow: "visible",
305
+ style: x,
306
+ children: p(a, {
307
+ geometry: G,
308
+ style: {
309
+ ...q,
310
+ fill: null,
311
+ gradient: void 0,
312
+ image: void 0
313
+ },
314
+ zoom: S,
315
+ grid: je,
316
+ hit: $
317
+ })
318
+ }) : null
319
+ ]
320
+ });
321
+ }));
322
+ S.displayName = "PictureEditor";
323
+ export { _ as i, v as n, g as r, S as t };
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.9
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.0
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
7
  var e = "-2 -2 24 24", t = {
8
8
  meta: {
@@ -2596,6 +2596,88 @@ var e = "-2 -2 24 24", t = {
2596
2596
  className: "line"
2597
2597
  }]
2598
2598
  } },
2599
+ lineArrow: { svg: {
2600
+ viewBox: e,
2601
+ paths: [
2602
+ {
2603
+ d: "M0 0 L20 20",
2604
+ className: "fill",
2605
+ opacity: .2
2606
+ },
2607
+ {
2608
+ d: "M0 0 L16.5 16.5",
2609
+ className: "line"
2610
+ },
2611
+ {
2612
+ d: "M20 20 L17.9 13.6 L13.6 17.9 Z",
2613
+ className: "fill",
2614
+ opacity: 1
2615
+ }
2616
+ ]
2617
+ } },
2618
+ lineArrowDouble: { svg: {
2619
+ viewBox: e,
2620
+ paths: [
2621
+ {
2622
+ d: "M0 0 L20 20",
2623
+ className: "fill",
2624
+ opacity: .2
2625
+ },
2626
+ {
2627
+ d: "M3.5 3.5 L16.5 16.5",
2628
+ className: "line"
2629
+ },
2630
+ {
2631
+ d: "M0 0 L6.4 2.1 L2.1 6.4 Z M20 20 L17.9 13.6 L13.6 17.9 Z",
2632
+ className: "fill",
2633
+ opacity: 1
2634
+ }
2635
+ ]
2636
+ } },
2637
+ bentConnector3Arrow: { svg: {
2638
+ viewBox: "-3.8 -2.3 27.6 27.6",
2639
+ paths: [{
2640
+ d: "M0 0 L10 0 L10 20 L15 20",
2641
+ className: "line"
2642
+ }, {
2643
+ d: "M20 20 L14 17 L14 23 Z",
2644
+ className: "fill",
2645
+ opacity: 1
2646
+ }]
2647
+ } },
2648
+ bentConnector3ArrowDouble: { svg: {
2649
+ viewBox: "-5.6 -5.6 31.2 31.2",
2650
+ paths: [{
2651
+ d: "M5 0 L10 0 L10 20 L15 20",
2652
+ className: "line"
2653
+ }, {
2654
+ d: "M0 0 L6 -3 L6 3 Z M20 20 L14 17 L14 23 Z",
2655
+ className: "fill",
2656
+ opacity: 1
2657
+ }]
2658
+ } },
2659
+ curvedConnector3Arrow: { svg: {
2660
+ viewBox: "-2.5 -2.1 25 25",
2661
+ paths: [{
2662
+ d: "M0 0 C5 0 10 5 10 10 C10 13.4 12.3 16.7 15.3 18.6",
2663
+ className: "line"
2664
+ }, {
2665
+ d: "M20 20 L15.4 15.2 L13.3 20.8 Z",
2666
+ className: "fill",
2667
+ opacity: 1
2668
+ }]
2669
+ } },
2670
+ curvedConnector3ArrowDouble: { svg: {
2671
+ viewBox: "-3 -3 25.9 25.9",
2672
+ paths: [{
2673
+ d: "M4.7 1.4 C7.7 3.3 10 6.6 10 10 C10 13.4 12.3 16.7 15.3 18.6",
2674
+ className: "line"
2675
+ }, {
2676
+ d: "M0 0 L6.7 -0.8 L4.6 4.8 Z M20 20 L15.4 15.2 L13.3 20.8 Z",
2677
+ className: "fill",
2678
+ opacity: 1
2679
+ }]
2680
+ } },
2599
2681
  Shapes: { svg: {
2600
2682
  viewBox: "0 0 24 24",
2601
2683
  paths: [
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.0
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { i as e, n as t, t as n } from "./CVY0-_x6IgpdUVNp.mjs";
8
+ import { t as r } from "./BkG6VuJDmu_hfIo6.mjs";
9
+ import { forwardRef as i, memo as a, useCallback as o, useLayoutEffect as s, useRef as c } from "react";
10
+ import { jsx as l } from "react/jsx-runtime";
11
+ import { useImperativeElement as u } from "@sheetxl/utils-react";
12
+ var d = a(i((t, i) => {
13
+ let { children: a, disabled: d, style: f, chart: p, zoom: m = 1, isDragging: h, movable: g, onHide: _, onShow: v, onDragZone: y, onTap: b, adornmentHost: x, flip: S, gesture: C, ...w } = t, T = u(i, () => ({ isChartEditor: () => !0 }), []), E = c(null), D = r([T, E]), O = e(), k = g?.getRange()?.getWorksheet()?.getView()?.getChartElementSelection() ?? null;
14
+ s(() => {
15
+ y?.((e) => {
16
+ let t = "touches" in e ? e.touches[0] : e;
17
+ if (!t) return !0;
18
+ let n = E.current?.getElementAt(t.clientX, t.clientY) ?? null;
19
+ return !n || n.getElementType() === "chartArea";
20
+ });
21
+ }, [y]);
22
+ let A = o((e) => {
23
+ !d && e.element && e.element.getElementType() !== "chartArea" && (e.event.stopPropagation(), g && !g.isSelected() && g.select());
24
+ }, [g, d]);
25
+ if (!p.isDeleted()) return l(n, {
26
+ ...w,
27
+ chart: p,
28
+ zoom: m,
29
+ colorScheme: O,
30
+ selection: d ? null : k,
31
+ onElementPress: A,
32
+ style: {
33
+ ...f,
34
+ filter: d ? "blur(1px)" : void 0,
35
+ boxShadow: h ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0
36
+ },
37
+ ref: D
38
+ });
39
+ }));
40
+ d.displayName = "ChartEditor";
41
+ export { d as ChartEditor, n as ChartElement, t as nextSelected };