@sheetxl/react 0.7.21 → 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 -4914
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CmChqiPvaotX5mCV.mjs +9 -0
  8. package/node/esm/index.mjs +17028 -3694
  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 -1815
  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/Be13sRyTTTUvNIit.cjs +0 -161
  450. package/browser/cjs/KLgpeikeRSDp4tUK.cjs +0 -16
  451. package/browser/cjs/n4OQZCE7fVxRfX1r.cjs +0 -7
  452. package/browser/esm/ClLcB3xHul5RfTMr.mjs +0 -1377
  453. package/browser/esm/EUZRpu3SnHayUDBu.mjs +0 -3905
  454. package/browser/esm/Mz1Nj2KbO5FcE969.mjs +0 -394
  455. package/node/assets/style.css +0 -1
  456. package/node/esm/sKvpUJVdmYl8r9f6.mjs +0 -11
@@ -0,0 +1,111 @@
1
+ import { IFunction } from '@sheetxl/sdk';
2
+ /**
3
+ * Split a rest/repeating parameter's name into its base and starting number: the trailing digits (or
4
+ * `1` if none), so `number` → `{ base: 'number', n: 1 }` and `values2` → `{ base: 'values', n: 2 }`.
5
+ *
6
+ * @remarks
7
+ * The shared numbering convention — the signature (`toSlots` in `FunctionPreviewPanel`) and the
8
+ * argument form ({@link toArgRows}) MUST agree on it, or `SUM`'s second slot reads `number2` in the
9
+ * hint and `number1` in the form.
10
+ */
11
+ export declare const restBase: (raw: string) => {
12
+ base: string;
13
+ n: number;
14
+ };
15
+ /**
16
+ * One row of the argument FORM — a concrete, fillable argument position.
17
+ *
18
+ * @remarks
19
+ * The counterpart to `FunctionPreviewPanel`'s `ArgSlot`, and deliberately not the same thing: a slot
20
+ * is a *caret window* over the signature (two wide, sliding, with `…` markers), while a row is one
21
+ * materialized field. Both derive their label / `descKey` / optionality the same way, so a parameter
22
+ * reads identically in the hint and in the form.
23
+ */
24
+ export interface ArgRow {
25
+ /** Stable React key. Rows only ever APPEND, so an index is stable too — this reads better. */
26
+ key: string;
27
+ /**
28
+ * The label as shown (`number1`, `criteriaRange2`).
29
+ *
30
+ * @remarks
31
+ * UNBRACKETED, unlike the signature's `[number2]`: the brackets are how one line of text says
32
+ * "optional" when it has nowhere else to put it. A form row has {@link optional} and its own
33
+ * emphasis (Excel bolds the required ones), so repeating the brackets would only be noise.
34
+ */
35
+ label: string;
36
+ /** The declared parameter this row fills (its type/enums drive the field). */
37
+ param: IFunction.IParameterType;
38
+ /**
39
+ * The key this row's description is filed under in the descriptor. Usually the parameter's name; a
40
+ * period-2+ repeating group documents its slots nested, as `group.slot`.
41
+ */
42
+ descKey: string;
43
+ /** Whether this row may be left empty. A repeating group's FIRST repetition is required. */
44
+ optional: boolean;
45
+ /**
46
+ * Whether MORE of this argument may follow — set on the trailing (spare) repetition of a rest
47
+ * parameter or repeating group, the row whose filling grows the form. The same fact the signature
48
+ * marks with its trailing `…`.
49
+ */
50
+ repeat?: boolean;
51
+ }
52
+ /**
53
+ * Expand a function's declared parameters into the concrete rows of an argument form, GROWN to fit
54
+ * what has been filled in so far.
55
+ *
56
+ * A plain parameter is one row. A **rest** parameter or a **repeating group** (`SUMIFS`'s
57
+ * range/criteria pair) is emitted a whole repetition at a time, with one spare repetition always
58
+ * waiting past the last one the user has touched — Excel's behavior: `SUM` opens on `number1` +
59
+ * `number2`, and typing into `number2` is what makes `number3` appear.
60
+ *
61
+ * @param params The callee's declared parameters, in order.
62
+ * @param filled The per-row texts the form currently holds (index-aligned with the returned rows),
63
+ * shorter or absent when nothing has been typed.
64
+ *
65
+ * @remarks
66
+ * Growth is driven by the LAST filled row rather than by a count of the non-empty ones: a blank in
67
+ * the middle is a legal argument (`=IF(A1,,B1)`), so `['A1', '', 'A3']` must keep three rows plus the
68
+ * spare, not shrink back to two and drop what the user typed.
69
+ *
70
+ * A declaration may also carry parameters AFTER the group (`SWITCH`'s `default`). Those rows follow
71
+ * the repetitions, and are excluded from the scan that grows them — otherwise filling the trailing
72
+ * one would keep adding repetitions in front of itself. The one case that stays ambiguous is a group
73
+ * whose final repetition AND suffix are both filled: a flat, positional text array cannot say which
74
+ * of the two a value belongs to once the rows in between move. No declaration in the catalog has that
75
+ * shape today (every repeating group is the last parameter).
76
+ */
77
+ export declare const toArgRows: (params: readonly IFunction.IParameterType[], filled?: readonly string[]) => ArgRow[];
78
+ /** Options for {@link assembleCall}. */
79
+ export interface AssembleCallOptions {
80
+ /**
81
+ * The workbook locale's argument separator (`,` or `;`).
82
+ *
83
+ * @defaultValue `','`
84
+ *
85
+ * @remarks
86
+ * `FunctionHint.argSeparator` is where a caller with a hint already has it.
87
+ */
88
+ separator?: string;
89
+ /**
90
+ * Prefix the call with `=`.
91
+ *
92
+ * @defaultValue `true` — the text is a formula (what a cell takes, and what
93
+ * `createFormula` evaluates).
94
+ */
95
+ equals?: boolean;
96
+ }
97
+ /**
98
+ * Assemble the argument texts into the call to insert — `=SUM(A1:A5,B1)`.
99
+ *
100
+ * Trailing **optional** arguments that were left empty are dropped; nothing else is. A blank in the
101
+ * middle is meaningful — `=IF(A1,,B1)` is a legal formula and is NOT `=IF(A1,B1)` — and so is a blank
102
+ * required argument, which keeps the call's arity honest while the form is half-filled. An untouched
103
+ * form assembles to the bare `=NAME()`.
104
+ *
105
+ * @param name The function name to write — the LOCALIZED one where the user is typing in their own
106
+ * language (`hint.nameLocal`), since that is what the cell will hold.
107
+ * @param rows The form's rows, from {@link toArgRows} (their optionality is what may be trimmed).
108
+ * @param filled The per-row texts, index-aligned with `rows`.
109
+ */
110
+ export declare const assembleCall: (name: string, rows: readonly ArgRow[], filled: readonly string[], options?: AssembleCallOptions) => string;
111
+ //# sourceMappingURL=functionArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functionArgs.d.ts","sourceRoot":"","sources":["../../../../src/editor/functionArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAG/D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACrB,8FAA8F;IAC9F,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC;IAChC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,SAAS,GACpB,QAAQ,SAAS,SAAS,CAAC,cAAc,EAAE,EAC3C,SAAQ,SAAS,MAAM,EAAO,KAC7B,MAAM,EAgDR,CAAC;AAEF,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAClC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,MAAM,SAAS,MAAM,EAAE,EACvB,QAAQ,SAAS,MAAM,EAAE,EACzB,UAAU,mBAAmB,KAC5B,MAWF,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { IFunction } from '@sheetxl/sdk';
2
+ import { FunctionHint, FunctionDescriptor } from './FunctionPreviewPanel';
3
+ /** Options for {@link createFunctionHint}. */
4
+ export interface CreateFunctionHintOptions {
5
+ /**
6
+ * Which argument to emphasize.
7
+ *
8
+ * @defaultValue `-1` — none, the BROWSING state (a function being read rather than filled in).
9
+ */
10
+ argIndex?: number;
11
+ /**
12
+ * The workbook locale, for the argument separator (`,` vs `;`).
13
+ *
14
+ * @defaultValue `'en'`
15
+ */
16
+ locale?: string | null;
17
+ }
18
+ /**
19
+ * Builds the {@link FunctionHint} that {@link FunctionSignature} / {@link FunctionPreviewContent}
20
+ * render, from a function the caller ALREADY has.
21
+ *
22
+ * @remarks
23
+ * The editor derives its hint from the caret (which function is open, which argument the caret sits
24
+ * in — see `useFormulaHints`); a picker derives it from a chosen function and no caret. Same hint,
25
+ * two sources, so the display conventions live here rather than in each: the localized display name
26
+ * read synchronously from the active pack (Plane 3, canonical name stays the identity), and the
27
+ * argument separator from the workbook locale (Plane 1) rather than a hard-coded comma.
28
+ */
29
+ export declare const createFunctionHint: (fn: IFunction, options?: CreateFunctionHintOptions) => FunctionHint;
30
+ /**
31
+ * Adapts a resolved SDK descriptor to the {@link FunctionDescriptor} the preview renders.
32
+ *
33
+ * @param name The CANONICAL function name — what the preview matches against the hint to tell a
34
+ * current descriptor from one still arriving for the previous function.
35
+ */
36
+ export declare const createFunctionDescriptor: (name: string, descriptor: IFunction.IDescriptor) => FunctionDescriptor;
37
+ //# sourceMappingURL=functionHint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functionHint.d.ts","sourceRoot":"","sources":["../../../../src/editor/functionHint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEpF,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,SAAS,EACb,UAAU,yBAAyB,KAClC,YASF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,EACZ,YAAY,SAAS,CAAC,WAAW,KAChC,kBAEF,CAAC"}
@@ -0,0 +1,18 @@
1
+ export * from './SheetEditable';
2
+ export * from './formulaText';
3
+ export * from './formulaEval';
4
+ export * from './useReferenceMode';
5
+ export * from './referencePointNav';
6
+ export * from './useFormulaInput';
7
+ export * from './SheetCellInput';
8
+ export * from './FunctionPreviewPanel';
9
+ export * from './functionHint';
10
+ export * from './functionArgs';
11
+ export * from './NamedItemsPanel';
12
+ export * from './NamedHintPanel';
13
+ export * from './EditorCommands';
14
+ export * from './useProtectedEditNotice';
15
+ export * from './SheetCellEditorLayer';
16
+ export * from './SheetReferenceLayer';
17
+ export * from './SheetReferenceHeaderLayer';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { default as React } from 'react';
2
+ import { ReferenceModeState } from './useReferenceMode';
3
+ /** `true` while a point-nav seed / re-home write is in flight (see the fence note above). */
4
+ export declare const isReferencePointSeeding: () => boolean;
5
+ /**
6
+ * The shared **point-mode navigation** keymap — the reference-picking keys every host routes the same
7
+ * way, so key routing "just works" wherever focus happens to be (the inline editor, the formula bar, a
8
+ * grid pane layer, a dialog range field):
9
+ *
10
+ * - Arrow → move the active reference (`navigate`)
11
+ * - Shift+Arrow → extend it (`navigate` select)
12
+ * - Ctrl/Cmd+Arrow → jump to the content edge (`navigate` contentful)
13
+ * - Ctrl+Space → select the whole column (`selectRegion` column)
14
+ * - Shift+Space → select the whole row (`selectRegion` row)
15
+ * - Ctrl+Shift+Space → select the whole region (`selectRegion` both)
16
+ *
17
+ * Only these are consumed (`preventDefault` + `stopPropagation`); anything else returns `false` and the
18
+ * host's own handling proceeds. **Done/leave keys (Enter / Tab / Escape and their variants) are
19
+ * deliberately NOT here** — they are host policy: a focused editor commits/cancels through its own
20
+ * keymap, the grid layer routes them to the bus's producer-supplied `onDone`, and a dialog picker wants
21
+ * them back in the dialog. A shared table for them would steal exactly the keys hosts must own.
22
+ *
23
+ * Operates purely on the bus state's {@link ReferenceModeState.selection} — no editor, no session. When
24
+ * the caret isn't on a reference yet (INSERT: `rangeIndex < 0`) the first key seeds an active range at
25
+ * the selection's anchor cell (fenced — see {@link isReferencePointSeeding}) and then navigates, so the
26
+ * write-back inserts the *navigated* range, even for the first keystroke.
27
+ *
28
+ * @param e The keydown, from whatever host captured it.
29
+ * @param state The current bus state (caller checks armedness policy; this checks `mode === 'point'`).
30
+ * @param pointScope The sheet the user is POINTING AT — always required, always stamped (the inverted
31
+ * reporting rule: a picker's report carries its scope unconditionally; the consumer localizes). A grid
32
+ * pane passes its own sheet; an input host passes the workbook's DISPLAYED sheet (Excel: keyboard
33
+ * pointing targets the sheet you are looking at). The seed — and, on a re-scope, the active
34
+ * reference — is re-homed here before the move, the same semantics as the mouse path's pane-side
35
+ * stamping (`scopeDrawnRanges`).
36
+ * @returns `true` when the key was consumed (a point-nav key while `'point'` is armed).
37
+ */
38
+ export declare const handleReferencePointNav: (e: React.KeyboardEvent, state: ReferenceModeState | null, pointScope: string) => boolean;
39
+ //# sourceMappingURL=referencePointNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referencePointNav.d.ts","sourceRoot":"","sources":["../../../../src/editor/referencePointNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAS7D,6FAA6F;AAC7F,eAAO,MAAM,uBAAuB,QAAO,OAAmB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,uBAAuB,GAClC,GAAG,KAAK,CAAC,aAAa,EACtB,OAAO,kBAAkB,GAAG,IAAI,EAChC,YAAY,MAAM,KACjB,OA2EF,CAAC"}
@@ -0,0 +1,126 @@
1
+ import { default as React } from 'react';
2
+ import { ICalculation, INamedCollection } from '@sheetxl/sdk';
3
+ import { NamedItem } from './NamedItemsPanel';
4
+ /**
5
+ * The autocomplete rows for a typed `prefix` — the whole list, from all three sources, in the order
6
+ * they are shown.
7
+ *
8
+ * Excel's list is ONE alphabetical run rather than a run per kind: a user typing `SU` is reaching for
9
+ * a name, not for a category, so functions, defined names and tables interleave and the leading glyph
10
+ * carries the distinction.
11
+ *
12
+ * Sources and their asymmetries:
13
+ * - **Functions** — matched on the LOCALIZED name a user of the active language types and sees
14
+ * (`SUMME`) *or* its canonical English (English is always accepted; see I18N-DESIGN.md Plane 3). The
15
+ * localized name is what gets inserted, and that is correct: the editing compiler binds it back to
16
+ * canonical and storage stays canonical. Capped at {@link MAX_FUNCTION_RESULTS} *before* the merge.
17
+ * - **Names and tables** — one collection (a table is an `INamed` whose `getType()` is `'table'`).
18
+ * Pass the SHEET's (`ISheet.getNames()`), which already holds exactly what a formula written there
19
+ * can refer to, shadowing resolved — the workbook's would offer other sheets' private names.
20
+ * Deliberately NOT localized: a defined name is the user's own text, spelled the same in every
21
+ * language.
22
+ *
23
+ * A name colliding with a FUNCTION name is pathological but possible; the function wins, because that
24
+ * is what the compiler binds a bare identifier to — completing to the name would insert text that
25
+ * reads back as the function. Matching is case-insensitive throughout, as names are.
26
+ *
27
+ * Pure and total: either source failing costs only its own rows, never the list.
28
+ */
29
+ export declare const buildMatches: (calc: ICalculation, prefix: string, names: INamedCollection | null) => NamedItem[];
30
+ /**
31
+ * Start offset (after the leading prefix — `base`) of the INNERMOST function call that is still OPEN at
32
+ * `caret` — the offset of that call's *name token* — or `null` when the caret isn't inside an open call.
33
+ * "Open" = the caret sits between the call's `(` and its matching `)` (which may not exist yet while the
34
+ * formula is being typed). This both anchors the hint popup to the function name (so it holds still as the
35
+ * caret moves through the arguments) and gates the preview (shown ⇔ non-null).
36
+ *
37
+ * A stack walk over the tokens BEFORE the caret: a `function` token arms a name-start that the next `(`
38
+ * pushes; `)` pops; a grouping `(` (no preceding `function`) pushes `-1` so a bare group `(A1+A2)` doesn't
39
+ * count. The innermost `function` entry still on the stack at the caret is the answer.
40
+ *
41
+ * Deliberately paren-balance, NOT the `evalIndex` climb the hover-eval tip uses. The tip is token-specific
42
+ * (hover a token → eval its subtree); the caret preview instead asks "which call am I INSIDE?", and that
43
+ * can't be read from `evalIndex`/`context`: `=sum(3)+` and `=sum(sum(3)+` end in the same `SUM#-1`,
44
+ * `evalIndex:undefined` trailing token yet want opposite results (none vs. the still-open outer). Only the
45
+ * paren balance separates a closed call from an open one.
46
+ */
47
+ export declare const enclosingOpenFunctionStart: (tokens: readonly ICalculation.FormulaToken[], caret: number, base: number) => number | null;
48
+ export interface UseFormulaHintsOptions {
49
+ /** The live editor/field text. */
50
+ text: string;
51
+ /**
52
+ * The LIVE parse's tokens (a getter — some hosts declare their parse after this hook), or `null` —
53
+ * no hints derive without tokens. Offsets are text offsets past the leading prefix (the hook
54
+ * derives the prefix length from {@link text}).
55
+ */
56
+ getTokens(): readonly ICalculation.FormulaToken[] | null;
57
+ /** Whether the host is actively editing (focused / engaged) — hints derive only while `true`. */
58
+ active: boolean;
59
+ /** The LIVE caret position (read at derivation time, not render time). */
60
+ getCaret(): number;
61
+ /** Resolution context — the calculation whose function registry backs the list + signatures. */
62
+ getCalculation(): ICalculation | null;
63
+ /**
64
+ * The named items — defined names AND tables — offered in the autocomplete list beside the
65
+ * functions, as Excel does. Omit (or return `null`) for a host with no workbook behind it; the list
66
+ * then holds functions only, exactly as before.
67
+ *
68
+ * @remarks
69
+ * Must be the SHEET's collection (`ISheet.getNames()`), not the workbook's: that one holds exactly
70
+ * what a formula on that sheet can refer to, so no scoping is needed here. The workbook's would
71
+ * offer another sheet's private names, which complete to expressions that do not resolve.
72
+ */
73
+ getNames?(): INamedCollection | null;
74
+ /** Workbook locale (drives the argument-separator shown in the signature). `null` → `'en'`. */
75
+ getLocale(): string | null;
76
+ /**
77
+ * Apply an accepted completion: replace the WHOLE text and park the caret at `caret`. The editor
78
+ * routes this through its dirty-change; a field through its headless `replaceText`.
79
+ */
80
+ applyText(next: string, caret: number): void;
81
+ /**
82
+ * The hovered token index (the eval tip's), or `null` — emphasizes the hovered ARGUMENT in the
83
+ * signature preview. Pass the live value (it participates in the panel identity).
84
+ */
85
+ hoveredTokenIndex?: number | null;
86
+ }
87
+ /** What {@link useFormulaHints} hands the hosting chrome. */
88
+ export interface FormulaHintsApi {
89
+ /** Something to show — the autocomplete list has matches, or a signature preview resolved. */
90
+ active: boolean;
91
+ /**
92
+ * Re-derive the hint + matches from the current text/caret. Call whenever the text, caret, or
93
+ * active state changes (the same sync point that projects references).
94
+ */
95
+ update(): void;
96
+ /**
97
+ * Autocomplete list keyboard nav (Up/Down move the highlight, Enter/Tab accept, Escape dismisses
98
+ * the LIST without cancelling the edit). Call FIRST in the host keymap; `true` = consumed.
99
+ */
100
+ handleKeyDown(e: React.KeyboardEvent): boolean;
101
+ /** Drop the list + preview immediately (host-driven — e.g. leaving the edit). */
102
+ dismiss(): void;
103
+ /**
104
+ * Anchor offset (a character index) for a caret-rect anchored host: the START of the caret-owning
105
+ * token (the name being typed / the innermost open call's name), falling back to the caret.
106
+ */
107
+ getAnchorOffset(): number;
108
+ /**
109
+ * STABLE-identity panel renderer for `useFloatStack.createPopupPanel` — the autocomplete list when
110
+ * it has matches, else the signature preview. Returns `null` when there is nothing to show.
111
+ */
112
+ renderPanel(): React.ReactNode;
113
+ }
114
+ /**
115
+ * The **formula hints** state machine — function autocomplete (`=SU` → SUM, SUMIF…) and the
116
+ * caret-context signature preview (current argument emphasized, self-describing summary/param text
117
+ * loaded lazily), extracted from the cell editor so every formula-hosting input shares ONE
118
+ * implementation: the session stack's `SheetCellInput` and the session-less field widgets
119
+ * (`useFormulaInputParts` → `FormulaInput` / the MUI `FormulaField`).
120
+ *
121
+ * Headless: derivation + keyboard + the panel's content only. The HOST owns the float (each chrome
122
+ * anchors a `useFloatStack` where it wants — the editor at the caret rect, a field under its input
123
+ * box), the open/close policy, and when {@link FormulaHintsApi.update} runs.
124
+ */
125
+ export declare const useFormulaHints: (options: UseFormulaHintsOptions) => FormulaHintsApi;
126
+ //# sourceMappingURL=useFormulaHints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormulaHints.d.ts","sourceRoot":"","sources":["../../../../src/editor/useFormulaHints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAEL,KAAK,YAAY,EAAe,KAAK,gBAAgB,EACtD,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAwCnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,YAAY,EAClB,QAAQ,MAAM,EACd,OAAO,gBAAgB,GAAG,IAAI,KAC7B,SAAS,EA0BX,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,YAAY,CAAC,YAAY,EAAE,EAC5C,OAAO,MAAM,EACb,MAAM,MAAM,KACX,MAAM,GAAG,IAeX,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,IAAI,SAAS,YAAY,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IACzD,iGAAiG;IACjG,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,QAAQ,IAAI,MAAM,CAAC;IACnB,gGAAgG;IAChG,cAAc,IAAI,YAAY,GAAG,IAAI,CAAC;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,gBAAgB,GAAG,IAAI,CAAC;IACrC,+FAA+F;IAC/F,SAAS,IAAI,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,8FAA8F;IAC9F,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,MAAM,IAAI,IAAI,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;IAC/C,iFAAiF;IACjF,OAAO,IAAI,IAAI,CAAC;IAChB;;;OAGG;IACH,eAAe,IAAI,MAAM,CAAC;IAC1B;;;OAGG;IACH,WAAW,IAAI,KAAK,CAAC,SAAS,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,sBAAsB,KAAG,eA0SjE,CAAC"}