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,5 +1,7 @@
1
1
  /* eslint-disable react/prop-types */
2
+
2
3
  /** @jsxRuntime classic */
4
+
3
5
  /** @jsx jsx */
4
6
  import { useState } from 'react';
5
7
  import PropTypes from 'prop-types';
@@ -7,6 +9,7 @@ import Sector from "./Sector";
7
9
  import { jsx, css } from '@emotion/core';
8
10
  import { randomString } from "../../../utils";
9
11
  import { typography } from "../../../styles/typography";
12
+
10
13
  const Sectors = ({
11
14
  center,
12
15
  data,
@@ -34,21 +37,25 @@ const Sectors = ({
34
37
  const total = data.reduce((prev, current) => current.quantity + prev, 0);
35
38
  let angleStart = startAngle;
36
39
  let angleEnd = startAngle;
40
+
37
41
  const getPath = (d, i) => {
38
42
  const anglePosition = (angleStart + angleEnd) / 2;
39
43
  var rotateX = 0;
40
44
  var rotateY = 0;
41
45
  var xte = 0;
42
46
  var yte = 0;
47
+
43
48
  const measureText = (str, fontSize = 16) => {
44
49
  const widths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2765625, 0.3546875, 0.5546875, 0.5546875, 0.8890625, 0.665625, 0.190625, 0.3328125, 0.3328125, 0.3890625, 0.5828125, 0.2765625, 0.3328125, 0.2765625, 0.3015625, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.2765625, 0.2765625, 0.584375, 0.5828125, 0.584375, 0.5546875, 1.0140625, 0.665625, 0.665625, 0.721875, 0.721875, 0.665625, 0.609375, 0.7765625, 0.721875, 0.2765625, 0.5, 0.665625, 0.5546875, 0.8328125, 0.721875, 0.7765625, 0.665625, 0.7765625, 0.721875, 0.665625, 0.609375, 0.721875, 0.665625, 0.94375, 0.665625, 0.665625, 0.609375, 0.2765625, 0.3546875, 0.2765625, 0.4765625, 0.5546875, 0.3328125, 0.5546875, 0.5546875, 0.5, 0.5546875, 0.5546875, 0.2765625, 0.5546875, 0.5546875, 0.221875, 0.240625, 0.5, 0.221875, 0.8328125, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.3328125, 0.5, 0.2765625, 0.5546875, 0.5, 0.721875, 0.5, 0.5, 0.5, 0.3546875, 0.259375, 0.353125, 0.5890625];
45
50
  const avg = 0.5279276315789471;
46
51
  return str.split('').map(c => c.charCodeAt(0) < widths.length ? widths[c.charCodeAt(0)] : avg).reduce((cur, acc) => acc + cur) * fontSize;
47
52
  };
53
+
48
54
  const xPath = center + center * Math.cos(Math.PI * anglePosition / 180);
49
55
  const yPath = center + center * Math.sin(Math.PI * anglePosition / 180);
50
56
  const x1Path = center + center * 1.3 * Math.cos(Math.PI * anglePosition / 180);
51
57
  const y1Path = center + center * 1.3 * Math.sin(Math.PI * anglePosition / 180);
58
+
52
59
  if (anglePosition > 271 || anglePosition < 89) {
53
60
  rotateX += x1Path + measureText((d.quantity / total * 100).toFixed(2) + '%') + 5;
54
61
  rotateY += y1Path;
@@ -60,6 +67,7 @@ const Sectors = ({
60
67
  xte += x1Path - 30;
61
68
  yte += y1Path - 6;
62
69
  }
70
+
63
71
  const path1 = `
64
72
  M${xPath},${yPath}
65
73
  L${x1Path},${y1Path}
@@ -119,6 +127,7 @@ const Sectors = ({
119
127
  fill: d.color
120
128
  }, (d.quantity / total * 100).toFixed(2), '%'));
121
129
  };
130
+
122
131
  return total > 0 ? jsx("g", null, data.map((d, i) => {
123
132
  const isLarge = d.quantity / total > 0.5;
124
133
  const angle = 360 * d.quantity / total;
@@ -141,16 +150,19 @@ const Sectors = ({
141
150
  z
142
151
  `;
143
152
  angleEnd += angleMargin;
153
+
144
154
  const MouseEnterTarget = (d, e, i) => {
145
155
  if (onSectorHover) onSectorHover(d, i, e);
146
156
  document.getElementById(`${id}` + i).style.display = 'block';
147
157
  document.getElementById(`${id1}` + i).style.display = 'block';
148
158
  };
159
+
149
160
  const MouseLeaveTarget = (e, i) => {
150
161
  if (onSectorHover) onSectorHover(null, null, e);
151
162
  document.getElementById(`${id}` + i).style.display = 'none';
152
163
  document.getElementById(`${id1}` + i).style.display = 'none';
153
164
  };
165
+
154
166
  return jsx("g", {
155
167
  key: i,
156
168
  id: 'sector' + i
@@ -173,6 +185,7 @@ const Sectors = ({
173
185
  }), getPath(d, i));
174
186
  })) : null;
175
187
  };
188
+
176
189
  Sectors.defaultProps = {
177
190
  expandSize: 10,
178
191
  strokeWidthTooltip: 2,
@@ -182,22 +195,29 @@ Sectors.defaultProps = {
182
195
  };
183
196
  Sectors.propTypes = {
184
197
  center: PropTypes.number.isRequired,
198
+
185
199
  /** The array of elements that appear in the PieChart */
186
200
  data: PropTypes.arrayOf(PropTypes.shape({
187
201
  color: PropTypes.string.isRequired,
188
202
  name: PropTypes.string,
189
203
  quantity: PropTypes.number.isRequired
190
204
  })).isRequired,
205
+
191
206
  /** returns the data of the object to be hover */
192
207
  onSectorHover: PropTypes.func,
208
+
193
209
  /** the Size expand On Hover */
194
210
  expandSize: PropTypes.number,
211
+
195
212
  /** the StrokeWidth change color border and Stroke */
196
213
  strokeColor: Sector.propTypes.strokeColor,
214
+
197
215
  /** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
198
216
  strokeWidth: Sector.propTypes.strokeWidth,
217
+
199
218
  /** The starting angle is drawn in a circle from data first */
200
219
  startAngle: PropTypes.number,
220
+
201
221
  /** */
202
222
  angleMargin: PropTypes.number
203
223
  };
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { useState, useRef, memo, forwardRef } from 'react';
4
5
  import PropTypes from 'prop-types';
@@ -38,28 +39,35 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
38
39
  allowUppercase: false,
39
40
  allowSymbol: false
40
41
  }));
42
+
41
43
  if (data[0] && !data[0].color) {
42
44
  var colors = [];
43
45
  let Count = data.length;
46
+
44
47
  while (colors.length < Count) {
45
48
  do {
46
49
  var makeColorCode = '0123456789ABCDEF';
47
50
  var code = '#';
51
+
48
52
  for (var count = 0; count < 6; count++) {
49
53
  code = code + makeColorCode[Math.floor(Math.random() * 16)];
50
54
  }
51
55
  } while (colors.indexOf(code) >= 0);
56
+
52
57
  colors.push('#' + ('000000' + code.toString(16)).slice(-6));
53
58
  }
59
+
54
60
  for (let i in data) {
55
61
  data[i].color = colors[i];
56
62
  }
57
63
  }
64
+
58
65
  const ZoomIn = () => {
59
66
  let zoom = 0;
60
67
  zoom = (width + height) / 2;
61
68
  return zoom;
62
69
  };
70
+
63
71
  const svgCSS = css`
64
72
  position: relative;
65
73
  display: block;
@@ -98,24 +106,23 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
98
106
  `;
99
107
  const padding1 = ZoomIn() / 10;
100
108
  var padding = 0;
109
+
101
110
  if (padding1 >= 60) {
102
111
  padding += padding1 / 2;
103
112
  } else {
104
113
  padding += padding1;
105
114
  }
115
+
106
116
  const dem = data.length;
107
117
  const position = (ZoomIn() - padding * 2) / dem;
108
118
  const center = ZoomIn() / 4;
109
119
  const dataWithValue = data.filter(d => d.quantity > 0);
110
120
  const [isExpanded, setExpanded] = useState('false');
111
- const expandedIndex = useRef(null);
112
- // const dataSource = data.map((item, i) => ({ ...item, x: i * position }));
113
- const DataTitle = data.map((item, i) => ({
114
- ...item,
115
- x: position + i * 10
116
- }));
121
+ const expandedIndex = useRef(null); // const dataSource = data.map((item, i) => ({ ...item, x: i * position }));
117
122
 
118
- // const measureText = (str, fontSize = 16) => {
123
+ const DataTitle = data.map((item, i) => ({ ...item,
124
+ x: position + i * 10
125
+ })); // const measureText = (str, fontSize = 16) => {
119
126
  // const widths = [
120
127
  // 0,
121
128
  // 0,
@@ -253,6 +260,7 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
253
260
  // .reduce((cur, acc) => acc + cur) * fontSize
254
261
  // );
255
262
  // };
263
+
256
264
  const handleSectorHover = (data, index, e) => {
257
265
  if (expandOnHover) {
258
266
  setExpanded({
@@ -260,10 +268,12 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
260
268
  });
261
269
  expandedIndex.current = index !== null ? index : props.expandedIndex > -1 ? props.expandedIndex : null;
262
270
  }
271
+
263
272
  if (onSectorHover) {
264
273
  onSectorHover(data, index, e);
265
274
  }
266
275
  };
276
+
267
277
  const renderSingleData = (d, center) => {
268
278
  return jsx(Circle, {
269
279
  center: center,
@@ -276,14 +286,13 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
276
286
  ...d
277
287
  });
278
288
  };
289
+
279
290
  const renderMultipleData = center => {
280
291
  return jsx(Sectors, {
281
292
  center: center,
282
- data: expandOnHover ? data.map((d, i) => ({
283
- ...d,
293
+ data: expandOnHover ? data.map((d, i) => ({ ...d,
284
294
  expanded: `${isExpanded ? i === expandedIndex.current : i === props.expandedIndex}`
285
- })) : data.map((d, i) => ({
286
- ...d,
295
+ })) : data.map((d, i) => ({ ...d,
287
296
  expanded: `${i === props.expandedIndex}`
288
297
  })),
289
298
  ...props,
@@ -293,6 +302,7 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
293
302
  onSectorHover: handleSectorHover
294
303
  });
295
304
  };
305
+
296
306
  return jsx("div", {
297
307
  ref: ref,
298
308
  className: `DGN-CUI-Container-PieChart`
@@ -445,14 +455,19 @@ PieChart.defaultProps = {
445
455
  PieChart.propTypes = {
446
456
  /** the viewData will display information about the input data */
447
457
  viewData: PropTypes.bool,
458
+
448
459
  /** drawn Ratio of Width entered by user, default is: 900px */
449
460
  width: PropTypes.number,
461
+
450
462
  /** drawn Ratio of Height entered by user, default is: 500px */
451
463
  height: PropTypes.number,
464
+
452
465
  /** change from PieChart to DonutChart */
453
466
  Donut: PropTypes.bool,
467
+
454
468
  /** Typography of font in core, default: h4 */
455
469
  type: PropTypes.string,
470
+
456
471
  /** The array of elements that appear in the PieChart */
457
472
  data: PropTypes.arrayOf(PropTypes.shape({
458
473
  color: PropTypes.string,
@@ -460,28 +475,40 @@ PieChart.propTypes = {
460
475
  quantity: PropTypes.number.isRequired,
461
476
  href: PropTypes.string
462
477
  })).isRequired,
478
+
463
479
  /** the animation expand On Hover */
464
480
  expandOnHover: PropTypes.bool,
481
+
465
482
  /** the Size expand On Hover */
466
483
  expandSize: PropTypes.number,
484
+
467
485
  /** the specified position is hovering by default */
468
486
  expandedIndex: PropTypes.number,
487
+
469
488
  /** returns the data of the object to be hover */
470
489
  onSectorHover: PropTypes.func,
490
+
471
491
  /** the StrokeWidth change color border and Stroke */
472
492
  strokeColor: Sector.propTypes.strokeColor,
493
+
473
494
  /** it can be applied to any element but it has effect only on the following nine */
474
495
  strokeLinejoin: Sector.propTypes.strokeLinejoin,
496
+
475
497
  /** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
476
498
  strokeWidth: Sector.propTypes.strokeWidth,
499
+
477
500
  /** The starting angle is drawn in a circle from data first */
478
501
  startAngle: PropTypes.number,
502
+
479
503
  /** */
480
504
  angleMargin: PropTypes.number,
505
+
481
506
  /** The transition-duration CSS property sets the length of time a transition animation should take to complete. Default 0.3s */
482
507
  transitionDuration: Sector.propTypes.transitionDuration,
508
+
483
509
  /** The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected*/
484
510
  transitionTimingFunction: Sector.propTypes.transitionTimingFunction,
511
+
485
512
  /** The title is add from the data */
486
513
  name: Sector.propTypes.name
487
514
  };
@@ -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 } from 'react';
4
5
  import { css, jsx } from '@emotion/core';
@@ -19,8 +20,8 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
19
20
  minX,
20
21
  minY,
21
22
  unitWidth,
22
- onClick
23
- // ...props
23
+ onClick // ...props
24
+
24
25
  }, ref) => {
25
26
  // Start create css in Component
26
27
  const barChartCSS = css`
@@ -33,19 +34,18 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
33
34
  const textChartCSS = css`
34
35
  text-anchor: middle;
35
36
  ${typography.paragraph3};
36
- `;
37
- // End create css in Component
38
-
37
+ `; // End create css in Component
39
38
  // Create variable to calculate
39
+
40
40
  const round = n => {
41
41
  return Math.round(n * 100) / 100;
42
42
  };
43
+
43
44
  const barChart = useRef(null);
44
45
  const BARS_MARGIN_DEFAULT = 0.16;
45
46
  const margin = barsMargin >= 0 && barsMargin < unitWidth / 2 ? barsMargin : BARS_MARGIN_DEFAULT;
46
- const barsWidth = unitWidth - margin * 3;
47
+ const barsWidth = unitWidth - margin * 3; // create drawing function tooltips in different positions
47
48
 
48
- // create drawing function tooltips in different positions
49
49
  const topTooltipPath = (width, height, offset, radius) => {
50
50
  const left = -width / 2;
51
51
  const right = width / 2;
@@ -64,6 +64,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
64
64
  H ${offset}
65
65
  L 0,0 z`;
66
66
  };
67
+
67
68
  const bottomTooltipPath = (width, height, offset, radius) => {
68
69
  const left = -width / 2;
69
70
  const right = width / 2;
@@ -82,6 +83,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
82
83
  H ${offset}
83
84
  L 0,0 z`;
84
85
  };
86
+
85
87
  const leftTooltipPath = (width, height, offset, radius) => {
86
88
  const left = -offset - width;
87
89
  const right = -offset;
@@ -100,6 +102,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
100
102
  V ${offset}
101
103
  L 0,0 z`;
102
104
  };
105
+
103
106
  const rightTooltipPath = (width, height, offset, radius) => {
104
107
  const left = offset;
105
108
  const right = offset + width;
@@ -117,41 +120,49 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
117
120
  Q ${left},${bottom} ${left},${bottom - radius}
118
121
  V ${offset}
119
122
  L 0,0 z`;
120
- };
123
+ }; // Create event management function
124
+
121
125
 
122
- // Create event management function
123
126
  const MouseEnterTarget = (e, i) => {
124
127
  if (onEnter) onEnter(e, i);
125
128
  document.getElementById('tooltip-bar' + i).style.display = 'block';
126
129
  };
130
+
127
131
  const MouseLeaveTarget = (e, i) => {
128
132
  if (onRemote) onRemote(e, i);
129
133
  document.getElementById('tooltip-bar' + i).style.display = 'none';
130
134
  };
135
+
131
136
  const handleChange = event => {
132
137
  if (onClick) onClick(event);
133
- };
138
+ }; // Create function to display tooltip by position
139
+
134
140
 
135
- // Create function to display tooltip by position
136
141
  const getPlacement = (point, i) => {
137
142
  // convert number -> string
138
143
  const h = `${point.quantity}`;
139
144
  var Width = 0;
145
+
140
146
  if (h.length == 2 || h.length == 1 || h.length == 3) {
141
147
  Width += 35;
142
148
  }
149
+
143
150
  if (h.length == 4 || h.length == 5) {
144
151
  Width += 40;
145
152
  }
153
+
146
154
  if (h.length == 6 || h.length == 7) {
147
155
  Width += 50;
148
156
  }
157
+
149
158
  if (h.length == 8 || h.length == 9) {
150
159
  Width += 70;
151
160
  }
161
+
152
162
  if (h.length == 10 || h.length == 11) {
153
163
  Width += 90;
154
164
  }
165
+
155
166
  if (getX(point.x + unitWidth / 2) < 20) {
156
167
  return jsx("g", {
157
168
  id: `tooltip-bar` + i,
@@ -175,6 +186,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
175
186
  fill: "#fff"
176
187
  }, point.quantity));
177
188
  }
189
+
178
190
  if (getX(point.x + unitWidth / 2) > viewBoxWidth) {
179
191
  return jsx("g", {
180
192
  id: `tooltip-bar` + i,
@@ -198,6 +210,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
198
210
  fill: "#fff"
199
211
  }, point.quantity));
200
212
  }
213
+
201
214
  if (getY(point.quantity + 0.5) > 10) {
202
215
  return jsx("g", {
203
216
  id: `tooltip-bar` + i,
@@ -220,6 +233,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
220
233
  fill: "#fff"
221
234
  }, point.quantity));
222
235
  }
236
+
223
237
  return jsx("g", {
224
238
  id: `tooltip-bar` + i,
225
239
  className: 'DGN-Tooltip-Bar',
@@ -240,9 +254,9 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
240
254
  css: textChartCSS,
241
255
  fill: "#fff"
242
256
  }, point.quantity));
243
- };
257
+ }; // Create function to display data
258
+
244
259
 
245
- // Create function to display data
246
260
  const getPlacementNotHover = (point, i) => {
247
261
  return jsx("g", {
248
262
  id: `tooltip-bar` + i,
@@ -258,6 +272,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
258
272
  fill: barsColor
259
273
  }, point.quantity));
260
274
  };
275
+
261
276
  return hoverTooltip ? jsx("g", {
262
277
  className: 'DGN-CUI-Bar',
263
278
  ref: ref
@@ -306,26 +321,33 @@ Bars.propTypes = {
306
321
  /** change color of Bar in BarChart */
307
322
  barsColor: PropTypes.string,
308
323
  barsMargin: PropTypes.number,
324
+
309
325
  /** change the percentage of blurred colors on the column */
310
326
  barsOpacity: PropTypes.number,
311
327
  data: PropTypes.arrayOf(PropTypes.shape({
312
328
  x: PropTypes.number,
313
329
  quantity: PropTypes.number
314
330
  })).isRequired,
331
+
315
332
  /** the getX position x on Ox*/
316
333
  getX: PropTypes.func,
334
+
317
335
  /** the getY position y on Oy */
318
336
  getY: PropTypes.func,
319
337
  labelsHeightX: Labels.propTypes.labelsHeightX,
320
338
  labelsOffsetX: Labels.propTypes.labelsOffsetX,
321
339
  labelsOffsetY: Labels.propTypes.labelsOffsetY,
322
340
  labelsWidthY: PropTypes.number,
341
+
323
342
  /** the minX is minimum of OX quantity returned by data*/
324
343
  minX: PropTypes.number.isRequired,
344
+
325
345
  /** the minY is minimum of Oy quantity returned by data*/
326
346
  minY: PropTypes.number.isRequired,
347
+
327
348
  /** the unitWidth */
328
349
  unitWidth: PropTypes.number,
350
+
329
351
  /** Shows tooltip containing data on hover */
330
352
  hoverTooltip: PropTypes.bool
331
353
  };
@@ -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
  };