@expressms/smartapp-ui 2.5.6 → 2.5.8

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 (401) 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/button-loader.svg +0 -3
  7. package/build/main/assets/icons/cancel-cross.svg +0 -3
  8. package/build/main/assets/icons/check-mark.svg +0 -4
  9. package/build/main/assets/icons/clear.svg +0 -3
  10. package/build/main/assets/icons/close-stories.svg +0 -4
  11. package/build/main/assets/icons/close.svg +0 -10
  12. package/build/main/assets/icons/contact-info.svg +0 -12
  13. package/build/main/assets/icons/corporate-user.svg +0 -10
  14. package/build/main/assets/icons/crown.svg +0 -5
  15. package/build/main/assets/icons/delete-chip.svg +0 -3
  16. package/build/main/assets/icons/download.svg +0 -4
  17. package/build/main/assets/icons/error.svg +0 -5
  18. package/build/main/assets/icons/external-link.svg +0 -3
  19. package/build/main/assets/icons/eye-off.svg +0 -10
  20. package/build/main/assets/icons/eye.svg +0 -10
  21. package/build/main/assets/icons/file.svg +0 -3
  22. package/build/main/assets/icons/info.svg +0 -5
  23. package/build/main/assets/icons/loader.svg +0 -3
  24. package/build/main/assets/icons/logout.svg +0 -4
  25. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  26. package/build/main/assets/icons/mail.svg +0 -3
  27. package/build/main/assets/icons/my-contact-user.svg +0 -10
  28. package/build/main/assets/icons/notification-close.svg +0 -3
  29. package/build/main/assets/icons/notification-error.svg +0 -3
  30. package/build/main/assets/icons/notification-failure.svg +0 -3
  31. package/build/main/assets/icons/notification-info.svg +0 -5
  32. package/build/main/assets/icons/notification-success.svg +0 -4
  33. package/build/main/assets/icons/notification-warning.svg +0 -5
  34. package/build/main/assets/icons/order.svg +0 -6
  35. package/build/main/assets/icons/plus.svg +0 -4
  36. package/build/main/assets/icons/refresh.svg +0 -3
  37. package/build/main/assets/icons/story-loader.svg +0 -3
  38. package/build/main/assets/icons/tick.svg +0 -10
  39. package/build/main/assets/icons/trash.svg +0 -3
  40. package/build/main/assets/storybook/index.d.ts +0 -12
  41. package/build/main/assets/storybook/index.js +0 -13
  42. package/build/main/assets/storybook/index.js.map +0 -1
  43. package/build/main/constants/constants.d.ts +0 -132
  44. package/build/main/constants/constants.js +0 -147
  45. package/build/main/constants/constants.js.map +0 -1
  46. package/build/main/constants/index.d.ts +0 -2
  47. package/build/main/constants/index.js +0 -3
  48. package/build/main/constants/index.js.map +0 -1
  49. package/build/main/constants/types.d.ts +0 -28
  50. package/build/main/constants/types.js +0 -2
  51. package/build/main/constants/types.js.map +0 -1
  52. package/build/main/helpers/index.d.ts +0 -20
  53. package/build/main/helpers/index.js +0 -80
  54. package/build/main/helpers/index.js.map +0 -1
  55. package/build/main/index.d.ts +0 -3
  56. package/build/main/index.js +0 -4
  57. package/build/main/index.js.map +0 -1
  58. package/build/main/styles/index.d.ts +0 -1
  59. package/build/main/styles/index.js +0 -2
  60. package/build/main/styles/index.js.map +0 -1
  61. package/build/main/styles/main.js +0 -0
  62. package/build/main/styles/styles.scss +0 -14
  63. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -56
  65. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  66. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  67. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  68. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  69. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -20
  70. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  71. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  74. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  75. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  76. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  77. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  78. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -23
  79. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  80. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  81. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  82. package/build/main//321/201omponents/Avatar/Avatar.js +0 -115
  83. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  84. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  85. package/build/main//321/201omponents/Avatar/index.js +0 -2
  86. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/types.d.ts +0 -36
  88. package/build/main//321/201omponents/Avatar/types.js +0 -9
  89. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  90. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  91. package/build/main//321/201omponents/Button/Button.js +0 -46
  92. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  93. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  94. package/build/main//321/201omponents/Button/index.js +0 -2
  95. package/build/main//321/201omponents/Button/index.js.map +0 -1
  96. package/build/main//321/201omponents/Button/types.d.ts +0 -23
  97. package/build/main//321/201omponents/Button/types.js +0 -11
  98. package/build/main//321/201omponents/Button/types.js.map +0 -1
  99. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -54
  101. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  102. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  103. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  104. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  105. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  106. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  107. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  108. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -8
  109. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  110. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  111. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  112. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  113. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  114. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  115. package/build/main//321/201omponents/Calendar/index.js +0 -2
  116. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/types.d.ts +0 -14
  118. package/build/main//321/201omponents/Calendar/types.js +0 -2
  119. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -39
  122. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -30
  125. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
  128. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/colors.d.ts +0 -2
  130. package/build/main//321/201omponents/Charts/colors.js +0 -3
  131. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/constants.d.ts +0 -50
  133. package/build/main//321/201omponents/Charts/constants.js +0 -36
  134. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -68
  136. package/build/main//321/201omponents/Charts/helpers.js +0 -91
  137. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/index.js +0 -4
  140. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/types.d.ts +0 -51
  142. package/build/main//321/201omponents/Charts/types.js +0 -2
  143. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  144. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -36
  146. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  147. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  148. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  149. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  150. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -9
  151. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  152. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  153. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  154. package/build/main//321/201omponents/Chip/Chip.js +0 -40
  155. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  156. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  157. package/build/main//321/201omponents/Chip/index.js +0 -2
  158. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  159. package/build/main//321/201omponents/Chip/types.d.ts +0 -10
  160. package/build/main//321/201omponents/Chip/types.js +0 -2
  161. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -44
  164. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  165. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  166. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  167. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  168. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -16
  169. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  170. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -55
  173. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  174. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  175. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  176. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  177. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -24
  178. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  179. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -4
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -172
  182. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  183. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  184. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  185. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -61
  188. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  189. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -53
  190. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  191. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  194. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  197. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  200. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  203. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  204. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  205. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  206. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  207. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  208. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  209. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  210. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  211. package/build/main//321/201omponents/Error/Error.js +0 -22
  212. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  213. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  214. package/build/main//321/201omponents/Error/index.js +0 -2
  215. package/build/main//321/201omponents/Error/index.js.map +0 -1
  216. package/build/main//321/201omponents/Error/types.d.ts +0 -7
  217. package/build/main//321/201omponents/Error/types.js +0 -2
  218. package/build/main//321/201omponents/Error/types.js.map +0 -1
  219. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  220. package/build/main//321/201omponents/Header/Header.js +0 -124
  221. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  222. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  223. package/build/main//321/201omponents/Header/index.js +0 -2
  224. package/build/main//321/201omponents/Header/index.js.map +0 -1
  225. package/build/main//321/201omponents/Header/types.d.ts +0 -44
  226. package/build/main//321/201omponents/Header/types.js +0 -2
  227. package/build/main//321/201omponents/Header/types.js.map +0 -1
  228. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  229. package/build/main//321/201omponents/Input/Input.js +0 -195
  230. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  231. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  232. package/build/main//321/201omponents/Input/index.js +0 -2
  233. package/build/main//321/201omponents/Input/index.js.map +0 -1
  234. package/build/main//321/201omponents/Input/types.d.ts +0 -35
  235. package/build/main//321/201omponents/Input/types.js +0 -2
  236. package/build/main//321/201omponents/Input/types.js.map +0 -1
  237. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  238. package/build/main//321/201omponents/ListItem/ListItem.js +0 -195
  239. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  240. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  241. package/build/main//321/201omponents/ListItem/index.js +0 -2
  242. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  243. package/build/main//321/201omponents/ListItem/types.d.ts +0 -38
  244. package/build/main//321/201omponents/ListItem/types.js +0 -2
  245. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  246. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  247. package/build/main//321/201omponents/Loader/Loader.js +0 -40
  248. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  249. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  250. package/build/main//321/201omponents/Loader/index.js +0 -2
  251. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  252. package/build/main//321/201omponents/Loader/types.d.ts +0 -12
  253. package/build/main//321/201omponents/Loader/types.js +0 -2
  254. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  255. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  256. package/build/main//321/201omponents/Modal/Modal.js +0 -53
  257. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  258. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  259. package/build/main//321/201omponents/Modal/index.js +0 -2
  260. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  261. package/build/main//321/201omponents/Modal/types.d.ts +0 -15
  262. package/build/main//321/201omponents/Modal/types.js +0 -2
  263. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  264. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  265. package/build/main//321/201omponents/Notification/Notification.js +0 -178
  266. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  267. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  268. package/build/main//321/201omponents/Notification/index.js +0 -2
  269. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  270. package/build/main//321/201omponents/Notification/types.d.ts +0 -39
  271. package/build/main//321/201omponents/Notification/types.js +0 -2
  272. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  273. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  274. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  275. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  276. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Profile/index.js +0 -2
  278. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  279. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  280. package/build/main//321/201omponents/Profile/types.js +0 -2
  281. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  284. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  285. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  286. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  287. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  288. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -4
  289. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  290. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  291. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -36
  293. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  294. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  295. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  296. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  297. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -9
  298. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  299. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -4
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -50
  302. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  303. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  304. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  305. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  306. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -9
  307. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  308. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  309. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -66
  311. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  312. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  314. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  315. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -16
  316. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  317. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  318. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  319. package/build/main//321/201omponents/Stories/Stories.js +0 -281
  320. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  321. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Stories/index.js +0 -2
  323. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  324. package/build/main//321/201omponents/Stories/types.d.ts +0 -54
  325. package/build/main//321/201omponents/Stories/types.js +0 -11
  326. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  327. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  328. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  329. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  330. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  331. package/build/main//321/201omponents/Switcher/index.js +0 -2
  332. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  333. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  334. package/build/main//321/201omponents/Switcher/types.js +0 -2
  335. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  338. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  339. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  340. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  341. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  342. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -7
  343. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  344. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  345. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  346. package/build/main//321/201omponents/Textarea/Textarea.js +0 -85
  347. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  348. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  349. package/build/main//321/201omponents/Textarea/index.js +0 -2
  350. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  351. package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
  352. package/build/main//321/201omponents/Textarea/types.js +0 -2
  353. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  354. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  355. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  356. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  357. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  358. package/build/main//321/201omponents/Toggle/index.js +0 -2
  359. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  360. package/build/main//321/201omponents/Toggle/types.d.ts +0 -9
  361. package/build/main//321/201omponents/Toggle/types.js +0 -2
  362. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  365. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  368. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  371. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -3
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -76
  374. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  377. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -55
  380. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -4
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -386
  383. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  384. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -87
  385. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -47
  386. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  387. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  388. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  389. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -72
  392. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  393. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -183
  394. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  395. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  396. package/build/main//321/201omponents/index.d.ts +0 -32
  397. package/build/main//321/201omponents/index.js +0 -33
  398. package/build/main//321/201omponents/index.js.map +0 -1
  399. package/build/main//321/201omponents/types.d.ts +0 -2
  400. package/build/main//321/201omponents/types.js +0 -2
  401. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"CachedImage.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2CAA2C;IAC3C,IAAM,YAAY,GAAG;QACnB,IAAI,CAAC,0BAA0B,EAAE;YAAE,OAAM;QAEzC,eAAe,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA;QAC5C,qBAAqB,CAAC,GAAG,CAAC,CAAA;IAC5B,CAAC,CAAA;IAED,yCAAyC;IACzC,IAAM,aAAa,GAAG;QACpB,IAAI,CAAC,0BAA0B,EAAE;YAAE,OAAM;QAEzC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAA;QAC1C,uBAAuB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,EAA1B,CAA0B,CAAC,CAAA;IAC5E,CAAC,CAAA;IAED,IAAM,mBAAmB,GAAG;QAC1B,IAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,UAAG,KAAK,OAAI,CAAC,CAAC,CAAC,MAAM,CAAA;QAChD,IAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,MAAM,OAAI,CAAC,CAAC,CAAC,MAAM,CAAA;QAEnD,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,WAAW;YACnB,YAAY,EAAE,UAAG,YAAY,OAAI;SAClC,CAAA;IACH,CAAC,CAAA;IAED,OAAO,CACL,cACE,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,SAAS,CAAC,EACzD,KAAK,EAAE,mBAAmB,EAAE,EAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,GACtB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const tryToLoadImageFromCache: (url: string) => Promise<string | null>;
2
- export declare const tryToSaveImageToCache: (url: string) => Promise<void>;
3
- export declare const isBlobUrl: (url: string) => boolean;
@@ -1,40 +0,0 @@
1
- var SMARTAPP_CACHE_STORAGE = 'smartapp-cache-storage';
2
- var NETWORK_RESPONSE_ERROR = 'Network response was not ok';
3
- var FAILED_TO_SAVE_IMAGE_TO_CACHE = 'Failed to save image to cache';
4
- // Загрузка изображения из кэша
5
- export var tryToLoadImageFromCache = function (url) {
6
- return caches
7
- .open(SMARTAPP_CACHE_STORAGE)
8
- .then(function (cache) { return cache.match(url); })
9
- .then(function (response) { return (response === null || response === void 0 ? void 0 : response.blob()) || null; })
10
- .then(function (blob) { return (blob ? URL.createObjectURL(blob) : null); })
11
- .catch(function () { return null; });
12
- };
13
- // Сохранение изображения в кэш
14
- var saveImageToCache = function (url) {
15
- return fetch(url, {
16
- credentials: 'include',
17
- })
18
- .then(function (response) {
19
- if (!response.ok)
20
- throw new Error(NETWORK_RESPONSE_ERROR);
21
- return caches.open(SMARTAPP_CACHE_STORAGE).then(function (cache) { return cache.put(url, response); });
22
- })
23
- .catch(function (error) { return console.error("".concat(FAILED_TO_SAVE_IMAGE_TO_CACHE, ":"), error); });
24
- };
25
- // Проверка наличия изображения в кэше и сохранение его при отсутствии
26
- export var tryToSaveImageToCache = function (url) {
27
- if (!url)
28
- return Promise.resolve();
29
- return caches
30
- .open(SMARTAPP_CACHE_STORAGE)
31
- .then(function (cache) { return cache.match(url); })
32
- .then(function (response) {
33
- if (!response)
34
- return saveImageToCache(url);
35
- return Promise.resolve();
36
- });
37
- };
38
- // Функция для проверки, является ли URL объектом Blob
39
- export var isBlobUrl = function (url) { return url.indexOf('blob:') === 0; };
40
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/helpers.ts"],"names":[],"mappings":"AAAA,IAAM,sBAAsB,GAAG,wBAAwB,CAAA;AACvD,IAAM,sBAAsB,GAAG,6BAA6B,CAAA;AAC5D,IAAM,6BAA6B,GAAG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C,GAAW;IAC/C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAElC,OAAO,MAAM;SACV,IAAI,CAAC,sBAAsB,CAAC;SAC5B,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC;SACjC,IAAI,CAAC,UAAC,QAAQ;QACb,IAAI,CAAC,QAAQ;YAAE,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAC3C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,sDAAsD;AACtD,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,GAAW,IAAK,OAAA,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './CachedImage';
@@ -1,2 +0,0 @@
1
- export { default } from './CachedImage';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,8 +0,0 @@
1
- export interface ICachedImageProps {
2
- src: string;
3
- alt?: string;
4
- className?: string;
5
- height?: number;
6
- width?: number;
7
- borderRadius?: number;
8
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { ICalendarProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const CalendarDatepicker: ({ placeholder, initialCurrentDate, initialCurrentDateRange, minDate, onChangeCurrentDate, onChangeCurrentDateRange, calendarComponentClassName, calendarInputClassName, isRange, width, }: ICalendarProps) => import("react/jsx-runtime").JSX.Element;
4
- export default CalendarDatepicker;
@@ -1,48 +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 } from "react/jsx-runtime";
13
- import { useState } from 'react';
14
- import classNames from 'classnames';
15
- import DatePicker, { registerLocale } from 'react-datepicker';
16
- import ru from 'date-fns/locale/ru';
17
- import en from 'date-fns/locale/en-US';
18
- import '../../styles/styles.scss';
19
- registerLocale('ru', ru);
20
- registerLocale('en', en);
21
- var CalendarDatepicker = function (_a) {
22
- var _b = _a.placeholder, placeholder = _b === void 0 ? 'Введите дату' : _b, initialCurrentDate = _a.initialCurrentDate, initialCurrentDateRange = _a.initialCurrentDateRange, _c = _a.minDate, minDate = _c === void 0 ? null : _c, _d = _a.onChangeCurrentDate, onChangeCurrentDate = _d === void 0 ? function () { return undefined; } : _d, _e = _a.onChangeCurrentDateRange, onChangeCurrentDateRange = _e === void 0 ? function () { return undefined; } : _e, calendarComponentClassName = _a.calendarComponentClassName, calendarInputClassName = _a.calendarInputClassName, _f = _a.isRange, isRange = _f === void 0 ? false : _f, width = _a.width;
23
- var _g = useState(initialCurrentDate ? initialCurrentDate : null), currentDate = _g[0], setCurrentDate = _g[1];
24
- var _h = useState(initialCurrentDateRange ? initialCurrentDateRange : [null, null]), currentDateRange = _h[0], setCurrentDateRange = _h[1];
25
- var startDate = currentDateRange[0], endDate = currentDateRange[1];
26
- var onChangeDate = function (date) {
27
- if (date) {
28
- setCurrentDate(date);
29
- onChangeCurrentDate(date);
30
- }
31
- };
32
- var onChangeDateRange = function (period) {
33
- setCurrentDateRange(period);
34
- onChangeCurrentDateRange(period);
35
- };
36
- return (_jsx("div", __assign({ className: classNames({
37
- 'smartapp-calendar-component': !calendarInputClassName,
38
- calendarInputClassName: calendarInputClassName,
39
- }), style: { width: "".concat(width, "%") } }, { children: isRange ? (_jsx(DatePicker, { selectsRange: true, startDate: startDate, endDate: endDate, dateFormat: "dd.MM.yyyy", placeholderText: placeholder, locale: ru, className: classNames({
40
- 'smartapp-calendar-input': !calendarComponentClassName,
41
- calendarComponentClassName: calendarComponentClassName,
42
- }), onChange: function (period) { return onChangeDateRange(period); } })) : (_jsx(DatePicker, { selected: currentDate, dateFormat: "dd.MM.yyyy", locale: ru, placeholderText: placeholder, minDate: minDate, className: classNames({
43
- 'smartapp-calendar-input': !calendarComponentClassName,
44
- calendarComponentClassName: calendarComponentClassName,
45
- }), onChange: function (date) { return onChangeDate(date); } })) })));
46
- };
47
- export default CalendarDatepicker;
48
- //# sourceMappingURL=Calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,UAAU,EAAE,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACnC,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEtC,OAAO,0BAA0B,CAAA;AAEjC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACxB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AAExB,IAAM,kBAAkB,GAAG,UAAC,EAWX;QAVf,mBAA4B,EAA5B,WAAW,mBAAG,cAAc,KAAA,EAC5B,kBAAkB,wBAAA,EAClB,uBAAuB,6BAAA,EACvB,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EACd,2BAA2C,EAA3C,mBAAmB,mBAAG,cAAY,OAAA,SAAS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MAAM,EAAE,EAAE,EACV,SAAS,EAAE,UAAU,CAAC;gBACpB,yBAAyB,EAAE,CAAC,0BAA0B;gBACtD,0BAA0B,EAAE,0BAA0B;aACvD,CAAC,EACF,QAAQ,EAAE,UAAC,MAAM,IAAK,OAAA,iBAAiB,CAAC,MAAM,CAAC,EAAzB,CAAyB,GAC/C,CACH,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IACT,QAAQ,EAAE,WAAW,EACrB,UAAU,EAAC,YAAY,EACvB,MAAM,EAAE,EAAE,EACV,eAAe,EAAE,WAAW,EAC5B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,UAAU,CAAC;gBACpB,yBAAyB,EAAE,CAAC,0BAA0B;gBACtD,0BAA0B,EAAE,0BAA0B;aACvD,CAAC,EACF,QAAQ,EAAE,UAAC,IAAI,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,GACtC,CACH,IACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Calendar';
@@ -1,2 +0,0 @@
1
- export { default } from './Calendar';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -1,14 +0,0 @@
1
- import { IntRange } from '../types';
2
- export type TDateRange = [Date | null, Date | null];
3
- export interface ICalendarProps {
4
- initialCurrentDate?: Date;
5
- initialCurrentDateRange?: TDateRange;
6
- placeholder?: string;
7
- minDate?: Date | null;
8
- calendarComponentClassName?: string;
9
- calendarInputClassName?: string;
10
- isRange?: boolean;
11
- onChangeCurrentDate?: (date: Date | null) => void;
12
- onChangeCurrentDateRange?: (period: TDateRange) => void;
13
- width?: IntRange<1, 101>;
14
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { IChartProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- export declare const ChartBar: ({ title, xAxis, data }: IChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,39 +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 } from "react/jsx-runtime";
13
- import ReactEcharts from 'echarts-for-react';
14
- import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
15
- import { generateBarItem, generateLegend } from '../helpers';
16
- import '../../../styles/styles.scss';
17
- var series = OPTIONS.series, shadow = OPTIONS.shadow, bar = OPTIONS.bar;
18
- var option = function (_a) {
19
- var data = _a.data, title = _a.title, xAxis = _a.xAxis;
20
- return ({
21
- title: __assign({ text: title }, OPTION_TITLE),
22
- legend: generateLegend({ data: data, chartType: bar }),
23
- tooltip: __assign(__assign({}, OPTION_TOOLTIP), { axisPointer: { type: shadow } }),
24
- grid: OPTION_GRID,
25
- xAxis: __assign({ data: xAxis }, OPTION_X_AXIS),
26
- yAxis: OPTION_Y_AXIS,
27
- series: generateBarItem(data),
28
- emphasis: { focus: series },
29
- barMaxWidth: 32,
30
- barMinWidth: 15,
31
- itemStyle: { borderRadius: [5, 5, 0, 0] },
32
- barGap: '40%',
33
- });
34
- };
35
- export var ChartBar = function (_a) {
36
- var title = _a.title, xAxis = _a.xAxis, data = _a.data;
37
- return _jsx(ReactEcharts, { option: option({ data: data, title: title, xAxis: xAxis }), style: { height: 420 } });
38
- };
39
- //# sourceMappingURL=ChartBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartBar.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartBar/ChartBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE5D,OAAO,6BAA6B,CAAA;AAE5B,IAAA,MAAM,GAAkB,OAAO,OAAzB,EAAE,MAAM,GAAU,OAAO,OAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAEvC,IAAM,MAAM,GAAG,UAAC,EAAmC;QAAjC,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;IAAoB,OAAA,CAAC;QACvD,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QAChD,OAAO,wBACF,cAAc,KACjB,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAC9B;QACD,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QACxC,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;QAC7B,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;QAC3B,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;QACzC,MAAM,EAAE,KAAK;KACd,CAAC;AAhBsD,CAgBtD,CAAA;AAEF,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAAoB,OAAA,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,MAAA,EAAE,KAAK,OAAA,EAAE,KAAK,OAAA,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI;AAAhF,CAAgF,CAAA"}
@@ -1,3 +0,0 @@
1
- import { IChartProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- export declare const ChartLine: ({ title, xAxis, data }: IChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,30 +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 } from "react/jsx-runtime";
13
- import ReactEcharts from 'echarts-for-react';
14
- import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
15
- import { generateLegend, generateLineItem } from '../helpers';
16
- import '../../../styles/styles.scss';
17
- export var ChartLine = function (_a) {
18
- var title = _a.title, xAxis = _a.xAxis, data = _a.data;
19
- var option = {
20
- title: __assign({ text: title }, OPTION_TITLE),
21
- legend: generateLegend({ data: data, chartType: OPTIONS.line }),
22
- tooltip: OPTION_TOOLTIP,
23
- grid: OPTION_GRID,
24
- xAxis: __assign({ boundaryGap: false, data: xAxis }, OPTION_X_AXIS),
25
- yAxis: OPTION_Y_AXIS,
26
- series: generateLineItem(data),
27
- };
28
- return _jsx(ReactEcharts, { option: option, style: { height: 420 } });
29
- };
30
- //# sourceMappingURL=ChartLine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartLine.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartLine/ChartLine.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7D,OAAO,6BAA6B,CAAA;AAEpC,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC5C,IAAM,MAAM,GAAG;QACb,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;QACzD,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QAC5D,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC;KAC/B,CAAA;IAED,OAAO,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI,CAAA;AACjE,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { IChartPieProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- export declare const ChartPie: ({ data, title, subtitle }: IChartPieProps) => import("react/jsx-runtime").JSX.Element;
@@ -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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef } from 'react';
14
- import ReactEcharts from 'echarts-for-react';
15
- import { OPTIONS } from '../constants';
16
- import { COLORS } from '../../../constants';
17
- import { TEXT_COLOR } from '../colors';
18
- import { calculatePieValue, generateLegend } from '../helpers';
19
- import '../../../styles/styles.scss';
20
- var center = OPTIONS.center, pie = OPTIONS.pie;
21
- var white = COLORS.white, black = COLORS.black;
22
- var option = function (data, title) { return ({
23
- legend: generateLegend({ data: data, chartType: pie }),
24
- tooltip: {},
25
- series: [
26
- {
27
- type: pie,
28
- data: data,
29
- radius: ['60%', '100%'],
30
- itemStyle: { borderRadius: 8, borderColor: white, borderWidth: 6 },
31
- label: { show: false },
32
- labelLine: { show: false },
33
- width: 320,
34
- height: 320,
35
- left: center,
36
- },
37
- ],
38
- title: {
39
- text: title,
40
- left: center,
41
- top: '28%',
42
- textStyle: { color: TEXT_COLOR, fontSize: 14, fontWeight: 400 },
43
- subtext: calculatePieValue(data),
44
- subtextStyle: { color: black, fontSize: 32, fontWeight: 700 },
45
- itemGap: 10,
46
- },
47
- }); };
48
- export var ChartPie = function (_a) {
49
- var data = _a.data, title = _a.title, subtitle = _a.subtitle;
50
- var chartRef = useRef(null);
51
- var handleLegendSelectChanged = function (_a) {
52
- var _b;
53
- var selected = _a.selected;
54
- var filteredData = data.filter(function (_a) {
55
- var name = _a.name;
56
- return selected[name];
57
- });
58
- var subtext = calculatePieValue(filteredData);
59
- (_b = chartRef.current) === null || _b === void 0 ? void 0 : _b.getEchartsInstance().setOption({ title: { subtext: subtext } });
60
- };
61
- var onEvents = { legendselectchanged: handleLegendSelectChanged };
62
- return (_jsxs(_Fragment, { children: [_jsx("p", __assign({ className: "smartapp-chart__title" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option(data, subtitle), style: { height: 490 }, onEvents: onEvents })] }));
63
- };
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,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE9D,OAAO,6BAA6B,CAAA;AAE5B,IAAA,MAAM,GAAU,OAAO,OAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AACvB,IAAA,KAAK,GAAY,MAAM,MAAlB,EAAE,KAAK,GAAK,MAAM,MAAX,CAAW;AAE/B,IAAM,MAAM,GAAG,UAAC,IAAqB,EAAE,KAAa,IAAK,OAAA,CAAC;IACxD,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;IAChD,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,GAAG;YACT,IAAI,MAAA;YACJ,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;YACvB,SAAS,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE;YAClE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YACtB,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAC1B,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,IAAI,EAAE,MAAM;SACb;K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EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI,IAC1G,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const TEXT_COLOR = "#11111180";
2
- export declare const LINE_COLOR = "#D3D3D3";
@@ -1,3 +0,0 @@
1
- export var TEXT_COLOR = '#11111180';
2
- export var LINE_COLOR = '#D3D3D3';
3
- //# 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"}
@@ -1,50 +0,0 @@
1
- import { COLORS } from '../../constants';
2
- export declare enum OPTIONS {
3
- center = "center",
4
- axis = "axis",
5
- shadow = "shadow",
6
- circle = "circle",
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 OPTION_TITLE: {
16
- left: OPTIONS;
17
- textStyle: {
18
- color: COLORS;
19
- };
20
- };
21
- export declare const OPTION_TOOLTIP: {
22
- trigger: OPTIONS;
23
- };
24
- export declare const OPTION_GRID: {
25
- left: string;
26
- right: string;
27
- bottom: string;
28
- containLabel: boolean;
29
- };
30
- export declare const OPTION_X_AXIS: {
31
- type: OPTIONS;
32
- axisLine: {
33
- lineStyle: {
34
- color: string;
35
- };
36
- };
37
- axisLabel: {
38
- color: COLORS;
39
- };
40
- axisPointer: {
41
- label: {
42
- show: boolean;
43
- backgroundColor: OPTIONS;
44
- color: COLORS;
45
- };
46
- };
47
- };
48
- export declare const OPTION_Y_AXIS: {
49
- type: OPTIONS;
50
- };
@@ -1,36 +0,0 @@
1
- import { COLORS } from '../../constants';
2
- import { LINE_COLOR } from './colors';
3
- var darkerGray = COLORS.darkerGray, black = COLORS.black;
4
- export var OPTIONS;
5
- (function (OPTIONS) {
6
- OPTIONS["center"] = "center";
7
- OPTIONS["axis"] = "axis";
8
- OPTIONS["shadow"] = "shadow";
9
- OPTIONS["circle"] = "circle";
10
- OPTIONS["category"] = "category";
11
- OPTIONS["transparent"] = "transparent";
12
- OPTIONS["value"] = "value";
13
- OPTIONS["series"] = "series";
14
- OPTIONS["pie"] = "pie";
15
- OPTIONS["bar"] = "bar";
16
- OPTIONS["line"] = "line";
17
- })(OPTIONS || (OPTIONS = {}));
18
- var center = OPTIONS.center, axis = OPTIONS.axis, category = OPTIONS.category, transparent = OPTIONS.transparent, value = OPTIONS.value;
19
- export var OPTION_TITLE = {
20
- left: center,
21
- textStyle: { color: black },
22
- };
23
- export var OPTION_TOOLTIP = { trigger: axis };
24
- export var OPTION_GRID = { left: '3%', right: '4%', bottom: '30%', containLabel: true };
25
- export var OPTION_X_AXIS = {
26
- type: category,
27
- axisLine: {
28
- lineStyle: { color: LINE_COLOR },
29
- },
30
- axisLabel: { color: darkerGray },
31
- axisPointer: {
32
- label: { show: true, backgroundColor: transparent, color: black },
33
- },
34
- };
35
- export var OPTION_Y_AXIS = { type: value };
36
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE7B,IAAA,UAAU,GAAY,MAAM,WAAlB,EAAE,KAAK,GAAK,MAAM,MAAX,CAAW;AACpC,MAAM,CAAN,IAAY,OAYX;AAZD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,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,EAZW,OAAO,KAAP,OAAO,QAYlB;AAEO,IAAA,MAAM,GAAyC,OAAO,OAAhD,EAAE,IAAI,GAAmC,OAAO,KAA1C,EAAE,QAAQ,GAAyB,OAAO,SAAhC,EAAE,WAAW,GAAY,OAAO,YAAnB,EAAE,KAAK,GAAK,OAAO,MAAZ,CAAY;AAE9D,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;CAC5B,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAE/C,MAAM,CAAC,IAAM,WAAW,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;AAEzF,MAAM,CAAC,IAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;KACjC;IACD,SAAS,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IAChC,WAAW,EAAE;QACX,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;KAClE;CACF,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA"}
@@ -1,68 +0,0 @@
1
- import { OPTIONS } from './constants';
2
- import { TChartData, TChartPieData, TGenerateLegendProps } from './types';
3
- export declare const calculateValue: (data: number[]) => number;
4
- export declare const calculatePieValue: (data: TChartPieData[]) => number;
5
- export declare const generateLegendItemValue: (itemName: string, data: TChartData[]) => string;
6
- export declare const generatePieLegendItemValue: (itemName: string, data: TChartPieData[]) => string;
7
- export declare const generateLineItem: (data: TChartData[]) => {
8
- name: string;
9
- data: number[];
10
- type: OPTIONS;
11
- itemStyle: {
12
- color: string;
13
- };
14
- lineStyle: {
15
- width: number;
16
- };
17
- smooth: boolean;
18
- showSymbol: boolean;
19
- emphasis: {
20
- focus: OPTIONS;
21
- };
22
- }[];
23
- export declare const generateBarItem: (data: TChartData[]) => {
24
- name: string;
25
- data: number[];
26
- type: OPTIONS;
27
- itemStyle: {
28
- color: string;
29
- };
30
- }[];
31
- export declare const generateLegend: ({ data, chartType }: TGenerateLegendProps) => {
32
- itemGap: number;
33
- bottom: number;
34
- icon: OPTIONS.circle;
35
- textStyle: {
36
- rich: {
37
- Name: {
38
- fontSize: number;
39
- align: OPTIONS.center;
40
- };
41
- value: {
42
- fontSize: number;
43
- align: OPTIONS.center;
44
- };
45
- };
46
- };
47
- data?: string[] | undefined;
48
- formatter?: ((name: string) => string) | undefined;
49
- } | {
50
- bottom: number;
51
- itemGap: number;
52
- formatter: (name: string) => string;
53
- textStyle: {
54
- rich: {
55
- Name: {
56
- width: number;
57
- fontSize: number;
58
- align: OPTIONS.center;
59
- };
60
- value: {
61
- fontSize: number;
62
- align: OPTIONS.center;
63
- };
64
- };
65
- };
66
- icon: OPTIONS.circle;
67
- data?: string[] | undefined;
68
- } | undefined;
@@ -1,91 +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 { OPTIONS } from './constants';
13
- var series = OPTIONS.series, line = OPTIONS.line, bar = OPTIONS.bar;
14
- export var calculateValue = function (data) { return data.reduce(function (acc, val) { return acc + val; }, 0); };
15
- export var calculatePieValue = function (data) { return data.reduce(function (acc, _a) {
16
- var value = _a.value;
17
- return acc + value;
18
- }, 0); };
19
- var generateSumText = function (itemName, value) {
20
- var sumText = "{value|".concat(value, "}");
21
- return "{Name|".concat(itemName, "}\n\n").concat(sumText);
22
- };
23
- export var generateLegendItemValue = function (itemName, data) {
24
- var item = data.find(function (_a) {
25
- var name = _a.name;
26
- return name === itemName;
27
- });
28
- var value = calculateValue((item === null || item === void 0 ? void 0 : item.data) || []);
29
- return generateSumText(itemName, value);
30
- };
31
- export var generatePieLegendItemValue = function (itemName, data) {
32
- var item = data.find(function (_a) {
33
- var name = _a.name;
34
- return name === itemName;
35
- });
36
- var value = (item === null || item === void 0 ? void 0 : item.value) || 0;
37
- return generateSumText(itemName, value);
38
- };
39
- export var generateLineItem = function (data) {
40
- return data.map(function (_a) {
41
- var name = _a.name, color = _a.color, data = _a.data;
42
- return ({
43
- name: name,
44
- data: data,
45
- type: line,
46
- itemStyle: { color: color },
47
- lineStyle: { width: 1 },
48
- smooth: true,
49
- showSymbol: false,
50
- emphasis: { focus: series },
51
- });
52
- });
53
- };
54
- export var generateBarItem = function (data) { return data.map(function (_a) {
55
- var name = _a.name, color = _a.color, data = _a.data;
56
- return ({ name: name, data: data, type: bar, itemStyle: { color: color } });
57
- }); };
58
- export var generateLegend = function (_a) {
59
- var data = _a.data, chartType = _a.chartType;
60
- var isLineChart = chartType === OPTIONS.line;
61
- var isBarChart = chartType === OPTIONS.bar;
62
- var isPieChart = chartType === OPTIONS.pie;
63
- var commonSettings = {
64
- bottom: 5,
65
- icon: OPTIONS.circle,
66
- textStyle: {
67
- rich: {
68
- Name: { fontSize: 14, align: OPTIONS.center },
69
- value: { fontSize: 24, align: OPTIONS.center },
70
- },
71
- },
72
- };
73
- if (isLineChart || isBarChart) {
74
- var chartData_1 = data;
75
- commonSettings = __assign(__assign({}, commonSettings), { data: chartData_1.map(function (_a) {
76
- var name = _a.name;
77
- return name;
78
- }), formatter: function (name) { return generateLegendItemValue(name, chartData_1); } });
79
- }
80
- if (isLineChart)
81
- return __assign(__assign({}, commonSettings), { itemGap: 70 });
82
- if (isBarChart)
83
- return __assign(__assign({}, commonSettings), { itemGap: 45 });
84
- if (isPieChart) {
85
- var chartPieData_1 = data;
86
- return __assign(__assign({}, commonSettings), { bottom: 0, itemGap: 20, formatter: function (name) { return generatePieLegendItemValue(name, chartPieData_1); }, textStyle: {
87
- rich: __assign(__assign({}, commonSettings.textStyle.rich), { Name: __assign(__assign({}, commonSettings.textStyle.rich.Name), { width: 100 }) }),
88
- } });
89
- }
90
- };
91
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG7B,IAAA,MAAM,GAAgB,OAAO,OAAvB,EAAE,IAAI,GAAU,OAAO,KAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAErC,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,IAAc,IAAK,OAAA,IAAI,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG,IAAK,OAAA,GAAG,GAAG,GAAG,EAAT,CAAS,EAAE,CAAC,CAAC,EAAvC,CAAuC,CAAA;AAEzF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,IAAqB,IAAa,OAAA,IAAI,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,GAAG,GAAG,KAAK;AAAX,CAAW,EAAE,CAAC,CAAC,EAA/C,CAA+C,CAAA;AAEnH,IAAM,eAAe,GAAG,UAAC,QAAgB,EAAE,KAAa;IACtD,IAAM,OAAO,GAAG,iBAAU,KAAK,MAAG,CAAA;IAClC,OAAO,gBAAS,QAAQ,kBAAQ,OAAO,CAAE,CAAA;AAC3C,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,QAAgB,EAAE,IAAkB;IAC1E,IAAM,IAAI,GAAG,IA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