@gridsheet/react-core 3.0.0-rc.1 → 3.0.0-rc.10

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 (318) hide show
  1. package/LICENSE +190 -0
  2. package/dist/hooks-Y7BI_RNj.mjs +1103 -0
  3. package/dist/hooks-Y7BI_RNj.mjs.map +1 -0
  4. package/dist/index.d.ts +2 -32
  5. package/dist/index.js +2963 -13438
  6. package/dist/index.js.map +1 -1
  7. package/dist/react-core/src/components/Cell.d.ts.map +1 -0
  8. package/dist/react-core/src/components/CellStateOverlay.d.ts.map +1 -0
  9. package/dist/react-core/src/components/ColumnMenu.d.ts.map +1 -0
  10. package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts +5 -0
  11. package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts.map +1 -0
  12. package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts +5 -0
  13. package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts.map +1 -0
  14. package/dist/react-core/src/components/ColumnMenuSortSection.d.ts +5 -0
  15. package/dist/react-core/src/components/ColumnMenuSortSection.d.ts.map +1 -0
  16. package/dist/react-core/src/components/ContextMenu.d.ts +2 -0
  17. package/dist/react-core/src/components/ContextMenu.d.ts.map +1 -0
  18. package/dist/react-core/src/components/Editor.d.ts.map +1 -0
  19. package/dist/react-core/src/components/EditorOptions.d.ts.map +1 -0
  20. package/dist/react-core/src/components/Emitter.d.ts.map +1 -0
  21. package/dist/react-core/src/components/Fixed.d.ts.map +1 -0
  22. package/dist/react-core/src/components/FormulaBar.d.ts.map +1 -0
  23. package/dist/{components → react-core/src/components}/FunctionGuide.d.ts +4 -4
  24. package/dist/react-core/src/components/FunctionGuide.d.ts.map +1 -0
  25. package/dist/react-core/src/components/GridSheet.d.ts +7 -0
  26. package/dist/react-core/src/components/GridSheet.d.ts.map +1 -0
  27. package/dist/react-core/src/components/HeaderCellLeft.d.ts.map +1 -0
  28. package/dist/react-core/src/components/HeaderCellTop.d.ts.map +1 -0
  29. package/dist/react-core/src/components/MenuItem.d.ts +18 -0
  30. package/dist/react-core/src/components/MenuItem.d.ts.map +1 -0
  31. package/dist/{components → react-core/src/components}/PluginBase.d.ts +2 -2
  32. package/dist/react-core/src/components/PluginBase.d.ts.map +1 -0
  33. package/dist/react-core/src/components/Resizer.d.ts.map +1 -0
  34. package/dist/react-core/src/components/RowMenu.d.ts.map +1 -0
  35. package/dist/react-core/src/components/ScrollHandle.d.ts.map +1 -0
  36. package/dist/react-core/src/components/SearchBar.d.ts.map +1 -0
  37. package/dist/react-core/src/components/StoreObserver.d.ts +14 -0
  38. package/dist/react-core/src/components/StoreObserver.d.ts.map +1 -0
  39. package/dist/react-core/src/components/Tabular.d.ts.map +1 -0
  40. package/dist/react-core/src/components/svg/AddIcon.d.ts.map +1 -0
  41. package/dist/react-core/src/components/svg/Base.d.ts.map +1 -0
  42. package/dist/react-core/src/components/svg/CloseIcon.d.ts.map +1 -0
  43. package/dist/react-core/src/components/svg/SearchIcon.d.ts.map +1 -0
  44. package/dist/{components → react-core/src/components}/useAutocomplete.d.ts +1 -3
  45. package/dist/react-core/src/components/useAutocomplete.d.ts.map +1 -0
  46. package/dist/react-core/src/index.d.ts +17 -0
  47. package/dist/react-core/src/index.d.ts.map +1 -0
  48. package/dist/react-core/src/lib/clipboard.d.ts +18 -0
  49. package/dist/react-core/src/lib/clipboard.d.ts.map +1 -0
  50. package/dist/react-core/src/lib/events.d.ts.map +1 -0
  51. package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
  52. package/dist/react-core/src/lib/hooks.d.ts.map +1 -0
  53. package/dist/react-core/src/lib/menu.d.ts +99 -0
  54. package/dist/react-core/src/lib/menu.d.ts.map +1 -0
  55. package/dist/react-core/src/lib/paste.d.ts.map +1 -0
  56. package/dist/react-core/src/lib/style.d.ts +12 -0
  57. package/dist/react-core/src/lib/style.d.ts.map +1 -0
  58. package/dist/react-core/src/policy/checkbox.d.ts +3 -0
  59. package/dist/react-core/src/policy/checkbox.d.ts.map +1 -0
  60. package/dist/react-core/src/spellbook.d.ts +6 -0
  61. package/dist/react-core/src/spellbook.d.ts.map +1 -0
  62. package/dist/{store → react-core/src/store}/actions.d.ts +3 -3
  63. package/dist/react-core/src/store/actions.d.ts.map +1 -0
  64. package/dist/react-core/src/store/applyers.d.ts +40 -0
  65. package/dist/react-core/src/store/applyers.d.ts.map +1 -0
  66. package/dist/react-core/src/store/helpers.d.ts +33 -0
  67. package/dist/react-core/src/store/helpers.d.ts.map +1 -0
  68. package/dist/react-core/src/store/index.d.ts.map +1 -0
  69. package/dist/react-core/src/types.d.ts +101 -0
  70. package/dist/react-core/src/types.d.ts.map +1 -0
  71. package/dist/spellbook.d.ts +2 -0
  72. package/dist/spellbook.js +9 -0
  73. package/dist/spellbook.js.map +1 -0
  74. package/package.json +16 -10
  75. package/dist/components/Cell.d.ts.map +0 -1
  76. package/dist/components/CellStateOverlay.d.ts.map +0 -1
  77. package/dist/components/ColumnMenu.d.ts.map +0 -1
  78. package/dist/components/ContextMenu.d.ts +0 -21
  79. package/dist/components/ContextMenu.d.ts.map +0 -1
  80. package/dist/components/Editor.d.ts.map +0 -1
  81. package/dist/components/EditorOptions.d.ts.map +0 -1
  82. package/dist/components/Emitter.d.ts.map +0 -1
  83. package/dist/components/Fixed.d.ts.map +0 -1
  84. package/dist/components/FormulaBar.d.ts.map +0 -1
  85. package/dist/components/FunctionGuide.d.ts.map +0 -1
  86. package/dist/components/GridSheet.d.ts +0 -5
  87. package/dist/components/GridSheet.d.ts.map +0 -1
  88. package/dist/components/HeaderCellLeft.d.ts.map +0 -1
  89. package/dist/components/HeaderCellTop.d.ts.map +0 -1
  90. package/dist/components/PluginBase.d.ts.map +0 -1
  91. package/dist/components/Resizer.d.ts.map +0 -1
  92. package/dist/components/RowMenu.d.ts.map +0 -1
  93. package/dist/components/ScrollHandle.d.ts.map +0 -1
  94. package/dist/components/SearchBar.d.ts.map +0 -1
  95. package/dist/components/StoreObserver.d.ts +0 -11
  96. package/dist/components/StoreObserver.d.ts.map +0 -1
  97. package/dist/components/Tabular.d.ts.map +0 -1
  98. package/dist/components/hooks.d.ts.map +0 -1
  99. package/dist/components/svg/AddIcon.d.ts.map +0 -1
  100. package/dist/components/svg/Base.d.ts.map +0 -1
  101. package/dist/components/svg/CloseIcon.d.ts.map +0 -1
  102. package/dist/components/svg/SearchIcon.d.ts.map +0 -1
  103. package/dist/components/useAutocomplete.d.ts.map +0 -1
  104. package/dist/constants.d.ts +0 -17
  105. package/dist/constants.d.ts.map +0 -1
  106. package/dist/formula/evaluator.d.ts +0 -138
  107. package/dist/formula/evaluator.d.ts.map +0 -1
  108. package/dist/formula/functions/__async.d.ts +0 -62
  109. package/dist/formula/functions/__async.d.ts.map +0 -1
  110. package/dist/formula/functions/__base.d.ts +0 -53
  111. package/dist/formula/functions/__base.d.ts.map +0 -1
  112. package/dist/formula/functions/__utils.d.ts +0 -19
  113. package/dist/formula/functions/__utils.d.ts.map +0 -1
  114. package/dist/formula/functions/abs.d.ts +0 -9
  115. package/dist/formula/functions/abs.d.ts.map +0 -1
  116. package/dist/formula/functions/acos.d.ts +0 -9
  117. package/dist/formula/functions/acos.d.ts.map +0 -1
  118. package/dist/formula/functions/add.d.ts +0 -10
  119. package/dist/formula/functions/add.d.ts.map +0 -1
  120. package/dist/formula/functions/and.d.ts +0 -9
  121. package/dist/formula/functions/and.d.ts.map +0 -1
  122. package/dist/formula/functions/asin.d.ts +0 -9
  123. package/dist/formula/functions/asin.d.ts.map +0 -1
  124. package/dist/formula/functions/atan.d.ts +0 -9
  125. package/dist/formula/functions/atan.d.ts.map +0 -1
  126. package/dist/formula/functions/atan2.d.ts +0 -9
  127. package/dist/formula/functions/atan2.d.ts.map +0 -1
  128. package/dist/formula/functions/average.d.ts +0 -9
  129. package/dist/formula/functions/average.d.ts.map +0 -1
  130. package/dist/formula/functions/col.d.ts +0 -9
  131. package/dist/formula/functions/col.d.ts.map +0 -1
  132. package/dist/formula/functions/concat.d.ts +0 -9
  133. package/dist/formula/functions/concat.d.ts.map +0 -1
  134. package/dist/formula/functions/concatenate.d.ts +0 -9
  135. package/dist/formula/functions/concatenate.d.ts.map +0 -1
  136. package/dist/formula/functions/cos.d.ts +0 -9
  137. package/dist/formula/functions/cos.d.ts.map +0 -1
  138. package/dist/formula/functions/count.d.ts +0 -9
  139. package/dist/formula/functions/count.d.ts.map +0 -1
  140. package/dist/formula/functions/counta.d.ts +0 -9
  141. package/dist/formula/functions/counta.d.ts.map +0 -1
  142. package/dist/formula/functions/countif.d.ts +0 -10
  143. package/dist/formula/functions/countif.d.ts.map +0 -1
  144. package/dist/formula/functions/divide.d.ts +0 -9
  145. package/dist/formula/functions/divide.d.ts.map +0 -1
  146. package/dist/formula/functions/eq.d.ts +0 -9
  147. package/dist/formula/functions/eq.d.ts.map +0 -1
  148. package/dist/formula/functions/exp.d.ts +0 -9
  149. package/dist/formula/functions/exp.d.ts.map +0 -1
  150. package/dist/formula/functions/gt.d.ts +0 -9
  151. package/dist/formula/functions/gt.d.ts.map +0 -1
  152. package/dist/formula/functions/gte.d.ts +0 -9
  153. package/dist/formula/functions/gte.d.ts.map +0 -1
  154. package/dist/formula/functions/hlookup.d.ts +0 -10
  155. package/dist/formula/functions/hlookup.d.ts.map +0 -1
  156. package/dist/formula/functions/if.d.ts +0 -9
  157. package/dist/formula/functions/if.d.ts.map +0 -1
  158. package/dist/formula/functions/iferror.d.ts +0 -12
  159. package/dist/formula/functions/iferror.d.ts.map +0 -1
  160. package/dist/formula/functions/index.d.ts +0 -10
  161. package/dist/formula/functions/index.d.ts.map +0 -1
  162. package/dist/formula/functions/len.d.ts +0 -9
  163. package/dist/formula/functions/len.d.ts.map +0 -1
  164. package/dist/formula/functions/lenb.d.ts +0 -9
  165. package/dist/formula/functions/lenb.d.ts.map +0 -1
  166. package/dist/formula/functions/ln.d.ts +0 -9
  167. package/dist/formula/functions/ln.d.ts.map +0 -1
  168. package/dist/formula/functions/log.d.ts +0 -9
  169. package/dist/formula/functions/log.d.ts.map +0 -1
  170. package/dist/formula/functions/log10.d.ts +0 -9
  171. package/dist/formula/functions/log10.d.ts.map +0 -1
  172. package/dist/formula/functions/lt.d.ts +0 -9
  173. package/dist/formula/functions/lt.d.ts.map +0 -1
  174. package/dist/formula/functions/lte.d.ts +0 -9
  175. package/dist/formula/functions/lte.d.ts.map +0 -1
  176. package/dist/formula/functions/match.d.ts +0 -10
  177. package/dist/formula/functions/match.d.ts.map +0 -1
  178. package/dist/formula/functions/match.test.d.ts +0 -2
  179. package/dist/formula/functions/match.test.d.ts.map +0 -1
  180. package/dist/formula/functions/max.d.ts +0 -9
  181. package/dist/formula/functions/max.d.ts.map +0 -1
  182. package/dist/formula/functions/min.d.ts +0 -9
  183. package/dist/formula/functions/min.d.ts.map +0 -1
  184. package/dist/formula/functions/minus.d.ts +0 -10
  185. package/dist/formula/functions/minus.d.ts.map +0 -1
  186. package/dist/formula/functions/mod.d.ts +0 -9
  187. package/dist/formula/functions/mod.d.ts.map +0 -1
  188. package/dist/formula/functions/multiply.d.ts +0 -9
  189. package/dist/formula/functions/multiply.d.ts.map +0 -1
  190. package/dist/formula/functions/ne.d.ts +0 -9
  191. package/dist/formula/functions/ne.d.ts.map +0 -1
  192. package/dist/formula/functions/not.d.ts +0 -9
  193. package/dist/formula/functions/not.d.ts.map +0 -1
  194. package/dist/formula/functions/now.d.ts +0 -9
  195. package/dist/formula/functions/now.d.ts.map +0 -1
  196. package/dist/formula/functions/or.d.ts +0 -9
  197. package/dist/formula/functions/or.d.ts.map +0 -1
  198. package/dist/formula/functions/pi.d.ts +0 -9
  199. package/dist/formula/functions/pi.d.ts.map +0 -1
  200. package/dist/formula/functions/power.d.ts +0 -9
  201. package/dist/formula/functions/power.d.ts.map +0 -1
  202. package/dist/formula/functions/product.d.ts +0 -9
  203. package/dist/formula/functions/product.d.ts.map +0 -1
  204. package/dist/formula/functions/radians.d.ts +0 -9
  205. package/dist/formula/functions/radians.d.ts.map +0 -1
  206. package/dist/formula/functions/rand.d.ts +0 -9
  207. package/dist/formula/functions/rand.d.ts.map +0 -1
  208. package/dist/formula/functions/round.d.ts +0 -9
  209. package/dist/formula/functions/round.d.ts.map +0 -1
  210. package/dist/formula/functions/rounddown.d.ts +0 -9
  211. package/dist/formula/functions/rounddown.d.ts.map +0 -1
  212. package/dist/formula/functions/roundup.d.ts +0 -9
  213. package/dist/formula/functions/roundup.d.ts.map +0 -1
  214. package/dist/formula/functions/row.d.ts +0 -9
  215. package/dist/formula/functions/row.d.ts.map +0 -1
  216. package/dist/formula/functions/sin.d.ts +0 -9
  217. package/dist/formula/functions/sin.d.ts.map +0 -1
  218. package/dist/formula/functions/sqrt.d.ts +0 -9
  219. package/dist/formula/functions/sqrt.d.ts.map +0 -1
  220. package/dist/formula/functions/sum.d.ts +0 -9
  221. package/dist/formula/functions/sum.d.ts.map +0 -1
  222. package/dist/formula/functions/sumif.d.ts +0 -10
  223. package/dist/formula/functions/sumif.d.ts.map +0 -1
  224. package/dist/formula/functions/tan.d.ts +0 -9
  225. package/dist/formula/functions/tan.d.ts.map +0 -1
  226. package/dist/formula/functions/uminus.d.ts +0 -9
  227. package/dist/formula/functions/uminus.d.ts.map +0 -1
  228. package/dist/formula/functions/vlookup.d.ts +0 -10
  229. package/dist/formula/functions/vlookup.d.ts.map +0 -1
  230. package/dist/formula/mapping.d.ts +0 -10
  231. package/dist/formula/mapping.d.ts.map +0 -1
  232. package/dist/formula/solver.d.ts +0 -26
  233. package/dist/formula/solver.d.ts.map +0 -1
  234. package/dist/index.d.ts.map +0 -1
  235. package/dist/lib/autofill.d.ts +0 -17
  236. package/dist/lib/autofill.d.ts.map +0 -1
  237. package/dist/lib/cell.d.ts +0 -15
  238. package/dist/lib/cell.d.ts.map +0 -1
  239. package/dist/lib/clipboard.d.ts +0 -3
  240. package/dist/lib/clipboard.d.ts.map +0 -1
  241. package/dist/lib/coords.d.ts +0 -10
  242. package/dist/lib/coords.d.ts.map +0 -1
  243. package/dist/lib/date.d.ts +0 -2
  244. package/dist/lib/date.d.ts.map +0 -1
  245. package/dist/lib/events.d.ts.map +0 -1
  246. package/dist/lib/filter.d.ts +0 -7
  247. package/dist/lib/filter.d.ts.map +0 -1
  248. package/dist/lib/hub.d.ts +0 -136
  249. package/dist/lib/hub.d.ts.map +0 -1
  250. package/dist/lib/input.d.ts +0 -15
  251. package/dist/lib/input.d.ts.map +0 -1
  252. package/dist/lib/operation.d.ts +0 -34
  253. package/dist/lib/operation.d.ts.map +0 -1
  254. package/dist/lib/palette.d.ts +0 -2
  255. package/dist/lib/palette.d.ts.map +0 -1
  256. package/dist/lib/paste.d.ts.map +0 -1
  257. package/dist/lib/reference.d.ts +0 -13
  258. package/dist/lib/reference.d.ts.map +0 -1
  259. package/dist/lib/sheet.d.ts +0 -3
  260. package/dist/lib/sheet.d.ts.map +0 -1
  261. package/dist/lib/spatial.d.ts +0 -94
  262. package/dist/lib/spatial.d.ts.map +0 -1
  263. package/dist/lib/table.d.ts +0 -463
  264. package/dist/lib/table.d.ts.map +0 -1
  265. package/dist/lib/time.d.ts +0 -25
  266. package/dist/lib/time.d.ts.map +0 -1
  267. package/dist/lib/virtualization.d.ts +0 -22
  268. package/dist/lib/virtualization.d.ts.map +0 -1
  269. package/dist/parsers/core.d.ts +0 -38
  270. package/dist/parsers/core.d.ts.map +0 -1
  271. package/dist/policy/core.d.ts +0 -54
  272. package/dist/policy/core.d.ts.map +0 -1
  273. package/dist/renderers/checkbox.d.ts +0 -5
  274. package/dist/renderers/checkbox.d.ts.map +0 -1
  275. package/dist/renderers/core.d.ts +0 -66
  276. package/dist/renderers/core.d.ts.map +0 -1
  277. package/dist/renderers/thousand_separator.d.ts +0 -3
  278. package/dist/renderers/thousand_separator.d.ts.map +0 -1
  279. package/dist/sentinels.d.ts +0 -23
  280. package/dist/sentinels.d.ts.map +0 -1
  281. package/dist/store/actions.d.ts.map +0 -1
  282. package/dist/store/dispatchers.d.ts +0 -36
  283. package/dist/store/dispatchers.d.ts.map +0 -1
  284. package/dist/store/helpers.d.ts +0 -25
  285. package/dist/store/helpers.d.ts.map +0 -1
  286. package/dist/store/index.d.ts.map +0 -1
  287. package/dist/styles/embedder.d.ts +0 -2
  288. package/dist/styles/embedder.d.ts.map +0 -1
  289. package/dist/styles/minified.d.ts +0 -3
  290. package/dist/styles/minified.d.ts.map +0 -1
  291. package/dist/styles/utils.d.ts +0 -52
  292. package/dist/styles/utils.d.ts.map +0 -1
  293. package/dist/types.d.ts +0 -365
  294. package/dist/types.d.ts.map +0 -1
  295. package/dist/utils.d.ts +0 -2
  296. package/dist/utils.d.ts.map +0 -1
  297. /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
  298. /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
  299. /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
  300. /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
  301. /package/dist/{components → react-core/src/components}/EditorOptions.d.ts +0 -0
  302. /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
  303. /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
  304. /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
  305. /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
  306. /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
  307. /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
  308. /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
  309. /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
  310. /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
  311. /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
  312. /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
  313. /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
  314. /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
  315. /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
  316. /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
  317. /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
  318. /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/Cell.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAyWzB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAkRtC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAqC,MAAM,OAAO,CAAC;AAWnE,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,EA0GxB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { ColMenuSectionProps } from '../lib/menu';
3
+ declare const FilterSection: FC<ColMenuSectionProps>;
4
+ export { FilterSection };
5
+ //# sourceMappingURL=ColumnMenuFilterSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnMenuFilterSection.d.ts","sourceRoot":"","sources":["../../../../src/components/ColumnMenuFilterSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAK9E,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAwB9E,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,CA+O1C,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { ColMenuSectionProps } from '../lib/menu';
3
+ declare const LabelSection: FC<ColMenuSectionProps>;
4
+ export { LabelSection };
5
+ //# sourceMappingURL=ColumnMenuLabelSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnMenuLabelSection.d.ts","sourceRoot":"","sources":["../../../../src/components/ColumnMenuLabelSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAMtF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,mBAAmB,CA6EzC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { ColMenuSectionProps } from '../lib/menu';
3
+ declare const SortSection: FC<ColMenuSectionProps>;
4
+ export { SortSection };
5
+ //# sourceMappingURL=ColumnMenuSortSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnMenuSortSection.d.ts","sourceRoot":"","sources":["../../../../src/components/ColumnMenuSortSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAI9E,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAO9E,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,mBAAmB,CA0FxC,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ContextMenu: () => JSX.Element | null;
2
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,0BAgEvB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0ChC,OAAO,EAA4C,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK9E,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAssB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/EditorOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,UAAU,kBAAkB;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuCtD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Emitter.d.ts","sourceRoot":"","sources":["../../../../src/components/Emitter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,eAAO,MAAM,OAAO,EAAE,EA+BrB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fixed.d.ts","sourceRoot":"","sources":["../../../../src/components/Fixed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,KAAK,CAW3B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBA8XpD,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { FunctionHelp } from '../formula/mapping';
3
- import { AutocompleteOption } from '../policy/core';
2
+ import { FunctionHelp, AutocompleteOption } from '../../../core/src';
4
3
  type OptionWithGuide = AutocompleteOption & {
5
4
  isFunction?: boolean;
6
5
  example?: string;
7
- helpTexts?: string[];
8
- helpArgs?: any[];
6
+ category?: string;
7
+ description?: string;
8
+ defs?: any[];
9
9
  };
10
10
  export interface FunctionGuideProps {
11
11
  option?: OptionWithGuide;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAEjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8JtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { SheetHandle, StoreHandle, Props } from '../types';
2
+ export declare const createSheetRef: () => import('react').RefObject<SheetHandle | null>;
3
+ export declare const useSheetRef: () => import('react').MutableRefObject<SheetHandle | null>;
4
+ export declare const createStoreRef: () => import('react').RefObject<StoreHandle | null>;
5
+ export declare const useStoreRef: () => import('react').MutableRefObject<StoreHandle | null>;
6
+ export declare function GridSheet({ initialCells, sheetName, sheetRef: initialSheetRef, storeRef: initialStoreRef, options, className, style, book: initialBook, }: Props): JSX.Element;
7
+ //# sourceMappingURL=GridSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,WAAW,EAAE,WAAW,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AA+B5G,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAElE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,eAAe,EACzB,OAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,EAAE,WAAW,GAClB,EAAE,KAAK,eA2KP"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAkQnC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAmRlC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ type MenuItemProps = {
3
+ label: string;
4
+ shortcuts?: string[];
5
+ disabled?: boolean;
6
+ /**
7
+ * undefined → no check column
8
+ * true/false → displayed as a toggle row with a checkmark
9
+ */
10
+ checked?: boolean;
11
+ testId?: string;
12
+ onClick?: () => void;
13
+ className?: string;
14
+ };
15
+ export declare const MenuItem: FC<MenuItemProps>;
16
+ export declare const MenuDivider: FC;
17
+ export {};
18
+ //# sourceMappingURL=MenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA0CtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAA6C,CAAC"}
@@ -4,9 +4,9 @@ import { Dispatcher } from '../store';
4
4
  export type PluginContextType = {
5
5
  provided: boolean;
6
6
  store?: StoreType;
7
- sync?: Dispatcher;
7
+ apply?: Dispatcher;
8
8
  setStore: (store: StoreType) => void;
9
- setSync: (sync: Dispatcher) => void;
9
+ setApply: (apply: Dispatcher) => void;
10
10
  };
11
11
  export declare const PluginContext: import('react').Context<PluginContextType>;
12
12
  export declare function useInitialPluginContext(): PluginContextType;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginBase.d.ts","sourceRoot":"","sources":["../../../../src/components/PluginBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,aAAa,4CAAyC,CAAC;AAEpE,wBAAgB,uBAAuB,IAAI,iBAAiB,CAU3D;AAED,wBAAgB,gBAAgB,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAM/D;AAED,wBAAgB,iBAAiB,kCAMhC;AAED,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,eAMtD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../../../src/components/Resizer.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,mBAuGnB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AA8C5C,eAAO,MAAM,OAAO,EAAE,EAmCrB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAU3C,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,SAAc,EAAE,EAAE,KAAK,eAsL1F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS,0BAuMrB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FC, MutableRefObject } from 'react';
2
+ import { OptionsType, SheetHandle, StoreHandle } from '../types';
3
+ type StoreObserverProps = OptionsType & {
4
+ sheetName?: string;
5
+ sheetRef?: MutableRefObject<SheetHandle | null>;
6
+ storeRef?: MutableRefObject<StoreHandle | null>;
7
+ };
8
+ export declare const createSheetRef: () => import('react').RefObject<SheetHandle | null>;
9
+ export declare const useSheetRef: () => MutableRefObject<SheetHandle | null>;
10
+ export declare const createStoreRef: () => import('react').RefObject<StoreHandle | null>;
11
+ export declare const useStoreRef: () => MutableRefObject<StoreHandle | null>;
12
+ export declare const StoreObserver: FC<StoreObserverProps>;
13
+ export {};
14
+ //# sourceMappingURL=StoreObserver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreObserver.d.ts","sourceRoot":"","sources":["../../../../src/components/StoreObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAS,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ7E,KAAK,kBAAkB,GAAG,WAAW,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqFhD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabular.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO,0BAuOnB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/svg/AddIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,QAAQ,CAAC;AAI9C,eAAO,MAAM,OAAO,GAAI,wBAAsC,SAAS,gBAQtE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../../../src/components/svg/Base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,SAAU,SAAQ,SAAS;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,eAAO,MAAM,IAAI,GAAI,2BAAgC,SAAS,gBAkB7D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/svg/CloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,QAAQ,CAAC;AAI9C,eAAO,MAAM,SAAS,GAAI,wBAAsC,SAAS,gBAQxE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/svg/SearchIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,QAAQ,CAAC;AAI9C,eAAO,MAAM,UAAU,GAAI,wBAAsC,SAAS,gBAQzE,CAAC"}
@@ -1,6 +1,4 @@
1
- import { FunctionHelp } from '../formula/mapping';
2
- import { FunctionMapping } from '../formula/functions/__base';
3
- import { AutocompleteOption } from '../policy/core';
1
+ import { FunctionHelp, FunctionMapping, AutocompleteOption } from '../../../core/src';
4
2
  type UseAutocompleteProps = {
5
3
  inputting: string;
6
4
  selectionStart: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../../../src/components/useAutocomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sDAAsD,oBAAoB;;;;gCA6L7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}
@@ -0,0 +1,17 @@
1
+ export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, matrixShape, addressesToAreas, addressesToCols, addressesToRows, Time, x2c, c2x, y2r, r2y, p2a, a2p, rh, ch, Registry, createBook, createRegistry, Sheet, toValueMatrix, toValueObject, toValueRows, toValueCols, toCellMatrix, toCellObject, toCellRows, toCellCols, BaseFunction, BaseFunctionAsync, Lexer, FormulaParser, RefEntity, ValueEntity, RangeEntity, FormulaError, ensureString, ensureNumber, ensureBoolean, ensureDate, check, eachMatrix, createBooleanMask, conditionArg, stripMatrix, Policy, ThousandSeparatorPolicyMixin, operations, DEFAULT_HISTORY_LIMIT, Pending, Spilling, } from '../../core/src';
2
+ export type { CSSPropertiesLike, RefLike, MatrixType, CellType, System, Address, AsyncCache, FilterCondition, FilterConditionMethod, FilterConfig, FeedbackType, WriterType, CellsByAddressType, CellsByIdType, SystemsByIdType, ModeType, HeadersType, HistoryType, HistorySortRowsType, PointType, AreaType, ZoneType, EditorEvent, CursorStateType, BookType, BookProps, RegistryProps, TransmitProps, UserSheet, SheetLimits, ToValueMatrixProps, ToValueObjectProps, ToValueRowsProps, ToValueColsProps, ToCellMatrixProps, ToCellObjectProps, ToCellRowsProps, ToCellColsProps, FunctionProps, FunctionArgumentDefinition, FunctionCategory, FunctionMapping, EnsureNumberOptions, EnsureBooleanOptions, PolicyType, AutocompleteOption, PolicyMixinType, RenderProps, SerializeProps, SelectProps, SelectFallbackProps, SerializeForClipboardProps, } from '../../core/src';
3
+ export { GridSheet, createSheetRef, useSheetRef, createStoreRef, useStoreRef } from './components/GridSheet';
4
+ export { updateSheet } from './store/actions';
5
+ export { PluginBase, useInitialPluginContext, usePluginContext } from './components/PluginBase';
6
+ export { MenuItem, MenuDivider } from './components/MenuItem';
7
+ export { useBook } from './lib/hooks';
8
+ export type { Dispatcher } from './store';
9
+ export { CheckboxPolicyMixin } from './policy/checkbox';
10
+ export type { Props, StoreType, SheetHandle, StoreHandle, OptionsType } from './types';
11
+ export { userActions } from './store/actions';
12
+ export { clip, sheet2csv } from './lib/clipboard';
13
+ export { applyers } from './store/applyers';
14
+ export { makeBorder } from './lib/style';
15
+ export type { MenuContext, MenuItemBase, MenuComponentItem, ContextMenuItemDescriptor, RowMenuItemDescriptor, ColMenuItemDescriptor, MenuDividerItem, ContextMenuSectionProps, RowMenuSectionProps, ColMenuSectionProps, } from './lib/menu';
16
+ export { defaultContextMenuDescriptors, defaultRowMenuDescriptors, defaultColMenuDescriptors, registerMenuComponent, } from './lib/menu';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,EAEf,IAAI,EAEJ,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,EAAE,EACF,EAAE,EAEF,QAAQ,EACR,UAAU,EACV,cAAc,EAEd,KAAK,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EAEV,YAAY,EACZ,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,WAAW,EAEX,MAAM,EACN,4BAA4B,EAE5B,UAAU,EAEV,qBAAqB,EACrB,OAAO,EACP,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAEV,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,MAAM,EACN,OAAO,EACP,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,QAAQ,EACR,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,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ACZ,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { StoreType, AreaType, PointType } from '../types';
2
+ import { UserSheet } from '../../../core/src';
3
+ export declare const clip: (store: StoreType) => AreaType;
4
+ export type SheetCSVProps = {
5
+ getter?: (sheet: UserSheet, point: PointType) => string;
6
+ filteredRowsIncluded?: boolean;
7
+ trailingEmptyRowsOmitted?: boolean;
8
+ separator?: string;
9
+ newline?: string;
10
+ };
11
+ export declare const sheet2csv: (sheet: UserSheet, { getter, filteredRowsIncluded, trailingEmptyRowsOmitted, separator, newline, }?: SheetCSVProps) => string;
12
+ export type SheetHTMLProps = {
13
+ getter?: (sheet: UserSheet, point: PointType) => string;
14
+ filteredRowsIncluded?: boolean;
15
+ trailingEmptyRowsOmitted?: boolean;
16
+ };
17
+ export declare const sheet2html: (sheet: UserSheet, { getter, filteredRowsIncluded, trailingEmptyRowsOmitted, }?: SheetHTMLProps) => string;
18
+ //# sourceMappingURL=clipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../src/lib/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,KAAK,EAAS,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGxD,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,aAgDpC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;IACxD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,OAAO,SAAS,EAChB,kFAQG,aAAkB,KACpB,MA4BF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;IACxD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,SAAS,EAChB,8DAMG,cAAmB,KACrB,MA8BF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/lib/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,OAUnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,IAI3E,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { BookType, RegistryProps } from '../../../core/src';
1
2
  export declare const useBrowser: () => {
2
3
  window: Window & typeof globalThis;
3
4
  document: Document;
@@ -7,4 +8,5 @@ export declare const useBrowser: () => {
7
8
  };
8
9
  export declare const useDebounce: <T>(value: T, delay?: number) => T;
9
10
  export declare const useDebounceCallback: (callback: (...args: any[]) => void, delay?: number) => (...args: any[]) => void;
11
+ export declare const useBook: (props?: RegistryProps) => BookType;
10
12
  //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/lib/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AAIpG,eAAO,MAAM,UAAU;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,cAAW,MAWnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,cAAW,MAQzE,GAAG,MAAM,GAAG,EAAE,SAMvB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAO,aAAkB,aAehD,CAAC"}
@@ -0,0 +1,99 @@
1
+ import { PointType, ZoneType, FilterConfig, StoreType } from '../types';
2
+ import { UserSheet } from '../../../core/src';
3
+ import { Dispatcher } from '../store';
4
+ import { FC } from 'react';
5
+ export type MenuContext = {
6
+ /** Current sheet instance */
7
+ sheet: UserSheet;
8
+ /** Currently focused cell */
9
+ choosing: PointType;
10
+ /** Currently selected zone */
11
+ selectingZone: ZoneType;
12
+ /** True when the left (row) header is being selected */
13
+ leftHeaderSelecting: boolean;
14
+ /** True when the top (column) header is being selected */
15
+ topHeaderSelecting: boolean;
16
+ cut(): Promise<void>;
17
+ copy(): Promise<void>;
18
+ paste(onlyValue?: boolean): Promise<void>;
19
+ undo(): void;
20
+ redo(): void;
21
+ insertRowsAbove(y: number, numRows: number): void;
22
+ insertRowsBelow(y: number, numRows: number): void;
23
+ removeRows(y: number, numRows: number): void;
24
+ insertColsLeft(x: number, numCols: number): void;
25
+ insertColsRight(x: number, numCols: number): void;
26
+ removeCols(x: number, numCols: number): void;
27
+ sortRows(x: number, direction: 'asc' | 'desc'): Promise<void>;
28
+ filterRows(x: number, filter?: FilterConfig): Promise<void>;
29
+ clearFilter(x?: number): void;
30
+ toggleSortFixed(y: number): void;
31
+ toggleFilterFixed(y: number): void;
32
+ search(): void;
33
+ updateColLabel(x: number, label: string | undefined): void;
34
+ /** Close the currently open menu */
35
+ close(): void;
36
+ };
37
+ export type MenuDividerItem = {
38
+ type: 'divider';
39
+ visible?: (ctx: MenuContext) => boolean;
40
+ };
41
+ /**
42
+ * Base structure shared by all menu item descriptors.
43
+ * `Args` is the tuple of coordinate arguments passed after `ctx`:
44
+ * - `[]` → ContextMenu (no coordinate)
45
+ * - `[y: number]` → RowMenu
46
+ * - `[x: number]` → ColMenu
47
+ */
48
+ export type MenuItemBase<Args extends unknown[] = []> = {
49
+ type?: 'item';
50
+ id?: string;
51
+ label: string | ((ctx: MenuContext, ...args: Args) => string);
52
+ shortcuts?: string[] | ((ctx: MenuContext, ...args: Args) => string[]);
53
+ visible?: (ctx: MenuContext, ...args: Args) => boolean;
54
+ disabled?: (ctx: MenuContext, ...args: Args) => boolean;
55
+ /** Render a checkmark prefix when defined. */
56
+ checked?: (ctx: MenuContext, ...args: Args) => boolean;
57
+ onClick: (ctx: MenuContext, ...args: Args) => void | Promise<void>;
58
+ };
59
+ /**
60
+ * A menu entry that renders a registered React component.
61
+ * Use `registerMenuComponent(id, Component)` to associate an id with a component,
62
+ * then reference it here as `{ type: 'component', componentId: id }`.
63
+ */
64
+ export type MenuComponentItem<Args extends unknown[] = []> = {
65
+ type: 'component';
66
+ componentId: string;
67
+ visible?: (ctx: MenuContext, ...args: Args) => boolean;
68
+ };
69
+ export type ContextMenuItemDescriptor = MenuDividerItem | MenuItemBase | MenuComponentItem;
70
+ export type RowMenuItemDescriptor = MenuDividerItem | MenuItemBase<[y: number]> | MenuComponentItem<[y: number]>;
71
+ export type ColMenuItemDescriptor = MenuDividerItem | MenuItemBase<[x: number]> | MenuComponentItem<[x: number]>;
72
+ export declare const defaultContextMenuDescriptors: ContextMenuItemDescriptor[];
73
+ export declare const defaultRowMenuDescriptors: RowMenuItemDescriptor[];
74
+ export declare const defaultColMenuDescriptors: ColMenuItemDescriptor[];
75
+ export declare function buildMenuContext(store: StoreType, dispatch: Dispatcher, close: () => void): MenuContext;
76
+ export type ContextMenuSectionProps = {
77
+ close: () => void;
78
+ };
79
+ export type RowMenuSectionProps = {
80
+ y: number;
81
+ close: () => void;
82
+ };
83
+ export type ColMenuSectionProps = {
84
+ x: number;
85
+ close: () => void;
86
+ /** Signal waiting state to parent menu. Pass null to clear. */
87
+ onWaiting?: (message: string | null, cancel?: () => void) => void;
88
+ };
89
+ /**
90
+ * Register a React component under a string id so it can be referenced in menu
91
+ * descriptors via `{ type: 'component', componentId: '...' }`.
92
+ *
93
+ * Built-in ids: `'col-filter'`, `'col-sort'`, `'col-label'`.
94
+ * You can override any built-in by registering your own component with the same id.
95
+ */
96
+ export declare function registerMenuComponent(id: string, component: FC<any>): void;
97
+ /** Look up a previously registered component by id. */
98
+ export declare function getMenuComponent(id: string): FC<any> | undefined;
99
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/menu.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA4B3C,MAAM,MAAM,WAAW,GAAG;IACxB,6BAA6B;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,8BAA8B;IAC9B,aAAa,EAAE,QAAQ,CAAC;IACxB,wDAAwD;IACxD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0DAA0D;IAC1D,kBAAkB,EAAE,OAAO,CAAC;IAG5B,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CA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AE1E;AAED,uDAAuD;AAEvD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAEhE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paste.d.ts","sourceRoot":"","sources":["../../../../src/lib/paste.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,mBAAiB,KAAG,WAAW,EAAE,EA4FxE,CAAC;AAiEF,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,YAAU,KAAG,WAAW,EAAE,EAkChE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'react';
2
+ type BorderStyleValue = string;
3
+ interface BorderOptions {
4
+ all?: BorderStyleValue;
5
+ top?: BorderStyleValue;
6
+ right?: BorderStyleValue;
7
+ bottom?: BorderStyleValue;
8
+ left?: BorderStyleValue;
9
+ }
10
+ export declare function makeBorder(options: BorderOptions): CSSProperties;
11
+ export {};
12
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/lib/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,gBAAgB,GAAG,MAAM,CAAC;AAE/B,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,gBAAgB,CAAC;IACvB,GAAG,CAAC,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAgBhE"}
@@ -0,0 +1,3 @@
1
+ import { PolicyMixinType } from '../../../core/src';
2
+ export declare const CheckboxPolicyMixin: PolicyMixinType;
3
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/policy/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAEpE,eAAO,MAAM,mBAAmB,EAAE,eAejC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { RegistryProps } from '../../core/src';
2
+ /** useBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */
3
+ export declare const useSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('../../core/src').BookType;
4
+ /** createBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */
5
+ export declare const createSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('../../core/src').BookType;
6
+ //# sourceMappingURL=spellbook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spellbook.d.ts","sourceRoot":"","sources":["../../../src/spellbook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,2GAA2G;AAC3G,eAAO,MAAM,YAAY,GAAI,mCAAkC,aAAkB,uCACO,CAAC;AAEzF,8GAA8G;AAC9G,eAAO,MAAM,eAAe,GAAI,mCAAkC,aAAkB,uCACO,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { StoreType, RectType, ZoneType, PointType, RangeType, PositionType, RawCellType, OperatorType, FilterConfig } from '../types';
2
- import { Table } from '../lib/table';
2
+ import { Sheet } from '../../../core/src';
3
3
  type StoreWithCallback = StoreType & {
4
4
  callback?: (store: StoreType) => void;
5
5
  };
@@ -64,9 +64,9 @@ export declare const setEntering: (payload: boolean) => {
64
64
  type: number;
65
65
  value: boolean;
66
66
  };
67
- export declare const updateTable: (payload: Table) => {
67
+ export declare const updateSheet: (payload: Sheet) => {
68
68
  type: number;
69
- value: Table;
69
+ value: Sheet;
70
70
  };
71
71
  export declare const setEditorRect: (payload: RectType) => {
72
72
  type: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/store/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EAIT,YAAY,EAEZ,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAaxC,KAAK,iBAAiB,GAAG,SAAS,GAAG;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,OAAO,SAAS,EAAE,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,KAAG,SAkCjF,CAAC;AAEF,qBAAa,UAAU,CAAC,CAAC;IACvB,MAAM,CAAC,IAAI,SAAK;IAChB,OAAO,CAAC,QAAQ,CAAa;IAEtB,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,GAAG,iBAAiB;IAGvD,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE;IAM5C,IAAI,cANU,CAAC,KAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE;CAWpD;AAgBD,eAAO,MAAM,cAAc;UA3BQ,MAAM;;CA2BsB,CAAC;AAgBhE,eAAO,MAAM,sBAAsB;UA3CA,MAAM;;CA2CsC,CAAC;AAgBhF,eAAO,MAAM,cAAc;UA3DQ,MAAM;;CA2DsB,CAAC;AAgBhE,eAAO,MAAM,cAAc;UA3EQ,MAAM;;CA2EsB,CAAC;AAU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BAAa,YAAY;;cAjkCnD,MAAM;;qBAikCG,MAAM;eAAK,MAAM;uBAAa,YAAY;;;;iBAkC1C,MAAM;WAAK,MAAM;mBAAa,YAAY;;cAnmCnD,MAAM;;qBAmmCG,MAAM;eAAK,MAAM;uBAAa,YAAY;;;;WAkClD,MAAM;mBAAa,KAAK,GAAG,MAAM;;cAroClC,MAAM;;eAqoCL,MAAM;uBAAa,KAAK,GAAG,MAAM;;;;YAsB9B,MAAM;iBAAW,YAAY;;cA3pCjC,MAAM;;gBA2pCF,MAAM;qBAAW,YAAY;;;CA4GnE,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { StoreDispatchType, FilterConfig } from '../types';
2
+ export declare const copier: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
3
+ export declare const cutter: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
4
+ export declare const paster: ({ store, dispatch }: StoreDispatchType, onlyValue?: boolean) => Promise<void>;
5
+ export declare const undoer: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
6
+ export declare const redoer: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
7
+ export declare const rowsInserterAbove: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
8
+ export declare const rowsInserterBelow: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
9
+ export declare const colsInserterLeft: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
10
+ export declare const colsInserterRight: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
11
+ export declare const rowsRemover: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
12
+ export declare const colsRemover: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
13
+ export declare const rowsSorterAsc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
14
+ export declare const rowsSorterDesc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
15
+ export declare const rowsFilterer: ({ store, dispatch }: StoreDispatchType, x: number, filter: FilterConfig) => Promise<void>;
16
+ export declare const rowsFilterClearer: ({ store, dispatch }: StoreDispatchType, x?: number) => Promise<void>;
17
+ export declare const rowSortFixedToggler: ({ store, dispatch }: StoreDispatchType, y: number) => void;
18
+ export declare const rowFilterFixedToggler: ({ store, dispatch }: StoreDispatchType, y: number) => void;
19
+ export declare const searcher: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
20
+ export declare const applyers: {
21
+ copy: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
22
+ cut: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
23
+ paste: ({ store, dispatch }: StoreDispatchType, onlyValue?: boolean) => Promise<void>;
24
+ undo: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
25
+ redo: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
26
+ insertRowsAbove: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
27
+ insertRowsBelow: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
28
+ insertColsLeft: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
29
+ insertColsRight: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
30
+ removeRows: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
31
+ removeCols: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
32
+ sortRowsAsc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
33
+ sortRowsDesc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
34
+ filterRows: ({ store, dispatch }: StoreDispatchType, x: number, filter: FilterConfig) => Promise<void>;
35
+ clearFilter: ({ store, dispatch }: StoreDispatchType, x?: number) => Promise<void>;
36
+ toggleSortFixed: ({ store, dispatch }: StoreDispatchType, y: number) => void;
37
+ toggleFilterFixed: ({ store, dispatch }: StoreDispatchType, y: number) => void;
38
+ search: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
39
+ };
40
+ //# sourceMappingURL=applyers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyers.d.ts","sourceRoot":"","sources":["../../../../src/store/applyers.ts"],"names":[],"mappings":"AA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AAiB,EAAE,GAAG,MAAM,SAWtF,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAU,qBAAqB,iBAAiB,kBAMpE,CAAC;AAEF,eAAO,MAAM,QAAQ;gCAtK6B,iBAAiB;+BAOjB,iBAAiB;iCAOjB,iBAAiB;gCA0BjB,iBAAiB;gCAMjB,iBAAiB;2CAMN,iBAAiB;2CAQjB,iBAAiB;0CAQlB,iBAAiB;2CAQhB,iBAAiB;sCAQvB,iBAAiB;sCAQjB,iBAAiB;uCAQf,iBAAiB,KAAK,MAAM;wCAS3B,iBAAiB,KAAK,MAAM;sCAS9B,iBAAiB,KAAK,MAAM,UAAU,YAAY;uCAS7C,iBAAiB,MAAM,MAAM;2CAKjC,iBAAiB,KAAK,MAAM;6CAa1B,iBAAiB,KAAK,MAAM;kCAanC,iBAAiB;CA2BpE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { Sheet } from '../../../core/src';
2
+ import { PointType, StorePatchType, StoreType } from '../types';
3
+ /**
4
+ * Strip redundant fields from a StorePatchType before recording in history.
5
+ * - selectingZone with endY === -1 && endX === -1 is a no-selection sentinel and need not be stored.
6
+ */
7
+ export declare const compactReflection: (reflection: StorePatchType) => StorePatchType;
8
+ export declare const restrictPoints: (store: StoreType, sheet: Sheet) => {
9
+ choosing: PointType;
10
+ selectingZone: {
11
+ startY: number;
12
+ startX: number;
13
+ endY: number;
14
+ endX: number;
15
+ };
16
+ };
17
+ export declare const flashSheet: (el: HTMLElement | null) => void;
18
+ export declare const flashWithCallback: (store: StoreType, sheet: Sheet, callback: ((s: StoreType) => void) | undefined) => StoreType & {
19
+ callback?: (store: StoreType) => void;
20
+ };
21
+ export declare const initSearchStatement: (sheet: Sheet, store: StoreType) => {
22
+ matchingCells: never[];
23
+ searchQuery?: undefined;
24
+ matchingCellIndex?: undefined;
25
+ choosing?: undefined;
26
+ } | {
27
+ matchingCells: string[];
28
+ searchQuery: string;
29
+ matchingCellIndex: number;
30
+ choosing: PointType;
31
+ };
32
+ export declare const isXSheetFocused: (store: StoreType) => boolean;
33
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/store/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,EAAW,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,cAAc,KAAG,cAM9D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,EAAE,OAAO,KAAK;cAwBnC,SAAS;;;;;;;CAGlC,CAAC;AAIF,eAAO,MAAM,UAAU,GAAI,IAAI,WAAW,GAAG,IAAI,SAShD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,EAChB,OAAO,KAAK,EACZ,UAAU,CAAC,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC,GAAG,SAAS,KAC7C,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;CAOpD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,OAAO,SAAS;;;;;;;;;;CAwDjE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,YAU/C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO;WAET,SAAS;cACN,UAAU;EAEvB,CAAC"}