diginet-core-ui 1.3.87 → 1.3.88

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 (438) 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 +6 -2
  230. package/components/accordion/group.js +9 -2
  231. package/components/accordion/index.js +15 -2
  232. package/components/accordion/summary.js +27 -4
  233. package/components/alert/index.js +33 -2
  234. package/components/alert/notify.js +22 -12
  235. package/components/avatar/index.js +81 -22
  236. package/components/badge/index.js +45 -20
  237. package/components/button/icon.js +56 -25
  238. package/components/button/index.js +65 -16
  239. package/components/button/more.js +35 -15
  240. package/components/button/ripple-effect.js +10 -0
  241. package/components/card/body.js +7 -2
  242. package/components/card/extra.js +7 -2
  243. package/components/card/footer.js +7 -2
  244. package/components/card/header.js +7 -2
  245. package/components/card/index.js +22 -2
  246. package/components/chart/Pie/Circle.js +1 -0
  247. package/components/chart/Pie/Sector.js +19 -2
  248. package/components/chart/Pie/Sectors.js +10 -0
  249. package/components/chart/Pie/index.js +36 -4
  250. package/components/chart/Pie-v2/Circle.js +1 -0
  251. package/components/chart/Pie-v2/Sector.js +15 -2
  252. package/components/chart/Pie-v2/Sectors.js +20 -0
  253. package/components/chart/Pie-v2/index.js +38 -11
  254. package/components/chart/bar/Axis.js +12 -0
  255. package/components/chart/bar/Bar.js +35 -13
  256. package/components/chart/bar/Grid.js +18 -0
  257. package/components/chart/bar/Labels.js +18 -0
  258. package/components/chart/bar/Points.js +17 -0
  259. package/components/chart/bar/index.js +26 -6
  260. package/components/chart/bar-v2/Axis.js +12 -0
  261. package/components/chart/bar-v2/Bar.js +36 -15
  262. package/components/chart/bar-v2/Grid.js +18 -0
  263. package/components/chart/bar-v2/Labels.js +18 -0
  264. package/components/chart/bar-v2/Points.js +17 -0
  265. package/components/chart/bar-v2/index.js +26 -6
  266. package/components/chart/line/Axis.js +16 -4
  267. package/components/chart/line/Grid.js +19 -2
  268. package/components/chart/line/Labels.js +18 -0
  269. package/components/chart/line/Path.js +33 -23
  270. package/components/chart/line/Point.js +40 -6
  271. package/components/chart/line/Title.js +3 -0
  272. package/components/chart/line/index.js +35 -12
  273. package/components/chart/line-v2/Axis.js +13 -0
  274. package/components/chart/line-v2/Grid.js +18 -0
  275. package/components/chart/line-v2/Labels.js +18 -0
  276. package/components/chart/line-v2/Path.js +33 -23
  277. package/components/chart/line-v2/Point.js +35 -6
  278. package/components/chart/line-v2/Title.js +3 -0
  279. package/components/chart/line-v2/index.js +30 -12
  280. package/components/check-text/index.js +8 -0
  281. package/components/check-text/interview-confirmation.js +7 -0
  282. package/components/check-text/interview-status.js +7 -0
  283. package/components/chip/attach.js +22 -9
  284. package/components/chip/index.js +33 -6
  285. package/components/collapse/index.js +13 -0
  286. package/components/divider/index.js +13 -2
  287. package/components/form-control/attachment/index.js +202 -41
  288. package/components/form-control/calendar/function.js +207 -153
  289. package/components/form-control/calendar/index.js +46 -21
  290. package/components/form-control/calendar/range.js +28 -11
  291. package/components/form-control/checkbox/index.js +37 -4
  292. package/components/form-control/control/index.js +13 -3
  293. package/components/form-control/date-picker/index-old.js +0 -18
  294. package/components/form-control/date-picker/index.js +99 -23
  295. package/components/form-control/date-range-picker/index.js +180 -44
  296. package/components/form-control/dropdown/index.js +314 -101
  297. package/components/form-control/dropdown-box/index.js +35 -6
  298. package/components/form-control/form/index.js +2 -0
  299. package/components/form-control/form-group/index.js +6 -1
  300. package/components/form-control/helper-text/index.js +9 -2
  301. package/components/form-control/input-base/index.js +73 -9
  302. package/components/form-control/label/index.js +12 -2
  303. package/components/form-control/money-input/index.js +143 -54
  304. package/components/form-control/number-input/index.js +124 -26
  305. package/components/form-control/number-input/index2.js +119 -78
  306. package/components/form-control/phone-input/index.js +85 -23
  307. package/components/form-control/radio/index.js +28 -9
  308. package/components/form-control/text-input/index.js +46 -10
  309. package/components/form-control/time-picker/index.js +71 -14
  310. package/components/form-control/time-picker/swiper.js +73 -21
  311. package/components/form-control/toggle/index.js +23 -8
  312. package/components/form-view/helper-text.js +2 -2
  313. package/components/form-view/index.js +14 -0
  314. package/components/form-view/input.js +13 -2
  315. package/components/form-view/label.js +2 -0
  316. package/components/grid/Col.js +16 -2
  317. package/components/grid/Container.js +21 -2
  318. package/components/grid/Row.js +21 -2
  319. package/components/grid/index.js +44 -2
  320. package/components/image/index.js +22 -2
  321. package/components/index.js +31 -62
  322. package/components/list/list-item-action.js +9 -0
  323. package/components/list/list-item-icon.js +9 -0
  324. package/components/list/list-item-text.js +5 -0
  325. package/components/list/list-item.js +11 -0
  326. package/components/list/list.js +13 -0
  327. package/components/list/sub-header.js +4 -0
  328. package/components/modal/body.js +6 -2
  329. package/components/modal/footer.js +11 -2
  330. package/components/modal/header.js +12 -2
  331. package/components/modal/index.js +10 -2
  332. package/components/modal/modal.js +52 -11
  333. package/components/others/extra/index.js +10 -3
  334. package/components/others/import/index.js +7 -0
  335. package/components/others/option-wrapper/index.js +7 -4
  336. package/components/others/scrollbar/index.js +3 -0
  337. package/components/paging/page-info.js +99 -35
  338. package/components/paging/page-selector.js +35 -7
  339. package/components/paging/page-selector2.js +74 -35
  340. package/components/paper/index.js +11 -0
  341. package/components/popover/body.js +6 -2
  342. package/components/popover/footer.js +11 -2
  343. package/components/popover/header.js +7 -2
  344. package/components/popover/index.js +146 -54
  345. package/components/popup/danger_popup.js +19 -0
  346. package/components/popup/index.js +48 -2
  347. package/components/popup/proposals_popup.js +49 -10
  348. package/components/popup/v2/index.js +47 -13
  349. package/components/progress/circular.js +48 -10
  350. package/components/progress/linear.js +20 -4
  351. package/components/rating/index.js +32 -8
  352. package/components/slider/slider-container.js +40 -3
  353. package/components/slider/slider-item.js +25 -10
  354. package/components/status/index.js +14 -2
  355. package/components/tab/tab-container.js +18 -4
  356. package/components/tab/tab-header.js +24 -4
  357. package/components/tab/tab-panel.js +16 -4
  358. package/components/tab/tab.js +30 -6
  359. package/components/tooltip/index.js +97 -12
  360. package/components/tooltip/portal.js +2 -0
  361. package/components/transfer/index.js +70 -25
  362. package/components/tree-view/index.js +202 -62
  363. package/components/typography/index.js +70 -47
  364. package/global/index.js +8 -0
  365. package/icons/basic.js +232 -0
  366. package/icons/effect.js +32 -15
  367. package/icons/general/clock/clock.js +2 -0
  368. package/icons/general/color-handler/background.js +2 -0
  369. package/icons/general/color-handler/text.js +2 -0
  370. package/icons/general/emoji/emoji.js +2 -0
  371. package/icons/general/font-properties/bold.js +2 -0
  372. package/icons/general/font-properties/font-family.js +2 -0
  373. package/icons/general/font-properties/font-size.js +2 -0
  374. package/icons/general/font-properties/italic.js +2 -0
  375. package/icons/general/font-properties/underline.js +2 -0
  376. package/icons/general/hyperlink/hyperlink.js +2 -0
  377. package/icons/general/indent/decrease.js +2 -0
  378. package/icons/general/indent/increase.js +2 -0
  379. package/icons/general/list/bullets.js +2 -0
  380. package/icons/general/list/numbering.js +2 -0
  381. package/icons/general/picture/picture.js +2 -0
  382. package/icons/general/steps/redo.js +2 -0
  383. package/icons/general/steps/undo.js +2 -0
  384. package/icons/general/text-align/center.js +2 -0
  385. package/icons/general/text-align/justify.js +2 -0
  386. package/icons/general/text-align/left.js +2 -0
  387. package/icons/general/text-align/right.js +2 -0
  388. package/icons/menu/dhr.js +1 -2
  389. package/icons/menu/index.js +2 -2
  390. package/icons/menu/v2/index.js +15 -2
  391. package/package.json +42 -42
  392. package/readme.md +1027 -1022
  393. package/styles/animation.js +58 -15
  394. package/styles/color-helper.js +157 -127
  395. package/styles/colors.js +9 -17
  396. package/styles/general.js +80 -18
  397. package/styles/typography.js +4 -4
  398. package/styles/utils.js +20 -19
  399. package/theme/createBreakpoints.js +18 -7
  400. package/theme/make-styles.js +5 -2
  401. package/theme/set-theme.js +9 -6
  402. package/theme/settings.js +2 -3
  403. package/theme/theme-provider.js +1 -0
  404. package/utils/array/array.js +54 -45
  405. package/utils/{classNames.js → classNames/index.js} +5 -0
  406. package/utils/console.js +6 -0
  407. package/utils/date.js +138 -69
  408. package/utils/error/error.js +11 -3
  409. package/utils/error/errors.js +147 -100
  410. package/utils/getFileType.js +9 -0
  411. package/utils/handleBreakpoints.js +5 -0
  412. package/utils/intersectionObserver.js +5 -0
  413. package/utils/{isMobile.js → isMobile/index.js} +0 -0
  414. package/utils/iterator.js +9 -0
  415. package/utils/map-parent.js +10 -3
  416. package/utils/object/extend.js +10 -0
  417. package/utils/object/object.js +11 -12
  418. package/utils/parseHTML.js +1 -0
  419. package/utils/promisify.js +5 -0
  420. package/utils/randomString.js +7 -0
  421. package/utils/remove-unicode.js +1 -0
  422. package/utils/render-portal.js +9 -1
  423. package/utils/renderHTML.js +6 -4
  424. package/utils/renderIcon.js +19 -9
  425. package/utils/sb-template.js +5 -6
  426. package/utils/string/capitalize.js +1 -0
  427. package/utils/string/capitalizeSentenceCase.js +2 -0
  428. package/utils/string/string.js +13 -0
  429. package/utils/type.js +21 -0
  430. package/utils/updatePosition.js +5 -4
  431. package/utils/useDelayUnmount.js +4 -0
  432. package/utils/useElementSize.js +3 -9
  433. package/utils/useEventListener.js +6 -12
  434. package/utils/useInput.js +6 -0
  435. package/utils/{useMediaQuery.js → useMediaQuery/index.js} +10 -8
  436. package/utils/useOnClickOutside.js +4 -2
  437. package/utils/usePortal.js +19 -12
  438. package/utils/validate.js +53 -39
@@ -1,10 +1,13 @@
1
1
  /* eslint-disable react/prop-types */
2
+
2
3
  /** @jsxRuntime classic */
4
+
3
5
  /** @jsx jsx */
4
6
  import PropTypes from 'prop-types';
5
7
  import { jsx, css } from '@emotion/core';
6
8
  import theme from "../../../theme/settings";
7
9
  import { typography } from "../../../styles/typography";
10
+
8
11
  const Labels = ({
9
12
  getX,
10
13
  getY,
@@ -54,11 +57,13 @@ const Labels = ({
54
57
  fill: ${theme.colors.secondary};
55
58
  cursor: 'pointer';
56
59
  `;
60
+
57
61
  if (labelsVisible) {
58
62
  let xLabels;
59
63
  let yLabels;
60
64
  let tile = 4;
61
65
  let tile2 = 9;
66
+
62
67
  const TiLe = () => {
63
68
  if (viewBoxWidth >= 800) {
64
69
  return tile;
@@ -66,6 +71,7 @@ const Labels = ({
66
71
  return tile2;
67
72
  }
68
73
  };
74
+
69
75
  xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
70
76
  key: x,
71
77
  css: LabelCSS,
@@ -84,9 +90,11 @@ const Labels = ({
84
90
  }, labelsFormatX(point.name))));
85
91
  const yLabelsRange = [];
86
92
  const yStep = labelsCountY > 0 ? labelsCountY : 1;
93
+
87
94
  for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
88
95
  yLabelsRange.push(i);
89
96
  }
97
+
90
98
  yLabels = yLabelsRange.map(quantity => jsx("text", {
91
99
  key: quantity,
92
100
  fill: labelsColor,
@@ -108,6 +116,7 @@ const Labels = ({
108
116
  return null;
109
117
  }
110
118
  };
119
+
111
120
  Labels.defaultProps = {
112
121
  getX: x => x,
113
122
  getY: quantity => quantity,
@@ -127,10 +136,13 @@ Labels.defaultProps = {
127
136
  Labels.propTypes = {
128
137
  /** the getX position x on Ox*/
129
138
  getX: PropTypes.func,
139
+
130
140
  /** the getY position y on Oy */
131
141
  getY: PropTypes.func,
142
+
132
143
  /** the labelsColor change color */
133
144
  labelsColor: PropTypes.string,
145
+
134
146
  /** change style show of label ['', 'italic'], default: 'italic' */
135
147
  labelStyle: PropTypes.string,
136
148
  labelsCountY: PropTypes.number,
@@ -140,16 +152,22 @@ Labels.propTypes = {
140
152
  labelsOffsetX: PropTypes.number,
141
153
  labelsOffsetY: PropTypes.number,
142
154
  labelsStepX: PropTypes.number,
155
+
143
156
  /** change show or hiden of label */
144
157
  labelsVisible: PropTypes.bool,
158
+
145
159
  /** the maxX is maximum of Ox quantity returned by data*/
146
160
  maxX: PropTypes.number,
161
+
147
162
  /** the maxY is maximum of Oy quantity returned by data*/
148
163
  maxY: PropTypes.number,
164
+
149
165
  /** the minX is minimum of OX quantity returned by data*/
150
166
  minX: PropTypes.number,
167
+
151
168
  /** the minY is minimum of Oy quantity returned by data*/
152
169
  minY: PropTypes.number,
170
+
153
171
  /** the unitWidth */
154
172
  unitWidth: PropTypes.number
155
173
  };
@@ -1,7 +1,9 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import PropTypes from "prop-types";
4
5
  import { jsx } from '@emotion/core';
6
+
5
7
  const Points = ({
6
8
  data,
7
9
  getX,
@@ -45,37 +47,52 @@ const Points = ({
45
47
  }, jsx("title", null, point.name, " : ", point.quantity));
46
48
  })) : null;
47
49
  };
50
+
48
51
  Points.propTypes = {
49
52
  data: PropTypes.arrayOf(PropTypes.shape({
50
53
  x: PropTypes.number,
51
54
  quantity: PropTypes.number
52
55
  })).isRequired,
56
+
53
57
  /** the getX position x on Ox*/
54
58
  getX: PropTypes.func,
59
+
55
60
  /** the getY position y on Oy */
56
61
  getY: PropTypes.func,
62
+
57
63
  /** the maxX is maximum of Ox quantity returned by data*/
58
64
  maxX: PropTypes.number,
65
+
59
66
  /** the maxY is maximum of Oy quantity returned by data*/
60
67
  maxY: PropTypes.number,
68
+
61
69
  /** the minX is minimum of OX quantity returned by data*/
62
70
  minX: PropTypes.number,
71
+
63
72
  /** the minY is minimum of Oy quantity returned by data*/
64
73
  minY: PropTypes.number,
74
+
65
75
  /** change the inner color of the point button */
66
76
  pointsColor: PropTypes.string,
77
+
67
78
  /** show data information when hovering in the area containing the column */
68
79
  pointsIsHoverOnZone: PropTypes.bool,
80
+
69
81
  /** function change event hover */
70
82
  onHover: PropTypes.func,
83
+
71
84
  /** change the radius of the point is created */
72
85
  pointsRadius: PropTypes.number,
86
+
73
87
  /** change the border color of the point button */
74
88
  pointsStrokeColor: PropTypes.string,
89
+
75
90
  /** the thickness of the inner core point */
76
91
  pointsStrokeWidth: PropTypes.number,
92
+
77
93
  /** show or hiden point */
78
94
  pointsVisible: PropTypes.bool,
95
+
79
96
  /** the unitWidth */
80
97
  unitWidth: PropTypes.number
81
98
  };
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import PropTypes from 'prop-types';
4
5
  import { memo, forwardRef } from 'react';
@@ -21,8 +22,7 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
21
22
  labelsHeightX,
22
23
  ...props
23
24
  }, ref) => {
24
- const dataSource = data.map((item, i) => ({
25
- ...item,
25
+ const dataSource = data.map((item, i) => ({ ...item,
26
26
  x: i
27
27
  }));
28
28
  const UNIT_WIDTH = 1;
@@ -30,39 +30,48 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
30
30
  allowNumber: false,
31
31
  allowSymbol: false
32
32
  });
33
+
33
34
  const round = n => {
34
35
  return Math.round(n * 100) / 100;
35
36
  };
37
+
36
38
  const getMinX = () => {
37
39
  return dataSource.length > 0 ? dataSource[0].x : 0;
38
40
  };
41
+
39
42
  const getMaxX = () => {
40
43
  return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
41
44
  };
45
+
42
46
  const getMinY = () => {
43
47
  return 0;
44
48
  };
49
+
45
50
  const getMaxY = () => {
46
51
  const yStep = labelsCountY > 0 ? labelsCountY : 1;
47
52
  const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
48
53
  return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
49
54
  };
55
+
50
56
  const getSvgX = x => {
51
57
  const minX = getMinX();
52
58
  const maxX = getMaxX();
53
59
  const paddingLeft = getLabelsYWidth();
54
60
  return round((x - minX) / (maxX + 1 - minX) * (Math.abs(viewBoxWidth) - paddingLeft));
55
61
  };
62
+
56
63
  const getSvgY = y => {
57
64
  const paddingBottom = labelsVisible ? labelsHeightX + labelsOffsetX : 0;
58
65
  const height = Math.abs(viewBoxHeight) - paddingBottom;
59
66
  const maxY = getMaxY();
60
67
  return round(height - y / maxY * height);
61
68
  };
69
+
62
70
  const getLabelsYWidth = () => {
63
71
  const maxY = getMaxY();
64
72
  return labelsVisible ? maxY.toString().length * labelsCharacterWidth + labelsOffsetY : 0;
65
73
  };
74
+
66
75
  const minX = getMinX();
67
76
  const maxX = getMaxX();
68
77
  const maxY = getMaxY();
@@ -87,11 +96,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
87
96
  overflow: 'visible',
88
97
  margin: `${getLabelsYWidth() * 2}`
89
98
  }
90
- }, jsx(Axis, {
91
- ...props,
99
+ }, jsx(Axis, { ...props,
92
100
  ...commonProps
93
- }), jsx(Grid, {
94
- ...props,
101
+ }), jsx(Grid, { ...props,
95
102
  ...commonProps
96
103
  }), jsx(Bars, {
97
104
  data: dataSource,
@@ -124,32 +131,45 @@ BarChart.propTypes = {
124
131
  x: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
125
132
  quantity: PropTypes.number
126
133
  })).isRequired,
134
+
127
135
  /** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
128
136
  viewBoxHeight: PropTypes.number,
137
+
129
138
  /** drawn Ratio of viewBoxWidth entered by user, default is: 500px */
130
139
  viewBoxWidth: PropTypes.number,
140
+
131
141
  /** change color of Bar in BarChart */
132
142
  barsColor: PropTypes.string,
143
+
133
144
  /** change ColumB grid display style ['full' , 'horizontal', 'none']*/
134
145
  GridLines: PropTypes.string,
135
146
  //** change style show of label (default, italic) */
136
147
  labelStyle: PropTypes.string,
148
+
137
149
  /** the axisVisible Hide or show the Axis axis */
138
150
  axisVisible: PropTypes.bool,
151
+
139
152
  /** the axisColor change color */
140
153
  axisColor: PropTypes.string,
154
+
141
155
  /** change color of grid Columb*/
142
156
  gridColor: PropTypes.string,
157
+
143
158
  /** show data information when hovering in the area containing the column */
144
159
  pointsIsHoverOnZone: PropTypes.bool,
160
+
145
161
  /** show or hiden point */
146
162
  pointsVisible: PropTypes.bool,
163
+
147
164
  /** change the inner color of the point button */
148
165
  pointsColor: PropTypes.string,
166
+
149
167
  /** change the border color of the point button */
150
168
  pointsStrokeColor: PropTypes.string,
169
+
151
170
  /** the thickness of the inner core point */
152
171
  pointsStrokeWidth: PropTypes.number,
172
+
153
173
  /** change the radius of the point is created */
154
174
  pointsRadius: PropTypes.number,
155
175
  ...Bars.propTypes,
@@ -1,7 +1,9 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import PropTypes from "prop-types";
4
5
  import { jsx } from '@emotion/core';
6
+
5
7
  const Axis = ({
6
8
  axisColor,
7
9
  axisVisible,
@@ -31,6 +33,7 @@ const Axis = ({
31
33
  y2: getY(maxY + 5)
32
34
  })) : null;
33
35
  };
36
+
34
37
  Axis.defaultProps = {
35
38
  axisColor: '#7F828E',
36
39
  axisOpacity: 1,
@@ -43,24 +46,33 @@ Axis.defaultProps = {
43
46
  Axis.propTypes = {
44
47
  /** the axisColor change color */
45
48
  axisColor: PropTypes.string,
49
+
46
50
  /** the axisOpacity property sets the opacity of an element*/
47
51
  axisOpacity: PropTypes.number,
52
+
48
53
  /** the axisVisible Hide or show the Axis axis */
49
54
  axisVisible: PropTypes.bool,
55
+
50
56
  /** the axisWidth change the thickness of the column */
51
57
  axisWidth: PropTypes.number,
58
+
52
59
  /** the getX position x on Ox*/
53
60
  getX: PropTypes.func,
61
+
54
62
  /** the getY position y on Oy */
55
63
  getY: PropTypes.func,
64
+
56
65
  /** the maxX is maximum of Ox quantity returned by data*/
57
66
  maxX: PropTypes.number,
67
+
58
68
  /** the maxY is maximum of Oy quantity returned by data*/
59
69
  maxY: PropTypes.number,
70
+
60
71
  /** the minX is minimum of OX quantity returned by data*/
61
72
  minX: PropTypes.number,
62
73
  //** the minY is minimum of Oy quantity returned by data*/
63
74
  minY: PropTypes.number,
75
+
64
76
  /** the unitWidth */
65
77
  unitWidth: PropTypes.number
66
78
  };
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { memo, useRef, forwardRef, useState } from 'react';
4
5
  import { css, jsx } from '@emotion/core';
@@ -20,15 +21,14 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
20
21
  minX,
21
22
  minY,
22
23
  unitWidth,
23
- onClick
24
- // ...props
24
+ onClick // ...props
25
+
25
26
  }, ref) => {
26
27
  const [id] = useState(randomString(6, {
27
28
  allowNumber: false,
28
29
  allowSymbol: false
29
- }));
30
+ })); // Start create css in Component
30
31
 
31
- // Start create css in Component
32
32
  const barChartCSS = css`
33
33
  position: relative;
34
34
  opacity: 0.7;
@@ -43,19 +43,18 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
43
43
  const textChartCSS = css`
44
44
  text-anchor: middle;
45
45
  ${typography.paragraph3};
46
- `;
47
- // End create css in Component
48
-
46
+ `; // End create css in Component
49
47
  // Create variable to calculate
48
+
50
49
  const round = n => {
51
50
  return Math.round(n * 100) / 100;
52
51
  };
52
+
53
53
  const barChart = useRef(null);
54
54
  const BARS_MARGIN_DEFAULT = 0.16;
55
55
  const margin = barsMargin >= 0 && barsMargin < unitWidth / 2 ? barsMargin : BARS_MARGIN_DEFAULT;
56
- const barsWidth = unitWidth - margin * 3;
56
+ const barsWidth = unitWidth - margin * 3; // create drawing function tooltips in different positions
57
57
 
58
- // create drawing function tooltips in different positions
59
58
  const topTooltipPath = (width, height, offset, radius) => {
60
59
  const left = -width / 2;
61
60
  const right = width / 2;
@@ -74,6 +73,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
74
73
  H ${offset}
75
74
  L 0,0 z`;
76
75
  };
76
+
77
77
  const bottomTooltipPath = (width, height, offset, radius) => {
78
78
  const left = -width / 2;
79
79
  const right = width / 2;
@@ -92,6 +92,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
92
92
  H ${offset}
93
93
  L 0,0 z`;
94
94
  };
95
+
95
96
  const leftTooltipPath = (width, height, offset, radius) => {
96
97
  const left = -offset - width;
97
98
  const right = -offset;
@@ -110,6 +111,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
110
111
  V ${offset}
111
112
  L 0,0 z`;
112
113
  };
114
+
113
115
  const rightTooltipPath = (width, height, offset, radius) => {
114
116
  const left = offset;
115
117
  const right = offset + width;
@@ -127,41 +129,49 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
127
129
  Q ${left},${bottom} ${left},${bottom - radius}
128
130
  V ${offset}
129
131
  L 0,0 z`;
130
- };
132
+ }; // Create event management function
133
+
131
134
 
132
- // Create event management function
133
135
  const MouseEnterTarget = (e, i) => {
134
136
  if (onEnter) onEnter(e, i);
135
137
  document.getElementById(`${id}` + i).style.display = 'block';
136
138
  };
139
+
137
140
  const MouseLeaveTarget = (e, i) => {
138
141
  if (onRemote) onRemote(e, i);
139
142
  document.getElementById(`${id}` + i).style.display = 'none';
140
143
  };
144
+
141
145
  const handleChange = event => {
142
146
  if (onClick) onClick(event);
143
- };
147
+ }; // Create function to display tooltip by position
148
+
144
149
 
145
- // Create function to display tooltip by position
146
150
  const getPlacement = (point, i) => {
147
151
  // convert number -> string
148
152
  const h = `${point.quantity}`;
149
153
  var Width = 0;
154
+
150
155
  if (h.length == 2 || h.length == 1 || h.length == 3) {
151
156
  Width += 35;
152
157
  }
158
+
153
159
  if (h.length == 4 || h.length == 5) {
154
160
  Width += 40;
155
161
  }
162
+
156
163
  if (h.length == 6 || h.length == 7) {
157
164
  Width += 50;
158
165
  }
166
+
159
167
  if (h.length == 8 || h.length == 9) {
160
168
  Width += 70;
161
169
  }
170
+
162
171
  if (h.length == 10 || h.length == 11) {
163
172
  Width += 90;
164
173
  }
174
+
165
175
  if (getX(point.x + unitWidth / 2) < 20) {
166
176
  return jsx("g", {
167
177
  id: `${id}` + i,
@@ -185,6 +195,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
185
195
  fill: "#fff"
186
196
  }, point.quantity));
187
197
  }
198
+
188
199
  if (getX(point.x + unitWidth / 2) > viewBoxWidth) {
189
200
  return jsx("g", {
190
201
  id: `${id}` + i,
@@ -208,6 +219,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
208
219
  fill: "#fff"
209
220
  }, point.quantity));
210
221
  }
222
+
211
223
  if (getY(point.quantity + 0.5) > 10) {
212
224
  return jsx("g", {
213
225
  id: `${id}` + i,
@@ -230,6 +242,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
230
242
  fill: "#fff"
231
243
  }, point.quantity));
232
244
  }
245
+
233
246
  return jsx("g", {
234
247
  id: `${id}` + i,
235
248
  className: 'DGN-Tooltip-Bar',
@@ -250,9 +263,9 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
250
263
  css: textChartCSS,
251
264
  fill: "#fff"
252
265
  }, point.quantity));
253
- };
266
+ }; // Create function to display data
267
+
254
268
 
255
- // Create function to display data
256
269
  const getPlacementNotHover = (point, i) => {
257
270
  return jsx("g", {
258
271
  id: `${id}` + i,
@@ -268,6 +281,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
268
281
  fill: barsColor
269
282
  }, point.quantity));
270
283
  };
284
+
271
285
  return hoverTooltip ? jsx("g", {
272
286
  className: 'DGN-CUI-Bar',
273
287
  ref: ref
@@ -316,26 +330,33 @@ Bars.propTypes = {
316
330
  /** change color of Bar in BarChart */
317
331
  barsColor: PropTypes.string,
318
332
  barsMargin: PropTypes.number,
333
+
319
334
  /** change the percentage of blurred colors on the column */
320
335
  barsOpacity: PropTypes.number,
321
336
  data: PropTypes.arrayOf(PropTypes.shape({
322
337
  x: PropTypes.number,
323
338
  quantity: PropTypes.number
324
339
  })).isRequired,
340
+
325
341
  /** the getX position x on Ox*/
326
342
  getX: PropTypes.func,
343
+
327
344
  /** the getY position y on Oy */
328
345
  getY: PropTypes.func,
329
346
  labelsHeightX: Labels.propTypes.labelsHeightX,
330
347
  labelsOffsetX: Labels.propTypes.labelsOffsetX,
331
348
  labelsOffsetY: Labels.propTypes.labelsOffsetY,
332
349
  labelsWidthY: PropTypes.number,
350
+
333
351
  /** the minX is minimum of OX quantity returned by data*/
334
352
  minX: PropTypes.number.isRequired,
353
+
335
354
  /** the minY is minimum of Oy quantity returned by data*/
336
355
  minY: PropTypes.number.isRequired,
356
+
337
357
  /** the unitWidth */
338
358
  unitWidth: PropTypes.number,
359
+
339
360
  /** Shows tooltip containing data on hover */
340
361
  hoverTooltip: PropTypes.bool
341
362
  };
@@ -1,7 +1,9 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import PropTypes from "prop-types";
4
5
  import { jsx } from '@emotion/core';
6
+
5
7
  const Grid = ({
6
8
  getX,
7
9
  getY,
@@ -17,6 +19,7 @@ const Grid = ({
17
19
  }) => {
18
20
  let gridX = [];
19
21
  let gridY = [];
22
+
20
23
  for (let i = minX; i <= maxX + unitWidth; i++) {
21
24
  gridX.push(jsx("line", {
22
25
  key: i,
@@ -26,7 +29,9 @@ const Grid = ({
26
29
  y2: getY(maxY + 5)
27
30
  }));
28
31
  }
32
+
29
33
  const yStep = labelsCountY > 0 ? labelsCountY : unitWidth;
34
+
30
35
  for (let i = minY; i <= maxY; i += Math.floor(maxY / yStep)) {
31
36
  gridY.push(jsx("line", {
32
37
  key: i,
@@ -36,6 +41,7 @@ const Grid = ({
36
41
  y2: getY(i)
37
42
  }));
38
43
  }
44
+
39
45
  if (GridLines === 'full') {
40
46
  return jsx("g", {
41
47
  className: 'DGN-Grid-BarChart',
@@ -43,6 +49,7 @@ const Grid = ({
43
49
  strokeWidth: gridWidth
44
50
  }, gridX, gridY);
45
51
  }
52
+
46
53
  if (GridLines === 'horizontal') {
47
54
  return jsx("g", {
48
55
  className: 'DGN-Grid-BarChart',
@@ -50,6 +57,7 @@ const Grid = ({
50
57
  strokeWidth: gridWidth
51
58
  }, gridY);
52
59
  }
60
+
53
61
  if (GridLines === 'none') {
54
62
  return null;
55
63
  } else {
@@ -60,27 +68,37 @@ const Grid = ({
60
68
  }, gridY);
61
69
  }
62
70
  };
71
+
63
72
  Grid.propTypes = {
64
73
  /** the getX position x on Ox*/
65
74
  getX: PropTypes.func,
75
+
66
76
  /** the getY position y on Oy */
67
77
  getY: PropTypes.func,
78
+
68
79
  /** change color of grid Columb*/
69
80
  gridColor: PropTypes.string,
81
+
70
82
  /** change Columb grid display style ['full' , 'horizontal', 'none']*/
71
83
  GridLines: PropTypes.string,
84
+
72
85
  /** hiden or show grid columb*/
73
86
  gridVisible: PropTypes.bool,
74
87
  gridWidth: PropTypes.number,
75
88
  labelsCountY: PropTypes.number,
89
+
76
90
  /** the maxX is maximum of Ox quantity returned by data*/
77
91
  maxX: PropTypes.number,
92
+
78
93
  /** the maxY is maximum of Oy quantity returned by data*/
79
94
  maxY: PropTypes.number,
95
+
80
96
  /** the minX is minimum of OX quantity returned by data*/
81
97
  minX: PropTypes.number,
98
+
82
99
  /** the minY is minimum of Oy quantity returned by data*/
83
100
  minY: PropTypes.number,
101
+
84
102
  /** the unitWidth */
85
103
  unitWidth: PropTypes.number
86
104
  };
@@ -1,10 +1,13 @@
1
1
  /* eslint-disable react/prop-types */
2
+
2
3
  /** @jsxRuntime classic */
4
+
3
5
  /** @jsx jsx */
4
6
  import PropTypes from 'prop-types';
5
7
  import { jsx, css } from '@emotion/core';
6
8
  import theme from "../../../theme/settings";
7
9
  import { typography } from "../../../styles/typography";
10
+
8
11
  const Labels = ({
9
12
  getX,
10
13
  getY,
@@ -54,11 +57,13 @@ const Labels = ({
54
57
  fill: ${theme.colors.secondary};
55
58
  cursor: 'pointer';
56
59
  `;
60
+
57
61
  if (labelsVisible) {
58
62
  let xLabels;
59
63
  let yLabels;
60
64
  let tile = 4;
61
65
  let tile2 = 9;
66
+
62
67
  const TiLe = () => {
63
68
  if (viewBoxWidth >= 800) {
64
69
  return tile;
@@ -66,6 +71,7 @@ const Labels = ({
66
71
  return tile2;
67
72
  }
68
73
  };
74
+
69
75
  xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
70
76
  key: x,
71
77
  css: LabelCSS,
@@ -84,9 +90,11 @@ const Labels = ({
84
90
  }, labelsFormatX(point.name))));
85
91
  const yLabelsRange = [];
86
92
  const yStep = labelsCountY > 0 ? labelsCountY : 1;
93
+
87
94
  for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
88
95
  yLabelsRange.push(i);
89
96
  }
97
+
90
98
  yLabels = yLabelsRange.map(quantity => jsx("text", {
91
99
  key: quantity,
92
100
  fill: labelsColor,
@@ -108,6 +116,7 @@ const Labels = ({
108
116
  return null;
109
117
  }
110
118
  };
119
+
111
120
  Labels.defaultProps = {
112
121
  getX: x => x,
113
122
  getY: quantity => quantity,
@@ -127,10 +136,13 @@ Labels.defaultProps = {
127
136
  Labels.propTypes = {
128
137
  /** the getX position x on Ox*/
129
138
  getX: PropTypes.func,
139
+
130
140
  /** the getY position y on Oy */
131
141
  getY: PropTypes.func,
142
+
132
143
  /** the labelsColor change color */
133
144
  labelsColor: PropTypes.string,
145
+
134
146
  /** change style show of label ['', 'italic'], default: 'italic' */
135
147
  labelStyle: PropTypes.string,
136
148
  labelsCountY: PropTypes.number,
@@ -140,16 +152,22 @@ Labels.propTypes = {
140
152
  labelsOffsetX: PropTypes.number,
141
153
  labelsOffsetY: PropTypes.number,
142
154
  labelsStepX: PropTypes.number,
155
+
143
156
  /** change show or hiden of label */
144
157
  labelsVisible: PropTypes.bool,
158
+
145
159
  /** the maxX is maximum of Ox quantity returned by data*/
146
160
  maxX: PropTypes.number,
161
+
147
162
  /** the maxY is maximum of Oy quantity returned by data*/
148
163
  maxY: PropTypes.number,
164
+
149
165
  /** the minX is minimum of OX quantity returned by data*/
150
166
  minX: PropTypes.number,
167
+
151
168
  /** the minY is minimum of Oy quantity returned by data*/
152
169
  minY: PropTypes.number,
170
+
153
171
  /** the unitWidth */
154
172
  unitWidth: PropTypes.number
155
173
  };