@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalBarLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/ConditionalBarLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,cAAc,CAAC;AAIpE,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtF,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,mBAAmB,oCAAgB,wBAAwB,8BA0DtE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { IStyle } from '@sheetxl/sdk';
2
+ /**
3
+ * One icon of a conditional-format icon set: which shape to draw and what to tint it.
4
+ */
5
+ export interface ConditionalIconSpec {
6
+ /**
7
+ * A glyph in the `cf` icon pack, namespaced — hand it straight to `DynamicIcon`'s `iconKey`.
8
+ */
9
+ iconKey: string;
10
+ /**
11
+ * A CSS color for the whole glyph.
12
+ *
13
+ * @remarks
14
+ * The `cf` pack's shapes are monochrome and paint `currentColor`, so tinting is just setting
15
+ * `color` on the wrapper — no per-set sprite, and one shape serves every set that uses it.
16
+ */
17
+ color: string;
18
+ }
19
+ /**
20
+ * Returns the icon a band of a built-in set draws, or `null` if the band is out of range.
21
+ *
22
+ * @param set The set to read.
23
+ * @param index The band, `0` being the lowest.
24
+ *
25
+ * @remarks
26
+ * `set` is asked per cell rather than per rule because a rule may borrow each band's icon from a
27
+ * different set — see `IConditionalFormat.IconSetDecoration`.
28
+ */
29
+ export declare const getConditionalIcon: (set: IStyle.IconSet, index: number) => ConditionalIconSpec | null;
30
+ /**
31
+ * Returns every icon of a built-in set, band 0 first — for a picker previewing the set.
32
+ */
33
+ export declare const getConditionalIconSet: (set: IStyle.IconSet) => readonly ConditionalIconSpec[];
34
+ //# sourceMappingURL=ConditionalIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalIcons.d.ts","sourceRoot":"","sources":["../../../../src/layer/ConditionalIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAqFD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,CAAC,OAAO,EAAE,OAAO,MAAM,KAAG,mBAAmB,GAAG,IAE7F,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,CAAC,OAAO,KAAG,SAAS,mBAAmB,EAEvF,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface ConditionalIconsLayerProps extends LayerProps {
5
+ /** Class for the layer (devtools identification). */
6
+ className?: string;
7
+ /** Style for the icons host box. */
8
+ style?: React.CSSProperties;
9
+ /** The sheet whose conditional icon sets are drawn. */
10
+ sheet: ISheet;
11
+ }
12
+ /**
13
+ * The sheet's **conditional icons** — the in-cell marks an `iconSet` rule draws.
14
+ *
15
+ * @remarks
16
+ * A self-contained grid layer above the cells, so an icon is never occluded by text that overflows
17
+ * onto it. It does not have to fight that text for the space either: the gutter it draws in is
18
+ * already reserved by {@link ICell.getInsets}, which every text measurement in the SDK reads — so
19
+ * wrapping, best-fit width and the editor's caret all start after the icon without this layer
20
+ * telling them to.
21
+ *
22
+ * It mounts only when an icon is actually in view; see {@link useSheetVisibleDecorations} for how
23
+ * that is answered without touching a cell.
24
+ *
25
+ * Which glyph a band draws is a lookup, not a sprite: the model reports the band and the set, and
26
+ * `getConditionalIcon` maps that onto a shape from the `cf` icon pack plus a tint. The shapes are
27
+ * monochrome and paint `currentColor`, which is why a set and its gray twin cost one shape between
28
+ * them — and why a rule that borrows a band's icon from another set needs nothing new at all.
29
+ */
30
+ export declare const ConditionalIconsLayer: React.MemoExoticComponent<(props: ConditionalIconsLayerProps) => React.JSX.Element | null>;
31
+ //# sourceMappingURL=ConditionalIconsLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalIconsLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/ConditionalIconsLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAuC,KAAK,MAAM,EAA2B,MAAM,cAAc,CAAC;AAIzG,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAOtF,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,oCAAgB,0BAA0B,8BAqG1E,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ import { SheetLocation } from '../sheet';
5
+ export interface ContextMenuLayerProps extends LayerProps {
6
+ /** The sheet — the keyboard path anchors the menu to its selected cell (`getSelection().getCoords().cell`). */
7
+ sheet: ISheet;
8
+ /**
9
+ * Returns the coordinates of the cell where the context menu was requested.
10
+ */
11
+ onSheetContextMenu: (location: SheetLocation) => void;
12
+ }
13
+ /**
14
+ * Opens the sheet context menu. Two input paths, cleanly split by mechanism:
15
+ * - **pointer** — a native `contextmenu` DOM event (right-click) hits this layer's tap; the menu opens
16
+ * at the pointer via `getCellFromPointer`.
17
+ * - **keyboard** — `Shift+F10` / the `ContextMenu` (Menu) key resolve the `openContextMenu` command
18
+ * through the pane's command-layer stack (the grid resolver dispatches it, which `preventDefault`s the
19
+ * keydown → the browser never fires its own `contextmenu`, so no double-open). Its callback anchors the
20
+ * menu to the **selected cell** (not the pointer) — that's the keyboard-vs-mouse difference.
21
+ *
22
+ * The command is contributed only when a per-pane command chain is present (the body panes provide one, so
23
+ * `CommandScopeProvider` joins it; the header mount has none and stays pointer-only — headers aren't a
24
+ * keyboard context-menu target).
25
+ */
26
+ export declare const ContextMenuLayer: React.NamedExoticComponent<ContextMenuLayerProps & React.RefAttributes<HTMLDivElement>>;
27
+ //# sourceMappingURL=ContextMenuLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenuLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/ContextMenuLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEpF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAW9C,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,+GAA+G;IAC/G,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;CACvD;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,yFAgE1B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { ISheetHeader } from '@sheetxl/sdk';
3
+ export interface HeaderResizerLayerProps {
4
+ sheetHeader: ISheetHeader;
5
+ isColumn: boolean;
6
+ oppositeSize?: number;
7
+ onResizeHeadersStart?: (index: number, prevSize: number, description: string) => void;
8
+ /**
9
+ * Called during resize of a header.
10
+ * If there is a negative newSize then these headers will have been hidden
11
+ * This is for the specific header being resized.
12
+ * Note - Other headers may also have been resized if hiding
13
+ */
14
+ onResizeHeaders?: (index: number, newSize: number, prevSize: number) => void;
15
+ /**
16
+ * Called after resize of a header.
17
+ * If there is a positive newSize and a single selection then those
18
+ * headers will also have been resized.
19
+ *
20
+ * Note - Other colHeaderRuns may also have been resized if expanding
21
+ * Note - If this was autoFit then newSize and prevSize will be null.
22
+ */
23
+ onResizeHeadersEnd?: (index: number, newSize: number, description: string) => void;
24
+ onResizeHeadersDown?: (index: number, size: number) => void;
25
+ onResizeHeadersUp?: (index: number) => void;
26
+ }
27
+ export declare const HeaderResizerLayer: React.NamedExoticComponent<HeaderResizerLayerProps & React.RefAttributes<HTMLDivElement>>;
28
+ //# sourceMappingURL=HeaderResizerLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderResizerLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/HeaderResizerLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,cAAc,CAAC;AAetB,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,YAAY,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtF;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAE5D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAKD,eAAO,MAAM,kBAAkB,2FAyd5B,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { default as React } from 'react';
2
+ import { IRangeSelection, IRange } from '@sheetxl/sdk';
3
+ import { CellCoords, RangeCoords } from '@sheetxl/utils';
4
+ import { LayerProps } from '@sheetxl/grid-react';
5
+ import { SheetSelection } from '../selection';
6
+ export interface HeaderSelectionLayerProps extends LayerProps {
7
+ /** Class for the decoration host box (devtools identification). */
8
+ className?: string;
9
+ /** Style for the decoration host box. */
10
+ style?: React.CSSProperties;
11
+ /**
12
+ * The selection model this header layer renders + writes. The primary sheet selection
13
+ * (`sheet.getSelection()`) or a detached picker selection (`IRangeSelection.createSelection()`) — the
14
+ * layer is the same either way.
15
+ */
16
+ selection: IRangeSelection;
17
+ /**
18
+ * Override the WRITE adapter the header pointer drives (default: a plain `SheetSelection` over
19
+ * {@link HeaderSelectionLayerProps.selection}). A reference-picker overlay passes a scope-stamping
20
+ * wrapper (`scopeDrawnRanges`) so a header pick reports the PANE's sheet — always-scoped reporting;
21
+ * the raw `selection` is still used for reads (`setAdjusting`, selected runs).
22
+ */
23
+ adapter?: SheetSelection;
24
+ /**
25
+ * The axis of the header (row or column).
26
+ */
27
+ axis: IRange.Axis;
28
+ /**
29
+ * The body's entire range (full rows × full columns) — the header projects every gesture across the
30
+ * opposite axis with it. Typically `sheet.getEntireRange().getCoords()`.
31
+ */
32
+ entireCoords: RangeCoords;
33
+ /**
34
+ * The separator thickness (the grey non-selected edge at the band's body-facing side). The stage IS the
35
+ * full band, so the seam sits at the pane's cross size; the separator occupies its last `edgeSize` px and
36
+ * the selection accent is centered on the seam so it meets the body's top stroke. @defaultValue 1
37
+ */
38
+ edgeSize?: number;
39
+ /**
40
+ * Color of the non-selected separator edge (the grey gridline-like rule under/beside the band). Drawn
41
+ * across the whole band; selected runs paint the primary accent over it. @defaultValue `var(--sxl-color-base-300)`
42
+ */
43
+ edgeColor?: string;
44
+ /**
45
+ * Scroll a header cell into view during a drag (incl. the held-still auto-scroll). Given the header
46
+ * cell's axis coord (`{ colIndex }` for a column header, `{ rowIndex }` for a row header). Route it
47
+ * through the sheet (`sheet.scrollTo`) so the BODY grid scrolls — a header `GridSurface` has a
48
+ * controlled viewport and cannot scroll itself. Omit for a standalone header (falls back to self-scroll).
49
+ */
50
+ scrollIntoView?: (coords: Partial<CellCoords>) => void;
51
+ /**
52
+ * Render the selection accent (the header underline for selected rows/columns). Turn off for a picker
53
+ * overlay, whose reference rectangles are drawn by `RangesPickerLayer` — the accent would compete.
54
+ * @defaultValue true
55
+ */
56
+ renderBorders?: boolean;
57
+ /**
58
+ * Keep the current focus on pointer-up instead of focusing the grid pane. On for a picker overlay used
59
+ * while editing a formula (focusing the pane would blur the editor). @defaultValue false
60
+ */
61
+ preserveFocus?: boolean;
62
+ /**
63
+ * **Point (reference-picking) mode.** A no-modifier header click/drag re-scopes the ACTIVE reference in
64
+ * place (or appends a new one), preserving the formula's other references, and consumes the gesture so a
65
+ * primary header selection below never runs its clobbering replace. On for the reference picker overlay
66
+ * (`SheetReferenceHeaderLayer`). @defaultValue false
67
+ */
68
+ replaceActive?: boolean;
69
+ /**
70
+ * Whether Ctrl/Cmd + click/drag APPENDS a range instead of replacing. Off for a single-range consumer
71
+ * (a table's range field), which must never be handed a second one. @defaultValue true
72
+ */
73
+ allowMulti?: boolean;
74
+ /**
75
+ * Intercept pointer-down before any selection change (e.g. the primary keeps a fully-selected header's
76
+ * multi-selection on right-click so the context menu acts on it). Return `false` to cancel.
77
+ */
78
+ onPointerDownInterceptor?: (e: React.PointerEvent, coords: IRange.CellCoords) => boolean | void;
79
+ /**
80
+ * Callback when selection is manually started
81
+ */
82
+ onSelectionStart?: () => void;
83
+ /**
84
+ * Callback when selection is manually changed
85
+ */
86
+ onSelectionEnd?: () => void;
87
+ }
88
+ export declare const HeaderSelectionLayer: React.NamedExoticComponent<HeaderSelectionLayerProps & React.RefAttributes<HTMLDivElement>>;
89
+ //# sourceMappingURL=HeaderSelectionLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderSelectionLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/HeaderSelectionLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAe,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIhF,OAAO,EAEW,KAAK,UAAU,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,eAAe,CAAC;IAC3B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;IAClB;;;OAGG;IACH,YAAY,EAAE,WAAW,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAEvD;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,UAAU,KAAK,OAAO,GAAG,IAAI,CAAC;IAC9F;;KAEC;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,6FAqG9B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ /**
4
+ * Props for {@link ResizeIndicator}.
5
+ */
6
+ export interface ResizeIndicatorProps {
7
+ /** The sheet — for the unit readout (header scale factor) and the entire-range extent. */
8
+ sheet: ISheet;
9
+ }
10
+ /**
11
+ * The **main-grid overlay** for an in-progress header resize: the before/after guide-lines that span the
12
+ * body plus the live size tooltip. It's a self-contained grid layer — it reads the gesture from
13
+ * `useSurfaceState` (published by {@link HeaderResizerLayer} in the header surface, shared via the sheet's
14
+ * `SurfaceStateProvider`) and the pane from context, so it mounts as a plain child of the grid with no
15
+ * render-prop bridge. Rendered once per pane; each pane draws its own clipped slice of the lines, and the
16
+ * tooltip ({@link StickyFloat}) self-gates to a single owner pane.
17
+ */
18
+ export declare const ResizeIndicator: React.MemoExoticComponent<(props: ResizeIndicatorProps) => React.JSX.Element | null>;
19
+ //# sourceMappingURL=ResizeIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeIndicator.d.ts","sourceRoot":"","sources":["../../../../src/layer/ResizeIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAI9C,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAUnD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;CACf;AAWD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,oCAAgB,oBAAoB,8BAmG9D,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { ISheet } from '@sheetxl/sdk';
2
+ import { LayerProps } from '@sheetxl/grid-react';
3
+ export interface SheetBackgroundLayerProps extends LayerProps {
4
+ /** Class for the background box (devtools identification). */
5
+ className?: string;
6
+ /** Style for the background box. */
7
+ style?: React.CSSProperties;
8
+ /** The sheet whose background picture (a tiled fill rendered behind the cells) is rendered. */
9
+ sheet: ISheet;
10
+ }
11
+ /**
12
+ * Renders the sheet's background.
13
+ *
14
+ * @remarks
15
+ * A {@link Layer} hosting a passive (`pointer-events:none`) full-view paint box, so clicks fall
16
+ * through to the cells. The tile pattern is anchored to the sheet's A1 origin — the pane's screen
17
+ * position for cell `0,0` encodes the current scroll offset — so it scrolls with the content (one
18
+ * instance per pane). The caller adds this layer only when a picture is present (see
19
+ * `ISheet.getPicture`) and places it FIRST, so it sits at the bottom of the z-stack.
20
+ */
21
+ export declare const SheetBackgroundLayer: import('react').NamedExoticComponent<SheetBackgroundLayerProps & import('react').RefAttributes<HTMLDivElement>>;
22
+ //# sourceMappingURL=SheetBackgroundLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetBackgroundLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetBackgroundLayer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAwB,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKtF,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,iHA6D9B,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet, ISheetView } from '@sheetxl/sdk';
3
+ import { CellRendererProps, IEditable, LayerProps } from '@sheetxl/grid-react';
4
+ import { SheetCellRendererProps, ColumnButtonConfigProps } from '../cell';
5
+ export interface SheetCellLayerProps extends LayerProps {
6
+ /** Class for the layer (devtools identification). */
7
+ className?: string;
8
+ /** The sheet whose cells are rendered. */
9
+ sheet: ISheet;
10
+ /** The sheet view — drives show-zeros / show-formulas (which cells are worth rendering). */
11
+ sheetView: ISheetView;
12
+ /**
13
+ * Custom per-cell renderer. Default: {@link SheetCellRenderer} wired to the sheet (doc theme,
14
+ * hyperlink taps, formula-view flags) — the layer owns cell styling, so most hosts never pass this.
15
+ */
16
+ renderCell?: (props: CellRendererProps) => React.ReactNode;
17
+ /**
18
+ * Customization channel for the DEFAULT renderer (hyperlink taps, per-cell overrides). The
19
+ * column-button members ride along on the shared type but are consumed by
20
+ * `SheetColumnButtonLayer`, not here — they are stripped before the spread.
21
+ */
22
+ propsCellRender?: Partial<SheetCellRendererProps> & ColumnButtonConfigProps;
23
+ /**
24
+ * The shared editable. Subscribed so the edited cell is suppressed while its editor is open —
25
+ * via the layer's live CSS channel (`suppressCell`), so no tile is ever invalidated by an edit
26
+ * start/stop and the grid above is never touched.
27
+ */
28
+ editable: IEditable<any, any, any>;
29
+ }
30
+ /**
31
+ * The sheet's cell layer.
32
+ *
33
+ * @remarks
34
+ * A self-contained grid layer: it renders the sheet's cells and re-renders **itself** when the data in
35
+ * its pane's visible range changes (via {@link useSheetVisibleCells}) — so a value edit never
36
+ * re-renders the grid or recreates the panes. One instance per pane (it reads its pane from context),
37
+ * so each frozen region listens to its own range.
38
+ *
39
+ * Beside the immutable tile snapshots ({@link CellTileDiv}) the layer owns the two LIVE per-cell
40
+ * concerns that must never touch a tile:
41
+ * - the edited cell is suppressed while its editor is open (live CSS `suppressCell` channel);
42
+ * - **formula view** ({@link ISheetView.isShowFormulas}): when the selection anchor sits on a
43
+ * formula cell, that cell's plain snapshot is suppressed through the SAME channel and a
44
+ * tokenized, syntax-colored {@link FormulaCellRenderer} overlay is drawn in its place — the
45
+ * references themselves are outlined by `SheetReferenceLayer`, both keyed off
46
+ * {@link useFormulaViewAnchor} so text and rectangles share colors.
47
+ */
48
+ export declare const SheetCellLayer: React.MemoExoticComponent<(props: SheetCellLayerProps) => React.JSX.Element | null>;
49
+ //# sourceMappingURL=SheetCellLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetCellLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetCellLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAc,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAMxE,OAAO,EAEL,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EACxD,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEL,KAAK,sBAAsB,EAAE,KAAK,uBAAuB,EAC1D,MAAM,SAAS,CAAC;AAIjB,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,SAAS,EAAE,UAAU,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,uBAAuB,CAAC;IAC5E;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc,oCAAgB,mBAAmB,8BAuI5D,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ import { ColumnButtonConfigProps } from '../cell/ColumnButton';
5
+ export interface SheetColumnButtonLayerProps extends LayerProps, ColumnButtonConfigProps {
6
+ /** The sheet whose table column (filter/sort) buttons are rendered. */
7
+ sheet: ISheet;
8
+ }
9
+ /**
10
+ * The sheet's column (filter/sort) button layer — a {@link CellLayer} (which roots the {@link Layer})
11
+ * fed a table-aware source so it emits ONLY the header cells of visible tables (a table-free sheet
12
+ * does no per-cell work).
13
+ *
14
+ * @remarks
15
+ * A sibling grid child of {@link TableLayer} (each owns its own {@link useVisibleTables}
16
+ * subscription; the hook's `cacheToken` drops the tile cache when the set / state of tables
17
+ * changes). It sits below the selection layer — fine: the button's own `stopPropagation` on
18
+ * pointerdown consumes the press before it reaches the grid-wide selection tap, so clicking a
19
+ * button never moves the selection regardless of layer z-order. The host box is
20
+ * `pointer-events:none` (CellLayer's default); only the button re-enables itself.
21
+ */
22
+ export declare const SheetColumnButtonLayer: React.MemoExoticComponent<(props: SheetColumnButtonLayerProps) => React.JSX.Element>;
23
+ //# sourceMappingURL=SheetColumnButtonLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetColumnButtonLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetColumnButtonLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,cAAc,CAAC;AAIpE,OAAO,EAAqD,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEzG,OAAO,EAAgB,KAAK,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAG1G,MAAM,WAAW,2BAA4B,SAAQ,UAAU,EAAE,uBAAuB;IACtF,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,oCAAgB,2BAA2B,uBA8F5E,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet, ISheetView } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface SheetGridLineLayerProps extends LayerProps {
5
+ /** The sheet whose gridlines are rendered. */
6
+ sheet: ISheet;
7
+ /** The sheet view — drives styling, per-axis visibility, and which cells are scanned (for merges). */
8
+ sheetView: ISheetView;
9
+ }
10
+ /**
11
+ * The sheet's gridline layer.
12
+ *
13
+ * @remarks
14
+ * The line *styling* (color + the normal-style border edges baked into the line props) and per-axis
15
+ * *visibility* are structural, so this layer self-subscribes to `onStyleChange` (sheet) + `onZoomScaleChange`
16
+ * (view) and derives them from the sheet's normal style and the view's gridline color / zoom / show flags —
17
+ * decoupled from the grid above it. The *merges* the lines break around are data, so it also self-subscribes
18
+ * to its pane's visible range via {@link useSheetVisibleCells} and re-renders itself on a data change (busting
19
+ * the underlying grid-react {@link GridlineLayer} with its own token). One per pane.
20
+ */
21
+ export declare const SheetGridLineLayer: React.MemoExoticComponent<(props: SheetGridLineLayerProps) => React.JSX.Element>;
22
+ //# sourceMappingURL=SheetGridLineLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetGridLineLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetGridLineLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAuB,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AASrE,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,sGAAsG;IACtG,SAAS,EAAE,UAAU,CAAC;CACvB;AAcD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,oCAAgB,uBAAuB,uBAiEpE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { ISheetHeader } from '@sheetxl/sdk';
3
+ import { CellRendererProps, LayerProps } from '@sheetxl/grid-react';
4
+ export interface SheetHeaderCellLayerProps extends LayerProps {
5
+ /** Class for the tiling-origin box (devtools identification). */
6
+ className?: string;
7
+ /** The header model (row or column) whose labels are rendered. */
8
+ header: ISheetHeader;
9
+ /** Per-header renderer (the sheet's `SheetHeaderRenderer` wrapping). */
10
+ renderCell: (props: CellRendererProps) => React.ReactNode;
11
+ }
12
+ /**
13
+ * The header's cell layer.
14
+ *
15
+ * @remarks
16
+ * The header sibling of {@link SheetCellLayer}: it renders the header labels and self-invalidates,
17
+ * busting the underlying grid-react {@link CellLayer} with its own token — so it re-renders only itself,
18
+ * not the header grid. Two triggers bump the token:
19
+ *
20
+ * - **size change** (`onSizesChange`) — alters what is visible/labeled;
21
+ * - **selection change** — header labels are styled by selection (fill / weight / color), but the tiled
22
+ * `CellLayer` cache survives scroll, so it must be dropped when *this header's* selected runs change.
23
+ * Gated on the runs {@link selectedRunsSignature} so it busts only when the styling would differ (not
24
+ * on every active-cell move, and never on scroll — there is no per-frame range work).
25
+ *
26
+ * Structural changes (theme / model swap) still flow through the header element's own invalidate. One
27
+ * instance per pane.
28
+ */
29
+ export declare const SheetHeaderCellLayer: React.MemoExoticComponent<(props: SheetHeaderCellLayerProps) => React.JSX.Element>;
30
+ //# sourceMappingURL=SheetHeaderCellLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetHeaderCellLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetHeaderCellLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAa,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIzF,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,MAAM,EAAE,YAAY,CAAC;IACrB,wEAAwE;IACxE,UAAU,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CAC3D;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,oCAAgB,yBAAyB,uBA4BxE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ import { IMovableLayerElement, MovableLayerProps, MovableElementProps } from '../movable';
5
+ export interface SheetMovableLayerProps extends LayerProps {
6
+ /** Class forwarded to the inner layer's host box (devtools identification). */
7
+ className?: string;
8
+ sheet: ISheet;
9
+ /**
10
+ * Render a movable element
11
+ *
12
+ * @param props The props for the movable element
13
+ * @returns The rendered movable element
14
+ */
15
+ renderMovable: (props: MovableElementProps) => React.ReactElement;
16
+ /**
17
+ * Props to pass to MovableLayer
18
+ */
19
+ propsMovable?: Partial<MovableLayerProps>;
20
+ /**
21
+ * Ref to movable area
22
+ */
23
+ ref?: React.Ref<IMovableLayerElement>;
24
+ }
25
+ export declare const SheetMovableLayer: React.NamedExoticComponent<Omit<SheetMovableLayerProps, "ref"> & React.RefAttributes<IMovableLayerElement>>;
26
+ //# sourceMappingURL=SheetMovableLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetMovableLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetMovableLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EACS,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAC1F,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACxD,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,YAAY,CAAC;IAElE;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE1C;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,iBAAiB,6GA8D3B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ReactElement } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface SheetTableCommandLayerProps extends LayerProps {
5
+ sheet: ISheet;
6
+ }
7
+ /**
8
+ * **Command-only layer for the `table` scope** — no visuals (the visual chrome lives in {@link TableLayer});
9
+ * this joins the pane's z-chain purely to contribute the {@link contributeTableCommands table
10
+ * operations} while tabular data is active. Mirrors {@link SheetMovableLayer}: a declarative
11
+ * `<CommandScopeProvider spec order={z}/>` so the `table` scope is a `sheet`-descendant leaf and its commands
12
+ * out-resolve the `sheet` scope when a table/autofilter is selected (the seam for future sheet-label
13
+ * overrides). Outside a command host (bare grid) there's no chain, so it simply doesn't stack.
14
+ */
15
+ export declare const SheetTableCommandLayer: import('react').MemoExoticComponent<(props: SheetTableCommandLayerProps) => ReactElement>;
16
+ //# sourceMappingURL=SheetTableCommandLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetTableCommandLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SheetTableCommandLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,qBAAqB,CAAC;AAQhE,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,8CAAgB,2BAA2B,KAAG,YAAY,CAsB3F,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface SpillLayerProps extends LayerProps {
5
+ /** Style for the outline box. */
6
+ style?: React.CSSProperties;
7
+ /**
8
+ * The sheet.
9
+ */
10
+ sheet: ISheet;
11
+ /**
12
+ * The animation time in milliseconds.
13
+ *
14
+ * @defaultValue 60
15
+ */
16
+ animationTime?: number;
17
+ }
18
+ /**
19
+ * Shows an outline for spills
20
+ */
21
+ export declare const SpillLayer: React.NamedExoticComponent<SpillLayerProps & React.RefAttributes<HTMLDivElement>>;
22
+ //# sourceMappingURL=SpillLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpillLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/SpillLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAA6B,KAAK,MAAM,EAAwB,MAAM,cAAc,CAAC;AAI5F,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIrF,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,iCAAiC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD;;GAEG;AACH,eAAO,MAAM,UAAU,mFAoHpB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { ISheet, ITable } from '@sheetxl/sdk';
3
+ import { LayerProps } from '@sheetxl/grid-react';
4
+ export interface TableLayerProps extends LayerProps {
5
+ /**
6
+ * The sheet.
7
+ */
8
+ sheet: ISheet;
9
+ /**
10
+ * Invoked by the hover toolbar's **edit** button. Wire it to the `editTable` command; if omitted the
11
+ * button falls back to selecting the table.
12
+ */
13
+ onEditTable?: (table: ITable) => Promise<void>;
14
+ }
15
+ /**
16
+ * Is the outline, resizer, and row selection.
17
+ *
18
+ * @remarks
19
+ * Vertical selection is handled by the render to avoid the z-index with the filter button. (Unless we move the filter button here)
20
+ */
21
+ export declare const TableLayer: React.NamedExoticComponent<TableLayerProps & React.RefAttributes<HTMLDivElement>>;
22
+ //# sourceMappingURL=TableLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/TableLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAc,KAAK,MAAM,EAAwB,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAI1F,OAAO,EAEuB,KAAK,UAAU,EAC5C,MAAM,qBAAqB,CAAC;AA8D7B,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAcD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,mFAuVpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { default as React } from 'react';
2
+ import { CellCoords } from '@sheetxl/utils';
3
+ import { ISheet, IDataValidation } from '@sheetxl/sdk';
4
+ import { LayerProps } from '@sheetxl/grid-react';
5
+ export interface ValidationIndicatorLayerProps extends LayerProps {
6
+ /** Class for the layer (devtools identification). */
7
+ className?: string;
8
+ /** Style for the indicators host box. */
9
+ style?: React.CSSProperties;
10
+ /** The sheet whose data validations are indicated. */
11
+ sheet: ISheet;
12
+ /** Size (px, unzoomed) of the invalid-value corner mark. @defaultValue 7 */
13
+ markSize?: number;
14
+ /** Width (px, unzoomed) of the list dropdown button. @defaultValue 17 */
15
+ dropdownWidth?: number;
16
+ /**
17
+ * Called when the selected cell's list dropdown is pressed.
18
+ *
19
+ * @remarks
20
+ * The layer draws the affordance but owns no picker — the list UI is a host concern (it needs
21
+ * the float stack and the editor). Omit and the button is inert.
22
+ */
23
+ onOpenDropdown?: (cell: CellCoords, dataValidation: IDataValidation) => void;
24
+ }
25
+ /**
26
+ * The sheet's **data-validation indicators** — the mark on a cell holding a value its rule rejects,
27
+ * and the dropdown on a selected list cell.
28
+ *
29
+ * @remarks
30
+ * Both used to be drawn by the cell renderer, which meant every cached tile probed the validation
31
+ * model whether or not the sheet had any validations, and neither mark could have a hover or press
32
+ * state (a tile is an immutable snapshot). As a layer they are live, they cost nothing on a sheet
33
+ * with no validations, and the cells layer no longer knows validation exists.
34
+ *
35
+ * The two marks answer different questions and so are scoped differently. The invalid mark is a
36
+ * property of a cell's VALUE, so it is drawn wherever one is in view. The dropdown is an
37
+ * affordance for editing, so — as in Excel — it appears on the selected cell alone; a column of
38
+ * list cells would otherwise be a column of buttons.
39
+ */
40
+ export declare const ValidationIndicatorLayer: React.MemoExoticComponent<(props: ValidationIndicatorLayerProps) => React.JSX.Element | null>;
41
+ //# sourceMappingURL=ValidationIndicatorLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidationIndicatorLayer.d.ts","sourceRoot":"","sources":["../../../../src/layer/ValidationIndicatorLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAA8B,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7E,OAAO,EACL,KAAK,MAAM,EAA+B,KAAK,eAAe,EAC/D,MAAM,cAAc,CAAC;AAItB,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAWtG,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9E;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,oCAAgB,6BAA6B,8BA2FhF,CAAC"}
@@ -0,0 +1,25 @@
1
+ export * from './useVisibleTables';
2
+ export * from './useSheetVisibleCells';
3
+ export * from './useSheetFeatureRegions';
4
+ export * from './useSheetVisibleDecorations';
5
+ export * from './CellFillLayer';
6
+ export * from './CellErrorLayer';
7
+ export * from './BorderLayer';
8
+ export * from './SheetCellLayer';
9
+ export * from './SheetColumnButtonLayer';
10
+ export * from './SheetGridLineLayer';
11
+ export * from './SheetBackgroundLayer';
12
+ export * from './SheetHeaderCellLayer';
13
+ export * from './SheetMovableLayer';
14
+ export * from './TableLayer';
15
+ export * from './SheetTableCommandLayer';
16
+ export * from './SpillLayer';
17
+ export * from './ConditionalIcons';
18
+ export * from './ConditionalBarLayer';
19
+ export * from './ConditionalIconsLayer';
20
+ export * from './ValidationIndicatorLayer';
21
+ export * from './HeaderSelectionLayer';
22
+ export * from './HeaderResizerLayer';
23
+ export * from './ResizeIndicator';
24
+ export * from './ContextMenuLayer';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layer/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAE7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}