@erxes/ui 3.3.3-next.3 → 3.3.3

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 (1542) hide show
  1. package/README.md +56 -1
  2. package/chunks/chunk-27DB3V2L.js +10 -0
  3. package/chunks/chunk-2UIHFMOO.js +14 -0
  4. package/chunks/chunk-2VXTM7NQ.js +93 -0
  5. package/chunks/chunk-34R3Q65T.js +199 -0
  6. package/chunks/chunk-3GQN7K6A.js +225 -0
  7. package/chunks/chunk-3HIMHBLG.js +33 -0
  8. package/chunks/chunk-3J5VNBOP.js +13 -0
  9. package/chunks/chunk-3KAFS4LM.js +65 -0
  10. package/chunks/chunk-3WLTIKD7.js +124 -0
  11. package/chunks/chunk-43GXDTDI.js +16 -0
  12. package/chunks/chunk-45CVREXI.js +25 -0
  13. package/chunks/chunk-4ATZGPMG.js +28 -0
  14. package/chunks/chunk-4EIP6AVX.js +29 -0
  15. package/chunks/chunk-4GSYMR2A.js +31 -0
  16. package/chunks/chunk-4IUFKR3Z.js +43 -0
  17. package/chunks/chunk-4J36M6XR.js +14 -0
  18. package/chunks/chunk-4JJAB43E.js +7 -0
  19. package/chunks/chunk-4WSQJAH2.js +329 -0
  20. package/chunks/chunk-53UJM7YO.js +10 -0
  21. package/chunks/chunk-55FS4R5Q.js +12 -0
  22. package/chunks/chunk-5AYIRXXG.js +153 -0
  23. package/chunks/chunk-5BDR2SO5.js +15 -0
  24. package/chunks/chunk-5NH4WZCY.js +49 -0
  25. package/chunks/chunk-5U37WCDE.js +0 -0
  26. package/chunks/chunk-67XHII4F.js +160 -0
  27. package/chunks/chunk-6CKZMMTO.js +0 -0
  28. package/chunks/chunk-6FIFKPLP.js +37 -0
  29. package/chunks/chunk-6GO23OUL.js +49 -0
  30. package/chunks/chunk-6H233CIJ.js +15 -0
  31. package/chunks/chunk-6J2ZJOES.js +9 -0
  32. package/chunks/chunk-6JSVJV3E.js +0 -0
  33. package/chunks/chunk-6VR6SGPC.js +31 -0
  34. package/chunks/chunk-734JLHAF.js +24 -0
  35. package/chunks/chunk-73TX6ZQQ.js +18 -0
  36. package/chunks/chunk-76MIPBCD.js +0 -0
  37. package/chunks/chunk-7C7JTY65.js +0 -0
  38. package/chunks/chunk-7FIVWVHV.js +25 -0
  39. package/chunks/chunk-7GRGQLFS.js +264 -0
  40. package/chunks/chunk-7IPMUU22.js +64 -0
  41. package/chunks/chunk-7JHBMQN6.js +121 -0
  42. package/chunks/chunk-7QLWA64F.js +18 -0
  43. package/chunks/chunk-7T23XKCT.js +24 -0
  44. package/chunks/chunk-7TL2WV5V.js +150 -0
  45. package/chunks/chunk-7ZIALLII.js +77 -0
  46. package/chunks/chunk-A6CNIFNS.js +11 -0
  47. package/chunks/chunk-A6ID2P5A.js +47 -0
  48. package/chunks/chunk-AIRW6SHV.js +29 -0
  49. package/chunks/chunk-ALHJUUD5.js +12 -0
  50. package/chunks/chunk-ANRBWR3H.js +193 -0
  51. package/chunks/chunk-AQEBKBOC.js +32 -0
  52. package/chunks/chunk-ATAEEVLB.js +41 -0
  53. package/chunks/chunk-AV4CRRSS.js +109 -0
  54. package/chunks/chunk-B2CYD52N.js +11 -0
  55. package/chunks/chunk-B2WUSPB5.js +50 -0
  56. package/chunks/chunk-B55CLHA7.js +132 -0
  57. package/chunks/chunk-B6WEOYCY.js +11 -0
  58. package/chunks/chunk-BATNONIA.js +31 -0
  59. package/chunks/chunk-BJARUVP3.js +243 -0
  60. package/chunks/chunk-BNHHTDLC.js +49 -0
  61. package/chunks/chunk-BR6S5JY5.js +14 -0
  62. package/chunks/chunk-BR7WQVF4.js +7 -0
  63. package/chunks/chunk-C4TFL7CS.js +16 -0
  64. package/chunks/chunk-C6NKYLT3.js +58 -0
  65. package/chunks/chunk-CAV3X4PT.js +14 -0
  66. package/chunks/chunk-CPF6PSFR.js +56 -0
  67. package/chunks/chunk-CUFSLOE4.js +12 -0
  68. package/chunks/chunk-CV4DUVVL.js +33 -0
  69. package/chunks/chunk-CXEGOUML.js +324 -0
  70. package/chunks/chunk-D3VC2SRW.js +46 -0
  71. package/chunks/chunk-D63SZO4E.js +71 -0
  72. package/chunks/chunk-DCCZEG7Z.js +55 -0
  73. package/chunks/chunk-DHS7XAKB.js +23 -0
  74. package/chunks/chunk-DJMMAGMX.js +363 -0
  75. package/chunks/chunk-DKEJIAFP.js +11 -0
  76. package/chunks/chunk-DUSKF3PG.js +97 -0
  77. package/chunks/chunk-E545F45A.js +0 -0
  78. package/chunks/chunk-E5FW3ERE.js +207 -0
  79. package/chunks/chunk-ECYM7FVA.js +25 -0
  80. package/chunks/chunk-EEW7RLNA.js +87 -0
  81. package/chunks/chunk-EKACQ5FS.js +45 -0
  82. package/chunks/chunk-ELBCBP27.js +51 -0
  83. package/chunks/chunk-F2R6ZFEK.js +65 -0
  84. package/chunks/chunk-F2VATUUS.js +46 -0
  85. package/chunks/chunk-F7VYTUUZ.js +0 -0
  86. package/chunks/chunk-FDI6FB6D.js +13 -0
  87. package/chunks/chunk-FEXWVX6N.js +7 -0
  88. package/chunks/chunk-FEYF56QM.js +55 -0
  89. package/chunks/chunk-FIMKTPWK.js +71 -0
  90. package/chunks/chunk-FJLBHW7X.js +190 -0
  91. package/chunks/chunk-FJTUANXN.js +10 -0
  92. package/chunks/chunk-FL4BZTMQ.js +71 -0
  93. package/chunks/chunk-FSE4KVKE.js +74 -0
  94. package/chunks/chunk-FTTQ6J3Y.js +28 -0
  95. package/chunks/chunk-FWDXQCUE.js +0 -0
  96. package/chunks/chunk-G2QQZN4L.js +162 -0
  97. package/chunks/chunk-GAYFYYXL.js +14 -0
  98. package/chunks/chunk-GHBZJCIA.js +28 -0
  99. package/chunks/chunk-GIBFUQI4.js +8 -0
  100. package/chunks/chunk-GNV7UG3U.js +13 -0
  101. package/chunks/chunk-GTW4DI5C.js +28 -0
  102. package/chunks/chunk-GXARUX2O.js +19 -0
  103. package/chunks/chunk-GZNR5Y3B.js +0 -0
  104. package/chunks/chunk-H32OMVSR.js +8 -0
  105. package/chunks/chunk-H4LZWBS4.js +94 -0
  106. package/chunks/chunk-H5OTBPGB.js +14 -0
  107. package/chunks/chunk-HSEBNAEA.js +12 -0
  108. package/chunks/chunk-I2LZMWEI.js +118 -0
  109. package/chunks/chunk-I3G3HVMC.js +16 -0
  110. package/chunks/chunk-I3I7T4UD.js +21 -0
  111. package/chunks/chunk-I5PPLXSZ.js +125 -0
  112. package/chunks/chunk-IIK24XSW.js +601 -0
  113. package/chunks/chunk-IJVY23RC.js +20 -0
  114. package/chunks/chunk-IKDLWUZ7.js +19 -0
  115. package/chunks/chunk-IM5IHH3X.js +23 -0
  116. package/chunks/chunk-IMKAHINH.js +7 -0
  117. package/chunks/chunk-IN7H6TNM.js +28 -0
  118. package/chunks/chunk-IQR2LD6K.js +41 -0
  119. package/chunks/chunk-ITLNFLKR.js +35 -0
  120. package/chunks/chunk-IWPK637H.js +105 -0
  121. package/chunks/chunk-J4T4WIBM.js +51 -0
  122. package/chunks/chunk-J65EQMDN.js +76 -0
  123. package/chunks/chunk-J75NVPXJ.js +0 -0
  124. package/chunks/chunk-JKXVRU5D.js +26 -0
  125. package/chunks/chunk-JKZ776CQ.js +58 -0
  126. package/chunks/chunk-JPCD46D4.js +0 -0
  127. package/chunks/chunk-JSZTGL4T.js +7 -0
  128. package/chunks/chunk-JVFLCNKB.js +67 -0
  129. package/chunks/chunk-JWRKTKTI.js +57 -0
  130. package/chunks/chunk-K4QWFHHP.js +106 -0
  131. package/chunks/chunk-KK6WMCQJ.js +177 -0
  132. package/chunks/chunk-KT3H4JCX.js +80 -0
  133. package/chunks/chunk-KTBDECJI.js +62 -0
  134. package/chunks/chunk-KTNEDC7K.js +20 -0
  135. package/chunks/chunk-KW4MCMRZ.js +125 -0
  136. package/chunks/chunk-KXW36NG2.js +30 -0
  137. package/chunks/chunk-L5TCGIYY.js +42 -0
  138. package/chunks/chunk-LE4PIQPL.js +0 -0
  139. package/chunks/chunk-LPNW25XF.js +45 -0
  140. package/chunks/chunk-LVNNZDXL.js +59 -0
  141. package/chunks/chunk-M66JMKRR.js +11 -0
  142. package/chunks/chunk-MBEYRZZN.js +172 -0
  143. package/chunks/chunk-MM5MMNXN.js +19 -0
  144. package/chunks/chunk-MNNGKWCI.js +56 -0
  145. package/chunks/chunk-MSAEUPAX.js +35 -0
  146. package/chunks/chunk-MSSVDJPS.js +72 -0
  147. package/chunks/chunk-MWRDVBYJ.js +121 -0
  148. package/chunks/chunk-MZ4RKADP.js +27 -0
  149. package/chunks/chunk-N4UKAPHL.js +36 -0
  150. package/chunks/chunk-N6SOBDY7.js +11 -0
  151. package/chunks/chunk-NDGKMVC7.js +10 -0
  152. package/chunks/chunk-NDIVNBGK.js +212 -0
  153. package/chunks/chunk-NJFDVNW5.js +13 -0
  154. package/chunks/chunk-NJJVZ3JY.js +9 -0
  155. package/chunks/chunk-NLHLWEDB.js +92 -0
  156. package/chunks/chunk-NLJ6XLH7.js +6 -0
  157. package/chunks/chunk-NMKI4CJI.js +26 -0
  158. package/chunks/chunk-NNF3YJY2.js +70 -0
  159. package/chunks/chunk-NSAKTQ2Q.js +17 -0
  160. package/chunks/chunk-NUGJ3NYH.js +149 -0
  161. package/chunks/chunk-O365JEFR.js +30 -0
  162. package/chunks/chunk-O6IUPS6U.js +7 -0
  163. package/chunks/chunk-O735ESAQ.js +35 -0
  164. package/chunks/chunk-O76CR475.js +79 -0
  165. package/chunks/chunk-OADHO5WP.js +231 -0
  166. package/chunks/chunk-OKRWCATR.js +12 -0
  167. package/chunks/chunk-ONOUIZ6L.js +20 -0
  168. package/chunks/chunk-OOAGMFCJ.js +0 -0
  169. package/chunks/chunk-OQSM2FFV.js +37 -0
  170. package/chunks/chunk-OSSJ2FMG.js +9 -0
  171. package/chunks/chunk-P4R2CPUZ.js +164 -0
  172. package/chunks/chunk-PDVNR7LI.js +24 -0
  173. package/chunks/chunk-PHBECHTA.js +148 -0
  174. package/chunks/chunk-PNTO4UDY.js +0 -0
  175. package/chunks/chunk-PPQ4DIII.js +0 -0
  176. package/chunks/chunk-PPRBTD5G.js +38 -0
  177. package/chunks/chunk-PUDZPB4P.js +24 -0
  178. package/chunks/chunk-Q3CMFGM7.js +81 -0
  179. package/chunks/chunk-QPHY7OAH.js +13 -0
  180. package/chunks/chunk-QPJFUBIS.js +7 -0
  181. package/chunks/chunk-QS54MMOE.js +48 -0
  182. package/chunks/chunk-QTFBJ6EE.js +31 -0
  183. package/chunks/chunk-QTKFDPZO.js +7 -0
  184. package/chunks/chunk-QWLVJ3B3.js +40 -0
  185. package/chunks/chunk-QWNOJAU5.js +81 -0
  186. package/chunks/chunk-QY5RA3NM.js +19 -0
  187. package/chunks/chunk-R2RAAS4Y.js +39 -0
  188. package/chunks/chunk-R3MJDVPP.js +0 -0
  189. package/chunks/chunk-R3V3G4FN.js +59 -0
  190. package/chunks/chunk-R7LIWID7.js +73 -0
  191. package/chunks/chunk-R7PWUR7Z.js +84 -0
  192. package/chunks/chunk-RE6OMNXN.js +360 -0
  193. package/chunks/chunk-RGR6MIXH.js +64 -0
  194. package/chunks/chunk-RIDGCKXU.js +218 -0
  195. package/chunks/chunk-RREVMRKX.js +95 -0
  196. package/chunks/chunk-RRQDMDYQ.js +0 -0
  197. package/chunks/chunk-RTKGTC5M.js +21 -0
  198. package/chunks/chunk-S2HOHADT.js +20 -0
  199. package/chunks/chunk-S2UZYA2K.js +142 -0
  200. package/chunks/chunk-SBVVGYRA.js +23 -0
  201. package/chunks/chunk-SIWINSCP.js +0 -0
  202. package/chunks/chunk-SL6UK5XI.js +0 -0
  203. package/chunks/chunk-SN5JDDNY.js +184 -0
  204. package/chunks/chunk-SRNSMVXB.js +192 -0
  205. package/chunks/chunk-TDTZBA63.js +8987 -0
  206. package/chunks/chunk-TJZNYTTT.js +30 -0
  207. package/chunks/chunk-TRZXPKUK.js +17 -0
  208. package/chunks/chunk-TUQK5HP5.js +10 -0
  209. package/chunks/chunk-U363OCVD.js +61 -0
  210. package/chunks/chunk-U3Q5J7XQ.js +12 -0
  211. package/chunks/chunk-U64G5PZP.js +129 -0
  212. package/chunks/chunk-UD2ZXWEI.js +115 -0
  213. package/chunks/chunk-UKLVO5YZ.js +47 -0
  214. package/chunks/chunk-ULRPDB6S.js +79 -0
  215. package/chunks/chunk-UOEXGF6S.js +7 -0
  216. package/chunks/chunk-UQYVKPRU.js +6 -0
  217. package/chunks/chunk-UXDXIN6Q.js +65 -0
  218. package/chunks/chunk-UZREMEFG.js +10 -0
  219. package/chunks/chunk-VAQZFKAX.js +12 -0
  220. package/chunks/chunk-VBW6O2FL.js +51 -0
  221. package/chunks/chunk-VBZAZNZK.js +160 -0
  222. package/chunks/chunk-VZTFOYF3.js +65 -0
  223. package/chunks/chunk-W3NXVJX4.js +18 -0
  224. package/chunks/chunk-W5KVCFS2.js +126 -0
  225. package/chunks/chunk-WAES3OQO.js +21 -0
  226. package/chunks/chunk-WFVSF7GY.js +17 -0
  227. package/chunks/chunk-WJC7I7VI.js +58 -0
  228. package/chunks/chunk-WKBUEFOB.js +7 -0
  229. package/chunks/chunk-WLKDIP4Y.js +17 -0
  230. package/chunks/chunk-WS4SMSBU.js +244 -0
  231. package/chunks/chunk-WUKJ4QY7.js +14 -0
  232. package/chunks/chunk-WX3NKKHS.js +12 -0
  233. package/chunks/chunk-XBMSMK3U.js +0 -0
  234. package/chunks/chunk-XD4PKWF4.js +94 -0
  235. package/chunks/chunk-XD4TBZYB.js +44 -0
  236. package/chunks/chunk-XEQJYWZP.js +67 -0
  237. package/chunks/chunk-XHYJBJV7.js +0 -0
  238. package/chunks/chunk-XJKGUTA5.js +0 -0
  239. package/chunks/chunk-XQGH7WSU.js +18 -0
  240. package/chunks/chunk-XWJKQS3Q.js +60 -0
  241. package/chunks/chunk-XX3GPHFO.js +25 -0
  242. package/chunks/chunk-Y4PHXFJG.js +8 -0
  243. package/chunks/chunk-Y5IJGIV3.js +53 -0
  244. package/chunks/chunk-YDWH4BVW.js +9 -0
  245. package/chunks/chunk-YG5KZSTP.js +16 -0
  246. package/chunks/chunk-YH5K7V44.js +161 -0
  247. package/chunks/chunk-YLDPFS3W.js +78 -0
  248. package/chunks/chunk-YPVJURO4.js +84 -0
  249. package/chunks/chunk-YZMSGM54.js +9 -0
  250. package/chunks/chunk-YZNP3ZEJ.js +36 -0
  251. package/chunks/chunk-YZXFCISZ.js +54 -0
  252. package/chunks/chunk-Z2GG4YSV.js +49 -0
  253. package/chunks/chunk-Z3U4QH2C.js +9 -0
  254. package/chunks/chunk-Z4JRW5OO.js +0 -0
  255. package/chunks/chunk-ZBV3RCPW.js +19 -0
  256. package/chunks/chunk-ZF6XCB7I.js +140 -0
  257. package/chunks/chunk-ZOTE5P5Q.js +92 -0
  258. package/chunks/chunk-ZQBIGO4Q.js +30 -0
  259. package/chunks/chunk-ZRETEI5F.js +24 -0
  260. package/chunks/chunk-ZXLAVUFZ.js +56 -0
  261. package/components/accordion.js +9 -0
  262. package/components/alert-dialog.js +11 -0
  263. package/components/alert.js +9 -0
  264. package/components/avatar.js +11 -0
  265. package/components/background-gradient-animation.js +11 -0
  266. package/components/badge.js +13 -0
  267. package/components/breadcrumb.js +10 -0
  268. package/components/button.js +12 -0
  269. package/components/calendar.js +14 -0
  270. package/components/card.js +10 -0
  271. package/components/charts.js +19 -0
  272. package/components/checkbox.js +10 -0
  273. package/components/choicebox-group.d.ts +16 -0
  274. package/components/choicebox-group.js +265 -0
  275. package/components/collapsible.d.ts +10 -0
  276. package/components/collapsible.js +269 -0
  277. package/components/color-picker.d.ts +34 -0
  278. package/components/color-picker.js +267 -0
  279. package/components/combobox.d.ts +99 -0
  280. package/components/combobox.js +32 -0
  281. package/components/command-bar.js +11 -0
  282. package/components/command.d.ts +205 -0
  283. package/components/command.js +12 -0
  284. package/components/context-menu.js +9 -0
  285. package/components/copy-text.js +11 -0
  286. package/components/date-picker.d.ts +30 -0
  287. package/components/date-picker.js +14 -0
  288. package/components/dialog.js +11 -0
  289. package/components/drag-handle.d.ts +3 -0
  290. package/components/drag-handle.js +11 -0
  291. package/components/dropdown-menu.js +9 -0
  292. package/components/empty.js +9 -0
  293. package/components/erxes-logo-icon.js +8 -0
  294. package/components/form.js +10 -0
  295. package/components/hover-card.js +9 -0
  296. package/components/index.d.ts +59 -0
  297. package/components/index.js +505 -0
  298. package/components/info-card.js +12 -0
  299. package/components/input.js +13 -0
  300. package/components/kbd.js +10 -0
  301. package/components/label.js +9 -0
  302. package/components/multiselect.d.ts +72 -0
  303. package/components/multiselect.js +265 -0
  304. package/components/popover.js +11 -0
  305. package/components/radio-group.js +10 -0
  306. package/components/resizable.js +10 -0
  307. package/components/scroll-area.js +9 -0
  308. package/components/search-order-select.js +11 -0
  309. package/components/select.js +10 -0
  310. package/components/separator.js +9 -0
  311. package/components/sheet.js +15 -0
  312. package/components/sidebar/constants.js +24 -0
  313. package/components/sidebar/context.d.ts +26 -0
  314. package/components/sidebar/context.js +25 -0
  315. package/components/sidebar/group.js +15 -0
  316. package/components/sidebar/hooks.js +6 -0
  317. package/components/sidebar/layout.js +20 -0
  318. package/components/sidebar/menu-sub.js +15 -0
  319. package/components/sidebar/menu.d.ts +22 -0
  320. package/components/sidebar/menu.js +33 -0
  321. package/components/sidebar/panel.d.ts +6 -0
  322. package/components/sidebar/panel.js +16 -0
  323. package/components/sidebar/root.js +29 -0
  324. package/components/sidebar/trigger.d.ts +2 -0
  325. package/components/sidebar/trigger.js +24 -0
  326. package/components/sidebar-tree-indicator.js +11 -0
  327. package/components/sidebar.d.ts +78 -0
  328. package/components/sidebar.js +39 -0
  329. package/components/skeleton.js +11 -0
  330. package/components/slider.js +10 -0
  331. package/components/spinner.js +10 -0
  332. package/components/stepper.js +10 -0
  333. package/components/string-array.js +14 -0
  334. package/components/switch.js +9 -0
  335. package/components/table.js +9 -0
  336. package/components/tabs.js +10 -0
  337. package/components/text-overflow.js +12 -0
  338. package/components/textarea.js +9 -0
  339. package/components/time-picker.js +16 -0
  340. package/components/toaster.js +11 -0
  341. package/components/toasts.js +9 -0
  342. package/components/toggle-group.js +10 -0
  343. package/components/toggle.js +11 -0
  344. package/components/tooltip.js +9 -0
  345. package/components/upload-new.d.ts +16 -0
  346. package/components/upload-new.js +22 -0
  347. package/components/upload.d.ts +23 -0
  348. package/components/upload.js +265 -0
  349. package/constants/AttachmentGql.js +6 -0
  350. package/constants/CountryPhoneCodes.d.ts +2 -0
  351. package/constants/CountryPhoneCodes.js +6 -0
  352. package/constants/CurrencyCodes.d.ts +6 -0
  353. package/constants/CurrencyCodes.js +6 -0
  354. package/constants/EmailValidationStatusInfos.js +10 -0
  355. package/constants/GraphqlConstants.js +10 -0
  356. package/constants/IanaTimeZones.js +6 -0
  357. package/constants/IntlLanguages.js +6 -0
  358. package/constants/PhoneValidationStatusInfos.js +10 -0
  359. package/constants/SexCodes.d.ts +4 -0
  360. package/constants/SexCodes.js +18 -0
  361. package/constants/index.d.ts +5 -0
  362. package/constants/index.js +39 -0
  363. package/hooks/index.d.ts +9 -0
  364. package/hooks/index.js +301 -0
  365. package/hooks/use-confirm.d.ts +29 -0
  366. package/hooks/use-confirm.js +267 -0
  367. package/hooks/use-cursor-pagination.js +34 -0
  368. package/hooks/use-is-matching-location.js +8 -0
  369. package/hooks/use-media-query.js +8 -0
  370. package/hooks/use-mobile.js +9 -0
  371. package/hooks/use-query-state.js +16 -0
  372. package/hooks/use-toast.d.ts +21 -0
  373. package/hooks/use-toast.js +10 -0
  374. package/hooks/use-upload-chunked.js +33 -0
  375. package/hooks/use-upload-new.js +35 -0
  376. package/hooks/use-upload.js +265 -0
  377. package/index.d.ts +8 -0
  378. package/index.js +1013 -0
  379. package/lib/index.d.ts +1 -0
  380. package/lib/index.js +13 -0
  381. package/lib/utils.js +12 -0
  382. package/modules/attachments/attachments.d.ts +38 -0
  383. package/modules/attachments/attachments.js +265 -0
  384. package/modules/attachments/context.d.ts +12 -0
  385. package/modules/attachments/context.js +10 -0
  386. package/modules/attachments/index.d.ts +5 -0
  387. package/modules/attachments/index.js +271 -0
  388. package/modules/attachments/types.js +6 -0
  389. package/modules/blocks/components/BarcodeAttribute.js +265 -0
  390. package/modules/blocks/components/BlockEditor.d.ts +42 -0
  391. package/modules/blocks/components/BlockEditor.js +269 -0
  392. package/modules/blocks/components/BlockEditorReadOnly.js +265 -0
  393. package/modules/blocks/components/CustomFileBlock.js +265 -0
  394. package/modules/blocks/components/CustomImageBlock.js +267 -0
  395. package/modules/blocks/components/CustomVideoBlock.js +36 -0
  396. package/modules/blocks/components/DocumentPlaceholderBlock.js +8 -0
  397. package/modules/blocks/components/Editor.d.ts +2 -0
  398. package/modules/blocks/components/Editor.js +265 -0
  399. package/modules/blocks/components/FontFamilyButton.js +10 -0
  400. package/modules/blocks/components/GalleryBlock.js +265 -0
  401. package/modules/blocks/components/ImageStyleButton.js +265 -0
  402. package/modules/blocks/components/SlashMenu.js +265 -0
  403. package/modules/blocks/components/SuggestionMenu.js +267 -0
  404. package/modules/blocks/components/TableHandleWithRemove.js +8 -0
  405. package/modules/blocks/components/Toolbar.js +265 -0
  406. package/modules/blocks/components/index.d.ts +6 -0
  407. package/modules/blocks/components/index.js +281 -0
  408. package/modules/blocks/components/toolbar/ToolbarContents.d.ts +1 -0
  409. package/modules/blocks/components/toolbar/ToolbarContents.js +265 -0
  410. package/modules/blocks/components/toolbar/ToolbarRoot.d.ts +2 -0
  411. package/modules/blocks/components/toolbar/ToolbarRoot.js +10 -0
  412. package/modules/blocks/components/toolbar/buttons/ToolbarButton.d.ts +1 -0
  413. package/modules/blocks/components/toolbar/buttons/ToolbarButton.js +265 -0
  414. package/modules/blocks/components/toolbar/buttons/ToolbarFormattingButton.d.ts +2 -0
  415. package/modules/blocks/components/toolbar/buttons/ToolbarFormattingButton.js +10 -0
  416. package/modules/blocks/components/toolbar/buttons/ToolbarToggle.js +265 -0
  417. package/modules/blocks/components/toolbar/menus/ToolbarMenuDropdown.d.ts +2 -0
  418. package/modules/blocks/components/toolbar/menus/ToolbarMenuDropdown.js +10 -0
  419. package/modules/blocks/components/toolbar/menus/ToolbarMenuItem.d.ts +2 -0
  420. package/modules/blocks/components/toolbar/menus/ToolbarMenuItem.js +265 -0
  421. package/modules/blocks/components/toolbar/menus/ToolbarSelect.d.ts +2 -0
  422. package/modules/blocks/components/toolbar/menus/ToolbarSelect.js +265 -0
  423. package/modules/blocks/constant/blockEditorSchema.d.ts +714 -0
  424. package/modules/blocks/constant/blockEditorSchema.js +267 -0
  425. package/modules/blocks/constant/index.d.ts +1 -0
  426. package/modules/blocks/constant/index.js +269 -0
  427. package/modules/blocks/constant/toolbar/codeIncompatibleControls.d.ts +1 -0
  428. package/modules/blocks/constant/toolbar/codeIncompatibleControls.js +6 -0
  429. package/modules/blocks/constant/toolbar/editorUIComponents.js +263 -0
  430. package/modules/blocks/constant/toolbar/fontFamilies.d.ts +4 -0
  431. package/modules/blocks/constant/toolbar/fontFamilies.js +6 -0
  432. package/modules/blocks/constant/toolbar/imageStyleOptions.d.ts +2 -0
  433. package/modules/blocks/constant/toolbar/imageStyleOptions.js +6 -0
  434. package/modules/blocks/hooks/toolbar/useCodeActive.d.ts +1 -0
  435. package/modules/blocks/hooks/toolbar/useCodeActive.js +7 -0
  436. package/modules/blocks/hooks/toolbar/useFontFamily.d.ts +2 -0
  437. package/modules/blocks/hooks/toolbar/useFontFamily.js +7 -0
  438. package/modules/blocks/hooks/toolbar/useToolbarComponents.d.ts +2 -0
  439. package/modules/blocks/hooks/toolbar/useToolbarComponents.js +264 -0
  440. package/modules/blocks/hooks/useBlockEditor.d.ts +7 -0
  441. package/modules/blocks/hooks/useBlockEditor.js +265 -0
  442. package/modules/blocks/index.d.ts +5 -0
  443. package/modules/blocks/index.js +298 -0
  444. package/modules/blocks/types/EditorBlock.d.ts +2 -0
  445. package/modules/blocks/types/EditorBlock.js +0 -0
  446. package/modules/blocks/types/TextEditor.d.ts +29 -0
  447. package/modules/blocks/types/TextEditor.js +1 -0
  448. package/modules/blocks/types/index.d.ts +1 -0
  449. package/modules/blocks/types/index.js +4 -0
  450. package/modules/blocks/types/toolbar/EditorVisibleBounds.d.ts +6 -0
  451. package/modules/blocks/types/toolbar/EditorVisibleBounds.js +0 -0
  452. package/modules/blocks/types/toolbar/FontFamily.d.ts +5 -0
  453. package/modules/blocks/types/toolbar/FontFamily.js +0 -0
  454. package/modules/blocks/types/toolbar/FormattingShortcut.d.ts +7 -0
  455. package/modules/blocks/types/toolbar/FormattingShortcut.js +0 -0
  456. package/modules/blocks/types/toolbar/ImageStyleOption.d.ts +7 -0
  457. package/modules/blocks/types/toolbar/ImageStyleOption.js +0 -0
  458. package/modules/blocks/types/toolbar/ToolbarFormattingButtonProps.d.ts +5 -0
  459. package/modules/blocks/types/toolbar/ToolbarFormattingButtonProps.js +0 -0
  460. package/modules/blocks/types/toolbar/ToolbarMenuItemProps.d.ts +4 -0
  461. package/modules/blocks/types/toolbar/ToolbarMenuItemProps.js +0 -0
  462. package/modules/blocks/types/toolbar/ToolbarPositioningOptions.d.ts +3 -0
  463. package/modules/blocks/types/toolbar/ToolbarPositioningOptions.js +0 -0
  464. package/modules/blocks/utils/getBlockAttachments.js +6 -0
  465. package/modules/blocks/utils/getMentionedUserIds.js +6 -0
  466. package/modules/blocks/utils/getSlashMenuItems.d.ts +3 -0
  467. package/modules/blocks/utils/getSlashMenuItems.js +8 -0
  468. package/modules/blocks/utils/index.d.ts +3 -0
  469. package/modules/blocks/utils/index.js +17 -0
  470. package/modules/blocks/utils/isEmptyBlock.d.ts +2 -0
  471. package/modules/blocks/utils/isEmptyBlock.js +6 -0
  472. package/modules/blocks/utils/parseBlocks.js +6 -0
  473. package/modules/blocks/utils/removeCodeFormattingFromHTML.d.ts +1 -0
  474. package/modules/blocks/utils/removeCodeFormattingFromHTML.js +6 -0
  475. package/modules/blocks/utils/toolbar/getEditorVisibleBounds.d.ts +2 -0
  476. package/modules/blocks/utils/toolbar/getEditorVisibleBounds.js +6 -0
  477. package/modules/blocks/utils/toolbar/getToolbarPositioning.d.ts +2 -0
  478. package/modules/blocks/utils/toolbar/getToolbarPositioning.js +7 -0
  479. package/modules/blocks/utils/toolbar/isCodeFormattingShortcut.d.ts +2 -0
  480. package/modules/blocks/utils/toolbar/isCodeFormattingShortcut.js +6 -0
  481. package/modules/board/components/Board.d.ts +22 -0
  482. package/modules/board/components/Board.js +269 -0
  483. package/modules/board/contexts/BoardContext.d.ts +2 -0
  484. package/modules/board/contexts/BoardContext.js +6 -0
  485. package/modules/board/index.d.ts +2 -0
  486. package/modules/board/index.js +269 -0
  487. package/modules/board/states/boardStates.js +8 -0
  488. package/modules/board/types/boardTypes.js +1 -0
  489. package/modules/chat-viz/components/ChatVizArea.d.ts +9 -0
  490. package/modules/chat-viz/components/ChatVizArea.js +13 -0
  491. package/modules/chat-viz/components/ChatVizBar.d.ts +9 -0
  492. package/modules/chat-viz/components/ChatVizBar.js +13 -0
  493. package/modules/chat-viz/components/ChatVizCartesianDecorations.js +11 -0
  494. package/modules/chat-viz/components/ChatVizLine.d.ts +9 -0
  495. package/modules/chat-viz/components/ChatVizLine.js +13 -0
  496. package/modules/chat-viz/components/ChatVizMessage.js +21 -0
  497. package/modules/chat-viz/components/ChatVizPie.d.ts +13 -0
  498. package/modules/chat-viz/components/ChatVizPie.js +12 -0
  499. package/modules/chat-viz/components/ChatVizSendButton.d.ts +17 -0
  500. package/modules/chat-viz/components/ChatVizSendButton.js +12 -0
  501. package/modules/chat-viz/hooks/useChatVizSend.d.ts +11 -0
  502. package/modules/chat-viz/hooks/useChatVizSend.js +8 -0
  503. package/modules/chat-viz/hooks/useIsClient.js +7 -0
  504. package/modules/chat-viz/index.d.ts +12 -0
  505. package/modules/chat-viz/index.js +60 -0
  506. package/modules/chat-viz/types/chatVizTypes.js +0 -0
  507. package/modules/chat-viz/utils/chartVizPresentation.js +10 -0
  508. package/modules/chat-viz/utils/chartVizTransforms.d.ts +19 -0
  509. package/modules/chat-viz/utils/chartVizTransforms.js +11 -0
  510. package/modules/chat-viz/utils/chatVizSanitize.d.ts +25 -0
  511. package/modules/chat-viz/utils/chatVizSanitize.js +10 -0
  512. package/modules/display/components/CurrencyDisplay.d.ts +15 -0
  513. package/modules/display/components/CurrencyDisplay.js +40 -0
  514. package/modules/display/components/EllipsisDisplay.js +10 -0
  515. package/modules/display/components/EmailDisplay.d.ts +2 -0
  516. package/modules/display/components/EmailDisplay.js +265 -0
  517. package/modules/display/components/PhoneDisplay.d.ts +2 -0
  518. package/modules/display/components/PhoneDisplay.js +265 -0
  519. package/modules/display/components/RelativeDateDisplay.js +265 -0
  520. package/modules/display/components/SexDisplay.d.ts +4 -0
  521. package/modules/display/components/SexDisplay.js +26 -0
  522. package/modules/display/index.d.ts +6 -0
  523. package/modules/display/index.js +280 -0
  524. package/modules/display/types/emailDisplay.d.ts +6 -0
  525. package/modules/display/types/emailDisplay.js +0 -0
  526. package/modules/display/utils/formatEmails.d.ts +3 -0
  527. package/modules/display/utils/formatEmails.js +6 -0
  528. package/modules/display/utils/formatPhones.d.ts +3 -0
  529. package/modules/display/utils/formatPhones.js +18 -0
  530. package/modules/email-editor/components/EmailEditor.d.ts +3 -0
  531. package/modules/email-editor/components/EmailEditor.js +267 -0
  532. package/modules/email-editor/components/EmailPreviewDeviceToggle.d.ts +7 -0
  533. package/modules/email-editor/components/EmailPreviewDeviceToggle.js +265 -0
  534. package/modules/email-editor/components/EmailPreviewFrame.d.ts +8 -0
  535. package/modules/email-editor/components/EmailPreviewFrame.js +10 -0
  536. package/modules/email-editor/components/EmailTableBackground.js +265 -0
  537. package/modules/email-editor/components/EmailTableToolbar.js +265 -0
  538. package/modules/email-editor/components/index.d.ts +3 -0
  539. package/modules/email-editor/components/index.js +272 -0
  540. package/modules/email-editor/constant/index.js +9 -0
  541. package/modules/email-editor/extensions/documentPlaceholder.js +6 -0
  542. package/modules/email-editor/extensions/documentPlaceholderBlock.js +12 -0
  543. package/modules/email-editor/extensions/table.js +16 -0
  544. package/modules/email-editor/extensions/tableBlock.js +8 -0
  545. package/modules/email-editor/hooks/useEmailHtml.js +9 -0
  546. package/modules/email-editor/index.d.ts +6 -0
  547. package/modules/email-editor/index.js +286 -0
  548. package/modules/email-editor/types/index.js +3 -0
  549. package/modules/email-editor/utils/expandCustomNodes.js +6 -0
  550. package/modules/email-editor/utils/renderEmailHtml.js +7 -0
  551. package/modules/filter/components/Filter.d.ts +909 -0
  552. package/modules/filter/components/Filter.js +265 -0
  553. package/modules/filter/context/FilterContext.d.ts +2 -0
  554. package/modules/filter/context/FilterContext.js +8 -0
  555. package/modules/filter/date-filter/components/DateFilterCommand.js +265 -0
  556. package/modules/filter/date-filter/components/DialogDateView.js +267 -0
  557. package/modules/filter/date-filter/constants/dateTypes.js +12 -0
  558. package/modules/filter/date-filter/index.d.ts +2 -0
  559. package/modules/filter/date-filter/index.js +270 -0
  560. package/modules/filter/date-filter/utils/dateTokens.js +8 -0
  561. package/modules/filter/date-filter/utils/getActiveTab.js +7 -0
  562. package/modules/filter/date-filter/utils/getDisplayValue.js +8 -0
  563. package/modules/filter/date-filter/utils/getYears.js +6 -0
  564. package/modules/filter/date-filter/utils/parseDateRangeFromString.js +34 -0
  565. package/modules/filter/hooks/useFilterContext.d.ts +1 -0
  566. package/modules/filter/hooks/useFilterContext.js +9 -0
  567. package/modules/filter/hooks/useFilterQueryState.d.ts +4 -0
  568. package/modules/filter/hooks/useFilterQueryState.js +10 -0
  569. package/modules/filter/index.d.ts +5 -0
  570. package/modules/filter/index.js +278 -0
  571. package/modules/filter/states/filterStates.js +14 -0
  572. package/modules/filter/types/filter.js +1 -0
  573. package/modules/focus-sheet/components/focus-sheet.d.ts +51 -0
  574. package/modules/focus-sheet/components/focus-sheet.js +267 -0
  575. package/modules/hotkey/components/PopoverScoped.d.ts +10 -0
  576. package/modules/hotkey/components/PopoverScoped.js +265 -0
  577. package/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.d.ts +2 -0
  578. package/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.js +6 -0
  579. package/modules/hotkey/constants/initialHotkeysScope.d.ts +2 -0
  580. package/modules/hotkey/constants/initialHotkeysScope.js +7 -0
  581. package/modules/hotkey/hooks/usePreviousHotkeyScope.d.ts +5 -0
  582. package/modules/hotkey/hooks/usePreviousHotkeyScope.js +19 -0
  583. package/modules/hotkey/hooks/useScopedHotKeysCallback.js +12 -0
  584. package/modules/hotkey/hooks/useScopedHotkeys.js +13 -0
  585. package/modules/hotkey/hooks/useSequenceHotkeys.js +21 -0
  586. package/modules/hotkey/hooks/useSetHotkeyScope.d.ts +2 -0
  587. package/modules/hotkey/hooks/useSetHotkeyScope.js +17 -0
  588. package/modules/hotkey/index.d.ts +13 -0
  589. package/modules/hotkey/index.js +297 -0
  590. package/modules/hotkey/states/internal/currentHotkeyScopeState.d.ts +4 -0
  591. package/modules/hotkey/states/internal/currentHotkeyScopeState.js +8 -0
  592. package/modules/hotkey/states/internal/internalHotkeysEnabledScopeState.js +6 -0
  593. package/modules/hotkey/states/internal/pendingHotkeyState.js +6 -0
  594. package/modules/hotkey/states/internal/previousHotkeyScopeState.d.ts +2 -0
  595. package/modules/hotkey/states/internal/previousHotkeyScopeState.js +6 -0
  596. package/modules/hotkey/states/setHotkeyScopeState.d.ts +5 -0
  597. package/modules/hotkey/states/setHotkeyScopeState.js +12 -0
  598. package/modules/hotkey/types/AppHotkeyScope.js +6 -0
  599. package/modules/hotkey/types/CustomHotkeyScope.js +1 -0
  600. package/modules/hotkey/types/HotkeyScope.d.ts +5 -0
  601. package/modules/hotkey/types/HotkeyScope.js +1 -0
  602. package/modules/hotkey/utils/isNonTextWritingKey.js +6 -0
  603. package/modules/icons/components/IconComponent.js +10 -0
  604. package/modules/icons/components/IconPicker.d.ts +6 -0
  605. package/modules/icons/components/IconPicker.js +265 -0
  606. package/modules/icons/components/TablerIcons.js +592 -0
  607. package/modules/icons/hooks/useIcons.js +8 -0
  608. package/modules/icons/index.d.ts +3 -0
  609. package/modules/icons/index.js +271 -0
  610. package/modules/icons/providers/IconsProvider.js +9 -0
  611. package/modules/icons/states/iconsState.js +6 -0
  612. package/modules/index.d.ts +22 -0
  613. package/modules/index.js +590 -0
  614. package/modules/inputs/components/CurrencyField.d.ts +442 -0
  615. package/modules/inputs/components/CurrencyField.js +265 -0
  616. package/modules/inputs/components/EmailField.d.ts +30 -0
  617. package/modules/inputs/components/EmailField.js +267 -0
  618. package/modules/inputs/components/FullNameField.js +267 -0
  619. package/modules/inputs/components/LanguageSelect.d.ts +7 -0
  620. package/modules/inputs/components/LanguageSelect.js +265 -0
  621. package/modules/inputs/components/NumberField.js +10 -0
  622. package/modules/inputs/components/PhoneField.d.ts +56 -0
  623. package/modules/inputs/components/PhoneField.js +267 -0
  624. package/modules/inputs/components/SexField.d.ts +5 -0
  625. package/modules/inputs/components/SexField.js +265 -0
  626. package/modules/inputs/components/TimezoneSelect.d.ts +7 -0
  627. package/modules/inputs/components/TimezoneSelect.js +265 -0
  628. package/modules/inputs/contexts/EmailFieldsContext.d.ts +8 -0
  629. package/modules/inputs/contexts/EmailFieldsContext.js +8 -0
  630. package/modules/inputs/contexts/FullNameFieldContext.js +8 -0
  631. package/modules/inputs/contexts/PhoneFieldsContext.d.ts +6 -0
  632. package/modules/inputs/contexts/PhoneFieldsContext.js +8 -0
  633. package/modules/inputs/hooks/useEmailFields.d.ts +6 -0
  634. package/modules/inputs/hooks/useEmailFields.js +9 -0
  635. package/modules/inputs/hooks/useFullNameField.js +9 -0
  636. package/modules/inputs/hooks/usePhoneFields.d.ts +5 -0
  637. package/modules/inputs/hooks/usePhoneFields.js +9 -0
  638. package/modules/inputs/index.d.ts +8 -0
  639. package/modules/inputs/index.js +286 -0
  640. package/modules/inputs/states/emailFieldStates.d.ts +8 -0
  641. package/modules/inputs/states/emailFieldStates.js +10 -0
  642. package/modules/inputs/states/phoneFieldStates.d.ts +8 -0
  643. package/modules/inputs/states/phoneFieldStates.js +10 -0
  644. package/modules/inputs/validations/emailValidation.js +6 -0
  645. package/modules/inputs/validations/phoneValidation.js +6 -0
  646. package/modules/layout/components/AppLayout.js +42 -0
  647. package/modules/layout/components/Page.js +12 -0
  648. package/modules/layout/index.d.ts +2 -0
  649. package/modules/layout/index.js +49 -0
  650. package/modules/motion/components/TextEffect.js +10 -0
  651. package/modules/motion/components/TextLoop.js +10 -0
  652. package/modules/motion/index.d.ts +2 -0
  653. package/modules/motion/index.js +15 -0
  654. package/modules/navigation-menu/components/NavigationMenu.js +271 -0
  655. package/modules/navigation-menu/components/NavigationMenuItemControls.js +10 -0
  656. package/modules/navigation-menu/index.d.ts +3 -0
  657. package/modules/navigation-menu/index.js +279 -0
  658. package/modules/navigation-menu/states/activePluginState.js +8 -0
  659. package/modules/preview/components/Preview.js +269 -0
  660. package/modules/preview/context/PreviewContext.js +10 -0
  661. package/modules/record-field/components/NumberField.d.ts +18 -0
  662. package/modules/record-field/components/NumberField.js +265 -0
  663. package/modules/record-field/components/TextField.d.ts +17 -0
  664. package/modules/record-field/components/TextField.js +265 -0
  665. package/modules/record-field/index.d.ts +3 -0
  666. package/modules/record-field/index.js +269 -0
  667. package/modules/record-field/meta-inputs/components/EmailVerificationInput.js +363 -0
  668. package/modules/record-field/meta-inputs/components/PhoneInput.js +265 -0
  669. package/modules/record-field/meta-inputs/components/PhoneVerificationInput.js +341 -0
  670. package/modules/record-field/meta-inputs/components/TextFieldInput.js +284 -0
  671. package/modules/record-table/components/CheckboxColumn.js +11 -0
  672. package/modules/record-table/components/MoreColumn.d.ts +3 -0
  673. package/modules/record-table/components/MoreColumn.js +265 -0
  674. package/modules/record-table/components/RecordTableArrowEffect.js +265 -0
  675. package/modules/record-table/components/RecordTableCell.js +265 -0
  676. package/modules/record-table/components/RecordTableCellInline.d.ts +14 -0
  677. package/modules/record-table/components/RecordTableCellInline.js +267 -0
  678. package/modules/record-table/components/RecordTableColumnSelector.js +265 -0
  679. package/modules/record-table/components/RecordTableContainer.js +10 -0
  680. package/modules/record-table/components/RecordTableCursor.d.ts +20 -0
  681. package/modules/record-table/components/RecordTableCursor.js +269 -0
  682. package/modules/record-table/components/RecordTableDnDProvider.js +8 -0
  683. package/modules/record-table/components/RecordTableHead.js +267 -0
  684. package/modules/record-table/components/RecordTableHeader.js +265 -0
  685. package/modules/record-table/components/RecordTableHotkeyCell.js +265 -0
  686. package/modules/record-table/components/RecordTableInlineHead.js +8 -0
  687. package/modules/record-table/components/RecordTableProvider.d.ts +13 -0
  688. package/modules/record-table/components/RecordTableProvider.js +15 -0
  689. package/modules/record-table/components/RecordTableRoot.js +265 -0
  690. package/modules/record-table/components/RecordTableRow.js +265 -0
  691. package/modules/record-table/components/RecordTableRowList.d.ts +5 -0
  692. package/modules/record-table/components/RecordTableRowList.js +265 -0
  693. package/modules/record-table/components/RecordTableRowSkeleton.js +265 -0
  694. package/modules/record-table/components/RecordTableScroll.js +265 -0
  695. package/modules/record-table/components/RecordTableTree.d.ts +23 -0
  696. package/modules/record-table/components/RecordTableTree.js +265 -0
  697. package/modules/record-table/contexts/RecordTableCursorContext.d.ts +2 -0
  698. package/modules/record-table/contexts/RecordTableCursorContext.js +8 -0
  699. package/modules/record-table/contexts/RecordTableHotkeyContext.js +267 -0
  700. package/modules/record-table/contexts/RecordTableTreeContext.d.ts +2 -0
  701. package/modules/record-table/contexts/RecordTableTreeContext.js +8 -0
  702. package/modules/record-table/hooks/usePopoverOnEnter.js +291 -0
  703. package/modules/record-table/hooks/useRecordTableCursor.js +9 -0
  704. package/modules/record-table/hooks/useRecordTableCursorContext.d.ts +1 -0
  705. package/modules/record-table/hooks/useRecordTableCursorContext.js +9 -0
  706. package/modules/record-table/hooks/useRecordTableTree.d.ts +9 -0
  707. package/modules/record-table/hooks/useRecordTableTree.js +12 -0
  708. package/modules/record-table/hooks/useTablePreferences.js +7 -0
  709. package/modules/record-table/index.d.ts +71 -0
  710. package/modules/record-table/index.js +293 -0
  711. package/modules/record-table/states/EditModePositionComponentState.js +9 -0
  712. package/modules/record-table/states/RecordTableCursorState.js +6 -0
  713. package/modules/record-table/states/RecordTableTreeState.js +6 -0
  714. package/modules/record-table/types/RecordTableCursorTypes.js +8 -0
  715. package/modules/record-table/types/RecordTableScope.js +8 -0
  716. package/modules/record-table/types/RecordTableTreeTypes.js +0 -0
  717. package/modules/record-table/types/recordTableTypes.js +0 -0
  718. package/modules/record-table/utils/columnUtils.js +10 -0
  719. package/modules/record-table/utils/cursorUtils.d.ts +25 -0
  720. package/modules/record-table/utils/cursorUtils.js +9 -0
  721. package/modules/report/components/report-page-container.js +267 -0
  722. package/modules/report/components/report-table.js +9 -0
  723. package/modules/report/index.d.ts +2 -0
  724. package/modules/report/index.js +270 -0
  725. package/modules/report/states/reportSettingsState.js +6 -0
  726. package/modules/select-operation/components/SelectOperation.js +269 -0
  727. package/modules/select-operation/index.d.ts +1 -0
  728. package/modules/select-operation/index.js +269 -0
  729. package/modules/select-tree/components/SelectTree.d.ts +63 -0
  730. package/modules/select-tree/components/SelectTree.js +275 -0
  731. package/modules/select-tree/context/SelectTreeContext.d.ts +3 -0
  732. package/modules/select-tree/context/SelectTreeContext.js +10 -0
  733. package/modules/select-tree/hooks/useSelectTreeHide.js +10 -0
  734. package/modules/select-tree/index.d.ts +1 -0
  735. package/modules/select-tree/index.js +275 -0
  736. package/modules/select-tree/states/selectTreeStates.js +8 -0
  737. package/modules/select-tree/types/selectTreeTypes.js +0 -0
  738. package/modules/side-menu/components/SideMenu.js +275 -0
  739. package/modules/side-menu/context/SideMenuContext.js +10 -0
  740. package/package.json +410 -22
  741. package/state/index.d.ts +2 -0
  742. package/state/index.js +11 -0
  743. package/state/sidebarPanelState.js +6 -0
  744. package/state/themeState.d.ts +2 -0
  745. package/state/themeState.js +6 -0
  746. package/styles.css +2 -0
  747. package/types/CountryCode.js +1 -0
  748. package/types/CurrencyCode.js +6 -0
  749. package/types/Displays.d.ts +5 -0
  750. package/types/Displays.js +1 -0
  751. package/types/Gql.js +8 -0
  752. package/types/Key.js +6 -0
  753. package/types/Relations.js +1 -0
  754. package/types/SexCode.js +6 -0
  755. package/types/Theme.js +1 -0
  756. package/types/UIConfig.js +1 -0
  757. package/types/Utils.js +1 -0
  758. package/types/ValidationStatus.js +6 -0
  759. package/types/index.d.ts +11 -0
  760. package/types/index.js +31 -0
  761. package/utils/IsUndefinedOrNull.js +6 -0
  762. package/utils/colors.js +8 -0
  763. package/utils/config/index.js +19 -0
  764. package/utils/config/readProcessEnvironment.d.ts +1 -0
  765. package/utils/config/readProcessEnvironment.js +6 -0
  766. package/utils/cookie-storage.js +6 -0
  767. package/utils/core.js +33 -0
  768. package/utils/fixOrder.js +6 -0
  769. package/utils/format/formatAmount.js +6 -0
  770. package/utils/format/formatPhoneNumber.js +6 -0
  771. package/utils/format/index.d.ts +2 -0
  772. package/utils/format/index.js +11 -0
  773. package/utils/getPluginAssetsUrl.js +6 -0
  774. package/utils/highlightMatch.js +8 -0
  775. package/utils/index.d.ts +18 -0
  776. package/utils/index.js +119 -0
  777. package/utils/isAnObject.js +6 -0
  778. package/utils/isDeeplyEqual.js +6 -0
  779. package/utils/isDefined.js +6 -0
  780. package/utils/isEnabled.js +7 -0
  781. package/utils/localization/detectTimeZone.js +6 -0
  782. package/utils/localization/formatDateISOStringToRelativeDate.js +8 -0
  783. package/utils/localization/formatTimeZoneLabel.js +6 -0
  784. package/utils/localization/index.d.ts +3 -0
  785. package/utils/localization/index.js +17 -0
  786. package/utils/logDebug.js +6 -0
  787. package/utils/regex/index.d.ts +1 -0
  788. package/utils/regex/index.js +7 -0
  789. package/utils/regex/passwordRegex.js +6 -0
  790. package/utils/searchProvider.d.ts +9 -0
  791. package/utils/searchProvider.js +13 -0
  792. package/utils/string-array.js +6 -0
  793. package/utils/stripHtml.js +8 -0
  794. package/utils/urlParser.js +10 -0
  795. package/utils/videoEmbed.js +8 -0
  796. package/LICENSE.md +0 -672
  797. package/dist/components/choicebox-group.d.ts +0 -16
  798. package/dist/components/collapsible.d.ts +0 -10
  799. package/dist/components/color-picker.d.ts +0 -34
  800. package/dist/components/combobox.d.ts +0 -99
  801. package/dist/components/command.d.ts +0 -205
  802. package/dist/components/date-picker.d.ts +0 -30
  803. package/dist/components/drag-handle.d.ts +0 -3
  804. package/dist/components/index.d.ts +0 -59
  805. package/dist/components/multiselect.d.ts +0 -72
  806. package/dist/components/sidebar/context.d.ts +0 -26
  807. package/dist/components/sidebar/menu.d.ts +0 -22
  808. package/dist/components/sidebar/panel.d.ts +0 -6
  809. package/dist/components/sidebar/trigger.d.ts +0 -2
  810. package/dist/components/sidebar.d.ts +0 -78
  811. package/dist/components/upload-new.d.ts +0 -16
  812. package/dist/components/upload.d.ts +0 -23
  813. package/dist/constants/CountryPhoneCodes.d.ts +0 -2
  814. package/dist/constants/CurrencyCodes.d.ts +0 -6
  815. package/dist/constants/SexCodes.d.ts +0 -4
  816. package/dist/constants/index.d.ts +0 -5
  817. package/dist/hooks/index.d.ts +0 -9
  818. package/dist/hooks/use-confirm.d.ts +0 -29
  819. package/dist/hooks/use-toast.d.ts +0 -21
  820. package/dist/index.d.ts +0 -8
  821. package/dist/lib/index.d.ts +0 -1
  822. package/dist/modules/attachments/attachments.d.ts +0 -38
  823. package/dist/modules/attachments/context.d.ts +0 -12
  824. package/dist/modules/attachments/index.d.ts +0 -5
  825. package/dist/modules/blocks/components/BlockEditor.d.ts +0 -42
  826. package/dist/modules/blocks/components/Editor.d.ts +0 -2
  827. package/dist/modules/blocks/components/index.d.ts +0 -6
  828. package/dist/modules/blocks/constant/blockEditorSchema.d.ts +0 -712
  829. package/dist/modules/blocks/constant/index.d.ts +0 -1
  830. package/dist/modules/blocks/hooks/useBlockEditor.d.ts +0 -7
  831. package/dist/modules/blocks/index.d.ts +0 -5
  832. package/dist/modules/blocks/types/TextEditor.d.ts +0 -28
  833. package/dist/modules/blocks/types/index.d.ts +0 -1
  834. package/dist/modules/blocks/utils/index.d.ts +0 -3
  835. package/dist/modules/board/components/Board.d.ts +0 -22
  836. package/dist/modules/board/contexts/BoardContext.d.ts +0 -2
  837. package/dist/modules/board/index.d.ts +0 -2
  838. package/dist/modules/chat-viz/components/ChatVizArea.d.ts +0 -9
  839. package/dist/modules/chat-viz/components/ChatVizBar.d.ts +0 -9
  840. package/dist/modules/chat-viz/components/ChatVizLine.d.ts +0 -9
  841. package/dist/modules/chat-viz/components/ChatVizPie.d.ts +0 -13
  842. package/dist/modules/chat-viz/components/ChatVizSendButton.d.ts +0 -17
  843. package/dist/modules/chat-viz/hooks/useChatVizSend.d.ts +0 -11
  844. package/dist/modules/chat-viz/index.d.ts +0 -12
  845. package/dist/modules/chat-viz/utils/chartVizTransforms.d.ts +0 -19
  846. package/dist/modules/chat-viz/utils/chatVizSanitize.d.ts +0 -25
  847. package/dist/modules/display/components/CurrencyDisplay.d.ts +0 -15
  848. package/dist/modules/display/components/EmailDisplay.d.ts +0 -2
  849. package/dist/modules/display/components/PhoneDisplay.d.ts +0 -2
  850. package/dist/modules/display/components/SexDisplay.d.ts +0 -4
  851. package/dist/modules/display/index.d.ts +0 -6
  852. package/dist/modules/display/utils/formatEmails.d.ts +0 -3
  853. package/dist/modules/display/utils/formatPhones.d.ts +0 -3
  854. package/dist/modules/email-editor/components/EmailEditor.d.ts +0 -3
  855. package/dist/modules/email-editor/components/EmailPreviewDeviceToggle.d.ts +0 -7
  856. package/dist/modules/email-editor/components/EmailPreviewFrame.d.ts +0 -8
  857. package/dist/modules/email-editor/components/index.d.ts +0 -3
  858. package/dist/modules/email-editor/index.d.ts +0 -6
  859. package/dist/modules/filter/components/Filter.d.ts +0 -909
  860. package/dist/modules/filter/context/FilterContext.d.ts +0 -2
  861. package/dist/modules/filter/date-filter/index.d.ts +0 -2
  862. package/dist/modules/filter/hooks/useFilterContext.d.ts +0 -1
  863. package/dist/modules/filter/hooks/useFilterQueryState.d.ts +0 -4
  864. package/dist/modules/filter/index.d.ts +0 -5
  865. package/dist/modules/focus-sheet/components/focus-sheet.d.ts +0 -51
  866. package/dist/modules/hotkey/components/PopoverScoped.d.ts +0 -10
  867. package/dist/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.d.ts +0 -2
  868. package/dist/modules/hotkey/constants/initialHotkeysScope.d.ts +0 -2
  869. package/dist/modules/hotkey/hooks/usePreviousHotkeyScope.d.ts +0 -5
  870. package/dist/modules/hotkey/hooks/useSetHotkeyScope.d.ts +0 -2
  871. package/dist/modules/hotkey/index.d.ts +0 -13
  872. package/dist/modules/hotkey/states/internal/currentHotkeyScopeState.d.ts +0 -4
  873. package/dist/modules/hotkey/states/internal/previousHotkeyScopeState.d.ts +0 -2
  874. package/dist/modules/hotkey/states/setHotkeyScopeState.d.ts +0 -5
  875. package/dist/modules/hotkey/types/HotkeyScope.d.ts +0 -5
  876. package/dist/modules/icons/components/IconPicker.d.ts +0 -6
  877. package/dist/modules/icons/index.d.ts +0 -3
  878. package/dist/modules/index.d.ts +0 -22
  879. package/dist/modules/inputs/components/CurrencyField.d.ts +0 -442
  880. package/dist/modules/inputs/components/EmailField.d.ts +0 -30
  881. package/dist/modules/inputs/components/LanguageSelect.d.ts +0 -7
  882. package/dist/modules/inputs/components/PhoneField.d.ts +0 -56
  883. package/dist/modules/inputs/components/SexField.d.ts +0 -5
  884. package/dist/modules/inputs/components/TimezoneSelect.d.ts +0 -7
  885. package/dist/modules/inputs/contexts/EmailFieldsContext.d.ts +0 -8
  886. package/dist/modules/inputs/contexts/PhoneFieldsContext.d.ts +0 -6
  887. package/dist/modules/inputs/hooks/useEmailFields.d.ts +0 -6
  888. package/dist/modules/inputs/hooks/usePhoneFields.d.ts +0 -5
  889. package/dist/modules/inputs/index.d.ts +0 -8
  890. package/dist/modules/inputs/states/emailFieldStates.d.ts +0 -8
  891. package/dist/modules/inputs/states/phoneFieldStates.d.ts +0 -8
  892. package/dist/modules/layout/index.d.ts +0 -2
  893. package/dist/modules/motion/index.d.ts +0 -2
  894. package/dist/modules/navigation-menu/index.d.ts +0 -3
  895. package/dist/modules/record-field/components/NumberField.d.ts +0 -18
  896. package/dist/modules/record-field/components/TextField.d.ts +0 -17
  897. package/dist/modules/record-field/index.d.ts +0 -3
  898. package/dist/modules/record-table/components/MoreColumn.d.ts +0 -3
  899. package/dist/modules/record-table/components/RecordTableCellInline.d.ts +0 -14
  900. package/dist/modules/record-table/components/RecordTableCursor.d.ts +0 -20
  901. package/dist/modules/record-table/components/RecordTableProvider.d.ts +0 -13
  902. package/dist/modules/record-table/components/RecordTableRowList.d.ts +0 -5
  903. package/dist/modules/record-table/components/RecordTableTree.d.ts +0 -23
  904. package/dist/modules/record-table/contexts/RecordTableCursorContext.d.ts +0 -2
  905. package/dist/modules/record-table/contexts/RecordTableTreeContext.d.ts +0 -2
  906. package/dist/modules/record-table/hooks/useRecordTableCursorContext.d.ts +0 -1
  907. package/dist/modules/record-table/hooks/useRecordTableTree.d.ts +0 -9
  908. package/dist/modules/record-table/index.d.ts +0 -71
  909. package/dist/modules/record-table/utils/cursorUtils.d.ts +0 -25
  910. package/dist/modules/report/index.d.ts +0 -2
  911. package/dist/modules/select-operation/index.d.ts +0 -1
  912. package/dist/modules/select-tree/components/SelectTree.d.ts +0 -63
  913. package/dist/modules/select-tree/context/SelectTreeContext.d.ts +0 -3
  914. package/dist/modules/select-tree/index.d.ts +0 -1
  915. package/dist/state/index.d.ts +0 -2
  916. package/dist/state/themeState.d.ts +0 -2
  917. package/dist/types/Displays.d.ts +0 -5
  918. package/dist/types/index.d.ts +0 -11
  919. package/dist/utils/format/index.d.ts +0 -2
  920. package/dist/utils/index.d.ts +0 -18
  921. package/dist/utils/localization/index.d.ts +0 -3
  922. package/dist/utils/regex/index.d.ts +0 -1
  923. package/dist/utils/searchProvider.d.ts +0 -9
  924. package/src/components/__stories__/accordion.stories.tsx +0 -69
  925. package/src/components/__stories__/alert-dialog.stories.tsx +0 -39
  926. package/src/components/__stories__/avatar.stories.tsx +0 -32
  927. package/src/components/__stories__/badge.stories.tsx +0 -46
  928. package/src/components/__stories__/breadcrumb.stories.tsx +0 -50
  929. package/src/components/__stories__/button.stories.tsx +0 -22
  930. package/src/components/__stories__/calendar.stories.tsx +0 -47
  931. package/src/components/__stories__/calendarTwoMonths.stories.tsx +0 -47
  932. package/src/components/__stories__/card.stories.tsx +0 -60
  933. package/src/components/__stories__/checkbox.stories.tsx +0 -74
  934. package/src/components/__stories__/collapsible.stories.tsx +0 -78
  935. package/src/components/__stories__/combobox.stories.tsx +0 -158
  936. package/src/components/__stories__/command.stories.tsx +0 -78
  937. package/src/components/__stories__/commandbar.stories.tsx +0 -42
  938. package/src/components/__stories__/date-picker.stories.tsx +0 -83
  939. package/src/components/__stories__/dialog.stories.tsx +0 -53
  940. package/src/components/__stories__/dropdown-menu.stories.tsx +0 -140
  941. package/src/components/__stories__/form.stories.tsx +0 -166
  942. package/src/components/__stories__/hover-card.stories.tsx +0 -50
  943. package/src/components/__stories__/input.stories.tsx +0 -75
  944. package/src/components/__stories__/inputnumber.stories.tsx +0 -35
  945. package/src/components/__stories__/kbd.stories.tsx +0 -91
  946. package/src/components/__stories__/label.stories.tsx +0 -82
  947. package/src/components/__stories__/multiselect.stories.tsx +0 -178
  948. package/src/components/__stories__/popover.stories.tsx +0 -106
  949. package/src/components/__stories__/radio-group.stories.tsx +0 -97
  950. package/src/components/__stories__/resizeble.stories.tsx +0 -76
  951. package/src/components/__stories__/scroll-area.stories.tsx +0 -36
  952. package/src/components/__stories__/select.stories.tsx +0 -107
  953. package/src/components/__stories__/separator.stories.tsx +0 -53
  954. package/src/components/__stories__/sheet.stories.tsx +0 -62
  955. package/src/components/__stories__/sidebar.stories.tsx +0 -104
  956. package/src/components/__stories__/skeleton.stories.tsx +0 -27
  957. package/src/components/__stories__/slider.stories.tsx +0 -71
  958. package/src/components/__stories__/spinner.stories.tsx +0 -39
  959. package/src/components/__stories__/switch.stories.tsx +0 -63
  960. package/src/components/__stories__/table.stories.tsx +0 -140
  961. package/src/components/__stories__/tabs.stories.tsx +0 -76
  962. package/src/components/__stories__/text-overflow.stories.tsx +0 -32
  963. package/src/components/__stories__/textarea.stories.tsx +0 -75
  964. package/src/components/__stories__/toaster.stories.tsx +0 -53
  965. package/src/components/__stories__/toggle-group.stories.tsx +0 -50
  966. package/src/components/__stories__/toggle.stories.tsx +0 -38
  967. package/src/components/__stories__/tooltip.stories.tsx +0 -90
  968. package/src/components/accordion.tsx +0 -64
  969. package/src/components/alert-dialog.tsx +0 -139
  970. package/src/components/alert.tsx +0 -71
  971. package/src/components/avatar.tsx +0 -75
  972. package/src/components/background-gradient-animation.tsx +0 -192
  973. package/src/components/badge.tsx +0 -61
  974. package/src/components/breadcrumb.tsx +0 -118
  975. package/src/components/button.tsx +0 -58
  976. package/src/components/calendar.tsx +0 -178
  977. package/src/components/card.tsx +0 -85
  978. package/src/components/charts.tsx +0 -363
  979. package/src/components/checkbox.tsx +0 -50
  980. package/src/components/choicebox-group.tsx +0 -103
  981. package/src/components/collapsible.tsx +0 -46
  982. package/src/components/color-picker.tsx +0 -195
  983. package/src/components/combobox.tsx +0 -279
  984. package/src/components/command-bar.tsx +0 -108
  985. package/src/components/command.tsx +0 -261
  986. package/src/components/context-menu.tsx +0 -183
  987. package/src/components/copy-text.tsx +0 -52
  988. package/src/components/date-picker.tsx +0 -462
  989. package/src/components/dialog.tsx +0 -169
  990. package/src/components/drag-handle.tsx +0 -30
  991. package/src/components/dropdown-menu.tsx +0 -186
  992. package/src/components/empty.tsx +0 -102
  993. package/src/components/erxes-logo-icon.tsx +0 -16
  994. package/src/components/form.tsx +0 -174
  995. package/src/components/hover-card.tsx +0 -27
  996. package/src/components/index.ts +0 -59
  997. package/src/components/info-card.tsx +0 -70
  998. package/src/components/input.tsx +0 -95
  999. package/src/components/kbd.tsx +0 -30
  1000. package/src/components/label.tsx +0 -35
  1001. package/src/components/multiselect.tsx +0 -647
  1002. package/src/components/popover.tsx +0 -57
  1003. package/src/components/radio-group.tsx +0 -54
  1004. package/src/components/resizable.tsx +0 -47
  1005. package/src/components/scroll-area.tsx +0 -81
  1006. package/src/components/search-order-select.tsx +0 -30
  1007. package/src/components/select.tsx +0 -156
  1008. package/src/components/separator.tsx +0 -50
  1009. package/src/components/sheet.tsx +0 -184
  1010. package/src/components/sidebar/constants.ts +0 -19
  1011. package/src/components/sidebar/context.tsx +0 -206
  1012. package/src/components/sidebar/group.tsx +0 -79
  1013. package/src/components/sidebar/hooks.ts +0 -21
  1014. package/src/components/sidebar/layout.tsx +0 -91
  1015. package/src/components/sidebar/menu-sub.tsx +0 -66
  1016. package/src/components/sidebar/menu.tsx +0 -216
  1017. package/src/components/sidebar/panel.tsx +0 -175
  1018. package/src/components/sidebar/root.tsx +0 -169
  1019. package/src/components/sidebar/trigger.tsx +0 -39
  1020. package/src/components/sidebar-tree-indicator.tsx +0 -125
  1021. package/src/components/sidebar.tsx +0 -66
  1022. package/src/components/skeleton.tsx +0 -29
  1023. package/src/components/slider.tsx +0 -30
  1024. package/src/components/spinner.tsx +0 -170
  1025. package/src/components/stepper.tsx +0 -304
  1026. package/src/components/string-array.tsx +0 -72
  1027. package/src/components/switch.tsx +0 -50
  1028. package/src/components/table.tsx +0 -116
  1029. package/src/components/tabs.tsx +0 -93
  1030. package/src/components/text-overflow.tsx +0 -128
  1031. package/src/components/textarea.tsx +0 -21
  1032. package/src/components/time-picker.tsx +0 -89
  1033. package/src/components/toaster.tsx +0 -42
  1034. package/src/components/toasts.tsx +0 -140
  1035. package/src/components/toggle-group.tsx +0 -68
  1036. package/src/components/toggle.tsx +0 -39
  1037. package/src/components/tooltip.tsx +0 -36
  1038. package/src/components/upload-new.tsx +0 -301
  1039. package/src/components/upload.tsx +0 -335
  1040. package/src/constants/AttachmentGql.ts +0 -9
  1041. package/src/constants/CountryPhoneCodes.ts +0 -360
  1042. package/src/constants/CurrencyCodes.ts +0 -214
  1043. package/src/constants/EmailValidationStatusInfos.tsx +0 -46
  1044. package/src/constants/GraphqlConstants.ts +0 -23
  1045. package/src/constants/IanaTimeZones.ts +0 -600
  1046. package/src/constants/IntlLanguages.ts +0 -74
  1047. package/src/constants/PhoneValidationStatusInfos.tsx +0 -57
  1048. package/src/constants/SexCodes.ts +0 -16
  1049. package/src/constants/index.ts +0 -5
  1050. package/src/hooks/index.ts +0 -9
  1051. package/src/hooks/use-confirm.tsx +0 -212
  1052. package/src/hooks/use-cursor-pagination.tsx +0 -42
  1053. package/src/hooks/use-is-matching-location.tsx +0 -17
  1054. package/src/hooks/use-media-query.tsx +0 -26
  1055. package/src/hooks/use-mobile.tsx +0 -7
  1056. package/src/hooks/use-query-state.tsx +0 -193
  1057. package/src/hooks/use-toast.tsx +0 -188
  1058. package/src/hooks/use-upload-chunked.ts +0 -173
  1059. package/src/hooks/use-upload-new.ts +0 -242
  1060. package/src/hooks/use-upload.tsx +0 -223
  1061. package/src/index.ts +0 -8
  1062. package/src/lib/index.ts +0 -1
  1063. package/src/lib/utils.ts +0 -74
  1064. package/src/modules/__stories__/IconPicker.stories.tsx +0 -19
  1065. package/src/modules/__stories__/RelativeDateDisplay.stories.tsx +0 -97
  1066. package/src/modules/__stories__/blocks.stories.tsx +0 -132
  1067. package/src/modules/__stories__/currencyDisplay.stories.tsx +0 -78
  1068. package/src/modules/__stories__/icons.stories.tsx +0 -29
  1069. package/src/modules/__stories__/preview.stories.tsx +0 -55
  1070. package/src/modules/attachments/attachments.tsx +0 -743
  1071. package/src/modules/attachments/context.tsx +0 -116
  1072. package/src/modules/attachments/index.ts +0 -11
  1073. package/src/modules/attachments/types.ts +0 -72
  1074. package/src/modules/blocks/components/BarcodeAttribute.tsx +0 -142
  1075. package/src/modules/blocks/components/BlockEditor.tsx +0 -248
  1076. package/src/modules/blocks/components/BlockEditorReadOnly.tsx +0 -67
  1077. package/src/modules/blocks/components/CustomFileBlock.tsx +0 -85
  1078. package/src/modules/blocks/components/CustomImageBlock.tsx +0 -366
  1079. package/src/modules/blocks/components/CustomVideoBlock.tsx +0 -118
  1080. package/src/modules/blocks/components/DocumentPlaceholderBlock.tsx +0 -114
  1081. package/src/modules/blocks/components/Editor.tsx +0 -156
  1082. package/src/modules/blocks/components/FontFamilyButton.tsx +0 -121
  1083. package/src/modules/blocks/components/GalleryBlock.tsx +0 -380
  1084. package/src/modules/blocks/components/ImageStyleButton.tsx +0 -100
  1085. package/src/modules/blocks/components/SlashMenu.tsx +0 -76
  1086. package/src/modules/blocks/components/SuggestionMenu.tsx +0 -57
  1087. package/src/modules/blocks/components/TableHandleWithRemove.tsx +0 -238
  1088. package/src/modules/blocks/components/Toolbar.tsx +0 -67
  1089. package/src/modules/blocks/components/index.ts +0 -6
  1090. package/src/modules/blocks/constant/blockEditorSchema.ts +0 -56
  1091. package/src/modules/blocks/constant/index.ts +0 -1
  1092. package/src/modules/blocks/hooks/useBlockEditor.tsx +0 -65
  1093. package/src/modules/blocks/index.ts +0 -5
  1094. package/src/modules/blocks/types/TextEditor.ts +0 -37
  1095. package/src/modules/blocks/types/index.ts +0 -1
  1096. package/src/modules/blocks/utils/getBlockAttachments.ts +0 -68
  1097. package/src/modules/blocks/utils/getMentionedUserIds.ts +0 -22
  1098. package/src/modules/blocks/utils/index.ts +0 -3
  1099. package/src/modules/blocks/utils/parseBlocks.ts +0 -33
  1100. package/src/modules/board/components/Board.tsx +0 -301
  1101. package/src/modules/board/contexts/BoardContext.ts +0 -8
  1102. package/src/modules/board/index.ts +0 -2
  1103. package/src/modules/board/states/boardStates.ts +0 -8
  1104. package/src/modules/board/types/boardTypes.ts +0 -61
  1105. package/src/modules/chat-viz/components/ChatVizArea.tsx +0 -69
  1106. package/src/modules/chat-viz/components/ChatVizBar.tsx +0 -62
  1107. package/src/modules/chat-viz/components/ChatVizCartesianDecorations.tsx +0 -42
  1108. package/src/modules/chat-viz/components/ChatVizLine.tsx +0 -68
  1109. package/src/modules/chat-viz/components/ChatVizMessage.tsx +0 -210
  1110. package/src/modules/chat-viz/components/ChatVizPie.tsx +0 -104
  1111. package/src/modules/chat-viz/components/ChatVizSendButton.tsx +0 -49
  1112. package/src/modules/chat-viz/hooks/useChatVizSend.ts +0 -22
  1113. package/src/modules/chat-viz/hooks/useIsClient.ts +0 -16
  1114. package/src/modules/chat-viz/index.ts +0 -31
  1115. package/src/modules/chat-viz/types/chatVizTypes.ts +0 -59
  1116. package/src/modules/chat-viz/utils/chartVizPresentation.ts +0 -34
  1117. package/src/modules/chat-viz/utils/chartVizTransforms.ts +0 -177
  1118. package/src/modules/chat-viz/utils/chatVizInteractive.test.ts +0 -152
  1119. package/src/modules/chat-viz/utils/chatVizSanitize.ts +0 -276
  1120. package/src/modules/display/components/CurrencyDisplay.tsx +0 -78
  1121. package/src/modules/display/components/EllipsisDisplay.tsx +0 -18
  1122. package/src/modules/display/components/EmailDisplay.tsx +0 -36
  1123. package/src/modules/display/components/PhoneDisplay.tsx +0 -37
  1124. package/src/modules/display/components/RelativeDateDisplay.tsx +0 -53
  1125. package/src/modules/display/components/SexDisplay.tsx +0 -10
  1126. package/src/modules/display/index.ts +0 -6
  1127. package/src/modules/display/utils/formatEmails.ts +0 -29
  1128. package/src/modules/display/utils/formatPhones.ts +0 -29
  1129. package/src/modules/email-editor/components/EmailEditor.tsx +0 -165
  1130. package/src/modules/email-editor/components/EmailPreviewDeviceToggle.tsx +0 -33
  1131. package/src/modules/email-editor/components/EmailPreviewFrame.tsx +0 -35
  1132. package/src/modules/email-editor/components/EmailTableBackground.tsx +0 -134
  1133. package/src/modules/email-editor/components/EmailTableToolbar.tsx +0 -82
  1134. package/src/modules/email-editor/components/index.ts +0 -3
  1135. package/src/modules/email-editor/constant/index.ts +0 -63
  1136. package/src/modules/email-editor/extensions/documentPlaceholder.ts +0 -114
  1137. package/src/modules/email-editor/extensions/documentPlaceholderBlock.tsx +0 -36
  1138. package/src/modules/email-editor/extensions/table.ts +0 -352
  1139. package/src/modules/email-editor/extensions/tableBlock.tsx +0 -13
  1140. package/src/modules/email-editor/hooks/useEmailHtml.ts +0 -36
  1141. package/src/modules/email-editor/index.ts +0 -6
  1142. package/src/modules/email-editor/maily-subpaths.d.ts +0 -90
  1143. package/src/modules/email-editor/types/index.ts +0 -37
  1144. package/src/modules/email-editor/utils/expandCustomNodes.ts +0 -190
  1145. package/src/modules/email-editor/utils/renderEmailHtml.ts +0 -52
  1146. package/src/modules/filter/components/Filter.tsx +0 -568
  1147. package/src/modules/filter/context/FilterContext.tsx +0 -6
  1148. package/src/modules/filter/date-filter/components/DateFilterCommand.tsx +0 -59
  1149. package/src/modules/filter/date-filter/components/DialogDateView.tsx +0 -270
  1150. package/src/modules/filter/date-filter/constants/dateTypes.tsx +0 -25
  1151. package/src/modules/filter/date-filter/index.ts +0 -2
  1152. package/src/modules/filter/date-filter/utils/dateTokens.ts +0 -28
  1153. package/src/modules/filter/date-filter/utils/getActiveTab.ts +0 -17
  1154. package/src/modules/filter/date-filter/utils/getDisplayValue.ts +0 -49
  1155. package/src/modules/filter/date-filter/utils/getYears.ts +0 -13
  1156. package/src/modules/filter/date-filter/utils/parseDateRangeFromString.ts +0 -101
  1157. package/src/modules/filter/hooks/useFilterContext.tsx +0 -6
  1158. package/src/modules/filter/hooks/useFilterQueryState.tsx +0 -24
  1159. package/src/modules/filter/index.ts +0 -5
  1160. package/src/modules/filter/states/filterStates.ts +0 -14
  1161. package/src/modules/filter/types/filter.ts +0 -29
  1162. package/src/modules/focus-sheet/components/focus-sheet.tsx +0 -338
  1163. package/src/modules/hotkey/components/PopoverScoped.tsx +0 -77
  1164. package/src/modules/hotkey/constants/defaultHotkeysScopeCustomScopes.ts +0 -6
  1165. package/src/modules/hotkey/constants/initialHotkeysScope.ts +0 -12
  1166. package/src/modules/hotkey/hooks/usePreviousHotkeyScope.tsx +0 -59
  1167. package/src/modules/hotkey/hooks/useScopedHotKeysCallback.tsx +0 -83
  1168. package/src/modules/hotkey/hooks/useScopedHotkeys.tsx +0 -61
  1169. package/src/modules/hotkey/hooks/useSequenceHotkeys.tsx +0 -79
  1170. package/src/modules/hotkey/hooks/useSetHotkeyScope.tsx +0 -27
  1171. package/src/modules/hotkey/index.ts +0 -18
  1172. package/src/modules/hotkey/states/internal/currentHotkeyScopeState.ts +0 -6
  1173. package/src/modules/hotkey/states/internal/internalHotkeysEnabledScopeState.ts +0 -3
  1174. package/src/modules/hotkey/states/internal/pendingHotkeyState.ts +0 -4
  1175. package/src/modules/hotkey/states/internal/previousHotkeyScopeState.ts +0 -4
  1176. package/src/modules/hotkey/states/setHotkeyScopeState.ts +0 -92
  1177. package/src/modules/hotkey/types/AppHotkeyScope.ts +0 -7
  1178. package/src/modules/hotkey/types/CustomHotkeyScope.ts +0 -6
  1179. package/src/modules/hotkey/types/HotkeyScope.ts +0 -6
  1180. package/src/modules/hotkey/utils/isNonTextWritingKey.ts +0 -57
  1181. package/src/modules/icons/components/IconComponent.tsx +0 -13
  1182. package/src/modules/icons/components/IconPicker.tsx +0 -55
  1183. package/src/modules/icons/components/TablerIcons.ts +0 -589
  1184. package/src/modules/icons/hooks/useIcons.ts +0 -23
  1185. package/src/modules/icons/index.ts +0 -3
  1186. package/src/modules/icons/providers/IconsProvider.tsx +0 -20
  1187. package/src/modules/icons/states/iconsState.ts +0 -4
  1188. package/src/modules/index.ts +0 -22
  1189. package/src/modules/inputs/components/CurrencyField.tsx +0 -217
  1190. package/src/modules/inputs/components/EmailField.tsx +0 -425
  1191. package/src/modules/inputs/components/FullNameField.tsx +0 -121
  1192. package/src/modules/inputs/components/LanguageSelect.tsx +0 -46
  1193. package/src/modules/inputs/components/NumberField.tsx +0 -29
  1194. package/src/modules/inputs/components/PhoneField.tsx +0 -491
  1195. package/src/modules/inputs/components/SexField.tsx +0 -31
  1196. package/src/modules/inputs/components/TimezoneSelect.tsx +0 -48
  1197. package/src/modules/inputs/contexts/EmailFieldsContext.tsx +0 -15
  1198. package/src/modules/inputs/contexts/FullNameFieldContext.tsx +0 -9
  1199. package/src/modules/inputs/contexts/PhoneFieldsContext.tsx +0 -12
  1200. package/src/modules/inputs/hooks/useEmailFields.tsx +0 -4
  1201. package/src/modules/inputs/hooks/useFullNameField.tsx +0 -12
  1202. package/src/modules/inputs/hooks/usePhoneFields.tsx +0 -4
  1203. package/src/modules/inputs/index.ts +0 -8
  1204. package/src/modules/inputs/states/emailFieldStates.ts +0 -15
  1205. package/src/modules/inputs/states/phoneFieldStates.ts +0 -15
  1206. package/src/modules/inputs/validations/emailValidation.ts +0 -7
  1207. package/src/modules/inputs/validations/phoneValidation.ts +0 -12
  1208. package/src/modules/layout/components/AppLayout.tsx +0 -430
  1209. package/src/modules/layout/components/Page.tsx +0 -37
  1210. package/src/modules/layout/index.ts +0 -2
  1211. package/src/modules/motion/components/TextEffect.tsx +0 -288
  1212. package/src/modules/motion/components/TextLoop.tsx +0 -71
  1213. package/src/modules/motion/index.ts +0 -2
  1214. package/src/modules/navigation-menu/components/NavigationMenu.tsx +0 -187
  1215. package/src/modules/navigation-menu/components/NavigationMenuItemControls.tsx +0 -18
  1216. package/src/modules/navigation-menu/index.ts +0 -3
  1217. package/src/modules/navigation-menu/states/activePluginState.tsx +0 -10
  1218. package/src/modules/preview/components/Preview.tsx +0 -108
  1219. package/src/modules/preview/context/PreviewContext.tsx +0 -16
  1220. package/src/modules/record-field/components/NumberField.tsx +0 -124
  1221. package/src/modules/record-field/components/TextField.tsx +0 -103
  1222. package/src/modules/record-field/index.ts +0 -3
  1223. package/src/modules/record-field/meta-inputs/components/EmailVerificationInput.tsx +0 -95
  1224. package/src/modules/record-field/meta-inputs/components/PhoneInput.tsx +0 -217
  1225. package/src/modules/record-field/meta-inputs/components/PhoneVerificationInput.tsx +0 -80
  1226. package/src/modules/record-field/meta-inputs/components/TextFieldInput.tsx +0 -17
  1227. package/src/modules/record-table/components/CheckboxColumn.tsx +0 -107
  1228. package/src/modules/record-table/components/MoreColumn.tsx +0 -26
  1229. package/src/modules/record-table/components/RecordTableArrowEffect.tsx +0 -67
  1230. package/src/modules/record-table/components/RecordTableCell.tsx +0 -43
  1231. package/src/modules/record-table/components/RecordTableCellInline.tsx +0 -104
  1232. package/src/modules/record-table/components/RecordTableColumnSelector.tsx +0 -204
  1233. package/src/modules/record-table/components/RecordTableContainer.tsx +0 -70
  1234. package/src/modules/record-table/components/RecordTableCursor.tsx +0 -143
  1235. package/src/modules/record-table/components/RecordTableDnDProvider.tsx +0 -63
  1236. package/src/modules/record-table/components/RecordTableHead.tsx +0 -143
  1237. package/src/modules/record-table/components/RecordTableHeader.tsx +0 -91
  1238. package/src/modules/record-table/components/RecordTableHotkeyCell.tsx +0 -97
  1239. package/src/modules/record-table/components/RecordTableInlineHead.tsx +0 -13
  1240. package/src/modules/record-table/components/RecordTableProvider.tsx +0 -201
  1241. package/src/modules/record-table/components/RecordTableRoot.tsx +0 -17
  1242. package/src/modules/record-table/components/RecordTableRow.tsx +0 -42
  1243. package/src/modules/record-table/components/RecordTableRowList.tsx +0 -47
  1244. package/src/modules/record-table/components/RecordTableRowSkeleton.tsx +0 -66
  1245. package/src/modules/record-table/components/RecordTableScroll.tsx +0 -23
  1246. package/src/modules/record-table/components/RecordTableTree.tsx +0 -135
  1247. package/src/modules/record-table/contexts/RecordTableCursorContext.tsx +0 -5
  1248. package/src/modules/record-table/contexts/RecordTableHotkeyContext.tsx +0 -56
  1249. package/src/modules/record-table/contexts/RecordTableTreeContext.tsx +0 -6
  1250. package/src/modules/record-table/hooks/usePopoverOnEnter.tsx +0 -38
  1251. package/src/modules/record-table/hooks/useRecordTableCursor.tsx +0 -22
  1252. package/src/modules/record-table/hooks/useRecordTableCursorContext.tsx +0 -12
  1253. package/src/modules/record-table/hooks/useRecordTableTree.tsx +0 -44
  1254. package/src/modules/record-table/hooks/useTablePreferences.ts +0 -45
  1255. package/src/modules/record-table/index.ts +0 -52
  1256. package/src/modules/record-table/states/EditModePositionComponentState.ts +0 -7
  1257. package/src/modules/record-table/states/RecordTableCursorState.ts +0 -6
  1258. package/src/modules/record-table/states/RecordTableTreeState.ts +0 -6
  1259. package/src/modules/record-table/types/RecordTableCursorTypes.ts +0 -26
  1260. package/src/modules/record-table/types/RecordTableScope.ts +0 -3
  1261. package/src/modules/record-table/types/RecordTableTreeTypes.ts +0 -6
  1262. package/src/modules/record-table/types/recordTableTypes.ts +0 -8
  1263. package/src/modules/record-table/utils/columnUtils.ts +0 -10
  1264. package/src/modules/record-table/utils/cursorUtils.ts +0 -66
  1265. package/src/modules/report/components/report-page-container.tsx +0 -179
  1266. package/src/modules/report/components/report-table.tsx +0 -123
  1267. package/src/modules/report/index.ts +0 -2
  1268. package/src/modules/report/states/reportSettingsState.ts +0 -9
  1269. package/src/modules/select-operation/components/SelectOperation.tsx +0 -167
  1270. package/src/modules/select-operation/index.ts +0 -1
  1271. package/src/modules/select-tree/components/SelectTree.tsx +0 -182
  1272. package/src/modules/select-tree/context/SelectTreeContext.tsx +0 -15
  1273. package/src/modules/select-tree/hooks/useSelectTreeHide.tsx +0 -29
  1274. package/src/modules/select-tree/index.ts +0 -1
  1275. package/src/modules/select-tree/states/selectTreeStates.tsx +0 -5
  1276. package/src/modules/select-tree/types/selectTreeTypes.ts +0 -14
  1277. package/src/modules/side-menu/components/SideMenu.tsx +0 -143
  1278. package/src/modules/side-menu/context/SideMenuContext.tsx +0 -20
  1279. package/src/state/index.ts +0 -2
  1280. package/src/state/sidebarPanelState.ts +0 -8
  1281. package/src/state/themeState.ts +0 -4
  1282. package/src/types/CountryCode.ts +0 -6
  1283. package/src/types/CurrencyCode.ts +0 -161
  1284. package/src/types/Displays.ts +0 -6
  1285. package/src/types/Gql.ts +0 -34
  1286. package/src/types/Key.ts +0 -1312
  1287. package/src/types/Relations.ts +0 -14
  1288. package/src/types/SexCode.ts +0 -6
  1289. package/src/types/Theme.ts +0 -2
  1290. package/src/types/UIConfig.ts +0 -210
  1291. package/src/types/Utils.ts +0 -12
  1292. package/src/types/ValidationStatus.ts +0 -4
  1293. package/src/types/index.ts +0 -11
  1294. package/src/utils/IsUndefinedOrNull.ts +0 -4
  1295. package/src/utils/colors.ts +0 -68
  1296. package/src/utils/config/index.ts +0 -83
  1297. package/src/utils/cookie-storage.ts +0 -29
  1298. package/src/utils/core.ts +0 -82
  1299. package/src/utils/fixOrder.ts +0 -16
  1300. package/src/utils/format/formatAmount.ts +0 -17
  1301. package/src/utils/format/formatPhoneNumber.ts +0 -11
  1302. package/src/utils/format/index.ts +0 -2
  1303. package/src/utils/getPluginAssetsUrl.ts +0 -16
  1304. package/src/utils/highlightMatch.tsx +0 -35
  1305. package/src/utils/index.ts +0 -18
  1306. package/src/utils/isAnObject.ts +0 -3
  1307. package/src/utils/isDeeplyEqual.ts +0 -4
  1308. package/src/utils/isDefined.ts +0 -4
  1309. package/src/utils/isEnabled.ts +0 -7
  1310. package/src/utils/localization/detectTimeZone.ts +0 -6
  1311. package/src/utils/localization/formatDateISOStringToRelativeDate.ts +0 -39
  1312. package/src/utils/localization/formatTimeZoneLabel.ts +0 -29
  1313. package/src/utils/localization/index.ts +0 -3
  1314. package/src/utils/logDebug.ts +0 -4
  1315. package/src/utils/regex/index.ts +0 -1
  1316. package/src/utils/regex/passwordRegex.ts +0 -1
  1317. package/src/utils/searchProvider.ts +0 -77
  1318. package/src/utils/string-array.ts +0 -24
  1319. package/src/utils/stripHtml.ts +0 -15
  1320. package/src/utils/urlParser.ts +0 -66
  1321. package/src/utils/videoEmbed.ts +0 -56
  1322. /package/{src/components/__stories__/time-picker.stories.tsx → chunks/chunk-2OQPZ7Y3.js} +0 -0
  1323. /package/{dist/components → components}/accordion.d.ts +0 -0
  1324. /package/{dist/components → components}/alert-dialog.d.ts +0 -0
  1325. /package/{dist/components → components}/alert.d.ts +0 -0
  1326. /package/{dist/components → components}/avatar.d.ts +0 -0
  1327. /package/{dist/components → components}/background-gradient-animation.d.ts +0 -0
  1328. /package/{dist/components → components}/badge.d.ts +0 -0
  1329. /package/{dist/components → components}/breadcrumb.d.ts +0 -0
  1330. /package/{dist/components → components}/button.d.ts +0 -0
  1331. /package/{dist/components → components}/calendar.d.ts +0 -0
  1332. /package/{dist/components → components}/card.d.ts +0 -0
  1333. /package/{dist/components → components}/charts.d.ts +0 -0
  1334. /package/{dist/components → components}/checkbox.d.ts +0 -0
  1335. /package/{dist/components → components}/command-bar.d.ts +0 -0
  1336. /package/{dist/components → components}/context-menu.d.ts +0 -0
  1337. /package/{dist/components → components}/copy-text.d.ts +0 -0
  1338. /package/{dist/components → components}/dialog.d.ts +0 -0
  1339. /package/{dist/components → components}/dropdown-menu.d.ts +0 -0
  1340. /package/{dist/components → components}/empty.d.ts +0 -0
  1341. /package/{dist/components → components}/erxes-logo-icon.d.ts +0 -0
  1342. /package/{dist/components → components}/form.d.ts +0 -0
  1343. /package/{dist/components → components}/hover-card.d.ts +0 -0
  1344. /package/{dist/components → components}/info-card.d.ts +0 -0
  1345. /package/{dist/components → components}/input.d.ts +0 -0
  1346. /package/{dist/components → components}/kbd.d.ts +0 -0
  1347. /package/{dist/components → components}/label.d.ts +0 -0
  1348. /package/{dist/components → components}/popover.d.ts +0 -0
  1349. /package/{dist/components → components}/radio-group.d.ts +0 -0
  1350. /package/{dist/components → components}/resizable.d.ts +0 -0
  1351. /package/{dist/components → components}/scroll-area.d.ts +0 -0
  1352. /package/{dist/components → components}/search-order-select.d.ts +0 -0
  1353. /package/{dist/components → components}/select.d.ts +0 -0
  1354. /package/{dist/components → components}/separator.d.ts +0 -0
  1355. /package/{dist/components → components}/sheet.d.ts +0 -0
  1356. /package/{dist/components → components}/sidebar/constants.d.ts +0 -0
  1357. /package/{dist/components → components}/sidebar/group.d.ts +0 -0
  1358. /package/{dist/components → components}/sidebar/hooks.d.ts +0 -0
  1359. /package/{dist/components → components}/sidebar/layout.d.ts +0 -0
  1360. /package/{dist/components → components}/sidebar/menu-sub.d.ts +0 -0
  1361. /package/{dist/components → components}/sidebar/root.d.ts +0 -0
  1362. /package/{dist/components → components}/sidebar-tree-indicator.d.ts +0 -0
  1363. /package/{dist/components → components}/skeleton.d.ts +0 -0
  1364. /package/{dist/components → components}/slider.d.ts +0 -0
  1365. /package/{dist/components → components}/spinner.d.ts +0 -0
  1366. /package/{dist/components → components}/stepper.d.ts +0 -0
  1367. /package/{dist/components → components}/string-array.d.ts +0 -0
  1368. /package/{dist/components → components}/switch.d.ts +0 -0
  1369. /package/{dist/components → components}/table.d.ts +0 -0
  1370. /package/{dist/components → components}/tabs.d.ts +0 -0
  1371. /package/{dist/components → components}/text-overflow.d.ts +0 -0
  1372. /package/{dist/components → components}/textarea.d.ts +0 -0
  1373. /package/{dist/components → components}/time-picker.d.ts +0 -0
  1374. /package/{dist/components → components}/toaster.d.ts +0 -0
  1375. /package/{dist/components → components}/toasts.d.ts +0 -0
  1376. /package/{dist/components → components}/toggle-group.d.ts +0 -0
  1377. /package/{dist/components → components}/toggle.d.ts +0 -0
  1378. /package/{dist/components → components}/tooltip.d.ts +0 -0
  1379. /package/{dist/constants → constants}/AttachmentGql.d.ts +0 -0
  1380. /package/{dist/constants → constants}/EmailValidationStatusInfos.d.ts +0 -0
  1381. /package/{dist/constants → constants}/GraphqlConstants.d.ts +0 -0
  1382. /package/{dist/constants → constants}/IanaTimeZones.d.ts +0 -0
  1383. /package/{dist/constants → constants}/IntlLanguages.d.ts +0 -0
  1384. /package/{dist/constants → constants}/PhoneValidationStatusInfos.d.ts +0 -0
  1385. /package/{dist/hooks → hooks}/use-cursor-pagination.d.ts +0 -0
  1386. /package/{dist/hooks → hooks}/use-is-matching-location.d.ts +0 -0
  1387. /package/{dist/hooks → hooks}/use-media-query.d.ts +0 -0
  1388. /package/{dist/hooks → hooks}/use-mobile.d.ts +0 -0
  1389. /package/{dist/hooks → hooks}/use-query-state.d.ts +0 -0
  1390. /package/{dist/hooks → hooks}/use-upload-chunked.d.ts +0 -0
  1391. /package/{dist/hooks → hooks}/use-upload-new.d.ts +0 -0
  1392. /package/{dist/hooks → hooks}/use-upload.d.ts +0 -0
  1393. /package/{dist/lib → lib}/utils.d.ts +0 -0
  1394. /package/{dist/modules → modules}/attachments/types.d.ts +0 -0
  1395. /package/{dist/modules → modules}/blocks/components/BarcodeAttribute.d.ts +0 -0
  1396. /package/{dist/modules → modules}/blocks/components/BlockEditorReadOnly.d.ts +0 -0
  1397. /package/{dist/modules → modules}/blocks/components/CustomFileBlock.d.ts +0 -0
  1398. /package/{dist/modules → modules}/blocks/components/CustomImageBlock.d.ts +0 -0
  1399. /package/{dist/modules → modules}/blocks/components/CustomVideoBlock.d.ts +0 -0
  1400. /package/{dist/modules → modules}/blocks/components/DocumentPlaceholderBlock.d.ts +0 -0
  1401. /package/{dist/modules → modules}/blocks/components/FontFamilyButton.d.ts +0 -0
  1402. /package/{dist/modules → modules}/blocks/components/GalleryBlock.d.ts +0 -0
  1403. /package/{dist/modules → modules}/blocks/components/ImageStyleButton.d.ts +0 -0
  1404. /package/{dist/modules → modules}/blocks/components/SlashMenu.d.ts +0 -0
  1405. /package/{dist/modules → modules}/blocks/components/SuggestionMenu.d.ts +0 -0
  1406. /package/{dist/modules → modules}/blocks/components/TableHandleWithRemove.d.ts +0 -0
  1407. /package/{dist/modules → modules}/blocks/components/Toolbar.d.ts +0 -0
  1408. /package/{dist/modules → modules}/blocks/utils/getBlockAttachments.d.ts +0 -0
  1409. /package/{dist/modules → modules}/blocks/utils/getMentionedUserIds.d.ts +0 -0
  1410. /package/{dist/modules → modules}/blocks/utils/parseBlocks.d.ts +0 -0
  1411. /package/{dist/modules → modules}/board/states/boardStates.d.ts +0 -0
  1412. /package/{dist/modules → modules}/board/types/boardTypes.d.ts +0 -0
  1413. /package/{dist/modules → modules}/chat-viz/components/ChatVizCartesianDecorations.d.ts +0 -0
  1414. /package/{dist/modules → modules}/chat-viz/components/ChatVizMessage.d.ts +0 -0
  1415. /package/{dist/modules → modules}/chat-viz/hooks/useIsClient.d.ts +0 -0
  1416. /package/{dist/modules → modules}/chat-viz/types/chatVizTypes.d.ts +0 -0
  1417. /package/{dist/modules → modules}/chat-viz/utils/chartVizPresentation.d.ts +0 -0
  1418. /package/{dist/modules → modules}/display/components/EllipsisDisplay.d.ts +0 -0
  1419. /package/{dist/modules → modules}/display/components/RelativeDateDisplay.d.ts +0 -0
  1420. /package/{dist/modules → modules}/email-editor/components/EmailTableBackground.d.ts +0 -0
  1421. /package/{dist/modules → modules}/email-editor/components/EmailTableToolbar.d.ts +0 -0
  1422. /package/{dist/modules → modules}/email-editor/constant/index.d.ts +0 -0
  1423. /package/{dist/modules → modules}/email-editor/extensions/documentPlaceholder.d.ts +0 -0
  1424. /package/{dist/modules → modules}/email-editor/extensions/documentPlaceholderBlock.d.ts +0 -0
  1425. /package/{dist/modules → modules}/email-editor/extensions/table.d.ts +0 -0
  1426. /package/{dist/modules → modules}/email-editor/extensions/tableBlock.d.ts +0 -0
  1427. /package/{dist/modules → modules}/email-editor/hooks/useEmailHtml.d.ts +0 -0
  1428. /package/{dist/modules → modules}/email-editor/types/index.d.ts +0 -0
  1429. /package/{dist/modules → modules}/email-editor/utils/expandCustomNodes.d.ts +0 -0
  1430. /package/{dist/modules → modules}/email-editor/utils/renderEmailHtml.d.ts +0 -0
  1431. /package/{dist/modules → modules}/filter/date-filter/components/DateFilterCommand.d.ts +0 -0
  1432. /package/{dist/modules → modules}/filter/date-filter/components/DialogDateView.d.ts +0 -0
  1433. /package/{dist/modules → modules}/filter/date-filter/constants/dateTypes.d.ts +0 -0
  1434. /package/{dist/modules → modules}/filter/date-filter/utils/dateTokens.d.ts +0 -0
  1435. /package/{dist/modules → modules}/filter/date-filter/utils/getActiveTab.d.ts +0 -0
  1436. /package/{dist/modules → modules}/filter/date-filter/utils/getDisplayValue.d.ts +0 -0
  1437. /package/{dist/modules → modules}/filter/date-filter/utils/getYears.d.ts +0 -0
  1438. /package/{dist/modules → modules}/filter/date-filter/utils/parseDateRangeFromString.d.ts +0 -0
  1439. /package/{dist/modules → modules}/filter/states/filterStates.d.ts +0 -0
  1440. /package/{dist/modules → modules}/filter/types/filter.d.ts +0 -0
  1441. /package/{dist/modules → modules}/hotkey/hooks/useScopedHotKeysCallback.d.ts +0 -0
  1442. /package/{dist/modules → modules}/hotkey/hooks/useScopedHotkeys.d.ts +0 -0
  1443. /package/{dist/modules → modules}/hotkey/hooks/useSequenceHotkeys.d.ts +0 -0
  1444. /package/{dist/modules → modules}/hotkey/states/internal/internalHotkeysEnabledScopeState.d.ts +0 -0
  1445. /package/{dist/modules → modules}/hotkey/states/internal/pendingHotkeyState.d.ts +0 -0
  1446. /package/{dist/modules → modules}/hotkey/types/AppHotkeyScope.d.ts +0 -0
  1447. /package/{dist/modules → modules}/hotkey/types/CustomHotkeyScope.d.ts +0 -0
  1448. /package/{dist/modules → modules}/hotkey/utils/isNonTextWritingKey.d.ts +0 -0
  1449. /package/{dist/modules → modules}/icons/components/IconComponent.d.ts +0 -0
  1450. /package/{dist/modules → modules}/icons/components/TablerIcons.d.ts +0 -0
  1451. /package/{dist/modules → modules}/icons/hooks/useIcons.d.ts +0 -0
  1452. /package/{dist/modules → modules}/icons/providers/IconsProvider.d.ts +0 -0
  1453. /package/{dist/modules → modules}/icons/states/iconsState.d.ts +0 -0
  1454. /package/{dist/modules → modules}/inputs/components/FullNameField.d.ts +0 -0
  1455. /package/{dist/modules → modules}/inputs/components/NumberField.d.ts +0 -0
  1456. /package/{dist/modules → modules}/inputs/contexts/FullNameFieldContext.d.ts +0 -0
  1457. /package/{dist/modules → modules}/inputs/hooks/useFullNameField.d.ts +0 -0
  1458. /package/{dist/modules → modules}/inputs/validations/emailValidation.d.ts +0 -0
  1459. /package/{dist/modules → modules}/inputs/validations/phoneValidation.d.ts +0 -0
  1460. /package/{dist/modules → modules}/layout/components/AppLayout.d.ts +0 -0
  1461. /package/{dist/modules → modules}/layout/components/Page.d.ts +0 -0
  1462. /package/{dist/modules → modules}/motion/components/TextEffect.d.ts +0 -0
  1463. /package/{dist/modules → modules}/motion/components/TextLoop.d.ts +0 -0
  1464. /package/{dist/modules → modules}/navigation-menu/components/NavigationMenu.d.ts +0 -0
  1465. /package/{dist/modules → modules}/navigation-menu/components/NavigationMenuItemControls.d.ts +0 -0
  1466. /package/{dist/modules → modules}/navigation-menu/states/activePluginState.d.ts +0 -0
  1467. /package/{dist/modules → modules}/preview/components/Preview.d.ts +0 -0
  1468. /package/{dist/modules → modules}/preview/context/PreviewContext.d.ts +0 -0
  1469. /package/{dist/modules → modules}/record-field/meta-inputs/components/EmailVerificationInput.d.ts +0 -0
  1470. /package/{dist/modules → modules}/record-field/meta-inputs/components/PhoneInput.d.ts +0 -0
  1471. /package/{dist/modules → modules}/record-field/meta-inputs/components/PhoneVerificationInput.d.ts +0 -0
  1472. /package/{dist/modules → modules}/record-field/meta-inputs/components/TextFieldInput.d.ts +0 -0
  1473. /package/{dist/modules → modules}/record-table/components/CheckboxColumn.d.ts +0 -0
  1474. /package/{dist/modules → modules}/record-table/components/RecordTableArrowEffect.d.ts +0 -0
  1475. /package/{dist/modules → modules}/record-table/components/RecordTableCell.d.ts +0 -0
  1476. /package/{dist/modules → modules}/record-table/components/RecordTableColumnSelector.d.ts +0 -0
  1477. /package/{dist/modules → modules}/record-table/components/RecordTableContainer.d.ts +0 -0
  1478. /package/{dist/modules → modules}/record-table/components/RecordTableDnDProvider.d.ts +0 -0
  1479. /package/{dist/modules → modules}/record-table/components/RecordTableHead.d.ts +0 -0
  1480. /package/{dist/modules → modules}/record-table/components/RecordTableHeader.d.ts +0 -0
  1481. /package/{dist/modules → modules}/record-table/components/RecordTableHotkeyCell.d.ts +0 -0
  1482. /package/{dist/modules → modules}/record-table/components/RecordTableInlineHead.d.ts +0 -0
  1483. /package/{dist/modules → modules}/record-table/components/RecordTableRoot.d.ts +0 -0
  1484. /package/{dist/modules → modules}/record-table/components/RecordTableRow.d.ts +0 -0
  1485. /package/{dist/modules → modules}/record-table/components/RecordTableRowSkeleton.d.ts +0 -0
  1486. /package/{dist/modules → modules}/record-table/components/RecordTableScroll.d.ts +0 -0
  1487. /package/{dist/modules → modules}/record-table/contexts/RecordTableHotkeyContext.d.ts +0 -0
  1488. /package/{dist/modules → modules}/record-table/hooks/usePopoverOnEnter.d.ts +0 -0
  1489. /package/{dist/modules → modules}/record-table/hooks/useRecordTableCursor.d.ts +0 -0
  1490. /package/{dist/modules → modules}/record-table/hooks/useTablePreferences.d.ts +0 -0
  1491. /package/{dist/modules → modules}/record-table/states/EditModePositionComponentState.d.ts +0 -0
  1492. /package/{dist/modules → modules}/record-table/states/RecordTableCursorState.d.ts +0 -0
  1493. /package/{dist/modules → modules}/record-table/states/RecordTableTreeState.d.ts +0 -0
  1494. /package/{dist/modules → modules}/record-table/types/RecordTableCursorTypes.d.ts +0 -0
  1495. /package/{dist/modules → modules}/record-table/types/RecordTableScope.d.ts +0 -0
  1496. /package/{dist/modules → modules}/record-table/types/RecordTableTreeTypes.d.ts +0 -0
  1497. /package/{dist/modules → modules}/record-table/types/recordTableTypes.d.ts +0 -0
  1498. /package/{dist/modules → modules}/record-table/utils/columnUtils.d.ts +0 -0
  1499. /package/{dist/modules → modules}/report/components/report-page-container.d.ts +0 -0
  1500. /package/{dist/modules → modules}/report/components/report-table.d.ts +0 -0
  1501. /package/{dist/modules → modules}/report/states/reportSettingsState.d.ts +0 -0
  1502. /package/{dist/modules → modules}/select-operation/components/SelectOperation.d.ts +0 -0
  1503. /package/{dist/modules → modules}/select-tree/hooks/useSelectTreeHide.d.ts +0 -0
  1504. /package/{dist/modules → modules}/select-tree/states/selectTreeStates.d.ts +0 -0
  1505. /package/{dist/modules → modules}/select-tree/types/selectTreeTypes.d.ts +0 -0
  1506. /package/{dist/modules → modules}/side-menu/components/SideMenu.d.ts +0 -0
  1507. /package/{dist/modules → modules}/side-menu/context/SideMenuContext.d.ts +0 -0
  1508. /package/{dist/state → state}/sidebarPanelState.d.ts +0 -0
  1509. /package/{src/theme.css → theme.css} +0 -0
  1510. /package/{dist/types → types}/CountryCode.d.ts +0 -0
  1511. /package/{dist/types → types}/CurrencyCode.d.ts +0 -0
  1512. /package/{dist/types → types}/Gql.d.ts +0 -0
  1513. /package/{dist/types → types}/Key.d.ts +0 -0
  1514. /package/{dist/types → types}/Relations.d.ts +0 -0
  1515. /package/{dist/types → types}/SexCode.d.ts +0 -0
  1516. /package/{dist/types → types}/Theme.d.ts +0 -0
  1517. /package/{dist/types → types}/UIConfig.d.ts +0 -0
  1518. /package/{dist/types → types}/Utils.d.ts +0 -0
  1519. /package/{dist/types → types}/ValidationStatus.d.ts +0 -0
  1520. /package/{dist/utils → utils}/IsUndefinedOrNull.d.ts +0 -0
  1521. /package/{dist/utils → utils}/colors.d.ts +0 -0
  1522. /package/{dist/utils → utils}/config/index.d.ts +0 -0
  1523. /package/{dist/utils → utils}/cookie-storage.d.ts +0 -0
  1524. /package/{dist/utils → utils}/core.d.ts +0 -0
  1525. /package/{dist/utils → utils}/fixOrder.d.ts +0 -0
  1526. /package/{dist/utils → utils}/format/formatAmount.d.ts +0 -0
  1527. /package/{dist/utils → utils}/format/formatPhoneNumber.d.ts +0 -0
  1528. /package/{dist/utils → utils}/getPluginAssetsUrl.d.ts +0 -0
  1529. /package/{dist/utils → utils}/highlightMatch.d.ts +0 -0
  1530. /package/{dist/utils → utils}/isAnObject.d.ts +0 -0
  1531. /package/{dist/utils → utils}/isDeeplyEqual.d.ts +0 -0
  1532. /package/{dist/utils → utils}/isDefined.d.ts +0 -0
  1533. /package/{dist/utils → utils}/isEnabled.d.ts +0 -0
  1534. /package/{dist/utils → utils}/localization/detectTimeZone.d.ts +0 -0
  1535. /package/{dist/utils → utils}/localization/formatDateISOStringToRelativeDate.d.ts +0 -0
  1536. /package/{dist/utils → utils}/localization/formatTimeZoneLabel.d.ts +0 -0
  1537. /package/{dist/utils → utils}/logDebug.d.ts +0 -0
  1538. /package/{dist/utils → utils}/regex/passwordRegex.d.ts +0 -0
  1539. /package/{dist/utils → utils}/string-array.d.ts +0 -0
  1540. /package/{dist/utils → utils}/stripHtml.d.ts +0 -0
  1541. /package/{dist/utils → utils}/urlParser.d.ts +0 -0
  1542. /package/{dist/utils → utils}/videoEmbed.d.ts +0 -0
@@ -1,107 +0,0 @@
1
- import { Checkbox } from 'erxes-ui/components/checkbox';
2
- import { ColumnDef, Row, Table } from '@tanstack/react-table';
3
-
4
- const dragSelection = {
5
- owner: null as Table<unknown> | null,
6
- selecting: false,
7
- suppressClickOn: null as { table: Table<unknown>; rowId: string } | null,
8
- };
9
-
10
- const DRAG_END_EVENTS = ['pointerup', 'pointercancel', 'blur'] as const;
11
-
12
- const endDragSelection = () => {
13
- dragSelection.owner = null;
14
- document.body.style.userSelect = '';
15
- DRAG_END_EVENTS.forEach((event) =>
16
- window.removeEventListener(event, endDragSelection),
17
- );
18
- };
19
-
20
- const startDragSelection = <TData,>(
21
- selecting: boolean,
22
- row: Row<TData>,
23
- table: Table<TData>,
24
- ) => {
25
- const owner = table as unknown as Table<unknown>;
26
- dragSelection.owner = owner;
27
- dragSelection.selecting = selecting;
28
- dragSelection.suppressClickOn = { table: owner, rowId: row.id };
29
- document.body.style.userSelect = 'none';
30
- DRAG_END_EVENTS.forEach((event) =>
31
- window.addEventListener(event, endDragSelection),
32
- );
33
- };
34
-
35
- const CheckboxCell = <TData,>({
36
- row,
37
- table,
38
- }: {
39
- row: Row<TData>;
40
- table: Table<TData>;
41
- }) => (
42
- <div
43
- className="flex items-center justify-center size-full"
44
- onPointerDown={(event) => {
45
- dragSelection.suppressClickOn = null;
46
-
47
- if (!event.shiftKey || event.button !== 0) {
48
- return;
49
- }
50
-
51
- event.preventDefault();
52
- const selecting = !row.getIsSelected();
53
- startDragSelection(selecting, row, table);
54
- row.toggleSelected(selecting);
55
- }}
56
- onPointerEnter={(event) => {
57
- if (
58
- dragSelection.owner !== (table as unknown as Table<unknown>) ||
59
- event.buttons !== 1
60
- ) {
61
- return;
62
- }
63
-
64
- row.toggleSelected(dragSelection.selecting);
65
- }}
66
- onClickCapture={(event) => {
67
- const suppressed = dragSelection.suppressClickOn;
68
-
69
- if (
70
- suppressed?.table !== (table as unknown as Table<unknown>) ||
71
- suppressed.rowId !== row.id
72
- ) {
73
- return;
74
- }
75
-
76
- dragSelection.suppressClickOn = null;
77
- event.preventDefault();
78
- event.stopPropagation();
79
- }}
80
- >
81
- <Checkbox
82
- checked={row.getIsSelected()}
83
- onCheckedChange={(value) => row.toggleSelected(!!value)}
84
- />
85
- </div>
86
- );
87
-
88
- export const checkboxColumn: ColumnDef<any> = {
89
- accessorKey: 'checkbox',
90
- id: 'checkbox',
91
- header: ({ table }) => {
92
- const isAllSelected = table.getIsAllPageRowsSelected();
93
- const isSomeSelected = table.getIsSomePageRowsSelected();
94
-
95
- return (
96
- <div className="flex items-center justify-center h-8">
97
- <Checkbox
98
- checked={isAllSelected || (isSomeSelected && 'indeterminate')}
99
- onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}
100
- aria-label="Select all rows"
101
- />
102
- </div>
103
- );
104
- },
105
- size: 33,
106
- cell: ({ row, table }) => <CheckboxCell row={row} table={table} />,
107
- };
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
-
3
- import { IconDots } from '@tabler/icons-react';
4
-
5
- import { Button, ButtonProps } from 'erxes-ui/components';
6
- import { cn } from 'erxes-ui/lib/utils';
7
-
8
- export const RecordTableMoreButton = React.forwardRef<
9
- HTMLButtonElement,
10
- ButtonProps
11
- >(({ className, children, ...props }, ref) => {
12
- return (
13
- <Button
14
- ref={ref}
15
- variant="ghost"
16
- size="icon"
17
- className={cn(
18
- 'h-8 w-full focus-visible:outline-transparent rounded-none focus-visible:shadow-subtle',
19
- className,
20
- )}
21
- {...props}
22
- >
23
- {children || <IconDots className="text-muted-foreground" />}
24
- </Button>
25
- );
26
- });
@@ -1,67 +0,0 @@
1
- import { Key } from 'erxes-ui/types/Key';
2
- import { useRecordTableHotkey } from '../contexts/RecordTableHotkeyContext';
3
- import { useScopedHotkeys } from 'erxes-ui/modules/hotkey';
4
-
5
- export const RecordTableArrowEffect = ({
6
- columnLength,
7
- rowLength,
8
- }: {
9
- columnLength: number;
10
- rowLength: number;
11
- }) => {
12
- const { activeCell, setActiveCell, scope } = useRecordTableHotkey();
13
- useScopedHotkeys(
14
- Key.ArrowRight,
15
- () => {
16
- if (
17
- activeCell[0] === rowLength - 1 &&
18
- activeCell[1] === columnLength - 1
19
- ) {
20
- return;
21
- }
22
- if (activeCell[1] === columnLength - 1 && activeCell[0] < rowLength) {
23
- return setActiveCell([activeCell[0] + 1, 0]);
24
- }
25
- setActiveCell([activeCell[0], activeCell[1] + 1]);
26
- },
27
- scope,
28
- );
29
-
30
- useScopedHotkeys(
31
- Key.ArrowLeft,
32
- () => {
33
- if (activeCell[0] === 0 && activeCell[1] === 0) {
34
- return;
35
- }
36
- if (activeCell[1] === 0 && activeCell[0] > 0) {
37
- return setActiveCell([activeCell[0] - 1, columnLength - 1]);
38
- }
39
- setActiveCell([activeCell[0], activeCell[1] - 1]);
40
- },
41
- scope,
42
- );
43
-
44
- useScopedHotkeys(
45
- Key.ArrowUp,
46
- () => {
47
- if (activeCell[0] === 0) {
48
- return;
49
- }
50
- setActiveCell([activeCell[0] - 1, activeCell[1]]);
51
- },
52
- scope,
53
- );
54
-
55
- useScopedHotkeys(
56
- Key.ArrowDown,
57
- () => {
58
- if (activeCell[0] === rowLength - 1) {
59
- return;
60
- }
61
- setActiveCell([activeCell[0] + 1, activeCell[1]]);
62
- },
63
- scope,
64
- );
65
-
66
- return null;
67
- };
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Cell } from '@tanstack/react-table';
4
-
5
- import { Table } from 'erxes-ui/components';
6
- import { cn } from 'erxes-ui/lib/utils';
7
-
8
- export const RecordTableCell = React.forwardRef<
9
- HTMLTableCellElement,
10
- React.HTMLAttributes<HTMLTableCellElement> & { cell: Cell<any, unknown> }
11
- >(({ children, className, cell, style, ...props }, ref) => {
12
- const { column } = cell;
13
-
14
- return (
15
- <Table.Cell
16
- ref={ref}
17
- className={cn(
18
- 'p-0 transition-colors isolate',
19
- column.getIsPinned() && [
20
- 'sticky z-1',
21
- 'bg-background',
22
- 'group-hover/table-row:bg-background',
23
- 'group-data-[state=selected]/table-row:bg-background',
24
- 'before:content-[""] before:absolute before:inset-0 before:-z-1',
25
- 'group-hover/table-row:before:bg-muted',
26
- 'group-data-[state=selected]/table-row:before:bg-primary/10',
27
- ],
28
- className,
29
- )}
30
- style={{
31
- width: `var(--col-${column.id}-width)`,
32
- left:
33
- column.getIsPinned() === 'left'
34
- ? `${column.getStart('left')}px`
35
- : undefined,
36
- ...style,
37
- }}
38
- {...props}
39
- >
40
- {children}
41
- </Table.Cell>
42
- );
43
- });
@@ -1,104 +0,0 @@
1
- import { Badge, Button, Popover } from 'erxes-ui/components';
2
- import { cn } from 'erxes-ui/lib/utils';
3
- import React from 'react';
4
- import { Popover as PopoverPrimitive } from 'radix-ui';
5
- import { UseHotkeysOptionsWithoutBuggyOptions } from 'erxes-ui/modules/hotkey';
6
-
7
- export interface ReactTablePopoverProps
8
- extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
9
- scope?: string;
10
- closeOnEnter?: boolean;
11
- scopeOptions?: UseHotkeysOptionsWithoutBuggyOptions;
12
- }
13
-
14
- const RecordTableCellTrigger = React.forwardRef<
15
- React.ElementRef<typeof Button>,
16
- React.ComponentPropsWithoutRef<typeof Button>
17
- >(({ children, className, ...props }, ref) => {
18
- return (
19
- <Popover.Trigger asChild>
20
- <Button
21
- variant="ghost"
22
- className={cn(
23
- 'h-8 px-2 w-full justify-start text-left rounded-none focus-visible:relative focus-visible:z-10 focus-visible:outline-none focus-visible:shadow-subtle overflow-hidden',
24
- className,
25
- )}
26
- ref={ref}
27
- {...props}
28
- >
29
- {children}
30
- </Button>
31
- </Popover.Trigger>
32
- );
33
- });
34
-
35
- const RecordTableCellContent = React.forwardRef<
36
- React.ElementRef<typeof PopoverPrimitive.Content>,
37
- React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
38
- >(({ className, ...props }, ref) => {
39
- return (
40
- <Popover.Content
41
- align="start"
42
- sideOffset={-32}
43
- disableTransition
44
- className={cn(
45
- 'p-0 w-(--radix-popper-anchor-width) min-w-56 rounded',
46
- className,
47
- )}
48
- ref={ref}
49
- {...props}
50
- />
51
- );
52
- });
53
-
54
- RecordTableCellTrigger.displayName = 'RecordTableCellTrigger';
55
-
56
- const RecordTableCellDisplay = React.forwardRef<
57
- React.ElementRef<typeof Button>,
58
- React.ComponentPropsWithoutRef<typeof Button>
59
- >(({ className, children, ...props }, ref) => {
60
- return (
61
- <Button
62
- variant="ghost"
63
- className={cn(
64
- 'h-8 px-2 w-full justify-start text-left font-normal rounded-none overflow-hidden',
65
- className,
66
- )}
67
- ref={ref}
68
- asChild
69
- tabIndex={-1}
70
- {...props}
71
- >
72
- <div>{children}</div>
73
- </Button>
74
- );
75
- });
76
-
77
- RecordTableCellDisplay.displayName = 'RecordTableCellDisplay';
78
-
79
- export const RecordTableInlineAnchor = React.forwardRef<
80
- React.ElementRef<typeof Badge>,
81
- React.ComponentPropsWithoutRef<typeof Badge>
82
- >(({ className, onClick, children, ...props }, ref) => {
83
- return (
84
- <Badge
85
- ref={ref}
86
- onClick={(e) => {
87
- e.stopPropagation();
88
- onClick?.(e);
89
- }}
90
- variant="secondary"
91
- className={cn('min-w-32 group truncate', className)}
92
- {...props}
93
- >
94
- {children}
95
- </Badge>
96
- );
97
- });
98
- RecordTableInlineAnchor.displayName = 'RecordTableInlineAnchor';
99
-
100
- export const RecordTableInlineCell = Object.assign(RecordTableCellDisplay, {
101
- Trigger: RecordTableCellTrigger,
102
- Content: RecordTableCellContent,
103
- Anchor: RecordTableInlineAnchor,
104
- });
@@ -1,204 +0,0 @@
1
- import { isValidElement, type ReactNode } from 'react';
2
- import { DropdownMenu, Button, Checkbox, Label } from 'erxes-ui/components';
3
- import { useRecordTable } from './RecordTableProvider';
4
- import {
5
- DragEndEvent,
6
- DndContext,
7
- useSensors,
8
- useSensor,
9
- MouseSensor,
10
- TouchSensor,
11
- KeyboardSensor,
12
- } from '@dnd-kit/core';
13
- import {
14
- arrayMove,
15
- SortableContext,
16
- useSortable,
17
- verticalListSortingStrategy,
18
- } from '@dnd-kit/sortable';
19
- import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
20
- import { CSS } from '@dnd-kit/utilities';
21
- import {
22
- IconSettings,
23
- IconGripVertical,
24
- IconPin,
25
- IconPinFilled,
26
- } from '@tabler/icons-react';
27
- import { Column } from '@tanstack/react-table';
28
-
29
- const getColumnLabel = (column: Column<any, unknown>): string => {
30
- const { header } = column.columnDef;
31
- if (typeof header === 'string') return header;
32
- if (typeof header === 'function') {
33
- try {
34
- const headerNode = (header as () => ReactNode)();
35
-
36
- if (isValidElement<{ label?: string }>(headerNode)) {
37
- const inlineHeadLabel = headerNode.props?.label;
38
-
39
- if (typeof inlineHeadLabel === 'string') return inlineHeadLabel;
40
- }
41
- } catch {
42
- return column.id;
43
- }
44
- }
45
-
46
- return column.id;
47
- };
48
-
49
- const SortableColumnItem = ({
50
- column,
51
- isLastVisible,
52
- }: {
53
- column: Column<unknown, unknown>;
54
- isLastVisible: boolean;
55
- }) => {
56
- const isPinned = !!column.getIsPinned();
57
- const {
58
- attributes,
59
- listeners,
60
- setNodeRef,
61
- transform,
62
- transition,
63
- isDragging,
64
- } = useSortable({ id: column.id, disabled: isPinned });
65
-
66
- const style = {
67
- transform: CSS.Translate.toString(transform),
68
- transition,
69
- };
70
-
71
- return (
72
- <div
73
- ref={setNodeRef}
74
- style={style}
75
- className={`flex items-center gap-2 px-2 py-1.5 hover:bg-muted/50 rounded-sm ${
76
- isDragging && 'opacity-50 bg-muted'
77
- }`}
78
- >
79
- <div
80
- {...attributes}
81
- {...listeners}
82
- className={`text-muted-foreground flex-none flex items-center ${
83
- isPinned ? 'cursor-default opacity-30' : 'cursor-grab'
84
- }`}
85
- >
86
- <IconGripVertical size={14} />
87
- </div>
88
-
89
- <Checkbox
90
- id={`col-visibility-${column.id}`}
91
- checked={column.getIsVisible()}
92
- disabled={isLastVisible}
93
- title={
94
- isLastVisible ? 'At least one column must stay visible' : undefined
95
- }
96
- onCheckedChange={(checked) => column.toggleVisibility(!!checked)}
97
- />
98
-
99
- <Label
100
- htmlFor={`col-visibility-${column.id}`}
101
- className="cursor-pointer select-none font-normal truncate w-full"
102
- >
103
- {getColumnLabel(column)}
104
- </Label>
105
-
106
- <Button
107
- variant="ghost"
108
- size="icon"
109
- title={isPinned ? 'Unpin column' : 'Pin column to left'}
110
- aria-label={isPinned ? 'Unpin column' : 'Pin column to left'}
111
- className="h-5 w-5 flex-none text-muted-foreground hover:text-foreground"
112
- onClick={(e) => {
113
- e.preventDefault();
114
- column.pin(isPinned ? false : 'left');
115
- }}
116
- >
117
- {isPinned ? <IconPinFilled size={13} /> : <IconPin size={13} />}
118
- </Button>
119
- </div>
120
- );
121
- };
122
-
123
- export const RecordTableColumnSelector = ({
124
- children,
125
- align = 'start',
126
- }: {
127
- children?: React.ReactElement;
128
- align?: 'start' | 'center' | 'end';
129
- }) => {
130
- const { table, columnSelectorOpen, setColumnSelectorOpen } = useRecordTable();
131
-
132
- const columns = table
133
- .getAllLeafColumns()
134
- .filter(
135
- (col) =>
136
- col.id !== 'checkbox' && col.id !== 'select' && col.id !== 'more',
137
- );
138
-
139
- const sensors = useSensors(
140
- useSensor(MouseSensor, {
141
- activationConstraint: { delay: 100, tolerance: 5 },
142
- }),
143
- useSensor(TouchSensor, {
144
- activationConstraint: { delay: 100, tolerance: 5 },
145
- }),
146
- useSensor(KeyboardSensor),
147
- );
148
-
149
- const handleDragEnd = (event: DragEndEvent) => {
150
- const { active, over } = event;
151
- if (active && over && active.id !== over.id) {
152
- const currentOrder = table.getState().columnOrder;
153
- const oldIndex = currentOrder.indexOf(active.id as string);
154
- const newIndex = currentOrder.indexOf(over.id as string);
155
- table.setColumnOrder(arrayMove(currentOrder, oldIndex, newIndex));
156
- }
157
- };
158
-
159
- const visibleColumns = columns.filter((col) => col.getIsVisible());
160
-
161
- if (columns.length === 0) return null;
162
-
163
- return (
164
- <DropdownMenu
165
- open={columnSelectorOpen}
166
- onOpenChange={setColumnSelectorOpen}
167
- >
168
- <DropdownMenu.Trigger asChild>
169
- {children ?? (
170
- <Button variant="ghost" className="h-full w-full rounded-none px-0">
171
- <IconSettings />
172
- </Button>
173
- )}
174
- </DropdownMenu.Trigger>
175
-
176
- <DropdownMenu.Content
177
- align={align}
178
- className="hide-scroll max-h-(--radix-dropdown-menu-content-available-height) w-72 max-w-[calc(100vw-2rem)] overflow-y-auto overscroll-contain p-1"
179
- >
180
- <DndContext
181
- sensors={sensors}
182
- modifiers={[restrictToVerticalAxis]}
183
- onDragEnd={handleDragEnd}
184
- >
185
- <SortableContext
186
- items={columns.map((col) => col.id)}
187
- strategy={verticalListSortingStrategy}
188
- >
189
- {columns.map((column) => (
190
- <SortableColumnItem
191
- key={column.id}
192
- column={column}
193
- isLastVisible={
194
- visibleColumns.length === 1 &&
195
- visibleColumns[0].id === column.id
196
- }
197
- />
198
- ))}
199
- </SortableContext>
200
- </DndContext>
201
- </DropdownMenu.Content>
202
- </DropdownMenu>
203
- );
204
- };
@@ -1,70 +0,0 @@
1
- import { CSSProperties, forwardRef, useMemo } from 'react';
2
-
3
- import { Table } from '@tanstack/react-table';
4
-
5
- import { cn } from 'erxes-ui/lib/utils';
6
- import { isFixedWidthColumn } from 'erxes-ui/modules/record-table/utils/columnUtils';
7
-
8
- interface RecordTableContainerProps {
9
- table: Table<any>;
10
- children: React.ReactNode;
11
- }
12
-
13
- const RecordTableContainer = forwardRef<
14
- HTMLDivElement,
15
- RecordTableContainerProps & React.HTMLAttributes<HTMLDivElement>
16
- >(({ table, className, children, ...restProps }, ref) => {
17
- const { columnSizeVars, flexWidth } = useMemo(() => {
18
- const headers = table.getFlatHeaders();
19
- const flexWidth = headers.reduce(
20
- (total, header) =>
21
- isFixedWidthColumn(header.column) ? total : total + header.getSize(),
22
- 0,
23
- );
24
- const colSizes: { [key: string]: number | string } = {};
25
- for (let i = 0; i < headers.length; i++) {
26
- const header = headers[i];
27
- if (header) {
28
- colSizes[`--header-${header.id}-size`] = header.getSize();
29
- colSizes[`--col-${header.column.id}-size`] = header.column.getSize();
30
- const width =
31
- isFixedWidthColumn(header.column) || !flexWidth
32
- ? `${header.getSize()}px`
33
- : `${(header.getSize() / flexWidth) * 100}%`;
34
- colSizes[`--header-${header.id}-width`] = width;
35
- colSizes[`--col-${header.column.id}-width`] = width;
36
- }
37
- }
38
- return { columnSizeVars: colSizes, flexWidth };
39
- // eslint-disable-next-line react-hooks/exhaustive-deps
40
- }, [
41
- table.getState().columnSizingInfo,
42
- table.getState().columnSizing,
43
- table.getState().columnVisibility,
44
- ]);
45
-
46
- const totalWidth = table.getTotalSize() + 'px';
47
-
48
- return (
49
- <div
50
- ref={ref}
51
- {...restProps}
52
- style={
53
- {
54
- '--table-width': flexWidth ? `max(${totalWidth}, 100%)` : totalWidth,
55
- ...columnSizeVars,
56
- } as CSSProperties
57
- }
58
- className={cn(
59
- 'grow-0 basis-full overflow-hidden rounded-lg bg-sidebar border-t-4 border-l-4 border-sidebar',
60
- className,
61
- )}
62
- >
63
- {children}
64
- </div>
65
- );
66
- });
67
-
68
- RecordTableContainer.displayName = 'RecordTableContainer';
69
-
70
- export default RecordTableContainer;