@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,128 @@
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 { n as e } from "./DTMTIrYIK1eZswsM.mjs";
8
+ import { ChartEditor as t } from "./chart.mjs";
9
+ import { jsx as a } from "react/jsx-runtime";
10
+ import { messageKey as s, t as o } from "@sheetxl/utils";
11
+ var i = /* @__PURE__ */ new Set([
12
+ "waterfall",
13
+ "histogram",
14
+ "pareto",
15
+ "boxwhisker",
16
+ "treemap",
17
+ "sunburst",
18
+ "funnel",
19
+ "regionMap"
20
+ ]), r = [
21
+ {
22
+ key: "chartTitleToggle",
23
+ state: (e) => e.getTitle().getVisible(),
24
+ show: ["chartTitleAboveChart"],
25
+ hide: ["chartTitleNone"]
26
+ },
27
+ {
28
+ key: "chartLegendToggle",
29
+ state: (e) => e.getLegend().getVisible(),
30
+ show: ["legendRight"],
31
+ hide: ["legendNone"]
32
+ },
33
+ {
34
+ key: "chartDataLabelsToggle",
35
+ state: (e) => e.getDataLabels().getVisible(),
36
+ show: ["dataLabelShow"],
37
+ hide: ["dataLabelNone"]
38
+ },
39
+ {
40
+ key: "chartDataTableToggle",
41
+ state: (e) => e.getDataTable().getVisible(),
42
+ show: ["dataTableShow"],
43
+ hide: ["dataTableNone"]
44
+ },
45
+ {
46
+ key: "chartGridlinesToggle",
47
+ state: (e) => e.getAxes().getValueAxis()?.getMajorGridlines().getVisible() ?? !1,
48
+ show: ["primaryValueGridLinesMajor"],
49
+ hide: ["primaryValueGridLinesNone"]
50
+ },
51
+ {
52
+ key: "chartAxisTitlesToggle",
53
+ state: (e) => e.getAxes().getItems().some((e) => "primary" === e.getAxisGroup() && e.getTitle().getVisible()),
54
+ show: ["primaryCategoryAxisTitleAdjacentToAxis", "primaryValueAxisTitleRotated"],
55
+ hide: ["primaryCategoryAxisTitleNone", "primaryValueAxisTitleNone"]
56
+ }
57
+ ], l = {
58
+ renderer: (e) => a(t, {
59
+ ...e,
60
+ chart: e.movable.getContent()
61
+ }),
62
+ commands: (t, a) => {
63
+ const { sheet: l, movable: n, notifier: c } = a, d = n.getContent();
64
+ t.use(e({
65
+ transaction: l,
66
+ notifier: c
67
+ }));
68
+ const g = () => ({ chart: () => d }), h = () => d.isReadOnly() ? [s("reason.sheetProtected")] : [], m = () => {
69
+ const e = d.isReadOnly() ? [s("reason.sheetProtected")] : i.has(d.getChartType()) ? [s("reason.chartTypeNotEditable")] : [];
70
+ t.updateCommand("chartChangeType", {
71
+ callback: (e) => {
72
+ const t = "string" == typeof e ? e : e?.type;
73
+ t && d.setChartType(t);
74
+ },
75
+ state: d.getChartType(),
76
+ context: g,
77
+ disabledReasons: e
78
+ }), t.updateCommand("chartSwitchRowColumn", {
79
+ callback: () => {
80
+ d.setSeriesBy("rows" === d.getSeriesBy() ? "columns" : "rows");
81
+ },
82
+ state: d.getSeriesBy(),
83
+ context: g,
84
+ disabledReasons: e
85
+ }), t.updateCommand("chartSelectData", {
86
+ tags: ["noTransaction", "noRepeat"],
87
+ callback: async (e) => {
88
+ if (!e) {
89
+ const t = await c?.showInput?.({
90
+ title: o("dialog.chartSelectData.title"),
91
+ description: o("dialog.chartSelectData.description"),
92
+ inputLabel: o("dialog.chartSelectData.inputLabel"),
93
+ initialValue: d.getSeries()[0]?.getValuesRange()?.getAddress() ?? "",
94
+ options: [{
95
+ id: "Select",
96
+ label: () => o("dialog.select")
97
+ }]
98
+ });
99
+ if (!t || "Select" !== t.option || !t.input) return;
100
+ e = t.input;
101
+ }
102
+ d.setData(e);
103
+ },
104
+ context: g,
105
+ disabledReasons: e
106
+ }), t.updateCommand("chartAddElement", {
107
+ callback: (e) => {
108
+ e && d.setElement(e);
109
+ },
110
+ context: g,
111
+ disabledReasons: e
112
+ });
113
+ for (const a of r) {
114
+ const s = a.state(d);
115
+ t.updateCommand(a.key, {
116
+ callback: () => {
117
+ for (const e of s ? a.hide : a.show) d.setElement(e);
118
+ },
119
+ state: s,
120
+ context: g,
121
+ disabledReasons: "chartTitleToggle" === a.key || "chartLegendToggle" === a.key ? h() : e
122
+ });
123
+ }
124
+ };
125
+ return m(), d.addListeners({ onAnyChange: m });
126
+ }
127
+ };
128
+ export { l as ChartKind };
@@ -0,0 +1,278 @@
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 as e } from "./Dj5FM7_-YWhCtCCt.mjs";
8
+ import { n as t } from "./JiQGhLkoL8CJpVvA.mjs";
9
+ import { i as r, r as o, t as l } from "./BiaDWnN3tT7neoRL.mjs";
10
+ import { forwardRef as i, memo as n, useCallback as s, useEffect as a, useLayoutEffect as c, useMemo as d, useReducer as h, useRef as p, useState as u } from "react";
11
+ import { jsx as g, jsxs as m } from "react/jsx-runtime";
12
+ import { useImperativeElement as f, useNotifier as x, useTranslator as y } from "@sheetxl/utils-react";
13
+ var b = () => m("svg", {
14
+ viewBox: "0 0 16 16",
15
+ width: 14,
16
+ height: 14,
17
+ "aria-hidden": !0,
18
+ children: [g("path", {
19
+ d: "M1.5 2.5h10l-4 5v5l-2 1v-6z",
20
+ fill: "none",
21
+ stroke: "currentColor",
22
+ strokeWidth: 1.2,
23
+ strokeLinejoin: "round"
24
+ }), g("path", {
25
+ d: "M10.5 10l4 4M14.5 10l-4 4",
26
+ stroke: "currentColor",
27
+ strokeWidth: 1.2
28
+ })]
29
+ }), v = () => m("svg", {
30
+ viewBox: "0 0 16 16",
31
+ width: 14,
32
+ height: 14,
33
+ "aria-hidden": !0,
34
+ children: [g("path", {
35
+ d: "M1.5 3.5l1.5 1.5 2.5-3M1.5 10.5l1.5 1.5 2.5-3",
36
+ fill: "none",
37
+ stroke: "currentColor",
38
+ strokeWidth: 1.2
39
+ }), g("path", {
40
+ d: "M8 4h7M8 11h7",
41
+ stroke: "currentColor",
42
+ strokeWidth: 1.2
43
+ })]
44
+ }), w = (e) => {
45
+ const t = e?.getTheme().getFontScheme().getMinorFont();
46
+ return {
47
+ fontFamily: (t ? t.includes(" ") ? `"${t}", ` : `${t}, ` : "") + "sans-serif",
48
+ fontSize: "11pt"
49
+ };
50
+ }, k = n(i((i, n) => {
51
+ const { children: k, disabled: C, style: S, slicer: M, movable: D, zoom: R = 1, isDragging: z, onHide: F, onShow: I, onDragZone: N, adornmentHost: O, flip: j, gesture: H, ...E } = i, K = y(), T = x(), W = (t() ?? M.getTable()?.getWorksheet() ?? null)?.getStyles() ?? null, [P, $] = h((e) => e + 1, 0);
52
+ e(M, {
53
+ onAnyChange: $,
54
+ onReferencesChange: $
55
+ }), a(() => W?.addListeners({ onAnyChange: $ }), [W]);
56
+ const [A, B] = u([]);
57
+ a(() => {
58
+ let e = !0;
59
+ if (!M.isDeleted()) return M.getItems().then((t) => {
60
+ e && B(t);
61
+ }).catch(() => {
62
+ e && B([]);
63
+ }), () => {
64
+ e = !1;
65
+ };
66
+ }, [M, P]);
67
+ const [L, J] = u(!1), [X, Y] = u(null), Z = p(null), q = p(null), G = p(null), [Q, U] = u(!1);
68
+ c(() => {
69
+ const e = G.current;
70
+ if (!e) return;
71
+ const t = () => U(e.scrollHeight > e.clientHeight);
72
+ if (t(), "undefined" == typeof ResizeObserver) return;
73
+ const r = new ResizeObserver(t);
74
+ return r.observe(e), () => r.disconnect();
75
+ }, [
76
+ A,
77
+ M.getRowHeight(),
78
+ M.getColumnCount(),
79
+ M.isShowCaption()
80
+ ]), c(() => {
81
+ N?.((e) => {
82
+ const t = e.target;
83
+ return !t || !G.current?.contains(t) && !t.closest?.("button");
84
+ });
85
+ }, [N]);
86
+ const V = p(!1), _ = M.getColumnCount(), ee = M.getRowHeight();
87
+ c(() => {
88
+ if (V.current || 0 === A.length || !G.current) return;
89
+ V.current = !0;
90
+ const e = M.toJSON()?.startItem ?? 0;
91
+ e > 0 && (G.current.scrollTop = Math.floor(e / _) * (ee + 4));
92
+ }, [
93
+ A,
94
+ _,
95
+ ee
96
+ ]);
97
+ const te = s((e) => {
98
+ M.selectItems(e).catch((e) => T.showError(e));
99
+ }, [M, T]), re = s((e, t) => {
100
+ if (C) return;
101
+ const r = A.map((e) => e.key), o = M.isFilterCleared() ? [] : A.filter((e) => e.isSelected).map((e) => e.key), l = Z.current;
102
+ if (t.shiftKey && null !== l && r.includes(l)) {
103
+ const i = r.indexOf(l), n = r.indexOf(e.key), s = r.slice(Math.min(i, n), Math.max(i, n) + 1);
104
+ te(t.ctrlKey || t.metaKey ? [.../* @__PURE__ */ new Set([...o, ...s])] : s);
105
+ return;
106
+ }
107
+ Z.current = e.key, t.ctrlKey || t.metaKey || L ? 0 === o.length ? te([e.key]) : o.includes(e.key) ? te(o.filter((t) => t !== e.key)) : te([...o, e.key]) : te([e.key]);
108
+ }, [
109
+ M,
110
+ A,
111
+ L,
112
+ C,
113
+ te
114
+ ]), oe = f(n, () => ({ isSlicerEditor: () => !0 }), []), le = l(M.getStyle(), W), ie = d(() => o(le?.wholeTable, W), [
115
+ le,
116
+ W,
117
+ P
118
+ ]), ne = d(() => o(le?.headerRow, W), [
119
+ le,
120
+ W,
121
+ P
122
+ ]);
123
+ if (M.isDeleted()) return null;
124
+ const se = M.isFilterCleared(), ae = M.isShowCaption(), ce = {
125
+ display: "flex",
126
+ alignItems: "center",
127
+ justifyContent: "center",
128
+ width: 22,
129
+ height: 22,
130
+ padding: 0,
131
+ margin: 0,
132
+ border: "1px solid transparent",
133
+ borderRadius: 2,
134
+ background: "none",
135
+ color: "inherit",
136
+ cursor: "pointer"
137
+ };
138
+ return m("div", {
139
+ className: "slicer-editor",
140
+ ...E,
141
+ ref: oe,
142
+ style: {
143
+ width: "100%",
144
+ height: "100%",
145
+ zoom: R,
146
+ boxSizing: "border-box",
147
+ display: "flex",
148
+ flexDirection: "column",
149
+ overflow: "hidden",
150
+ position: "relative",
151
+ backgroundColor: "var(--sxl-color-base-100, white)",
152
+ border: "var(--sxl-color-neutral, grey) solid 1px",
153
+ ...w(W),
154
+ ...ie,
155
+ filter: C ? "blur(1px)" : void 0,
156
+ boxShadow: z ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
157
+ ...S
158
+ },
159
+ children: [ae ? m("div", {
160
+ ref: q,
161
+ className: "slicer-caption",
162
+ style: {
163
+ display: "flex",
164
+ alignItems: "center",
165
+ gap: 2,
166
+ margin: "0 9px",
167
+ padding: "6px 0 4px 0",
168
+ flex: "none",
169
+ ...ne
170
+ },
171
+ children: [
172
+ g("span", {
173
+ style: {
174
+ flex: "1 1 auto",
175
+ overflow: "hidden",
176
+ textOverflow: "ellipsis",
177
+ whiteSpace: "nowrap"
178
+ },
179
+ children: M.getCaption()
180
+ }),
181
+ g("button", {
182
+ type: "button",
183
+ className: "slicer-multi-select",
184
+ tabIndex: -1,
185
+ title: K("slicer.multiSelect"),
186
+ "aria-label": K("slicer.multiSelect"),
187
+ "aria-pressed": L,
188
+ style: {
189
+ ...ce,
190
+ borderColor: L ? "var(--sxl-color-neutral, grey)" : "transparent",
191
+ backgroundColor: L ? "var(--sxl-color-base-200, #eee)" : void 0
192
+ },
193
+ onClick: () => J((e) => !e),
194
+ children: g(v, {})
195
+ }),
196
+ g("button", {
197
+ type: "button",
198
+ className: "slicer-clear",
199
+ tabIndex: -1,
200
+ title: K("slicer.clearFilter"),
201
+ "aria-label": K("slicer.clearFilter"),
202
+ disabled: se || C,
203
+ style: {
204
+ ...ce,
205
+ opacity: se ? .4 : 1,
206
+ cursor: se ? "default" : "pointer"
207
+ },
208
+ onClick: () => {
209
+ M.clearFilters().catch((e) => T.showError(e));
210
+ },
211
+ children: g(b, {})
212
+ })
213
+ ]
214
+ }) : null, g("div", {
215
+ ref: G,
216
+ className: "slicer-items",
217
+ role: "listbox",
218
+ "aria-multiselectable": !0,
219
+ "aria-label": M.getCaption(),
220
+ style: {
221
+ flex: "1 1 auto",
222
+ minHeight: 0,
223
+ overflowY: "auto",
224
+ overflowX: "hidden",
225
+ overscrollBehavior: "contain",
226
+ "--scrollbar-width": "8px",
227
+ "--scrollbar-border-width": "1px",
228
+ display: "grid",
229
+ gridTemplateColumns: `repeat(${_}, minmax(0, 1fr))`,
230
+ gridAutoRows: `${ee}px`,
231
+ alignContent: "start",
232
+ gap: 4,
233
+ margin: (ae ? 4 : 9) + "px 9px 9px 9px",
234
+ paddingRight: Q ? 3 : 0
235
+ },
236
+ onPointerLeave: () => Y(null),
237
+ children: A.map((e) => {
238
+ const t = r(e.isSelected, e.hasData, X === e.key);
239
+ return g("div", {
240
+ className: "slicer-item",
241
+ role: "option",
242
+ "aria-selected": e.isSelected,
243
+ "data-key": e.key,
244
+ "data-has-data": e.hasData || void 0,
245
+ title: e.name,
246
+ style: {
247
+ boxSizing: "border-box",
248
+ display: "flex",
249
+ alignItems: "center",
250
+ justifyContent: "center",
251
+ padding: "0 4px",
252
+ overflow: "hidden",
253
+ whiteSpace: "nowrap",
254
+ textOverflow: "ellipsis",
255
+ userSelect: "none",
256
+ cursor: C ? void 0 : "pointer",
257
+ border: "1px solid transparent",
258
+ ...o(le?.[t], W)
259
+ },
260
+ onPointerEnter: () => Y(e.key),
261
+ onPointerDown: (e) => {
262
+ 0 === e.button && (e.stopPropagation(), e.preventDefault(), D && !D.isSelected() && D.select());
263
+ },
264
+ onClick: (t) => re(e, t),
265
+ children: g("span", {
266
+ style: {
267
+ overflow: "hidden",
268
+ textOverflow: "ellipsis"
269
+ },
270
+ children: e.name
271
+ })
272
+ }, e.key);
273
+ })
274
+ })]
275
+ });
276
+ }));
277
+ k.displayName = "SlicerEditor";
278
+ export { k as SlicerEditor };