@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
@@ -1,4 +1,4 @@
1
- import { IRange, ICell, ICellRanges, ICellRange, IColor, ITable, INamedCollection, IStyleCollection, IStyle, IBorder, ITheme, IThemeCollection, IFunction, IFunctionCollection, IWorkbook } from '@sheetxl/sdk';
1
+ import { IRange, ICell, ICellRanges, ICellRange, IColor, ITable, INamedCollection, IStyleCollection, ICellStyle, IBorders, ITheme, IThemeCollection, IFunction, IFunctionCollection, IWorkbook, ISlicer, IChart } from '@sheetxl/sdk';
2
2
  /**
3
3
  * For providing Adjustable Color Commands additional rendering capabilities.
4
4
  *
@@ -18,14 +18,14 @@ export interface Color {
18
18
  }
19
19
  export interface Border {
20
20
  readonly autoColor: IColor;
21
- readonly autoStyle: IBorder.StrokeStyle;
22
- readonly quickBorder?: Partial<IBorder.Properties>;
21
+ readonly autoStyle: IBorders.StrokeStyle;
22
+ readonly quickBorder?: Partial<IBorders.Properties>;
23
23
  readonly schemeLookup: IColor.SchemeLookup;
24
- createBorder: (update: IBorder.Properties) => IBorder;
25
- onBorderSelect: (border: Partial<IBorder.Properties>) => void;
24
+ createBorder: (update: IBorders.Properties) => IBorders;
25
+ onBorderSelect: (border: Partial<IBorders.Properties>) => void;
26
26
  }
27
27
  export interface NamedStyle {
28
- readonly named: () => IStyle.INamed;
28
+ readonly named: () => ICellStyle.INamed;
29
29
  readonly styles: () => IStyleCollection;
30
30
  createCell: (update: ICell.Update) => ICell;
31
31
  }
@@ -46,6 +46,19 @@ export interface Table {
46
46
  */
47
47
  resolveRanges: (address: ICellRanges.Address) => ICellRanges;
48
48
  }
49
+ /** What a slicer-style gallery draws its previews with. */
50
+ export interface Slicer {
51
+ readonly slicer: () => ISlicer;
52
+ readonly styles: () => IStyleCollection;
53
+ }
54
+ /** What a chart's galleries (its type, its elements) read: the active chart. */
55
+ export interface Chart {
56
+ readonly chart: () => IChart;
57
+ }
58
+ /** What the Insert Slicer gallery draws with: the workbook's styles. A pick inserts a slicer in that style. */
59
+ export interface SlicerStyles {
60
+ readonly styles: () => IStyleCollection;
61
+ }
49
62
  export interface Theme {
50
63
  readonly theme: ITheme;
51
64
  readonly themes: IThemeCollection;
@@ -59,7 +72,7 @@ export interface NamedReference {
59
72
  }
60
73
  /**
61
74
  * Used for the workbook-statistics dialog — the dialog profiles the live workbook itself
62
- * (`IWorkbook.getStats` / `ISheet.getStats`), so the context is just the model getter.
75
+ * (`IWorkbook.getStats` / `IWorksheet.getStats`), so the context is just the model getter.
63
76
  */
64
77
  export interface WorkbookStatistics {
65
78
  getWorkbook: () => IWorkbook;
@@ -74,14 +87,183 @@ export interface ResizeHeaderContext {
74
87
  toUnits?(value: number): number;
75
88
  toPixels?(value: number): number;
76
89
  }
90
+ /**
91
+ * The one group a Show / Hide Detail command acts on, named by its summary header; without it the
92
+ * command acts on the selection.
93
+ */
94
+ export interface OutlineTarget {
95
+ axis: IRange.Axis;
96
+ /** The summary row or column, zero-based. */
97
+ index: number;
98
+ }
99
+ /** A gutter button's press: expand (`show`) or collapse the group whose summary this is. */
100
+ export interface OutlineToggle extends OutlineTarget {
101
+ show: boolean;
102
+ }
103
+ /** The level a level button shows: `level` on `axis`. */
104
+ export interface OutlineLevel {
105
+ axis: IRange.Axis;
106
+ level: number;
107
+ }
108
+ /** The outline settings window's value. */
109
+ export interface OutlineSettings {
110
+ /** Summary rows below their details (else above). */
111
+ summaryBelow: boolean;
112
+ /** Summary columns to the right of their details (else to the left). */
113
+ summaryRight: boolean;
114
+ /** Apply the automatic outline styles. */
115
+ automaticStyles: boolean;
116
+ }
77
117
  export interface NewTable {
78
118
  ranges: ICellRanges;
79
119
  hasHeader?: boolean;
120
+ /** The table's name. When omitted the next free default name is used. */
121
+ name?: string;
80
122
  }
81
123
  export interface SelectedRange {
82
124
  range: ICellRange;
83
125
  cell?: ICell.Address;
84
126
  }
127
+ /**
128
+ * What the Series dialog produces — a {@link IAutoFill.Preset} named by id, the direction it runs,
129
+ * and the fields the chosen type declares.
130
+ *
131
+ * @remarks
132
+ * The preset is named rather than passed because this crosses a command boundary: the id survives
133
+ * into a transaction's operation params and back, where a filler instance would not.
134
+ */
135
+ export interface FillSeriesOptions {
136
+ /** {@link IAutoFill.Preset.id} of the chosen fill type. */
137
+ presetId: string;
138
+ /** Which way the series runs through the selection. Always `Down` or `Right` from a selection. */
139
+ direction: IRange.Direction;
140
+ /** Fit the series to the values rather than stepping from them. */
141
+ trend?: boolean;
142
+ /** {@link IAutoFill.Options.stepValue} — meaningless, and hidden, unless the type declares it. */
143
+ stepValue?: number;
144
+ /** {@link IAutoFill.Options.stopValue} */
145
+ stopValue?: number;
146
+ }
147
+ /**
148
+ * The two ranges a fill actually runs over — what it reads, and what it writes.
149
+ *
150
+ * @remarks
151
+ * Worth showing, because they are not the selection and not obvious from it: the template is the
152
+ * selection's leading CONTENTFUL part, so typing a second seed value changes what the fill reads.
153
+ * Excel keeps this hidden and always seeds from the first cell, which is why nobody can tell what
154
+ * its dialog is about to do.
155
+ */
156
+ export interface FillSeriesRanges {
157
+ /** Address of the cells the series is read from. */
158
+ template: string;
159
+ /** Address of the cells the fill covers — the selection. */
160
+ destination: string;
161
+ /** How many cells deep the template is along the fill direction. */
162
+ templateSize: number;
163
+ /** How many cells deep the destination is — the template included. */
164
+ size: number;
165
+ }
166
+ /**
167
+ * Everything the Series dialog needs to offer, preview and describe a fill, without reaching into
168
+ * the model itself.
169
+ *
170
+ * @remarks
171
+ * The dialog is presentation: which types apply, what a setting would produce, and where the fill
172
+ * would land are all questions about the sheet, and they are answered here so the dialog does not
173
+ * have to iterate cells to ask them.
174
+ */
175
+ export interface FillSeries {
176
+ /** The selection the fill runs over — the dialog shows its address. */
177
+ readonly range: ICellRange;
178
+ /**
179
+ * The direction the selection's own shape implies, and the dialog's initial value.
180
+ *
181
+ * @remarks
182
+ * A single column runs down and a single row runs across; a block is ambiguous and Excel's own
183
+ * default (down) is taken, which is why the dialog still offers the choice.
184
+ */
185
+ readonly direction: IRange.Direction;
186
+ /**
187
+ * The preset ids that can be offered for `direction`, in registry order.
188
+ *
189
+ * @remarks
190
+ * A preset applies when it applies to ANY line of the selection — a selection holding a column of
191
+ * dates beside a column of numbers offers the date fills, and the numeric column falls back to a
192
+ * copy rather than the entry being greyed for both.
193
+ */
194
+ offered: (direction: IRange.Direction) => readonly string[];
195
+ /**
196
+ * The addresses a fill in `direction` would read and write, or `null` where there is nothing to
197
+ * fill — which is also how a surface knows a direction is not on offer at all.
198
+ */
199
+ resolve: (direction: IRange.Direction) => FillSeriesRanges | null;
200
+ /**
201
+ * A projection of what `options` would fill, or `null` where there is nothing to fill.
202
+ *
203
+ * @remarks
204
+ * Nothing is committed and no undo entry is created; the cells are computed on demand, so reading
205
+ * the handful the dialog shows costs that handful. See {@link ICellRange.AutoFillOptions.preview}.
206
+ */
207
+ preview: (options: FillSeriesOptions) => ICellRange | null;
208
+ }
209
+ /**
210
+ * A fill the fill menu can run — a chosen entry, as data.
211
+ *
212
+ * @remarks
213
+ * The entries are presets plus a content selector: *Copy Cells* is the `copy` preset, *Fill
214
+ * Formatting Only* is `Formats` with no preset (no series is read), *Fill Without Formatting* is
215
+ * the `series` preset with `Values`.
216
+ */
217
+ export interface FillMenuOptions {
218
+ /**
219
+ * {@link IAutoFill.Preset.id} of the fill type. Omit for a formatting-only fill, which reads no
220
+ * series at all.
221
+ */
222
+ presetId?: string;
223
+ /**
224
+ * {@link ICellRange.AutoFillOptions.type} — `Formats` for *Fill Formatting Only*, `Values` for
225
+ * *Fill Without Formatting*; omitted for everything.
226
+ */
227
+ type?: ICell.Content;
228
+ }
229
+ /**
230
+ * Everything the fill menu — the right-drag of the fill handle — needs to offer and run a fill.
231
+ *
232
+ * @remarks
233
+ * The drag has already decided what is read, what is covered and which way, so unlike
234
+ * {@link FillSeries} nothing here is asked per direction. The menu is presentation: it lists the
235
+ * entries it wants in the order it wants, greys those not in `offered`, and calls back.
236
+ */
237
+ export interface FillMenu {
238
+ /** The cells the fill reads — the selection the handle was dragged from. */
239
+ readonly template: ICellRange;
240
+ /** The cells the fill covers, the template included — where the handle was released. */
241
+ readonly destination: ICellRange;
242
+ /** Which way the drag went. */
243
+ readonly direction: IRange.Direction;
244
+ /**
245
+ * The {@link IAutoFill.Preset.id}s that can be offered for the template, in registry order — see
246
+ * {@link IAutoFill.DefaultCriteria.offered}. Empty for a template with nothing in it.
247
+ */
248
+ readonly offered: readonly string[];
249
+ /**
250
+ * Run the chosen fill and select the destination, as a left-drag would. A refused fill (a merge
251
+ * the destination cannot hold) is reported, not thrown.
252
+ */
253
+ fill: (options: FillMenuOptions) => Promise<void>;
254
+ /** Open the Series dialog on the drag's template, destination and direction. */
255
+ series: () => void;
256
+ /**
257
+ * The menu closed without choosing — the drag is over and nothing is filled.
258
+ *
259
+ * @remarks
260
+ * The grid keeps the drag's dashed preview up while a choice is pending, since it shows which
261
+ * cells the menu is about; this is what lets it go. A no-op once {@link fill} or {@link series}
262
+ * was called — those settle the drag themselves, the dialog included — so a menu can call it
263
+ * from every close path without caring which one it was.
264
+ */
265
+ cancel: () => void;
266
+ }
85
267
  /**
86
268
  * The function-discovery context the `insertFunction` command carries — everything a picker (the
87
269
  * category menus, and the Insert Function dialog) needs to browse the workbook's functions, built-in
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { IMovable } from '@sheetxl/sdk';
3
+ import { MovableElementProps } from '../movable';
4
+ export interface GroupEditorProps extends MovableElementProps {
5
+ /** The content of a movable that holds movables ({@link IMovable.getMovables}): a group. */
6
+ container: IMovable.IContent;
7
+ ref?: React.Ref<HTMLDivElement>;
8
+ }
9
+ /**
10
+ * Content that holds movables, in the sheet: a container that draws each member with the
11
+ * renderer of its own kind, where the member says it is drawn.
12
+ *
13
+ * @remarks
14
+ * A member answers its placement on the canvas, so the members are laid out in canvas pixels in
15
+ * one box whose transform takes the canvas back into the frame: it undoes the frame's turn and
16
+ * mirror about the frame's center. While the group itself is in a gesture, the same transform
17
+ * maps the committed frame onto the gesture's, so the members follow it before it commits (a plain
18
+ * stretch, without the quadrant rule, until the drop). A member's box carries its id, so a press
19
+ * on it reaches the member (Excel's two-step), and a member's own gesture draws its preview here.
20
+ * Nothing here is a hit target but what the members paint and, while the group is selected, its
21
+ * edge: a group paints nothing of its own, so its outline is where a press grabs the group itself
22
+ * rather than a member, as Excel drags a selected group by its frame.
23
+ */
24
+ export declare const GroupEditor: React.NamedExoticComponent<Omit<GroupEditorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ //# sourceMappingURL=GroupEditor.d.ts.map
@@ -2,21 +2,33 @@ export { LicenseManager, type LicenseDetails } from '@sheetxl/sdk';
2
2
  export * from './context';
3
3
  export * from './cell';
4
4
  export * from './editor';
5
- export * from './list';
6
5
  export * from './selection';
7
6
  export * from './border';
8
7
  export * from './sheet';
9
8
  export * from './picture';
9
+ export * from './slicer';
10
10
  export * from './shape';
11
11
  export * from './chart';
12
- export * from './slicer';
12
+ export * from './comment';
13
+ export * from './annotation';
14
+ export * from './richText';
13
15
  export * from './movable';
14
16
  export * from './form';
15
17
  export * from './editableLabel';
16
18
  export * from './tabStrip';
17
19
  export * from './icons';
18
20
  export * from './layer/ConditionalIcons';
21
+ export { SheetLayers, useGridSurface, type SheetLayersProps, type SheetLayersFilter, type SheetSurface } from './layer/SheetLayers';
22
+ export * from './layer/RangeAnnotationLayer';
23
+ export * from './layer/CellInsertLayer';
24
+ export * from './layer/HyperlinkLayer';
25
+ export type { TableToolbarRenderProps } from './layer/TableToolbar';
26
+ export * from './picker';
27
+ export * from './checklist';
19
28
  export * from './conditionalFormat';
29
+ export * from './autoFill';
30
+ export * from './protection';
31
+ export * from './externalLink';
20
32
  export * from './clipboard';
21
33
  export * from './commands';
22
34
  export * from './undo';
@@ -42,6 +42,8 @@ export declare class _WorkbookIO implements IWorkbookIO {
42
42
  addListeners(listeners: IWorkbookIO.Listeners, _options?: IListener.Options): IListener.Remove;
43
43
  /** @inheritdoc IWorkbookIO.addCommitListener */
44
44
  addCommitListener(listener: ITransaction.ICommitSource.IListeners): IListener.Remove;
45
+ /** {@inheritDoc IWorkbookIO.isIWorkbookIO} */
46
+ get isIWorkbookIO(): true;
45
47
  }
46
48
  /**
47
49
  * A Singleton instance that lazy wraps '@sheetxl/io/WorkbookIO'.
@@ -1,9 +1,9 @@
1
- import { IRange, ISheet, ICell } from '@sheetxl/sdk';
1
+ import { IRange, IWorksheet, ICell } from '@sheetxl/sdk';
2
2
  import { LayerProps, IGridPane } from '@sheetxl/grid-react';
3
3
  export interface BorderLayerProps extends LayerProps {
4
4
  /** Class for the borders host box (devtools identification). */
5
5
  className?: string;
6
- sheet: ISheet;
6
+ sheet: IWorksheet;
7
7
  getVisibleCells: (pane: IGridPane) => {
8
8
  cell: ICell.Coords;
9
9
  value?: ICell;
@@ -1,15 +1,23 @@
1
1
  import { default as React } from 'react';
2
2
  import { RangeCoords } from '@sheetxl/utils';
3
- import { ICalculation, IRange, ISheet } from '@sheetxl/sdk';
3
+ import { ICalculation, IRange, IWorksheet } from '@sheetxl/sdk';
4
4
  import { StickyState, GridPlacement, LayerProps } from '@sheetxl/grid-react';
5
+ import { ValidationMark } from './validationMark';
5
6
  /** The kind of annotation a cell carries (drives the default tip styling). */
6
- export type CellErrorKind = 'error' | 'warning' | 'circular';
7
+ export type CellErrorKind = 'error' | 'warning' | 'circular' | 'validation';
7
8
  /** The active hovered annotation passed to a custom {@link CellErrorLayerProps.renderTip}. */
8
9
  export interface CellErrorTip {
9
10
  /** The hovered cell as a range (the tip's anchor). */
10
11
  range: RangeCoords;
11
12
  /** `getErrors()` (preferred) or `getWarnings()` joined by newline. */
12
13
  message: string;
14
+ /**
15
+ * The error the cell shows (`#DIV/0!`, as displayed), when its value is one. `kind === 'error'` only;
16
+ * `message` is then the error's own message, empty when it carries none.
17
+ */
18
+ code?: string;
19
+ /** What that kind of error means, in general — not this cell's particulars. With {@link code}. */
20
+ description?: string;
13
21
  /** Which list the message came from. */
14
22
  kind: CellErrorKind;
15
23
  /** The resolved sticky state (e.g. `state.scrollIntoView()` to reveal the cell). */
@@ -23,6 +31,11 @@ export interface CellErrorTip {
23
31
  path?: readonly IRange.CellCoords[];
24
32
  /** The cycle's representative — where a downstream cell is pointed. `kind === 'circular'` only. */
25
33
  representative?: IRange.CellCoords | null;
34
+ /**
35
+ * How the value fails its data validations, the mark this tip explains. `kind === 'validation'`
36
+ * only; `message` is then the answering rule's alert, or its description when it has none.
37
+ */
38
+ validation?: ValidationMark;
26
39
  }
27
40
  /**
28
41
  * Props for {@link CellErrorLayer}.
@@ -31,12 +44,15 @@ export interface CellErrorLayerProps extends Omit<LayerProps, 'children'> {
31
44
  /** Class forwarded to the inner layer's host box (devtools identification). */
32
45
  className?: string;
33
46
  /** The sheet whose cells are probed for `getErrors()` / `getCircularReference()` / `getWarnings()`. */
34
- sheet: ISheet;
35
- /** Which side of the cell the tip attaches to. @defaultValue `{ side: 'r', align: 'start' }` */
47
+ sheet: IWorksheet;
48
+ /** Which side of the cell the tip attaches to. @defaultValue `{ side: 'b', align: 'start' }`, as the input prompt's */
36
49
  placement?: GridPlacement;
37
50
  /** Gap (px) between the cell edge and the tip. @defaultValue 6 */
38
51
  offset?: number;
39
- /** Offset (px) along the cell edge — only applies to `start` / `end` align (inset from the corner). @defaultValue 2 */
52
+ /**
53
+ * Offset (px) along the cell edge, from the corner `align` names. Omitted, the tip starts `offset`
54
+ * past the cell's right edge, as the input prompt does.
55
+ */
40
56
  alignOffset?: number;
41
57
  /** Dwell (ms) before the tip shows. @defaultValue 300 */
42
58
  openDelay?: number;
@@ -44,15 +60,16 @@ export interface CellErrorLayerProps extends Omit<LayerProps, 'children'> {
44
60
  closeDelay?: number;
45
61
  /**
46
62
  * Optional custom tip renderer. Spread `tipProps` (from context via `useSticky`, or reuse the
47
- * default) onto the returned element to keep the tip open while hovered. Omit for the default pill.
63
+ * default) onto the returned element to keep the tip open while hovered. Omit for the default card.
48
64
  */
49
65
  renderTip?: (tip: CellErrorTip) => React.ReactNode;
50
66
  }
51
67
  /**
52
68
  * A grid layer that shows a **hover tooltip on cells carrying errors / warnings**. A thin
53
- * {@link HoverTipLayer} whose probe asks the sheet — `getErrors()`, then
54
- * `getCircularReference()`, then `getWarnings()` — and anchors on the cell's own range; the tip
55
- * stays open while hovered. `getComments()` is not yet wired (unimplemented in the model).
69
+ * {@link RangeTooltipLayer} whose probe asks the sheet — `getErrors()`, then
70
+ * `getCircularReference()`, then the data validations the value fails, then `getWarnings()` — and
71
+ * anchors on the cell's own range; the tip stays open while hovered. `getComments()` is not yet
72
+ * wired (unimplemented in the model).
56
73
  *
57
74
  * @remarks
58
75
  * A cell in a reference cycle, or downstream of one, is a third source (`kind: 'circular'`)
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { IRange, ISheet, ICell } from '@sheetxl/sdk';
2
+ import { IRange, IWorksheet, ICell } from '@sheetxl/sdk';
3
3
  import { IGridPane, LayerProps } from '@sheetxl/grid-react';
4
4
  export interface CellFillLayerProps extends LayerProps {
5
5
  /** Style for the fills host box. */
6
6
  style?: React.CSSProperties;
7
- sheet: ISheet;
7
+ sheet: IWorksheet;
8
8
  getVisibleCells: (pane: IGridPane) => {
9
9
  cell: ICell.Coords;
10
10
  value?: ICell;
@@ -0,0 +1,71 @@
1
+ import { default as React } from 'react';
2
+ import { ICellRange, IRange } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ /** Props for the button that inserts a row or column. */
5
+ export interface CellInsertButtonProps extends React.ButtonHTMLAttributes<HTMLElement> {
6
+ /** Rows or columns. */
7
+ axis: IRange.Axis;
8
+ /** The cells a press inserts. */
9
+ range: ICellRange;
10
+ /** The edge of the square the button fills, in pixels (zoom applied). */
11
+ size: number;
12
+ /** A localized description of what a press does. */
13
+ title: string;
14
+ /** Inserts the cells. */
15
+ onInsert: () => void;
16
+ }
17
+ export interface CellInsertLayerProps extends Omit<LayerProps, 'children'> {
18
+ /** Class for the layer. */
19
+ className?: string;
20
+ /**
21
+ * Whether the button inserts rows, from the row headers, or columns, from the column headers.
22
+ * A host that wants both declares one layer for each.
23
+ *
24
+ * @defaultValue 'row'
25
+ */
26
+ axis?: IRange.Axis;
27
+ /**
28
+ * The cells to insert at the header border nearest the pointer, or `null` for no button. The
29
+ * preview line runs along the returned range. Called on every pointer move, so it should be cheap.
30
+ *
31
+ * @param range The entire row (column) just past the border: below it for rows, right of it for
32
+ * columns. A host usually narrows it, e.g. `range.getIntersect(table.getRange())`.
33
+ *
34
+ * Defaults to `range` when the sheet's protection allows inserting rows (columns).
35
+ */
36
+ resolve?: (range: ICellRange) => ICellRange | null;
37
+ /** Called when the button is pressed. Defaults to `range.insert(axis)`. */
38
+ onInsert?: (range: ICellRange) => void;
39
+ /** Edge (px, unzoomed) of the button. @defaultValue 16 */
40
+ size?: number;
41
+ /**
42
+ * Renders the button, filling the square it is placed in. Defaults to {@link CellInsertButton}.
43
+ */
44
+ renderButton?: (props: CellInsertButtonProps) => React.ReactNode;
45
+ }
46
+ /**
47
+ * An **insert** button in the headers, on the border nearest the pointer, as Word shows one in the
48
+ * margin beside a table. Pressing it inserts cells at that border; while it shows, a line across the
49
+ * cells previews where.
50
+ *
51
+ * @remarks
52
+ * Declared on both the header strip and the cells, which a {@link SheetLayers} does:
53
+ *
54
+ * ```tsx
55
+ * <WorksheetElement sheet={sheet}>
56
+ * <SheetLayers surface={['rowHeaders', 'cells']}>
57
+ * <CellInsertLayer />
58
+ * </SheetLayers>
59
+ * </WorksheetElement>
60
+ * ```
61
+ *
62
+ * The button is offered from the headers only: hovering the cells shows nothing. Which cells an insert
63
+ * covers, and whether there is one at all, are the host's, through `resolve`. Left alone it inserts
64
+ * entire rows (columns) wherever the sheet's protection allows.
65
+ */
66
+ export declare const CellInsertLayer: React.MemoExoticComponent<(props: CellInsertLayerProps) => React.JSX.Element | null>;
67
+ /**
68
+ * The chromeless insert button: a circled `+` in the primary color, filled while hovered.
69
+ */
70
+ export declare const CellInsertButton: React.MemoExoticComponent<(props: CellInsertButtonProps) => React.JSX.Element>;
71
+ //# sourceMappingURL=CellInsertLayer.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ISheet } from '@sheetxl/sdk';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
3
  import { LayerProps } from '@sheetxl/grid-react';
4
4
  export interface CircularIndicatorLayerProps extends LayerProps {
5
5
  /** Class for the layer (devtools identification). */
@@ -7,7 +7,7 @@ export interface CircularIndicatorLayerProps extends LayerProps {
7
7
  /** Style for the indicators host box. */
8
8
  style?: React.CSSProperties;
9
9
  /** The sheet whose circular references are marked. */
10
- sheet: ISheet;
10
+ sheet: IWorksheet;
11
11
  /** Size (px, unzoomed) of the corner glyph. @defaultValue 9 */
12
12
  markSize?: number;
13
13
  /** Inset (px, unzoomed) of the glyph from the cell's top-left corner. @defaultValue 1 */
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ import { CommentCardRenderProps } from '../comment/CommentCardRequest';
5
+ export interface CommentCardLayerProps extends Omit<LayerProps, 'children'> {
6
+ /** Class for the floated card container. */
7
+ className?: string;
8
+ /** Style for the floated card container. */
9
+ style?: React.CSSProperties;
10
+ /** The sheet whose threads are shown. */
11
+ sheet: IWorksheet;
12
+ /**
13
+ * Renders the card. The layer places it, keeps it open and keeps its keystrokes and presses from
14
+ * the grid; what it looks like is the renderer's.
15
+ */
16
+ renderCard: (props: CommentCardRenderProps) => React.ReactNode;
17
+ /**
18
+ * The task pane that lists the sheet's threads. While it is the active pane the cards are shown
19
+ * there and this layer shows none.
20
+ * @defaultValue 'comments'
21
+ */
22
+ paneKey?: string;
23
+ /** Gap (px) between the cell's right edge and the card. @defaultValue 18 */
24
+ offset?: number;
25
+ /** Dwell (ms) on a thread's cell before its card shows. @defaultValue 300 */
26
+ openDelay?: number;
27
+ /** Grace (ms) after leaving the cell and its card before the card hides. @defaultValue 250 */
28
+ closeDelay?: number;
29
+ }
30
+ /**
31
+ * The **comment card** beside a cell — a {@link RangeFloatLayer} showing the thread of the cell the
32
+ * pointer rests on, and the card a command asked for (`requestCommentCard`): a draft on a
33
+ * cell with no thread, or the thread a command went to. Selecting a cell shows nothing by itself,
34
+ * as in Excel.
35
+ *
36
+ * @remarks
37
+ * A note has a box of its own and is not shown here. The card of a requested cell stays until the
38
+ * selection leaves the cell or the card is dismissed. The card is a `'focus'` float: while it holds the
39
+ * caret it stays on its thread whatever the pointer does, Escape or a press outside it closes it (focus
40
+ * back to the grid), and none of its events reach the grid.
41
+ */
42
+ export declare const CommentCardLayer: React.MemoExoticComponent<(props: CommentCardLayerProps) => React.JSX.Element>;
43
+ //# sourceMappingURL=CommentCardLayer.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface CommentsLayerProps extends LayerProps {
5
+ /** Class for the layer (devtools identification). */
6
+ className?: string;
7
+ /** Style for the indicators host box. */
8
+ style?: React.CSSProperties;
9
+ /** The sheet whose comments are indicated. */
10
+ sheet: IWorksheet;
11
+ /** Size (px, unzoomed) of the corner indicator. @defaultValue 7 */
12
+ markSize?: number;
13
+ /** Dwell (ms) on a note's cell before its box shows. @defaultValue 300 */
14
+ openDelay?: number;
15
+ /** Grace (ms) after leaving the cell and its box before the box hides. @defaultValue 150 */
16
+ closeDelay?: number;
17
+ }
18
+ /**
19
+ * The sheet's **comments** on the grid: the corner indicator on every commented cell in view, the
20
+ * box of a note while the pointer rests on its cell, and the leader line from a note's cell to its
21
+ * box for every box on the sheet.
22
+ *
23
+ * @remarks
24
+ * The indicators are {@link CellTileDiv} snapshots that survive scroll, colored by what the cell
25
+ * carries: a note, a thread, or a resolved thread. They are a property of the cell and not of its
26
+ * value, which is why they are not the cell renderer's: an empty cell can carry a note.
27
+ *
28
+ * The box itself is the note's movable and is drawn by the movable layer with the regular handles.
29
+ * This layer only says which box the pointer is on — through the surface's `movable-hover` state,
30
+ * after the dwell — and keeps saying so while the pointer is on the cell, the box or the leader
31
+ * between them. Clicking the box selects it, and a selected box stays whether the pointer is on it
32
+ * or not.
33
+ */
34
+ export declare const CommentsLayer: React.MemoExoticComponent<(props: CommentsLayerProps) => React.JSX.Element | null>;
35
+ //# sourceMappingURL=CommentsLayer.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ISheet } from '@sheetxl/sdk';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
3
  import { LayerProps } from '@sheetxl/grid-react';
4
4
  export interface ConditionalBarLayerProps extends LayerProps {
5
5
  /** Class for the layer (devtools identification). */
@@ -7,7 +7,7 @@ export interface ConditionalBarLayerProps extends LayerProps {
7
7
  /** Style for the bars host box. */
8
8
  style?: React.CSSProperties;
9
9
  /** The sheet whose conditional data bars are drawn. */
10
- sheet: ISheet;
10
+ sheet: IWorksheet;
11
11
  /**
12
12
  * Margin (px, unzoomed) between the cell's edges and the bar, on ALL FOUR sides.
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IStyle, IConditionalFormat } from '@sheetxl/sdk';
1
+ import { ICellStyle, IConditionalFormat } from '@sheetxl/sdk';
2
2
  /**
3
3
  * One icon of a conditional-format icon set: which shape to draw and what to tint it.
4
4
  */
@@ -47,11 +47,11 @@ export type ConditionalIconTone = keyof typeof Tone;
47
47
  * `set` is asked per cell rather than per rule because a rule may borrow each band's icon from a
48
48
  * different set — see `IConditionalFormat.IconSetDecoration`.
49
49
  */
50
- export declare const getConditionalIcon: (set: IStyle.IconSet, index: number) => ConditionalIconSpec | null;
50
+ export declare const getConditionalIcon: (set: ICellStyle.IconSet, index: number) => ConditionalIconSpec | null;
51
51
  /**
52
52
  * Returns every icon of a built-in set, band 0 first — for a picker previewing the set.
53
53
  */
54
- export declare const getConditionalIconSet: (set: IStyle.IconSet) => readonly ConditionalIconSpec[];
54
+ export declare const getConditionalIconSet: (set: ICellStyle.IconSet) => readonly ConditionalIconSpec[];
55
55
  /**
56
56
  * The icon each band of a rule draws — the set's own, or the band's override — lowest band first.
57
57
  *
@@ -78,7 +78,7 @@ export declare const describeConditionalIcon: (spec: ConditionalIconSpec) => {
78
78
  */
79
79
  export interface ConditionalIconCatalogEntry {
80
80
  /** The set the icon is borrowed from — what `IConditionalFormat.IconSet.icon` holds. */
81
- set: IStyle.IconSet;
81
+ set: ICellStyle.IconSet;
82
82
  /** The icon's index within that set. */
83
83
  id: number;
84
84
  spec: ConditionalIconSpec;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ISheet } from '@sheetxl/sdk';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
3
  import { LayerProps } from '@sheetxl/grid-react';
4
4
  export interface ConditionalIconsLayerProps extends LayerProps {
5
5
  /** Class for the layer (devtools identification). */
@@ -7,7 +7,7 @@ export interface ConditionalIconsLayerProps extends LayerProps {
7
7
  /** Style for the icons host box. */
8
8
  style?: React.CSSProperties;
9
9
  /** The sheet whose conditional icon sets are drawn. */
10
- sheet: ISheet;
10
+ sheet: IWorksheet;
11
11
  }
12
12
  /**
13
13
  * The sheet's **conditional icons** — the in-cell marks an `iconSet` rule draws.
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { ISheet } from '@sheetxl/sdk';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
3
  import { LayerProps } from '@sheetxl/grid-react';
4
4
  import { SheetLocation } from '../sheet';
5
5
  export interface ContextMenuLayerProps extends LayerProps {
6
6
  /** The sheet — the keyboard path anchors the menu to its selected cell (`getSelection().getCoords().cell`). */
7
- sheet: ISheet;
7
+ sheet: IWorksheet;
8
8
  /**
9
9
  * Returns the coordinates of the cell where the context menu was requested.
10
10
  */