@gridsheet/react-core 3.0.0-rc.0 → 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 (313) 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 -31
  5. package/dist/index.js +3180 -12636
  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 +11 -0
  20. package/dist/react-core/src/components/EditorOptions.d.ts.map +1 -0
  21. package/dist/react-core/src/components/Emitter.d.ts.map +1 -0
  22. package/dist/react-core/src/components/Fixed.d.ts.map +1 -0
  23. package/dist/react-core/src/components/FormulaBar.d.ts.map +1 -0
  24. package/dist/react-core/src/components/FunctionGuide.d.ts +19 -0
  25. package/dist/react-core/src/components/FunctionGuide.d.ts.map +1 -0
  26. package/dist/react-core/src/components/GridSheet.d.ts +7 -0
  27. package/dist/react-core/src/components/GridSheet.d.ts.map +1 -0
  28. package/dist/react-core/src/components/HeaderCellLeft.d.ts.map +1 -0
  29. package/dist/react-core/src/components/HeaderCellTop.d.ts.map +1 -0
  30. package/dist/react-core/src/components/MenuItem.d.ts +18 -0
  31. package/dist/react-core/src/components/MenuItem.d.ts.map +1 -0
  32. package/dist/{components → react-core/src/components}/PluginBase.d.ts +2 -2
  33. package/dist/react-core/src/components/PluginBase.d.ts.map +1 -0
  34. package/dist/react-core/src/components/Resizer.d.ts.map +1 -0
  35. package/dist/react-core/src/components/RowMenu.d.ts.map +1 -0
  36. package/dist/react-core/src/components/ScrollHandle.d.ts.map +1 -0
  37. package/dist/react-core/src/components/SearchBar.d.ts.map +1 -0
  38. package/dist/react-core/src/components/StoreObserver.d.ts +14 -0
  39. package/dist/react-core/src/components/StoreObserver.d.ts.map +1 -0
  40. package/dist/react-core/src/components/Tabular.d.ts.map +1 -0
  41. package/dist/react-core/src/components/svg/AddIcon.d.ts.map +1 -0
  42. package/dist/react-core/src/components/svg/Base.d.ts.map +1 -0
  43. package/dist/react-core/src/components/svg/CloseIcon.d.ts.map +1 -0
  44. package/dist/react-core/src/components/svg/SearchIcon.d.ts.map +1 -0
  45. package/dist/react-core/src/components/useAutocomplete.d.ts +23 -0
  46. package/dist/react-core/src/components/useAutocomplete.d.ts.map +1 -0
  47. package/dist/react-core/src/index.d.ts +17 -0
  48. package/dist/react-core/src/index.d.ts.map +1 -0
  49. package/dist/react-core/src/lib/clipboard.d.ts +18 -0
  50. package/dist/react-core/src/lib/clipboard.d.ts.map +1 -0
  51. package/dist/react-core/src/lib/events.d.ts.map +1 -0
  52. package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
  53. package/dist/react-core/src/lib/hooks.d.ts.map +1 -0
  54. package/dist/react-core/src/lib/menu.d.ts +99 -0
  55. package/dist/react-core/src/lib/menu.d.ts.map +1 -0
  56. package/dist/react-core/src/lib/paste.d.ts.map +1 -0
  57. package/dist/react-core/src/lib/style.d.ts +12 -0
  58. package/dist/react-core/src/lib/style.d.ts.map +1 -0
  59. package/dist/react-core/src/policy/checkbox.d.ts +3 -0
  60. package/dist/react-core/src/policy/checkbox.d.ts.map +1 -0
  61. package/dist/react-core/src/spellbook.d.ts +6 -0
  62. package/dist/react-core/src/spellbook.d.ts.map +1 -0
  63. package/dist/{store → react-core/src/store}/actions.d.ts +15 -3
  64. package/dist/react-core/src/store/actions.d.ts.map +1 -0
  65. package/dist/react-core/src/store/applyers.d.ts +40 -0
  66. package/dist/react-core/src/store/applyers.d.ts.map +1 -0
  67. package/dist/react-core/src/store/helpers.d.ts +33 -0
  68. package/dist/react-core/src/store/helpers.d.ts.map +1 -0
  69. package/dist/react-core/src/store/index.d.ts.map +1 -0
  70. package/dist/react-core/src/types.d.ts +101 -0
  71. package/dist/react-core/src/types.d.ts.map +1 -0
  72. package/dist/spellbook.d.ts +2 -0
  73. package/dist/spellbook.js +9 -0
  74. package/dist/spellbook.js.map +1 -0
  75. package/package.json +28 -10
  76. package/dist/components/Cell.d.ts.map +0 -1
  77. package/dist/components/CellStateOverlay.d.ts.map +0 -1
  78. package/dist/components/ColumnMenu.d.ts.map +0 -1
  79. package/dist/components/ContextMenu.d.ts +0 -20
  80. package/dist/components/ContextMenu.d.ts.map +0 -1
  81. package/dist/components/Editor.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/GridSheet.d.ts +0 -5
  86. package/dist/components/GridSheet.d.ts.map +0 -1
  87. package/dist/components/HeaderCellLeft.d.ts.map +0 -1
  88. package/dist/components/HeaderCellTop.d.ts.map +0 -1
  89. package/dist/components/PluginBase.d.ts.map +0 -1
  90. package/dist/components/Resizer.d.ts.map +0 -1
  91. package/dist/components/RowMenu.d.ts.map +0 -1
  92. package/dist/components/ScrollHandle.d.ts.map +0 -1
  93. package/dist/components/SearchBar.d.ts.map +0 -1
  94. package/dist/components/StoreObserver.d.ts +0 -11
  95. package/dist/components/StoreObserver.d.ts.map +0 -1
  96. package/dist/components/Tabular.d.ts.map +0 -1
  97. package/dist/components/hooks.d.ts.map +0 -1
  98. package/dist/components/svg/AddIcon.d.ts.map +0 -1
  99. package/dist/components/svg/Base.d.ts.map +0 -1
  100. package/dist/components/svg/CloseIcon.d.ts.map +0 -1
  101. package/dist/components/svg/SearchIcon.d.ts.map +0 -1
  102. package/dist/constants.d.ts +0 -30
  103. package/dist/constants.d.ts.map +0 -1
  104. package/dist/formula/evaluator.d.ts +0 -136
  105. package/dist/formula/evaluator.d.ts.map +0 -1
  106. package/dist/formula/functions/__async.d.ts +0 -59
  107. package/dist/formula/functions/__async.d.ts.map +0 -1
  108. package/dist/formula/functions/__base.d.ts +0 -31
  109. package/dist/formula/functions/__base.d.ts.map +0 -1
  110. package/dist/formula/functions/__utils.d.ts +0 -19
  111. package/dist/formula/functions/__utils.d.ts.map +0 -1
  112. package/dist/formula/functions/abs.d.ts +0 -12
  113. package/dist/formula/functions/abs.d.ts.map +0 -1
  114. package/dist/formula/functions/acos.d.ts +0 -12
  115. package/dist/formula/functions/acos.d.ts.map +0 -1
  116. package/dist/formula/functions/add.d.ts +0 -13
  117. package/dist/formula/functions/add.d.ts.map +0 -1
  118. package/dist/formula/functions/and.d.ts +0 -19
  119. package/dist/formula/functions/and.d.ts.map +0 -1
  120. package/dist/formula/functions/asin.d.ts +0 -12
  121. package/dist/formula/functions/asin.d.ts.map +0 -1
  122. package/dist/formula/functions/atan.d.ts +0 -12
  123. package/dist/formula/functions/atan.d.ts.map +0 -1
  124. package/dist/formula/functions/atan2.d.ts +0 -12
  125. package/dist/formula/functions/atan2.d.ts.map +0 -1
  126. package/dist/formula/functions/average.d.ts +0 -19
  127. package/dist/formula/functions/average.d.ts.map +0 -1
  128. package/dist/formula/functions/col.d.ts +0 -13
  129. package/dist/formula/functions/col.d.ts.map +0 -1
  130. package/dist/formula/functions/concat.d.ts +0 -12
  131. package/dist/formula/functions/concat.d.ts.map +0 -1
  132. package/dist/formula/functions/concatenate.d.ts +0 -19
  133. package/dist/formula/functions/concatenate.d.ts.map +0 -1
  134. package/dist/formula/functions/cos.d.ts +0 -12
  135. package/dist/formula/functions/cos.d.ts.map +0 -1
  136. package/dist/formula/functions/count.d.ts +0 -19
  137. package/dist/formula/functions/count.d.ts.map +0 -1
  138. package/dist/formula/functions/counta.d.ts +0 -19
  139. package/dist/formula/functions/counta.d.ts.map +0 -1
  140. package/dist/formula/functions/countif.d.ts +0 -13
  141. package/dist/formula/functions/countif.d.ts.map +0 -1
  142. package/dist/formula/functions/divide.d.ts +0 -12
  143. package/dist/formula/functions/divide.d.ts.map +0 -1
  144. package/dist/formula/functions/eq.d.ts +0 -12
  145. package/dist/formula/functions/eq.d.ts.map +0 -1
  146. package/dist/formula/functions/exp.d.ts +0 -12
  147. package/dist/formula/functions/exp.d.ts.map +0 -1
  148. package/dist/formula/functions/gt.d.ts +0 -12
  149. package/dist/formula/functions/gt.d.ts.map +0 -1
  150. package/dist/formula/functions/gte.d.ts +0 -12
  151. package/dist/formula/functions/gte.d.ts.map +0 -1
  152. package/dist/formula/functions/hlookup.d.ts +0 -18
  153. package/dist/formula/functions/hlookup.d.ts.map +0 -1
  154. package/dist/formula/functions/if.d.ts +0 -17
  155. package/dist/formula/functions/if.d.ts.map +0 -1
  156. package/dist/formula/functions/iferror.d.ts +0 -20
  157. package/dist/formula/functions/iferror.d.ts.map +0 -1
  158. package/dist/formula/functions/index.d.ts +0 -18
  159. package/dist/formula/functions/index.d.ts.map +0 -1
  160. package/dist/formula/functions/len.d.ts +0 -12
  161. package/dist/formula/functions/len.d.ts.map +0 -1
  162. package/dist/formula/functions/lenb.d.ts +0 -12
  163. package/dist/formula/functions/lenb.d.ts.map +0 -1
  164. package/dist/formula/functions/ln.d.ts +0 -12
  165. package/dist/formula/functions/ln.d.ts.map +0 -1
  166. package/dist/formula/functions/log.d.ts +0 -12
  167. package/dist/formula/functions/log.d.ts.map +0 -1
  168. package/dist/formula/functions/log10.d.ts +0 -12
  169. package/dist/formula/functions/log10.d.ts.map +0 -1
  170. package/dist/formula/functions/lt.d.ts +0 -12
  171. package/dist/formula/functions/lt.d.ts.map +0 -1
  172. package/dist/formula/functions/lte.d.ts +0 -12
  173. package/dist/formula/functions/lte.d.ts.map +0 -1
  174. package/dist/formula/functions/match.d.ts +0 -18
  175. package/dist/formula/functions/match.d.ts.map +0 -1
  176. package/dist/formula/functions/match.test.d.ts +0 -2
  177. package/dist/formula/functions/match.test.d.ts.map +0 -1
  178. package/dist/formula/functions/max.d.ts +0 -19
  179. package/dist/formula/functions/max.d.ts.map +0 -1
  180. package/dist/formula/functions/min.d.ts +0 -19
  181. package/dist/formula/functions/min.d.ts.map +0 -1
  182. package/dist/formula/functions/minus.d.ts +0 -13
  183. package/dist/formula/functions/minus.d.ts.map +0 -1
  184. package/dist/formula/functions/mod.d.ts +0 -12
  185. package/dist/formula/functions/mod.d.ts.map +0 -1
  186. package/dist/formula/functions/multiply.d.ts +0 -12
  187. package/dist/formula/functions/multiply.d.ts.map +0 -1
  188. package/dist/formula/functions/ne.d.ts +0 -12
  189. package/dist/formula/functions/ne.d.ts.map +0 -1
  190. package/dist/formula/functions/not.d.ts +0 -12
  191. package/dist/formula/functions/not.d.ts.map +0 -1
  192. package/dist/formula/functions/now.d.ts +0 -9
  193. package/dist/formula/functions/now.d.ts.map +0 -1
  194. package/dist/formula/functions/or.d.ts +0 -19
  195. package/dist/formula/functions/or.d.ts.map +0 -1
  196. package/dist/formula/functions/pi.d.ts +0 -9
  197. package/dist/formula/functions/pi.d.ts.map +0 -1
  198. package/dist/formula/functions/power.d.ts +0 -12
  199. package/dist/formula/functions/power.d.ts.map +0 -1
  200. package/dist/formula/functions/product.d.ts +0 -19
  201. package/dist/formula/functions/product.d.ts.map +0 -1
  202. package/dist/formula/functions/radians.d.ts +0 -12
  203. package/dist/formula/functions/radians.d.ts.map +0 -1
  204. package/dist/formula/functions/rand.d.ts +0 -9
  205. package/dist/formula/functions/rand.d.ts.map +0 -1
  206. package/dist/formula/functions/round.d.ts +0 -17
  207. package/dist/formula/functions/round.d.ts.map +0 -1
  208. package/dist/formula/functions/rounddown.d.ts +0 -17
  209. package/dist/formula/functions/rounddown.d.ts.map +0 -1
  210. package/dist/formula/functions/roundup.d.ts +0 -17
  211. package/dist/formula/functions/roundup.d.ts.map +0 -1
  212. package/dist/formula/functions/row.d.ts +0 -13
  213. package/dist/formula/functions/row.d.ts.map +0 -1
  214. package/dist/formula/functions/sin.d.ts +0 -12
  215. package/dist/formula/functions/sin.d.ts.map +0 -1
  216. package/dist/formula/functions/sqrt.d.ts +0 -12
  217. package/dist/formula/functions/sqrt.d.ts.map +0 -1
  218. package/dist/formula/functions/sum.d.ts +0 -19
  219. package/dist/formula/functions/sum.d.ts.map +0 -1
  220. package/dist/formula/functions/sumif.d.ts +0 -18
  221. package/dist/formula/functions/sumif.d.ts.map +0 -1
  222. package/dist/formula/functions/tan.d.ts +0 -12
  223. package/dist/formula/functions/tan.d.ts.map +0 -1
  224. package/dist/formula/functions/uminus.d.ts +0 -12
  225. package/dist/formula/functions/uminus.d.ts.map +0 -1
  226. package/dist/formula/functions/vlookup.d.ts +0 -18
  227. package/dist/formula/functions/vlookup.d.ts.map +0 -1
  228. package/dist/formula/mapping.d.ts +0 -3
  229. package/dist/formula/mapping.d.ts.map +0 -1
  230. package/dist/formula/solver.d.ts +0 -26
  231. package/dist/formula/solver.d.ts.map +0 -1
  232. package/dist/index.d.ts.map +0 -1
  233. package/dist/lib/autofill.d.ts +0 -17
  234. package/dist/lib/autofill.d.ts.map +0 -1
  235. package/dist/lib/cell.d.ts +0 -3
  236. package/dist/lib/cell.d.ts.map +0 -1
  237. package/dist/lib/clipboard.d.ts +0 -3
  238. package/dist/lib/clipboard.d.ts.map +0 -1
  239. package/dist/lib/coords.d.ts +0 -10
  240. package/dist/lib/coords.d.ts.map +0 -1
  241. package/dist/lib/date.d.ts +0 -2
  242. package/dist/lib/date.d.ts.map +0 -1
  243. package/dist/lib/events.d.ts.map +0 -1
  244. package/dist/lib/filter.d.ts +0 -7
  245. package/dist/lib/filter.d.ts.map +0 -1
  246. package/dist/lib/hub.d.ts +0 -132
  247. package/dist/lib/hub.d.ts.map +0 -1
  248. package/dist/lib/input.d.ts +0 -15
  249. package/dist/lib/input.d.ts.map +0 -1
  250. package/dist/lib/operation.d.ts +0 -34
  251. package/dist/lib/operation.d.ts.map +0 -1
  252. package/dist/lib/palette.d.ts +0 -2
  253. package/dist/lib/palette.d.ts.map +0 -1
  254. package/dist/lib/paste.d.ts.map +0 -1
  255. package/dist/lib/reference.d.ts +0 -13
  256. package/dist/lib/reference.d.ts.map +0 -1
  257. package/dist/lib/sheet.d.ts +0 -3
  258. package/dist/lib/sheet.d.ts.map +0 -1
  259. package/dist/lib/spatial.d.ts +0 -92
  260. package/dist/lib/spatial.d.ts.map +0 -1
  261. package/dist/lib/table.d.ts +0 -458
  262. package/dist/lib/table.d.ts.map +0 -1
  263. package/dist/lib/time.d.ts +0 -25
  264. package/dist/lib/time.d.ts.map +0 -1
  265. package/dist/lib/virtualization.d.ts +0 -22
  266. package/dist/lib/virtualization.d.ts.map +0 -1
  267. package/dist/parsers/core.d.ts +0 -38
  268. package/dist/parsers/core.d.ts.map +0 -1
  269. package/dist/policy/core.d.ts +0 -47
  270. package/dist/policy/core.d.ts.map +0 -1
  271. package/dist/renderers/checkbox.d.ts +0 -5
  272. package/dist/renderers/checkbox.d.ts.map +0 -1
  273. package/dist/renderers/core.d.ts +0 -66
  274. package/dist/renderers/core.d.ts.map +0 -1
  275. package/dist/renderers/thousand_separator.d.ts +0 -3
  276. package/dist/renderers/thousand_separator.d.ts.map +0 -1
  277. package/dist/store/actions.d.ts.map +0 -1
  278. package/dist/store/dispatchers.d.ts +0 -34
  279. package/dist/store/dispatchers.d.ts.map +0 -1
  280. package/dist/store/helpers.d.ts +0 -31
  281. package/dist/store/helpers.d.ts.map +0 -1
  282. package/dist/store/index.d.ts.map +0 -1
  283. package/dist/styles/embedder.d.ts +0 -2
  284. package/dist/styles/embedder.d.ts.map +0 -1
  285. package/dist/styles/minified.d.ts +0 -3
  286. package/dist/styles/minified.d.ts.map +0 -1
  287. package/dist/styles/utils.d.ts +0 -52
  288. package/dist/styles/utils.d.ts.map +0 -1
  289. package/dist/types.d.ts +0 -355
  290. package/dist/types.d.ts.map +0 -1
  291. package/dist/utils.d.ts +0 -2
  292. package/dist/utils.d.ts.map +0 -1
  293. /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
  294. /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
  295. /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
  296. /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
  297. /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
  298. /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
  299. /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
  300. /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
  301. /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
  302. /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
  303. /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
  304. /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
  305. /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
  306. /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
  307. /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
  308. /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
  309. /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
  310. /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
  311. /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
  312. /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
  313. /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
@@ -1,458 +0,0 @@
1
- import { RendererCallProps } from '../renderers/core';
2
- import { Id, AreaType, CellsByIdType, CellsByAddressType, PointType, Address, CellFilter, MatrixType, CellType, FilterConfig, HistoryType, StorePatchType, ShapeType, OperatorType, OperationType, RawCellType, ExtraPointType, StoreType, RefEvaluation } from '../types';
3
- import { FunctionMapping } from '../formula/functions/__base';
4
- import { Wire } from './hub';
5
- import { PolicyType } from '../policy/core';
6
- type Props = {
7
- minNumRows?: number;
8
- maxNumRows?: number;
9
- minNumCols?: number;
10
- maxNumCols?: number;
11
- functions?: FunctionMapping;
12
- sheetName?: string;
13
- hub?: Wire;
14
- };
15
- type GetProps = {
16
- refEvaluation?: RefEvaluation;
17
- raise?: boolean;
18
- filter?: CellFilter;
19
- };
20
- type MoveProps = {
21
- srcTable?: UserTable;
22
- src: AreaType;
23
- dst: AreaType;
24
- operator?: OperatorType;
25
- undoReflection?: StorePatchType;
26
- redoReflection?: StorePatchType;
27
- historicize?: boolean;
28
- };
29
- type CellField = keyof CellType;
30
- type GetCellProps = GetProps & {
31
- ignoreFields?: CellField[];
32
- };
33
- type GetFieldProps = GetProps & {
34
- field?: keyof CellType;
35
- };
36
- type GetCellMatrixProps = GetCellProps & {
37
- area?: AreaType;
38
- };
39
- type GetFieldMatrixProps = GetFieldProps & {
40
- area?: AreaType;
41
- };
42
- type GetCellObjectProps = GetCellProps & {
43
- addresses?: Address[];
44
- };
45
- type GetFieldObjectProps = GetFieldProps & {
46
- addresses?: Address[];
47
- };
48
- type GetCellRowsProps = GetCellProps & {
49
- rows?: number[];
50
- };
51
- type GetFieldRowsProps = GetFieldProps & {
52
- rows?: number[];
53
- };
54
- type GetCellColsProps = GetCellProps & {
55
- cols?: (number | string)[];
56
- };
57
- type GetFieldColsProps = GetFieldProps & {
58
- cols?: (number | string)[];
59
- };
60
- export interface UserTable {
61
- changedTime: number;
62
- lastChangedTime?: number;
63
- top: number;
64
- left: number;
65
- bottom: number;
66
- right: number;
67
- minNumRows: number;
68
- maxNumRows: number;
69
- minNumCols: number;
70
- maxNumCols: number;
71
- headerWidth: number;
72
- headerHeight: number;
73
- sheetName: string;
74
- /**
75
- * Returns the raw table object, which is used for internal operations.
76
- * This is not intended for public use and may change in future versions.
77
- */
78
- __raw__: Table;
79
- getRectSize(area: AreaType): ShapeType;
80
- getCellByPoint(point: PointType, refEvaluation?: RefEvaluation, raise?: boolean): CellType | undefined;
81
- getCellByAddress(address: Address, refEvaluation?: RefEvaluation, raise?: boolean): CellType | undefined;
82
- getNumRows(base?: number): number;
83
- getNumCols(base?: number): number;
84
- getFieldMatrix(args?: GetFieldMatrixProps): any[][];
85
- getFieldObject(args?: GetFieldObjectProps): {
86
- [address: Address]: any;
87
- };
88
- getFieldRows(args?: GetFieldRowsProps): {
89
- [address: Address]: any;
90
- }[];
91
- getFieldCols(args?: GetFieldColsProps): {
92
- [address: Address]: any;
93
- }[];
94
- getCellMatrix(args?: GetCellMatrixProps): (CellType | null)[][];
95
- getCellObject(args?: GetCellObjectProps): CellsByAddressType;
96
- getCellRows(args?: GetCellRowsProps): CellsByAddressType[];
97
- getCellCols(args?: GetCellColsProps): CellsByAddressType[];
98
- getHistories(): HistoryType[];
99
- move(args: MoveProps): UserTable;
100
- copy(args: MoveProps & {
101
- onlyValue?: boolean;
102
- }): UserTable;
103
- update(args: {
104
- diff: CellsByAddressType;
105
- historicize?: boolean;
106
- partial?: boolean;
107
- updateChangedTime?: boolean;
108
- reflection?: StorePatchType;
109
- }): UserTable;
110
- writeMatrix(args: {
111
- point: PointType;
112
- matrix: MatrixType<string>;
113
- updateChangedTime?: boolean;
114
- reflection?: StorePatchType;
115
- }): UserTable;
116
- write(args: {
117
- point: PointType;
118
- value: string;
119
- updateChangedTime?: boolean;
120
- reflection?: StorePatchType;
121
- }): UserTable;
122
- insertRows(args: {
123
- y: number;
124
- numRows: number;
125
- baseY: number;
126
- diff?: CellsByAddressType;
127
- partial?: boolean;
128
- updateChangedTime?: boolean;
129
- reflection?: StorePatchType;
130
- }): UserTable;
131
- removeRows(args: {
132
- y: number;
133
- numRows: number;
134
- reflection?: StorePatchType;
135
- }): UserTable;
136
- insertCols(args: {
137
- x: number;
138
- numCols: number;
139
- baseX: number;
140
- diff?: CellsByAddressType;
141
- partial?: boolean;
142
- updateChangedTime?: boolean;
143
- reflection?: StorePatchType;
144
- }): UserTable;
145
- removeCols(args: {
146
- x: number;
147
- numCols: number;
148
- reflection?: StorePatchType;
149
- }): UserTable;
150
- undo(): {
151
- history: HistoryType | null;
152
- };
153
- redo(): {
154
- history: HistoryType | null;
155
- };
156
- getHistories(): HistoryType[];
157
- getHistoryIndex(): number;
158
- getHistorySize(): number;
159
- setHeaderHeight(height: number, historicize?: boolean): UserTable;
160
- setHeaderWidth(width: number, historicize?: boolean): UserTable;
161
- sortRows(args: {
162
- x: number;
163
- direction: 'asc' | 'desc';
164
- }): UserTable;
165
- filterRows(args?: {
166
- x?: number;
167
- filter?: FilterConfig;
168
- }): UserTable;
169
- isRowFiltered(y: number): boolean;
170
- hasActiveFilters(): boolean;
171
- hasPendingCells(): boolean;
172
- waitForPending(): Promise<void>;
173
- getLastChangedAddresses(): Address[];
174
- stringify(props: {
175
- point: PointType;
176
- cell?: CellType;
177
- refEvaluation?: RefEvaluation;
178
- }): string;
179
- }
180
- export declare class Table implements UserTable {
181
- changedTime: number;
182
- lastChangedTime?: number;
183
- minNumRows: number;
184
- maxNumRows: number;
185
- minNumCols: number;
186
- maxNumCols: number;
187
- sheetId: number;
188
- sheetName: string;
189
- prevSheetName: string;
190
- status: 0 | 1 | 2;
191
- wire: Wire;
192
- idsToBeIdentified: Id[];
193
- totalWidth: number;
194
- totalHeight: number;
195
- fullHeight: number;
196
- private version;
197
- private idMatrix;
198
- private area;
199
- private addressCaches;
200
- private lastChangedAddresses;
201
- constructor({ minNumRows, maxNumRows, minNumCols, maxNumCols, sheetName, hub, }: Props);
202
- get headerHeight(): number;
203
- setHeaderHeight(height: number, historicize?: boolean): Table;
204
- get headerWidth(): number;
205
- setHeaderWidth(width: number, historicize?: boolean): Table;
206
- /** Get the raw (mutable) cell data for a point. Unlike getCellByPoint, this returns the actual wire.data reference. */
207
- private _getRawCellByPoint;
208
- isRowFiltered(y: number): boolean;
209
- hasActiveFilters(): boolean;
210
- /**
211
- * Returns true if any data cell in this sheet currently holds a Pending value
212
- * (i.e. an async formula that hasn't resolved yet).
213
- */
214
- hasPendingCells(): boolean;
215
- /**
216
- * Returns a Promise that resolves when all in-flight async formula computations
217
- * have completed and no data cells hold Pending values.
218
- * If nothing is pending, resolves immediately.
219
- * Useful for waiting before sort/filter so that cell values are fully resolved.
220
- */
221
- waitForPending(): Promise<void>;
222
- /**
223
- * Returns the addresses that were changed in the most recent `_update()` call.
224
- * Useful inside `onChange` to know which cells were modified.
225
- */
226
- getLastChangedAddresses(): Address[];
227
- /** Capture the current state of all filter-related cells (column headers + row headers) as a CellsByIdType snapshot */
228
- /** Capture the full cell state of all filter-related header cells as a CellsByIdType snapshot */
229
- private _captureFilterCellStates;
230
- filterRows({ x, filter, }?: {
231
- x?: number;
232
- filter?: FilterConfig;
233
- }): Table;
234
- private _reapplyFilters;
235
- sortRows({ x, direction }: {
236
- x: number;
237
- direction: 'asc' | 'desc';
238
- }): Table;
239
- private _sortRowMapping;
240
- get isInitialized(): boolean;
241
- get functions(): FunctionMapping;
242
- get parsers(): {
243
- [parserName: string]: import('../parsers/core').Parser | null;
244
- };
245
- get renderers(): {
246
- [rendererName: string]: import('../renderers/core').Renderer | null;
247
- };
248
- get labelers(): {
249
- [labelerName: string]: ((n: number) => string) | null;
250
- };
251
- get policies(): {
252
- [policyName: string]: import('../policy/core').Policy | null;
253
- };
254
- identifyFormula(): void;
255
- getSheetId(): number;
256
- getTableBySheetName(sheetName: string): Table | null;
257
- getTableBySheetId(sheetId: number): Table | null;
258
- initialize(cells: CellsByAddressType): void;
259
- incrementVersion(): void;
260
- private generateId;
261
- getRectSize({ top, left, bottom, right }: AreaType): {
262
- width: number;
263
- height: number;
264
- };
265
- setTotalSize(): void;
266
- refresh(relocate?: boolean, resize?: boolean): Table;
267
- clone(relocate?: boolean): Table;
268
- getPointById(id: Id, slideY?: number, slideX?: number): PointType & {
269
- absCol: boolean;
270
- absRow: boolean;
271
- };
272
- getAddressById(id: Id, slideY?: number, slideX?: number): string | undefined;
273
- getAddressesByIds(ids: CellsByIdType): CellsByAddressType;
274
- clearAddressCaches(): void;
275
- getId(point: PointType): string;
276
- getIdFormula(point: ExtraPointType): {
277
- id: Id | null;
278
- formula: string | null;
279
- };
280
- getCellByPoint(point: PointType, refEvaluation?: RefEvaluation, raise?: boolean): CellType | undefined;
281
- getCellByAddress(address: Address, refEvaluation?: RefEvaluation, raise?: boolean): CellType | undefined;
282
- getById(id: Id): CellType<any, any> | undefined;
283
- getNumRows(base?: number): number;
284
- getNumCols(base?: number): number;
285
- get top(): number;
286
- get left(): number;
287
- get bottom(): number;
288
- get right(): number;
289
- getFullRef(ref: Address): string;
290
- getFieldMatrix({ area, field, refEvaluation, raise, filter, }?: GetFieldMatrixProps): any[][];
291
- getFieldObject({ field, refEvaluation, raise, filter, addresses, }?: GetFieldObjectProps): {
292
- [Address: string]: any;
293
- };
294
- getFieldRows({ field, refEvaluation, raise, filter, rows, }?: GetFieldRowsProps): CellsByAddressType[];
295
- getFieldCols({ field, refEvaluation, raise, filter, cols, }?: GetFieldColsProps): CellsByAddressType[];
296
- getCellMatrix({ area, refEvaluation, raise, filter, ignoreFields, }?: GetCellMatrixProps): (CellType | null)[][];
297
- getCellObject({ refEvaluation, raise, filter, addresses, ignoreFields, }?: GetCellObjectProps): CellsByAddressType;
298
- getCellRows({ refEvaluation, raise, filter, rows, ignoreFields, }?: GetCellRowsProps): CellsByAddressType[];
299
- getCellCols({ refEvaluation, raise, filter, cols, ignoreFields, }?: GetCellColsProps): CellsByAddressType[];
300
- private pushHistory;
301
- private cleanObsolete;
302
- private cleanStrayed;
303
- private getNewIdMatrix;
304
- private getIdMatrixFromArea;
305
- private setChangedTime;
306
- private copyCellLayout;
307
- move({ srcTable, src, dst, historicize, operator, undoReflection, redoReflection, }: MoveProps): Table;
308
- /**
309
- * Build MoveRelations from src area to dst area, skipping filtered rows.
310
- *
311
- * Layout of the returned array (processed in this order by _moveCells):
312
- * 1. Entries where [0] is a newly-generated ID — these fill the vacated src cells (processed last in forward order)
313
- * 2. Entries where [0] is a src address and [1] is a dst address — the actual moves (processed first in forward order, descending)
314
- * Entries whose [1] is an existing ID mean the destination cell is displaced/overflowed and
315
- * is no longer addressable; on forward pass they are skipped; on reverse pass the ID is written back.
316
- */
317
- private _createMoveRelations;
318
- /**
319
- * Apply (or reverse) a MoveRelations list.
320
- *
321
- * Forward (reverse=false): process descending — actual ID moves happen bottom-up so
322
- * earlier entries don't clobber later ones; vacate entries (at front of array) are
323
- * applied last.
324
- * Reverse (reverse=true): process ascending — restores IDs in the natural order.
325
- *
326
- * On forward pass: applies policy, collects diffBefore, runs ReferencePreserver.
327
- * On reverse pass: only moves IDs (caller is responsible for applyDiff(diffBefore)).
328
- */
329
- private _moveCells;
330
- copy({ srcTable, src, dst, onlyValue, operator, undoReflection, redoReflection, }: MoveProps & {
331
- onlyValue?: boolean;
332
- }): Table;
333
- getPolicyByPoint(point: PointType): PolicyType;
334
- private _update;
335
- update({ diff, partial, updateChangedTime, historicize, operator, operation: op, ignoreFields, undoReflection, redoReflection, }: {
336
- diff: CellsByAddressType;
337
- partial?: boolean;
338
- updateChangedTime?: boolean;
339
- historicize?: boolean;
340
- operator?: OperatorType;
341
- operation?: OperationType;
342
- ignoreFields?: CellField[];
343
- undoReflection?: StorePatchType;
344
- redoReflection?: StorePatchType;
345
- }): Table;
346
- writeRawCellMatrix({ point, matrix, updateChangedTime, historicize, onlyValue, operator, undoReflection, redoReflection, }: {
347
- point: PointType;
348
- matrix: MatrixType<RawCellType>;
349
- updateChangedTime?: boolean;
350
- historicize?: boolean;
351
- onlyValue?: boolean;
352
- operator?: OperatorType;
353
- undoReflection?: StorePatchType;
354
- redoReflection?: StorePatchType;
355
- }): Table;
356
- writeMatrix(props: {
357
- point: PointType;
358
- matrix: MatrixType<string>;
359
- updateChangedTime?: boolean;
360
- historicize?: boolean;
361
- operator?: OperatorType;
362
- undoReflection?: StorePatchType;
363
- redoReflection?: StorePatchType;
364
- }): Table;
365
- write(props: {
366
- point: PointType;
367
- value: string;
368
- updateChangedTime?: boolean;
369
- historicize?: boolean;
370
- operator?: OperatorType;
371
- undoReflection?: StorePatchType;
372
- redoReflection?: StorePatchType;
373
- }): Table;
374
- insertRows({ y, numRows, baseY, diff, partial, updateChangedTime, operator, undoReflection, redoReflection, }: {
375
- y: number;
376
- numRows: number;
377
- baseY: number;
378
- diff?: CellsByAddressType;
379
- partial?: boolean;
380
- updateChangedTime?: boolean;
381
- operator?: OperatorType;
382
- undoReflection?: StorePatchType;
383
- redoReflection?: StorePatchType;
384
- }): Table;
385
- removeRows({ y, numRows, operator, undoReflection, redoReflection, }: {
386
- y: number;
387
- numRows: number;
388
- operator?: OperatorType;
389
- undoReflection?: StorePatchType;
390
- redoReflection?: StorePatchType;
391
- }): Table;
392
- insertCols({ x, numCols, baseX, diff, partial, updateChangedTime, operator, undoReflection, redoReflection, }: {
393
- x: number;
394
- numCols: number;
395
- baseX: number;
396
- diff?: CellsByAddressType;
397
- partial?: boolean;
398
- updateChangedTime?: boolean;
399
- operator?: OperatorType;
400
- undoReflection?: StorePatchType;
401
- redoReflection?: StorePatchType;
402
- }): Table;
403
- removeCols({ x, numCols, operator, undoReflection, redoReflection, }: {
404
- x: number;
405
- numCols: number;
406
- operator?: OperatorType;
407
- undoReflection?: StorePatchType;
408
- redoReflection?: StorePatchType;
409
- }): Table;
410
- getHistories(): HistoryType[];
411
- getHistoryIndex(): number;
412
- getHistorySize(): number;
413
- getHistoryLimit(): number;
414
- getArea(): AreaType;
415
- parse(point: PointType, value: string): CellType;
416
- render(props: RendererCallProps): any;
417
- stringify({ point, cell, refEvaluation, }: {
418
- point: PointType;
419
- cell?: CellType;
420
- refEvaluation?: RefEvaluation;
421
- }): string;
422
- trim(area: AreaType): Table;
423
- private applyDiff;
424
- undo(): {
425
- history: null;
426
- newTable: Table;
427
- callback?: undefined;
428
- } | {
429
- history: HistoryType;
430
- callback: ({ tableReactive: tableRef }: StoreType) => void;
431
- newTable?: undefined;
432
- };
433
- redo(): {
434
- history: null;
435
- newTable: Table;
436
- callback?: undefined;
437
- } | {
438
- history: HistoryType;
439
- callback: ({ tableReactive: tableRef }: StoreType) => void;
440
- newTable?: undefined;
441
- };
442
- getFunction(name: string): typeof import('../formula/functions/__base').BaseFunction;
443
- getLabel(label: string | undefined, labelerKey: string | undefined, n: number): string | null;
444
- getBase(): this;
445
- getSolvedCache(point: PointType): any;
446
- setSolvedCache(point: PointType, value: any): void;
447
- clearSolvedCaches(): void;
448
- sheetPrefix(omit?: boolean): string;
449
- rangeToArea(range: string): {
450
- top: number;
451
- left: number;
452
- bottom: number;
453
- right: number;
454
- };
455
- get __raw__(): Table;
456
- }
457
- export {};
458
- //# sourceMappingURL=table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/lib/table.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EACL,EAAE,EAGF,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,WAAW,EAEX,cAAc,EACd,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACd,SAAS,EACT,aAAa,EAGd,MAAM,UAAU,CAAC;AAWlB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAgB9D,OAAO,EAAE,IAAI,EAAc,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAiB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAK3D,KAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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S,EAAE,KAAK,EAAE,MAAM;IAMrC,MAAM,CAAC,KAAK,EAAE,iBAAiB;IAO/B,SAAS,CAAC,EACf,KAAK,EACL,IAAI,EACJ,aAA0B,GAC3B,EAAE;QACD,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B;IA0BM,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,KAAK;IAQlC,OAAO,CAAC,SAAS;IAiBV,IAAI;;;;;;gDA2EiC,SAAS;;;IAM9C,IAAI;;;;;;gDA0EiC,SAAS;;;IAK9C,WAAW,CAAC,IAAI,EAAE,MAAM;IAIxB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM;IAa7E,OAAO;IAIP,cAAc,CAAC,KAAK,EAAE,SAAS;IAI/B,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG;IAI3C,iBAAiB;IAGjB,WAAW,CAAC,IAAI,UAAQ;IAMxB,WAAW,CAAC,KAAK,EAAE,MAAM;;;;;;IAyBhC,IAAI,OAAO,IAAI,KAAK,CAEnB;CACF"}
@@ -1,25 +0,0 @@
1
- export declare const defaultTimeDeltaFormat = "HH:mm:ss";
2
- export declare const BASE_DATE: Date;
3
- type Diff = [number, number, number, number, number, number, number];
4
- export declare class TimeDelta {
5
- gsType: string;
6
- protected diff: Diff;
7
- private date1;
8
- private date2;
9
- format: string;
10
- constructor(date1: Date, date2: Date, format?: string);
11
- add(date: Date): Date;
12
- sub(date: Date): Date;
13
- stringify(format?: string): string;
14
- toMilliseconds(): number;
15
- toJSON(): string;
16
- toString(): string;
17
- static create(hours?: number, minutes?: number, seconds?: number, milliseconds?: number): TimeDelta;
18
- static is(obj: any): boolean;
19
- static ensure(obj: any): TimeDelta;
20
- static fromObject(obj: any): TimeDelta;
21
- static parse(value: string, format?: string, strict?: boolean): TimeDelta | undefined;
22
- }
23
- export declare const safeQueueMicrotask: typeof queueMicrotask;
24
- export {};
25
- //# sourceMappingURL=time.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/lib/time.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD,eAAO,MAAM,SAAS,MAAmC,CAAC;AAU1D,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErE,qBAAa,SAAS;IACb,MAAM,SAAe;IAC5B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAyB;IAC7C,OAAO,CAAC,KAAK,CAAO;IACpB,OAAO,CAAC,KAAK,CAAO;IACb,MAAM,EAAE,MAAM,CAAC;gBAEV,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,SAAyB;IAc9D,GAAG,CAAC,IAAI,EAAE,IAAI;IAMd,GAAG,CAAC,IAAI,EAAE,IAAI;IAOd,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM;IAuBzB,cAAc,IAAI,MAAM;IAIxB,MAAM;IAIN,QAAQ;IAIf,MAAM,CAAC,MAAM,CAAC,KAAK,SAAI,EAAE,OAAO,SAAI,EAAE,OAAO,SAAI,EAAE,YAAY,SAAI;IASnE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAU5B,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG;IAStB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG;IAG1B,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAyB,EAAE,MAAM,UAAQ,GAAG,SAAS,GAAG,SAAS;CA8CpG;AA2BD,eAAO,MAAM,kBAAkB,uBACyE,CAAC"}
@@ -1,22 +0,0 @@
1
- import { Table } from './table';
2
- import { AreaType, PointType, Virtualization } from '../types';
3
- export declare const getCellRectPositions: (table: Table, { y, x }: PointType) => {
4
- top: number;
5
- left: number;
6
- bottom: number;
7
- right: number;
8
- width: number;
9
- height: number;
10
- };
11
- export declare const getScreenRect: (e: HTMLDivElement) => {
12
- top: number;
13
- left: number;
14
- bottom: number;
15
- right: number;
16
- height: number;
17
- width: number;
18
- };
19
- export declare const virtualize: (table: Table, e: HTMLDivElement | null) => Virtualization | null;
20
- export declare const smartScroll: (table: Table, e: HTMLDivElement | null, targetPoint: PointType, behavior?: ScrollBehavior) => void;
21
- export declare const getAreaInTabular: (tabularElement: HTMLDivElement) => AreaType;
22
- //# sourceMappingURL=virtualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtualization.d.ts","sourceRoot":"","sources":["../../src/lib/virtualization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpE,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,EAAE,UAAU,SAAS;;;;;;;CAgBrE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,GAAG,cAAc;;;;;;;CAQ9C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,EAAE,GAAG,cAAc,GAAG,IAAI,KAAG,cAAc,GAAG,IA6DpF,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,KAAK,EACZ,GAAG,cAAc,GAAG,IAAI,EACxB,aAAa,SAAS,EACtB,WAAU,cAAuB,SAoDlC,CAAC;AAmBF,eAAO,MAAM,gBAAgB,GAAI,gBAAgB,cAAc,KAAG,QAiBjE,CAAC"}
@@ -1,38 +0,0 @@
1
- import { CellType } from '../types';
2
- import { TimeDelta } from '../lib/time';
3
- type Condition = (value: string) => boolean;
4
- type Stringify = (value: string) => any;
5
- type Props = {
6
- condition?: Condition;
7
- complement?: Stringify;
8
- mixins?: ParserMixinType[];
9
- };
10
- export interface ParserMixinType {
11
- functions?: ((value: string, cell?: CellType) => any)[];
12
- callback?(parsed: any, cell?: CellType): CellType;
13
- parse?(value: string, cell: CellType): any;
14
- any?(value: string, cell?: CellType): string | undefined;
15
- bool?(value: string, cell?: CellType): boolean | undefined;
16
- number?(value: string, cell?: CellType): number | undefined;
17
- timedelta?(value: string, cell?: CellType): TimeDelta | undefined;
18
- date?(value: string, cell?: CellType): Date | undefined;
19
- }
20
- export declare class Parser implements ParserMixinType {
21
- functions: ((value: string, cell?: CellType) => any)[];
22
- private condition?;
23
- private complement?;
24
- constructor(props?: Props);
25
- private applyMixins;
26
- call(value: string, cell: CellType): CellType;
27
- callback(parsed: any, cell?: CellType): CellType;
28
- parse(value: string, cell?: CellType): any;
29
- any(value: string, cell?: CellType): string | undefined;
30
- bool(value: string, cell?: CellType): boolean | undefined;
31
- number(value: string, cell?: CellType): number | undefined;
32
- timedelta(value: string, cell?: CellType): TimeDelta | undefined;
33
- date(value: string, cell?: CellType): Date | undefined;
34
- }
35
- export type ParserType = Parser;
36
- export declare const defaultParser: Parser;
37
- export {};
38
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/parsers/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;AAC5C,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC;AAExC,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,eAAe,E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Q,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ;IAIhD,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,GAAG;IAoBjD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS;IAOvD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS;IAIzD,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS;IAO1D,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS;IAOhE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS;CAGvD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,eAAO,MAAM,aAAa,QAAe,CAAC"}
@@ -1,47 +0,0 @@
1
- import { UserTable } from '../lib/table';
2
- import { CellPatchType, CellType, OperationType, PointType } from '../types';
3
- export type PolicyOption = {
4
- value: any;
5
- label?: any;
6
- keywords?: string[];
7
- };
8
- export type RestrictProps = {
9
- table: UserTable;
10
- point: PointType;
11
- original?: CellType;
12
- patch?: CellType;
13
- operation: OperationType;
14
- };
15
- export type OnClipProps = {
16
- table: UserTable;
17
- point: PointType;
18
- };
19
- export type GetDefaultProps = {
20
- table: UserTable;
21
- point: PointType;
22
- value: any;
23
- };
24
- export type PolicyMixinType = {
25
- getDefault?: (props: GetDefaultProps) => CellType | undefined;
26
- select?: (props: RestrictProps) => CellType | undefined;
27
- validate?: (props: RestrictProps) => CellType | undefined;
28
- onClip?: (props: OnClipProps) => string;
29
- getOptions?: () => PolicyOption[];
30
- };
31
- type PolicyProps = {
32
- mixins?: PolicyMixinType[];
33
- };
34
- export declare class Policy implements PolicyMixinType {
35
- constructor(props?: PolicyProps);
36
- private applyMixins;
37
- getDefault(props: GetDefaultProps): any;
38
- select(props: RestrictProps): any;
39
- validate(props: RestrictProps): CellPatchType | undefined;
40
- restrict(props: RestrictProps): CellPatchType | undefined;
41
- onClip(props: OnClipProps): string;
42
- getOptions(): PolicyOption[];
43
- }
44
- export type PolicyType = Policy;
45
- export declare const defaultPolicy: Policy;
46
- export {};
47
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/policy/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,QAAQ,GAAG,SAAS,CAAC;IAC9D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,QAAQ,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,QAAQ,GAAG,SAAS,CAAC;IAC1D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,MAAM,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,YAAY,EAAE,CAAC;CACnC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,qBAAa,MAAO,YAAW,eAAe;gBAChC,KAAK,CAAC,EAAE,WAAW;IAI/B,OAAO,CAAC,WAAW;IAWZ,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,GAAG;IAIvC,MAAM,CAAC,KAAK,EAAE,aAAa;IAU3B,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS;IAKzD,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS;IAKzD,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;IAKlC,UAAU,IAAI,YAAY,EAAE;CAGpC;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,eAAO,MAAM,aAAa,QAAe,CAAC"}
@@ -1,5 +0,0 @@
1
- import { RenderProps } from './core';
2
- export declare const CheckboxRendererMixin: {
3
- bool({ value, sync, table, point }: RenderProps<boolean>): any;
4
- };
5
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/renderers/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,qBAAqB;wCACI,WAAW,CAAC,OAAO,CAAC,GAAG,GAAG;CAc/D,CAAC"}