diginet-core-ui 1.3.88 → 1.3.89

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 (437) hide show
  1. package/assets/avatar/default.svg +3 -3
  2. package/assets/images/icons/wifi.svg +3 -3
  3. package/assets/images/menu/bem/WA3F0100.svg +6 -6
  4. package/assets/images/menu/bem/WA3F1025.svg +10 -10
  5. package/assets/images/menu/bem/WA3F2000.svg +10 -10
  6. package/assets/images/menu/bem/WA3F2020.svg +6 -6
  7. package/assets/images/menu/bem/WA3F2030.svg +14 -14
  8. package/assets/images/menu/bem/WA3F2040.svg +8 -8
  9. package/assets/images/menu/bem/WA3F2100.svg +6 -6
  10. package/assets/images/menu/dhr/ALL.svg +6 -6
  11. package/assets/images/menu/dhr/D00.svg +12 -12
  12. package/assets/images/menu/dhr/D09.svg +8 -8
  13. package/assets/images/menu/dhr/D13.svg +10 -10
  14. package/assets/images/menu/dhr/D15.svg +10 -10
  15. package/assets/images/menu/dhr/D21.svg +10 -10
  16. package/assets/images/menu/dhr/D25.svg +11 -11
  17. package/assets/images/menu/dhr/D29.svg +11 -11
  18. package/assets/images/menu/dhr/D38.svg +6 -6
  19. package/assets/images/menu/dhr/D39.svg +10 -10
  20. package/assets/images/menu/dhr/D51.svg +12 -12
  21. package/assets/images/menu/dhr/D52.svg +16 -16
  22. package/assets/images/menu/dhr/D77.svg +16 -16
  23. package/assets/images/menu/dhr/D84.svg +12 -12
  24. package/assets/images/menu/dhr/D89.svg +8 -8
  25. package/assets/images/menu/dhr/Default.svg +13 -13
  26. package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
  27. package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
  28. package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
  29. package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
  30. package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
  31. package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
  32. package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
  33. package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
  34. package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
  35. package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
  36. package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
  37. package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
  38. package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
  39. package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
  40. package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
  41. package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
  42. package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
  43. package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
  44. package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
  45. package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
  46. package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
  47. package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
  48. package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
  49. package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
  50. package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
  51. package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
  52. package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
  53. package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
  54. package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
  55. package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
  56. package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
  57. package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
  58. package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
  59. package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
  60. package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
  61. package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
  62. package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
  63. package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
  64. package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
  65. package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
  66. package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
  67. package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
  68. package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
  69. package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
  70. package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
  71. package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
  72. package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
  73. package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
  74. package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
  75. package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
  76. package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
  77. package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
  78. package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
  79. package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
  80. package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
  81. package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
  82. package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
  83. package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
  84. package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
  85. package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
  86. package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
  87. package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
  88. package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
  89. package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
  90. package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
  91. package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
  92. package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
  93. package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
  94. package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
  95. package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
  96. package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
  97. package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
  98. package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
  99. package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
  100. package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
  101. package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
  102. package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
  103. package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
  104. package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
  105. package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
  106. package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
  107. package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
  108. package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
  109. package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
  110. package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
  111. package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
  112. package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
  113. package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
  114. package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
  115. package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
  116. package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
  117. package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
  118. package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
  119. package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
  120. package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
  121. package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
  122. package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
  123. package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
  124. package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
  125. package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
  126. package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
  127. package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
  128. package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
  129. package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
  130. package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
  131. package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
  132. package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
  133. package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
  134. package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
  135. package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
  136. package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
  137. package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
  138. package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
  139. package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
  140. package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
  141. package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
  142. package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
  143. package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
  144. package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
  145. package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
  146. package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
  147. package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
  148. package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
  149. package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
  150. package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
  151. package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
  152. package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
  153. package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
  154. package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
  155. package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
  156. package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
  157. package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
  158. package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
  159. package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
  160. package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
  161. package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
  162. package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
  163. package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
  164. package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
  165. package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
  166. package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
  167. package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
  168. package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
  169. package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
  170. package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
  171. package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
  172. package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
  173. package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
  174. package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
  175. package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
  176. package/assets/images/menu/dhr/TASK.svg +9 -9
  177. package/assets/images/menu/dhr/W00F0001.svg +3 -3
  178. package/assets/images/menu/dhr/W00F0002.svg +3 -3
  179. package/assets/images/menu/dhr/W00F0003.svg +3 -3
  180. package/assets/images/menu/dhr/W00F0004.svg +3 -3
  181. package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
  182. package/assets/images/menu/dhr/W09F2000.svg +4 -4
  183. package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
  184. package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
  185. package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
  186. package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
  187. package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
  188. package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
  189. package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
  190. package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
  191. package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
  192. package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
  193. package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
  194. package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
  195. package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
  196. package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
  197. package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
  198. package/assets/images/menu/dhr/W77F1011.svg +19 -19
  199. package/assets/images/menu/dhr/W77F1013.svg +22 -22
  200. package/assets/images/menu/erp/D05.svg +8 -8
  201. package/assets/images/menu/erp/D06.svg +4 -4
  202. package/assets/images/menu/erp/D90R.svg +9 -9
  203. package/assets/images/menu/erp/DBC.svg +9 -9
  204. package/assets/images/menu/erp/W00F0001.svg +3 -3
  205. package/assets/images/menu/erp/W00F0002.svg +3 -3
  206. package/assets/images/menu/erp/W00F0003.svg +3 -3
  207. package/assets/images/menu/erp/W00F0004.svg +3 -3
  208. package/assets/images/menu/erp/W05F0001.svg +16 -16
  209. package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
  210. package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
  211. package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
  212. package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
  213. package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
  214. package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
  215. package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
  216. package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
  217. package/assets/images/menu/erp/W06F0001.svg +17 -17
  218. package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
  219. package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
  220. package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
  221. package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
  222. package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
  223. package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
  224. package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
  225. package/assets/images/menu/erp/WA3F1025.svg +5 -5
  226. package/assets/images/menu/erp/WA3F2100.svg +10 -10
  227. package/assets/storybook/avatar01.svg +9 -9
  228. package/assets/storybook/cover01.svg +9 -9
  229. package/components/accordion/details.js +2 -6
  230. package/components/accordion/group.js +2 -9
  231. package/components/accordion/index.js +2 -15
  232. package/components/accordion/summary.js +4 -27
  233. package/components/alert/index.js +2 -33
  234. package/components/alert/notify.js +12 -22
  235. package/components/avatar/index.js +22 -81
  236. package/components/badge/index.js +20 -45
  237. package/components/button/icon.js +25 -56
  238. package/components/button/index.js +16 -65
  239. package/components/button/more.js +15 -35
  240. package/components/button/ripple-effect.js +0 -10
  241. package/components/card/body.js +2 -7
  242. package/components/card/extra.js +2 -7
  243. package/components/card/footer.js +2 -7
  244. package/components/card/header.js +2 -7
  245. package/components/card/index.js +2 -22
  246. package/components/chart/Pie/Circle.js +0 -1
  247. package/components/chart/Pie/Sector.js +2 -19
  248. package/components/chart/Pie/Sectors.js +0 -10
  249. package/components/chart/Pie/index.js +4 -36
  250. package/components/chart/Pie-v2/Circle.js +0 -1
  251. package/components/chart/Pie-v2/Sector.js +2 -15
  252. package/components/chart/Pie-v2/Sectors.js +0 -20
  253. package/components/chart/Pie-v2/index.js +11 -38
  254. package/components/chart/bar/Axis.js +0 -12
  255. package/components/chart/bar/Bar.js +13 -35
  256. package/components/chart/bar/Grid.js +0 -18
  257. package/components/chart/bar/Labels.js +4 -22
  258. package/components/chart/bar/Points.js +0 -17
  259. package/components/chart/bar/index.js +6 -26
  260. package/components/chart/bar-v2/Axis.js +0 -12
  261. package/components/chart/bar-v2/Bar.js +15 -36
  262. package/components/chart/bar-v2/Grid.js +0 -18
  263. package/components/chart/bar-v2/Labels.js +4 -22
  264. package/components/chart/bar-v2/Points.js +0 -17
  265. package/components/chart/bar-v2/index.js +6 -26
  266. package/components/chart/line/Axis.js +4 -16
  267. package/components/chart/line/Grid.js +2 -19
  268. package/components/chart/line/Labels.js +4 -22
  269. package/components/chart/line/Path.js +24 -34
  270. package/components/chart/line/Point.js +7 -41
  271. package/components/chart/line/Title.js +0 -3
  272. package/components/chart/line/index.js +12 -35
  273. package/components/chart/line-v2/Axis.js +0 -13
  274. package/components/chart/line-v2/Grid.js +0 -18
  275. package/components/chart/line-v2/Labels.js +4 -22
  276. package/components/chart/line-v2/Path.js +23 -33
  277. package/components/chart/line-v2/Point.js +6 -35
  278. package/components/chart/line-v2/Title.js +0 -3
  279. package/components/chart/line-v2/index.js +12 -30
  280. package/components/check-text/index.js +7 -15
  281. package/components/check-text/interview-confirmation.js +24 -31
  282. package/components/check-text/interview-status.js +24 -31
  283. package/components/chip/attach.js +9 -22
  284. package/components/chip/index.js +13 -38
  285. package/components/collapse/index.js +0 -13
  286. package/components/divider/index.js +2 -13
  287. package/components/form-control/attachment/index.js +41 -202
  288. package/components/form-control/calendar/function.js +154 -208
  289. package/components/form-control/calendar/index.js +21 -46
  290. package/components/form-control/calendar/range.js +11 -28
  291. package/components/form-control/checkbox/index.js +12 -46
  292. package/components/form-control/control/index.js +4 -14
  293. package/components/form-control/date-picker/index-old.js +18 -0
  294. package/components/form-control/date-picker/index.js +23 -99
  295. package/components/form-control/date-range-picker/index.js +44 -180
  296. package/components/form-control/dropdown/index.js +101 -314
  297. package/components/form-control/dropdown-box/index.js +7 -37
  298. package/components/form-control/form/index.js +0 -2
  299. package/components/form-control/form-group/index.js +1 -6
  300. package/components/form-control/helper-text/index.js +2 -9
  301. package/components/form-control/input-base/index.js +4 -68
  302. package/components/form-control/label/index.js +2 -12
  303. package/components/form-control/money-input/index.js +54 -143
  304. package/components/form-control/number-input/index.js +26 -124
  305. package/components/form-control/number-input/index2.js +95 -134
  306. package/components/form-control/phone-input/index.js +23 -85
  307. package/components/form-control/radio/index.js +16 -35
  308. package/components/form-control/text-input/index.js +10 -46
  309. package/components/form-control/time-picker/index.js +43 -100
  310. package/components/form-control/time-picker/swiper.js +21 -73
  311. package/components/form-control/toggle/index.js +26 -40
  312. package/components/form-view/helper-text.js +2 -2
  313. package/components/form-view/index.js +0 -14
  314. package/components/form-view/input.js +2 -13
  315. package/components/form-view/label.js +0 -2
  316. package/components/grid/Col.js +2 -16
  317. package/components/grid/Container.js +2 -21
  318. package/components/grid/Row.js +2 -21
  319. package/components/grid/index.js +2 -44
  320. package/components/image/index.js +2 -22
  321. package/components/index.js +62 -31
  322. package/components/list/list-item-action.js +12 -21
  323. package/components/list/list-item-icon.js +10 -19
  324. package/components/list/list-item-text.js +0 -5
  325. package/components/list/list-item.js +27 -38
  326. package/components/list/list.js +37 -50
  327. package/components/list/sub-header.js +13 -17
  328. package/components/modal/body.js +2 -6
  329. package/components/modal/footer.js +2 -11
  330. package/components/modal/header.js +2 -12
  331. package/components/modal/index.js +2 -10
  332. package/components/modal/modal.js +11 -52
  333. package/components/others/extra/index.js +3 -10
  334. package/components/others/import/index.js +0 -7
  335. package/components/others/option-wrapper/index.js +4 -7
  336. package/components/others/scrollbar/index.js +0 -3
  337. package/components/paging/page-info.js +35 -99
  338. package/components/paging/page-selector.js +10 -38
  339. package/components/paging/page-selector2.js +35 -74
  340. package/components/paper/index.js +23 -34
  341. package/components/popover/body.js +2 -6
  342. package/components/popover/footer.js +2 -11
  343. package/components/popover/header.js +2 -7
  344. package/components/popover/index.js +54 -146
  345. package/components/popup/danger_popup.js +0 -19
  346. package/components/popup/index.js +4 -50
  347. package/components/popup/proposals_popup.js +11 -50
  348. package/components/popup/v2/index.js +13 -47
  349. package/components/progress/circular.js +10 -48
  350. package/components/progress/linear.js +58 -74
  351. package/components/rating/index.js +10 -35
  352. package/components/slider/slider-container.js +4 -41
  353. package/components/slider/slider-item.js +10 -25
  354. package/components/status/index.js +2 -14
  355. package/components/tab/tab-container.js +4 -18
  356. package/components/tab/tab-header.js +4 -24
  357. package/components/tab/tab-panel.js +4 -16
  358. package/components/tab/tab.js +8 -33
  359. package/components/tooltip/index.js +12 -97
  360. package/components/tooltip/portal.js +0 -2
  361. package/components/transfer/index.js +28 -73
  362. package/components/tree-view/index.js +62 -202
  363. package/components/typography/index.js +14 -42
  364. package/global/index.js +0 -8
  365. package/icons/basic.js +0 -48
  366. package/icons/effect.js +15 -32
  367. package/icons/general/clock/clock.js +0 -2
  368. package/icons/general/color-handler/background.js +0 -2
  369. package/icons/general/color-handler/text.js +0 -2
  370. package/icons/general/emoji/emoji.js +0 -2
  371. package/icons/general/font-properties/bold.js +0 -2
  372. package/icons/general/font-properties/font-family.js +0 -2
  373. package/icons/general/font-properties/font-size.js +0 -2
  374. package/icons/general/font-properties/italic.js +0 -2
  375. package/icons/general/font-properties/underline.js +0 -2
  376. package/icons/general/hyperlink/hyperlink.js +0 -2
  377. package/icons/general/indent/decrease.js +0 -2
  378. package/icons/general/indent/increase.js +0 -2
  379. package/icons/general/list/bullets.js +0 -2
  380. package/icons/general/list/numbering.js +0 -2
  381. package/icons/general/picture/picture.js +0 -2
  382. package/icons/general/steps/redo.js +0 -2
  383. package/icons/general/steps/undo.js +0 -2
  384. package/icons/general/text-align/center.js +0 -2
  385. package/icons/general/text-align/justify.js +0 -2
  386. package/icons/general/text-align/left.js +0 -2
  387. package/icons/general/text-align/right.js +0 -2
  388. package/icons/menu/dhr.js +2 -1
  389. package/icons/menu/index.js +2 -2
  390. package/icons/menu/v2/index.js +2 -15
  391. package/package.json +42 -42
  392. package/readme.md +1034 -1027
  393. package/styles/animation.js +15 -58
  394. package/styles/color-helper.js +127 -157
  395. package/styles/colors.js +17 -9
  396. package/styles/general.js +16 -57
  397. package/styles/typography.js +4 -4
  398. package/styles/utils.js +18 -18
  399. package/theme/createBreakpoints.js +7 -18
  400. package/theme/make-styles.js +2 -5
  401. package/theme/set-theme.js +6 -9
  402. package/theme/settings.js +17 -22
  403. package/theme/theme-provider.js +0 -1
  404. package/utils/array/array.js +45 -54
  405. package/utils/classNames/index.js +0 -5
  406. package/utils/console.js +0 -6
  407. package/utils/date.js +69 -138
  408. package/utils/error/error.js +3 -11
  409. package/utils/error/errors.js +100 -147
  410. package/utils/getFileType.js +0 -9
  411. package/utils/handleBreakpoints.js +0 -5
  412. package/utils/intersectionObserver.js +0 -5
  413. package/utils/iterator.js +0 -9
  414. package/utils/map-parent.js +3 -10
  415. package/utils/object/extend.js +0 -10
  416. package/utils/object/object.js +12 -11
  417. package/utils/parseHTML.js +0 -1
  418. package/utils/promisify.js +0 -5
  419. package/utils/randomString.js +0 -7
  420. package/utils/remove-unicode.js +0 -1
  421. package/utils/render-portal.js +1 -9
  422. package/utils/renderHTML.js +4 -6
  423. package/utils/renderIcon.js +9 -19
  424. package/utils/sb-template.js +6 -5
  425. package/utils/string/capitalize.js +0 -1
  426. package/utils/string/capitalizeSentenceCase.js +0 -2
  427. package/utils/string/string.js +0 -13
  428. package/utils/type.js +0 -21
  429. package/utils/updatePosition.js +4 -5
  430. package/utils/useDelayUnmount.js +0 -4
  431. package/utils/useElementSize.js +9 -3
  432. package/utils/useEventListener.js +12 -6
  433. package/utils/useInput.js +0 -6
  434. package/utils/useMediaQuery/index.js +8 -10
  435. package/utils/useOnClickOutside.js +2 -4
  436. package/utils/usePortal.js +12 -19
  437. package/utils/validate.js +39 -53
@@ -1,5 +1,4 @@
1
1
  /** @jsxRuntime classic */
2
-
3
2
  /** @jsx jsx */
4
3
  import { css, jsx } from '@emotion/core';
5
4
  import { ButtonIcon, HelperText, Label, LinearProgress, List, ListItem, ListItemText, ModalSample, Notify, Popover, Popup, ScrollBar, Slider, SliderItem, Typography } from "../..";
@@ -66,75 +65,61 @@ const oldAttached = [];
66
65
  const allNewAttached = new FormData();
67
66
  const attached = [];
68
67
  const chosenItems = [];
69
-
70
68
  const getType = data => {
71
69
  if (data.type !== undefined) {
72
70
  var _type$match;
73
-
74
71
  const pattern = /word|sheet|presentation|pdf|image|compressed/i;
75
72
  let type = data.type;
76
-
77
73
  if (!type) {
78
74
  if (/rar/.test(data.name)) {
79
75
  type = 'compressed';
80
76
  }
81
77
  }
82
-
83
78
  return ((_type$match = type.match(pattern)) === null || _type$match === void 0 ? void 0 : _type$match[0]) || 'default';
84
79
  } else {
85
80
  var _data$FileName;
86
-
87
81
  const FileExt = (_data$FileName = data.FileName) === null || _data$FileName === void 0 ? void 0 : _data$FileName.slice(data.FileName.lastIndexOf('.'));
88
82
  return getFileType(FileExt, 'default');
89
83
  }
90
84
  };
91
-
92
85
  const getDateTime = date => {
93
86
  if (String(date) === 'Invalid Date') return 'unknown';
94
87
  return moment(date).format('DD/MM/YYYY, HH:mm:ss');
95
88
  };
96
-
97
89
  const getNewUnitSize = (sizeName, totalSize, num) => {
98
90
  if (sizeName === 'B' && num === 1 || sizeName === 'TB' && num === -1) return [sizeName, totalSize];
99
91
  const arraySize = ['TB', 'GB', 'MB', 'KB', 'B'];
100
92
  const index = arraySize.indexOf(sizeName);
101
- const newTotalSize = totalSize * Math.pow(1024, num); // newTotalSize = Math.round(newTotalSize*100)/100;
102
-
93
+ const newTotalSize = totalSize * Math.pow(1024, num);
94
+ // newTotalSize = Math.round(newTotalSize*100)/100;
103
95
  return [arraySize[index + num], newTotalSize];
104
96
  };
105
-
106
97
  const getBit = (size, unit) => {
107
98
  switch (true) {
108
99
  case /^B$/i.test(unit):
109
100
  return size * 1;
110
-
111
101
  case /KB/i.test(unit):
112
102
  return size * 1024;
113
-
114
103
  case /MB/i.test(unit):
115
104
  return size * 1024 ** 2;
116
-
117
105
  case /GB/i.test(unit):
118
106
  return size * 1024 ** 3;
119
-
120
107
  case /TB/i.test(unit):
121
108
  return size * 1024 ** 4;
122
-
123
109
  default:
124
110
  return size * 1024 * 1024;
125
111
  }
126
112
  };
127
-
128
113
  const formatBytes = (bytes, decimals = 2) => {
129
114
  if (!+bytes) return '0 Bytes';
130
115
  const k = 1024;
131
116
  const dm = decimals < 0 ? 0 : decimals;
132
117
  const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
133
- const i = Math.floor(Math.log(bytes) / Math.log(k)); // return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`
118
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
134
119
 
120
+ // return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`
135
121
  return [parseFloat((bytes / Math.pow(k, i)).toFixed(dm)), sizes[i]];
136
122
  };
137
-
138
123
  const divideSizeMap = new Map([['B', 1], ['KB', 1024], ['MB', 1024 ** 2], ['GB', 1024 ** 3], ['TB', 1024 ** 4]]);
139
124
  const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
140
125
  accept,
@@ -188,14 +173,12 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
188
173
  const [isEmpty, setIsEmpty] = useState(null);
189
174
  const [newDataState, setNewDataState] = useState([]);
190
175
  const isEnable = !readOnly && !disabled;
176
+ const _AttachmentRootCSS = AttachmentRootCSS(isEmpty, isEnable);
191
177
 
192
- const _AttachmentRootCSS = AttachmentRootCSS(isEmpty, isEnable); // Start handler
193
-
194
-
178
+ // Start handler
195
179
  const onSortElement = (e, type) => {
196
180
  let multi = 1;
197
181
  const currentActive = popoverRef.current.querySelector('.DGN-Active');
198
-
199
182
  if (currentActive) {
200
183
  if (e.currentTarget.classList.contains('DGN-Active')) {
201
184
  if (e.currentTarget.classList.contains('DGN-Decrease')) {
@@ -209,13 +192,11 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
209
192
  currentActive.classList.remove('DGN-Active');
210
193
  }
211
194
  }
212
-
213
195
  e.currentTarget.classList.add('DGN-Active');
214
196
  const attachedList = Array.from(attachedRef.current.querySelectorAll('.attachment-row'));
215
197
  attachedList.sort((a, b) => {
216
198
  let textA = a.querySelector('.' + (type === 'filesize' ? 'filename' : type)).textContent;
217
199
  let textB = b.querySelector('.' + (type === 'filesize' ? 'filename' : type)).textContent;
218
-
219
200
  if (type === 'datetime') {
220
201
  textA = textA.replace(/.{10}/, text => moment(text, 'DD/MM/YYYY').format('YYYY/MM/DD'));
221
202
  textB = textB.replace(/.{10}/, text => moment(text, 'DD/MM/YYYY').format('YYYY/MM/DD'));
@@ -225,14 +206,12 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
225
206
  textA = (objA.size || objA.FileSize).toString();
226
207
  textB = (objB.size || objB.FileSize).toString();
227
208
  }
228
-
229
209
  return multi * textA.localeCompare(textB, 'en', {
230
210
  numeric: type === 'filesize'
231
211
  });
232
212
  });
233
213
  attached.sort((a, b) => {
234
214
  let valueA, valueB;
235
-
236
215
  if (type === 'filesize' || type === 'datetime') {
237
216
  if (type === 'filesize') {
238
217
  valueA = a.size || a.FileSize;
@@ -249,7 +228,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
249
228
  valueA = a[type === 'filename' ? 'FileName' : 'UserName'] || ownerName;
250
229
  valueB = b[type === 'filename' ? 'FileName' : 'UserName'] || ownerName;
251
230
  }
252
-
253
231
  return multi * valueA.toString().localeCompare(valueB.toString(), 'en', {
254
232
  numeric: type === 'filesize' || type === 'datetime'
255
233
  });
@@ -258,63 +236,47 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
258
236
  attachedRef.current.appendChild(el);
259
237
  });
260
238
  };
261
-
262
239
  const afterChangeFile = (length = 0) => {
263
240
  setIsEmpty(!length);
264
241
  };
265
-
266
242
  const onChangeFiles = async e => {
267
243
  var _e$target, _e$target$files;
268
-
269
244
  if (!isEnable) return;
270
245
  e.persist();
271
-
272
246
  if (e !== null && e !== void 0 && (_e$target = e.target) !== null && _e$target !== void 0 && (_e$target$files = _e$target.files) !== null && _e$target$files !== void 0 && _e$target$files.length) {
273
247
  let files = e.target.files;
274
248
  const lengthAttached = attached.length;
275
-
276
249
  for (let i = 0; i < files.length; i++) {
277
250
  if (i + 1 > maxFile - lengthAttached || files[i].size > maxSize.current || checkExistingFile(files[i]) || !checkAcceptFileType(files[i])) {
278
251
  if (i + 1 > maxFile - lengthAttached) {
279
252
  var _files$i;
280
-
281
253
  notifyRef.current.instance.show(`${(_files$i = files[i]) === null || _files$i === void 0 ? void 0 : _files$i.name} - ${uploadErrorInfo['maxFile']}`);
282
254
  } else if (files[i].size > maxSize.current) {
283
255
  var _files$i2;
284
-
285
256
  notifyRef.current.instance.show(`${(_files$i2 = files[i]) === null || _files$i2 === void 0 ? void 0 : _files$i2.name} - ${uploadErrorInfo['maxSize']}`);
286
257
  } else if (!checkAcceptFileType(files[i])) {
287
258
  var _files$i3;
288
-
289
259
  notifyRef.current.instance.show(`${(_files$i3 = files[i]) === null || _files$i3 === void 0 ? void 0 : _files$i3.name} - ${uploadErrorInfo['fileType']}`);
290
260
  } else {
291
261
  var _files$i4;
292
-
293
262
  notifyRef.current.instance.show(`${(_files$i4 = files[i]) === null || _files$i4 === void 0 ? void 0 : _files$i4.name} - ${uploadErrorInfo['existingFile']}`);
294
263
  }
295
-
296
264
  files = removeFileOutInputFiles(i, true);
297
265
  i--;
298
266
  }
299
267
  }
300
-
301
268
  const length = files.length;
302
-
303
269
  if (!lengthAttached && !length) {
304
270
  afterChangeFile();
305
271
  return;
306
272
  }
307
-
308
273
  afterChangeFile(lengthAttached + length);
309
-
310
274
  if (multiple || inputProps && inputProps.multiple) {
311
275
  for (let i = 0; i < length; i++) {
312
276
  files[i].FileName = files[i].name;
313
277
  attached.push(files[i]);
314
278
  }
315
-
316
279
  setNewDataState([...newDataState, ...Array.from(files)]);
317
-
318
280
  for (let i = 0; i < length; i++) {
319
281
  files[i].URL = await onProgressing(files[i]);
320
282
  }
@@ -324,7 +286,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
324
286
  attached.push(files[0]);
325
287
  files[0].URL = await onProgressing(files[0]);
326
288
  }
327
-
328
289
  insertAttached(files);
329
290
  stripDomain();
330
291
  if (onChange) onChange({
@@ -338,49 +299,40 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
338
299
  afterChangeFile();
339
300
  }
340
301
  };
341
-
342
302
  const onProgressing = file => {
343
303
  return new Promise((resolve, reject) => {
344
304
  const reader = new FileReader();
345
305
  let url;
346
306
  reader.readAsDataURL(file);
347
-
348
307
  reader.onload = e => {
349
308
  url = e.target.result;
350
309
  };
351
-
352
310
  reader.onloadstart = () => {
353
311
  attachedRef.current.querySelector(`.css-${AttachedLinearCSS.name}-attached`).childNodes[0].style.width = '0%';
354
312
  };
355
-
356
313
  reader.onprogress = e => {
357
314
  attachedRef.current.querySelector(`.css-${AttachedLinearCSS.name}-attached`).childNodes[0].style.width = e.loaded / e.total * 100 + '%';
358
315
  };
359
-
360
316
  reader.onloadend = () => {
361
317
  setTimeout(() => {
362
318
  attachedRef.current.querySelector(`.css-${AttachedLinearCSS.name}-attached`).parentNode.remove();
363
319
  resolve(url);
364
320
  }, 200);
365
321
  };
366
-
367
322
  reader.onerror = () => {
368
323
  console.log('Upload file fail');
369
324
  reject(false);
370
325
  };
371
326
  });
372
327
  };
373
-
374
328
  const calculateSize = size => {
375
329
  if (!size && size !== 0) return 'unknown';
376
330
  let totalSize;
377
331
  let unitSizeName;
378
332
  const divideSize = unitSize ? divideSizeMap.get(unitSize.toUpperCase()) : null;
379
-
380
333
  if (divideSize) {
381
334
  totalSize = size / divideSize;
382
335
  unitSizeName = unitSize.toUpperCase();
383
-
384
336
  while (totalSize < 0.01 && unitSizeName !== 'B') {
385
337
  [unitSizeName, totalSize] = getNewUnitSize(unitSizeName, totalSize, 1);
386
338
  }
@@ -388,34 +340,27 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
388
340
  // auto-detect unit size name
389
341
  [totalSize, unitSizeName] = formatBytes(size);
390
342
  }
391
-
392
343
  if (totalSize < 1000) {
393
344
  totalSize = Math.round(totalSize * 100) / 100;
394
345
  } else {
395
346
  totalSize = Math.round(totalSize);
396
347
  }
397
-
398
348
  return totalSize + ' ' + unitSizeName;
399
349
  };
400
-
401
350
  const onShowPopup = () => {
402
351
  setShowPopup(true);
403
352
  };
404
-
405
353
  const onClosePopup = () => {
406
354
  setShowPopup(false);
407
-
408
355
  if (isDeleteAll.current) {
409
356
  isDeleteAll.current = false;
410
357
  chosenItems.length = 0;
411
358
  removeActiveChosenItem();
412
359
  }
413
360
  };
414
-
415
361
  const onDownloadMultiple = () => {
416
362
  const index = chosenItems[0];
417
363
  let file;
418
-
419
364
  if (index < oldAttached.length) {
420
365
  file = mountDomain(oldAttached[index]);
421
366
  onDownload(file.URL, file.FileName);
@@ -425,7 +370,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
425
370
  onDownload(file.URL, file.name);
426
371
  }
427
372
  };
428
-
429
373
  const onRemoveMultiple = () => {
430
374
  const nodeList = attachedRef.current.querySelectorAll('.chosen');
431
375
  const recentRemovedAttached = [];
@@ -433,22 +377,18 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
433
377
  const parent = itemEl.parentNode;
434
378
  const index = Array.from(attachedRef.current.children).indexOf(parent);
435
379
  const deletedFile = attached.splice(index, 1)[0];
436
-
437
380
  if (Object.prototype.toString.call(deletedFile) === '[object File]') {
438
381
  removeFileOutInputFiles(allNewAttached.getAll('files').findIndex(attach => attach.FileName === deletedFile.FileName && attach.CreateDate === deletedFile.CreateDate));
439
382
  } else {
440
383
  oldAttached.splice(oldAttached.findIndex(attach => attach.FileName === deletedFile.FileName && attach.CreateDate === deletedFile.CreateDate), 1);
441
384
  }
442
-
443
385
  removedAttachedRef.current.push(deletedFile);
444
386
  recentRemovedAttached.push(deletedFile);
445
387
  parent.remove();
446
388
  });
447
-
448
389
  if (attached.length < 2) {
449
390
  afterChangeFile(attached.length);
450
391
  }
451
-
452
392
  stripDomain();
453
393
  if (onChange) onChange({
454
394
  element: nodeList,
@@ -461,30 +401,25 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
461
401
  !!onRemoveProp && onRemoveProp(recentRemovedAttached);
462
402
  onClosePopup();
463
403
  };
464
-
465
404
  const clearAllAttached = (confirmPopup = false) => {
466
405
  const allAttachEl = attachedRef.current.querySelectorAll('.attachment-row');
467
-
468
406
  if (allAttachEl && allAttachEl.length) {
469
407
  allAttachEl.forEach(attachEl => attachEl.firstChild.classList.add('chosen'));
470
408
  isDeleteAll.current = true;
471
409
  confirmPopup ? onShowPopup() : onRemoveMultiple();
472
410
  }
473
411
  };
474
-
475
412
  const onGetViewItem = (i = 0) => {
476
413
  const index = chosenItems[i];
477
414
  const node = attachedRef.current.childNodes[index];
478
415
  const AttachmentID = attached[index].AttachmentID;
479
416
  onView(node, AttachmentID);
480
417
  };
481
-
482
418
  const onView = (node, AttachmentID) => {
483
419
  if (timer.current) {
484
420
  prevent.current = true;
485
421
  clearTimeout(timer.current);
486
422
  }
487
-
488
423
  const index = Array.from(attachedRef.current.children).indexOf(node);
489
424
  if (onViewProp) onViewProp(AttachmentID, index);else {
490
425
  setShowModal(true);
@@ -493,15 +428,14 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
493
428
  prevent.current = false;
494
429
  }, 110);
495
430
  };
496
-
497
431
  const onDownload = (url, name) => {
498
432
  if (!url) return;
499
433
  fetch(url).then(resp => resp.blob()).then(blob => {
500
434
  const url = window.URL.createObjectURL(blob);
501
435
  const a = document.createElement('a');
502
436
  a.style.display = 'none';
503
- a.href = url; // the filename you want
504
-
437
+ a.href = url;
438
+ // the filename you want
505
439
  a.download = name;
506
440
  document.body.appendChild(a);
507
441
  a.click();
@@ -509,16 +443,13 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
509
443
  }).catch(() => alert('File not found'));
510
444
  if (onDownloadProp) onDownloadProp(url);
511
445
  };
512
-
513
446
  const removeFileOutInputFiles = (index, keeping) => {
514
447
  const dt = new DataTransfer();
515
-
516
448
  for (let file of attachmentInputRef.current.files) {
517
449
  if (file !== attachmentInputRef.current.files[index]) {
518
450
  dt.items.add(file);
519
451
  }
520
452
  }
521
-
522
453
  if (!keeping) {
523
454
  const files = allNewAttached.getAll('files');
524
455
  files.splice(index, 1);
@@ -526,11 +457,9 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
526
457
  files.forEach(file => allNewAttached.append('files', file));
527
458
  newAttachedRef.current = files || [];
528
459
  }
529
-
530
460
  attachmentInputRef.current.files = dt.files;
531
461
  return dt.files;
532
462
  };
533
-
534
463
  const insertAttached = files => {
535
464
  if (multiple || inputProps && inputProps.multiple) {
536
465
  for (let file of files) {
@@ -541,37 +470,30 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
541
470
  allNewAttached.delete('files');
542
471
  allNewAttached.append('files', files[0]);
543
472
  newAttachedRef.current = [files[0]];
544
- } // attachmentInputRef.current.files = allNewAttached.getAll('files');
545
-
473
+ }
474
+ // attachmentInputRef.current.files = allNewAttached.getAll('files');
546
475
  };
547
476
 
548
477
  const checkExistingFile = newFile => {
549
478
  const files = allNewAttached.getAll('files');
550
-
551
479
  if (files && files.length) {
552
480
  const length = files.length;
553
-
554
481
  for (let i = 0; i < length; i++) {
555
482
  if (parseStringify(newFile) === parseStringify(files[i])) return true;
556
483
  }
557
484
  }
558
-
559
485
  return false;
560
486
  };
561
-
562
487
  const checkAcceptFileType = newFile => {
563
488
  if (!accept || !accept.length) return true;
564
489
  const type = typeof accept === 'string' ? accept : accept.join('-');
565
-
566
490
  if (typeof accept === 'string') {
567
491
  const acceptType = type.replace('/*', '');
568
492
  return newFile.type.includes(acceptType);
569
493
  }
570
-
571
494
  const extFile = newFile.name.slice(newFile.name.lastIndexOf('.') + 1);
572
495
  return accept.join('-').includes(extFile);
573
496
  };
574
-
575
497
  const onChooseItem = e => {
576
498
  const ctrlKey = e.ctrlKey;
577
499
  const shiftKey = e.shiftKey;
@@ -579,29 +501,24 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
579
501
  timer.current = setTimeout(() => {
580
502
  if (!prevent.current) {
581
503
  const index = Array.from(attachedRef.current.children).indexOf(itemEl.parentNode);
582
-
583
504
  if (shiftKey && !ctrlKey) {
584
505
  let startIndex = chosenItems[chosenItems.length - 1] || 0;
585
506
  let endIndex = index;
586
-
587
507
  if (startIndex > endIndex) {
588
508
  endIndex = startIndex;
589
509
  startIndex = index;
590
510
  }
591
-
592
511
  chosenItems.length = 0;
593
512
  attachedRef.current.querySelectorAll(`.css-${AttachedItemCSS.name}`).forEach((itemEl, indexEl) => {
594
513
  if (startIndex <= indexEl && indexEl <= endIndex) {
595
514
  if (!itemEl.classList.contains('chosen')) {
596
515
  itemEl.classList.add('chosen');
597
516
  }
598
-
599
517
  chosenItems.push(indexEl);
600
518
  } else if (itemEl.classList.contains('chosen')) {
601
519
  itemEl.classList.remove('chosen');
602
520
  }
603
521
  });
604
-
605
522
  if (chosenItems[chosenItems.length - 1] !== index) {
606
523
  chosenItems.shift();
607
524
  chosenItems.push(index);
@@ -614,7 +531,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
614
531
  } else if (itemEl.classList.contains('chosen')) {
615
532
  chosenItems.splice(chosenItems.indexOf(index));
616
533
  itemEl.classList.remove('chosen');
617
-
618
534
  if (!chosenItems.length) {
619
535
  setTimeout(() => {
620
536
  removeAllChosenItems();
@@ -623,32 +539,26 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
623
539
  } else {
624
540
  chosenItems.push(index);
625
541
  itemEl.classList.add('chosen');
626
- } // Add event listener click out of item
627
-
628
-
542
+ }
543
+ // Add event listener click out of item
629
544
  if (!existClickOutOfItem.current) {
630
545
  existClickOutOfItem.current = true;
631
546
  attachmentHandleIconRef.current.style.display = 'block';
632
547
  document.addEventListener('keydown', onKeyDown);
633
548
  document.addEventListener('click', clickOutOfItem);
634
549
  }
635
-
636
550
  checkChosenMultiple();
637
551
  }
638
-
639
552
  prevent.current = false;
640
553
  }, 100);
641
554
  };
642
-
643
555
  const removeActiveChosenItem = () => {
644
556
  attachedRef.current.querySelectorAll('.chosen').forEach(itemEl => {
645
557
  itemEl.classList.remove('chosen');
646
558
  });
647
559
  };
648
-
649
560
  const checkChosenMultiple = () => {
650
561
  const actionIcons = attachmentHandleIconRef.current.childNodes;
651
-
652
562
  if (chosenItems.length > 1 && actionIcons[0].style.display !== 'none') {
653
563
  actionIcons[0].style.display = 'none';
654
564
  actionIcons[1].style.display = 'none';
@@ -657,10 +567,8 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
657
567
  actionIcons[1].style.display = null;
658
568
  }
659
569
  };
660
-
661
570
  const onKeyDown = event => {
662
571
  const key = event.key;
663
-
664
572
  if (key === 'Delete') {
665
573
  // Press Delete key to delete item(s)
666
574
  onShowPopup();
@@ -671,11 +579,9 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
671
579
  } else if (/a/i.test(key) && event.ctrlKey) {
672
580
  chosenItems.length = 0;
673
581
  const allAttachEl = attachedRef.current.querySelectorAll('.attachment-row');
674
-
675
582
  if (allAttachEl && allAttachEl.length) {
676
583
  allAttachEl.forEach((attachEl, index) => chosenItems.push(index) & attachEl.firstChild.classList.add('chosen'));
677
584
  }
678
-
679
585
  event.preventDefault();
680
586
  return false;
681
587
  } else if (/Arrow/.test(key)) {
@@ -685,7 +591,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
685
591
  const chosenItemsNode = Array.from(itemsNode).filter(el => el.firstChild.classList.contains('chosen'));
686
592
  const length = itemsNode.length;
687
593
  let index;
688
-
689
594
  if (key === 'ArrowDown' || key === 'ArrowRight') {
690
595
  for (let id = length - 1; id >= 0; id--) {
691
596
  if (Array.from(itemsNode)[id].firstChild.classList.contains('chosen')) {
@@ -693,7 +598,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
693
598
  break;
694
599
  }
695
600
  }
696
-
697
601
  if (index === length - 1) {
698
602
  if (chosenItemsNode.length !== 1 && !event.shiftKey) {
699
603
  chosenItemsNode.forEach((node, i) => {
@@ -708,26 +612,21 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
708
612
  behavior: 'smooth'
709
613
  });
710
614
  }
711
-
712
615
  return;
713
616
  }
714
-
715
617
  Array.from(itemsNode)[index + 1].scrollIntoView({
716
618
  block: 'center',
717
619
  behavior: 'smooth'
718
620
  });
719
-
720
621
  if (!event.shiftKey) {
721
622
  itemsNode.forEach(node => {
722
623
  node.firstChild.classList.remove('chosen');
723
624
  });
724
625
  }
725
-
726
626
  itemsNode[index + 1].firstChild.classList.add('chosen');
727
627
  chosenItems.push(index + 1);
728
628
  } else if (key === 'ArrowUp' || key === 'ArrowLeft') {
729
629
  index = Array.from(itemsNode).findIndex(el => el.firstChild.classList.contains('chosen'));
730
-
731
630
  if (index === 0) {
732
631
  if (chosenItemsNode.length !== 1 && !event.shiftKey) {
733
632
  chosenItemsNode.forEach((node, i) => {
@@ -742,46 +641,37 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
742
641
  behavior: 'smooth'
743
642
  });
744
643
  }
745
-
746
644
  return;
747
645
  }
748
-
749
646
  Array.from(itemsNode)[index - 1].scrollIntoView({
750
647
  block: 'center',
751
648
  behavior: 'smooth'
752
649
  });
753
-
754
650
  if (!event.shiftKey) {
755
651
  chosenItemsNode.forEach(node => {
756
652
  node.firstChild.classList.remove('chosen');
757
653
  });
758
654
  }
759
-
760
655
  itemsNode[index - 1].firstChild.classList.add('chosen');
761
656
  chosenItems.push(index - 1);
762
657
  }
763
-
764
658
  if (!event.shiftKey) {
765
659
  chosenItems.length = 1;
766
660
  }
767
661
  }
768
662
  };
769
-
770
663
  const clickOutOfItem = e => {
771
664
  var _popupRef$current, _popupRef$current$sty;
772
-
773
665
  if (!attachedRef || !attachedRef.current) {
774
666
  document.removeEventListener('keydown', onKeyDown);
775
667
  document.removeEventListener('click', clickOutOfItem);
776
668
  return;
777
669
  }
778
-
779
670
  if (!(attachedRef.current.contains(e.target) && attachedRef.current !== e.target) && !attachmentHandleIconRef.current.contains(e.target) && !isDeleteAll.current && (((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : (_popupRef$current$sty = _popupRef$current.style) === null || _popupRef$current$sty === void 0 ? void 0 : _popupRef$current$sty.display) !== 'flex' || popupRef.current.querySelector('button.filled.info').contains(e.target))) {
780
671
  removeAllChosenItems();
781
672
  removeActiveChosenItem();
782
673
  }
783
674
  };
784
-
785
675
  const removeAllChosenItems = () => {
786
676
  chosenItems.length = 0;
787
677
  existClickOutOfItem.current = false;
@@ -789,7 +679,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
789
679
  document.removeEventListener('keydown', onKeyDown);
790
680
  document.removeEventListener('click', clickOutOfItem);
791
681
  };
792
-
793
682
  const parseStringify = fileInfo => JSON.stringify({
794
683
  lastModified: fileInfo.lastModified,
795
684
  lastModifiedDate: fileInfo.lastModifiedDate,
@@ -798,45 +687,36 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
798
687
  type: fileInfo.type,
799
688
  webkitRelativePath: fileInfo.webkitRelativePath
800
689
  });
801
-
802
690
  const mountDomain = item => {
803
691
  if (!item) return item;
804
692
  const cloneItem = JSON.parse(JSON.stringify(item));
805
-
806
693
  if (domain) {
807
694
  if (!/\/$/.test(domain)) {
808
695
  domain = domain + '/';
809
696
  }
810
-
811
697
  if (cloneItem !== null && cloneItem !== void 0 && cloneItem.URL) {
812
698
  cloneItem.URL = cloneItem.URL.indexOf('http') < 0 ? domain + cloneItem.URL : cloneItem.URL;
813
699
  }
814
700
  }
815
-
816
701
  return cloneItem;
817
702
  };
818
-
819
703
  const stripDomain = () => {
820
704
  if (isStripDomain && domain) {
821
705
  const re = new RegExp(domain + '/?');
822
706
  attached.forEach(item => {
823
707
  var _item$URL;
824
-
825
708
  item.URL = (item === null || item === void 0 ? void 0 : (_item$URL = item.URL) === null || _item$URL === void 0 ? void 0 : _item$URL.replace(re, '')) || '';
826
709
  });
827
710
  oldAttached.forEach(item => {
828
711
  var _item$URL2;
829
-
830
712
  item.URL = (item === null || item === void 0 ? void 0 : (_item$URL2 = item.URL) === null || _item$URL2 === void 0 ? void 0 : _item$URL2.replace(re, '')) || '';
831
713
  });
832
714
  }
833
715
  };
834
-
835
716
  useEffect(() => {
836
717
  if (attached.length) {
837
718
  attached.length = 0;
838
719
  }
839
-
840
720
  return () => {
841
721
  existClickOutOfItem.current = false;
842
722
  };
@@ -854,27 +734,21 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
854
734
  maxSize.current = getBit(numberSize, unitMaxSize);
855
735
  }
856
736
  }
857
-
858
737
  attachmentInputRef.current.multiple = multiple;
859
-
860
738
  if (accept && typeof accept === 'string') {
861
739
  attachmentInputRef.current.accept = `${accept}/*`.replace('/*/*', '/*');
862
740
  }
863
-
864
741
  return () => {
865
742
  maxSize.current = Infinity;
866
743
  };
867
744
  }, [maxFile, maxSizeProp, multiple, accept]);
868
745
  useEffect(() => {
869
746
  var _newAttachedRef$curre;
870
-
871
747
  oldAttached.length = 0;
872
748
  afterChangeFile(((data === null || data === void 0 ? void 0 : data.length) || 0) + (((_newAttachedRef$curre = newAttachedRef.current) === null || _newAttachedRef$curre === void 0 ? void 0 : _newAttachedRef$curre.length) || 0));
873
-
874
749
  if (data) {
875
750
  // Load files data was uploaded
876
751
  const length = data.length;
877
-
878
752
  for (let i = 0; i < length; i++) {
879
753
  if (Object.prototype.toString.call(data[i]) === '[object File]') {
880
754
  allNewAttached.append('files', data[i]);
@@ -887,7 +761,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
887
761
  }
888
762
  }
889
763
  }
890
-
891
764
  return () => {
892
765
  // if (attachedRef.current) {
893
766
  // attachedRef.current.innerHTML = null;
@@ -897,7 +770,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
897
770
  attached.length = 0;
898
771
  chosenItems.length = 0;
899
772
  allNewAttached.delete('files');
900
-
901
773
  if (attachmentInputRef.current) {
902
774
  attachmentInputRef.current.value = '';
903
775
  }
@@ -925,19 +797,16 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
925
797
  };
926
798
  }
927
799
  }, [inputProps]);
928
-
929
800
  const triggerClickInput = () => {
930
801
  attachmentInputRef.current.click();
931
802
  };
932
-
933
803
  const onDragFileStart = () => {
934
804
  attachmentInputRef.current.parentNode.style.display = 'block';
935
805
  };
936
-
937
806
  const onDropInput = () => {
938
807
  attachmentInputRef.current.parentNode.style.display = null;
939
- }; // End handler
940
-
808
+ };
809
+ // End handler
941
810
 
942
811
  useImperativeHandle(reference, () => {
943
812
  stripDomain();
@@ -950,20 +819,17 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
950
819
  clear: confirmPopup => clearAllAttached(confirmPopup),
951
820
  openFileDialog: triggerClickInput
952
821
  }; // methods
953
-
954
822
  _instance.__proto__ = {}; // hidden methods
955
-
956
823
  currentRef.instance = _instance;
957
824
  currentRef.oldAttached = oldAttached;
958
825
  currentRef.allNewAttached = allNewAttached;
959
826
  currentRef.attached = attached;
960
-
961
827
  currentRef.clear = confirmPopup => clearAllAttached(confirmPopup);
962
-
963
828
  currentRef.openFileDialog = triggerClickInput;
964
829
  return currentRef;
965
- }); // Start view
830
+ });
966
831
 
832
+ // Start view
967
833
  const AttachHeaderView = useMemo(() => {
968
834
  return jsx("div", {
969
835
  css: AttachmentHeaderCSS,
@@ -1066,7 +932,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1066
932
  ...inputProps
1067
933
  }));
1068
934
  }, [accept, disabled, domain, inputProps, isStripDomain, maxFile, multiple, onChange, readOnly, uploadErrorInfo, newDataState]);
1069
-
1070
935
  const renderAttachmentItem = (item, idx, isNew = false) => {
1071
936
  const isViewTypeIcon = viewTypeState === 'icon';
1072
937
  const date = isNew ? new Date() : new Date(item.CreateDate);
@@ -1120,7 +985,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1120
985
  percent: 0
1121
986
  })) : null)));
1122
987
  };
1123
-
1124
988
  const AttachedView = useMemo(() => {
1125
989
  const isViewTypeIcon = viewTypeState === 'icon';
1126
990
  return jsx(ScrollBar, {
@@ -1151,8 +1015,8 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1151
1015
  const ModalView = useMemo(() => {
1152
1016
  if (!chosenItems.length) return setShowModal(false);
1153
1017
  const index = chosenItems[0];
1154
- const data = mountDomain(attached[index]); // let data = oldAttached[index] || allNewAttached.getAll('files')[index-oldAttached.length];
1155
-
1018
+ const data = mountDomain(attached[index]);
1019
+ // let data = oldAttached[index] || allNewAttached.getAll('files')[index-oldAttached.length];
1156
1020
  return jsx(ModalSample, {
1157
1021
  open: showModal,
1158
1022
  title: data.FileName,
@@ -1160,7 +1024,8 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1160
1024
  }, jsx(Slider, null, jsx(SliderItem, {
1161
1025
  url: data.URL
1162
1026
  })));
1163
- }, [domain, showModal]); // End view
1027
+ }, [domain, showModal]);
1028
+ // End view
1164
1029
 
1165
1030
  return jsx("div", {
1166
1031
  ref: ref,
@@ -1379,7 +1244,6 @@ const AttachmentListCSS = css`
1379
1244
  ${pd([0, 1.75, 0])};
1380
1245
  overflow-y: overlay;
1381
1246
  `;
1382
-
1383
1247
  const AttachmentRootCSS = (isEmpty, isEnable) => css`
1384
1248
  ${displayFlex};
1385
1249
  ${flexCol};
@@ -1421,7 +1285,6 @@ const AttachmentRootCSS = (isEmpty, isEnable) => css`
1421
1285
  }
1422
1286
  }
1423
1287
  `;
1424
-
1425
1288
  Attachment.defaultProps = {
1426
1289
  allowSort: true,
1427
1290
  className: '',
@@ -1443,97 +1306,73 @@ Attachment.defaultProps = {
1443
1306
  Attachment.propTypes = {
1444
1307
  /** File types that can be accepted. */
1445
1308
  accept: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
1446
-
1447
1309
  /** If `true`, allow sort. */
1448
1310
  allowSort: PropTypes.bool,
1449
-
1450
1311
  /** Class for component. */
1451
1312
  className: PropTypes.string,
1452
-
1453
- /** List attachment:<br />
1454
- * [{<br />
1455
- * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1456
- * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/8a07bee1eeff17a14eee.jpg?path=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlUGF0aCI6Ii8yMDIwLzA4LzQ0YjNhYjQ4LTMwNGQtNDQ3NC05ZDk0LWNkNGVlMDQwOGNlMy5qcGciLCJmaWxlTmFtZSI6IjhhMDdiZWUxZWVmZjE3YTE0ZWVlLmpwZyIsImZpbGVTaXplIjoyNDg4MzcsImZpbGVUeXBlIjoiaW1hZ2UvanBlZyIsImlhdCI6MTU5ODI0NDMwMiwiZXhwIjo4Nzk5ODI0NDMwMn0.fow6O5fp2z3vieA9gom5RRwQ7xxwBx9_7X2Fe8T2YI0",<br />
1457
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1458
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1459
- * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1460
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1461
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1462
- * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1463
- * }, ...]
1313
+ /** List attachment:<br />
1314
+ * [{<br />
1315
+ * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1316
+ * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/8a07bee1eeff17a14eee.jpg?path=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlUGF0aCI6Ii8yMDIwLzA4LzQ0YjNhYjQ4LTMwNGQtNDQ3NC05ZDk0LWNkNGVlMDQwOGNlMy5qcGciLCJmaWxlTmFtZSI6IjhhMDdiZWUxZWVmZjE3YTE0ZWVlLmpwZyIsImZpbGVTaXplIjoyNDg4MzcsImZpbGVUeXBlIjoiaW1hZ2UvanBlZyIsImlhdCI6MTU5ODI0NDMwMiwiZXhwIjo4Nzk5ODI0NDMwMn0.fow6O5fp2z3vieA9gom5RRwQ7xxwBx9_7X2Fe8T2YI0",<br />
1317
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1318
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1319
+ * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1320
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1321
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1322
+ * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1323
+ * }, ...]
1464
1324
  */
1465
1325
  data: PropTypes.array,
1466
-
1467
1326
  /** The message to display when deleting files. */
1468
1327
  deleteNotifyText: PropTypes.string,
1469
-
1470
1328
  /** If `true`, the component is disabled. */
1471
1329
  disabled: PropTypes.bool,
1472
-
1473
1330
  /** Domain of attachments. */
1474
1331
  domain: PropTypes.string,
1475
-
1476
1332
  /** Error of attachment. */
1477
1333
  error: PropTypes.string,
1478
-
1479
1334
  /** Suggested passage attached. */
1480
1335
  hintText: PropTypes.string,
1481
-
1482
1336
  /** [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes) applied to the input element. */
1483
1337
  inputProps: PropTypes.object,
1484
-
1485
1338
  /** If `true`, strip domain of attachments. */
1486
1339
  isStripDomain: PropTypes.bool,
1487
-
1488
1340
  /** Label of the component. */
1489
1341
  label: PropTypes.string,
1490
-
1491
1342
  /** Limit the number of uploaded files. */
1492
1343
  maxFile: PropTypes.number,
1493
-
1494
1344
  /** Limit the size of uploaded files. */
1495
1345
  maxSize: PropTypes.string,
1496
-
1497
1346
  /** Allows to attach multiple files. */
1498
1347
  multiple: PropTypes.bool,
1499
-
1500
1348
  /** Callback fired when the files attached is changed. */
1501
1349
  onChange: PropTypes.func,
1502
-
1503
1350
  /** Download attached event, if not it will use default. */
1504
1351
  onDownload: PropTypes.func,
1505
-
1506
- /**
1507
- * event when removed file(s)
1508
- *
1509
- * return data: {<br/>
1510
- * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1511
- * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1512
- * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1513
- * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1514
- * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1515
- * }
1352
+ /**
1353
+ * event when removed file(s)
1354
+ *
1355
+ * return data: {<br/>
1356
+ * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1357
+ * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1358
+ * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1359
+ * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1360
+ * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1361
+ * }
1516
1362
  */
1517
1363
  onRemove: PropTypes.func,
1518
-
1519
1364
  /** View attached event, if not it will use default. */
1520
1365
  onView: PropTypes.func,
1521
-
1522
1366
  /** Name of the person who attached the file when uploading the file. */
1523
1367
  ownerName: PropTypes.string,
1524
-
1525
1368
  /** At least one attachment is required. */
1526
1369
  required: PropTypes.bool,
1527
-
1528
1370
  /** Style inline of component. */
1529
1371
  style: PropTypes.object,
1530
-
1531
1372
  /** Unit size name, default auto-detect. */
1532
1373
  unitSize: PropTypes.string,
1533
-
1534
1374
  /** Errors show up when the file upload is corrupted. */
1535
1375
  uploadErrorInfo: PropTypes.object,
1536
-
1537
1376
  /** The view type of files. */
1538
1377
  viewType: PropTypes.oneOf(['detail', 'icon'])
1539
1378
  };