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

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 (359) hide show
  1. package/browser/esm/1-LEUre9ZLG0OYYB.mjs +197 -0
  2. package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
  3. package/browser/esm/B26QVfjer2oY2ewK.mjs +32 -0
  4. package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
  5. package/browser/esm/BQYS2Yf-EAV_tBLr.mjs +20 -0
  6. package/{node/esm/DAE_NG8D9uT50zUH.mjs → browser/esm/BegvsXeRs7e-9t8k.mjs} +3 -4
  7. package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
  8. package/browser/esm/Bos4Rkp8UTF7QXUB.mjs +31 -0
  9. package/browser/esm/C1pc9F4Rt2C5FKUo.mjs +45 -0
  10. package/browser/esm/CPnnESfZz2jjJd82.mjs +134 -0
  11. package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
  12. package/browser/esm/ClAtIfYbsUPA073B.mjs +2706 -0
  13. package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
  14. package/browser/esm/D2u6THGErqw64KQI.mjs +63 -0
  15. package/browser/esm/DMdsMPT0fWBbTkNn.mjs +67 -0
  16. package/browser/esm/DS66lAIM-9M-YoZQ.mjs +315 -0
  17. package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
  18. package/browser/esm/Dnh1kpz3v1JKtRD_.mjs +79 -0
  19. package/browser/esm/cQ6xdPFkEcuDlNTN.mjs +75 -0
  20. package/browser/esm/chart.mjs +40 -0
  21. package/browser/esm/control.mjs +216 -0
  22. package/browser/esm/group.mjs +123 -0
  23. package/browser/esm/index.mjs +15460 -8762
  24. package/browser/esm/note.mjs +112 -0
  25. package/browser/esm/picture.mjs +86 -0
  26. package/browser/esm/shape.mjs +7 -0
  27. package/browser/esm/slicer.mjs +276 -0
  28. package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
  29. package/licenses/dependencies.txt +319 -600
  30. package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
  31. package/node/esm/BMVK5plvmBOAIlxP.mjs +80 -0
  32. package/node/esm/BaRfst1euuhquupX.mjs +66 -0
  33. package/node/esm/Be9c1GwQkPo8Piuh.mjs +134 -0
  34. package/node/esm/BiaDWnN3tT7neoRL.mjs +68 -0
  35. package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
  36. package/node/esm/C_SNx7TlFEcwbYjx.mjs +2706 -0
  37. package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
  38. package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
  39. package/node/esm/D_pCpfdQowV_4Aje.mjs +198 -0
  40. package/node/esm/DgGEHydEjD7nfsDB.mjs +76 -0
  41. package/node/esm/Dj5FM7_-YWhCtCCt.mjs +45 -0
  42. package/node/esm/DxQZmb-j4NLUO9Af.mjs +63 -0
  43. package/node/esm/JiQGhLkoL8CJpVvA.mjs +20 -0
  44. package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
  45. package/node/esm/chart.mjs +40 -0
  46. package/node/esm/control.mjs +216 -0
  47. package/node/esm/gpD-9LDW92phhoma.mjs +32 -0
  48. package/node/esm/group.mjs +123 -0
  49. package/node/esm/index.mjs +15830 -8966
  50. package/node/esm/note.mjs +113 -0
  51. package/node/esm/picture.mjs +86 -0
  52. package/node/esm/shape.mjs +735 -0
  53. package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
  54. package/node/esm/slicer.mjs +278 -0
  55. package/node/esm/umljAT66yb3_rURh.mjs +320 -0
  56. package/package.json +55 -14
  57. package/resources/contents.json +24 -0
  58. package/resources/locales/contents.json +56 -0
  59. package/resources/locales/de/chart.cmd.json +82 -0
  60. package/resources/locales/de/movable.cmd.json +154 -0
  61. package/resources/locales/de/picture.cmd.json +31 -0
  62. package/resources/locales/de/selection.cmd.json +8 -0
  63. package/resources/locales/de/shape.cmd.json +17 -0
  64. package/resources/locales/de/sheet.cmd.json +339 -21
  65. package/resources/locales/de/slicer.cmd.json +17 -0
  66. package/resources/locales/de/table.cmd.json +9 -1
  67. package/resources/locales/de/ui.msg.json +321 -3
  68. package/resources/locales/de/workbook.cmd.json +15 -6
  69. package/resources/locales/en/chart.cmd.json +82 -0
  70. package/resources/locales/en/movable.cmd.json +154 -0
  71. package/resources/locales/en/picture.cmd.json +31 -0
  72. package/resources/locales/en/selection.cmd.json +8 -0
  73. package/resources/locales/en/shape.cmd.json +17 -0
  74. package/resources/locales/en/sheet.cmd.json +353 -22
  75. package/resources/locales/en/slicer.cmd.json +17 -0
  76. package/resources/locales/en/table.cmd.json +9 -1
  77. package/resources/locales/en/ui.msg.json +321 -3
  78. package/resources/locales/en/workbook.cmd.json +16 -7
  79. package/types/chart.d.ts +2 -0
  80. package/types/control.d.ts +2 -0
  81. package/types/group.d.ts +2 -0
  82. package/types/note.d.ts +2 -0
  83. package/types/picture.d.ts +2 -0
  84. package/types/shape.d.ts +2 -0
  85. package/types/slicer.d.ts +2 -0
  86. package/types/src/annotation/RangeAnnotations.d.ts +119 -0
  87. package/types/src/annotation/index.d.ts +2 -0
  88. package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
  89. package/types/src/autoFill/FillMenu.d.ts +36 -0
  90. package/types/src/autoFill/FillSeries.d.ts +38 -0
  91. package/types/src/autoFill/index.d.ts +4 -0
  92. package/types/src/border/StaticBorderRenderer.d.ts +19 -2
  93. package/types/src/border/useBorders.d.ts +81 -8
  94. package/types/src/cell/CornerTriangle.d.ts +6 -0
  95. package/types/src/cell/FormulaCellRenderer.d.ts +6 -3
  96. package/types/src/cell/OutlineButton.d.ts +123 -0
  97. package/types/src/cell/SheetCellRenderer.d.ts +2 -2
  98. package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
  99. package/types/src/cell/StaticCellRenderer.d.ts +57 -0
  100. package/types/src/cell/index.d.ts +2 -0
  101. package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
  102. package/types/src/chart/ChartCommands.d.ts +15 -0
  103. package/types/src/chart/ChartEditor.d.ts +10 -2
  104. package/types/src/chart/ChartElement.d.ts +111 -0
  105. package/types/src/chart/ChartKind.d.ts +7 -0
  106. package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
  107. package/types/src/chart/index.d.ts +2 -1
  108. package/types/src/chart/paint/_fills.d.ts +24 -0
  109. package/types/src/chart/paint/_graphics.d.ts +46 -0
  110. package/types/src/chart/paint/echarts.d.ts +30 -0
  111. package/types/src/chart/paint/index.d.ts +12 -0
  112. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
  113. package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
  114. package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
  115. package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
  116. package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
  117. package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
  118. package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
  119. package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
  120. package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
  121. package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
  122. package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
  123. package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
  124. package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
  125. package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
  126. package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
  127. package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
  128. package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
  129. package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
  130. package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
  131. package/types/src/checklist/ValueChecklist.d.ts +112 -0
  132. package/types/src/checklist/index.d.ts +2 -0
  133. package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
  134. package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
  135. package/types/src/commands/ContextualToolbar.d.ts +19 -0
  136. package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
  137. package/types/src/commands/index.d.ts +1 -0
  138. package/types/src/comment/CommentCardRequest.d.ts +94 -0
  139. package/types/src/comment/CommentUtils.d.ts +43 -0
  140. package/types/src/comment/NoteEditor.d.ts +20 -0
  141. package/types/src/comment/index.d.ts +5 -0
  142. package/types/src/comment/useCommentThread.d.ts +37 -0
  143. package/types/src/comment/useSheetComments.d.ts +28 -0
  144. package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
  145. package/types/src/conditionalFormat/index.d.ts +1 -0
  146. package/types/src/context/WorksheetContext.d.ts +18 -0
  147. package/types/src/context/index.d.ts +1 -1
  148. package/types/src/control/FormControlRenderers.d.ts +22 -0
  149. package/types/src/editor/EditorCommands.d.ts +3 -3
  150. package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
  151. package/types/src/editor/NamedItemLabel.d.ts +29 -0
  152. package/types/src/editor/NamedItemsPanel.d.ts +13 -2
  153. package/types/src/editor/SheetCellEditorLayer.d.ts +5 -9
  154. package/types/src/editor/SheetCellEditorStartLayer.d.ts +61 -0
  155. package/types/src/editor/SheetCellInput.d.ts +26 -2
  156. package/types/src/editor/SheetEditable.d.ts +14 -8
  157. package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
  158. package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
  159. package/types/src/editor/formulaAnchor.d.ts +12 -0
  160. package/types/src/editor/formulaCaret.d.ts +39 -10
  161. package/types/src/editor/formulaEval.d.ts +9 -5
  162. package/types/src/editor/formulaLint.d.ts +36 -0
  163. package/types/src/editor/formulaPresentation.d.ts +7 -0
  164. package/types/src/editor/formulaText.d.ts +17 -5
  165. package/types/src/editor/functionArgs.d.ts +20 -0
  166. package/types/src/editor/index.d.ts +5 -1
  167. package/types/src/editor/pickedReference.d.ts +76 -0
  168. package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
  169. package/types/src/editor/useFormulaHints.d.ts +95 -5
  170. package/types/src/editor/useFormulaInput.d.ts +30 -4
  171. package/types/src/editor/useReferenceMode.d.ts +12 -0
  172. package/types/src/editor/validationAlert.d.ts +24 -0
  173. package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
  174. package/types/src/externalLink/index.d.ts +2 -0
  175. package/types/src/form/FormulaInput.d.ts +18 -2
  176. package/types/src/form/FormulaInputParts.d.ts +10 -1
  177. package/types/src/form/useEditCommit.d.ts +23 -3
  178. package/types/src/form/useInputField.d.ts +2 -3
  179. package/types/src/frame/CommandContext.d.ts +189 -7
  180. package/types/src/group/GroupEditor.d.ts +25 -0
  181. package/types/src/index.d.ts +14 -2
  182. package/types/src/io/WorkbookIO.d.ts +2 -0
  183. package/types/src/layer/BorderLayer.d.ts +2 -2
  184. package/types/src/layer/CellErrorLayer.d.ts +26 -9
  185. package/types/src/layer/CellFillLayer.d.ts +2 -2
  186. package/types/src/layer/CellInsertLayer.d.ts +71 -0
  187. package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
  188. package/types/src/layer/CommentCardLayer.d.ts +43 -0
  189. package/types/src/layer/CommentsLayer.d.ts +35 -0
  190. package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
  191. package/types/src/layer/ConditionalIcons.d.ts +4 -4
  192. package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
  193. package/types/src/layer/ContextMenuLayer.d.ts +2 -2
  194. package/types/src/layer/FreezeDragLines.d.ts +17 -0
  195. package/types/src/layer/GridFreezeLayer.d.ts +11 -0
  196. package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
  197. package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
  198. package/types/src/layer/HyperlinkLayer.d.ts +109 -0
  199. package/types/src/layer/MovableKindScope.d.ts +17 -0
  200. package/types/src/layer/ProtectionLayer.d.ts +52 -0
  201. package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
  202. package/types/src/layer/ResizeIndicator.d.ts +11 -10
  203. package/types/src/layer/ResizeTooltip.d.ts +13 -0
  204. package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
  205. package/types/src/layer/SheetCellLayer.d.ts +4 -4
  206. package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
  207. package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
  208. package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
  209. package/types/src/layer/SheetLayers.d.ts +115 -0
  210. package/types/src/layer/SheetMovableLayer.d.ts +2 -2
  211. package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
  212. package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
  213. package/types/src/layer/SpillLayer.d.ts +2 -2
  214. package/types/src/layer/TableLayer.d.ts +6 -5
  215. package/types/src/layer/TableToolbar.d.ts +42 -0
  216. package/types/src/layer/ValidationDropdownLayer.d.ts +17 -7
  217. package/types/src/layer/ValidationIndicatorLayer.d.ts +11 -5
  218. package/types/src/layer/ValidationPromptLayer.d.ts +65 -0
  219. package/types/src/layer/_tableColor.d.ts +4 -0
  220. package/types/src/layer/cellTip.d.ts +13 -0
  221. package/types/src/layer/freezeDragState.d.ts +21 -0
  222. package/types/src/layer/index.d.ts +14 -1
  223. package/types/src/layer/resizeIndicatorState.d.ts +3 -1
  224. package/types/src/layer/useFreezeDrag.d.ts +22 -0
  225. package/types/src/layer/useNormalBorderLines.d.ts +15 -0
  226. package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
  227. package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
  228. package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
  229. package/types/src/layer/useTableHeaderCells.d.ts +2 -2
  230. package/types/src/layer/useValidationPicker.d.ts +37 -37
  231. package/types/src/layer/useVisibleTables.d.ts +2 -2
  232. package/types/src/layer/validationMark.d.ts +63 -0
  233. package/types/src/listener/index.d.ts +5 -0
  234. package/types/src/listener/useCell.d.ts +29 -0
  235. package/types/src/listener/useCellRange.d.ts +23 -0
  236. package/types/src/listener/useCellValue.d.ts +26 -0
  237. package/types/src/listener/useModelListener.d.ts +8 -8
  238. package/types/src/listener/useRangeSnapshot.d.ts +35 -0
  239. package/types/src/listener/useTable.d.ts +26 -0
  240. package/types/src/movable/ConnectionSites.d.ts +18 -0
  241. package/types/src/movable/DefaultMovable.d.ts +8 -0
  242. package/types/src/movable/IMovableArea.d.ts +56 -0
  243. package/types/src/movable/MovableAdornment.d.ts +26 -0
  244. package/types/src/movable/MovableCommandGroups.d.ts +40 -0
  245. package/types/src/movable/MovableCommands.d.ts +8 -3
  246. package/types/src/movable/MovableControl.d.ts +78 -0
  247. package/types/src/movable/MovableEdit.d.ts +22 -0
  248. package/types/src/movable/MovableFrame.d.ts +16 -13
  249. package/types/src/movable/MovableLayer.d.ts +25 -7
  250. package/types/src/movable/MovableRenderers.d.ts +210 -0
  251. package/types/src/movable/PlaceholderFrames.d.ts +11 -0
  252. package/types/src/movable/RotateHandle.d.ts +37 -0
  253. package/types/src/movable/TextBox.d.ts +34 -0
  254. package/types/src/movable/connect.d.ts +16 -0
  255. package/types/src/movable/framePlacement.d.ts +72 -0
  256. package/types/src/movable/geometry.d.ts +61 -0
  257. package/types/src/movable/index.d.ts +11 -0
  258. package/types/src/movable/pressTarget.d.ts +20 -0
  259. package/types/src/picker/PickerPanel.d.ts +52 -0
  260. package/types/src/picker/cellPickerOpen.d.ts +6 -0
  261. package/types/src/picker/index.d.ts +4 -0
  262. package/types/src/picker/useCellPicker.d.ts +95 -0
  263. package/types/src/picture/PictureCommands.d.ts +12 -0
  264. package/types/src/picture/PictureKind.d.ts +7 -0
  265. package/types/src/picture/index.d.ts +0 -1
  266. package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
  267. package/types/src/protection/index.d.ts +3 -0
  268. package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
  269. package/types/src/richText/RichTextEditor.d.ts +41 -0
  270. package/types/src/richText/index.d.ts +2 -0
  271. package/types/src/selection/SelectionCommands.d.ts +2 -2
  272. package/types/src/selection/SheetSelectionLayer.d.ts +16 -12
  273. package/types/src/shape/ConnectorControl.d.ts +46 -0
  274. package/types/src/shape/ShapeCommands.d.ts +11 -0
  275. package/types/src/shape/ShapeControl.d.ts +8 -0
  276. package/types/src/shape/ShapeEditor.d.ts +15 -2
  277. package/types/src/shape/ShapeGallery.d.ts +31 -0
  278. package/types/src/shape/ShapeHandles.d.ts +28 -0
  279. package/types/src/shape/ShapeKind.d.ts +7 -0
  280. package/types/src/shape/ShapeSVG.d.ts +22 -0
  281. package/types/src/shape/ShapeText.d.ts +17 -0
  282. package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
  283. package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
  284. package/types/src/shape/index.d.ts +3 -1
  285. package/types/src/shape/shapeFrame.d.ts +50 -0
  286. package/types/src/shape/shapeStyle.d.ts +82 -0
  287. package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
  288. package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +107 -77
  289. package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
  290. package/types/src/sheet/SheetCommandProvider.d.ts +11 -6
  291. package/types/src/sheet/SheetCommands.d.ts +22 -7
  292. package/types/src/sheet/SheetKindIcon.d.ts +14 -0
  293. package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
  294. package/types/src/sheet/SheetPanels.d.ts +11 -0
  295. package/types/src/sheet/SheetScrollbar.d.ts +4 -13
  296. package/types/src/sheet/TopLeftCorner.d.ts +2 -2
  297. package/types/src/sheet/WorksheetElement.d.ts +12 -0
  298. package/types/src/sheet/_freezeAt.d.ts +10 -0
  299. package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
  300. package/types/src/sheet/circularReferences.d.ts +12 -4
  301. package/types/src/sheet/index.d.ts +6 -3
  302. package/types/src/sheet/useCycleHighlight.d.ts +21 -0
  303. package/types/src/slicer/SlicerCommands.d.ts +10 -0
  304. package/types/src/slicer/SlicerEditor.d.ts +8 -2
  305. package/types/src/slicer/SlicerKind.d.ts +7 -0
  306. package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
  307. package/types/src/slicer/index.d.ts +2 -1
  308. package/types/src/slicer/slicerStyles.d.ts +32 -0
  309. package/types/src/tabStrip/SheetTab.d.ts +1 -1
  310. package/types/src/tabStrip/TabStrip.d.ts +7 -0
  311. package/types/src/table/TableCommands.d.ts +2 -2
  312. package/types/src/taskPane/ITaskPane.d.ts +12 -1
  313. package/types/src/taskPane/MovablePane.d.ts +17 -0
  314. package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
  315. package/types/src/taskPane/index.d.ts +1 -0
  316. package/types/src/theme/ThemeState.d.ts +14 -1
  317. package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
  318. package/types/src/theme/useGridColorScheme.d.ts +2 -2
  319. package/types/src/theme/useSystemColors.d.ts +2 -2
  320. package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
  321. package/types/src/workbook/DefaultRenderers.d.ts +3 -2
  322. package/types/src/workbook/IWorkbookElement.d.ts +51 -5
  323. package/types/src/workbook/WorkbookCommands.d.ts +2 -4
  324. package/types/src/workbook/WorkbookStrip.d.ts +9 -0
  325. package/types/src/workbook/_followOrigin.d.ts +9 -0
  326. package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
  327. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  328. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
  329. package/browser/cjs/index.cjs +0 -35
  330. package/browser/esm/SJMJzBwlXTJ9QIO5.mjs +0 -6286
  331. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
  332. package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
  333. package/types/src/chart/templates/area-template.json.d.ts +0 -9
  334. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
  335. package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
  336. package/types/src/chart/templates/bar-template.json.d.ts +0 -9
  337. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
  338. package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
  339. package/types/src/chart/templates/column-template.json.d.ts +0 -9
  340. package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
  341. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
  342. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
  343. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
  344. package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
  345. package/types/src/chart/templates/line-template.json.d.ts +0 -9
  346. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
  347. package/types/src/chart/templates/pie-template.json.d.ts +0 -9
  348. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
  349. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
  350. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
  351. package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
  352. package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
  353. package/types/src/context/SheetContext.d.ts +0 -18
  354. package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
  355. package/types/src/layer/validationList.d.ts +0 -84
  356. package/types/src/list/SheetValueList.d.ts +0 -93
  357. package/types/src/list/index.d.ts +0 -2
  358. package/types/src/movable/MoveableBundle.d.ts +0 -4
  359. package/types/src/sheet/SheetElement.d.ts +0 -15
@@ -0,0 +1,242 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { forwardRef as t, memo as e, useCallback as n, useEffect as r, useLayoutEffect as o, useRef as l, useState as i } from "react";
8
+ import { jsx as s, jsxs as a } from "react/jsx-runtime";
9
+ import { CommonUtils as c, defineLazyModule as u } from "@sheetxl/utils";
10
+ import { useImperativeElement as h, useMeasure as d } from "@sheetxl/utils-react";
11
+ import { useMergeRefs as g } from "react-merge-refs";
12
+ var m = u("chart:paint", () => import("./b-XRVRI1fYQQMkTC.mjs")), p = (t, e) => {
13
+ const n = t.getElementType();
14
+ if ("point" === n) {
15
+ const n = t.getParent();
16
+ return e === n || "point" === e?.getElementType() && e.getParent() === n ? t : n;
17
+ }
18
+ if ("legendEntry" === n) {
19
+ const n = t.getParent();
20
+ return e === n || "legendEntry" === e?.getElementType() ? t : n;
21
+ }
22
+ if ("dataLabel" === n) {
23
+ const n = t.getParent()?.getParent(), r = n?.getDataLabels();
24
+ return r ? e === r || "dataLabel" === e?.getElementType() && e.getParent()?.getParent() === n ? t : r : t;
25
+ }
26
+ return t;
27
+ }, f = {
28
+ boxes: [],
29
+ handles: []
30
+ }, y = e(t((t, e) => {
31
+ const { children: u, style: y, chart: x, onChartChange: b, zoom: v = 1, width: w, height: E, selection: P = null, onElementPress: L, onPointerDown: C, ...T } = t, [z, S] = i(() => c.isPromiseLike(x) ? null : x), [k, A] = i(null), D = l(b);
32
+ D.current = b;
33
+ const M = l(null);
34
+ r(() => {
35
+ let t = !0;
36
+ const e = (t, e) => {
37
+ A(e), S(t), M.current !== t && (M.current = t, D.current?.(t));
38
+ };
39
+ if (c.isPromiseLike(x)) return x.then((n) => {
40
+ t && e(n, null);
41
+ }, (n) => {
42
+ t && e(null, n);
43
+ }), () => {
44
+ t = !1;
45
+ };
46
+ e(x, null);
47
+ }, [x]);
48
+ const [N, B] = d(), I = "number" == typeof w ? w : B.width, j = "number" == typeof E ? E : B.height, G = I ? Math.round(I / v) : 0, V = j ? Math.round(j / v) : 0, $ = l({
49
+ width: G,
50
+ height: V
51
+ });
52
+ $.current = {
53
+ width: G,
54
+ height: V
55
+ };
56
+ const R = n(async () => {
57
+ const t = $.current;
58
+ if (!z || !t.width || !t.height) return null;
59
+ const e = z.getLayout(t);
60
+ return e ? (await m.load()).renderChartToSVG(e) : null;
61
+ }, [z]), X = l(null), Y = l(null), q = l(v);
62
+ q.current = v;
63
+ const F = n((t, e) => {
64
+ const n = X.current;
65
+ if (!n) return null;
66
+ const r = n.getBoundingClientRect(), o = q.current || 1;
67
+ return {
68
+ x: (t - r.left) / o,
69
+ y: (e - r.top) / o
70
+ };
71
+ }, []), H = n((t, e) => {
72
+ const n = Y.current, r = F(t, e);
73
+ return z && n && r ? z.getElementAt(r, n) : null;
74
+ }, [z, F]), J = h(e, () => ({
75
+ isChartElement: () => !0,
76
+ getChart: () => z,
77
+ toSVG: R,
78
+ getElementAt: H
79
+ }), [
80
+ z,
81
+ R,
82
+ H
83
+ ]), K = g([
84
+ J,
85
+ N,
86
+ X
87
+ ]), O = l(null), Q = l(null), [U, W] = i(() => m.peek() ?? null), [Z, _] = i(null), [tt, et] = i(0), [nt, rt] = i(f);
88
+ r(() => z?.addListeners({ onLayoutChange: () => et((t) => t + 1) }), [z]), r(() => {
89
+ if (U) return;
90
+ let t = !0;
91
+ return m.load().then((e) => {
92
+ t && W(e);
93
+ }, (e) => {
94
+ t && _(e);
95
+ }), () => {
96
+ t = !1;
97
+ };
98
+ }, [U]);
99
+ const ot = n(() => {
100
+ const t = Y.current;
101
+ rt(z && t && P && !P.isEmpty() ? ((t, e, n) => {
102
+ const r = [], o = [];
103
+ for (const l of n.getItems()) {
104
+ if (l.getChart() !== t) continue;
105
+ const i = l.getElementType();
106
+ if ("series" === i || "dataLabels" === i) {
107
+ const n = "series" === i ? l : l.getParent(), o = "series" === i ? n.getPoints() : n.getPoints().map((t) => t.getDataLabel());
108
+ for (const n of o) {
109
+ const o = t.getElementBounds(n, e);
110
+ o && r.push(o);
111
+ }
112
+ if (r.length > 0) continue;
113
+ }
114
+ const s = t.getElementBounds(l, e);
115
+ if (s && (r.push(s), 1 === n.getItems().length)) {
116
+ const t = [
117
+ s.x,
118
+ s.x + s.width / 2,
119
+ s.x + s.width
120
+ ], e = [
121
+ s.y,
122
+ s.y + s.height / 2,
123
+ s.y + s.height
124
+ ];
125
+ for (const n of t) for (const r of e) n === t[1] && r === e[1] || o.push({
126
+ x: n,
127
+ y: r
128
+ });
129
+ }
130
+ }
131
+ return {
132
+ boxes: r,
133
+ handles: o
134
+ };
135
+ })(z, t, P) : f);
136
+ }, [z, P]);
137
+ r(() => P?.addListeners({ onChange: ot }), [P, ot]), o(() => {
138
+ const t = O.current;
139
+ if (!(U && t && z && G && V)) return;
140
+ const e = z.getLayout({
141
+ width: G,
142
+ height: V
143
+ });
144
+ if (Y.current = e, !e) return Q.current?.dispose(), Q.current = null, void ot();
145
+ Q.current ? Q.current.update(e) : Q.current = U.mountChart(t, e), ot();
146
+ }, [
147
+ U,
148
+ z,
149
+ G,
150
+ V,
151
+ tt,
152
+ ot
153
+ ]), r(() => () => {
154
+ Q.current?.dispose(), Q.current = null, Y.current = null;
155
+ }, [z]);
156
+ const lt = n((t) => {
157
+ if (C?.(t), 0 !== t.button && 2 !== t.button) return;
158
+ const e = Y.current, n = F(t.clientX, t.clientY);
159
+ if (!z || !e || !n) return;
160
+ const r = z.getElementAt(n, e);
161
+ if (L?.({
162
+ element: r,
163
+ point: n,
164
+ event: t
165
+ }), !P) return;
166
+ if (!r || "chartArea" === r.getElementType()) return void P.clear();
167
+ const o = p(r, P.getActive());
168
+ P.isSelected(o) && 1 === P.getItems().length || P.select([o]);
169
+ }, [
170
+ z,
171
+ P,
172
+ L,
173
+ C,
174
+ F
175
+ ]);
176
+ if (z?.isDeleted()) return;
177
+ const it = Z ?? k;
178
+ return a("div", {
179
+ ...T,
180
+ onPointerDown: lt,
181
+ style: {
182
+ ...void 0 !== w ? { width: w } : {},
183
+ ...void 0 !== E ? { height: E } : {},
184
+ ...y,
185
+ overflow: "hidden"
186
+ },
187
+ ref: K,
188
+ children: [
189
+ it ? s("div", {
190
+ className: "chart-element-error",
191
+ style: {
192
+ padding: "8px",
193
+ fontSize: "12px",
194
+ color: "var(--sxl-color-error, #b00020)"
195
+ },
196
+ children: it.message
197
+ }) : null,
198
+ s("div", {
199
+ className: "chart-element",
200
+ ref: O,
201
+ style: {
202
+ width: G || "100%",
203
+ height: V || "100%",
204
+ zoom: v,
205
+ position: "relative"
206
+ }
207
+ }),
208
+ nt.boxes.length > 0 ? a("div", {
209
+ className: "chart-element-selection",
210
+ style: {
211
+ position: "absolute",
212
+ left: 0,
213
+ top: 0,
214
+ width: G,
215
+ height: V,
216
+ zoom: v,
217
+ pointerEvents: "none"
218
+ },
219
+ children: [nt.boxes.map((t, e) => s("div", { style: {
220
+ position: "absolute",
221
+ left: t.x - 1,
222
+ top: t.y - 1,
223
+ width: Math.max(0, t.width),
224
+ height: Math.max(0, t.height),
225
+ border: "1px solid var(--sxl-color-primary, #1a73e8)",
226
+ boxSizing: "content-box"
227
+ } }, `box-${e}`)), nt.handles.map((t, e) => s("div", { style: {
228
+ position: "absolute",
229
+ left: t.x - 3,
230
+ top: t.y - 3,
231
+ width: 6,
232
+ height: 6,
233
+ background: "var(--sxl-color-background, #fff)",
234
+ border: "1px solid var(--sxl-color-primary, #1a73e8)",
235
+ boxSizing: "border-box"
236
+ } }, `handle-${e}`))]
237
+ }) : null
238
+ ]
239
+ });
240
+ }));
241
+ y.displayName = "ChartElement";
242
+ export { p as n, y as t };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ var e = "command", t = (e, t) => !!e && (e.getTags?.() ?? []).includes(t);
8
+ function a(a) {
9
+ const { transaction: n, notifier: r, manager: o } = a, i = a.isRepeatable ?? ((e) => !t(e, "noRepeat"));
10
+ let s = Promise.resolve();
11
+ return (a) => (c, l) => {
12
+ if (t(l, "noTransaction")) return a(c, l);
13
+ const u = s.then(async () => {
14
+ const t = l?.getLabel?.() ?? void 0, s = l?.getKey?.(), u = r ? await Promise.resolve(r.showBusy(t ?? "Working…")) : null;
15
+ try {
16
+ let r;
17
+ return await n.doBatch(async () => {
18
+ r = await a(c, l);
19
+ }, {
20
+ description: t,
21
+ meta: s ? { [e]: s } : void 0
22
+ }), o && l && i(l) && o.setRepeatableOperation({
23
+ description: t ?? "last action",
24
+ repeat: () => {
25
+ l.execute(c);
26
+ }
27
+ }), r;
28
+ } catch (e) {
29
+ e && r?.showError?.(e);
30
+ } finally {
31
+ u?.();
32
+ }
33
+ });
34
+ return s = u.then(() => {}, () => {}), u;
35
+ };
36
+ }
37
+ export { a as n, e as t };
@@ -0,0 +1,198 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { 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";
11
+ import { ShapeEditor as r } from "./shape.mjs";
12
+ import { memo as a, useCallback as s, useReducer as i, useRef as c } from "react";
13
+ import { jsx as l } from "react/jsx-runtime";
14
+ import { messageKey as d } from "@sheetxl/utils";
15
+ import { useGridPaneOptional as u, useSurfaceStateSetter as g } from "@sheetxl/grid-react";
16
+ var p = (t, n) => {
17
+ const e = [n.horizontal ? 1 : -1, n.vertical ? 1 : -1];
18
+ return "start" === t ? e : [-e[0], -e[1]];
19
+ }, m = (t) => {
20
+ const n = t.getBounds();
21
+ return n ? {
22
+ bounds: n,
23
+ rotation: t.getRotation() || 0,
24
+ flip: t.getFlip()
25
+ } : null;
26
+ }, h = (t, n, e) => {
27
+ const { x: o, y: r, width: a, height: s } = t.bounds, i = -(t.rotation || 0) * Math.PI / 180, c = n.x - (o + a / 2), l = n.y - (r + s / 2), d = c * Math.cos(i) - l * Math.sin(i), u = c * Math.sin(i) + l * Math.cos(i);
28
+ return Math.abs(d) <= a / 2 + e && Math.abs(u) <= s / 2 + e;
29
+ }, f = a((n) => {
30
+ const { movable: o, flip: r, isDragging: a = !1, gesture: f } = n, x = u(), C = g(e, null), [, y] = i((t) => t + 1, 0), b = o.getContent();
31
+ t(b, { onAnyChange: y });
32
+ const v = b.getConnectorFormat(), M = c(null), P = s((t) => {
33
+ const n = x?.getPanePointFromPointer(t.clientX, t.clientY);
34
+ if (!x || !n) return null;
35
+ const e = x.toAbsoluteBounds({
36
+ x: n.x,
37
+ y: n.y,
38
+ width: 0,
39
+ height: 0
40
+ });
41
+ return {
42
+ x: e.x,
43
+ y: e.y
44
+ };
45
+ }, [x]), I = s((t) => {
46
+ if (0 !== t.button) return;
47
+ t.stopPropagation(), t.preventDefault();
48
+ const n = t.currentTarget.dataset.end, e = m(o);
49
+ if (!e || !x) return;
50
+ const r = {
51
+ pointerId: t.pointerId,
52
+ end: n,
53
+ placement: e,
54
+ candidates: [],
55
+ hit: null
56
+ };
57
+ f.start(d("op.connectShape"), (t) => {
58
+ const e = t.getContent().getConnectorFormat();
59
+ if (!e) return;
60
+ const o = r.hit, a = "start" === n ? e.getStartConnectedMovable() : e.getEndConnectedMovable(), s = "start" === n ? e.getStartConnectionSite() : e.getEndConnectionSite();
61
+ (o ? a !== o.target || s !== o.index : null !== a) && (o ? "start" === n ? e.startConnect(o.target, o.index) : e.endConnect(o.target, o.index) : "start" === n ? e.startDisconnect() : e.endDisconnect());
62
+ }) && (r.candidates = ((t) => {
63
+ const n = t.getRange().getWorksheet(), e = /* @__PURE__ */ new Set([t]);
64
+ for (let n = t.getParent(); n; n = n.getParent()) e.add(n);
65
+ const o = [];
66
+ for (const t of n.getMovables().getItems({ deep: !0 })) {
67
+ if (e.has(t) || t.isHidden()) continue;
68
+ const n = m(t);
69
+ n && o.push({
70
+ movable: t,
71
+ placement: n
72
+ });
73
+ }
74
+ return o;
75
+ })(o), M.current = r, t.currentTarget.setPointerCapture(t.pointerId), C({
76
+ connector: o.getId(),
77
+ target: null,
78
+ index: null
79
+ }));
80
+ }, [
81
+ o,
82
+ x,
83
+ f,
84
+ C
85
+ ]), S = s((t) => {
86
+ const n = M.current;
87
+ if (!n || n.pointerId !== t.pointerId) return;
88
+ t.stopPropagation();
89
+ const e = P(t);
90
+ if (!e) return;
91
+ const r = ((t, n, e) => {
92
+ const o = 8 / e, r = 10 / e;
93
+ let a = null, s = 1 / 0;
94
+ for (const { movable: e, placement: i } of n) {
95
+ const n = e.getConnectionSites(i);
96
+ if (!n || 0 === n.length) continue;
97
+ const c = h(i, t, o);
98
+ for (const o of n) {
99
+ const n = Math.hypot(o.x - t.x, o.y - t.y);
100
+ (c || n <= r) && n < s && (a = {
101
+ target: e,
102
+ index: o.index,
103
+ x: o.x,
104
+ y: o.y
105
+ }, s = n);
106
+ }
107
+ }
108
+ return a;
109
+ })(e, n.candidates, x?.getZoom() || 1);
110
+ n.hit = r;
111
+ const a = o.getContent().getConnectorFormat(), s = a?.getEndPoints(n.placement);
112
+ if (!a || !s) return;
113
+ const i = s["start" === n.end ? "end" : "start"];
114
+ s[n.end] = r ? {
115
+ x: r.x,
116
+ y: r.y
117
+ } : t.shiftKey ? ((t, n, e = 15) => {
118
+ const o = n.x - t.x, r = n.y - t.y;
119
+ if (0 === o && 0 === r) return n;
120
+ const a = e * Math.PI / 180, s = Math.round(Math.atan2(r, o) / a) * a, i = Math.abs(Math.cos(s)) < 1e-12 ? 0 : Math.cos(s), c = Math.abs(Math.sin(s)) < 1e-12 ? 0 : Math.sin(s), l = o * i + r * c;
121
+ return {
122
+ x: t.x + l * i,
123
+ y: t.y + l * c
124
+ };
125
+ })(i, e) : e;
126
+ const c = a.placeEnds(s.start, s.end);
127
+ C({
128
+ connector: o.getId(),
129
+ target: r ? r.target.getId() : null,
130
+ index: r ? r.index : null
131
+ }), f.preview({
132
+ bounds: c.bounds,
133
+ flip: c.flip,
134
+ grip: {
135
+ kind: "resize",
136
+ direction: p(n.end, c.flip)
137
+ }
138
+ });
139
+ }, [
140
+ P,
141
+ x,
142
+ o,
143
+ f,
144
+ C
145
+ ]), j = s((t) => {
146
+ const n = M.current;
147
+ n && n.pointerId === t.pointerId && (t.stopPropagation(), M.current = null, C(null), f.finish());
148
+ }, [f, C]), F = s((t) => {
149
+ const n = M.current;
150
+ n && n.pointerId === t.pointerId && (M.current = null, C(null), f.cancel());
151
+ }, [f, C]);
152
+ return l("div", {
153
+ className: [
154
+ "movable-control",
155
+ "connector",
156
+ a ? "dragging" : null
157
+ ].filter(Boolean).join(" "),
158
+ children: ["start", "end"].map((t) => {
159
+ const n = p(t, r), e = "start" === t ? !!v?.isStartConnected() : !!v?.isEndConnected();
160
+ return l("div", {
161
+ className: e ? "movable-control-handle connector-end glued" : "movable-control-handle connector-end",
162
+ "data-end": t,
163
+ style: {
164
+ left: 50 * (n[0] + 1) + "%",
165
+ top: 50 * (n[1] + 1) + "%"
166
+ },
167
+ onPointerDown: I,
168
+ onPointerMove: S,
169
+ onPointerUp: j,
170
+ onPointerCancel: F
171
+ }, t);
172
+ })
173
+ });
174
+ });
175
+ f.displayName = "ConnectorControl";
176
+ var x = a((t) => t.movable.getContent().isConnector() ? l(f, { ...t }) : l(n, { ...t }));
177
+ x.displayName = "ShapeControl";
178
+ var C = {
179
+ renderer: (t) => l(r, {
180
+ ...t,
181
+ shape: t.movable.getContent()
182
+ }),
183
+ control: x,
184
+ commands: (t, n) => {
185
+ const { sheet: e, movable: r, notifier: a } = n, s = r.getContent();
186
+ t.use(o({
187
+ transaction: e,
188
+ notifier: a
189
+ })), t.updateCommand("changeShape", {
190
+ disabledReasons: s.getConnectorFormat() ? [d("reason.connectorShape")] : [],
191
+ callback: (t) => {
192
+ const n = "object" == typeof t && null !== t ? t.geometry : t;
193
+ s.setShapeType("string" == typeof n ? n : "rect");
194
+ }
195
+ });
196
+ }
197
+ };
198
+ export { C as ShapeKind };
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { PictureEditor as e } from "./picture.mjs";
8
+ import { jsx as t } from "react/jsx-runtime";
9
+ import { DOMUtils as i, messageKey as o, t as a } from "@sheetxl/utils";
10
+ import { NotifierType as n } from "@sheetxl/utils-react";
11
+ var s = {
12
+ renderer: (i) => {
13
+ const o = i.movable.getContent();
14
+ return t(e, {
15
+ loadingPanel: t("div", { style: {
16
+ position: "absolute",
17
+ width: "100%",
18
+ height: "100%"
19
+ } }),
20
+ picture: o,
21
+ description: o.getDescription() ?? o.getName?.() ?? void 0,
22
+ ...i
23
+ });
24
+ },
25
+ commands: (e, t) => {
26
+ const { sheet: s, movable: r, notifier: l } = t, c = r.getContent(), u = async (e) => {
27
+ const t = await (async (e) => {
28
+ const t = await Promise.resolve(l?.showBusy?.(a(o("op.setPictureResource"))) ?? null);
29
+ try {
30
+ const t = s.getResources().add(e);
31
+ return await t.toBuffer(), t;
32
+ } catch (e) {
33
+ let t = e;
34
+ if ("string" != typeof t) {
35
+ console.warn(e);
36
+ const i = "string" == typeof e?.cause ? e.cause : "";
37
+ let o = "string" == typeof e?.message ? e.message : "";
38
+ i && (o = o ? `${o} (${i})` : i), t = a("error.insertImage.unresolved", { detail: o });
39
+ }
40
+ return l?.showMessage?.(t, { type: n.Error }), null;
41
+ } finally {
42
+ t?.();
43
+ }
44
+ })(e);
45
+ t && c.setResource(t);
46
+ };
47
+ e.updateCommand("changePictureFromFile", {
48
+ tags: ["noTransaction", "noRepeat"],
49
+ callback: async (e) => {
50
+ let t = null, o = null;
51
+ "string" == typeof e ? o = e : t = e ?? null, (t || (t = await i.openFileDialog(o ?? "image/*"), t)) && await u({ source: { file: await Promise.resolve(t) } });
52
+ }
53
+ }), e.updateCommand("changePictureFromURL", {
54
+ tags: ["noTransaction", "noRepeat"],
55
+ callback: async (e) => {
56
+ if (!e) {
57
+ const t = await l?.showInput?.({
58
+ title: a("dialog.changePicture.title"),
59
+ description: a("dialog.changePicture.description"),
60
+ inputLabel: a("dialog.insertImage.inputLabel"),
61
+ initialValue: "https://picsum.photos/360",
62
+ propsInput: { style: { minWidth: "440px" } },
63
+ options: [{
64
+ id: "Change",
65
+ label: () => a("dialog.change")
66
+ }]
67
+ });
68
+ if (!t || "Change" !== t.option) return;
69
+ e = t.input;
70
+ }
71
+ e && await u({ source: { fetch: e } });
72
+ }
73
+ });
74
+ }
75
+ };
76
+ export { s as PictureKind };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { useEffect as r, useMemo as n, useReducer as o, useRef as t } from "react";
8
+ var e = (n, o, e) => {
9
+ const c = t(o);
10
+ c.current = o;
11
+ const a = (e = e ? {
12
+ ...s,
13
+ ...e
14
+ } : s).ignoreModelChange;
15
+ r(() => {
16
+ if (!n || !c.current) return;
17
+ const r = Object.keys(c.current), o = {}, t = r.length;
18
+ for (let n = 0; n < t; n++) {
19
+ const t = r[n];
20
+ o[t] = (r, n) => c.current[t]?.(r, n);
21
+ }
22
+ const s = e?.debugText;
23
+ s && console.log("Add: " + s);
24
+ const i = n.addListeners(o, e);
25
+ if (!a) for (let e = 0; e < t; e++) o[r[e]]?.(n);
26
+ return () => {
27
+ s && console.log("Remove: " + s), i?.();
28
+ };
29
+ }, [n]);
30
+ };
31
+ function c(r, t) {
32
+ const [c, s] = o((r) => r + 1, 0);
33
+ e(r, n(() => {
34
+ const r = (r, n) => {
35
+ s();
36
+ }, n = Array.isArray(t) ? t : [t], o = {};
37
+ for (const t of n) o[t] = r;
38
+ return o;
39
+ }, [r, ...Array.isArray(t) ? t : [t]]));
40
+ }
41
+ var s = {
42
+ transactional: !1,
43
+ ignoreModelChange: !1
44
+ };
45
+ export { c as n, e as t };
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { forwardRef as e, memo as t, useEffect as r, useLayoutEffect as n, useRef as o } from "react";
8
+ import { jsx as i } from "react/jsx-runtime";
9
+ var d = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakSet(), a = (e) => !!((e) => {
10
+ const t = d.get(e);
11
+ if (!t) return !1;
12
+ for (const e of t) if (e()) return !0;
13
+ return !1;
14
+ })(e) || (l.add(e), !1), s = (e, t) => {
15
+ let r = d.get(e);
16
+ return r || (r = /* @__PURE__ */ new Set(), d.set(e, r)), r.add(t), l.has(e) && (l.delete(e), e.isSelected() && t()), () => {
17
+ r.delete(t);
18
+ };
19
+ }, c = t(e((e, t) => {
20
+ const { children: d, style: l, contentStyle: a, disabled: c = !1, movable: u, onDragZone: f, ...h } = e, b = o(null);
21
+ return n(() => {
22
+ f?.((e) => {
23
+ const t = b.current;
24
+ return !t || !t.contains(e.target);
25
+ });
26
+ }, [f]), r(() => {
27
+ if (u && !c) return s(u, () => ((e) => {
28
+ const t = e?.querySelector("textarea, input, [contenteditable]:not([contenteditable=\"false\"])");
29
+ if (!t) return !1;
30
+ if (t.focus(), t.isContentEditable) {
31
+ const e = t.ownerDocument.getSelection();
32
+ e?.selectAllChildren(t), e?.collapseToEnd();
33
+ }
34
+ return !0;
35
+ })(b.current));
36
+ }, [u, c]), i("div", {
37
+ ref: t,
38
+ ...h,
39
+ style: {
40
+ width: "100%",
41
+ height: "100%",
42
+ boxSizing: "border-box",
43
+ padding: "3px",
44
+ position: "relative",
45
+ overflow: "hidden",
46
+ ...l
47
+ },
48
+ children: i("div", {
49
+ ref: b,
50
+ style: {
51
+ width: "100%",
52
+ height: "100%",
53
+ boxSizing: "border-box",
54
+ overflow: "hidden",
55
+ cursor: c ? void 0 : "text",
56
+ ...a
57
+ },
58
+ children: d
59
+ })
60
+ });
61
+ }));
62
+ c.displayName = "TextBox";
63
+ export { s as n, a as r, c as t };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { createContext as r, useContext as t } from "react";
8
+ import { jsx as e } from "react/jsx-runtime";
9
+ var n = r(null);
10
+ function o(r) {
11
+ const { sheet: t, children: o } = r;
12
+ return e(n.Provider, {
13
+ value: t,
14
+ children: o
15
+ });
16
+ }
17
+ function i() {
18
+ return t(n);
19
+ }
20
+ export { i as n, o as t };