@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,14 @@
1
+ /**
2
+ * What a surface CALLS each fill type.
3
+ *
4
+ * @remarks
5
+ * `AutoFill.Presets` is the registry and says what each preset does; this says what it is named, so
6
+ * a fill menu, a Series dialog, or a caller's own picker all read the same word for `date.weekdays`.
7
+ * Keyed by preset id rather than by filler, because a filler appears under several presets —
8
+ * `linear` and `linear.trend` are the same filler and are not the same entry.
9
+ *
10
+ * Where those entries SIT — their order, and which of them a given surface even lists — is that
11
+ * surface's own business and lives with it.
12
+ */
13
+ export declare const AUTO_FILL_PRESET_LABELS: Readonly<Record<string, string>>;
14
+ //# sourceMappingURL=AutoFillPresets.d.ts.map
@@ -0,0 +1,36 @@
1
+ import { IRange, IWorksheet } from '@sheetxl/sdk';
2
+ import { IReactNotifier } from '@sheetxl/utils-react';
3
+ import { CommandContext } from '../frame';
4
+ /**
5
+ * The drag {@link createFillMenu} builds a menu for.
6
+ */
7
+ export interface CreateFillMenuOptions {
8
+ sheet: IWorksheet;
9
+ /** The cells the fill reads — the selection the handle was dragged from. */
10
+ template: IRange.Coords;
11
+ /** The cells the fill covers, the template included — where the handle was released. */
12
+ destination: IRange.Coords;
13
+ /** Reports a rejected fill, shows the busy state, and opens the Series dialog. */
14
+ notifier?: IReactNotifier;
15
+ /**
16
+ * The drag is over: a fill ran, the Series dialog closed, or the menu closed without choosing.
17
+ * Called once — the grid drops the drag's dashed preview here.
18
+ */
19
+ onSettled?: () => void;
20
+ }
21
+ /**
22
+ * The fill menu's context for a right-drag of the fill handle from `template` to `destination` —
23
+ * Excel's menu of Copy Cells / Fill Series / Fill Formatting Only / … / Series…
24
+ *
25
+ * @returns `null` where there is nothing to offer: the destination does not extend the template (a
26
+ * release on the handle's own corner, or a shrink), in which case the drag is best treated as a
27
+ * left-drag — a shrink clears whichever way the button was held.
28
+ *
29
+ * @remarks
30
+ * Every question the menu has is answered here so the menu itself renders labels and calls back:
31
+ * which types apply is {@link ICellRange.getDefaultAutoFillCriteria} asked in its drag form, and a
32
+ * chosen entry runs through the same `autoFill` a left-drag runs, with the destination selected the
33
+ * same way afterwards.
34
+ */
35
+ export declare function createFillMenu(options: CreateFillMenuOptions): CommandContext.FillMenu | null;
36
+ //# sourceMappingURL=FillMenu.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { IRange, IAutoFill, ICellRange, IWorksheet } from '@sheetxl/sdk';
2
+ import { IReactNotifier } from '@sheetxl/utils-react';
3
+ import { CommandContext } from '../frame';
4
+ /**
5
+ * What the Series dialog is opened on — see {@link openFillSeries}.
6
+ */
7
+ export interface OpenFillSeriesOptions {
8
+ sheet: IWorksheet;
9
+ /** Shows the dialog; nothing opens without one. */
10
+ notifier?: IReactNotifier;
11
+ /** The range the dialog reports as the selection. */
12
+ range: ICellRange;
13
+ /**
14
+ * The fill each direction implies — what the dialog offers, resolves and previews per radio. A
15
+ * direction that is absent, or `null`, has no room and its radio is disabled.
16
+ */
17
+ byDirection: ReadonlyMap<IRange.Direction, IAutoFill.DefaultCriteria | null>;
18
+ /** The direction to open on. */
19
+ direction: IRange.Direction;
20
+ /** The {@link IAutoFill.Preset.id} to open on. */
21
+ presetId: string;
22
+ /** The dialog closed — after its fill ran, or without one. */
23
+ onClosed?: () => void;
24
+ }
25
+ /**
26
+ * Open the Series dialog and run the fill it answers with.
27
+ *
28
+ * @remarks
29
+ * Two surfaces reach the dialog: the `fillSeries` command, which infers the template and both
30
+ * directions from the selection, and the fill menu's `Series…`, where a drag has already said which
31
+ * cells are read, which are covered and which way — so only that direction is offered. Both hand the
32
+ * criteria over here and share everything else: the context the dialog asks its questions of, and
33
+ * what happens when it answers.
34
+ */
35
+ export declare function openFillSeries(options: OpenFillSeriesOptions): void;
36
+ /** The `autoFill` options a dialog result names — resolving the preset the surface named it by. */
37
+ export declare function fillOptionsOf(options: CommandContext.FillSeriesOptions): ICellRange.AutoFillOptions;
38
+ //# sourceMappingURL=FillSeries.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './AutoFillPresets';
2
+ export * from './FillSeries';
3
+ export * from './FillMenu';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,15 @@
1
1
  import { default as React } from 'react';
2
- import { IBorder } from '@sheetxl/sdk';
2
+ import { IRange, IBorders } from '@sheetxl/sdk';
3
+ import { UseBordersMode, BorderNormalLine } from './useBorders';
3
4
  export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  /**
5
6
  * Returns a border for the given value and index.
6
7
  */
7
- getBorderAt?: (value: any, index: number) => IBorder;
8
+ getBorderAt?: (value: any, index: number) => IBorders;
9
+ /**
10
+ * {@inheritDoc UseBorderOptions.getMergeAt}
11
+ */
12
+ getMergeAt?: (value: any, index: number) => IRange.Coords | null;
8
13
  rowCount?: number;
9
14
  columnCount?: number;
10
15
  /**
@@ -22,6 +27,18 @@ export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivE
22
27
  */
23
28
  height?: number;
24
29
  forceThinBorder?: boolean;
30
+ /**
31
+ * {@inheritDoc UseBorderOptions.mode}
32
+ */
33
+ mode?: UseBordersMode;
34
+ /**
35
+ * {@inheritDoc UseBorderOptions.normalRows}
36
+ */
37
+ normalRows?: BorderNormalLine | null;
38
+ /**
39
+ * {@inheritDoc UseBorderOptions.normalColumns}
40
+ */
41
+ normalColumns?: BorderNormalLine | null;
25
42
  }
26
43
  /**
27
44
  * Render a grid border using a border property as an input. Useful
@@ -1,16 +1,21 @@
1
1
  import { default as React } from 'react';
2
- import { IBorder, IRange, ICell } from '@sheetxl/sdk';
2
+ import { IBorders, IRange, ICell } from '@sheetxl/sdk';
3
+ import { ReactUtils } from '@sheetxl/utils-react';
3
4
  import { IGridPane, IGridMetrics } from '@sheetxl/grid-react';
4
5
  export interface BorderRenderProps {
5
- stroke: IBorder.IStroke;
6
+ stroke: IBorders.IStroke;
6
7
  range: IRange.Coords;
8
+ /**
9
+ * `[x, y, x2, y2]`. For a diagonal these are its two corners.
10
+ */
7
11
  points: number[];
8
12
  key: string;
9
13
  /**
10
14
  * Which cell edge this stroke belongs to. Trailing edges (right/bottom) are
11
15
  * shifted to sit after the divider; leading edges (left/top) sit before it.
16
+ * {@link IBorders.Edge.DiagonalUp} and {@link IBorders.Edge.DiagonalDown} run corner to corner.
12
17
  */
13
- edge?: IBorder.Edge;
18
+ edge?: IBorders.Edge;
14
19
  /**
15
20
  * Int Hint to tell the border the direction that it is rendering
16
21
  */
@@ -27,8 +32,8 @@ export interface BorderRenderProps {
27
32
  * Used for generating corners for wide borders. If not provided then borders will simply overlap.
28
33
  */
29
34
  intersections?: {
30
- stroke: IBorder.IStroke;
31
- edge?: IBorder.Edge;
35
+ stroke: IBorders.IStroke;
36
+ edge?: IBorders.Edge;
32
37
  range: IRange.Coords;
33
38
  }[];
34
39
  /**
@@ -41,6 +46,47 @@ export interface BorderRenderProps {
41
46
  */
42
47
  endExtend?: number;
43
48
  }
49
+ /**
50
+ * Which lines a {@link useBorders} layer draws.
51
+ *
52
+ * - `direct`: the borders cells carry, plus {@link UseBorderOptions.normalRows} /
53
+ * {@link UseBorderOptions.normalColumns} as the Normal style's border — a border on every cell,
54
+ * blank ones included, so it draws above the fills like any other border.
55
+ * - `normal`: only the normal lines, below the cell fills so a fill hides them — the gridlines.
56
+ *
57
+ * Either way a normal line is drawn only where no cell border owns the edge.
58
+ */
59
+ export type UseBordersMode = 'direct' | 'normal';
60
+ /**
61
+ * One axis' line for a {@link UseBordersMode | normal} layer.
62
+ */
63
+ export interface BorderNormalLine {
64
+ /** CSS color. */
65
+ color: string;
66
+ /**
67
+ * Width in device pixels.
68
+ *
69
+ * @defaultValue 1
70
+ */
71
+ width?: number;
72
+ /** Dash pattern in CSS px; solid when omitted. */
73
+ dashArray?: readonly number[] | null;
74
+ /** Two parallel lines, open where they cross. */
75
+ isDouble?: boolean;
76
+ /**
77
+ * The side of the boundary an even width grows toward.
78
+ *
79
+ * @defaultValue 'leading'
80
+ */
81
+ edge?: ReactUtils.EdgeKind;
82
+ }
83
+ /**
84
+ * The {@link BorderNormalLine} that draws `stroke`, or `null` for none.
85
+ *
86
+ * @param stroke The stroke.
87
+ * @param edge The edge the stroke comes from; decides which way an even width grows.
88
+ */
89
+ export declare const toBorderNormalLine: (stroke: IBorders.IStroke | null | undefined, edge: IBorders.Edge) => BorderNormalLine | null;
44
90
  export interface UseBorderOptions {
45
91
  /**
46
92
  * Returns a list of visible cells.
@@ -58,9 +104,17 @@ export interface UseBorderOptions {
58
104
  *
59
105
  * @param value - ?
60
106
  * @param index - ?
61
- * @returns The IBorder at the location.
107
+ * @returns The IBorders at the location.
108
+ */
109
+ getBorderAt?: (value: any, index: number) => IBorders;
110
+ /**
111
+ * The merged range a cell belongs to, or `null` when it is not merged. A merged cell's diagonals
112
+ * run corner to corner across the whole merge. When omitted every cell is its own box.
113
+ *
114
+ * @param value The value returned from `getVisibleCells`.
115
+ * @param index The index of that value.
62
116
  */
63
- getBorderAt?: (value: any, index: number) => IBorder;
117
+ getMergeAt?: (value: any, index: number) => IRange.Coords | null;
64
118
  /**
65
119
  * Allow users to customize border rendering.
66
120
  * Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).
@@ -72,6 +126,20 @@ export interface UseBorderOptions {
72
126
  * Use for previews.
73
127
  */
74
128
  forceThinBorder?: boolean;
129
+ /**
130
+ * @defaultValue 'direct'
131
+ */
132
+ mode?: UseBordersMode;
133
+ /**
134
+ * The horizontal line drawn where no cell border owns the boundary (see {@link UseBordersMode}).
135
+ * `null` draws none.
136
+ */
137
+ normalRows?: BorderNormalLine | null;
138
+ /**
139
+ * The vertical line drawn where no cell border owns the boundary (see {@link UseBordersMode}).
140
+ * `null` draws none.
141
+ */
142
+ normalColumns?: BorderNormalLine | null;
75
143
  }
76
144
  export interface UseBorderResults {
77
145
  /**
@@ -82,6 +150,11 @@ export interface UseBorderResults {
82
150
  /**
83
151
  * useBorders
84
152
  * Renders borders by combining individual cells border attributes.
153
+ *
154
+ * @remarks
155
+ * A double is drawn as one solid band with its center cut out by a mask. Each cut runs to the
156
+ * center of the double it meets, so two doubles open into each other where they cross, tee or
157
+ * turn a corner. Strokes that are not double are outside the mask and never cut.
85
158
  */
86
- export declare const useBorders: ({ getBorderAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, }: UseBorderOptions) => UseBorderResults;
159
+ export declare const useBorders: ({ getBorderAt, getMergeAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, mode, normalRows, normalColumns }: UseBorderOptions) => UseBorderResults;
87
160
  //# sourceMappingURL=useBorders.d.ts.map
@@ -21,6 +21,12 @@ export interface CornerTriangleProps extends React.SVGProps<SVGSVGElement> {
21
21
  inset?: number;
22
22
  cellWidth?: number;
23
23
  cellHeight?: number;
24
+ /**
25
+ * `'bubble'` draws a speech-bubble corner, Excel's mark for a threaded comment, in place of the
26
+ * triangle. Top right only.
27
+ * @defaultValue 'triangle'
28
+ */
29
+ shape?: 'triangle' | 'bubble';
24
30
  propsPath?: React.SVGProps<SVGPathElement>;
25
31
  }
26
32
  export declare const CornerTriangle: React.MemoExoticComponent<(props: CornerTriangleProps) => React.JSX.Element>;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ICalculation, ICell } from '@sheetxl/sdk';
2
+ import { ICalculation, ICell, Size } from '@sheetxl/sdk';
3
3
  /**
4
4
  * Props for {@link FormulaCellRenderer}.
5
5
  */
@@ -7,12 +7,14 @@ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivEl
7
7
  /** The formula cell being rendered (styling source: font, alignment, insets). */
8
8
  cell: ICell;
9
9
  /**
10
- * The formula's tokens (`createFormula('=' + cell.getFormulaText(), …).getTokens()`).
10
+ * The formula's tokens (`createFormula(cell.getFormulaText(), …).getTokens()`).
11
11
  * Rendered verbatim after a leading `=`, each span colored by {@link tokenColor} — reference
12
12
  * tokens rotate the shared `--sxl-color-series-*` palette by `referenceIndex`, the SAME hues the
13
13
  * range picker outlines with, so text and rectangle always match.
14
14
  */
15
15
  tokens: readonly ICalculation.FormulaToken[];
16
+ /** The cell's unzoomed size — what the text is placed against (`ICell.getTextPlacement`). */
17
+ size: Size;
16
18
  /** The pane's zoom (the hosting box's bounds are zoomed; fonts must match). */
17
19
  zoom: number;
18
20
  }
@@ -27,7 +29,8 @@ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivEl
27
29
  * aware), so a mode flip re-resolves in pure CSS here too.
28
30
  *
29
31
  * Layout mirrors the plain formula path's rules: forced left alignment, no rotation, no overflow
30
- * past the cell box (clipped by the hosting box), vertical alignment from the cell style.
32
+ * past the cell box (clipped by the hosting box), the vertical position from the SDK placement, and
33
+ * the letter-spacing that paints the text at its measured width.
31
34
  * (2nd pass: hover highlight/eval tooltips like the editor's overlay.)
32
35
  */
33
36
  export declare const FormulaCellRenderer: React.FC<FormulaCellRendererProps>;
@@ -0,0 +1,123 @@
1
+ import { default as React } from 'react';
2
+ import { IRange } from '@sheetxl/sdk';
3
+ /**
4
+ * Props for the button that collapses or expands one row or column group.
5
+ */
6
+ export interface OutlineButtonProps {
7
+ /** Rows or columns. */
8
+ axis: IRange.Axis;
9
+ /** The group's level, from `1`. */
10
+ level: number;
11
+ /** Whether the group's details are collapsed: the button expands it. */
12
+ collapsed: boolean;
13
+ /** The edge of the square the button fills, in pixels. */
14
+ size: number;
15
+ /** A localized description of what a press does. */
16
+ title: string;
17
+ /** Collapses or expands the group. */
18
+ onToggle: () => void;
19
+ /** Whether a press would be refused (the sheet is protected); the button shows it. */
20
+ disabled?: boolean;
21
+ }
22
+ /**
23
+ * Props for one of the level buttons `1`..`n`.
24
+ */
25
+ export interface OutlineLevelButtonProps {
26
+ /** Rows or columns. */
27
+ axis: IRange.Axis;
28
+ /** The level the button shows, from `1`. */
29
+ level: number;
30
+ /**
31
+ * Whether the headers this level reveals are showing somewhere: its button, and every one below
32
+ * it, would show nothing new. The default renderer does not mark these; it sets `data-shown`.
33
+ */
34
+ shown: boolean;
35
+ /** The edge of the square the button fills, in pixels. */
36
+ size: number;
37
+ /** A localized description of what a press does. */
38
+ title: string;
39
+ /** Shows the groups above this level and collapses the rest. */
40
+ onShowLevel: () => void;
41
+ /** Whether a press would be refused (the sheet is protected); the button shows it. */
42
+ disabled?: boolean;
43
+ }
44
+ /**
45
+ * Props for the outline: the row and column gutters and their level buttons.
46
+ *
47
+ * @remarks
48
+ * The HTML attributes (`className`, `style`, …) apply to each of the outline's boxes: both gutters
49
+ * and both level strips. Where they sit in the sheet is not theirs to change.
50
+ */
51
+ export interface OutlineProps extends React.HTMLAttributes<HTMLDivElement> {
52
+ /**
53
+ * Renders a group's collapse / expand button, filling the square it is placed in. Defaults to
54
+ * {@link OutlineButton}.
55
+ */
56
+ renderButton?: (props: OutlineButtonProps) => React.ReactNode;
57
+ /**
58
+ * Renders a level button, filling the square it is placed in. Defaults to
59
+ * {@link OutlineLevelButton}.
60
+ */
61
+ renderLevelButton?: (props: OutlineLevelButtonProps) => React.ReactNode;
62
+ /**
63
+ * The size of one level's lane across the gutter, in pixels at 100% zoom. A button fills its lane,
64
+ * less {@link laneGap}.
65
+ *
66
+ * @defaultValue 18
67
+ *
68
+ * @remarks
69
+ * The default button is Excel desktop's 17 pixels. Keep the button odd (`laneSize - laneGap`) and
70
+ * the `+` or `−` sits on its center pixel.
71
+ */
72
+ laneSize?: number;
73
+ /**
74
+ * The space around the buttons, in pixels: between neighbors, and before the first and after the
75
+ * last. Not scaled by zoom.
76
+ *
77
+ * @defaultValue 1
78
+ */
79
+ laneGap?: number;
80
+ /**
81
+ * Space between a bracket's end and its button, in pixels.
82
+ *
83
+ * @defaultValue 0
84
+ */
85
+ bracketGap?: number;
86
+ }
87
+ /**
88
+ * The edge of an outline button: it fills its lane, less the gap to its neighbor.
89
+ */
90
+ export declare const outlineButtonSize: (laneSize: number, laneGap: number) => number;
91
+ /**
92
+ * Props for {@link OutlineGlyph}.
93
+ */
94
+ export interface OutlineGlyphProps {
95
+ /** `+` when collapsed, `−` when not. */
96
+ collapsed: boolean;
97
+ /** The glyph's box, in pixels; odd keeps it symmetric. */
98
+ size: number;
99
+ }
100
+ /**
101
+ * The `+` or `−` of an outline button, drawn on whole pixels with a one-pixel stroke.
102
+ */
103
+ export declare const OutlineGlyph: React.MemoExoticComponent<(props: OutlineGlyphProps) => React.JSX.Element>;
104
+ /**
105
+ * The edge and fill of a level button: those of the sheet's corner select-all knob when the sheet is
106
+ * not selected, resolved on the header surface the strip sits on.
107
+ */
108
+ export declare const outlineLevelColors: React.CSSProperties;
109
+ /**
110
+ * The text of a level button: the digit centered in a box of `size` (border included).
111
+ */
112
+ export declare const outlineLevelTextStyle: (size: number) => React.CSSProperties;
113
+ /**
114
+ * The chromeless collapse / expand button: a square with a `+` or a `−`.
115
+ */
116
+ export declare const OutlineButton: React.MemoExoticComponent<(props: OutlineButtonProps) => React.JSX.Element>;
117
+ /**
118
+ * The chromeless level button: a square with its level number, in the corner knob's colors.
119
+ */
120
+ export declare const OutlineLevelButton: React.MemoExoticComponent<(props: OutlineLevelButtonProps) => React.JSX.Element>;
121
+ export declare const renderOutlineButton: (props: OutlineButtonProps) => React.ReactNode;
122
+ export declare const renderOutlineLevelButton: (props: OutlineLevelButtonProps) => React.ReactNode;
123
+ //# sourceMappingURL=OutlineButton.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ICell, IStyle, ITheme } from '@sheetxl/sdk';
2
+ import { ICell, ICellStyle, ITheme } from '@sheetxl/sdk';
3
3
  import { CellRendererProps } from '@sheetxl/grid-react';
4
4
  export interface SheetCellRendererProps extends CellRendererProps<ICell> {
5
5
  /**
@@ -35,7 +35,7 @@ export interface SheetCellRendererProps extends CellRendererProps<ICell> {
35
35
  * An optimization that tells the render all of the styling is normal. And doesn't need to
36
36
  * be overwritten.
37
37
  */
38
- normalStyle?: IStyle;
38
+ normalStyle?: ICellStyle;
39
39
  /**
40
40
  * Callback for when a link has been clicked.
41
41
  *
@@ -11,6 +11,11 @@ export interface SheetHeaderRendererProps extends CellRendererProps {
11
11
  headerText?: (index: number) => string;
12
12
  isSelected?: (index: number) => boolean;
13
13
  isSelectedAll?: (index: number) => boolean;
14
+ /**
15
+ * Whether a filter holds a condition over this header ({@link ISheetHeader.getFilteredRanges}):
16
+ * a row header draws it as filtered, as Excel's blue row numbers.
17
+ */
18
+ isFiltered?: (index: number) => boolean;
14
19
  /**
15
20
  * This is not the default grid zoom this is just for rendering.
16
21
  * @defaultValue 100
@@ -0,0 +1,57 @@
1
+ import { default as React } from 'react';
2
+ import { ICellStyle, ICell } from '@sheetxl/sdk';
3
+ import { StaticBorderRendererProps } from '../border';
4
+ export interface StaticCellRendererProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * The text to render. Ignored when {@link cell} is given (the cell's own display text is used).
7
+ */
8
+ value?: string;
9
+ /**
10
+ * The style to preview, applied on top of the cell {@link createCell} mints.
11
+ */
12
+ cellStyle?: ICellStyle.Update;
13
+ /**
14
+ * Mints the cell that backs the preview — a workbook-attached factory, so theme colors, named
15
+ * styles and the number format resolve exactly as they would in the grid.
16
+ *
17
+ * @remarks
18
+ * Usually `(update) => sheet.createCell(update)`. Without one nothing is rendered but the frame:
19
+ * a style has no meaning detached from the workbook that defines its theme.
20
+ */
21
+ createCell?: (update: ICell.Update) => ICell | null;
22
+ /**
23
+ * Render this ALREADY-BUILT cell instead of minting one — what the format panels preview (the
24
+ * live selected cell), where `createCell` would only re-derive what the caller already holds.
25
+ *
26
+ * @remarks
27
+ * Wins over `value`/`cellStyle`/`createCell` when present.
28
+ */
29
+ cell?: ICell | null;
30
+ /**
31
+ * Props forwarded to the border renderer that draws the cell's edges.
32
+ */
33
+ propsBorder?: Partial<StaticBorderRendererProps>;
34
+ /**
35
+ * Dim the preview, matching a disabled control it labels.
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Ref to the root element (React 19 ref-as-prop).
40
+ */
41
+ ref?: React.Ref<HTMLDivElement>;
42
+ }
43
+ /**
44
+ * A single cell rendered as plain DOM from the model's own CSS — the swatch behind the cell-styles
45
+ * gallery and the format panels' preview.
46
+ *
47
+ * @remarks
48
+ * This is a PREVIEW, not the grid renderer: one cell, no measurement, no editing, no overflow into
49
+ * neighbors. It reads fill / font / border / alignment off an `ICellStyle` and paints them directly, so
50
+ * it stays truthful to the workbook's theme without paying for a grid.
51
+ *
52
+ * It adopts the GRID surface (`data-sxl-theme-surface="grid"`) and the grid's light/dark mode even
53
+ * when it renders inside app chrome — a preview of a cell has to resolve `auto` colors the way that
54
+ * cell will, not the way the toolbar around it does.
55
+ */
56
+ export declare const StaticCellRenderer: React.MemoExoticComponent<(props: StaticCellRendererProps) => React.JSX.Element>;
57
+ //# sourceMappingURL=StaticCellRenderer.d.ts.map
@@ -1,7 +1,9 @@
1
1
  export * from './SheetCellRenderer';
2
+ export * from './StaticCellRenderer';
2
3
  export * from './FormulaCellRenderer';
3
4
  export * from './useFormulaViewAnchor';
4
5
  export * from './SheetHeaderRenderer';
5
6
  export * from './ColumnButton';
7
+ export * from './OutlineButton';
6
8
  export * from './CornerTriangle';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { RangeCoords } from '@sheetxl/utils';
2
- import { ICalculation, ICell, ISheet } from '@sheetxl/sdk';
2
+ import { ICalculation, ICell, IWorksheet } from '@sheetxl/sdk';
3
3
  /**
4
4
  * The formula-view anchor: the selection anchor's formula, tokenized, when the view is showing
5
5
  * formulas. `null` whenever there is nothing to spotlight (not in formula view, anchor isn't a
@@ -11,7 +11,7 @@ export interface FormulaViewAnchor {
11
11
  /** The anchor cell itself (styling source for the overlay renderer). */
12
12
  cell: ICell;
13
13
  /**
14
- * The formula's tokens (resilient tokenizer over `'=' + getFormulaText()`), index-aligned with
14
+ * The formula's tokens (resilient tokenizer over `getFormulaText()`), index-aligned with
15
15
  * {@link ranges} via each token's `referenceIndex`.
16
16
  */
17
17
  tokens: readonly ICalculation.FormulaToken[];
@@ -38,5 +38,5 @@ export interface FormulaViewAnchor {
38
38
  * (scroll) never re-tokenize; `token` lets a caller bust it when cell CONTENT changed (e.g. the
39
39
  * cells layer's visible-range cache token).
40
40
  */
41
- export declare const useFormulaViewAnchor: (sheet: ISheet, showFormulas: boolean, token?: unknown) => FormulaViewAnchor | null;
41
+ export declare const useFormulaViewAnchor: (sheet: IWorksheet, showFormulas: boolean, token?: unknown) => FormulaViewAnchor | null;
42
42
  //# sourceMappingURL=useFormulaViewAnchor.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { Command } from '@sheetxl/utils-react';
2
+ import { MovableKindCommandData } from '../movable';
3
+ /**
4
+ * The chart kind's commands, for the active chart. Chrome is the `chart` catalog.
5
+ *
6
+ * Excel's Chart Design tab, as far as the model goes: `chartChangeType` takes what the Insert Chart
7
+ * gallery states (a descriptor, or a type name) and draws every series as that type; `chartSwitchRowColumn`
8
+ * plots the other way; `chartSelectData` takes an address, or asks for one, and plots those cells;
9
+ * `chartAddElement` takes an element by VBA's name (`legendTop`), and the toggles are the Add Chart
10
+ * Element checkboxes, each with the element's state. Quick layouts, chart styles and colors wait on
11
+ * the style parts (PLAN-CHART Phase 4). Each setter is one step to undo on its own; the middleware
12
+ * reports an error and arms repeat.
13
+ */
14
+ export declare const contributeChartCommands: Command.DynamicCommandContributor<MovableKindCommandData>;
15
+ //# sourceMappingURL=ChartCommands.d.ts.map
@@ -1,17 +1,25 @@
1
1
  import { default as React } from 'react';
2
2
  import { IChart } from '@sheetxl/sdk';
3
3
  import { MovableElementProps } from '../movable';
4
+ import { IChartElement } from './ChartElement';
5
+ export { ChartElement, nextSelected, type ChartElementProps, type ChartElementAttributes, type ChartElementPress, type IChartElement } from './ChartElement';
4
6
  export interface ChartEditorAttributes {
5
7
  isChartEditor: () => true;
6
8
  }
7
- export interface IChartEditorElement extends HTMLDivElement, ChartEditorAttributes {
9
+ export interface IChartEditorElement extends IChartElement, ChartEditorAttributes {
8
10
  }
9
11
  export interface ChartEditorProps extends MovableElementProps {
10
12
  chart: IChart;
11
13
  ref?: React.Ref<IChartEditorElement>;
12
14
  }
13
15
  /**
14
- * Placeholder for chart editors.
16
+ * Paints a chart in its movable's frame: a {@link ChartElement} that takes the frame's zoom and
17
+ * shows the frame's states (disabled, dragging).
18
+ *
19
+ * @remarks
20
+ * A press inside the chart selects what is under the pointer in the sheet view's chart element
21
+ * selection, Excel's way (the series first, its point next), and is the element's: the frame
22
+ * drags the chart from its chart area alone, as Excel does.
15
23
  */
16
24
  export declare const ChartEditor: React.NamedExoticComponent<Omit<ChartEditorProps, "ref"> & React.RefAttributes<IChartEditorElement>>;
17
25
  //# sourceMappingURL=ChartEditor.d.ts.map