@sheetxl/react 0.7.22 → 0.7.23-beta.1

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 (456) hide show
  1. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  2. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +156 -0
  3. package/browser/cjs/index.cjs +24 -24
  4. package/browser/esm/E9rKWgbrtweBguqR.mjs +6286 -0
  5. package/browser/esm/index.mjs +19252 -4911
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CmChqiPvaotX5mCV.mjs +9 -0
  8. package/node/esm/index.mjs +17028 -3691
  9. package/package.json +10 -11
  10. package/resources/contents.json +60 -0
  11. package/resources/locales/contents.json +114 -0
  12. package/resources/locales/de/clipboard.cmd.json +36 -0
  13. package/resources/locales/de/editor.cmd.json +128 -0
  14. package/resources/locales/de/movable.cmd.json +123 -0
  15. package/resources/locales/de/selection.cmd.json +373 -0
  16. package/resources/locales/de/sheet.cmd.json +1563 -0
  17. package/resources/locales/de/table.cmd.json +83 -0
  18. package/resources/locales/de/ui.msg.json +166 -0
  19. package/resources/locales/de/workbook.cmd.json +282 -0
  20. package/resources/locales/en/clipboard.cmd.json +36 -0
  21. package/resources/locales/en/editor.cmd.json +128 -0
  22. package/resources/locales/en/movable.cmd.json +123 -0
  23. package/resources/locales/en/selection.cmd.json +373 -0
  24. package/resources/locales/en/sheet.cmd.json +1563 -0
  25. package/resources/locales/en/table.cmd.json +83 -0
  26. package/resources/locales/en/ui.msg.json +166 -0
  27. package/resources/locales/en/workbook.cmd.json +282 -0
  28. package/types/index.d.ts +2 -1767
  29. package/types/src/border/StaticBorderRenderer.d.ts +32 -0
  30. package/types/src/border/StaticBorderRenderer.d.ts.map +1 -0
  31. package/types/src/border/StyledStrokePath.d.ts +14 -0
  32. package/types/src/border/StyledStrokePath.d.ts.map +1 -0
  33. package/types/src/border/index.d.ts +4 -0
  34. package/types/src/border/index.d.ts.map +1 -0
  35. package/types/src/border/useBorders.d.ts +87 -0
  36. package/types/src/border/useBorders.d.ts.map +1 -0
  37. package/types/src/cell/ColumnButton.d.ts +45 -0
  38. package/types/src/cell/ColumnButton.d.ts.map +1 -0
  39. package/types/src/cell/CornerTriangle.d.ts +27 -0
  40. package/types/src/cell/CornerTriangle.d.ts.map +1 -0
  41. package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
  42. package/types/src/cell/FormulaCellRenderer.d.ts.map +1 -0
  43. package/types/src/cell/SheetCellRenderer.d.ts +52 -0
  44. package/types/src/cell/SheetCellRenderer.d.ts.map +1 -0
  45. package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
  46. package/types/src/cell/SheetHeaderRenderer.d.ts.map +1 -0
  47. package/types/src/cell/index.d.ts +7 -0
  48. package/types/src/cell/index.d.ts.map +1 -0
  49. package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
  50. package/types/src/cell/useFormulaViewAnchor.d.ts.map +1 -0
  51. package/types/src/chart/ChartEditor.d.ts +17 -0
  52. package/types/src/chart/ChartEditor.d.ts.map +1 -0
  53. package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
  54. package/types/src/chart/PresetChartTypeDescriptors.d.ts.map +1 -0
  55. package/types/src/chart/index.d.ts +3 -0
  56. package/types/src/chart/index.d.ts.map +1 -0
  57. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
  58. package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
  59. package/types/src/chart/templates/area-template.json.d.ts +9 -0
  60. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
  61. package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
  62. package/types/src/chart/templates/bar-template.json.d.ts +9 -0
  63. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
  64. package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
  65. package/types/src/chart/templates/column-template.json.d.ts +9 -0
  66. package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
  67. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
  68. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
  69. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
  70. package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
  71. package/types/src/chart/templates/line-template.json.d.ts +9 -0
  72. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
  73. package/types/src/chart/templates/pie-template.json.d.ts +9 -0
  74. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
  75. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
  76. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
  77. package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
  78. package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
  79. package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
  80. package/types/src/clipboard/ClipboardCommands.d.ts.map +1 -0
  81. package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
  82. package/types/src/clipboard/SheetClipboardLayer.d.ts.map +1 -0
  83. package/types/src/clipboard/index.d.ts +3 -0
  84. package/types/src/clipboard/index.d.ts.map +1 -0
  85. package/types/src/commands/Catalog.d.ts +8 -0
  86. package/types/src/commands/Catalog.d.ts.map +1 -0
  87. package/types/src/commands/CommandRootProvider.d.ts +36 -0
  88. package/types/src/commands/CommandRootProvider.d.ts.map +1 -0
  89. package/types/src/commands/InputClipboardCommands.d.ts +41 -0
  90. package/types/src/commands/InputClipboardCommands.d.ts.map +1 -0
  91. package/types/src/commands/InputClipboardInjector.d.ts +16 -0
  92. package/types/src/commands/InputClipboardInjector.d.ts.map +1 -0
  93. package/types/src/commands/MainFocusContext.d.ts +13 -0
  94. package/types/src/commands/MainFocusContext.d.ts.map +1 -0
  95. package/types/src/commands/PaneScopeProvider.d.ts +40 -0
  96. package/types/src/commands/PaneScopeProvider.d.ts.map +1 -0
  97. package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
  98. package/types/src/commands/createTransactionalMiddleware.d.ts.map +1 -0
  99. package/types/src/commands/index.d.ts +7 -0
  100. package/types/src/commands/index.d.ts.map +1 -0
  101. package/types/src/context/SheetContext.d.ts +18 -0
  102. package/types/src/context/SheetContext.d.ts.map +1 -0
  103. package/types/src/context/WorkbookContext.d.ts +20 -0
  104. package/types/src/context/WorkbookContext.d.ts.map +1 -0
  105. package/types/src/context/index.d.ts +3 -0
  106. package/types/src/context/index.d.ts.map +1 -0
  107. package/types/src/editableLabel/EditableLabel.d.ts +28 -0
  108. package/types/src/editableLabel/EditableLabel.d.ts.map +1 -0
  109. package/types/src/editableLabel/index.d.ts +2 -0
  110. package/types/src/editableLabel/index.d.ts.map +1 -0
  111. package/types/src/editor/EditorCommands.d.ts +98 -0
  112. package/types/src/editor/EditorCommands.d.ts.map +1 -0
  113. package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
  114. package/types/src/editor/FunctionPreviewPanel.d.ts.map +1 -0
  115. package/types/src/editor/NamedHintPanel.d.ts +38 -0
  116. package/types/src/editor/NamedHintPanel.d.ts.map +1 -0
  117. package/types/src/editor/NamedItemsPanel.d.ts +59 -0
  118. package/types/src/editor/NamedItemsPanel.d.ts.map +1 -0
  119. package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
  120. package/types/src/editor/SheetCellEditorLayer.d.ts.map +1 -0
  121. package/types/src/editor/SheetCellInput.d.ts +99 -0
  122. package/types/src/editor/SheetCellInput.d.ts.map +1 -0
  123. package/types/src/editor/SheetEditable.d.ts +53 -0
  124. package/types/src/editor/SheetEditable.d.ts.map +1 -0
  125. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
  126. package/types/src/editor/SheetReferenceHeaderLayer.d.ts.map +1 -0
  127. package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
  128. package/types/src/editor/SheetReferenceLayer.d.ts.map +1 -0
  129. package/types/src/editor/formulaCaret.d.ts +84 -0
  130. package/types/src/editor/formulaCaret.d.ts.map +1 -0
  131. package/types/src/editor/formulaEval.d.ts +202 -0
  132. package/types/src/editor/formulaEval.d.ts.map +1 -0
  133. package/types/src/editor/formulaPresentation.d.ts +136 -0
  134. package/types/src/editor/formulaPresentation.d.ts.map +1 -0
  135. package/types/src/editor/formulaText.d.ts +80 -0
  136. package/types/src/editor/formulaText.d.ts.map +1 -0
  137. package/types/src/editor/functionArgs.d.ts +111 -0
  138. package/types/src/editor/functionArgs.d.ts.map +1 -0
  139. package/types/src/editor/functionHint.d.ts +37 -0
  140. package/types/src/editor/functionHint.d.ts.map +1 -0
  141. package/types/src/editor/index.d.ts +18 -0
  142. package/types/src/editor/index.d.ts.map +1 -0
  143. package/types/src/editor/referencePointNav.d.ts +39 -0
  144. package/types/src/editor/referencePointNav.d.ts.map +1 -0
  145. package/types/src/editor/useFormulaHints.d.ts +126 -0
  146. package/types/src/editor/useFormulaHints.d.ts.map +1 -0
  147. package/types/src/editor/useFormulaInput.d.ts +326 -0
  148. package/types/src/editor/useFormulaInput.d.ts.map +1 -0
  149. package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
  150. package/types/src/editor/useProtectedEditNotice.d.ts.map +1 -0
  151. package/types/src/editor/useReferenceMode.d.ts +177 -0
  152. package/types/src/editor/useReferenceMode.d.ts.map +1 -0
  153. package/types/src/form/FormulaInput.d.ts +86 -0
  154. package/types/src/form/FormulaInput.d.ts.map +1 -0
  155. package/types/src/form/FormulaInputParts.d.ts +94 -0
  156. package/types/src/form/FormulaInputParts.d.ts.map +1 -0
  157. package/types/src/form/index.d.ts +5 -0
  158. package/types/src/form/index.d.ts.map +1 -0
  159. package/types/src/form/useEditCommit.d.ts +174 -0
  160. package/types/src/form/useEditCommit.d.ts.map +1 -0
  161. package/types/src/form/useInputField.d.ts +86 -0
  162. package/types/src/form/useInputField.d.ts.map +1 -0
  163. package/types/src/frame/CommandContext.d.ts +179 -0
  164. package/types/src/frame/CommandContext.d.ts.map +1 -0
  165. package/types/src/frame/IFrame.d.ts +17 -0
  166. package/types/src/frame/IFrame.d.ts.map +1 -0
  167. package/types/src/frame/index.d.ts +3 -0
  168. package/types/src/frame/index.d.ts.map +1 -0
  169. package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
  170. package/types/src/icons/LogoNoPaddingIcon.d.ts.map +1 -0
  171. package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
  172. package/types/src/icons/LogoTextNoPaddingIcon.d.ts.map +1 -0
  173. package/types/src/icons/WaterMark.d.ts +12 -0
  174. package/types/src/icons/WaterMark.d.ts.map +1 -0
  175. package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
  176. package/types/src/icons/chart/ChartAreaIcon.d.ts.map +1 -0
  177. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
  178. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts.map +1 -0
  179. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
  180. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts.map +1 -0
  181. package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
  182. package/types/src/icons/chart/ChartBarIcon.d.ts.map +1 -0
  183. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
  184. package/types/src/icons/chart/ChartBarStackedIcon.d.ts.map +1 -0
  185. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
  186. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts.map +1 -0
  187. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
  188. package/types/src/icons/chart/ChartBubble3DIcon.d.ts.map +1 -0
  189. package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
  190. package/types/src/icons/chart/ChartBubbleIcon.d.ts.map +1 -0
  191. package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
  192. package/types/src/icons/chart/ChartColumnIcon.d.ts.map +1 -0
  193. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
  194. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts.map +1 -0
  195. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
  196. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts.map +1 -0
  197. package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
  198. package/types/src/icons/chart/ChartLineIcon.d.ts.map +1 -0
  199. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
  200. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts.map +1 -0
  201. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
  202. package/types/src/icons/chart/ChartLineStackedIcon.d.ts.map +1 -0
  203. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
  204. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts.map +1 -0
  205. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
  206. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts.map +1 -0
  207. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
  208. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts.map +1 -0
  209. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
  210. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts.map +1 -0
  211. package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
  212. package/types/src/icons/chart/ChartPieIcon.d.ts.map +1 -0
  213. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
  214. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts.map +1 -0
  215. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
  216. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts.map +1 -0
  217. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
  218. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts.map +1 -0
  219. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
  220. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts.map +1 -0
  221. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
  222. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts.map +1 -0
  223. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
  224. package/types/src/icons/chart/ChartWaterfallIcon.d.ts.map +1 -0
  225. package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
  226. package/types/src/icons/chart/ThemedChartIcon.d.ts.map +1 -0
  227. package/types/src/icons/chart/index.d.ts +50 -0
  228. package/types/src/icons/chart/index.d.ts.map +1 -0
  229. package/types/src/icons/index.d.ts +4 -0
  230. package/types/src/icons/index.d.ts.map +1 -0
  231. package/types/src/index.d.ts +27 -0
  232. package/types/src/index.d.ts.map +1 -0
  233. package/types/src/io/WorkbookIO.d.ts +50 -0
  234. package/types/src/io/WorkbookIO.d.ts.map +1 -0
  235. package/types/src/io/index.d.ts +2 -0
  236. package/types/src/io/index.d.ts.map +1 -0
  237. package/types/src/layer/BorderLayer.d.ts +14 -0
  238. package/types/src/layer/BorderLayer.d.ts.map +1 -0
  239. package/types/src/layer/CellErrorLayer.d.ts +49 -0
  240. package/types/src/layer/CellErrorLayer.d.ts.map +1 -0
  241. package/types/src/layer/CellFillLayer.d.ts +15 -0
  242. package/types/src/layer/CellFillLayer.d.ts.map +1 -0
  243. package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
  244. package/types/src/layer/ConditionalBarLayer.d.ts.map +1 -0
  245. package/types/src/layer/ConditionalIcons.d.ts +34 -0
  246. package/types/src/layer/ConditionalIcons.d.ts.map +1 -0
  247. package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
  248. package/types/src/layer/ConditionalIconsLayer.d.ts.map +1 -0
  249. package/types/src/layer/ContextMenuLayer.d.ts +27 -0
  250. package/types/src/layer/ContextMenuLayer.d.ts.map +1 -0
  251. package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
  252. package/types/src/layer/HeaderResizerLayer.d.ts.map +1 -0
  253. package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
  254. package/types/src/layer/HeaderSelectionLayer.d.ts.map +1 -0
  255. package/types/src/layer/ResizeIndicator.d.ts +19 -0
  256. package/types/src/layer/ResizeIndicator.d.ts.map +1 -0
  257. package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
  258. package/types/src/layer/SheetBackgroundLayer.d.ts.map +1 -0
  259. package/types/src/layer/SheetCellLayer.d.ts +49 -0
  260. package/types/src/layer/SheetCellLayer.d.ts.map +1 -0
  261. package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
  262. package/types/src/layer/SheetColumnButtonLayer.d.ts.map +1 -0
  263. package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
  264. package/types/src/layer/SheetGridLineLayer.d.ts.map +1 -0
  265. package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
  266. package/types/src/layer/SheetHeaderCellLayer.d.ts.map +1 -0
  267. package/types/src/layer/SheetMovableLayer.d.ts +26 -0
  268. package/types/src/layer/SheetMovableLayer.d.ts.map +1 -0
  269. package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
  270. package/types/src/layer/SheetTableCommandLayer.d.ts.map +1 -0
  271. package/types/src/layer/SpillLayer.d.ts +22 -0
  272. package/types/src/layer/SpillLayer.d.ts.map +1 -0
  273. package/types/src/layer/TableLayer.d.ts +22 -0
  274. package/types/src/layer/TableLayer.d.ts.map +1 -0
  275. package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
  276. package/types/src/layer/ValidationIndicatorLayer.d.ts.map +1 -0
  277. package/types/src/layer/index.d.ts +25 -0
  278. package/types/src/layer/index.d.ts.map +1 -0
  279. package/types/src/layer/resizeIndicatorState.d.ts +26 -0
  280. package/types/src/layer/resizeIndicatorState.d.ts.map +1 -0
  281. package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
  282. package/types/src/layer/useSheetFeatureRegions.d.ts.map +1 -0
  283. package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
  284. package/types/src/layer/useSheetVisibleCells.d.ts.map +1 -0
  285. package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
  286. package/types/src/layer/useSheetVisibleDecorations.d.ts.map +1 -0
  287. package/types/src/layer/useTableHeaderCells.d.ts +22 -0
  288. package/types/src/layer/useTableHeaderCells.d.ts.map +1 -0
  289. package/types/src/layer/useVisibleTables.d.ts +27 -0
  290. package/types/src/layer/useVisibleTables.d.ts.map +1 -0
  291. package/types/src/listener/index.d.ts +3 -0
  292. package/types/src/listener/index.d.ts.map +1 -0
  293. package/types/src/listener/useModelListener.d.ts +67 -0
  294. package/types/src/listener/useModelListener.d.ts.map +1 -0
  295. package/types/src/listener/useRangeListener.d.ts +15 -0
  296. package/types/src/listener/useRangeListener.d.ts.map +1 -0
  297. package/types/src/movable/EmptyFrame.d.ts +16 -0
  298. package/types/src/movable/EmptyFrame.d.ts.map +1 -0
  299. package/types/src/movable/IMovableArea.d.ts +34 -0
  300. package/types/src/movable/IMovableArea.d.ts.map +1 -0
  301. package/types/src/movable/MovableCommands.d.ts +22 -0
  302. package/types/src/movable/MovableCommands.d.ts.map +1 -0
  303. package/types/src/movable/MovableFrame.d.ts +48 -0
  304. package/types/src/movable/MovableFrame.d.ts.map +1 -0
  305. package/types/src/movable/MovableLayer.d.ts +77 -0
  306. package/types/src/movable/MovableLayer.d.ts.map +1 -0
  307. package/types/src/movable/MoveableBundle.d.ts +4 -0
  308. package/types/src/movable/MoveableBundle.d.ts.map +1 -0
  309. package/types/src/movable/index.d.ts +4 -0
  310. package/types/src/movable/index.d.ts.map +1 -0
  311. package/types/src/picture/IPictureEditor.d.ts +39 -0
  312. package/types/src/picture/IPictureEditor.d.ts.map +1 -0
  313. package/types/src/picture/PictureEditor.d.ts +4 -0
  314. package/types/src/picture/PictureEditor.d.ts.map +1 -0
  315. package/types/src/picture/index.d.ts +3 -0
  316. package/types/src/picture/index.d.ts.map +1 -0
  317. package/types/src/selection/SelectionCommands.d.ts +23 -0
  318. package/types/src/selection/SelectionCommands.d.ts.map +1 -0
  319. package/types/src/selection/SheetSelection.d.ts +53 -0
  320. package/types/src/selection/SheetSelection.d.ts.map +1 -0
  321. package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
  322. package/types/src/selection/SheetSelectionLayer.d.ts.map +1 -0
  323. package/types/src/selection/index.d.ts +4 -0
  324. package/types/src/selection/index.d.ts.map +1 -0
  325. package/types/src/shape/ShapeEditor.d.ts +16 -0
  326. package/types/src/shape/ShapeEditor.d.ts.map +1 -0
  327. package/types/src/shape/index.d.ts +2 -0
  328. package/types/src/shape/index.d.ts.map +1 -0
  329. package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
  330. package/types/src/sheet/ConditionalFormatPresets.d.ts.map +1 -0
  331. package/types/src/sheet/ISheetElement.d.ts +233 -0
  332. package/types/src/sheet/ISheetElement.d.ts.map +1 -0
  333. package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
  334. package/types/src/sheet/ISheetHeaderElement.d.ts.map +1 -0
  335. package/types/src/sheet/NotImplemented.d.ts +3 -0
  336. package/types/src/sheet/NotImplemented.d.ts.map +1 -0
  337. package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
  338. package/types/src/sheet/SheetCommandProvider.d.ts.map +1 -0
  339. package/types/src/sheet/SheetCommands.d.ts +75 -0
  340. package/types/src/sheet/SheetCommands.d.ts.map +1 -0
  341. package/types/src/sheet/SheetElement.d.ts +15 -0
  342. package/types/src/sheet/SheetElement.d.ts.map +1 -0
  343. package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
  344. package/types/src/sheet/SheetHeaderElement.d.ts.map +1 -0
  345. package/types/src/sheet/SheetScrollbar.d.ts +28 -0
  346. package/types/src/sheet/SheetScrollbar.d.ts.map +1 -0
  347. package/types/src/sheet/TopLeftCorner.d.ts +17 -0
  348. package/types/src/sheet/TopLeftCorner.d.ts.map +1 -0
  349. package/types/src/sheet/index.d.ts +7 -0
  350. package/types/src/sheet/index.d.ts.map +1 -0
  351. package/types/src/slicer/SlicerEditor.d.ts +16 -0
  352. package/types/src/slicer/SlicerEditor.d.ts.map +1 -0
  353. package/types/src/slicer/index.d.ts +2 -0
  354. package/types/src/slicer/index.d.ts.map +1 -0
  355. package/types/src/tabStrip/SheetTab.d.ts +41 -0
  356. package/types/src/tabStrip/SheetTab.d.ts.map +1 -0
  357. package/types/src/tabStrip/Sortable.d.ts +66 -0
  358. package/types/src/tabStrip/Sortable.d.ts.map +1 -0
  359. package/types/src/tabStrip/Tab.d.ts +19 -0
  360. package/types/src/tabStrip/Tab.d.ts.map +1 -0
  361. package/types/src/tabStrip/TabStrip.d.ts +41 -0
  362. package/types/src/tabStrip/TabStrip.d.ts.map +1 -0
  363. package/types/src/tabStrip/TabStripItem.d.ts +36 -0
  364. package/types/src/tabStrip/TabStripItem.d.ts.map +1 -0
  365. package/types/src/tabStrip/TabStripRow.d.ts +9 -0
  366. package/types/src/tabStrip/TabStripRow.d.ts.map +1 -0
  367. package/types/src/tabStrip/index.d.ts +7 -0
  368. package/types/src/tabStrip/index.d.ts.map +1 -0
  369. package/types/src/table/TableCommands.d.ts +16 -0
  370. package/types/src/table/TableCommands.d.ts.map +1 -0
  371. package/types/src/taskPane/ITaskPane.d.ts +72 -0
  372. package/types/src/taskPane/ITaskPane.d.ts.map +1 -0
  373. package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
  374. package/types/src/taskPane/TaskPaneArea.d.ts.map +1 -0
  375. package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
  376. package/types/src/taskPane/TaskPaneFrame.d.ts.map +1 -0
  377. package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
  378. package/types/src/taskPane/TaskPaneRegistry.d.ts.map +1 -0
  379. package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
  380. package/types/src/taskPane/TaskPaneStrip.d.ts.map +1 -0
  381. package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
  382. package/types/src/taskPane/TaskPaneTitle.d.ts.map +1 -0
  383. package/types/src/taskPane/index.d.ts +7 -0
  384. package/types/src/taskPane/index.d.ts.map +1 -0
  385. package/types/src/taskPane/useTaskPane.d.ts +29 -0
  386. package/types/src/taskPane/useTaskPane.d.ts.map +1 -0
  387. package/types/src/theme/DocThemesContext.d.ts +3 -0
  388. package/types/src/theme/DocThemesContext.d.ts.map +1 -0
  389. package/types/src/theme/DocThemesProvider.d.ts +15 -0
  390. package/types/src/theme/DocThemesProvider.d.ts.map +1 -0
  391. package/types/src/theme/ThemeState.d.ts +19 -0
  392. package/types/src/theme/ThemeState.d.ts.map +1 -0
  393. package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
  394. package/types/src/theme/buildDocThemeCSS.d.ts.map +1 -0
  395. package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
  396. package/types/src/theme/buildOOXMLThemeCSS.d.ts.map +1 -0
  397. package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
  398. package/types/src/theme/createCSSSystemLookup.d.ts.map +1 -0
  399. package/types/src/theme/index.d.ts +11 -0
  400. package/types/src/theme/index.d.ts.map +1 -0
  401. package/types/src/theme/useAppColorScheme.d.ts +15 -0
  402. package/types/src/theme/useAppColorScheme.d.ts.map +1 -0
  403. package/types/src/theme/useDocThemes.d.ts +3 -0
  404. package/types/src/theme/useDocThemes.d.ts.map +1 -0
  405. package/types/src/theme/useGridColorScheme.d.ts +20 -0
  406. package/types/src/theme/useGridColorScheme.d.ts.map +1 -0
  407. package/types/src/theme/useSystemColors.d.ts +44 -0
  408. package/types/src/theme/useSystemColors.d.ts.map +1 -0
  409. package/types/src/undo/UndoCommands.d.ts +28 -0
  410. package/types/src/undo/UndoCommands.d.ts.map +1 -0
  411. package/types/src/undo/UndoManagerContext.d.ts +14 -0
  412. package/types/src/undo/UndoManagerContext.d.ts.map +1 -0
  413. package/types/src/undo/index.d.ts +3 -0
  414. package/types/src/undo/index.d.ts.map +1 -0
  415. package/types/src/workbook/DefaultRenderers.d.ts +14 -0
  416. package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
  417. package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
  418. package/types/src/workbook/GlobalWorkbookElement.d.ts.map +1 -0
  419. package/types/src/workbook/IWorkbookElement.d.ts +178 -0
  420. package/types/src/workbook/IWorkbookElement.d.ts.map +1 -0
  421. package/types/src/workbook/WindowChrome.d.ts +61 -0
  422. package/types/src/workbook/WindowChrome.d.ts.map +1 -0
  423. package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
  424. package/types/src/workbook/WorkbookCommandContributor.d.ts.map +1 -0
  425. package/types/src/workbook/WorkbookCommands.d.ts +97 -0
  426. package/types/src/workbook/WorkbookCommands.d.ts.map +1 -0
  427. package/types/src/workbook/WorkbookElement.d.ts +9 -0
  428. package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
  429. package/types/src/workbook/WorkbookStrip.d.ts +73 -0
  430. package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
  431. package/types/src/workbook/index.d.ts +17 -0
  432. package/types/src/workbook/index.d.ts.map +1 -0
  433. package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
  434. package/types/src/workbook/resolveWorkbookInput.d.ts.map +1 -0
  435. package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
  436. package/types/src/workbook/useResolvedWorkbook.d.ts.map +1 -0
  437. package/types/src/workbook/useWindowChrome.d.ts +24 -0
  438. package/types/src/workbook/useWindowChrome.d.ts.map +1 -0
  439. package/types/src/workbook/useWorkbookApp.d.ts +47 -0
  440. package/types/src/workbook/useWorkbookApp.d.ts.map +1 -0
  441. package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
  442. package/types/src/workbook/useWorkbookEncrypted.d.ts.map +1 -0
  443. package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
  444. package/types/src/workbook/useWorkbookFormat.d.ts.map +1 -0
  445. package/types/src/workbook/useWorkbookName.d.ts +13 -0
  446. package/types/src/workbook/useWorkbookName.d.ts.map +1 -0
  447. package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
  448. package/types/src/workbook/useWorkbookSaveState.d.ts.map +1 -0
  449. package/browser/cjs/DE4tB6-rHLjtcP1D.cjs +0 -16
  450. package/browser/cjs/DfFvH5gp0fyrdVBe.cjs +0 -7
  451. package/browser/cjs/IsZqO9D9KfIS8rJK.cjs +0 -161
  452. package/browser/esm/B-FEg36883DAwV11.mjs +0 -1377
  453. package/browser/esm/C07OMiF-GZT09DE8.mjs +0 -394
  454. package/browser/esm/DpetxHCqcdvCcpAe.mjs +0 -3905
  455. package/node/assets/style.css +0 -1
  456. package/node/esm/BzmGjDsMnAeW7Hwa.mjs +0 -11
package/types/index.d.ts CHANGED
@@ -1,1767 +1,2 @@
1
- import { AnchorLocation } from '@sheetxl/utils';
2
- import { Bounds } from '@sheetxl/utils';
3
- import { CellEditorProps } from '@sheetxl/grid-react';
4
- import { CellRendererProps } from '@sheetxl/grid-react';
5
- import { CommandButtonProps } from '@sheetxl/utils-react';
6
- import { Context } from 'react';
7
- import { CopyPasteProps } from '@sheetxl/utils-react';
8
- import { CopyPasteResults } from '@sheetxl/utils-react';
9
- import { default as default_2 } from 'react';
10
- import { EditState } from '@sheetxl/grid-react';
11
- import { FocusWindowOptions } from '@sheetxl/utils-react';
12
- import { FrozenEdge } from '@sheetxl/grid-react';
13
- import { GridProps } from '@sheetxl/grid-react';
14
- import { GridStyle } from '@sheetxl/grid-react';
15
- import { GridSurfaceStyle } from '@sheetxl/grid-react';
16
- import { IAutoFilter } from '@sheetxl/sdk';
17
- import { IBorder } from '@sheetxl/sdk';
18
- import { ICell } from '@sheetxl/sdk';
19
- import { ICellEditorElement } from '@sheetxl/grid-react';
20
- import { ICellLayout } from '@sheetxl/utils-react';
21
- import { ICellRange } from '@sheetxl/sdk';
22
- import { ICellRanges } from '@sheetxl/sdk';
23
- import { IChart } from '@sheetxl/sdk';
24
- import { IColor } from '@sheetxl/sdk';
25
- import { ICommand } from '@sheetxl/utils-react';
26
- import { ICommands } from '@sheetxl/utils-react';
27
- import { IFunction } from '@sheetxl/sdk';
28
- import { IGridElement } from '@sheetxl/grid-react';
29
- import { IGridView } from '@sheetxl/grid-react';
30
- import { IListener } from '@sheetxl/sdk';
31
- import { IModule } from '@sheetxl/sdk';
32
- import { IMovable } from '@sheetxl/sdk';
33
- import { IMovableCollection } from '@sheetxl/sdk';
34
- import { IMovableSelection } from '@sheetxl/sdk';
35
- import { INamedCollection } from '@sheetxl/sdk';
36
- import { IPicture } from '@sheetxl/sdk';
37
- import { IRange } from '@sheetxl/sdk';
38
- import { IScript } from '@sheetxl/sdk';
39
- import { IScrollbarElement } from '@sheetxl/utils-react';
40
- import { ISheet } from '@sheetxl/sdk';
41
- import { ISheetHeader } from '@sheetxl/sdk';
42
- import { ISheetView } from '@sheetxl/sdk';
43
- import { IShowToolTipProperties } from '@sheetxl/utils-react';
44
- import { IStyle } from '@sheetxl/sdk';
45
- import { IStyleCollection } from '@sheetxl/sdk';
46
- import { ITable } from '@sheetxl/sdk';
47
- import { ITheme } from '@sheetxl/sdk';
48
- import { IThemeCollection } from '@sheetxl/sdk';
49
- import { ITransaction } from '@sheetxl/sdk';
50
- import { IWorkbook } from '@sheetxl/sdk';
51
- import { JSX } from 'react/jsx-runtime';
52
- import { LicenseDetails } from '@sheetxl/sdk';
53
- import { LicenseManager } from '@sheetxl/sdk';
54
- import { ReactNode } from 'react';
55
- import { ReferenceableClipboard } from '@sheetxl/utils';
56
- import { RemoveListener } from '@sheetxl/utils';
57
- import { ScrollableViewport } from '@sheetxl/utils-react';
58
- import { ScrollbarOrientation } from '@sheetxl/utils-react';
59
- import { ScrollButtonProps } from '@sheetxl/utils-react';
60
- import { ScrollPaneProps } from '@sheetxl/utils-react';
61
- import { SelectionProps } from '@sheetxl/grid-react';
62
- import { SelectionResults } from '@sheetxl/grid-react';
63
- import { StartEditEvent } from '@sheetxl/grid-react';
64
- import { TopLeft } from '@sheetxl/utils';
65
- import { VirtualScrollbarProps } from '@sheetxl/utils-react';
66
-
67
- export declare interface ActivateFrameOptions {
68
- /**
69
- * If not provided then will drive autoFocus
70
- */
71
- autoFocus?: boolean | string | FocusWindowOptions;
72
- }
73
-
74
- declare interface Border {
75
- readonly darkMode: boolean;
76
- readonly autoColor: IColor;
77
- readonly autoStyle: IBorder.StrokeStyle;
78
- readonly quickBorder: Partial<IBorder.Properties>;
79
- readonly schemeLookup: IColor.SchemeLookup;
80
- createTemporaryBorder: (update: IBorder.Properties) => IBorder;
81
- onBorderSelect: (border: Partial<IBorder.Properties>) => void;
82
- }
83
-
84
- export declare interface BorderOverlayProps {
85
- /**
86
- * Returns a list of visible cells.
87
- *
88
- * @param view - {@link IGridView}
89
- * @returns An array of visible coords
90
- */
91
- getVisibleCells: (view: IGridView) => ({
92
- coords: ICell.Coords;
93
- value?: any;
94
- range?: IRange.Coords;
95
- })[];
96
- /**
97
- * For finding the border. The value is the value returned from getVisibleCells and the index is the index found.
98
- *
99
- * @param value - ?
100
- * @param index - ?
101
- * @returns The IBorder at the location.
102
- */
103
- getBorderAt: (value: any, index: number) => IBorder;
104
- /**
105
- * Allow users to customize border rendering.
106
- * Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).
107
- */
108
- rendererBorder?: (props: BorderRenderProps) => default_2.ReactNode;
109
- defaultColor?: string;
110
- darkMode?: boolean;
111
- /**
112
- * Force all rendering to be a single border line.
113
- * Use for previews.
114
- */
115
- forceThinBorder?: boolean;
116
- /**
117
- * A special flag to shift large borders
118
- */
119
- shiftIfWide?: boolean;
120
- }
121
-
122
- export declare interface BorderRenderProps {
123
- stroke: IBorder.IStroke;
124
- range: IRange.Coords;
125
- points: number[];
126
- darkMode: boolean;
127
- /**
128
- * @deprecated
129
- */
130
- key: string;
131
- /**
132
- * Int Hint to tell the border the direction that it is rendering
133
- */
134
- isVertical?: boolean;
135
- /**
136
- * Shift the borders if greater than 2 width
137
- */
138
- shiftIfWide?: boolean;
139
- /**
140
- * Hint to tell render that we are rendering a small small
141
- */
142
- forceThinBorder?: boolean;
143
- /**
144
- * Used for generating corners for wide borders. If not provided then borders will simply overlap.
145
- */
146
- layout?: ICellLayout;
147
- /**
148
- * Used for generating corners for wide borders. If not provided then borders will simply overlap.
149
- */
150
- intersections?: {
151
- stroke: IBorder.IStroke;
152
- range: IRange.Coords;
153
- }[];
154
- }
155
-
156
- export declare interface BordersOverlayResults {
157
- /**
158
- * Array of functions that return components to overlay
159
- */
160
- renderOverlay?: (view: IGridView) => default_2.ReactNode;
161
- }
162
-
163
- /* Excluded from this release type: ChartAreaIcon */
164
-
165
- /* Excluded from this release type: ChartAreaStackedIcon */
166
-
167
- /* Excluded from this release type: ChartAreaStackedPercentIcon */
168
-
169
- /* Excluded from this release type: ChartBarIcon */
170
-
171
- /* Excluded from this release type: ChartBarStackedIcon */
172
-
173
- /* Excluded from this release type: ChartBarStackedPercentIcon */
174
-
175
- /* Excluded from this release type: ChartBubble3DIcon */
176
-
177
- /* Excluded from this release type: ChartBubbleIcon */
178
-
179
- /* Excluded from this release type: ChartColumnIcon */
180
-
181
- /* Excluded from this release type: ChartColumnStackedIcon */
182
-
183
- /* Excluded from this release type: ChartColumnStackedPercentIcon */
184
-
185
- /**
186
- * Placeholder for chart editors.
187
- */
188
- export declare const ChartEditor: default_2.NamedExoticComponent<Omit<ChartEditorProps, "ref"> & default_2.RefAttributes<IChartEditorElement>>;
189
-
190
- export declare interface ChartEditorAttributes {
191
- isChartEditor: () => true;
192
- }
193
-
194
- export declare interface ChartEditorProps extends MovableElementProps {
195
- chart: IChart;
196
- ref?: default_2.Ref<IChartEditorElement>;
197
- }
198
-
199
- /* Excluded from this release type: ChartLineIcon */
200
-
201
- /* Excluded from this release type: ChartLineMarkersIcon */
202
-
203
- /* Excluded from this release type: ChartLineStackedIcon */
204
-
205
- /* Excluded from this release type: ChartLineStackedMarkersIcon */
206
-
207
- /* Excluded from this release type: ChartLineStackedPercentIcon */
208
-
209
- /* Excluded from this release type: ChartLineStackedPercentMarkersIcon */
210
-
211
- /* Excluded from this release type: ChartPieDoughnutIcon */
212
-
213
- /* Excluded from this release type: ChartPieIcon */
214
-
215
- /* Excluded from this release type: ChartScatterLinesIcon */
216
-
217
- /* Excluded from this release type: ChartScatterLinesMarkersIcon */
218
-
219
- /* Excluded from this release type: ChartScatterLinesMarkersSmoothIcon */
220
-
221
- /* Excluded from this release type: ChartScatterLinesSmoothIcon */
222
-
223
- /* Excluded from this release type: ChartScatterMarkersIcon */
224
-
225
- /**
226
- * For providing Adjustable Color Commands additional rendering capabilities.
227
- */
228
- declare interface Color {
229
- readonly darkMode: boolean;
230
- readonly schemeLookup: IColor.SchemeLookup;
231
- readonly autoColor: IColor;
232
- readonly quickColor?: IColor;
233
- recentColors: readonly IColor[] | (() => readonly IColor[]);
234
- addRecentColor: (color: IColor) => readonly IColor[];
235
- clearRecentColors: () => void;
236
- onColorSelect: (color: IColor) => void;
237
- }
238
-
239
- export declare namespace CommandContext {
240
- export {
241
- Color,
242
- Border,
243
- NamedStyle,
244
- Table,
245
- Theme,
246
- NamedReference,
247
- ResizeHeaderOptions,
248
- ResizeHeaderContext,
249
- NewTable,
250
- SelectedRange,
251
- FormulaFunction,
252
- FindScopeOptions,
253
- FindReplaceOptions
254
- }
255
- }
256
-
257
- export declare const CornerTriangle: default_2.MemoExoticComponent<(props: CornerTriangleProps) => JSX.Element>;
258
-
259
- export declare interface CornerTriangleProps extends default_2.SVGProps<SVGSVGElement> {
260
- /**
261
- * @defaultValue AnchorLocation.TopLeft
262
- */
263
- anchorLocation?: AnchorLocation;
264
- /**
265
- * defaults based on corner
266
- */
267
- fill?: string;
268
- /**
269
- * The right sides of the triangle.
270
- * @defaultValue 7
271
- */
272
- size?: number;
273
- /**
274
- * inset within the cell
275
- * @defaultValue 1
276
- */
277
- inset?: number;
278
- cellWidth?: number;
279
- cellHeight?: number;
280
- darkMode?: boolean;
281
- propsPath?: default_2.SVGProps<SVGPathElement>;
282
- }
283
-
284
- export declare const createCellEditStateFromCell: (clean: () => ICell, dirty?: string) => EditState<() => ICell, string>;
285
-
286
- export declare const DefaultTaskPaneRegistry: TaskPaneRegistry;
287
-
288
- export declare const DocThemesContext: Context<IThemeCollection>;
289
-
290
- /**
291
- * This component takes a `themes` prop.
292
- * It makes the `themes` available down the React tree thanks to React context.
293
- * This component should preferably be used at **the root of your component tree**.
294
- */
295
- export declare const DocThemesProvider: (props: DocThemesProviderProps) => JSX.Element;
296
-
297
- export declare interface DocThemesProviderProps {
298
- /**
299
- * A custom list of DocThemes to use.
300
- */
301
- themes: IThemeCollection;
302
- children: default_2.ReactElement<any, string | default_2.JSXElementConstructor<any>>;
303
- }
304
-
305
- export declare const EditableLabel: default_2.NamedExoticComponent<Omit<EditableLabelProps, "ref"> & default_2.RefAttributes<IEditableLabelElement>>;
306
-
307
- export declare interface EditableLabelAttributes {
308
- startEdit(): void;
309
- cancel(): void;
310
- }
311
-
312
- export declare interface EditableLabelProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, "onSubmit" | "onChange"> {
313
- value?: string;
314
- styleHover?: default_2.CSSProperties;
315
- dragging?: boolean;
316
- disabled?: boolean;
317
- readOnly?: boolean;
318
- maxLength?: number;
319
- onChange?: (value: string) => void;
320
- onSubmit?: (value: string) => boolean | void;
321
- onCancel?: () => void;
322
- renderInput?: (props: any) => default_2.ReactElement<HTMLInputElement>;
323
- /**
324
- * Reference to the HTMLInputElement (or other) used for editing
325
- */
326
- ref?: default_2.Ref<IEditableLabelElement>;
327
- }
328
-
329
- export declare interface EditorStateAndCoords<CT, DT> {
330
- sheet: ISheet;
331
- coords: ICell.Coords;
332
- editState: EditState<CT, DT>;
333
- }
334
-
335
- /**
336
- * Placeholder for movable frames.
337
- */
338
- export declare const EmptyFrame: default_2.NamedExoticComponent<Omit<EmptyFrameProps, "ref"> & default_2.RefAttributes<IEmptyFrameElement>>;
339
-
340
- export declare interface EmptyFrameAttributes {
341
- isEmptyFrame: () => true;
342
- }
343
-
344
- export declare interface EmptyFrameProps extends MovableElementProps {
345
- description: string;
346
- ref?: default_2.Ref<IEmptyFrameElement>;
347
- }
348
-
349
- /**
350
- * The default FilterButton
351
- */
352
- export declare const FilterButton: (props: FilterButtonProps) => default_2.ReactElement;
353
-
354
- /**
355
- * Property for the filter button
356
- */
357
- export declare interface FilterButtonProps extends default_2.HTMLAttributes<HTMLElement> {
358
- renderBounds: Bounds;
359
- zoom: number;
360
- disabled: boolean;
361
- darkMode: boolean;
362
- filter: IAutoFilter.IColumn;
363
- onFilterButtonMouseDown: (e: default_2.MouseEvent<HTMLDivElement, MouseEvent>, filter: IAutoFilter.IColumn) => void;
364
- }
365
-
366
- /**
367
- * Used for the find/replace dialog.
368
- */
369
- declare interface FindReplaceOptions {
370
- /**
371
- * Options for find.
372
- */
373
- findOptions?: ICellRange.FindOptions;
374
- /**
375
- * If replacing with null then set to true.
376
- */
377
- replace?: boolean;
378
- /**
379
- * The text to replace the found text with.
380
- */
381
- replaceText?: string | null;
382
- /**
383
- * Options for replace.
384
- */
385
- replaceOptions?: IWorkbook.ReplaceOptions;
386
- /**
387
- * If true the operation will signal to the ui container to
388
- * autoFocus.
389
- *
390
- * @remarks
391
- * For replaceAll this is ignored.
392
- */
393
- autoFocus?: boolean;
394
- /**
395
- * Default value 'Sheet'
396
- */
397
- scope?: FindScopeOptions;
398
- }
399
-
400
- declare const FindScopeOptions: {
401
- /**
402
- * Search the entire workbook
403
- */
404
- readonly Workbook: "workbook";
405
- /**
406
- * Search the current sheet or range
407
- */
408
- readonly Sheet: "sheet";
409
- };
410
-
411
- declare type FindScopeOptions = typeof FindScopeOptions[keyof typeof FindScopeOptions];
412
-
413
- declare interface FormulaFunction {
414
- searchByCategory: (category: string) => Promise<IFunction[]>;
415
- }
416
-
417
- export declare interface IChartEditorElement extends HTMLDivElement, ChartEditorAttributes {
418
- }
419
-
420
- /**
421
- * Type returned via ref property
422
- */
423
- export declare interface IEditableLabelElement extends HTMLDivElement, EditableLabelAttributes {
424
- }
425
-
426
- export declare interface IEmptyFrameElement extends HTMLDivElement, EmptyFrameAttributes {
427
- }
428
-
429
- export declare interface IFrame {
430
- addListener: (listener: IFrameContainerListener) => RemoveListener;
431
- close: () => void;
432
- focus: (options?: FocusWindowOptions) => void;
433
- }
434
-
435
- export declare interface IFrameContainerListener {
436
- onShow?: () => void;
437
- onBeforeHide?: () => void | Promise<boolean>;
438
- onHide?: () => void;
439
- }
440
-
441
- export declare interface IMovableAreaElement extends HTMLDivElement, MovableAreaAttributes {
442
- }
443
-
444
- export declare interface IPictureEditorAttributes {
445
- isPictureEditor: () => true;
446
- }
447
-
448
- export declare interface IPictureEditorElement extends HTMLDivElement, IPictureEditorAttributes {
449
- }
450
-
451
- /**
452
- * Used by the Script editor to interface with the repo for the Scripts
453
- */
454
- export declare namespace IScriptEditor {
455
- /**
456
- * This is used by the Monaco Script editor and the command manager to enabled scripts to be
457
- * execute and saved.
458
- */
459
- export interface Context {
460
- /**
461
- * Add listeners to the container.
462
- *
463
- * @remarks
464
- * If this throws a listener save will be aborted.
465
- */
466
- addContainerListener(listener: IScriptEditor.ContainerListener): IListener.Remove;
467
- /**
468
- * Set by the script editor when a function is selected. This may be null.
469
- */
470
- setSelectedFunction(selected: Promise<IScriptEditor.SelectedFunction | null>): void;
471
- /**
472
- * Set by the script editor when a function is selected. This may be null.
473
- */
474
- quickInsertFunction(functionName: string): void;
475
- /**
476
- * Return the selected.
477
- *
478
- * @remarks
479
- * This is done because multiple clients share the same Context.
480
- */
481
- getSelectedFunction: () => Promise<IScriptEditor.SelectedFunction | null> | null;
482
- /**
483
- * The the script editor.
484
- */
485
- setEditor(editor: IScriptEditor.Editor): void;
486
- /**
487
- * Returns the script editor.
488
- *
489
- * @remarks
490
- * If the editor is not loaded this will return null.
491
- */
492
- getEditor: () => IScriptEditor.Editor | null;
493
- /**
494
- * Decode a range from an address. Will return null if unable to decode.
495
- *
496
- * @remarks
497
- * Used by the tooltips and range highlighting.
498
- */
499
- getRanges: (address: IWorkbook.RangesAddress) => ICellRanges | null;
500
- /**
501
- * Returns the IFunctionDescriptor Executable.
502
- *
503
- * @remarks
504
- * This is used to enable the UI to display the available functions.
505
- */
506
- getScripts(): IScript;
507
- /**
508
- * Save the source.
509
- *
510
- * @param source The source to save.
511
- */
512
- saveSource(source: string): Promise<IModule>;
513
- }
514
- export interface ContainerListener {
515
- /**
516
- * Hook to listen for save events.
517
- */
518
- onBeforeSave?: () => Promise<void> | void;
519
- /**
520
- * If the status of the script has changed.
521
- */
522
- onReadonlyChange?: () => void;
523
- /**
524
- * If the script has changed.
525
- */
526
- onScriptChange?: () => void;
527
- }
528
- /**
529
- * Implemented by the editor to allow for ui interactions.
530
- */
531
- export interface Editor {
532
- /**
533
- * Insert a snippet of text into the editor.
534
- *
535
- * @remarks
536
- * Inserts the snippet before the current function.
537
- */
538
- insertSnippet: (snippet: string) => void;
539
- /**
540
- * Closes the editor.
541
- * @returns A promise that resolves when the editor is closed.
542
- */
543
- close: () => Promise<void>;
544
- }
545
- /**
546
- * The current function that is selected.
547
- */
548
- export interface SelectedFunction {
549
- /**
550
- * The selected function.
551
- */
552
- name: string;
553
- /**
554
- * Needed for JIT.
555
- */
556
- source: string;
557
- }
558
- /**
559
- * Provides status of the editor.
560
- */
561
- export interface Status {
562
- /**
563
- * The message to display.
564
- */
565
- message: string;
566
- /**
567
- * The cursor position.
568
- */
569
- cursor: string;
570
- /**
571
- * If the script is unsaved.
572
- */
573
- dirty: boolean;
574
- }
575
- }
576
-
577
- /**
578
- * Type returned via ref property
579
- */
580
- export declare interface IScriptEditorElement extends ScriptEditorAttributes, HTMLDivElement {
581
- }
582
-
583
- /**
584
- * Attributes and methods available on the sheet element beyond the HTMLDivElement.
585
- */
586
- export declare type ISheetAttributes = {
587
- getGridElement: () => IGridElement;
588
- getRowHeaderElement: () => ISheetHeaderElement;
589
- getColumnHeaderElement: () => ISheetHeaderElement;
590
- rowHeaderHeight: () => number;
591
- colHeaderWidth: () => number;
592
- startEdit(event?: StartEditEvent): void;
593
- submitEdit(): void;
594
- cancelEdit(): void;
595
- isEditing: boolean;
596
- contains(element: Node | null): boolean;
597
- invalidate: (coords?: ICell.Coords | null) => void;
598
- /**
599
- * Focus the sheet
600
- */
601
- focusSheet(options?: FocusOptions): void;
602
- /**
603
- * Focus a specific float.
604
- * If not provided will focus the first selected float.
605
- *
606
- * @remarks
607
- * The focusMovable does not scroll.
608
- * TODO - have this honor focus scroll options.
609
- */
610
- focusMovable(movable?: IMovable): Promise<boolean>;
611
- getSheet: () => ISheet;
612
- /**
613
- * For runtime introspection
614
- */
615
- isSheetElement: () => true;
616
- };
617
-
618
- /**
619
- * Type returned via ref property
620
- */
621
- export declare interface ISheetElement extends HTMLDivElement, ISheetAttributes {
622
- }
623
-
624
- declare type ISheetHeaderAttributes = {
625
- forceRender: () => void;
626
- getGridElement: () => IGridElement;
627
- };
628
-
629
- /**
630
- * Type returned via ref property
631
- */
632
- declare interface ISheetHeaderElement extends HTMLDivElement, ISheetHeaderAttributes {
633
- }
634
-
635
- export declare interface ITaskPaneArea {
636
- /**
637
- * This will show and focus a task pane by key.
638
- * @param key The task pane key.
639
- */
640
- activateTaskPane: (key: string, options?: ActivateFrameOptions) => void;
641
- }
642
-
643
- export declare interface ITaskPaneAreaElement extends HTMLDivElement, ITaskPaneArea {
644
- }
645
-
646
- export declare interface ITaskPaneRegistry {
647
- /**
648
- * Registers a task pane container.
649
- * @param entry The task pane entry.
650
- * @param replace Whether to replace an existing task pane. Default is false.
651
- */
652
- registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
653
- /**
654
- * Unregister a task pane container.
655
- *
656
- * @param key The unique key for the task pane.
657
- */
658
- unregisterTaskPane(key: string): void;
659
- /**
660
- * Gets a registered task pane container.
661
- *
662
- * @param key The unique key for the task pane.
663
- * @returns The registered task pane or null if not found.
664
- */
665
- getRegisteredTaskPane(key: string): TaskPaneEntry | null;
666
- /**
667
- * Finds contributions for a specific entry.
668
- * @param contributionKey
669
- */
670
- findContributions(contributionKey: string): TaskPaneEntry[];
671
- }
672
-
673
- export declare interface ITaskPaneStrip extends HTMLDivElement, TaskPaneStripAttributes {
674
- }
675
-
676
- export { LicenseDetails }
677
-
678
- export { LicenseManager }
679
-
680
- export declare const LogoNoPaddingIcon: (props: default_2.SVGProps<SVGSVGElement>) => JSX.Element;
681
-
682
- /* Excluded from this release type: LogoTextNoPaddingIcon */
683
-
684
- export declare interface ModalFrame extends IFrame {
685
- onCancel?: () => void;
686
- onDone?: (results?: any) => void;
687
- }
688
-
689
- export declare const MovableArea: default_2.NamedExoticComponent<Omit<MovableAreaProps, "ref"> & default_2.RefAttributes<IMovableAreaElement>>;
690
-
691
- export declare interface MovableAreaAttributes {
692
- /**
693
- * Will put focus on the the movable object.
694
- * @remarks
695
- * This does not handle scrolling. This must be done by the virtual container.
696
- */
697
- focusMovable: (movable: IMovable) => Promise<boolean>;
698
- /**
699
- * For runtime introspection.
700
- */
701
- isMovableArea: () => true;
702
- }
703
-
704
- export declare interface MovableAreaProps extends default_2.HTMLAttributes<HTMLDivElement> {
705
- /**
706
- * The container to retrieve movable objects
707
- */
708
- movables: IMovableCollection;
709
- /**
710
- * The container view to retrieve selection information about the movables.
711
- */
712
- movablesView: IMovableSelection;
713
- /**
714
- * Callback to render the movable.
715
- *
716
- * @param props MovableElementProps
717
- * @returns A React Element representing the IMovable.
718
- */
719
- renderMovable: (props: MovableElementProps) => default_2.ReactElement;
720
- /**
721
- * The gridView
722
- */
723
- view: IGridView;
724
- /**
725
- * If provided this will be used start and stop transactions on being/end move.
726
- */
727
- transactional: ITransaction.ITransactional;
728
- /**
729
- * Called when the final movable is unselected.
730
- */
731
- onUnFocus?: () => void;
732
- /**
733
- * Called when the final movable is unselected.
734
- */
735
- onFocus?: () => void;
736
- /**
737
- * If disabled then movable selection will not be allowed and frames will be passed disabled.
738
- * @defaultValue false
739
- */
740
- disabled?: boolean;
741
- /**
742
- * If disabled then unable to move.
743
- * @defaultValue false
744
- */
745
- disableDrag?: boolean;
746
- /**
747
- * If disabled then unable to resize.
748
- * @defaultValue false
749
- */
750
- disableResize?: boolean;
751
- /**
752
- * Provider the anchor element to render.
753
- */
754
- renderDirections?: string[];
755
- /**
756
- * Called after the first render of a movable.
757
- */
758
- onFirstRender?: () => void;
759
- /**
760
- * Forwards the ref to the underlying element.
761
- */
762
- ref?: default_2.Ref<IMovableAreaElement>;
763
- }
764
-
765
- export declare interface MovableElementProps extends React.HTMLAttributes<HTMLElement> {
766
- movable?: IMovable;
767
- /**
768
- * The view to use for the movable.
769
- * // TODO - this should not be the IGridView, rather a simpler interface that doesn't have a grid dependency.
770
- */
771
- view: IGridView;
772
- /**
773
- * Called when the movable is hidden from view.
774
- *
775
- * @remarks
776
- * * If this returns a false the movable will not be unmounted but will
777
- * still have a style opacity property of 0 (and pointerEvents of none).
778
- * * Keeping a movable mounted is useful for elements that take a long of time to render but
779
- * increase the memory footprint of the application.
780
- */
781
- onHide: (hide: (movable: IMovable) => boolean | Promise<boolean> | void) => void;
782
- /**
783
- * Call when the movable is returned to the view.
784
- */
785
- onShow: (show: (movable: IMovable) => void) => void;
786
- /**
787
- * If true then the component is disabled.
788
- * @defaultValue false
789
- * @remarks
790
- * To see if an element is readonly check the IMovable.isProtected() method.
791
- */
792
- disabled?: boolean;
793
- /**
794
- * Indicator for dragging.
795
- * @defaultValue false
796
- */
797
- isDragging?: boolean;
798
- }
799
-
800
- declare interface NamedReference {
801
- /** used when creating new names */
802
- selection: () => ICellRanges;
803
- getNames: () => INamedCollection;
804
- }
805
-
806
- declare interface NamedStyle {
807
- readonly named: () => IStyle.INamed;
808
- readonly styles: () => IStyleCollection;
809
- readonly bodyStyle: () => GridSurfaceStyle;
810
- createTemporaryCell: (update: ICell.Update) => ICell;
811
- }
812
-
813
- declare interface NewTable {
814
- ranges: ICellRanges;
815
- hasHeader?: boolean;
816
- }
817
-
818
- export declare const PictureEditor: default_2.NamedExoticComponent<Omit<PictureEditorProps, "ref"> & default_2.RefAttributes<IPictureEditorElement>>;
819
-
820
- export declare interface PictureEditorProps extends MovableElementProps {
821
- /**
822
- * The underlying model for the picture.
823
- */
824
- picture: IPicture;
825
- /**
826
- * Usable for alt text or loading
827
- */
828
- description?: string;
829
- /**
830
- * Provide an optional loading panel.
831
- */
832
- loadingPanel?: default_2.ReactNode;
833
- /**
834
- * Ref for the Element.
835
- */
836
- ref?: default_2.Ref<IPictureEditorElement>;
837
- }
838
-
839
- export declare interface RangeContainer {
840
- getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
841
- }
842
-
843
- declare interface ResizeHeaderContext {
844
- getOrientation(): IRange.Orientation;
845
- getUnitText(): string;
846
- toUnits?(value: number): number;
847
- toPixels?(value: number): number;
848
- }
849
-
850
- declare interface ResizeHeaderOptions {
851
- size: number;
852
- unit?: string;
853
- }
854
-
855
- /**
856
- * This tracks the selection of the sheet and
857
- * updates the a named range editor and a sheet cell editor.
858
- */
859
- export declare const ScriptEditor: default_2.FC<ScriptEditorProps & ScriptEditorAttribute>;
860
-
861
- export declare type ScriptEditorAttribute = {
862
- ref?: default_2.Ref<IScriptEditorElement>;
863
- };
864
-
865
- export declare interface ScriptEditorAttributes {
866
- getEditor(): IScriptEditor.Editor;
867
- isScriptEditorElement(): true;
868
- close(): void;
869
- }
870
-
871
- /**
872
- * Move this to another project. Automation-Editor
873
- */
874
- export declare interface ScriptEditorProps extends default_2.HTMLAttributes<HTMLElement> {
875
- /**
876
- * Command Map
877
- */
878
- commands?: ICommands.IGroup;
879
- /**
880
- * If the values can be modified
881
- */
882
- readOnly?: boolean;
883
- /**
884
- * Handle to the frame
885
- */
886
- frame?: IFrame;
887
- /**
888
- * Allows for component to be autoFocused.
889
- */
890
- /**
891
- * If provided then a custom loading panel will be used.
892
- */
893
- loadingPanel?: default_2.ReactElement;
894
- /**
895
- * Called for status change events.
896
- */
897
- onStatusChange?: (status: Partial<IScriptEditor.Status>) => void;
898
- /**
899
- * Monaco theme
900
- */
901
- darkMode?: boolean;
902
- }
903
-
904
- declare interface SelectedRange {
905
- range: ICellRange;
906
- cell?: ICell.Address;
907
- }
908
-
909
- /**
910
- * SheetCellEditor
911
- * Controlled cell editor for updating state.
912
- */
913
- export declare const SheetCellEditor: default_2.NamedExoticComponent<Omit<SheetCellEditorProps, "ref"> & default_2.RefAttributes<ICellEditorElement>>;
914
-
915
- export declare interface SheetCellEditorProps extends CellEditorProps<() => ICell, string> {
916
- /**
917
- * Used for commands will be removed.
918
- */
919
- sheet?: ISheet;
920
- /**
921
- * Used for commands will be removed.
922
- */
923
- activeCoords?: ICell.Coords | null;
924
- /**
925
- * The parent commandGroup
926
- */
927
- commands?: ICommands.IGroup;
928
- /**
929
- * Styling for the grid that this editor is one.
930
- * This is used to determine darkMode only but should be used for other items..
931
- */
932
- bodyStyle?: GridSurfaceStyle;
933
- /**
934
- * Returns the number of lines to display. The minimum is 1.
935
- * @defaultValue 'The number of lines required to display the text'
936
- */
937
- linesVisible?: number;
938
- }
939
-
940
- /**
941
- * CellRender that has advanced rendering for an ICell.
942
- * Some of the features are:
943
-
944
- * 1. Fill (Solid, Gradient, Pattern)
945
- * 2. Horizontal Alignment (Left, Right, Center, Justify)
946
- * 3. Vertical Alignment (Top, Middle, Bottom)
947
- * 4. Spacing formatting (*, ?)
948
- * 5. Decimal rounding
949
- * 6. Overflow Character
950
- * 7. Text Wrapping
951
- * 8. Text Rotation
952
- * 8. Indentions
953
- * 9. Text Color
954
- * 10. Underline (Accounting, Standard, Double, Single)
955
- * 11. Scaling
956
- * 12. Super/Subscript
957
- * 13. Indicators (Warning, Comments, Error, etc)
958
- * 14. Filter buttons
959
- * 15. Formulas
960
- *
961
- * @param props
962
- */
963
- export declare const SheetCellRenderer: default_2.FC<SheetCellRendererProps>;
964
-
965
- export declare interface SheetCellRendererProps extends CellRendererProps<ICell> {
966
- /**
967
- * If true, prefer to show the formulas over values
968
- */
969
- showFormulas?: boolean;
970
- /**
971
- * If true, show zero values
972
- */
973
- showZeros?: boolean;
974
- /**
975
- * Ability to query the theme colors.
976
- * Note - There are also css variables that can be used to style using doc theme colors
977
- * @see https://www.sheetxl.com/docs
978
- */
979
- docTheme?: ITheme;
980
- /**
981
- * Generalize application theming. The docTheme is a specific theme for the sheet.
982
- */
983
- bodyStyle?: GridSurfaceStyle;
984
- /**
985
- * An optimization that tells the render all of the styling is normal. And doesn't need to
986
- * be overwritten.
987
- */
988
- normalStyle?: IStyle;
989
- /**
990
- * Callback for when a link has been clicked.
991
- *
992
- * @param event - The mouse event
993
- */
994
- onLinkMouseDown?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
995
- /**
996
- * Callback for when a filter has been clicked.
997
- *
998
- * @param event - The mouse event
999
- */
1000
- onFilterButtonMouseDown?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>, filter: IAutoFilter.IColumn) => void;
1001
- /**
1002
- * Custom properties for the filter button
1003
- */
1004
- propsFilterButton?: FilterButtonProps;
1005
- /**
1006
- * Callback for creating a custom filter button.
1007
- *
1008
- * @returns A React Element representing the FilterButton.
1009
- */
1010
- renderFilterButton?: (props: FilterButtonProps) => default_2.ReactElement;
1011
- }
1012
-
1013
- export declare interface SheetCopyPasteProps extends Omit<CopyPasteProps, "source" | "target"> {
1014
- /**
1015
- * Sheet element
1016
- */
1017
- element: () => HTMLElement;
1018
- sheet: ISheet;
1019
- sheetView: ISheetView;
1020
- /**
1021
- * Allow users to customize selected cells design
1022
- */
1023
- renderSelection?: (props: SelectionProps) => default_2.ReactNode;
1024
- /**
1025
- * Color for the foreground
1026
- */
1027
- copyForegroundColor?: string;
1028
- cutForegroundColor?: string;
1029
- /**
1030
- * Color for the background
1031
- */
1032
- copyBackgroundColor?: string;
1033
- cutBackgroundColor?: string;
1034
- }
1035
-
1036
- export declare interface SheetCopyPasteResults extends CopyPasteResults {
1037
- /**
1038
- * Array of functions that return components to overlay
1039
- */
1040
- overlays?: (view: IGridView) => default_2.ReactNode[];
1041
- }
1042
-
1043
- /**
1044
- * @see ISheet
1045
- *
1046
- * UI representation for ISheet.
1047
- *
1048
- */
1049
- export declare const SheetElement: default_2.NamedExoticComponent<Omit<SheetProps, "ref"> & default_2.RefAttributes<ISheetElement>>;
1050
-
1051
- /**
1052
- * TODO - We may not need the grid ref if we use the headers directly to measure.
1053
- */
1054
- declare interface SheetHeaderProps extends default_2.HTMLAttributes<HTMLDivElement> {
1055
- /**
1056
- * The underlying data model for the SheetHeader.
1057
- */
1058
- sheetHeader: ISheetHeader;
1059
- /**
1060
- * Access grid functions
1061
- */
1062
- gridRef: default_2.RefObject<IGridElement | null>;
1063
- /**
1064
- * Allow the sheet to be accessed.
1065
- */
1066
- sheetElement: ISheetElement;
1067
- /**
1068
- * The height or width in the opposite direction (for example a column headers height)
1069
- */
1070
- oppositeSize: number;
1071
- containerWidth: number;
1072
- containerHeight: number;
1073
- /**
1074
- * FrozenEdge
1075
- */
1076
- freezeStart?: number | FrozenEdge;
1077
- /**
1078
- * Parent commands for the sheet
1079
- */
1080
- commands?: ICommands.IGroup;
1081
- /**
1082
- * The selectionResults from use hook
1083
- */
1084
- selectionMain?: SelectionResults;
1085
- gridStyle?: GridStyle;
1086
- /**
1087
- * @see HeaderRenderer#verticalPadding
1088
- */
1089
- verticalPadding?: number;
1090
- /**
1091
- * @see HeaderRenderer#horizontalPadding
1092
- */
1093
- horizontalPadding?: number;
1094
- /** Fired when a contentMenu is requested */
1095
- onSheetContextMenu?: (location: SheetLocation) => void;
1096
- onResizeHeadersStart?: (index: number, prevSize: number, description: string) => void;
1097
- /**
1098
- * Called during resize of a header.
1099
- * If there is a negative newSize then these headers will have been hidden
1100
- * This is for the specific header being resized.
1101
- * Note - Other headers may also have been resized if hiding
1102
- */
1103
- onResizeHeaders?: (index: number, newSize: number, prevSize: number) => void;
1104
- /**
1105
- * Called after resize of a header.
1106
- * If there is a positive newSize and a single selection then those
1107
- * headers will also have been resized.
1108
- *
1109
- * Note - Other colHeaderRuns may also have been resized if expanding
1110
- * Note - If this was autoFit then newSize and prevSize will be null.
1111
- */
1112
- onResizeHeadersEnd?: (index: number, newSize: number, description: string) => void;
1113
- onResizeHeadersDown?: (index: number, size: number) => void;
1114
- onResizeHeadersUp?: (index: number) => void;
1115
- /**
1116
- * Override the default headerText. If not provided then typical Sheet labeling is used.
1117
- */
1118
- headerText?: (index: number) => string;
1119
- /**
1120
- * Scroll location
1121
- */
1122
- scrollPoint?: Partial<TopLeft>;
1123
- /**
1124
- * Callback when selection is manually started
1125
- */
1126
- onSelectionStart?: () => void;
1127
- /**
1128
- * Callback when selection is manually changed
1129
- */
1130
- onSelectionEnd?: () => void;
1131
- /**
1132
- * Ref for the HTMLDivElement
1133
- */
1134
- ref?: default_2.Ref<ISheetHeaderElement>;
1135
- }
1136
-
1137
- export declare interface SheetLocation {
1138
- clientX: number;
1139
- clientY: number;
1140
- originalEvent?: any;
1141
- clientWidth?: number;
1142
- clientHeight?: number;
1143
- rowIndex?: number;
1144
- colIndex?: number;
1145
- }
1146
-
1147
- export declare interface SheetPasteOptions extends ReferenceableClipboard.PasteOptions, ICellRange.CopyOptions {
1148
- }
1149
-
1150
- /**
1151
- * Props for the SheetElement component.
1152
- */
1153
- export declare interface SheetProps extends React.HTMLAttributes<HTMLDivElement> {
1154
- /**
1155
- * The `ISheet` to render.
1156
- */
1157
- sheet: ISheet;
1158
- /**
1159
- * Style used for grid
1160
- */
1161
- gridStyle?: GridStyle;
1162
- /**
1163
- * Style used for headers
1164
- */
1165
- headersStyle?: GridStyle;
1166
- /**
1167
- * Show the row headers
1168
- */
1169
- showRowHeaders?: boolean;
1170
- /**
1171
- * Properties for the row headers
1172
- */
1173
- propsRowHeader?: Partial<SheetHeaderProps>;
1174
- /**
1175
- * Show the column headers
1176
- */
1177
- showColumnHeaders?: boolean;
1178
- /**
1179
- * Properties for the column headers
1180
- */
1181
- propsColumnHeader?: Partial<SheetHeaderProps>;
1182
- /**
1183
- * Show the scrollbars
1184
- */
1185
- showScrollbars?: boolean;
1186
- /**
1187
- * Allow for customizations of scrollbar
1188
- */
1189
- propsScrollPane?: ScrollPaneProps;
1190
- /**
1191
- * Fired when the view port changes.
1192
- * This is in pixel coordinates and slightly different then viewable cells because off screen location bounds could change
1193
- */
1194
- onViewportChange?: (view: ScrollableViewport) => void;
1195
- /**
1196
- * Fire when a contentMenu is requested
1197
- */
1198
- onSheetContextMenu?: (location: SheetLocation) => void;
1199
- /**
1200
- * Called once when the sheet has been loaded but before it is rendered.
1201
- */
1202
- onElementLoad?: () => void;
1203
- /**
1204
- * Inject custom editors based on a cell.
1205
- * This should not return null but rather can canEdit.
1206
- * This is called during placement after scrolling and other bookkeeping has occurred
1207
- */
1208
- getCellEditor?: (props: CellEditorProps<() => ICell, string>, coords: ICell.Coords) => React.ReactElement<CellEditorProps<() => ICell, string>>;
1209
- /**
1210
- * Parent commands for the sheet
1211
- */
1212
- commands?: ICommands.IGroup;
1213
- /**
1214
- * Notify that there is a new repeatable command
1215
- */
1216
- onRepeatCommandChange?: (command: ICommand<any, any>) => void;
1217
- /**
1218
- * Fixed component that is layered within the viewport.
1219
- *
1220
- * @remarks Useful for dialogs and items that you want to place relative to the grid.
1221
- */
1222
- viewportComponent?: React.ReactNode;
1223
- /**
1224
- * Render components for movable elements.
1225
- *
1226
- * @param props - {@link MovableElementProps}
1227
- * @returns A React Element representing the IMovable.
1228
- */
1229
- renderMovable?: (props: MovableElementProps) => React.ReactElement;
1230
- /**
1231
- * Render an element directly onto a gridView.
1232
- */
1233
- overlays?: ((view: IGridView) => React.ReactNode)[];
1234
- /**
1235
- * To show the tooltip
1236
- *
1237
- * @param props
1238
- */
1239
- onShowTooltip?: (props: IShowToolTipProperties) => void;
1240
- onShowColumnTooltip?: (props: IShowToolTipProperties) => void;
1241
- onShowRowTooltip?: (props: IShowToolTipProperties) => void;
1242
- onCloseTooltip?: () => void;
1243
- /**
1244
- * Customize the grid.
1245
- *
1246
- * @remarks
1247
- * Not all props are passed through.
1248
- */
1249
- propsGrid?: GridProps;
1250
- /**
1251
- * Allow for custom rendering of cell props.
1252
- *
1253
- * @remarks
1254
- * This is used to customize filterButton popup action and any other customizations desired.
1255
- * This does not invalidate the rendering
1256
- */
1257
- propsCellRender?: Partial<SheetCellRendererProps>;
1258
- /**
1259
- * Ref to the sheet element.
1260
- */
1261
- ref?: React.Ref<ISheetElement>;
1262
- }
1263
-
1264
- export declare const SheetScrollbar: default_2.NamedExoticComponent<Omit<SheetScrollbarProps, "ref"> & default_2.RefAttributes<IScrollbarElement>>;
1265
-
1266
- export declare interface SheetScrollbarProps extends VirtualScrollbarProps {
1267
- /**
1268
- * The `ISheet` for the given scrollbar.
1269
- */
1270
- sheet: ISheet;
1271
- /**
1272
- * The direction of the scrollbar.
1273
- */
1274
- orientation: ScrollbarOrientation;
1275
- /**
1276
- * @defaultValue false
1277
- */
1278
- showCustomScrollButtons?: boolean;
1279
- /**
1280
- * To show the tooltip
1281
- * @param properties
1282
- */
1283
- onShowTooltip?: (properties: IShowToolTipProperties) => void;
1284
- /**
1285
- * Called to close the tooltip. Required is onShowTip is provided
1286
- */
1287
- onCloseTooltip?: () => void;
1288
- }
1289
-
1290
- /**
1291
- * Render a grid border using a border property as an input. Useful
1292
- * when wanting to render either a single cell or a border template.
1293
- * All cells are the same height/width.
1294
- */
1295
- export declare const StaticBorderRenderer: default_2.MemoExoticComponent<(props: StaticBorderRendererProps) => JSX.Element>;
1296
-
1297
- export declare interface StaticBorderRendererProps extends default_2.HTMLAttributes<HTMLDivElement> {
1298
- /**
1299
- * Returns a border for the given value and index.
1300
- */
1301
- getBorderAt?: (value: any, index: number) => IBorder;
1302
- rowCount?: number;
1303
- columnCount?: number;
1304
- /**
1305
- * Allow for the border width to be set.
1306
- * If this is not set then the border width will be the same as the cell size.
1307
- * Note - Measuring the child will need to wait until a render which can cause a flicker
1308
- * @defaultValue childSize
1309
- */
1310
- width?: number;
1311
- /**
1312
- * Allow for the border height to be set.
1313
- * If this is not set then the border width will be the same as the cell size.
1314
- * Note - Measuring the child will need to wait until a render which can cause a flicker
1315
- * @defaultValue childSize
1316
- */
1317
- height?: number;
1318
- darkMode?: boolean;
1319
- forceThinBorder?: boolean;
1320
- }
1321
-
1322
- export declare const StyledStrokePath: (props: StyledStrokePathProps) => default_2.ReactElement;
1323
-
1324
- export declare interface StyledStrokePathProps extends default_2.SVGProps<SVGPathElement> {
1325
- dashArray?: number[];
1326
- isDouble?: boolean;
1327
- isAngled?: boolean;
1328
- dashArrayAdditional?: number[];
1329
- length?: number;
1330
- width?: number;
1331
- offsetX?: number;
1332
- offsetY?: number;
1333
- isVertical?: boolean;
1334
- }
1335
-
1336
- export declare const Tab: default_2.NamedExoticComponent<TabProps & default_2.RefAttributes<HTMLDivElement>>;
1337
-
1338
- declare interface Table {
1339
- readonly table: () => ITable;
1340
- readonly styles: () => IStyleCollection;
1341
- readonly bodyStyle: () => GridSurfaceStyle;
1342
- /**
1343
- * Need so that we can add the table to the names.
1344
- */
1345
- getNames: () => INamedCollection;
1346
- }
1347
-
1348
- export declare interface TabProps extends Omit<default_2.HTMLAttributes<HTMLElement>, "onSubmit" | "onChange"> {
1349
- value: any;
1350
- index: number;
1351
- editing: boolean;
1352
- editable: boolean;
1353
- disabled: boolean;
1354
- selectedIndex: number;
1355
- background: string;
1356
- activeColor?: IColor;
1357
- borderColor?: string | IColor;
1358
- borderWidth?: number;
1359
- dragging: boolean;
1360
- }
1361
-
1362
- /**
1363
- * TabStrip component for displaying and managing tabs.
1364
- */
1365
- export declare const TabStrip: default_2.NamedExoticComponent<TabStripProps & default_2.RefAttributes<TabStripRef>>;
1366
-
1367
- export declare interface TabStripProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, "onSubmit" | "onChange"> {
1368
- selectedTabIndex: number;
1369
- tabNames: string[];
1370
- onSelectedTabIndexChange?: (index: number) => void;
1371
- onTabNameChange?: (index: number, tabName: string) => void;
1372
- onTabMove?: (indexFrom: number, indexTo: number) => void;
1373
- renderScrollButtonStart?: (props: ScrollButtonProps) => default_2.ReactElement;
1374
- renderScrollButtonEnd?: (props: ScrollButtonProps) => default_2.ReactElement;
1375
- renderScrollButtonEdge?: (props: ScrollButtonProps) => default_2.ReactElement;
1376
- renderTabButton?: (props: TabProps) => default_2.ReactElement<any>;
1377
- renderTabDivider?: (props: default_2.HTMLAttributes<HTMLElement> & default_2.Attributes) => default_2.ReactElement;
1378
- propsEditLabel?: EditableLabelProps;
1379
- disabled?: boolean;
1380
- disableDrag?: boolean;
1381
- /**
1382
- * Default background color of tabs
1383
- */
1384
- background?: string;
1385
- /**
1386
- * Currently '2022' css does not allow for scrollPanes to be hidden in one axis and overflow in another.
1387
- * To support tab scrolling and create a visual notch for the selected tab
1388
- * We create a border/divider for all elements except the selected.
1389
- */
1390
- borderWidth?: number;
1391
- borderColor?: string;
1392
- activeColor?: IColor;
1393
- }
1394
-
1395
- export declare interface TabStripRef extends HTMLDivElement {
1396
- startEdit(index: number): void;
1397
- cancel(index: number): void;
1398
- }
1399
-
1400
- /**
1401
- * The TaskPaneArea is a React component that renders multiple task panes.
1402
- *
1403
- * Container component implements 2 interfaces. If
1404
- * implements the ITaskPaneArea interface to be given to the TaskPaneProvider
1405
- * and it implement the ITaskPaneParent to be given to the TaskPane component.
1406
- * This provides a simple implementation but can be swapped out later.
1407
- */
1408
- export declare const TaskPaneArea: default_2.NamedExoticComponent<Omit<TaskPaneAreaProps<any>, "ref"> & default_2.RefAttributes<ITaskPaneAreaElement>>;
1409
-
1410
- export declare interface TaskPaneAreaProps<T = any> extends default_2.HTMLAttributes<HTMLDivElement> {
1411
- /**
1412
- * The model to pass to taskpane
1413
- */
1414
- model?: T;
1415
- /**
1416
- * The commands to use for the toolbar.
1417
- */
1418
- commands?: ICommands.IGroup;
1419
- /**
1420
- * Called when the task pane is should open.
1421
- *
1422
- * @remarks
1423
- * This is called when the first task pane is activated but it does not actually open.
1424
- */
1425
- onOpen?: () => void;
1426
- /**
1427
- * Called when the task pane is closed.
1428
- *
1429
- * @remarks
1430
- * This is called when the last task pane is deactivated but it does not actually close.
1431
- */
1432
- onClose?: () => void;
1433
- /**
1434
- * Props that can be injected to pane
1435
- */
1436
- propsPane?: default_2.HTMLAttributes<HTMLDivElement>;
1437
- /**
1438
- * Allows users to Wrap pane children in Top level Context
1439
- */
1440
- wrapperPane?: (children: default_2.ReactNode) => default_2.ReactNode;
1441
- /**
1442
- * Wrap frame in a context
1443
- */
1444
- wrapperFrame?: (children: default_2.ReactNode) => default_2.ReactNode;
1445
- /**
1446
- * Props that can be injected to the frame
1447
- */
1448
- propsFrame?: default_2.HTMLAttributes<HTMLDivElement>;
1449
- /**
1450
- * Override the default title renderer.
1451
- *
1452
- * @remarks
1453
- * If the registry also provides a custom title renderer that will be used instead.
1454
- */
1455
- renderTaskPanelTitle?(props: TaskPaneTitleProps): default_2.ReactElement;
1456
- /**
1457
- * Override the default task pane strip renderer.
1458
- *
1459
- */
1460
- renderTaskPaneStrip?(props: TaskPaneStripProps): default_2.ReactElement;
1461
- /**
1462
- * Allow for custom registry of task panes.
1463
- */
1464
- registry?: ITaskPaneRegistry;
1465
- /**
1466
- * If true always show the strip even with one pane.
1467
- */
1468
- alwaysShowStrip?: boolean;
1469
- /**
1470
- * Reference to the underlying element.
1471
- */
1472
- ref?: default_2.Ref<ITaskPaneAreaElement>;
1473
- }
1474
-
1475
- export declare interface TaskPaneEntry {
1476
- /**
1477
- * The unique key for the task pane.
1478
- *
1479
- * @remarks
1480
- * * Must not change.
1481
- */
1482
- readonly key: string;
1483
- /**
1484
- * The command paths to use to open the task pane.
1485
- *
1486
- * @remarks
1487
- * * Must not change.
1488
- * If this is not provided the task pane can only be opened programmatically.
1489
- */
1490
- readonly contributionPoints?: string[];
1491
- /**
1492
- * The title to display to identify the task pane.
1493
- */
1494
- getTitle(): string;
1495
- /**
1496
- * The icon to display to identify the task pane.
1497
- *
1498
- * @remarks
1499
- * This can be either a string (iconKey) or a React element.
1500
- */
1501
- getIcon?(): React.ReactElement | string;
1502
- /**
1503
- * Renders the task pane.
1504
- *
1505
- * @param props The props for the task pane.
1506
- * @param ref The ref to the task pane container.
1507
- */
1508
- renderTaskPane(props: TaskPaneProps, ref: React.Ref<HTMLDivElement>): React.ReactElement;
1509
- /**
1510
- * Optional function to render a custom title for the task pane.
1511
- */
1512
- renderTaskPanelTitle?(props: TaskPaneTitleProps): React.ReactElement;
1513
- createCommand?(taskPaneArea: ITaskPaneArea): ICommand;
1514
- /**
1515
- * Optional function to create a button that can be placed in the command bar.
1516
- *
1517
- * @remarks
1518
- * If not provided a default button will be created.
1519
- */
1520
- createCommandButton?(props: CommandButtonProps): React.ReactElement;
1521
- }
1522
-
1523
- export declare interface TaskPaneProps<T = any> {
1524
- /**
1525
- * The key used to register the taskPane.
1526
- */
1527
- entryKey: string;
1528
- model?: T;
1529
- frame?: IFrame;
1530
- commands?: ICommands.IGroup;
1531
- }
1532
-
1533
- export declare const TaskPaneProvider: default_2.FC<TaskPaneProviderProps>;
1534
-
1535
- /**
1536
- * Context provider for task panes. Allows custom task pane manager
1537
- * to be provided to components within the provider tree.
1538
- *
1539
- * ```tsx
1540
- * <TaskPaneProvider
1541
- * renderArea={(props) => <TaskPaneArea {...props} />}
1542
- * onUpdateArea={(area) => { }}
1543
- * >
1544
- * <App />
1545
- * </TaskPaneProvider>
1546
- * ```
1547
- */
1548
- export declare interface TaskPaneProviderProps {
1549
- children: ReactNode;
1550
- renderArea: (props: TaskPaneAreaProps) => default_2.ReactElement<ITaskPaneAreaElement>;
1551
- onUpdateArea: (area: default_2.ReactElement<ITaskPaneAreaElement>) => void;
1552
- registry?: ITaskPaneRegistry;
1553
- }
1554
-
1555
- declare class TaskPaneRegistry implements ITaskPaneRegistry {
1556
- protected _taskPanes: Map<string, TaskPaneEntry>;
1557
- /** @inheritdoc ITaskPaneRegistry.registerTaskPane */
1558
- registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
1559
- /** @inheritdoc ITaskPaneRegistry.unregisterTaskPane */
1560
- unregisterTaskPane(key: string): void;
1561
- /** @inheritdoc ITaskPaneRegistry.getRegisteredTaskPane */
1562
- getRegisteredTaskPane(key: string): TaskPaneEntry | null;
1563
- findContributions(contributionKey: string): TaskPaneEntry[];
1564
- }
1565
-
1566
- export declare const TaskPaneStrip: default_2.NamedExoticComponent<Omit<TaskPaneStripProps, "ref"> & default_2.RefAttributes<ITaskPaneStrip>>;
1567
-
1568
- export declare interface TaskPaneStripAttributes {
1569
- isTaskPaneStrip: () => true;
1570
- }
1571
-
1572
- export declare interface TaskPaneStripProps extends Omit<default_2.HTMLAttributes<HTMLElement>, 'onSelect' | 'selected'> {
1573
- taskPanes: string[];
1574
- onSelect(key: string): void;
1575
- selected: string;
1576
- /**
1577
- * Allow for custom registry of task panes.
1578
- */
1579
- registry?: ITaskPaneRegistry;
1580
- /**
1581
- * If true, only show icons in the strip (no text).
1582
- */
1583
- iconsOnly?: boolean;
1584
- /**
1585
- * Ref to the task pane strip element.
1586
- */
1587
- ref?: default_2.Ref<ITaskPaneStrip>;
1588
- }
1589
-
1590
- export declare const TaskPaneTitle: default_2.NamedExoticComponent<Omit<TaskPaneTitleProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
1591
-
1592
- export declare interface TaskPaneTitleProps extends Omit<default_2.HTMLAttributes<HTMLElement>, 'title'> {
1593
- title: default_2.ReactNode;
1594
- icon: default_2.ReactNode;
1595
- onClose: () => void;
1596
- readOnly: boolean;
1597
- /**
1598
- * If the task pane is focused
1599
- */
1600
- focused: boolean;
1601
- /**
1602
- * Reference to the underlying element.
1603
- */
1604
- ref?: default_2.Ref<HTMLDivElement>;
1605
- }
1606
-
1607
- declare interface Theme {
1608
- readonly theme: ITheme;
1609
- readonly themes: IThemeCollection;
1610
- readonly darkMode: boolean;
1611
- }
1612
-
1613
- /**
1614
- * useBordersOverlay
1615
- * Renders borders by combining individual cells border attributes.
1616
- */
1617
- export declare const useBordersOverlay: ({ getBorderAt, rendererBorder, getVisibleCells: propGetVisibleCells, darkMode, forceThinBorder, defaultColor, shiftIfWide }: BorderOverlayProps) => BordersOverlayResults;
1618
-
1619
- export declare const useDocThemes: () => IThemeCollection;
1620
-
1621
- /**
1622
- * React hook for subscribing to model-level events (workbooks, sheets, etc.).
1623
- *
1624
- * @template SOURCE - The model type (e.g., IWorkbook, ISheet)
1625
- * @template EVENTS - The listener interface type (e.g., ISheet.IListeners)
1626
- *
1627
- * @param source - The model instance to listen to
1628
- * @param listeners - Object containing listener callbacks for various events
1629
- * @param options - Optional configuration
1630
- *
1631
- * @remarks
1632
- * This hook automatically manages the listener lifecycle:
1633
- * - Subscribes when the component mounts or `source` changes
1634
- * - Unsubscribes when the component unmounts or `source` changes
1635
- * - Prevents unnecessary re-subscriptions when the `listeners` object reference changes
1636
- * (as long as the shape/keys remain consistent)
1637
- *
1638
- * By default (`fireOnModelChange: true`), all listeners are called once immediately
1639
- * on mount with the current source state, allowing you to initialize component state
1640
- * based on the model's current values.
1641
- *
1642
- * @example
1643
- * ```tsx
1644
- * function SheetComponent({ sheet }: { sheet: ISheet }) {
1645
- * useModelListener<ISheet, ISheet.IListeners>(sheet, {
1646
- * onSave(source, json) {
1647
- * console.log('Sheet saved:', json);
1648
- * },
1649
- * });
1650
- *
1651
- * return <div>Sheet: {sheet.getName()}</div>;
1652
- * }
1653
- * ```
1654
- */
1655
- export declare const useModelListener: <SOURCE, EVENTS>(source: IListener.ISource<SOURCE>, listeners: IListener.Callbacks<SOURCE, EVENTS>, options?: useModelListenerOptions) => void;
1656
-
1657
- /**
1658
- * Options for `useModelListener` hook.
1659
- *
1660
- * @remarks
1661
- * This is extends IListener.Options but removes 'once' since hooks are
1662
- * evaluated on render and adds a `fireOnModelChange` option.
1663
- */
1664
- export declare interface useModelListenerOptions extends Omit<IListener.Options, 'once'> {
1665
- /**
1666
- * If `true` (default), fires all listeners once immediately when the component mounts
1667
- * or when the source changes, allowing initialization based on current model state.
1668
- *
1669
- * @defaultValue true
1670
- */
1671
- fireOnModelChange?: boolean;
1672
- }
1673
-
1674
- /**
1675
- * Hook for observing movable commands. This hook will observe a combination
1676
- * of sheet events and an options selection.
1677
- */
1678
- export declare const useMovableCommands: (props: useMovableCommandsOptions) => ICommands.IGroup;
1679
-
1680
- export declare interface useMovableCommandsOptions {
1681
- commands: ICommands.IGroup;
1682
- target: () => ICommand.ITarget;
1683
- /**
1684
- * Notify that there is a new repeatable command
1685
- */
1686
- onRepeatCommandChange?: (command: ICommand<any, any>) => void;
1687
- /**
1688
- * The collection to retrieve movable objects
1689
- */
1690
- movables: IMovableCollection;
1691
- /**
1692
- * The view to retrieve selection information about the movables.
1693
- */
1694
- movablesView: IMovableSelection;
1695
- /**
1696
- * If provided this will be used start and stop transactions on being/end move.
1697
- */
1698
- transactional: ITransaction.ITransactional;
1699
- }
1700
-
1701
- /**
1702
- * This hook delegates to the an model that contains a getRange(address) method.
1703
- *
1704
- * @param model
1705
- * @param listener
1706
- */
1707
- export declare const useRangeListener: (model: RangeContainer, address: ICellRange.Address, listener: ICellRange.Listener, options?: useRangeListenerOptions) => void;
1708
-
1709
- export declare interface useRangeListenerOptions extends ICellRange.ListenerOptions {
1710
- fireOnAddressChange: boolean;
1711
- }
1712
-
1713
- /**
1714
- * Hook for observing sheet commands. This hook will observe a combination
1715
- * of sheet events and an options selection.
1716
- *
1717
- * Note -
1718
- * If a sheetSelection is provided then the commands will be confirmed using the provided selections.
1719
- * This is done to allow for context specific (right-click, etc) commands.
1720
- *
1721
- * Continue to review until we have them all.
1722
- * https://www.excelcampus.com/shortcuts/#:~:text=For%20example%2C%20to%20press%20the,Then%20release%20all%20keys. (great list)
1723
- * https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-excel-1798d9d5-842a-42b8-9c99-9b7213f0040f
1724
- * https://corporatefinanceinstitute.com/resources/excel/shortcuts/excel-shortcuts-pc-mac/
1725
- *
1726
- * TODO -
1727
- * Insert Bullet - Alt 7/9 while in edit mode
1728
- * Ctrl+Shift+F / Ctrl+Shift+P - Open Font Dialog
1729
- * CTRL+SHIFT+DELETE === cut ? (not seeing this happen)
1730
- *
1731
- * Formulas
1732
- * Ctrl + / Select current array ?
1733
- * (other formula shortcuts)
1734
- */
1735
- export declare function useSheetCommands(props: useSheetCommandsOptions): ICommands.IGroup;
1736
-
1737
- export declare interface useSheetCommandsOptions {
1738
- /**
1739
- * The sheet.
1740
- */
1741
- sheet: ISheet;
1742
- commands: ICommands.IGroup;
1743
- target: () => ICommand.ITarget;
1744
- /**
1745
- * Notify that there is a new repeatable command
1746
- */
1747
- onRepeatCommandChange?: (command: ICommand<any, any>) => void;
1748
- onStartEdit?: (event: Partial<StartEditEvent>) => void;
1749
- bodyStyle?: GridSurfaceStyle;
1750
- /**
1751
- * Returns the current viewport.
1752
- */
1753
- getViewport?: () => ScrollableViewport;
1754
- }
1755
-
1756
- /**
1757
- * Copy paste hook for `ISheet`.
1758
- */
1759
- export declare const useSheetCopyPaste: ({ element, sheet, sheetView, commands, onClipboardUpdate: propOnClipboardUpdate, onPaste: propOnPaste, renderSelection: propRenderSelection, copyForegroundColor, cutForegroundColor, copyBackgroundColor, cutBackgroundColor, ...rest }: SheetCopyPasteProps) => SheetCopyPasteResults;
1760
-
1761
- /**
1762
- * Hook to get the task pane manager directly.
1763
- * Useful for registering new task panes or managing instances.
1764
- */
1765
- export declare const useTaskPaneArea: () => ITaskPaneArea;
1766
-
1767
- export { }
1
+ export * from './src/index'
2
+ export {}