@gridsheet/react-core 0.12.0-rc.0

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 (383) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +84 -0
  3. package/dist/components/Cell.d.ts +8 -0
  4. package/dist/components/Cell.d.ts.map +1 -0
  5. package/dist/components/Cell.js +195 -0
  6. package/dist/components/Cell.js.map +1 -0
  7. package/dist/components/ContextMenu.d.ts +3 -0
  8. package/dist/components/ContextMenu.d.ts.map +1 -0
  9. package/dist/components/ContextMenu.js +207 -0
  10. package/dist/components/ContextMenu.js.map +1 -0
  11. package/dist/components/Editor.d.ts +3 -0
  12. package/dist/components/Editor.d.ts.map +1 -0
  13. package/dist/components/Editor.js +304 -0
  14. package/dist/components/Editor.js.map +1 -0
  15. package/dist/components/Emitter.d.ts +9 -0
  16. package/dist/components/Emitter.d.ts.map +1 -0
  17. package/dist/components/Emitter.js +26 -0
  18. package/dist/components/Emitter.js.map +1 -0
  19. package/dist/components/GridSheet.d.ts +4 -0
  20. package/dist/components/GridSheet.d.ts.map +1 -0
  21. package/dist/components/GridSheet.js +110 -0
  22. package/dist/components/GridSheet.js.map +1 -0
  23. package/dist/components/HeaderLeftCell.d.ts +7 -0
  24. package/dist/components/HeaderLeftCell.d.ts.map +1 -0
  25. package/dist/components/HeaderLeftCell.js +67 -0
  26. package/dist/components/HeaderLeftCell.js.map +1 -0
  27. package/dist/components/HeaderTopCell.d.ts +7 -0
  28. package/dist/components/HeaderTopCell.d.ts.map +1 -0
  29. package/dist/components/HeaderTopCell.js +68 -0
  30. package/dist/components/HeaderTopCell.js.map +1 -0
  31. package/dist/components/Resizer.d.ts +3 -0
  32. package/dist/components/Resizer.d.ts.map +1 -0
  33. package/dist/components/Resizer.js +83 -0
  34. package/dist/components/Resizer.js.map +1 -0
  35. package/dist/components/SearchBox.d.ts +3 -0
  36. package/dist/components/SearchBox.d.ts.map +1 -0
  37. package/dist/components/SearchBox.js +52 -0
  38. package/dist/components/SearchBox.js.map +1 -0
  39. package/dist/components/StoreInitializer.d.ts +4 -0
  40. package/dist/components/StoreInitializer.d.ts.map +1 -0
  41. package/dist/components/StoreInitializer.js +68 -0
  42. package/dist/components/StoreInitializer.js.map +1 -0
  43. package/dist/components/Tabular.d.ts +9 -0
  44. package/dist/components/Tabular.d.ts.map +1 -0
  45. package/dist/components/Tabular.js +84 -0
  46. package/dist/components/Tabular.js.map +1 -0
  47. package/dist/constants.d.ts +18 -0
  48. package/dist/constants.d.ts.map +1 -0
  49. package/dist/constants.js +21 -0
  50. package/dist/constants.js.map +1 -0
  51. package/dist/formula/evaluator.d.ts +91 -0
  52. package/dist/formula/evaluator.d.ts.map +1 -0
  53. package/dist/formula/evaluator.js +541 -0
  54. package/dist/formula/evaluator.js.map +1 -0
  55. package/dist/formula/functions/__base.d.ts +23 -0
  56. package/dist/formula/functions/__base.d.ts.map +1 -0
  57. package/dist/formula/functions/__base.js +16 -0
  58. package/dist/formula/functions/__base.js.map +1 -0
  59. package/dist/formula/functions/__utils.d.ts +6 -0
  60. package/dist/formula/functions/__utils.d.ts.map +1 -0
  61. package/dist/formula/functions/__utils.js +102 -0
  62. package/dist/formula/functions/__utils.js.map +1 -0
  63. package/dist/formula/functions/abs.d.ts +12 -0
  64. package/dist/formula/functions/abs.d.ts.map +1 -0
  65. package/dist/formula/functions/abs.js +21 -0
  66. package/dist/formula/functions/abs.js.map +1 -0
  67. package/dist/formula/functions/abs.spec.d.ts +2 -0
  68. package/dist/formula/functions/abs.spec.d.ts.map +1 -0
  69. package/dist/formula/functions/abs.spec.js +29 -0
  70. package/dist/formula/functions/abs.spec.js.map +1 -0
  71. package/dist/formula/functions/acos.d.ts +12 -0
  72. package/dist/formula/functions/acos.d.ts.map +1 -0
  73. package/dist/formula/functions/acos.js +29 -0
  74. package/dist/formula/functions/acos.js.map +1 -0
  75. package/dist/formula/functions/add.d.ts +13 -0
  76. package/dist/formula/functions/add.d.ts.map +1 -0
  77. package/dist/formula/functions/add.js +50 -0
  78. package/dist/formula/functions/add.js.map +1 -0
  79. package/dist/formula/functions/and.d.ts +19 -0
  80. package/dist/formula/functions/and.d.ts.map +1 -0
  81. package/dist/formula/functions/and.js +28 -0
  82. package/dist/formula/functions/and.js.map +1 -0
  83. package/dist/formula/functions/asin.d.ts +12 -0
  84. package/dist/formula/functions/asin.d.ts.map +1 -0
  85. package/dist/formula/functions/asin.js +29 -0
  86. package/dist/formula/functions/asin.js.map +1 -0
  87. package/dist/formula/functions/atan.d.ts +12 -0
  88. package/dist/formula/functions/atan.d.ts.map +1 -0
  89. package/dist/formula/functions/atan.js +26 -0
  90. package/dist/formula/functions/atan.js.map +1 -0
  91. package/dist/formula/functions/atan2.d.ts +12 -0
  92. package/dist/formula/functions/atan2.d.ts.map +1 -0
  93. package/dist/formula/functions/atan2.js +32 -0
  94. package/dist/formula/functions/atan2.js.map +1 -0
  95. package/dist/formula/functions/average.d.ts +19 -0
  96. package/dist/formula/functions/average.d.ts.map +1 -0
  97. package/dist/formula/functions/average.js +41 -0
  98. package/dist/formula/functions/average.js.map +1 -0
  99. package/dist/formula/functions/col.d.ts +14 -0
  100. package/dist/formula/functions/col.d.ts.map +1 -0
  101. package/dist/formula/functions/col.js +30 -0
  102. package/dist/formula/functions/col.js.map +1 -0
  103. package/dist/formula/functions/concat.d.ts +12 -0
  104. package/dist/formula/functions/concat.d.ts.map +1 -0
  105. package/dist/formula/functions/concat.js +27 -0
  106. package/dist/formula/functions/concat.js.map +1 -0
  107. package/dist/formula/functions/concatenate.d.ts +19 -0
  108. package/dist/formula/functions/concatenate.d.ts.map +1 -0
  109. package/dist/formula/functions/concatenate.js +25 -0
  110. package/dist/formula/functions/concatenate.js.map +1 -0
  111. package/dist/formula/functions/cos.d.ts +12 -0
  112. package/dist/formula/functions/cos.d.ts.map +1 -0
  113. package/dist/formula/functions/cos.js +26 -0
  114. package/dist/formula/functions/cos.js.map +1 -0
  115. package/dist/formula/functions/count.d.ts +19 -0
  116. package/dist/formula/functions/count.d.ts.map +1 -0
  117. package/dist/formula/functions/count.js +35 -0
  118. package/dist/formula/functions/count.js.map +1 -0
  119. package/dist/formula/functions/counta.d.ts +19 -0
  120. package/dist/formula/functions/counta.d.ts.map +1 -0
  121. package/dist/formula/functions/counta.js +35 -0
  122. package/dist/formula/functions/counta.js.map +1 -0
  123. package/dist/formula/functions/countif.d.ts +13 -0
  124. package/dist/formula/functions/countif.d.ts.map +1 -0
  125. package/dist/formula/functions/countif.js +30 -0
  126. package/dist/formula/functions/countif.js.map +1 -0
  127. package/dist/formula/functions/divide.d.ts +12 -0
  128. package/dist/formula/functions/divide.d.ts.map +1 -0
  129. package/dist/formula/functions/divide.js +33 -0
  130. package/dist/formula/functions/divide.js.map +1 -0
  131. package/dist/formula/functions/eq.d.ts +12 -0
  132. package/dist/formula/functions/eq.d.ts.map +1 -0
  133. package/dist/formula/functions/eq.js +25 -0
  134. package/dist/formula/functions/eq.js.map +1 -0
  135. package/dist/formula/functions/exp.d.ts +12 -0
  136. package/dist/formula/functions/exp.d.ts.map +1 -0
  137. package/dist/formula/functions/exp.js +28 -0
  138. package/dist/formula/functions/exp.js.map +1 -0
  139. package/dist/formula/functions/gt.d.ts +12 -0
  140. package/dist/formula/functions/gt.d.ts.map +1 -0
  141. package/dist/formula/functions/gt.js +27 -0
  142. package/dist/formula/functions/gt.js.map +1 -0
  143. package/dist/formula/functions/gte.d.ts +12 -0
  144. package/dist/formula/functions/gte.d.ts.map +1 -0
  145. package/dist/formula/functions/gte.js +27 -0
  146. package/dist/formula/functions/gte.js.map +1 -0
  147. package/dist/formula/functions/hlookup.d.ts +18 -0
  148. package/dist/formula/functions/hlookup.d.ts.map +1 -0
  149. package/dist/formula/functions/hlookup.js +74 -0
  150. package/dist/formula/functions/hlookup.js.map +1 -0
  151. package/dist/formula/functions/if.d.ts +17 -0
  152. package/dist/formula/functions/if.d.ts.map +1 -0
  153. package/dist/formula/functions/if.js +36 -0
  154. package/dist/formula/functions/if.js.map +1 -0
  155. package/dist/formula/functions/iferror.d.ts +20 -0
  156. package/dist/formula/functions/iferror.d.ts.map +1 -0
  157. package/dist/formula/functions/iferror.js +41 -0
  158. package/dist/formula/functions/iferror.js.map +1 -0
  159. package/dist/formula/functions/iferror.spec.d.ts +2 -0
  160. package/dist/formula/functions/iferror.spec.d.ts.map +1 -0
  161. package/dist/formula/functions/iferror.spec.js +61 -0
  162. package/dist/formula/functions/iferror.spec.js.map +1 -0
  163. package/dist/formula/functions/len.d.ts +12 -0
  164. package/dist/formula/functions/len.d.ts.map +1 -0
  165. package/dist/formula/functions/len.js +26 -0
  166. package/dist/formula/functions/len.js.map +1 -0
  167. package/dist/formula/functions/lenb.d.ts +12 -0
  168. package/dist/formula/functions/lenb.d.ts.map +1 -0
  169. package/dist/formula/functions/lenb.js +26 -0
  170. package/dist/formula/functions/lenb.js.map +1 -0
  171. package/dist/formula/functions/ln.d.ts +12 -0
  172. package/dist/formula/functions/ln.d.ts.map +1 -0
  173. package/dist/formula/functions/ln.js +29 -0
  174. package/dist/formula/functions/ln.js.map +1 -0
  175. package/dist/formula/functions/log.d.ts +12 -0
  176. package/dist/formula/functions/log.d.ts.map +1 -0
  177. package/dist/formula/functions/log.js +35 -0
  178. package/dist/formula/functions/log.js.map +1 -0
  179. package/dist/formula/functions/log10.d.ts +12 -0
  180. package/dist/formula/functions/log10.d.ts.map +1 -0
  181. package/dist/formula/functions/log10.js +29 -0
  182. package/dist/formula/functions/log10.js.map +1 -0
  183. package/dist/formula/functions/lt.d.ts +12 -0
  184. package/dist/formula/functions/lt.d.ts.map +1 -0
  185. package/dist/formula/functions/lt.js +27 -0
  186. package/dist/formula/functions/lt.js.map +1 -0
  187. package/dist/formula/functions/lte.d.ts +12 -0
  188. package/dist/formula/functions/lte.d.ts.map +1 -0
  189. package/dist/formula/functions/lte.js +27 -0
  190. package/dist/formula/functions/lte.js.map +1 -0
  191. package/dist/formula/functions/max.d.ts +19 -0
  192. package/dist/formula/functions/max.d.ts.map +1 -0
  193. package/dist/formula/functions/max.js +44 -0
  194. package/dist/formula/functions/max.js.map +1 -0
  195. package/dist/formula/functions/min.d.ts +19 -0
  196. package/dist/formula/functions/min.d.ts.map +1 -0
  197. package/dist/formula/functions/min.js +44 -0
  198. package/dist/formula/functions/min.js.map +1 -0
  199. package/dist/formula/functions/minus.d.ts +13 -0
  200. package/dist/formula/functions/minus.d.ts.map +1 -0
  201. package/dist/formula/functions/minus.js +50 -0
  202. package/dist/formula/functions/minus.js.map +1 -0
  203. package/dist/formula/functions/mod.d.ts +12 -0
  204. package/dist/formula/functions/mod.d.ts.map +1 -0
  205. package/dist/formula/functions/mod.js +31 -0
  206. package/dist/formula/functions/mod.js.map +1 -0
  207. package/dist/formula/functions/mod.spec.d.ts +2 -0
  208. package/dist/formula/functions/mod.spec.d.ts.map +1 -0
  209. package/dist/formula/functions/mod.spec.js +52 -0
  210. package/dist/formula/functions/mod.spec.js.map +1 -0
  211. package/dist/formula/functions/multiply.d.ts +12 -0
  212. package/dist/formula/functions/multiply.d.ts.map +1 -0
  213. package/dist/formula/functions/multiply.js +27 -0
  214. package/dist/formula/functions/multiply.js.map +1 -0
  215. package/dist/formula/functions/ne.d.ts +12 -0
  216. package/dist/formula/functions/ne.d.ts.map +1 -0
  217. package/dist/formula/functions/ne.js +25 -0
  218. package/dist/formula/functions/ne.js.map +1 -0
  219. package/dist/formula/functions/not.d.ts +12 -0
  220. package/dist/formula/functions/not.d.ts.map +1 -0
  221. package/dist/formula/functions/not.js +30 -0
  222. package/dist/formula/functions/not.js.map +1 -0
  223. package/dist/formula/functions/now.d.ts +9 -0
  224. package/dist/formula/functions/now.d.ts.map +1 -0
  225. package/dist/formula/functions/now.js +21 -0
  226. package/dist/formula/functions/now.js.map +1 -0
  227. package/dist/formula/functions/or.d.ts +19 -0
  228. package/dist/formula/functions/or.d.ts.map +1 -0
  229. package/dist/formula/functions/or.js +28 -0
  230. package/dist/formula/functions/or.js.map +1 -0
  231. package/dist/formula/functions/pi.d.ts +9 -0
  232. package/dist/formula/functions/pi.d.ts.map +1 -0
  233. package/dist/formula/functions/pi.js +19 -0
  234. package/dist/formula/functions/pi.js.map +1 -0
  235. package/dist/formula/functions/power.d.ts +12 -0
  236. package/dist/formula/functions/power.d.ts.map +1 -0
  237. package/dist/formula/functions/power.js +24 -0
  238. package/dist/formula/functions/power.js.map +1 -0
  239. package/dist/formula/functions/product.d.ts +19 -0
  240. package/dist/formula/functions/product.d.ts.map +1 -0
  241. package/dist/formula/functions/product.js +37 -0
  242. package/dist/formula/functions/product.js.map +1 -0
  243. package/dist/formula/functions/radians.d.ts +12 -0
  244. package/dist/formula/functions/radians.d.ts.map +1 -0
  245. package/dist/formula/functions/radians.js +26 -0
  246. package/dist/formula/functions/radians.js.map +1 -0
  247. package/dist/formula/functions/rand.d.ts +9 -0
  248. package/dist/formula/functions/rand.d.ts.map +1 -0
  249. package/dist/formula/functions/rand.js +19 -0
  250. package/dist/formula/functions/rand.js.map +1 -0
  251. package/dist/formula/functions/round.d.ts +17 -0
  252. package/dist/formula/functions/round.d.ts.map +1 -0
  253. package/dist/formula/functions/round.js +34 -0
  254. package/dist/formula/functions/round.js.map +1 -0
  255. package/dist/formula/functions/rounddown.d.ts +17 -0
  256. package/dist/formula/functions/rounddown.d.ts.map +1 -0
  257. package/dist/formula/functions/rounddown.js +34 -0
  258. package/dist/formula/functions/rounddown.js.map +1 -0
  259. package/dist/formula/functions/roundup.d.ts +17 -0
  260. package/dist/formula/functions/roundup.d.ts.map +1 -0
  261. package/dist/formula/functions/roundup.js +34 -0
  262. package/dist/formula/functions/roundup.js.map +1 -0
  263. package/dist/formula/functions/row.d.ts +14 -0
  264. package/dist/formula/functions/row.d.ts.map +1 -0
  265. package/dist/formula/functions/row.js +30 -0
  266. package/dist/formula/functions/row.js.map +1 -0
  267. package/dist/formula/functions/sin.d.ts +12 -0
  268. package/dist/formula/functions/sin.d.ts.map +1 -0
  269. package/dist/formula/functions/sin.js +26 -0
  270. package/dist/formula/functions/sin.js.map +1 -0
  271. package/dist/formula/functions/sqrt.d.ts +12 -0
  272. package/dist/formula/functions/sqrt.d.ts.map +1 -0
  273. package/dist/formula/functions/sqrt.js +29 -0
  274. package/dist/formula/functions/sqrt.js.map +1 -0
  275. package/dist/formula/functions/sum.d.ts +19 -0
  276. package/dist/formula/functions/sum.d.ts.map +1 -0
  277. package/dist/formula/functions/sum.js +44 -0
  278. package/dist/formula/functions/sum.js.map +1 -0
  279. package/dist/formula/functions/sum.spec.d.ts +2 -0
  280. package/dist/formula/functions/sum.spec.d.ts.map +1 -0
  281. package/dist/formula/functions/sum.spec.js +40 -0
  282. package/dist/formula/functions/sum.spec.js.map +1 -0
  283. package/dist/formula/functions/sumif.d.ts +18 -0
  284. package/dist/formula/functions/sumif.d.ts.map +1 -0
  285. package/dist/formula/functions/sumif.js +59 -0
  286. package/dist/formula/functions/sumif.js.map +1 -0
  287. package/dist/formula/functions/tan.d.ts +12 -0
  288. package/dist/formula/functions/tan.d.ts.map +1 -0
  289. package/dist/formula/functions/tan.js +26 -0
  290. package/dist/formula/functions/tan.js.map +1 -0
  291. package/dist/formula/functions/uminus.d.ts +12 -0
  292. package/dist/formula/functions/uminus.d.ts.map +1 -0
  293. package/dist/formula/functions/uminus.js +23 -0
  294. package/dist/formula/functions/uminus.js.map +1 -0
  295. package/dist/formula/functions/vlookup.d.ts +18 -0
  296. package/dist/formula/functions/vlookup.d.ts.map +1 -0
  297. package/dist/formula/functions/vlookup.js +74 -0
  298. package/dist/formula/functions/vlookup.js.map +1 -0
  299. package/dist/formula/mapping.d.ts +114 -0
  300. package/dist/formula/mapping.d.ts.map +1 -0
  301. package/dist/formula/mapping.js +114 -0
  302. package/dist/formula/mapping.js.map +1 -0
  303. package/dist/formula/solver.d.ts +12 -0
  304. package/dist/formula/solver.d.ts.map +1 -0
  305. package/dist/formula/solver.js +64 -0
  306. package/dist/formula/solver.js.map +1 -0
  307. package/dist/index.d.ts +12 -0
  308. package/dist/index.d.ts.map +1 -0
  309. package/dist/index.js +11 -0
  310. package/dist/index.js.map +1 -0
  311. package/dist/lib/autofill.d.ts +17 -0
  312. package/dist/lib/autofill.d.ts.map +1 -0
  313. package/dist/lib/autofill.js +389 -0
  314. package/dist/lib/autofill.js.map +1 -0
  315. package/dist/lib/clipboard.d.ts +3 -0
  316. package/dist/lib/clipboard.d.ts.map +1 -0
  317. package/dist/lib/clipboard.js +45 -0
  318. package/dist/lib/clipboard.js.map +1 -0
  319. package/dist/lib/converters.d.ts +10 -0
  320. package/dist/lib/converters.d.ts.map +1 -0
  321. package/dist/lib/converters.js +127 -0
  322. package/dist/lib/converters.js.map +1 -0
  323. package/dist/lib/structs.d.ts +60 -0
  324. package/dist/lib/structs.d.ts.map +1 -0
  325. package/dist/lib/structs.js +251 -0
  326. package/dist/lib/structs.js.map +1 -0
  327. package/dist/lib/table.d.ts +303 -0
  328. package/dist/lib/table.d.ts.map +1 -0
  329. package/dist/lib/table.js +989 -0
  330. package/dist/lib/table.js.map +1 -0
  331. package/dist/lib/time.d.ts +14 -0
  332. package/dist/lib/time.d.ts.map +1 -0
  333. package/dist/lib/time.js +60 -0
  334. package/dist/lib/time.js.map +1 -0
  335. package/dist/lib/virtualization.d.ts +30 -0
  336. package/dist/lib/virtualization.d.ts.map +1 -0
  337. package/dist/lib/virtualization.js +114 -0
  338. package/dist/lib/virtualization.js.map +1 -0
  339. package/dist/parsers/core.d.ts +36 -0
  340. package/dist/parsers/core.d.ts.map +1 -0
  341. package/dist/parsers/core.js +123 -0
  342. package/dist/parsers/core.js.map +1 -0
  343. package/dist/renderers/checkbox.d.ts +5 -0
  344. package/dist/renderers/checkbox.d.ts.map +1 -0
  345. package/dist/renderers/checkbox.js +10 -0
  346. package/dist/renderers/checkbox.js.map +1 -0
  347. package/dist/renderers/core.d.ts +48 -0
  348. package/dist/renderers/core.d.ts.map +1 -0
  349. package/dist/renderers/core.js +143 -0
  350. package/dist/renderers/core.js.map +1 -0
  351. package/dist/renderers/thousand_separator.d.ts +5 -0
  352. package/dist/renderers/thousand_separator.d.ts.map +1 -0
  353. package/dist/renderers/thousand_separator.js +14 -0
  354. package/dist/renderers/thousand_separator.js.map +1 -0
  355. package/dist/store/actions.d.ts +198 -0
  356. package/dist/store/actions.d.ts.map +1 -0
  357. package/dist/store/actions.js +519 -0
  358. package/dist/store/actions.js.map +1 -0
  359. package/dist/store/helpers.d.ts +28 -0
  360. package/dist/store/helpers.d.ts.map +1 -0
  361. package/dist/store/helpers.js +78 -0
  362. package/dist/store/helpers.js.map +1 -0
  363. package/dist/store/index.d.ts +11 -0
  364. package/dist/store/index.d.ts.map +1 -0
  365. package/dist/store/index.js +3 -0
  366. package/dist/store/index.js.map +1 -0
  367. package/dist/styles/embedder.d.ts +2 -0
  368. package/dist/styles/embedder.d.ts.map +1 -0
  369. package/dist/styles/embedder.js +16 -0
  370. package/dist/styles/embedder.js.map +1 -0
  371. package/dist/styles/minified.d.ts +3 -0
  372. package/dist/styles/minified.d.ts.map +1 -0
  373. package/dist/styles/minified.js +4 -0
  374. package/dist/styles/minified.js.map +1 -0
  375. package/dist/types.d.ts +213 -0
  376. package/dist/types.d.ts.map +1 -0
  377. package/dist/types.js +2 -0
  378. package/dist/types.js.map +1 -0
  379. package/dist/utils.d.ts +2 -0
  380. package/dist/utils.d.ts.map +1 -0
  381. package/dist/utils.js +7 -0
  382. package/dist/utils.js.map +1 -0
  383. package/package.json +81 -0
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { StoreType } from "../types";
3
+ export declare type Dispatcher = React.Dispatch<{
4
+ type: number;
5
+ value: any;
6
+ }>;
7
+ export declare const Context: React.Context<{
8
+ store: StoreType;
9
+ dispatch: Dispatcher;
10
+ }>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,oBAAY,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"}
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ export const Context = React.createContext({});
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CACxC,EAGC,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const embedStyle: () => void;
2
+ //# sourceMappingURL=embedder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedder.d.ts","sourceRoot":"","sources":["../../src/styles/embedder.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,YAatB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CSS, LAST_MODIFIED } from "./minified";
2
+ export const embedStyle = () => {
3
+ if (typeof window === 'undefined') {
4
+ return;
5
+ }
6
+ const exists = document.querySelector(`style.gs-styling[data-modified-at='${LAST_MODIFIED}']`);
7
+ if (exists) {
8
+ return;
9
+ }
10
+ const style = document.createElement("style");
11
+ document.head.appendChild(style);
12
+ style.setAttribute('class', 'gs-styling');
13
+ style.setAttribute('data-modified-at', `${LAST_MODIFIED}`);
14
+ style.innerText = CSS;
15
+ };
16
+ //# sourceMappingURL=embedder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedder.js","sourceRoot":"","sources":["../../src/styles/embedder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,OAAO;KACR;IACD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,sCAAsC,aAAa,IAAI,CAAC,CAAC;IAC/F,IAAI,MAAM,EAAE;QACV,OAAO;KACR;IACD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC1C,KAAK,CAAC,YAAY,CAAC,kBAAkB,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;IAC3D,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC;AACxB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const LAST_MODIFIED = 1681046378;
2
+ export declare const CSS = ".gridsheet-1{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;font-family:\"SF Pro Text\",\"SF Pro Icons\",\"Helvetica Neue\",Helvetica,Arial,Meiryo,sans-serif}.gridsheet-1.light{background-color:#f7f7f7;color:#000}.gridsheet-1.light .gs-editor.gs-editing textarea{background-color:#f5f5f5;color:#111;caret-color:#000}.gridsheet-1.light .gs-header{background-color:#eee;color:#666}.gridsheet-1.light .gs-header.gs-selecting{background-color:#ddd}.gridsheet-1.light .gs-header.gs-choosing{background-color:#bbb}.gridsheet-1.light .gs-header.gs-header-selecting{background-color:#555;color:#fff}.gridsheet-1.dark{background-color:#323232;color:#eee}.gridsheet-1.dark .gs-editor.gs-editing textarea{background-color:#353535;color:#ddd;caret-color:#ddd}.gridsheet-1.dark .gs-header{background-color:#474747;color:#eee}.gridsheet-1.dark .gs-header.gs-selecting{background-color:#777}.gridsheet-1.dark .gs-header.gs-choosing{background-color:#999}.gridsheet-1.dark .gs-header.gs-header-selecting{background-color:#bbb;color:#444}.gridsheet-1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-outer.gs-selected{background-color:rgba(0,128,255,.2)}.gridsheet-1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gridsheet-1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gridsheet-1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}.gridsheet-1 .gs-cell{background-clip:padding-box;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);padding:0;margin:0;box-sizing:border-box;position:relative}.gridsheet-1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gridsheet-1 .gs-cell.gs-selected .gs-cell-rendered-wrapper-inner{background-color:rgba(0,128,255,.2)}.gridsheet-1 .gs-cell.gs-selected .gs-cell-label{display:block}.gridsheet-1 .gs-cell.gs-pointed{margin-top:-1px;margin-left:-1px;z-index:1}.gridsheet-1 .gs-cell.gs-pointed.gs-editing{color:transparent}.gridsheet-1 .gs-cell.gs-pointed .gs-cell-label{display:block}.gridsheet-1 .gs-cell.gs-matching{background-color:rgba(0,200,100,.2)}.gridsheet-1 .gs-cell.gs-searching{border:solid 2px #00aa78}.gridsheet-1 .gs-cell .formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gridsheet-1 .gs-cell .gs-cell-label{font-family:monospace,serif;position:absolute;top:0;right:0;font-size:8px;font-weight:400;font-style:normal;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-outer{width:100%;height:100%}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-inner{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box}.gridsheet-1 .gs-cell .gs-cell-rendered{overflow:hidden;font-size:13px;letter-spacing:1px;white-space:pre-wrap;line-height:24px;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gridsheet-1 .gs-cell .gs-cell-rendered>*{z-index:2;position:relative}.gridsheet-1 .gs-cell .gs-cell-rendered>.backface{z-index:0}.gridsheet-1 .gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gridsheet-1 .gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gridsheet-1 .gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gridsheet-1 .gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gridsheet-1 .gs-contextmenu ul li{padding:5px 10px;list-style-type:none;display:flex}.gridsheet-1 .gs-contextmenu ul li.enabled{cursor:pointer}.gridsheet-1 .gs-contextmenu ul li.enabled:hover{background-color:#eee}.gridsheet-1 .gs-contextmenu ul li.disabled{opacity:.5;cursor:not-allowed}.gridsheet-1 .gs-contextmenu ul li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut:before{content:\"(\"}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut:after{content:\")\"}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gridsheet-1 .gs-editor{position:fixed;opacity:0;z-index:-1;background-color:#aaa}.gridsheet-1 .gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:13px;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;caret-color:transparent;cursor:default}.gridsheet-1 .gs-editor.gs-editing{z-index:3;opacity:1}.gridsheet-1 .gs-editor.gs-editing textarea{cursor:text;min-width:100%;white-space:pre;outline:solid 2px #07f;border:none!important;height:auto}.gridsheet-1 .gs-editor.gs-editing .gs-cell-label{font-family:monospace,serif;position:absolute;top:0;right:0;margin-top:-20px;margin-right:-2px;padding:3px 5px;font-size:10px;background-color:#07f;color:#fff;z-index:1}.gridsheet-1 .gs-tabular{overflow:auto;display:block;border:solid 1px rgba(128,128,128,.5);box-sizing:border-box}.gridsheet-1 .gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gridsheet-1 .gs-adjuster{padding:0;visibility:hidden}.gridsheet-1 .gs-header-top{top:0;overflow:hidden}.gridsheet-1 .gs-header-left{left:0}.gridsheet-1 .gs-header-top.gs-header-left{z-index:3}.gridsheet-1 .gs-header{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gridsheet-1 .gs-header .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gridsheet-1 .gs-header .gs-resizer:hover{background-color:#07f}.gridsheet-1 .gs-header .gs-header-outer{height:100%;box-sizing:border-box}.gridsheet-1 .gs-header .gs-header-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gridsheet-1 .gs-header-left-top{border-right:solid .5px rgba(128,128,128,.3);border-bottom:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-horizontal{min-height:20px}.gridsheet-1 .gs-header-horizontal .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gridsheet-1 .gs-header-horizontal .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gridsheet-1 .gs-header-horizontal .gs-header-outer{border-left:solid .5px rgba(128,128,128,.3);border-right:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-horizontal.gs-header-top-end .gs-header-outer{border-right:none}.gridsheet-1 .gs-header-vertical{overflow:hidden;min-width:30px}.gridsheet-1 .gs-header-vertical .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gridsheet-1 .gs-header-vertical .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gridsheet-1 .gs-header-vertical .gs-header-outer{border-top:solid .5px rgba(128,128,128,.3);border-bottom:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-vertical.gs-header-left-end .gs-header-outer{border-bottom:none}.gridsheet-1 .gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gridsheet-1 .gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gridsheet-1 .gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gridsheet-1 .gs-search .gs-searchbox .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gridsheet-1 .gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}";
3
+ //# sourceMappingURL=minified.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minified.d.ts","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,eAAO,MAAM,GAAG,6uQAAmuQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ // yarn generate-style
2
+ export const LAST_MODIFIED = 1681046378;
3
+ export const CSS = `.gridsheet-1{overflow:hidden;position:relative;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;font-family:"SF Pro Text","SF Pro Icons","Helvetica Neue",Helvetica,Arial,Meiryo,sans-serif}.gridsheet-1.light{background-color:#f7f7f7;color:#000}.gridsheet-1.light .gs-editor.gs-editing textarea{background-color:#f5f5f5;color:#111;caret-color:#000}.gridsheet-1.light .gs-header{background-color:#eee;color:#666}.gridsheet-1.light .gs-header.gs-selecting{background-color:#ddd}.gridsheet-1.light .gs-header.gs-choosing{background-color:#bbb}.gridsheet-1.light .gs-header.gs-header-selecting{background-color:#555;color:#fff}.gridsheet-1.dark{background-color:#323232;color:#eee}.gridsheet-1.dark .gs-editor.gs-editing textarea{background-color:#353535;color:#ddd;caret-color:#ddd}.gridsheet-1.dark .gs-header{background-color:#474747;color:#eee}.gridsheet-1.dark .gs-header.gs-selecting{background-color:#777}.gridsheet-1.dark .gs-header.gs-choosing{background-color:#999}.gridsheet-1.dark .gs-header.gs-header-selecting{background-color:#bbb;color:#444}.gridsheet-1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-outer.gs-selected{background-color:rgba(0,128,255,.2)}.gridsheet-1 .gs-resizing{width:100%;height:100%;position:absolute;background-color:rgba(0,127,255,.08);top:0;left:0;z-index:2}.gridsheet-1 .gs-line{position:relative;top:0;left:0;border:dotted 1px #07f;box-sizing:border-box}.gridsheet-1 .gs-line span{font-size:10px;padding:3px;background-color:#07f;color:#fff;margin:0;position:absolute;top:0;left:0}.gridsheet-1 .gs-cell{background-clip:padding-box;border-top:solid 1px rgba(128,128,128,.3);border-left:solid 1px rgba(128,128,128,.3);padding:0;margin:0;box-sizing:border-box;position:relative}.gridsheet-1 .gs-cell.gs-copying textarea:focus{outline:solid 1px #07f}.gridsheet-1 .gs-cell.gs-selected .gs-cell-rendered-wrapper-inner{background-color:rgba(0,128,255,.2)}.gridsheet-1 .gs-cell.gs-selected .gs-cell-label{display:block}.gridsheet-1 .gs-cell.gs-pointed{margin-top:-1px;margin-left:-1px;z-index:1}.gridsheet-1 .gs-cell.gs-pointed.gs-editing{color:transparent}.gridsheet-1 .gs-cell.gs-pointed .gs-cell-label{display:block}.gridsheet-1 .gs-cell.gs-matching{background-color:rgba(0,200,100,.2)}.gridsheet-1 .gs-cell.gs-searching{border:solid 2px #00aa78}.gridsheet-1 .gs-cell .formula-error-triangle{position:absolute;top:0;right:0;border-top:3px solid rgba(200,0,0,.9);border-right:3px solid rgba(200,0,0,.9);border-bottom:3px solid transparent;border-left:3px solid transparent;z-index:1}.gridsheet-1 .gs-cell .gs-cell-label{font-family:monospace,serif;position:absolute;top:0;right:0;font-size:8px;font-weight:400;font-style:normal;background-color:rgba(0,128,255,.2);color:rgba(255,255,255,.6);padding:0 2px;display:none;opacity:.7}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-outer{width:100%;height:100%}.gridsheet-1 .gs-cell .gs-cell-rendered-wrapper-inner{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box}.gridsheet-1 .gs-cell .gs-cell-rendered{overflow:hidden;font-size:13px;letter-spacing:1px;white-space:pre-wrap;line-height:24px;cursor:auto;word-wrap:break-word;word-break:break-all;padding:0 2px}.gridsheet-1 .gs-cell .gs-cell-rendered>*{z-index:2;position:relative}.gridsheet-1 .gs-cell .gs-cell-rendered>.backface{z-index:0}.gridsheet-1 .gs-cell .gs-autofill-drag{background-color:#07f;position:absolute;width:7px;height:7px;bottom:0;right:0;margin-right:-3.5px;margin-bottom:-3.5px;cursor:crosshair;z-index:1}.gridsheet-1 .gs-contextmenu-modal{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:3}.gridsheet-1 .gs-contextmenu{z-index:3;position:fixed;background-color:#fff;padding:5px 0;border-radius:5px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px}.gridsheet-1 .gs-contextmenu ul{min-width:250px;color:#555;margin:0;padding:0}.gridsheet-1 .gs-contextmenu ul li{padding:5px 10px;list-style-type:none;display:flex}.gridsheet-1 .gs-contextmenu ul li.enabled{cursor:pointer}.gridsheet-1 .gs-contextmenu ul li.enabled:hover{background-color:#eee}.gridsheet-1 .gs-contextmenu ul li.disabled{opacity:.5;cursor:not-allowed}.gridsheet-1 .gs-contextmenu ul li.gs-menu-divider{background-color:#aaa;margin:10px 0;padding:0;height:1px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-name{flex:1;font-size:15px;letter-spacing:1px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut{font-size:10px;line-height:15px;color:#999;width:15px}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut:before{content:"("}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut:after{content:")"}.gridsheet-1 .gs-contextmenu ul li .gs-menu-shortcut .gs-menu-underline{text-decoration:underline}.gridsheet-1 .gs-editor{position:fixed;opacity:0;z-index:-1;background-color:#aaa}.gridsheet-1 .gs-editor textarea{width:100%;padding:0 2px;position:absolute;font-size:13px;line-height:24px;letter-spacing:1px;top:0;left:0;border:none;outline:0;background-color:transparent;resize:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;overflow:hidden;caret-color:transparent;cursor:default}.gridsheet-1 .gs-editor.gs-editing{z-index:3;opacity:1}.gridsheet-1 .gs-editor.gs-editing textarea{cursor:text;min-width:100%;white-space:pre;outline:solid 2px #07f;border:none!important;height:auto}.gridsheet-1 .gs-editor.gs-editing .gs-cell-label{font-family:monospace,serif;position:absolute;top:0;right:0;margin-top:-20px;margin-right:-2px;padding:3px 5px;font-size:10px;background-color:#07f;color:#fff;z-index:1}.gridsheet-1 .gs-tabular{overflow:auto;display:block;border:solid 1px rgba(128,128,128,.5);box-sizing:border-box}.gridsheet-1 .gs-tabular-inner>table{table-layout:fixed;border-collapse:collapse}.gridsheet-1 .gs-adjuster{padding:0;visibility:hidden}.gridsheet-1 .gs-header-top{top:0;overflow:hidden}.gridsheet-1 .gs-header-left{left:0}.gridsheet-1 .gs-header-top.gs-header-left{z-index:3}.gridsheet-1 .gs-header{z-index:2;padding:0;position:sticky;font-size:13px;font-weight:400;box-sizing:border-box;vertical-align:top}.gridsheet-1 .gs-header .gs-resizer{position:absolute;border-color:transparent;box-sizing:border-box;z-index:2}.gridsheet-1 .gs-header .gs-resizer:hover{background-color:#07f}.gridsheet-1 .gs-header .gs-header-outer{height:100%;box-sizing:border-box}.gridsheet-1 .gs-header .gs-header-inner{height:100%;box-sizing:border-box;vertical-align:middle;overflow:hidden;display:flex;align-items:center;justify-content:center}.gridsheet-1 .gs-header-left-top{border-right:solid .5px rgba(128,128,128,.3);border-bottom:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-horizontal{min-height:20px}.gridsheet-1 .gs-header-horizontal .gs-resizer{top:0;right:0;width:3px;cursor:e-resize}.gridsheet-1 .gs-header-horizontal .gs-resizer.gs-dragging{border-right-style:dotted;height:1000000px!important;cursor:e-resize}.gridsheet-1 .gs-header-horizontal .gs-header-outer{border-left:solid .5px rgba(128,128,128,.3);border-right:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-horizontal.gs-header-top-end .gs-header-outer{border-right:none}.gridsheet-1 .gs-header-vertical{overflow:hidden;min-width:30px}.gridsheet-1 .gs-header-vertical .gs-resizer{left:0;bottom:0;height:3px;cursor:n-resize}.gridsheet-1 .gs-header-vertical .gs-resizer.gs-dragging{border-bottom-style:dotted;width:1000000px!important;cursor:n-resize}.gridsheet-1 .gs-header-vertical .gs-header-outer{border-top:solid .5px rgba(128,128,128,.3);border-bottom:solid .5px rgba(128,128,128,.3)}.gridsheet-1 .gs-header-vertical.gs-header-left-end .gs-header-outer{border-bottom:none}.gridsheet-1 .gs-search{width:300px;box-shadow:rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;display:flex;background-color:#fdfdfd;border:solid 2px #eee;border-radius:5px;padding:10px;position:fixed;top:10px;right:10px;z-index:5}.gridsheet-1 .gs-search .gs-searchbox{display:flex;position:relative;border:solid 2px #07f;border-radius:5px;flex:1}.gridsheet-1 .gs-search .gs-searchbox input[type=text]{padding:5px;background-color:transparent;border:none;outline:0;z-index:1;flex:1}.gridsheet-1 .gs-search .gs-searchbox .gs-search-progress{color:#999;padding:6px 3px;font-size:13px;text-align:right}.gridsheet-1 .gs-search .gs-search-close{margin:6px 5px;cursor:pointer;color:#ddd;width:50px;text-align:center}`;
4
+ //# sourceMappingURL=minified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minified.js","sourceRoot":"","sources":["../../src/styles/minified.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;AACxC,MAAM,CAAC,MAAM,GAAG,GAAG,guQAAguQ,CAAC"}
@@ -0,0 +1,213 @@
1
+ import { RendererType } from "./renderers/core";
2
+ import { ParserType } from "./parsers/core";
3
+ import { UserTable, Table } from "./lib/table";
4
+ import { FunctionMapping } from "./formula/functions/__base";
5
+ import React from "react";
6
+ export declare type Y = number;
7
+ export declare type X = number;
8
+ export declare type Height = number;
9
+ export declare type Width = number;
10
+ export declare type ShapeType = {
11
+ height: Height;
12
+ width: Width;
13
+ };
14
+ export declare type RectType = {
15
+ y: Y;
16
+ x: X;
17
+ height: Height;
18
+ width: Width;
19
+ };
20
+ export declare type MatrixType<T = any> = T[][];
21
+ export declare type Labeler = (n: number) => string;
22
+ export declare type Renderers = {
23
+ [s: string]: RendererType;
24
+ };
25
+ export declare type Parsers = {
26
+ [s: string]: ParserType;
27
+ };
28
+ export declare type Labelers = {
29
+ [s: string]: Labeler;
30
+ };
31
+ export declare type TableRef = {
32
+ table: UserTable;
33
+ dispatch: (table: UserTable) => void;
34
+ };
35
+ export declare type FeedbackType = (table: UserTable, points?: {
36
+ pointing: PointType;
37
+ selectingFrom: PointType;
38
+ selectingTo: PointType;
39
+ }) => void;
40
+ export declare type Mode = "light" | "dark";
41
+ export declare type Headers = "both" | "vertical" | "horizontal" | "none";
42
+ export declare type CellType<Custom = any> = {
43
+ value?: any;
44
+ style?: React.CSSProperties;
45
+ justifyContent?: React.CSSProperties['justifyContent'];
46
+ alignItems?: React.CSSProperties['alignItems'];
47
+ labeler?: string;
48
+ width?: Width;
49
+ height?: Height;
50
+ renderer?: string;
51
+ parser?: string;
52
+ custom?: Custom;
53
+ changedAt?: Date;
54
+ };
55
+ export declare type CellFilter = (cell: CellType) => boolean;
56
+ export declare type CellsByAddressType = {
57
+ [address: string]: CellType;
58
+ };
59
+ export declare type CellsByIdType = {
60
+ [id: Id]: CellType | undefined;
61
+ };
62
+ export declare type OptionsType = {
63
+ sheetHeight?: number;
64
+ sheetWidth?: number;
65
+ sheetResize?: "both" | "vertical" | "horizontal" | "none";
66
+ historyLimit?: number;
67
+ headerHeight?: number;
68
+ headerWidth?: number;
69
+ editingOnEnter?: boolean;
70
+ showAddress?: boolean;
71
+ minNumRows?: number;
72
+ maxNumRows?: number;
73
+ minNumCols?: number;
74
+ maxNumCols?: number;
75
+ mode?: Mode;
76
+ renderers?: Renderers;
77
+ parsers?: Parsers;
78
+ labelers?: Labelers;
79
+ onSave?: FeedbackType;
80
+ onChange?: FeedbackType;
81
+ onSelect?: FeedbackType;
82
+ };
83
+ export declare type RangeType = {
84
+ start: number;
85
+ end: number;
86
+ };
87
+ export declare type PointType = {
88
+ y: Y;
89
+ x: X;
90
+ };
91
+ export declare type PositionType = {
92
+ y: Y;
93
+ x: X;
94
+ };
95
+ export declare type ZoneType = {
96
+ startY: Y;
97
+ startX: X;
98
+ endY: Y;
99
+ endX: X;
100
+ };
101
+ export declare type AreaType = {
102
+ top: Y;
103
+ left: X;
104
+ bottom: Y;
105
+ right: X;
106
+ };
107
+ export declare type WriterType = (value: string) => void;
108
+ export declare type StoreType = {
109
+ table: Table;
110
+ tableInitialized: boolean;
111
+ sheetRef: React.MutableRefObject<HTMLDivElement>;
112
+ editorRef: React.MutableRefObject<HTMLTextAreaElement>;
113
+ gridOuterRef: React.MutableRefObject<HTMLDivElement>;
114
+ searchInputRef: React.MutableRefObject<HTMLInputElement>;
115
+ entering: boolean;
116
+ choosing: PointType;
117
+ cutting: boolean;
118
+ copyingZone: ZoneType;
119
+ selectingZone: ZoneType;
120
+ autofillDraggingTo: PointType | null;
121
+ headerTopSelecting: boolean;
122
+ headerLeftSelecting: boolean;
123
+ editingCell: string;
124
+ editorRect: RectType;
125
+ resizingRect: RectType;
126
+ sheetHeight: number;
127
+ sheetWidth: number;
128
+ headerHeight: number;
129
+ headerWidth: number;
130
+ minNumRows: number;
131
+ maxNumRows: number;
132
+ minNumCols: number;
133
+ maxNumCols: number;
134
+ searchQuery?: string;
135
+ matchingCells: string[];
136
+ matchingCellIndex: number;
137
+ editingOnEnter: boolean;
138
+ showAddress: boolean;
139
+ contextMenuPosition: PositionType;
140
+ resizingPositionY: [Y, Y, Y];
141
+ resizingPositionX: [X, X, X];
142
+ onSave?: FeedbackType;
143
+ };
144
+ export declare type Props = {
145
+ initial: CellsByAddressType;
146
+ tableRef?: React.MutableRefObject<TableRef | null>;
147
+ options?: OptionsType;
148
+ className?: string;
149
+ style?: React.CSSProperties;
150
+ additionalFunctions?: FunctionMapping;
151
+ };
152
+ export declare type Id = string;
153
+ export declare type Ids = Id[];
154
+ export declare type IdMatrix = Ids[];
155
+ export declare type Address = string;
156
+ export declare type MatricesByAddress<T> = {
157
+ [origin: Address]: MatrixType<T>;
158
+ };
159
+ export declare type StoreReflectionType = {
160
+ choosing?: PointType;
161
+ cutting?: boolean;
162
+ copyingZone?: ZoneType;
163
+ selectingZone?: ZoneType | undefined;
164
+ };
165
+ export declare type HistoryUpdateType = {
166
+ operation: "UPDATE";
167
+ reflection?: StoreReflectionType;
168
+ diffBefore: CellsByIdType;
169
+ diffAfter: CellsByIdType;
170
+ partial: boolean;
171
+ };
172
+ export declare type HistoryMoveType = {
173
+ operation: "MOVE";
174
+ reflection?: StoreReflectionType;
175
+ matrixFrom: IdMatrix;
176
+ matrixTo: IdMatrix;
177
+ matrixNew: IdMatrix;
178
+ pointFrom: PointType;
179
+ pointTo: PointType;
180
+ lostRows: MatricesByAddress<Id>;
181
+ };
182
+ export declare type HistoryAddRowsType = {
183
+ operation: "ADD_ROWS";
184
+ reflection?: StoreReflectionType;
185
+ y: number;
186
+ idMatrix: IdMatrix;
187
+ diffBefore?: CellsByIdType;
188
+ diffAfter?: CellsByIdType;
189
+ partial?: true;
190
+ };
191
+ export declare type HistoryRemoveRowsType = {
192
+ operation: "REMOVE_ROWS";
193
+ reflection?: StoreReflectionType;
194
+ y: number;
195
+ idMatrix: IdMatrix;
196
+ };
197
+ export declare type HistoryAddColsType = {
198
+ operation: "ADD_COLS";
199
+ reflection?: StoreReflectionType;
200
+ x: number;
201
+ idMatrix: IdMatrix;
202
+ diffBefore?: CellsByIdType;
203
+ diffAfter?: CellsByIdType;
204
+ partial?: true;
205
+ };
206
+ export declare type HistoryRemoveColsType = {
207
+ operation: "REMOVE_COLS";
208
+ reflection?: StoreReflectionType;
209
+ x: number;
210
+ idMatrix: IdMatrix;
211
+ };
212
+ export declare type HistoryType = HistoryUpdateType | HistoryMoveType | HistoryAddRowsType | HistoryRemoveRowsType | HistoryAddColsType | HistoryRemoveColsType;
213
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,CAAC,GAAG,MAAM,CAAC;AACvB,oBA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AAC,EAAE,mBAAmB,CAAC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,UAAU,CAAC;IACtB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,oBAAY,WAAW,GACnB,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,qBAAqB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const setDefault: <K = PropertyKey, D = any>(target: any, key: K, defaultValue: D) => D;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,qCACb,GAAG,+BAQZ,CAAC"}
package/dist/utils.js ADDED
@@ -0,0 +1,7 @@
1
+ export const setDefault = (target, key, defaultValue) => {
2
+ if (target[key] == null) {
3
+ target[key] = defaultValue;
4
+ }
5
+ return target[key];
6
+ };
7
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,MAAW,EACX,GAAM,EACN,YAAe,EACZ,EAAE;IACL,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE;QACvB,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC;KAC5B;IACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@gridsheet/react-core",
3
+ "version": "0.12.0-rc.0",
4
+ "description": "Spreadsheet component for React",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "scripts": {
8
+ "test": "jest",
9
+ "build": "rm -rf ./dist || true && tsc --project ./src/index.ts -p ./tsconfig.json",
10
+ "audit-fix": "yarn-audit-fix --force",
11
+ "storybook": "start-storybook -p 5233",
12
+ "build-storybook": "build-storybook",
13
+ "less": "lessc --clean-css ./src/styles/root.less ./src/styles/root.min.css",
14
+ "generate-style": "node ./generate-style.js"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/walkframe/gridsheet.git"
19
+ },
20
+ "keywords": [
21
+ "spreadsheet",
22
+ "spread-sheet",
23
+ "excel"
24
+ ],
25
+ "author": "righ",
26
+ "license": "Apache-2.0",
27
+ "files": [
28
+ "dist/",
29
+ "package.json",
30
+ "README.md",
31
+ "LICENSE"
32
+ ],
33
+ "bugs": {
34
+ "url": "https://github.com/walkframe/gridsheet/issues"
35
+ },
36
+ "homepage": "https://docs.walkframe.com/products/react-gridsheet/",
37
+ "devDependencies": {
38
+ "@storybook/addon-essentials": "^6.5.12",
39
+ "@storybook/addon-links": "^6.5.12",
40
+ "@storybook/react": "^6.5.12",
41
+ "@types/jest": "^29.4.0",
42
+ "@types/react": "^16.9.49",
43
+ "@types/storybook__react": "^5.2.1",
44
+ "@typescript-eslint/eslint-plugin": "^4.14.2",
45
+ "@typescript-eslint/parser": "^4.14.2",
46
+ "eslint": "^7.19.0",
47
+ "eslint-config-prettier": "^7.2.0",
48
+ "eslint-plugin-prettier": "^3.3.1",
49
+ "jest": "^29.4.3",
50
+ "jest-environment-jsdom": "^29.4.3",
51
+ "less": "^4.1.3",
52
+ "less-plugin-clean-css": "^1.5.1",
53
+ "prettier": "2.2.1",
54
+ "react": ">=16.9.0",
55
+ "react-dom": ">=16.9.0",
56
+ "react-is": "^16.13.1",
57
+ "require-context.macro": "^1.2.2",
58
+ "storybook": "^6.5.12",
59
+ "ts-jest": "^29.0.5",
60
+ "ts-node": "^10.9.1",
61
+ "typescript": "^4.0.3",
62
+ "yarn-audit-fix": "^9.3.6"
63
+ },
64
+ "peerDependencies": {
65
+ "react": ">=16.9.0",
66
+ "react-dom": ">=16.9.0"
67
+ },
68
+ "dependencies": {
69
+ "date-fns": "^2.28.0",
70
+ "date-fns-timezone": "^0.1.4"
71
+ },
72
+ "resolutions": {
73
+ "trim": "^0.0.3",
74
+ "trim-newlines": "^3.0.1",
75
+ "got": "^11.8.5",
76
+ "glob-parent": "^5.1.2"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public"
80
+ }
81
+ }