@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,6 +1,6 @@
1
- import { IRange, ISheet } from '@sheetxl/sdk';
1
+ import { IRange, IWorksheet } from '@sheetxl/sdk';
2
2
  /**
3
- * The cell a sheet's status bar names for its circular references — Excel's
3
+ * The cell a sheet's status bar names for its UNRESOLVED circular references — Excel's
4
4
  * `Worksheet.CircularReference`, one cell — or `null` when the sheet has none.
5
5
  *
6
6
  * @remarks
@@ -8,8 +8,16 @@ import { IRange, ISheet } from '@sheetxl/sdk';
8
8
  * regions (engine-merged blocks, so a 1000-row downstream block costs one region). A sheet that
9
9
  * only READS a cycle (every member is on another sheet) answers that cycle's representative,
10
10
  * scoped to its own sheet, so the status bar can still point at the fix.
11
+ *
12
+ * A cycle that ITERATED is skipped, converged or stopped on the cap alike: iterative calculation
13
+ * makes a cycle a computation rather than a mistake, and its result is what the user turned the
14
+ * setting on for. Excel is the same and this is the measurement it comes from — its
15
+ * `Worksheet.CircularReference` answers `(none)` while iterating and names the cell again the
16
+ * moment `Iteration` is turned off (DESIGN-CIRCULAR-CALC §2.4). The cell keeps its marker either
17
+ * way, so an iterated cycle stays discoverable where it is; what goes quiet is the workbook-level
18
+ * alarm, which is the same line `ICell.getErrors()` draws (§7.3).
11
19
  */
12
- export declare const findSheetCircularReference: (sheet: ISheet) => IRange.CellCoords | null;
20
+ export declare const findSheetCircularReference: (sheet: IWorksheet) => IRange.CellCoords | null;
13
21
  /**
14
22
  * A cell address the way a formula on `sheetName` would write it: bare on its own sheet
15
23
  * (`A1`), sheet-qualified elsewhere (`'Other Sheet'!A1`).
@@ -22,5 +30,5 @@ export declare const formatCellAddress: (coords: IRange.CellCoords, sheetName: s
22
30
  * The "go to" behind a circular tooltip's link and the status bar's readout. A `scope` this
23
31
  * workbook does not know (a cycle member in a named formula's body) selects nothing.
24
32
  */
25
- export declare const selectCell: (sheet: ISheet, target: IRange.CellCoords) => Promise<unknown> | null;
33
+ export declare const selectCell: (sheet: IWorksheet, target: IRange.CellCoords) => Promise<unknown> | null;
26
34
  //# sourceMappingURL=circularReferences.d.ts.map
@@ -1,8 +1,11 @@
1
- export type * from './ISheetElement';
2
- export * from './SheetElement';
1
+ export type * from './IWorksheetElement';
2
+ export * from './WorksheetElement';
3
+ export * from './OpaqueSheetElement';
4
+ export * from './SheetPanels';
5
+ export * from './SheetKindIcon';
3
6
  export * from './SheetScrollbar';
4
7
  export * from './SheetCommands';
5
- export * from './ConditionalFormatPresets';
6
8
  export * from './SheetCommandProvider';
7
9
  export * from './circularReferences';
10
+ export * from './useCycleHighlight';
8
11
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { ICalculation, IWorksheet } from '@sheetxl/sdk';
2
+ /**
3
+ * Outlines a reference cycle's MEMBERS on the grid for as long as the caller is mounted — the
4
+ * highlight behind a circular tooltip.
5
+ *
6
+ * @remarks
7
+ * The cycle's `getMembers()` go onto the reference-mode bus as a detached selection with no active
8
+ * index, the same shape the formula-view fallback publishes for a formula's references
9
+ * (`SheetReferenceLayer`), so the members are outlined by the machinery that already colors
10
+ * references — and the tooltip's addresses, colored by the same index, line up with them.
11
+ *
12
+ * Marked `readOnly`, because these outlines are an annotation: there is no text behind them for a
13
+ * drag to write back to.
14
+ *
15
+ * **Only when nobody owns the bus.** An edit or a pick in progress always wins — the highlight is
16
+ * not published at all while one is live, and a producer that starts DURING a hover replaces it
17
+ * (the cleanup then finds someone else's state and leaves it alone, rather than clearing a live
18
+ * edit's references out from under it). A cycle with no live members publishes nothing.
19
+ */
20
+ export declare const useCycleHighlight: (sheet: IWorksheet | null, cycle: ICalculation.ICircularReference | null | undefined) => void;
21
+ //# sourceMappingURL=useCycleHighlight.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Command } from '@sheetxl/utils-react';
2
+ import { MovableKindCommandData } from '../movable';
3
+ /**
4
+ * The slicer kind's commands, for the active slicer. Chrome is the `slicer` catalog.
5
+ *
6
+ * `formatSlicerStyle` takes a style name; its state is the slicer's style, and its context hands a
7
+ * gallery the slicer and the workbook's styles to draw previews with.
8
+ */
9
+ export declare const contributeSlicerCommands: Command.DynamicCommandContributor<MovableKindCommandData>;
10
+ //# sourceMappingURL=SlicerCommands.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { ISlicer } from '@sheetxl/sdk';
2
3
  import { MovableElementProps } from '../movable';
3
4
  export interface SlicerEditorAttributes {
4
5
  isSlicerEditor: () => true;
@@ -6,11 +7,16 @@ export interface SlicerEditorAttributes {
6
7
  export interface ISlicerEditorElement extends HTMLDivElement, SlicerEditorAttributes {
7
8
  }
8
9
  export interface SlicerEditorProps extends MovableElementProps {
9
- slicer: any;
10
+ slicer: ISlicer;
10
11
  ref?: React.Ref<ISlicerEditorElement>;
11
12
  }
12
13
  /**
13
- * Placeholder for chart editors.
14
+ * Draws a slicer: its caption, and a button for each item that filters the column.
15
+ *
16
+ * @remarks
17
+ * A press on an item filters and never drags; the caption bar and the frame's edge drag, as in
18
+ * Excel. A click selects the item alone, Ctrl+click toggles it, Shift+click selects a run of
19
+ * items, and with multi-select on a plain click toggles.
14
20
  */
15
21
  export declare const SlicerEditor: React.NamedExoticComponent<Omit<SlicerEditorProps, "ref"> & React.RefAttributes<ISlicerEditorElement>>;
16
22
  //# sourceMappingURL=SlicerEditor.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { MovableRendererModule } from '../movable/MovableRenderers';
2
+ /**
3
+ * The slicer kind, as the renderer registry loads it: one module, so a failed fetch can be
4
+ * imported again whole.
5
+ */
6
+ export declare const SlicerKind: MovableRendererModule;
7
+ //# sourceMappingURL=SlicerKind.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { IStyleCollection } from '@sheetxl/sdk';
3
+ export interface SlicerStylePreviewProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** The slicer style's name. */
5
+ styleName: string;
6
+ /** The workbook's styles: they hold the style, and their theme resolves its colors. */
7
+ styles: IStyleCollection | null;
8
+ /** @defaultValue 56 */
9
+ width?: number;
10
+ /** @defaultValue 60 */
11
+ height?: number;
12
+ }
13
+ /**
14
+ * A small picture of a slicer in a style: its frame, a header and four items in their states.
15
+ * What a style gallery shows for each style.
16
+ */
17
+ export declare const SlicerStylePreview: React.MemoExoticComponent<(props: SlicerStylePreviewProps) => React.ReactElement>;
18
+ //# sourceMappingURL=SlicerStylePreview.d.ts.map
@@ -1,2 +1,3 @@
1
- export * from './SlicerEditor';
1
+ export * from './slicerStyles';
2
+ export * from './SlicerStylePreview';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ import { IStyleCollection, ISlicerStyle, ICellStyle } from '@sheetxl/sdk';
3
+ /** The slicer styles' names, grouped as a style gallery lists them. */
4
+ export interface SlicerStyleNames {
5
+ /** The document's own styles, by name. A customized built-in stays in its built-in group. */
6
+ custom: string[];
7
+ light: string[];
8
+ other: string[];
9
+ dark: string[];
10
+ }
11
+ /**
12
+ * Returns the workbook's slicer styles' names, grouped as a style gallery lists them.
13
+ *
14
+ * @param styles The workbook's styles; without them every group is empty.
15
+ */
16
+ export declare const getSlicerStyleNames: (styles: IStyleCollection | null) => SlicerStyleNames;
17
+ /**
18
+ * Returns a slicer style's elements by name, or the default style's for a name that is not one.
19
+ *
20
+ * @param styles The workbook's styles; without them there is no style, and `null` is returned.
21
+ */
22
+ export declare const getSlicerStyle: (name: string, styles: IStyleCollection | null) => Readonly<ISlicerStyle.Properties> | null;
23
+ /** The style element an item is drawn with. */
24
+ export declare const slicerItemElement: (selected: boolean, hasData: boolean, hovered: boolean) => ISlicerStyle.ElementType;
25
+ /**
26
+ * Resolves a style element, a differential cell format, to CSS against the workbook's theme:
27
+ * its text color and weight, its fill and its border.
28
+ *
29
+ * @param styles The workbook's styles, whose theme resolves theme colors.
30
+ */
31
+ export declare const slicerElementCSS: (element: ICellStyle.Properties | undefined, styles: IStyleCollection | null) => React.CSSProperties;
32
+ //# sourceMappingURL=slicerStyles.d.ts.map
@@ -12,7 +12,7 @@ export interface SheetTabSurfaceProps extends React.HTMLAttributes<HTMLDivElemen
12
12
  }
13
13
  export interface SheetTabProps extends TabProps {
14
14
  /**
15
- * The sheet.
15
+ * The sheet, of any kind.
16
16
  */
17
17
  sheet: ISheet;
18
18
  /**
@@ -31,6 +31,13 @@ export interface TabStripProps extends Omit<React.HTMLAttributes<HTMLDivElement>
31
31
  */
32
32
  borderWidth?: number;
33
33
  borderColor?: string;
34
+ /**
35
+ * Draw the line along the strip's top edge (the one the selected tab notches). Off where the row
36
+ * above already separates the tabs from the grid.
37
+ *
38
+ * @defaultValue true
39
+ */
40
+ seam?: boolean;
34
41
  /** CSS color for the selected-tab accent. */
35
42
  activeColor?: string;
36
43
  }
@@ -1,5 +1,5 @@
1
1
  import { RemoveListener, UndoManager } from '@sheetxl/utils';
2
- import { ISheet } from '@sheetxl/sdk';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
3
  import { Command, IReactNotifier } from '@sheetxl/utils-react';
4
4
  /** Options for {@link contributeTableCommands}. */
5
5
  export interface ContributeTableCommandsOptions {
@@ -10,7 +10,7 @@ export interface ContributeTableCommandsOptions {
10
10
  }
11
11
  /** The single `data` bundle {@link contributeTableCommands} takes (the `DynamicCommandContributor` shape). */
12
12
  export interface TableCommandData extends ContributeTableCommandsOptions {
13
- sheet: ISheet | null;
13
+ sheet: IWorksheet | null;
14
14
  }
15
15
  export declare function contributeTableCommands(contribution: Command.CommandContribution, data: TableCommandData): RemoveListener;
16
16
  //# sourceMappingURL=TableCommands.d.ts.map
@@ -45,7 +45,7 @@ export interface TaskPaneProps<T = any, A = any> extends React.HTMLAttributes<HT
45
45
  * Threaded from a command through `activateTaskPane(key, { args })` — see
46
46
  * `ItemsDescriptor.createSeededDraft` in `@sheetxl/studio-mui` for the receiving end.
47
47
  */
48
- export interface ItemsPaneArgs<P = any> {
48
+ export interface ItemsPaneArgs<P = any, T = any> {
49
49
  /**
50
50
  * Open the pane editing a NEW, uncommitted item seeded with these properties, rather than on its
51
51
  * list.
@@ -68,5 +68,16 @@ export interface ItemsPaneArgs<P = any> {
68
68
  * Ignored by a pane whose list is read-only, which shows no add button either.
69
69
  */
70
70
  insert?: boolean;
71
+ /**
72
+ * Open the pane editing this EXISTING item — precisely what the item's own card edit does —
73
+ * rather than on its list. What an "Edit…" reaching the pane from elsewhere (the name box's
74
+ * menu) asks for.
75
+ *
76
+ * @remarks
77
+ * The item itself, not its properties: it is already committed, and the pane needs its identity
78
+ * to write the edit back to. Ignored by a pane whose list is read-only; a `draft` or `insert`
79
+ * wins when both are given.
80
+ */
81
+ edit?: T;
71
82
  }
72
83
  //# sourceMappingURL=ITaskPane.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { TaskPaneProps } from './ITaskPane';
3
+ /** The key the format pane is registered under, and of the command that opens it. */
4
+ export declare const FORMAT_MOVABLE_PANE_KEY = "formatMovable";
5
+ /**
6
+ * The format pane: follows the movable selection and shows the active movable's kind name above the
7
+ * body its kind supplies (`MovableRendererModule.pane`, or one given with `registerMovablePane`). With
8
+ * nothing selected, or for a kind without a body, it says so.
9
+ */
10
+ export declare const MovablePane: (props: TaskPaneProps) => React.ReactElement;
11
+ /**
12
+ * Registers the format pane ({@link MovablePane}) with the default task pane registry, unless a pane
13
+ * is already registered under its key. Its title and icon come from the `formatMovable` catalog
14
+ * entry. The `formatMovable` command calls it before opening the pane.
15
+ */
16
+ export declare function registerFormatMovablePane(): void;
17
+ //# sourceMappingURL=MovablePane.d.ts.map
@@ -112,6 +112,13 @@ export interface ITaskPaneArea {
112
112
  * @param key The task pane key.
113
113
  */
114
114
  activate: <A = any>(key: string, options?: ActivateFrameOptions<A>) => void;
115
+ /**
116
+ * Whether {@link activate} can show the task pane `key`: there is an area to show it in, and a
117
+ * pane registered under that key. A command that opens a pane is disabled when this is `false`.
118
+ *
119
+ * @param key The task pane key.
120
+ */
121
+ canActivate: (key: string) => boolean;
115
122
  /**
116
123
  * Return the key for the currently active task pane.
117
124
  */
@@ -4,4 +4,5 @@ export * from './TaskPaneArea';
4
4
  export * from './TaskPaneTitle';
5
5
  export * from './TaskPaneStrip';
6
6
  export * from './TaskPaneRegistry';
7
+ export * from './MovablePane';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,16 @@
1
+ import { ThemeMode } from '@sheetxl/utils-react';
1
2
  /**
2
3
  * Persistence keys for the spreadsheet's self-managed appearance state.
3
4
  *
4
5
  * @remarks
5
- * Owned via `usePersistenceState` against the surrounding `PersistenceStateProvider` (Studio, or a
6
+ * Owned via `usePersistentState` against the surrounding `PersistentStateProvider` (Studio, or a
6
7
  * standalone host). A consumer that wants to read or set them (e.g. a VS Code host driving the mode from
7
8
  * its editor theme) does so with the same key, or by supplying its own provider/store. They are
8
9
  * intentionally not component props — appearance is *state*, theme customization is *config* (see
9
10
  * `Studio.theme`).
11
+ *
12
+ * A host changes the starting value of any of these with `PersistentStateProvider`'s `defaultValues`;
13
+ * the user's own choice still wins.
10
14
  */
11
15
  export declare const ThemeStateKey: {
12
16
  /** The user's light/dark override (`null` = follow system). */
@@ -16,4 +20,13 @@ export declare const ThemeStateKey: {
16
20
  /** Whether images invert in a dark grid. */
17
21
  readonly DarkImages: "enableDarkImages";
18
22
  };
23
+ /**
24
+ * The shipped defaults for {@link ThemeStateKey}, used when neither the store nor the provider's
25
+ * `defaultValues` has a value. They match Excel: follow the system mode, light grid, images unchanged.
26
+ */
27
+ export declare const ThemeStateDefaults: {
28
+ readonly themeMode: ThemeMode | null;
29
+ readonly enableDarkGrid: false;
30
+ readonly enableDarkImages: false;
31
+ };
19
32
  //# sourceMappingURL=ThemeState.d.ts.map
@@ -4,10 +4,10 @@
4
4
  * own tokens; decision 4). It wraps the generic {@link buildThemeCSS} (utils-react) — OOXML lives here in
5
5
  * `@sheetxl/react`, not below — passing the sys aliases as the per-surface records.
6
6
  *
7
- * The sys aliases are **just another surface layer**, so each top-level instance (`SheetElement`,
7
+ * The sys aliases are **just another surface layer**, so each top-level instance (`WorksheetElement`,
8
8
  * `WorkbookElement`, studio) emits its own copy `@scope`d to its instance root — same per-instance `useId`
9
9
  * model as the token sheets. Pass the instance's scope selector. The `--sxl-doc-*` document colors are
10
- * model-driven and stay with `SheetElement` for now.
10
+ * model-driven and stay with `WorksheetElement` for now.
11
11
  */
12
12
  export declare const buildOOXMLThemeCSS: (layer?: string, scope?: string) => string;
13
13
  //# sourceMappingURL=buildOOXMLThemeCSS.d.ts.map
@@ -4,10 +4,10 @@ import { ThemeMode } from '@sheetxl/utils-react';
4
4
  *
5
5
  * Derived from the shared appearance preference: the user's light/dark override
6
6
  * (`ThemeStateKey.Mode`, resolved via `prefers-color-scheme` when unset), gated by *Enable Dark Grid*
7
- * (`ThemeStateKey.DarkGrid`, default off) so the grid stays light in a dark app unless opted in.
7
+ * (`ThemeStateKey.DarkGrid`, off unless a host or the user turns it on) so the grid stays light in a dark app unless opted in.
8
8
  *
9
9
  * Because it reads the shared (module-singleton) preference store, every caller — the grid surface
10
- * (`SheetElement`) **and** chrome that must match the grid but renders outside its DOM (the table-style
10
+ * (`WorksheetElement`) **and** chrome that must match the grid but renders outside its DOM (the table-style
11
11
  * preview, the cell-style / color pickers) — resolves the *same* value with no prop-threading and no
12
12
  * drift from the studio (which reads the same keys the same way).
13
13
  *
@@ -18,7 +18,7 @@ export declare const installSystemColorDefaults: () => void;
18
18
  * to the provided values rather than the global host mapping.
19
19
  *
20
20
  * @remarks
21
- * Used by the grid container ({@link SheetElement}) and by UI rendered *outside* the grid subtree
21
+ * Used by the grid container ({@link WorksheetElement}) and by UI rendered *outside* the grid subtree
22
22
  * that must still match the grid's light/dark intent — most notably a color picker popup, which is
23
23
  * portaled and would otherwise inherit the host's `--sxl-sys-color-*` (e.g. a light grid in a dark host
24
24
  * would show the host's dark `auto` color). Names are lower-cased to match the variable
@@ -27,7 +27,7 @@ export declare const installSystemColorDefaults: () => void;
27
27
  export declare const createSystemColorVars: (colors: Partial<Record<IColor.Named, string>>) => Record<string, string>;
28
28
  /**
29
29
  * Ensures the default system-color CSS variables are present (see {@link installSystemColorDefaults}).
30
- * Wired into `SheetElement`, so the grid themes from `--sxl-sys-color-*` out of the box.
30
+ * Wired into `WorksheetElement`, so the grid themes from `--sxl-sys-color-*` out of the box.
31
31
  */
32
32
  export declare const useSystemColors: () => void;
33
33
  /**
@@ -0,0 +1,20 @@
1
+ import { registerBuiltInMovableRenderer } from '../movable/MovableRenderers';
2
+ /**
3
+ * Registers the built-in renderer for each kind of movable content. Called by the renderer
4
+ * registry before its first use; a host replaces any of them with `registerMovableRenderer`.
5
+ *
6
+ * @remarks
7
+ * A call, not an import for its effect: the package declares only its CSS as side effects, so a
8
+ * bundler drops a module imported only for one, and every built-in renderer with it.
9
+ *
10
+ * Every one is loaded the first time a movable of its kind is drawn, or ahead of use by a prefetch,
11
+ * so a workbook with no charts does not wait on the chart editor to show. For that to hold in a
12
+ * bundle, the editor must not also be reached statically: the package's index does not re-export
13
+ * the editors, which hosts that render one directly import from its subpath
14
+ * (`@sheetxl/react/chart`, `/shape`, ...; see vite.config.ts).
15
+ *
16
+ * Each is one `import()` with its export picked by `select`, so a failed fetch can be imported
17
+ * again.
18
+ */
19
+ export declare function registerDefaultMovableRenderers(register: typeof registerBuiltInMovableRenderer): void;
20
+ //# sourceMappingURL=DefaultMovableRenderers.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { LoadingPanelProps } from '@sheetxl/utils-react';
3
- import { SheetElementProps } from '../sheet';
3
+ import { WorksheetElementProps, OpaqueSheetElementProps } from '../sheet';
4
4
  import { WorkbookStripProps } from './WorkbookStrip';
5
5
  /**
6
6
  * Default renderers for {@link WorkbookElement}.
@@ -8,7 +8,8 @@ import { WorkbookStripProps } from './WorkbookStrip';
8
8
  * @remarks
9
9
  * These can be replaced by host application layers as needed.
10
10
  */
11
- export declare const renderWorkbookSheet: (props: SheetElementProps) => React.ReactElement;
11
+ export declare const renderWorkbookWorksheet: (props: WorksheetElementProps) => React.ReactElement;
12
+ export declare const renderWorkbookOpaqueSheet: (props: OpaqueSheetElementProps) => React.ReactElement;
12
13
  export declare const renderWorkbookStrip: (props: WorkbookStripProps) => React.ReactElement;
13
14
  export declare const renderWorkbookLoading: (props: LoadingPanelProps) => React.ReactElement;
14
15
  //# sourceMappingURL=DefaultRenderers.d.ts.map
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { UndoManager } from '@sheetxl/utils';
3
3
  import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
4
4
  import { LoadingPanelProps, ErrorPanelProps, RenderFloatPanel, FloatPanelProps, ThemeMode, Command } from '@sheetxl/utils-react';
5
- import { SheetElementProps, ISheetElement } from '../sheet';
5
+ import { WorksheetElementProps, IWorksheetElement, OpaqueSheetElementProps } from '../sheet';
6
6
  import { SheetEditable } from '../editor';
7
7
  import { WorkbookStripProps } from './WorkbookStrip';
8
8
  /**
@@ -17,7 +17,7 @@ export interface IWorkbookAttributes {
17
17
  * Retrieve the sheet element associated with this workbook element.
18
18
  * `null` before the sheet has mounted.
19
19
  */
20
- getSheetElement: () => ISheetElement | null;
20
+ getSheetElement: () => IWorksheetElement | null;
21
21
  /**
22
22
  * Retrieve the viewport element associated with this workbook element.
23
23
  * `null` before the viewport has mounted.
@@ -74,6 +74,43 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
74
74
  * loading panels.
75
75
  */
76
76
  onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
77
+ /**
78
+ * Called with the workbook once {@link WorkbookElementProps.workbook} resolves, and again whenever
79
+ * a new input resolves to a different one. Until the first input resolves, or if an input fails,
80
+ * the workbook is `null`; while a later input resolves, the current workbook is kept.
81
+ *
82
+ * @remarks
83
+ * Lets an app pass a `Promise` here and hold the live workbook in its own state, without awaiting
84
+ * or suspending.
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * const [pending] = useState(() => createInvoice());
89
+ * const [workbook, setWorkbook] = useState<IWorkbook | null>(null);
90
+ * const [total] = useCellValue<number>(workbook, 'D23');
91
+ * return <WorkbookElement workbook={pending} onWorkbookChange={setWorkbook} />;
92
+ * ```
93
+ */
94
+ onWorkbookChange?: (workbook: IWorkbook | null) => void;
95
+ /**
96
+ * Whether features that load on first use (charts, shapes, form controls, file formats, dialogs)
97
+ * are loaded ahead of use once the workbook has shown, so their first use does not wait on the
98
+ * network.
99
+ *
100
+ * - `'auto'` - only while the browser reports a fast connection. Browsers that report none
101
+ * (Firefox, Safari) load each feature on first use.
102
+ * - `true` - on any connection but a 2g one.
103
+ * - `false` - each feature on first use.
104
+ *
105
+ * @remarks
106
+ * Loads every module defined with `defineLazyModule` from `@sheetxl/utils` that has not opted out,
107
+ * including every kind registered with `MovableContentRegistry` and `registerMovableRenderer`.
108
+ * Nothing is loaded while offline or when the connection asks to save data; it resumes when the
109
+ * connection changes.
110
+ *
111
+ * @defaultValue 'auto'
112
+ */
113
+ prefetch?: boolean | 'auto';
77
114
  /**
78
115
  * A custom undo manager.
79
116
  *
@@ -116,6 +153,11 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
116
153
  * Render custom movable menu. (chrome - no default)
117
154
  */
118
155
  renderMovableMenu?: (props: any) => React.ReactElement;
156
+ /**
157
+ * Render the fill menu a right-drag of the fill handle ends in. (chrome - no default; without it
158
+ * the right-drag is inert)
159
+ */
160
+ renderFillMenu?: (props: any) => React.ReactElement;
119
161
  /**
120
162
  * Allow for customizations on the floating surface used for the workbook's popups.
121
163
  */
@@ -147,11 +189,15 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
147
189
  /**
148
190
  * Allow for customizations on the sheet.
149
191
  */
150
- propsSheet?: Partial<SheetElementProps>;
192
+ propsSheet?: Partial<WorksheetElementProps>;
193
+ /**
194
+ * Render custom IWorksheetElement.
195
+ */
196
+ renderWorksheet?: (props: WorksheetElementProps) => React.ReactElement;
151
197
  /**
152
- * Render custom ISheetElement.
198
+ * Render the pane of a chart sheet, a macro sheet or a dialog sheet while it is the active tab.
153
199
  */
154
- renderSheet?: (props: SheetElementProps) => React.ReactElement;
200
+ renderOpaqueSheet?: (props: OpaqueSheetElementProps) => React.ReactElement;
155
201
  /**
156
202
  * Allows users to Wrap stage children in Top level Context.
157
203
  */
@@ -21,8 +21,6 @@ import { SheetEditable } from '../editor';
21
21
  * as an embedded component.
22
22
  * - `createNamedReferenceFromSelection` (Ctrl+Shift+F3) — auto-generate names from the selected
23
23
  * cells (Excel's Create-from-Selection).
24
- * - `showFormat` (Ctrl+Shift+F) — open the format pane. Should also be available in the status bar.
25
-
26
24
  * - `workbookViewToggleExpandFormulaBar` (Ctrl+Shift+U) — expand or collapse the formula bar.
27
25
  * F6 - Move focus through primary workbook elements (we can implement this by check each workbook element and moving through)
28
26
  * F8 - Extend Selection
@@ -47,7 +45,7 @@ export interface FindMemory {
47
45
  scope?: CommandContext.FindScopeOptions;
48
46
  }
49
47
  /**
50
- * The last-search memory handle — **live getter/setter** over the bridge's `usePersistenceState`, exactly
48
+ * The last-search memory handle — **live getter/setter** over the bridge's `usePersistentState`, exactly
51
49
  * like {@link PickerMemory} for the style pickers. A getter (not the value) so recording a search doesn't
52
50
  * change the `data` identity and re-run this whole contributor.
53
51
  */
@@ -79,7 +77,7 @@ export interface ContributeWorkbookCommandsOptions {
79
77
  */
80
78
  editable?: SheetEditable | null;
81
79
  /**
82
- * Persisted last-search memory (`workbook.lastFind`), owned by the bridge's `usePersistenceState`. Feeds
80
+ * Persisted last-search memory (`workbook.lastFind`), owned by the bridge's `usePersistentState`. Feeds
83
81
  * `findNext` / `findPrevious` and the find window's seed. Omit ⇒ those two stay disabled and the window
84
82
  * always seeds from the active cell.
85
83
  */
@@ -38,6 +38,15 @@ export interface WorkbookStripProps extends React.HTMLAttributes<HTMLDivElement>
38
38
  * @defaultValue false
39
39
  */
40
40
  condensed?: boolean;
41
+ /**
42
+ * Draw the strip's segment of the seam framing the grid along its top edge. Off when the row
43
+ * above already draws that seam and nothing visible sits between them: the stacked layout on a
44
+ * touch device, where the scrollbar track is invisible and the tabs would get a second line 2px
45
+ * under the first.
46
+ *
47
+ * @defaultValue true
48
+ */
49
+ seam?: boolean;
41
50
  /**
42
51
  * Override how each sheet tab renders. Defaults to a plain {@link SheetTab}. A host with its
43
52
  * own tab chrome (e.g. the MUI strip's ripple surface) supplies this rather than re-forking
@@ -0,0 +1,9 @@
1
+ import { IListener, IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
2
+ /**
3
+ * Calls `sync` with the workbook's current origin now, whenever that origin changes in place (a
4
+ * rename, a new size), and whenever the workbook moves to another origin (a first save, a Save As).
5
+ *
6
+ * @returns Removes every listener.
7
+ */
8
+ export declare const followOrigin: (workbook: IWorkbook, sync: (origin: IWorkbookIO.Origin | null) => void) => IListener.Remove;
9
+ //# sourceMappingURL=_followOrigin.d.ts.map
@@ -10,9 +10,9 @@ import { IWorkbook } from '@sheetxl/sdk';
10
10
  * A format KEY, not a full format type — resolving one to the other needs the registry
11
11
  * (`getWriteFormats({ search: key })`), which is async and a concern of whoever is asking.
12
12
  *
13
- * Follows the handle's `onChange`, so chrome that names the current format (a Save As menu, a
14
- * status bar) updates the moment a Save As re-targets the workbook rather than going stale until
15
- * the next mount.
13
+ * Follows the workbook to whichever origin it lives in, so chrome that names the current format (a
14
+ * Save As menu, a status bar) updates the moment a Save As moves the workbook rather than going
15
+ * stale until the next mount.
16
16
  */
17
17
  export declare const useWorkbookFormat: (workbook: IWorkbook | null) => string | null;
18
18
  //# sourceMappingURL=useWorkbookFormat.d.ts.map
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(o,s,c)=>(c=o==null?{}:e(i(o)),((e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c,l=r(i),u=0,d=l.length;u<d;u++)c=l[u],a.call(e,c)||c===o||t(e,c,{get:(e=>i[e]).bind(null,c),enumerable:!(s=n(i,c))||s.enumerable});return e})(!s&&o&&o.__esModule?c:t(c,`default`,{value:o,enumerable:!0}),o));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});