@expressms/smartapp-ui 3.0.0-alpha.21 → 3.0.0-alpha.22

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 (478) hide show
  1. package/package.json +1 -1
  2. package/build/main/assets/icons/arrow-back.svg +0 -3
  3. package/build/main/assets/icons/arrow-down.svg +0 -3
  4. package/build/main/assets/icons/arrow-up.svg +0 -3
  5. package/build/main/assets/icons/attachment-loader.svg +0 -3
  6. package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
  7. package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
  8. package/build/main/assets/icons/avatar-loader.svg +0 -3
  9. package/build/main/assets/icons/button-loader.svg +0 -3
  10. package/build/main/assets/icons/calendar-arrow-next.svg +0 -3
  11. package/build/main/assets/icons/calendar-arrow-prev.svg +0 -3
  12. package/build/main/assets/icons/check-mark-square.svg +0 -4
  13. package/build/main/assets/icons/check-mark.svg +0 -4
  14. package/build/main/assets/icons/chip-info.svg +0 -5
  15. package/build/main/assets/icons/clear.svg +0 -3
  16. package/build/main/assets/icons/close-modal.svg +0 -3
  17. package/build/main/assets/icons/close-stories.svg +0 -4
  18. package/build/main/assets/icons/close.svg +0 -3
  19. package/build/main/assets/icons/contact-info.svg +0 -5
  20. package/build/main/assets/icons/corporate-user.svg +0 -3
  21. package/build/main/assets/icons/crown.svg +0 -5
  22. package/build/main/assets/icons/delete-chip.svg +0 -3
  23. package/build/main/assets/icons/distribution.svg +0 -12
  24. package/build/main/assets/icons/doc-small.svg +0 -11
  25. package/build/main/assets/icons/doc.svg +0 -11
  26. package/build/main/assets/icons/error.svg +0 -5
  27. package/build/main/assets/icons/external-link.svg +0 -3
  28. package/build/main/assets/icons/eye-off.svg +0 -5
  29. package/build/main/assets/icons/eye-on.svg +0 -4
  30. package/build/main/assets/icons/file-small.svg +0 -11
  31. package/build/main/assets/icons/file.svg +0 -11
  32. package/build/main/assets/icons/global-address-book-user.svg +0 -4
  33. package/build/main/assets/icons/group.svg +0 -3
  34. package/build/main/assets/icons/indeterminate-check-mark-square.svg +0 -4
  35. package/build/main/assets/icons/info.svg +0 -5
  36. package/build/main/assets/icons/input-arrow-down.svg +0 -3
  37. package/build/main/assets/icons/input-arrow-up.svg +0 -3
  38. package/build/main/assets/icons/loader.svg +0 -3
  39. package/build/main/assets/icons/logout.svg +0 -4
  40. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  41. package/build/main/assets/icons/mail.svg +0 -3
  42. package/build/main/assets/icons/meeting-room.svg +0 -3
  43. package/build/main/assets/icons/more.svg +0 -3
  44. package/build/main/assets/icons/my-contacts-user.svg +0 -3
  45. package/build/main/assets/icons/notification-close.svg +0 -3
  46. package/build/main/assets/icons/notification-failure.svg +0 -3
  47. package/build/main/assets/icons/notification-info.svg +0 -5
  48. package/build/main/assets/icons/notification-success.svg +0 -4
  49. package/build/main/assets/icons/order.svg +0 -6
  50. package/build/main/assets/icons/pdf-small.svg +0 -11
  51. package/build/main/assets/icons/pdf.svg +0 -11
  52. package/build/main/assets/icons/play-small.svg +0 -3
  53. package/build/main/assets/icons/play.svg +0 -3
  54. package/build/main/assets/icons/plus.svg +0 -4
  55. package/build/main/assets/icons/ppt-small.svg +0 -11
  56. package/build/main/assets/icons/ppt.svg +0 -11
  57. package/build/main/assets/icons/private.svg +0 -12
  58. package/build/main/assets/icons/refresh.svg +0 -3
  59. package/build/main/assets/icons/search.svg +0 -3
  60. package/build/main/assets/icons/story-loader.svg +0 -3
  61. package/build/main/assets/icons/tick.svg +0 -10
  62. package/build/main/assets/icons/trash.svg +0 -3
  63. package/build/main/assets/icons/txt-small.svg +0 -11
  64. package/build/main/assets/icons/txt.svg +0 -11
  65. package/build/main/assets/icons/unread-mails.svg +0 -4
  66. package/build/main/assets/icons/warning-avatar.svg +0 -4
  67. package/build/main/assets/icons/xls-small.svg +0 -11
  68. package/build/main/assets/icons/xls.svg +0 -11
  69. package/build/main/assets/storybook/index.d.ts +0 -24
  70. package/build/main/assets/storybook/index.js +0 -25
  71. package/build/main/assets/storybook/index.js.map +0 -1
  72. package/build/main/constants/constants.d.ts +0 -197
  73. package/build/main/constants/constants.js +0 -217
  74. package/build/main/constants/constants.js.map +0 -1
  75. package/build/main/constants/index.d.ts +0 -2
  76. package/build/main/constants/index.js +0 -3
  77. package/build/main/constants/index.js.map +0 -1
  78. package/build/main/constants/types.d.ts +0 -58
  79. package/build/main/constants/types.js +0 -2
  80. package/build/main/constants/types.js.map +0 -1
  81. package/build/main/helpers/index.d.ts +0 -31
  82. package/build/main/helpers/index.js +0 -183
  83. package/build/main/helpers/index.js.map +0 -1
  84. package/build/main/hooks/useLongTap.d.ts +0 -12
  85. package/build/main/hooks/useLongTap.js +0 -29
  86. package/build/main/hooks/useLongTap.js.map +0 -1
  87. package/build/main/hooks/useModal.d.ts +0 -22
  88. package/build/main/hooks/useModal.js +0 -61
  89. package/build/main/hooks/useModal.js.map +0 -1
  90. package/build/main/index.d.ts +0 -36
  91. package/build/main/index.js +0 -37
  92. package/build/main/index.js.map +0 -1
  93. package/build/main/styles/index.d.ts +0 -1
  94. package/build/main/styles/index.js +0 -2
  95. package/build/main/styles/index.js.map +0 -1
  96. package/build/main/styles/main.js +0 -6
  97. package/build/main/styles/styles.scss +0 -14
  98. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  99. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -53
  100. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  101. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  102. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  103. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  104. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -23
  105. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  106. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  107. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  108. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -146
  109. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  110. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  111. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  112. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  113. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -22
  114. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  115. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  116. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  117. package/build/main//321/201omponents/Avatar/Avatar.js +0 -226
  118. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  119. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  120. package/build/main//321/201omponents/Avatar/index.js +0 -2
  121. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  122. package/build/main//321/201omponents/Avatar/types.d.ts +0 -60
  123. package/build/main//321/201omponents/Avatar/types.js +0 -29
  124. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  125. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  126. package/build/main//321/201omponents/Button/Button.js +0 -62
  127. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  128. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  129. package/build/main//321/201omponents/Button/index.js +0 -2
  130. package/build/main//321/201omponents/Button/index.js.map +0 -1
  131. package/build/main//321/201omponents/Button/types.d.ts +0 -24
  132. package/build/main//321/201omponents/Button/types.js +0 -12
  133. package/build/main//321/201omponents/Button/types.js.map +0 -1
  134. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  135. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  136. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  137. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  138. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  139. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  140. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  141. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  142. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  143. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
  144. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  145. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  146. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  147. package/build/main//321/201omponents/Calendar/Calendar.js +0 -145
  148. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  149. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  150. package/build/main//321/201omponents/Calendar/index.js +0 -2
  151. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  152. package/build/main//321/201omponents/Calendar/types.d.ts +0 -15
  153. package/build/main//321/201omponents/Calendar/types.js +0 -2
  154. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  155. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
  156. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -47
  157. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  158. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
  159. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  160. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  161. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
  162. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -42
  163. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  164. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
  165. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
  166. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  167. package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
  168. package/build/main//321/201omponents/Charts/colors.js +0 -4
  169. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  170. package/build/main//321/201omponents/Charts/constants.d.ts +0 -42
  171. package/build/main//321/201omponents/Charts/constants.js +0 -42
  172. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  173. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
  174. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  175. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  176. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  177. package/build/main//321/201omponents/Charts/index.js +0 -4
  178. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  179. package/build/main//321/201omponents/Charts/types.d.ts +0 -89
  180. package/build/main//321/201omponents/Charts/types.js +0 -2
  181. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  182. package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
  183. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  184. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  185. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
  186. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  187. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  188. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -8
  189. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -48
  190. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  191. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  192. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  193. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  194. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -14
  195. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  196. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  197. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  198. package/build/main//321/201omponents/Chip/Chip.js +0 -118
  199. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  200. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  201. package/build/main//321/201omponents/Chip/index.js +0 -2
  202. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  203. package/build/main//321/201omponents/Chip/types.d.ts +0 -27
  204. package/build/main//321/201omponents/Chip/types.js +0 -2
  205. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  206. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  207. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -63
  208. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  209. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  210. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  211. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  212. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
  213. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  214. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  215. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  216. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -81
  217. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  218. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  219. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  220. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  221. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -34
  222. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  223. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  224. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
  225. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -248
  226. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  227. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  228. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  229. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  230. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  231. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -70
  232. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  233. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -69
  234. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  235. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  236. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  237. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -58
  238. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  239. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  240. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  241. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  242. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  243. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  244. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  245. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  246. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  247. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  248. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  249. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  250. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  251. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  252. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  253. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  254. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
  255. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -222
  256. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  257. package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
  258. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  259. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  260. package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -90
  261. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  262. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  263. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  264. package/build/main//321/201omponents/Error/Error.js +0 -23
  265. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  266. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  267. package/build/main//321/201omponents/Error/index.js +0 -2
  268. package/build/main//321/201omponents/Error/index.js.map +0 -1
  269. package/build/main//321/201omponents/Error/types.d.ts +0 -10
  270. package/build/main//321/201omponents/Error/types.js +0 -2
  271. package/build/main//321/201omponents/Error/types.js.map +0 -1
  272. package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
  273. package/build/main//321/201omponents/Flex/Flex.js +0 -35
  274. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  275. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
  276. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  277. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  278. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
  279. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  280. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  281. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
  282. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  283. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  284. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
  285. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  286. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  287. package/build/main//321/201omponents/Flex/index.d.ts +0 -3
  288. package/build/main//321/201omponents/Flex/index.js +0 -4
  289. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  290. package/build/main//321/201omponents/Flex/types.d.ts +0 -19
  291. package/build/main//321/201omponents/Flex/types.js +0 -2
  292. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  293. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  294. package/build/main//321/201omponents/Header/Header.js +0 -125
  295. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  296. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  297. package/build/main//321/201omponents/Header/index.js +0 -2
  298. package/build/main//321/201omponents/Header/index.js.map +0 -1
  299. package/build/main//321/201omponents/Header/types.d.ts +0 -47
  300. package/build/main//321/201omponents/Header/types.js +0 -2
  301. package/build/main//321/201omponents/Header/types.js.map +0 -1
  302. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  303. package/build/main//321/201omponents/Input/Input.js +0 -182
  304. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  305. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  306. package/build/main//321/201omponents/Input/index.js +0 -2
  307. package/build/main//321/201omponents/Input/index.js.map +0 -1
  308. package/build/main//321/201omponents/Input/types.d.ts +0 -27
  309. package/build/main//321/201omponents/Input/types.js +0 -2
  310. package/build/main//321/201omponents/Input/types.js.map +0 -1
  311. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  312. package/build/main//321/201omponents/ListItem/ListItem.js +0 -203
  313. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  314. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  315. package/build/main//321/201omponents/ListItem/index.js +0 -2
  316. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  317. package/build/main//321/201omponents/ListItem/types.d.ts +0 -41
  318. package/build/main//321/201omponents/ListItem/types.js +0 -2
  319. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  320. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  321. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  322. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  323. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  324. package/build/main//321/201omponents/Loader/index.js +0 -2
  325. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  326. package/build/main//321/201omponents/Loader/types.d.ts +0 -18
  327. package/build/main//321/201omponents/Loader/types.js +0 -2
  328. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  329. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  330. package/build/main//321/201omponents/Modal/Modal.js +0 -259
  331. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  332. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  333. package/build/main//321/201omponents/Modal/index.js +0 -2
  334. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  335. package/build/main//321/201omponents/Modal/types.d.ts +0 -41
  336. package/build/main//321/201omponents/Modal/types.js +0 -2
  337. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  338. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  339. package/build/main//321/201omponents/Notification/Notification.js +0 -199
  340. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  341. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  342. package/build/main//321/201omponents/Notification/index.js +0 -2
  343. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  344. package/build/main//321/201omponents/Notification/types.d.ts +0 -44
  345. package/build/main//321/201omponents/Notification/types.js +0 -2
  346. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  347. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  348. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  349. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  350. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  351. package/build/main//321/201omponents/Profile/index.js +0 -2
  352. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  353. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  354. package/build/main//321/201omponents/Profile/types.js +0 -2
  355. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  356. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  357. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  358. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  359. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  360. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  361. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  362. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
  363. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  364. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  365. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  366. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -33
  367. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  368. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  369. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  370. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  371. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
  372. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  373. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  374. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
  375. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -140
  376. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  377. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  378. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  379. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  380. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -24
  381. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  382. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  383. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  384. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
  385. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  386. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  387. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  388. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  389. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
  390. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  391. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  392. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  393. package/build/main//321/201omponents/Stories/Stories.js +0 -338
  394. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  395. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  396. package/build/main//321/201omponents/Stories/index.js +0 -2
  397. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  398. package/build/main//321/201omponents/Stories/types.d.ts +0 -71
  399. package/build/main//321/201omponents/Stories/types.js +0 -16
  400. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  401. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  402. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  403. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  404. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  405. package/build/main//321/201omponents/Switcher/index.js +0 -2
  406. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  407. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  408. package/build/main//321/201omponents/Switcher/types.js +0 -2
  409. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  410. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  411. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  412. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  413. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  414. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  415. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  416. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -8
  417. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  418. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  419. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  420. package/build/main//321/201omponents/Textarea/Textarea.js +0 -59
  421. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  422. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  423. package/build/main//321/201omponents/Textarea/index.js +0 -2
  424. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  425. package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
  426. package/build/main//321/201omponents/Textarea/types.js +0 -2
  427. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  428. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  429. package/build/main//321/201omponents/Toggle/Toggle.js +0 -35
  430. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  431. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  432. package/build/main//321/201omponents/Toggle/index.js +0 -2
  433. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  434. package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
  435. package/build/main//321/201omponents/Toggle/types.js +0 -2
  436. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  437. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  438. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  439. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  440. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  441. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -88
  442. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  443. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  444. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  445. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  446. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
  447. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -129
  448. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  449. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  450. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -137
  451. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  452. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  453. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -80
  454. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  455. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +0 -4
  456. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +0 -44
  457. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +0 -1
  458. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
  459. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -549
  460. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  461. package/build/main//321/201omponents/UserDropdown/constants.d.ts +0 -8
  462. package/build/main//321/201omponents/UserDropdown/constants.js +0 -10
  463. package/build/main//321/201omponents/UserDropdown/constants.js.map +0 -1
  464. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -105
  465. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -143
  466. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  467. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  468. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  469. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  470. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  471. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -69
  472. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  473. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -269
  474. package/build/main//321/201omponents/UserDropdown/types.js +0 -9
  475. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  476. package/build/main//321/201omponents/types.d.ts +0 -2
  477. package/build/main//321/201omponents/types.js +0 -2
  478. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,47 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef } from 'react';
14
- import ReactEcharts from 'echarts-for-react';
15
- import ChartLegend from '../ChartLegend/ChartLegend';
16
- import { useEvents } from '../useEvents';
17
- import { generateFontFamilyStyle } from '../../../helpers';
18
- import { generateBarItem, generateLegendItems, generateXAxis, renderChartTooltip } from '../helpers';
19
- import { FONT_FAMILY } from '../../../constants';
20
- import { DEFAULT_CHART_HEIGHT, LEGEND, OPTIONS, OPTION_GRID, OPTION_TOOLTIP, OPTION_Y_AXIS } from '../constants';
21
- import '../../../styles/styles.scss';
22
- var series = OPTIONS.series, shadow = OPTIONS.shadow, bar = OPTIONS.bar;
23
- var option = function (_a) {
24
- var _b = _a.fontFamily, fontFamily = _b === void 0 ? FONT_FAMILY.onest : _b, data = _a.data, xAxis = _a.xAxis, tooltipXAxis = _a.tooltipXAxis;
25
- return ({
26
- legend: LEGEND,
27
- tooltip: __assign(__assign({}, OPTION_TOOLTIP), { axisPointer: { type: shadow }, formatter: function (params) { return renderChartTooltip({ chartType: bar, params: params, tooltipXAxis: tooltipXAxis }); } }),
28
- textStyle: { fontFamily: fontFamily },
29
- grid: __assign(__assign({}, OPTION_GRID), { right: 0 }),
30
- xAxis: generateXAxis(xAxis),
31
- yAxis: OPTION_Y_AXIS,
32
- series: generateBarItem(data),
33
- emphasis: { focus: series },
34
- barMaxWidth: 32,
35
- barMinWidth: 15,
36
- itemStyle: { borderRadius: [5, 5, 0, 0] },
37
- barGap: '40%',
38
- });
39
- };
40
- var ChartBar = function (_a) {
41
- var fontFamily = _a.fontFamily, _b = _a.chartHeight, chartHeight = _b === void 0 ? DEFAULT_CHART_HEIGHT.bar : _b, title = _a.title, xAxis = _a.xAxis, tooltipXAxis = _a.tooltipXAxis, data = _a.data, legendUnits = _a.legendUnits;
42
- var chartRef = useRef(null);
43
- var _c = useEvents({ chartType: bar, chartRef: chartRef }), highlight = _c.highlight, downplay = _c.downplay;
44
- return (_jsxs("div", __assign({ style: __assign({}, generateFontFamilyStyle(fontFamily)) }, { children: [_jsx("p", __assign({ className: "smartapp-chart__title mb-24" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option({ fontFamily: fontFamily, data: data, xAxis: xAxis, tooltipXAxis: tooltipXAxis }), style: { height: chartHeight }, onEvents: { highlight: highlight, downplay: downplay } }), _jsx(ChartLegend, { chartRef: chartRef, chartType: bar, legendItems: generateLegendItems(bar, chartRef), legendUnits: legendUnits })] })));
45
- };
46
- export default ChartBar;
47
- //# sourceMappingURL=ChartBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartBar.js","sourceR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C,GAAG,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,WAAW,GAAI,KAC1H,CACP,CAAA;AACH,CAAC,CAAA;AACD,eAAe,QAAQ,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IChartLegendProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const ChartLegend: ({ chartRef, chartType, legendItems, legendUnits }: IChartLegendProps) => import("react/jsx-runtime").JSX.Element;
4
- export default ChartLegend;
@@ -1,71 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
- if (ar || !(i in from)) {
15
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
- ar[i] = from[i];
17
- }
18
- }
19
- return to.concat(ar || Array.prototype.slice.call(from));
20
- };
21
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
- import { useEffect, useState } from 'react';
23
- import classNames from 'classnames';
24
- import { calculateValue, isBarChart, isLineChart, isPieChart } from '../helpers';
25
- import { DISPATCH_ACTION_TYPES, NUMBER_FORMATTER } from '../constants';
26
- import '../../../styles/styles.scss';
27
- var ChartLegend = function (_a) {
28
- var chartRef = _a.chartRef, chartType = _a.chartType, legendItems = _a.legendItems, legendUnits = _a.legendUnits;
29
- var _b = useState([]), activeLegendItems = _b[0], setActiveLegendItems = _b[1];
30
- var getChartInstance = function () { var _a; return (_a = chartRef.current) === null || _a === void 0 ? void 0 : _a.getEchartsInstance(); };
31
- var generateLegendValue = function (value, data) {
32
- if (data === void 0) { data = []; }
33
- if (isBarChart(chartType))
34
- return calculateValue(data);
35
- if (isLineChart(chartType))
36
- return NUMBER_FORMATTER.format(calculateValue(data));
37
- return value;
38
- };
39
- var generateDispatchActionData = function (name, seriesIndex) { return (isPieChart(chartType) ? { name: name } : { seriesIndex: seriesIndex }); };
40
- var handleLegendMouseEnter = function (name, seriesIndex) {
41
- var chartInstance = getChartInstance();
42
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.dispatchAction(__assign({ type: DISPATCH_ACTION_TYPES.highlight }, generateDispatchActionData(name, seriesIndex)));
43
- };
44
- var handleLegendMouseLeave = function (name, seriesIndex) {
45
- var chartInstance = getChartInstance();
46
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.dispatchAction(__assign({ type: DISPATCH_ACTION_TYPES.downplay }, generateDispatchActionData(name, seriesIndex)));
47
- };
48
- var handleLegendClick = function (name) {
49
- var chartInstance = getChartInstance();
50
- setActiveLegendItems(function (prevActiveLegendItems) {
51
- return prevActiveLegendItems.includes(name)
52
- ? prevActiveLegendItems.filter(function (legendItemName) { return legendItemName !== name; })
53
- : __spreadArray(__spreadArray([], prevActiveLegendItems, true), [name], false);
54
- });
55
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.dispatchAction({ type: DISPATCH_ACTION_TYPES.legendToggleSelect, name: name });
56
- isPieChart(chartType) && (chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.dispatchAction({ type: DISPATCH_ACTION_TYPES.highlight, name: name }));
57
- };
58
- useEffect(function () {
59
- legendItems && setActiveLegendItems(legendItems.map(function (_a) {
60
- var name = _a.name;
61
- return name;
62
- }));
63
- }, [legendItems]);
64
- return (_jsx("div", __assign({ className: classNames('smartapp-chart__legend', "smartapp-chart__legend--".concat(chartType)) }, { children: legendItems.map(function (_a, index) {
65
- var name = _a.name, value = _a.value, data = _a.data, color = _a.itemStyle.color;
66
- var inactiveLegendItem = !activeLegendItems.includes(name);
67
- return (_jsxs("div", __assign({ className: "smartapp-chart__legend--item", onClick: function () { return handleLegendClick(name); }, onMouseEnter: function () { return handleLegendMouseEnter(name, index); }, onMouseLeave: function () { return handleLegendMouseLeave(name, index); } }, { children: [_jsx("div", __assign({ className: classNames('smartapp-chart__legend--item__name', { 'smartapp-chart__legend--item__name--inactive': inactiveLegendItem }) }, { children: name })), _jsxs("div", __assign({ className: classNames('smartapp-chart__legend--item__value', { 'smartapp-chart__legend--item__value--inactive': inactiveLegendItem }), style: { color: color } }, { children: [generateLegendValue(value, data), legendUnits] }))] }), name));
68
- }) })));
69
- };
70
- export default ChartLegend;
71
- //# sourceMappingURL=ChartLegend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartLegend.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartLegend/ChartLegend.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEtE,OAAO,6BAA6B,CAAA;AAEpC,IAAM,WAAW,GAAG,UAAC,EAAoE;QAAlE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,WAAW,iBAAA,EAAE,WAAW,iBAAA;IAC5D,IAAA,KAA4C,QAAQ,CAAW,EAAE,CAAC,EAAjE,iBAAiB,QAAA,EAAE,oBAAoB,QAA0B,CAAA;IAExE,IAAM,gBAAgB,GAAG,sBAAM,OAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,kBAAkB,EAAE,CAAA,EAAA,CAAA;IAErE,IAAM,mBAAmB,GAAG,UAAC,KAAc,EAAE,IAAmB;QAAnB,qBAAA,EAAA,SAAmB;QAC9D,IAAI,UAAU,CAAC,SAAS,CAAC;YAAE,OAAO,cAAc,CAAC,IAAI,CAAC,CAAA;QACtD,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U,CAAC,qCAAqC,EAAE,EAAE,+CAA+C,EAAE,kBAAkB,EAAE,CAAC,EACrI,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE,iBAEf,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,EAChC,WAAW,KACR,MAfD,IAAI,CAgBL,CACP,CAAA;QACH,CAAC,CAAC,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IChartProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const ChartLine: ({ fontFamily, chartHeight, title, xAxis, tooltipXAxis, data, legendUnits }: IChartProps) => import("react/jsx-runtime").JSX.Element;
4
- export default ChartLine;
@@ -1,42 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef } from 'react';
14
- import ReactEcharts from 'echarts-for-react';
15
- import ChartLegend from '../ChartLegend/ChartLegend';
16
- import { useEvents } from '../useEvents';
17
- import { generateFontFamilyStyle } from '../../../helpers';
18
- import { generateLegendItems, generateLineItem, generateXAxis, renderChartTooltip } from '../helpers';
19
- import { FONT_FAMILY } from '../../../constants';
20
- import { DEFAULT_CHART_HEIGHT, LEGEND, NUMBER_FORMATTER, OPTIONS, OPTION_GRID, OPTION_TOOLTIP, OPTION_Y_AXIS } from '../constants';
21
- import '../../../styles/styles.scss';
22
- var line = OPTIONS.line;
23
- var option = function (_a) {
24
- var _b = _a.fontFamily, fontFamily = _b === void 0 ? FONT_FAMILY.onest : _b, data = _a.data, xAxis = _a.xAxis, tooltipXAxis = _a.tooltipXAxis;
25
- return ({
26
- textStyle: { fontFamily: fontFamily },
27
- legend: LEGEND,
28
- tooltip: __assign(__assign({}, OPTION_TOOLTIP), { formatter: function (params) { return renderChartTooltip({ chartType: line, params: params, tooltipXAxis: tooltipXAxis }); } }),
29
- grid: __assign(__assign({}, OPTION_GRID), { right: '10px' }),
30
- xAxis: __assign({ boundaryGap: false }, generateXAxis(xAxis)),
31
- yAxis: __assign(__assign({}, OPTION_Y_AXIS), { axisLabel: __assign(__assign({}, OPTION_Y_AXIS.axisLabel), { formatter: function (value) { return NUMBER_FORMATTER.format(value); } }) }),
32
- series: generateLineItem(data),
33
- });
34
- };
35
- var ChartLine = function (_a) {
36
- var fontFamily = _a.fontFamily, _b = _a.chartHeight, chartHeight = _b === void 0 ? DEFAULT_CHART_HEIGHT.line : _b, title = _a.title, xAxis = _a.xAxis, tooltipXAxis = _a.tooltipXAxis, data = _a.data, legendUnits = _a.legendUnits;
37
- var chartRef = useRef(null);
38
- var _c = useEvents({ chartRef: chartRef, chartType: line }), highlight = _c.highlight, downplay = _c.downplay;
39
- return (_jsxs("div", __assign({ style: __assign({}, generateFontFamilyStyle(fontFamily)) }, { children: [_jsx("p", __assign({ className: "smartapp-chart__title mb-24" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option({ fontFamily: fontFamily, data: data, xAxis: xAxis, tooltipXAxis: tooltipXAxis }), style: { height: chartHeight }, onEvents: { highlight: highlight, downplay: downplay } }), _jsx(ChartLegend, { chartRef: chartRef, chartType: line, legendItems: generateLegendItems(line, chartRef), legendUnits: legendUnits })] })));
40
- };
41
- export default ChartLine;
42
- //# sourceMappingURL=ChartLine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartLine.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartLine/ChartLine.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,WAAW,MAAM,4BAA4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;AAEF,IAAM,SAAS,GAAG,UAAC,EAAmH;QAAjH,UAAU,gBAAA,EAAE,mBAAuC,EAAvC,WAAW,mBAAG,oBAAoB,CAAC,IAAI,KAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,YAAY,kBAAA,EAAE,IAAI,UAAA,EAAE,WAAW,iBAAA;IACrH,IAAM,QAAQ,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAA;IAC5C,IAAA,KAA0B,SAAS,CAAC,EAAE,QAAQ,UAAA,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAhE,SAAS,eAAA,EAAE,QAAQ,cAA6C,CAAA;IAExE,OAAO,CACL,wBAAK,KAAK,eAAO,uBAAuB,CAAC,UAAU,CAAC,kBAClD,qBAAG,SAAS,EAAC,6BAA6B,gBAAE,KAAK,IAAK,EACtD,KAAC,YAAY,IACX,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,YAAA,EAAE,IAAI,MAAA,EAAE,KAAK,OAAA,EAAE,YAAY,cAAA,EAAE,CAAC,EACzD,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAC9B,QAAQ,EAAE,EAAE,SAAS,WAAA,EAAE,QAAQ,UAAA,EAAE,GACjC,EACF,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,WAAW,GAAI,KAC5H,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IChartPieProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const ChartPie: ({ fontFamily, chartSize, data, title, subtitle, legendUnits }: IChartPieProps) => import("react/jsx-runtime").JSX.Element;
4
- export default ChartPie;
@@ -1,64 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef } from 'react';
14
- import ReactEcharts from 'echarts-for-react';
15
- import ChartLegend from '../ChartLegend/ChartLegend';
16
- import { TEXT_COLOR } from '../colors';
17
- import { usePieEvents } from '../usePieEvents';
18
- import { generateFontFamilyStyle } from '../../../helpers';
19
- import { calculatePieChartPadding, calculatePieValue, generateLegendItems, renderPieChartTooltip } from '../helpers';
20
- import { COLORS, FONT_FAMILY } from '../../../constants';
21
- import { CENTER_HORIZONTAL_POSITION, CENTER_VERTICAL_POSITION, DEFAULT_CHART_HEIGHT, INSIDE_RADIUS, LEGEND, OPTIONS, OUTSIDE_RADIUS, PIE_TOOLTIP_CLASS_NAME, } from '../constants';
22
- import '../../../styles/styles.scss';
23
- var center = OPTIONS.center, pie = OPTIONS.pie;
24
- var white = COLORS.white, black = COLORS.black, blue = COLORS.blue;
25
- var option = function (_a) {
26
- var _b = _a.fontFamily, fontFamily = _b === void 0 ? FONT_FAMILY.onest : _b, chartSize = _a.chartSize, data = _a.data, subtitle = _a.subtitle;
27
- return ({
28
- legend: LEGEND,
29
- tooltip: { className: PIE_TOOLTIP_CLASS_NAME, borderColor: blue, formatter: renderPieChartTooltip },
30
- series: [
31
- {
32
- type: pie,
33
- data: data.map(function (item) { return (__assign(__assign({}, item), { itemStyle: { color: item.color } })); }),
34
- radius: [INSIDE_RADIUS, OUTSIDE_RADIUS],
35
- center: [CENTER_HORIZONTAL_POSITION, CENTER_VERTICAL_POSITION],
36
- itemStyle: { borderRadius: 8, borderColor: white, borderWidth: 6 },
37
- label: { show: false },
38
- labelLine: { show: false },
39
- width: chartSize,
40
- height: chartSize,
41
- left: center,
42
- emphasis: { scaleSize: 12.5 },
43
- },
44
- ],
45
- title: {
46
- text: subtitle,
47
- left: center,
48
- top: '42.5%',
49
- textStyle: { color: TEXT_COLOR, fontSize: 14, fontWeight: 400 },
50
- subtext: calculatePieValue(data),
51
- subtextStyle: { color: black, fontSize: 32, fontWeight: 700 },
52
- itemGap: 10,
53
- },
54
- textStyle: { fontFamily: fontFamily },
55
- });
56
- };
57
- var ChartPie = function (_a) {
58
- var fontFamily = _a.fontFamily, _b = _a.chartSize, chartSize = _b === void 0 ? DEFAULT_CHART_HEIGHT.pie : _b, data = _a.data, title = _a.title, subtitle = _a.subtitle, legendUnits = _a.legendUnits;
59
- var chartRef = useRef(null);
60
- var _c = usePieEvents({ chartRef: chartRef, data: data }), legendselectchanged = _c.legendselectchanged, mouseover = _c.mouseover, mouseout = _c.mouseout;
61
- return (_jsxs("div", __assign({ style: __assign({}, generateFontFamilyStyle(fontFamily)) }, { children: [_jsx("p", __assign({ className: "smartapp-chart__title" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option({ fontFamily: fontFamily, chartSize: chartSize - calculatePieChartPadding(chartSize), data: data, subtitle: subtitle }), style: { height: chartSize }, onEvents: { mouseover: mouseover, mouseout: mouseout, highlight: mouseover, downplay: mouseout, legendselectchanged: legendselectchanged } }), _jsx(ChartLegend, { chartRef: chartRef, chartType: pie, legendItems: generateLegendItems(pie, chartRef), legendUnits: legendUnits })] })));
62
- };
63
- export default ChartPie;
64
- //# sourceMappingURL=ChartPie.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartPie.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartPie/ChartPie.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,YAA+B,MAAM,mBAAmB,CAAA;AAC/D,OAAO,WAAW,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE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,uBAAuB,gBAAE,KAAK,IAAK,EAChD,KAAC,YAAY,IACX,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,YAAA,EAAE,SAAS,EAAE,SAAS,GAAG,wBAAwB,CAAC,SAAS,CAAC,EAAE,IAAI,MAAA,EAAE,QAAQ,UAAA,EAAE,CAAC,EAC1G,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAC5B,QAAQ,EAAE,EAAE,SAAS,WAAA,EAAE,QAAQ,UAAA,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,mBAAmB,qBAAA,EAAE,GAChG,EACF,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,mBAAmB,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,WAAW,GAAI,KAC1H,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const TEXT_COLOR = "#11111180";
2
- export declare const LINE_COLOR = "#D3D3D3";
3
- export declare const BORDER_COLOR = "#E5E5E5";
@@ -1,4 +0,0 @@
1
- export var TEXT_COLOR = '#11111180';
2
- export var LINE_COLOR = '#D3D3D3';
3
- export var BORDER_COLOR = '#E5E5E5';
4
- //# sourceMappingURL=colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,WAAW,CAAA;AACrC,MAAM,CAAC,IAAM,UAAU,GAAG,SAAS,CAAA;AACnC,MAAM,CAAC,IAAM,YAAY,GAAG,SAAS,CAAA"}
@@ -1,42 +0,0 @@
1
- import { TooltipComponentOption } from 'echarts';
2
- import { YAXisOption } from 'echarts/types/dist/shared';
3
- export declare enum OPTIONS {
4
- center = "center",
5
- axis = "axis",
6
- shadow = "shadow",
7
- category = "category",
8
- transparent = "transparent",
9
- value = "value",
10
- series = "series",
11
- pie = "pie",
12
- bar = "bar",
13
- line = "line"
14
- }
15
- export declare const INSIDE_RADIUS = "60%";
16
- export declare const OUTSIDE_RADIUS = "100%";
17
- export declare const CENTER_HORIZONTAL_POSITION = "50%";
18
- export declare const CENTER_VERTICAL_POSITION = "53%";
19
- export declare const NUMBER_FORMATTER: Intl.NumberFormat;
20
- export declare const LEGEND: {
21
- show: boolean;
22
- };
23
- export declare const TOOLTIP_CLASS_NAME = "smartapp-chart-tooltip";
24
- export declare const PIE_TOOLTIP_CLASS_NAME = "smartapp-pie-chart-tooltip";
25
- export declare const OPTION_TOOLTIP: TooltipComponentOption;
26
- export declare const OPTION_GRID: {
27
- left: number;
28
- bottom: number;
29
- top: string;
30
- containLabel: boolean;
31
- };
32
- export declare const OPTION_Y_AXIS: YAXisOption;
33
- export declare const DISPATCH_ACTION_TYPES: {
34
- highlight: string;
35
- downplay: string;
36
- legendToggleSelect: string;
37
- };
38
- export declare const DEFAULT_CHART_HEIGHT: {
39
- bar: number;
40
- line: number;
41
- pie: number;
42
- };
@@ -1,42 +0,0 @@
1
- import { BORDER_COLOR } from './colors';
2
- import { COLORS } from '../../constants';
3
- export var OPTIONS;
4
- (function (OPTIONS) {
5
- OPTIONS["center"] = "center";
6
- OPTIONS["axis"] = "axis";
7
- OPTIONS["shadow"] = "shadow";
8
- OPTIONS["category"] = "category";
9
- OPTIONS["transparent"] = "transparent";
10
- OPTIONS["value"] = "value";
11
- OPTIONS["series"] = "series";
12
- OPTIONS["pie"] = "pie";
13
- OPTIONS["bar"] = "bar";
14
- OPTIONS["line"] = "line";
15
- })(OPTIONS || (OPTIONS = {}));
16
- var axis = OPTIONS.axis, value = OPTIONS.value;
17
- var DE_NUMBER_FORMAT = 'de-DE';
18
- export var INSIDE_RADIUS = '60%';
19
- export var OUTSIDE_RADIUS = '100%';
20
- export var CENTER_HORIZONTAL_POSITION = '50%';
21
- export var CENTER_VERTICAL_POSITION = '53%';
22
- export var NUMBER_FORMATTER = new Intl.NumberFormat(DE_NUMBER_FORMAT);
23
- export var LEGEND = { show: false };
24
- export var TOOLTIP_CLASS_NAME = 'smartapp-chart-tooltip';
25
- export var PIE_TOOLTIP_CLASS_NAME = 'smartapp-pie-chart-tooltip';
26
- export var OPTION_TOOLTIP = { trigger: axis, className: TOOLTIP_CLASS_NAME, borderColor: BORDER_COLOR };
27
- export var OPTION_GRID = { left: 0, bottom: 0, top: '5px', containLabel: true };
28
- export var OPTION_Y_AXIS = {
29
- type: value,
30
- axisLabel: { fontSize: '9px', fontWeight: 600, color: COLORS.darkerGray },
31
- };
32
- export var DISPATCH_ACTION_TYPES = {
33
- highlight: 'highlight',
34
- downplay: 'downplay',
35
- legendToggleSelect: 'legendToggleSelect',
36
- };
37
- export var DEFAULT_CHART_HEIGHT = {
38
- bar: 186,
39
- line: 186,
40
- pie: 340,
41
- };
42
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,MAAM,CAAN,IAAY,OAWX;AAXD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,sCAA2B,CAAA;IAC3B,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,sBAAW,CAAA;IACX,sBAAW,CAAA;IACX,wBAAa,CAAA;AACf,CAAC,EAXW,OAAO,KAAP,OAAO,QAWlB;AAEO,IAAA,IAAI,GAAY,OAAO,KAAnB,EAAE,KAAK,GAAK,OAAO,MAAZ,CAAY;AAC/B,IAAM,gBAAgB,GAAG,OAAO,CAAA;AAEhC,MAAM,CAAC,I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-for-react';
4
- import { TChartData, TChartPieData, TRenderChartTooltip, TTooltipFormatterParam } from './types';
5
- import { XAXisOption } from 'echarts/types/dist/shared';
6
- export declare const isBarChart: (chartType: string) => boolean;
7
- export declare const isLineChart: (chartType: string) => boolean;
8
- export declare const isPieChart: (chartType: string) => boolean;
9
- export declare const calculatePieChartPadding: (chartSize: number) => number;
10
- export declare const calculateValue: (data: number[]) => number;
11
- export declare const calculatePieValue: (data: TChartPieData[]) => string;
12
- export declare const generateLineItem: (data: TChartData[]) => SeriesOption[];
13
- export declare const generateBarItem: (data: TChartData[]) => SeriesOption[];
14
- export declare const generateXAxis: (data: string[]) => XAXisOption;
15
- export declare const renderChartTooltip: ({ chartType, params, tooltipXAxis }: TRenderChartTooltip) => string;
16
- export declare const renderPieChartTooltip: ({ name, value }: TTooltipFormatterParam) => string;
17
- export declare const generateLegendItems: (chartType: string, chartRef: RefObject<ReactEcharts | null>) => any;
@@ -1,73 +0,0 @@
1
- import { isArray, isEmpty } from 'lodash';
2
- import { LINE_COLOR } from './colors';
3
- import { COLORS } from '../../constants';
4
- import { NUMBER_FORMATTER, OPTIONS } from './constants';
5
- var darkerGray = COLORS.darkerGray, black = COLORS.black, transparent = COLORS.transparent;
6
- var series = OPTIONS.series, line = OPTIONS.line, bar = OPTIONS.bar, category = OPTIONS.category, pie = OPTIONS.pie;
7
- export var isBarChart = function (chartType) { return chartType === bar; };
8
- export var isLineChart = function (chartType) { return chartType === line; };
9
- export var isPieChart = function (chartType) { return chartType === pie; };
10
- export var calculatePieChartPadding = function (chartSize) { return ((chartSize * 3) / 100) * 2; };
11
- export var calculateValue = function (data) { return data.reduce(function (acc, val) { return acc + val; }, 0); };
12
- export var calculatePieValue = function (data) { return data.reduce(function (acc, _a) {
13
- var value = _a.value;
14
- return acc + value;
15
- }, 0).toString(); };
16
- export var generateLineItem = function (data) {
17
- return data.map(function (_a) {
18
- var name = _a.name, color = _a.color, data = _a.data;
19
- return ({
20
- name: name,
21
- data: data,
22
- type: line,
23
- itemStyle: { color: color },
24
- lineStyle: { width: 1 },
25
- smooth: true,
26
- showSymbol: false,
27
- emphasis: { focus: series },
28
- });
29
- });
30
- };
31
- export var generateBarItem = function (data) {
32
- return data.map(function (_a) {
33
- var name = _a.name, color = _a.color, data = _a.data;
34
- return ({ name: name, data: data, type: bar, itemStyle: { color: color } });
35
- });
36
- };
37
- export var generateXAxis = function (data) { return ({
38
- data: data,
39
- type: category,
40
- axisLine: {
41
- lineStyle: { color: LINE_COLOR },
42
- },
43
- axisLabel: { fontSize: '9px', fontWeight: 600, color: darkerGray },
44
- axisPointer: {
45
- label: { show: false, backgroundColor: transparent, color: black },
46
- },
47
- }); };
48
- export var renderChartTooltip = function (_a) {
49
- var chartType = _a.chartType, params = _a.params, tooltipXAxis = _a.tooltipXAxis;
50
- var _b = params[0], dataIndex = _b.dataIndex, name = _b.name;
51
- var axisName = (tooltipXAxis === null || tooltipXAxis === void 0 ? void 0 : tooltipXAxis[dataIndex]) || name;
52
- var tooltipContent = '';
53
- params.forEach(function (_a) {
54
- var color = _a.color, value = _a.value;
55
- var formattedValue = isLineChart(chartType) ? NUMBER_FORMATTER.format(value) : value;
56
- tooltipContent += "\n <div class='smartapp-chart-tooltip-content__data--item'>\n <div class='smartapp-chart-tooltip-content__data--item__indicator' style='background: ".concat(color, "'></div>\n <div class='smartapp-chart-tooltip-content__data--item__value'>").concat(formattedValue, "</div>\n </div>\n ");
57
- });
58
- return "\n <div class='smartapp-chart-tooltip-content'>\n <div class='smartapp-chart-tooltip-content__axis-name'>".concat(axisName, "</div>\n <div class='smartapp-chart-tooltip-content__data'>").concat(tooltipContent, "</div>\n </div>\n ");
59
- };
60
- export var renderPieChartTooltip = function (_a) {
61
- var name = _a.name, value = _a.value;
62
- return "\n <div class='smartapp-pie-chart-tooltip-content'>\n <div class='smartapp-pie-chart-tooltip-content__axis-name'>".concat(name, "</div>\n <div class='smartapp-pie-chart-tooltip-content__value'>").concat(value, "</div>\n </div>\n");
63
- };
64
- export var generateLegendItems = function (chartType, chartRef) {
65
- var _a;
66
- var chartInstance = (_a = chartRef.current) === null || _a === void 0 ? void 0 : _a.getEchartsInstance();
67
- var chartOption = chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.getOption();
68
- var series = chartOption === null || chartOption === void 0 ? void 0 : chartOption.series;
69
- if (isArray(series) && !isEmpty(series))
70
- return isPieChart(chartType) ? series[0].data : series;
71
- return [];
72
- };
73
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI/C,IAAA,UAAU,GAAyB,MAAM,WAA/B,EAAE,KAAK,GAAkB,MAAM,MAAxB,EAAE,WAAW,GAAK,MAAM,YAAX,CAAW;AACzC,IAAA,MAAM,GAA+B,OAAO,OAAtC,EAAE,IAAI,GAAyB,OAAO,KAAhC,EAAE,GAAG,GAAoB,OAAO,IAA3B,EAAE,QAAQ,GAAU,OAAO,SAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAEpD,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,SAAiB,IAAK,OAAA,SAAS,KAAK,GAAG,EAAjB,CAAiB,CAAA;AAClE,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,SAAiB,IAAK,OAAA,SAAS,KAAK,IAAI,EAAlB,CAAkB,CAAA;AACpE,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,SAAiB,IAAK,OAAA,SAAS,KAAK,GAAG,EAAjB,CAAiB,CAAA;AAElE,MAAM,CAAC,IAAM,wBAAwB,G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A;AAED,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,EAAuC;QAArC,IAAI,UAAA,EAAE,KAAK,WAAA;IAA+B,OAAA,+HAEjB,IAAI,gFACR,KAAK,uBAEjE;AALiF,CAKjF,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,SAAiB,EAAE,QAAwC;;IAC7F,IAAM,aAAa,GAAG,MAAA,QAAQ,CAAC,OAAO,0CAAE,kBAAkB,EAAE,CAAA;IAC5D,IAAM,WAAW,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,SAAS,EAAE,CAAA;IAC9C,IAAM,MAAM,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAA;IAElC,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;IAC/F,OAAO,EAAE,CAAA;AACX,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export { default as ChartBar } from './ChartBar/ChartBar';
2
- export { default as ChartLine } from './ChartLine/ChartLine';
3
- export { default as ChartPie } from './ChartPie/ChartPie';
@@ -1,4 +0,0 @@
1
- export { default as ChartBar } from './ChartBar/ChartBar';
2
- export { default as ChartLine } from './ChartLine/ChartLine';
3
- export { default as ChartPie } from './ChartPie/ChartPie';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,89 +0,0 @@
1
- import { RefObject } from 'react';
2
- import ReactEcharts from 'echarts-for-react';
3
- import { IFontFamilyProps } from '../../constants';
4
- type TLegendVisibility = {
5
- [name: string]: boolean;
6
- };
7
- type TBatchItem = {
8
- dataIndex: number;
9
- };
10
- type TItemStyle = {
11
- color: string;
12
- };
13
- type TLegendItems = {
14
- name: string;
15
- value?: number;
16
- data?: number[];
17
- itemStyle: TItemStyle;
18
- };
19
- export type TMouseover = {
20
- name: string;
21
- };
22
- export type TDataItem = {
23
- name: string;
24
- color: string;
25
- };
26
- export type TChartData = {
27
- name: string;
28
- color: string;
29
- data: number[];
30
- };
31
- export type TChartPieData = {
32
- name: string;
33
- color: string;
34
- value: number;
35
- };
36
- export type TTooltipFormatterParam = {
37
- name: string;
38
- value: number;
39
- color: string;
40
- dataIndex: number;
41
- };
42
- export type TAxisLabel = {
43
- value: string;
44
- textStyle: {
45
- color: string;
46
- };
47
- };
48
- export type THighlightChart = {
49
- batch?: TBatchItem[];
50
- };
51
- export type TRenderChartTooltip = {
52
- chartType: string;
53
- params: TTooltipFormatterParam[];
54
- tooltipXAxis?: string[];
55
- };
56
- export interface IChartProps extends IFontFamilyProps {
57
- chartHeight?: number;
58
- title?: string;
59
- xAxis: string[];
60
- tooltipXAxis?: string[];
61
- data: TChartData[];
62
- legendUnits?: string;
63
- }
64
- export interface IChartPieProps extends IFontFamilyProps {
65
- chartSize?: number;
66
- title?: string;
67
- subtitle: string;
68
- data: TChartPieData[];
69
- legendUnits?: string;
70
- }
71
- export type TLegendsChanged = {
72
- name: string;
73
- selected: TLegendVisibility;
74
- };
75
- export interface IChartLegendProps {
76
- chartRef: RefObject<ReactEcharts | null>;
77
- chartType: string;
78
- legendItems: TLegendItems[];
79
- legendUnits?: string;
80
- }
81
- export type TUseEvents = {
82
- chartRef: RefObject<ReactEcharts | null>;
83
- chartType: string;
84
- };
85
- export type TUsePieEvents = {
86
- chartRef: RefObject<ReactEcharts | null>;
87
- data: TChartPieData[];
88
- };
89
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { THighlightChart, TUseEvents } from './types';
2
- export declare const useEvents: ({ chartRef, chartType }: TUseEvents) => {
3
- highlight: ({ batch }: THighlightChart) => void;
4
- downplay: () => void;
5
- };