@expressms/smartapp-ui 2.9.1 → 2.9.2

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 (443) 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/more.svg +0 -3
  28. package/build/main/assets/icons/my-contact-user.svg +0 -10
  29. package/build/main/assets/icons/notification-close.svg +0 -3
  30. package/build/main/assets/icons/notification-error.svg +0 -3
  31. package/build/main/assets/icons/notification-failure.svg +0 -3
  32. package/build/main/assets/icons/notification-info.svg +0 -5
  33. package/build/main/assets/icons/notification-success.svg +0 -4
  34. package/build/main/assets/icons/notification-warning.svg +0 -5
  35. package/build/main/assets/icons/order.svg +0 -6
  36. package/build/main/assets/icons/plus.svg +0 -4
  37. package/build/main/assets/icons/private.svg +0 -12
  38. package/build/main/assets/icons/refresh.svg +0 -3
  39. package/build/main/assets/icons/story-loader.svg +0 -3
  40. package/build/main/assets/icons/tick.svg +0 -10
  41. package/build/main/assets/icons/trash.svg +0 -3
  42. package/build/main/assets/icons/unread-mails.svg +0 -4
  43. package/build/main/assets/storybook/index.d.ts +0 -21
  44. package/build/main/assets/storybook/index.js +0 -22
  45. package/build/main/assets/storybook/index.js.map +0 -1
  46. package/build/main/constants/constants.d.ts +0 -152
  47. package/build/main/constants/constants.js +0 -172
  48. package/build/main/constants/constants.js.map +0 -1
  49. package/build/main/constants/index.d.ts +0 -2
  50. package/build/main/constants/index.js +0 -3
  51. package/build/main/constants/index.js.map +0 -1
  52. package/build/main/constants/types.d.ts +0 -24
  53. package/build/main/constants/types.js +0 -2
  54. package/build/main/constants/types.js.map +0 -1
  55. package/build/main/helpers/index.d.ts +0 -22
  56. package/build/main/helpers/index.js +0 -89
  57. package/build/main/helpers/index.js.map +0 -1
  58. package/build/main/hooks/useModal.d.ts +0 -21
  59. package/build/main/hooks/useModal.js +0 -60
  60. package/build/main/hooks/useModal.js.map +0 -1
  61. package/build/main/index.d.ts +0 -36
  62. package/build/main/index.js +0 -37
  63. package/build/main/index.js.map +0 -1
  64. package/build/main/styles/index.d.ts +0 -1
  65. package/build/main/styles/index.js +0 -2
  66. package/build/main/styles/index.js.map +0 -1
  67. package/build/main/styles/main.js +0 -0
  68. package/build/main/styles/styles.scss +0 -14
  69. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  70. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  71. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  72. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  73. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  74. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  75. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -24
  76. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  77. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  78. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  79. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  80. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  81. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  82. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  83. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  84. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -25
  85. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  86. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  88. package/build/main//321/201omponents/Avatar/Avatar.js +0 -135
  89. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  90. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  91. package/build/main//321/201omponents/Avatar/index.js +0 -2
  92. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  93. package/build/main//321/201omponents/Avatar/types.d.ts +0 -58
  94. package/build/main//321/201omponents/Avatar/types.js +0 -29
  95. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  96. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  97. package/build/main//321/201omponents/Button/Button.js +0 -63
  98. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  99. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  100. package/build/main//321/201omponents/Button/index.js +0 -2
  101. package/build/main//321/201omponents/Button/index.js.map +0 -1
  102. package/build/main//321/201omponents/Button/types.d.ts +0 -28
  103. package/build/main//321/201omponents/Button/types.js +0 -11
  104. package/build/main//321/201omponents/Button/types.js.map +0 -1
  105. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  106. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  107. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  108. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  109. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  110. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  111. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  112. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  113. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  114. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
  115. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  116. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  118. package/build/main//321/201omponents/Calendar/Calendar.js +0 -97
  119. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  120. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  121. package/build/main//321/201omponents/Calendar/index.js +0 -2
  122. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  123. package/build/main//321/201omponents/Calendar/types.d.ts +0 -13
  124. package/build/main//321/201omponents/Calendar/types.js +0 -2
  125. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
  127. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -46
  128. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
  130. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  131. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
  133. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -41
  134. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
  136. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -63
  137. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/colors.js +0 -4
  140. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/constants.d.ts +0 -46
  142. package/build/main//321/201omponents/Charts/constants.js +0 -43
  143. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  144. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
  145. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  146. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  147. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  148. package/build/main//321/201omponents/Charts/index.js +0 -4
  149. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  150. package/build/main//321/201omponents/Charts/types.d.ts +0 -88
  151. package/build/main//321/201omponents/Charts/types.js +0 -2
  152. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  153. package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
  154. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  155. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  156. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
  157. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  158. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  159. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  160. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  161. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  162. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  163. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  164. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  165. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -12
  166. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  167. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  168. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  169. package/build/main//321/201omponents/Chip/Chip.js +0 -35
  170. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  171. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  172. package/build/main//321/201omponents/Chip/index.js +0 -2
  173. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  174. package/build/main//321/201omponents/Chip/types.d.ts +0 -13
  175. package/build/main//321/201omponents/Chip/types.js +0 -2
  176. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  177. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  178. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  179. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  180. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  181. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  182. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  183. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
  184. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  185. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  186. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  187. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -82
  188. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  189. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  190. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  191. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  192. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -32
  193. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  194. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  195. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
  196. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -243
  197. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  198. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  199. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  200. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  201. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  202. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
  203. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  204. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -64
  205. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  206. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  207. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  208. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  209. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  210. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  211. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  212. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  213. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  214. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  215. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  216. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  217. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  218. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  219. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  220. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  221. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  222. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  223. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  224. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  225. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
  226. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -223
  227. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  228. package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
  229. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  230. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  231. package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -87
  232. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  233. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  234. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  235. package/build/main//321/201omponents/Error/Error.js +0 -23
  236. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  237. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  238. package/build/main//321/201omponents/Error/index.js +0 -2
  239. package/build/main//321/201omponents/Error/index.js.map +0 -1
  240. package/build/main//321/201omponents/Error/types.d.ts +0 -10
  241. package/build/main//321/201omponents/Error/types.js +0 -2
  242. package/build/main//321/201omponents/Error/types.js.map +0 -1
  243. package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
  244. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  245. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  246. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
  247. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  248. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  249. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
  250. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  251. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  252. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
  253. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  254. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  255. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
  256. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  257. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  258. package/build/main//321/201omponents/Flex/index.d.ts +0 -3
  259. package/build/main//321/201omponents/Flex/index.js +0 -4
  260. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  261. package/build/main//321/201omponents/Flex/types.d.ts +0 -15
  262. package/build/main//321/201omponents/Flex/types.js +0 -2
  263. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  264. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  265. package/build/main//321/201omponents/Header/Header.js +0 -124
  266. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  267. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  268. package/build/main//321/201omponents/Header/index.js +0 -2
  269. package/build/main//321/201omponents/Header/index.js.map +0 -1
  270. package/build/main//321/201omponents/Header/types.d.ts +0 -46
  271. package/build/main//321/201omponents/Header/types.js +0 -2
  272. package/build/main//321/201omponents/Header/types.js.map +0 -1
  273. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  274. package/build/main//321/201omponents/Input/Input.js +0 -207
  275. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  276. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Input/index.js +0 -2
  278. package/build/main//321/201omponents/Input/index.js.map +0 -1
  279. package/build/main//321/201omponents/Input/types.d.ts +0 -29
  280. package/build/main//321/201omponents/Input/types.js +0 -2
  281. package/build/main//321/201omponents/Input/types.js.map +0 -1
  282. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  283. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  284. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  285. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  286. package/build/main//321/201omponents/ListItem/index.js +0 -2
  287. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  288. package/build/main//321/201omponents/ListItem/types.d.ts +0 -42
  289. package/build/main//321/201omponents/ListItem/types.js +0 -2
  290. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  291. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  292. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  293. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  294. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  295. package/build/main//321/201omponents/Loader/index.js +0 -2
  296. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  297. package/build/main//321/201omponents/Loader/types.d.ts +0 -18
  298. package/build/main//321/201omponents/Loader/types.js +0 -2
  299. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  300. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  301. package/build/main//321/201omponents/Modal/Modal.js +0 -143
  302. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  303. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  304. package/build/main//321/201omponents/Modal/index.js +0 -2
  305. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  306. package/build/main//321/201omponents/Modal/types.d.ts +0 -34
  307. package/build/main//321/201omponents/Modal/types.js +0 -2
  308. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  309. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  310. package/build/main//321/201omponents/Notification/Notification.js +0 -217
  311. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  312. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Notification/index.js +0 -2
  314. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  315. package/build/main//321/201omponents/Notification/types.d.ts +0 -45
  316. package/build/main//321/201omponents/Notification/types.js +0 -2
  317. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  318. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  319. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  320. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  321. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Profile/index.js +0 -2
  323. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  324. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  325. package/build/main//321/201omponents/Profile/types.js +0 -2
  326. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  327. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  328. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  329. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  330. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  331. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  332. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  333. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
  334. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  335. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  336. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  337. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  338. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  339. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  340. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  341. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  342. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
  343. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  344. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  345. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
  346. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  347. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  348. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  349. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  350. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  351. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -20
  352. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  353. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  354. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  355. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
  356. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  357. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  358. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  359. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  360. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
  361. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  362. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  363. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  364. package/build/main//321/201omponents/Stories/Stories.js +0 -300
  365. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  366. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  367. package/build/main//321/201omponents/Stories/index.js +0 -2
  368. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  369. package/build/main//321/201omponents/Stories/types.d.ts +0 -70
  370. package/build/main//321/201omponents/Stories/types.js +0 -16
  371. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  372. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  373. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  374. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  375. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  376. package/build/main//321/201omponents/Switcher/index.js +0 -2
  377. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  378. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  379. package/build/main//321/201omponents/Switcher/types.js +0 -2
  380. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  381. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  382. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  383. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  384. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  385. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  386. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  387. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -9
  388. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  389. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  390. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  391. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  392. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  393. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  394. package/build/main//321/201omponents/Textarea/index.js +0 -2
  395. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  396. package/build/main//321/201omponents/Textarea/types.d.ts +0 -12
  397. package/build/main//321/201omponents/Textarea/types.js +0 -2
  398. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  399. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  400. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  401. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  402. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  403. package/build/main//321/201omponents/Toggle/index.js +0 -2
  404. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  405. package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
  406. package/build/main//321/201omponents/Toggle/types.js +0 -2
  407. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  408. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  409. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  410. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  411. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  412. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -82
  413. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  414. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  415. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  416. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  417. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
  418. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -121
  419. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  420. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  421. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -100
  422. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  423. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  424. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -91
  425. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  426. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
  427. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -447
  428. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  429. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -98
  430. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
  431. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  432. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  433. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  434. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  435. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  436. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -80
  437. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  438. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -200
  439. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  440. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  441. package/build/main//321/201omponents/types.d.ts +0 -2
  442. package/build/main//321/201omponents/types.js +0 -2
  443. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,447 +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, Fragment as _Fragment } from "react/jsx-runtime";
22
- /* eslint-disable max-lines */
23
- import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
24
- import Select, { components } from 'react-select';
25
- import { debounce, isNil, isNull, uniqBy, uniq, isEmpty, omit } from 'lodash';
26
- import classNames from 'classnames';
27
- import { transliterate as tr } from 'transliteration';
28
- import { ru } from 'convert-layout';
29
- import LoadingMessage from './LoadingMessage/LoadingMessage';
30
- import MultiValueLabel from './MultiValueLabel/MultiValueLabel';
31
- import Option from './Option/Option';
32
- import MenuList from './MenuList/MenuList';
33
- import Modal from '../Modal';
34
- import ContactBottomSheet from './ContactBottomSheet/ContactBottomSheet';
35
- import { IndicatorSeparator, DropdownIndicator, LoadingIndicator, MultiValueRemove, generateCorporateOptionsToSelect, generateContactsOptionsToSelect, generateCorporateOption, generateContactsOption, generateEnteredByUserOption, sortCorporateContacts, } from './helpers';
36
- import { generateId, isIosPlatform, isMobilePlatform } from '../../helpers';
37
- import { DEFAULT_INPUT_PADDING, ENTER_KEY, FILL_TYPE, INPUT_COUNTER_TIMEOUT, LANGUAGES, LAYOUT_TYPE, MASK_INPUT_PL, MENU_POSITIONS, PLATFORM, } from '../../constants';
38
- import selectStyles from './selectStyles';
39
- import '../../styles/styles.scss';
40
- var MIN_INPUT_SYMBOLS = 3;
41
- var THREE_DIGIT_NUMBER_WIDTH = 48;
42
- var TWO_DIGIT_NUMBER_WIDTH = 40;
43
- var SINGLE_DIGIT_NUMBER_WIDTH = 32;
44
- var INPUT_SPACE_WIDTH = 46;
45
- var GAP = 8;
46
- var USER_TYPING_TIMEOUT = 1000;
47
- export var EMAIL_FIELD = 'email';
48
- var MENU_ACTIONS;
49
- (function (MENU_ACTIONS) {
50
- MENU_ACTIONS["close"] = "menu-close";
51
- })(MENU_ACTIONS || (MENU_ACTIONS = {}));
52
- var INPUT_ACTIONS;
53
- (function (INPUT_ACTIONS) {
54
- INPUT_ACTIONS["change"] = "input-change";
55
- INPUT_ACTIONS["blur"] = "input-blur";
56
- })(INPUT_ACTIONS || (INPUT_ACTIONS = {}));
57
- var EXCLUDED_FIELDS;
58
- (function (EXCLUDED_FIELDS) {
59
- EXCLUDED_FIELDS["value"] = "value";
60
- EXCLUDED_FIELDS["label"] = "label";
61
- EXCLUDED_FIELDS["layoutType"] = "layoutType";
62
- EXCLUDED_FIELDS["platform"] = "platform";
63
- EXCLUDED_FIELDS["language"] = "language";
64
- EXCLUDED_FIELDS["isMyContacts"] = "isMyContacts";
65
- EXCLUDED_FIELDS["isEnteredByUser"] = "isEnteredByUser";
66
- EXCLUDED_FIELDS["isChipsCollapsable"] = "isChipsCollapsable";
67
- EXCLUDED_FIELDS["isSelectedChipHasTooltip"] = "isSelectedChipHasTooltip";
68
- EXCLUDED_FIELDS["isInputFocused"] = "isInputFocused";
69
- EXCLUDED_FIELDS["setIsSearchable"] = "setIsSearchable";
70
- EXCLUDED_FIELDS["selectRef"] = "selectRef";
71
- EXCLUDED_FIELDS["setModalData"] = "setModalData";
72
- EXCLUDED_FIELDS["isError"] = "isError";
73
- EXCLUDED_FIELDS["collapsableChipsCount"] = "collapsableChipsCount";
74
- EXCLUDED_FIELDS["lastVisibleChipIndex"] = "lastVisibleChipIndex";
75
- })(EXCLUDED_FIELDS || (EXCLUDED_FIELDS = {}));
76
- var COMMON_FIELDS_TO_OMIT = Object.keys(omit(EXCLUDED_FIELDS, [EXCLUDED_FIELDS.language, EXCLUDED_FIELDS.isMyContacts, EXCLUDED_FIELDS.isEnteredByUser, EXCLUDED_FIELDS.isError]));
77
- var Input = function (props) { return _jsx(components.Input, __assign({}, props, { enterkeyhint: "done" })); };
78
- var UserDropdown = function (_a) {
79
- var _b = _a.platform, platform = _b === void 0 ? PLATFORM.web : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isChipsVisible, isChipsVisible = _e === void 0 ? true : _e, _f = _a.isChipsCollapsable, isChipsCollapsable = _f === void 0 ? false : _f, _g = _a.isSelectedChipHasTooltip, isSelectedChipHasTooltip = _g === void 0 ? false : _g, _h = _a.isMenuCloseOnSelect, isMenuCloseOnSelect = _h === void 0 ? true : _h, _j = _a.isFilteringDisabled, isFilteringDisabled = _j === void 0 ? false : _j, _k = _a.hasNextPage, hasNextPage = _k === void 0 ? false : _k, _l = _a.isNextPageLoading, isNextPageLoading = _l === void 0 ? false : _l, _m = _a.language, language = _m === void 0 ? LANGUAGES.ru : _m, _o = _a.layoutType, layoutType = _o === void 0 ? LAYOUT_TYPE.minimal : _o, title = _a.title, mask = _a.mask, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, maxMembersCount = _a.maxMembersCount, _p = _a.fillType, fillType = _p === void 0 ? FILL_TYPE.primary : _p, _q = _a.menuPosition, menuPosition = _q === void 0 ? MENU_POSITIONS.top : _q, _r = _a.autoFocus, autoFocus = _r === void 0 ? false : _r, containerClassName = _a.containerClassName, containerStyles = _a.containerStyles, _s = _a.selectedEntries, selectedEntries = _s === void 0 ? [] : _s, corporateEntries = _a.corporateEntries, myContactsEntries = _a.myContactsEntries, onInputChange = _a.onInputChange, onChange = _a.onChange, onMenuOpen = _a.onMenuOpen, onMenuClose = _a.onMenuClose, onLoadNextPage = _a.onLoadNextPage;
80
- var _t = useState(''), userDropdownId = _t[0], setUserDropdownId = _t[1];
81
- var _u = useState([]), selectedUsers = _u[0], setSelectedUsers = _u[1];
82
- var _v = useState(null), timeoutId = _v[0], setTimeoutId = _v[1];
83
- var _w = useState(''), paddingLeft = _w[0], setPaddingLeft = _w[1];
84
- var _x = useState(0), maskWidth = _x[0], setMaskWidth = _x[1];
85
- var _y = useState(false), isError = _y[0], setIsError = _y[1];
86
- var _z = useState(true), isSearchable = _z[0], setIsSearchable = _z[1];
87
- var _0 = useState(false), isUserTyping = _0[0], setIsUserTyping = _0[1];
88
- var _1 = useState(null), modalData = _1[0], setModalData = _1[1];
89
- var _2 = useState(''), chipLabelWithMaxWidth = _2[0], setChipLabelWithMaxWidth = _2[1];
90
- var _3 = useState(''), inputValue = _3[0], setInputValue = _3[1];
91
- var isInputFocused = useRef(false);
92
- var selectRef = useRef(null);
93
- var maskRef = useRef(null);
94
- var menuScrollFromTop = useRef(0);
95
- var collapsableChipsCount = useRef(0);
96
- var lastVisibleChipIndex = useRef(-1);
97
- var checkIsValueIsEmail = function (inputValue) {
98
- var regex = new RegExp(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/);
99
- return regex.test(inputValue);
100
- };
101
- var calculatePaddingLeft = function () {
102
- var _a, _b;
103
- var maskWidth = ((_b = (_a = maskRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || null;
104
- maskWidth && setMaskWidth(maskWidth + GAP);
105
- return "".concat(maskWidth ? maskWidth + MASK_INPUT_PL : DEFAULT_INPUT_PADDING, "px");
106
- };
107
- var generateStyles = function () {
108
- return selectStyles({
109
- isChipsVisible: isChipsVisible,
110
- isMaxMembersAdded: maxMembersCount && isChipsVisible ? selectedUsers.length === maxMembersCount : false,
111
- isDisabled: isDisabled,
112
- isError: isError || selectedUsers.some(function (_a) {
113
- var isError = _a.isError;
114
- return isError;
115
- }),
116
- lastRowNumber: isChipsVisible ? Math.ceil(selectedUsers.length / 2) + 1 : 1,
117
- paddingLeft: paddingLeft,
118
- fillType: fillType,
119
- platform: platform,
120
- layoutType: layoutType,
121
- });
122
- };
123
- var generateNoOptionsMessage = function (_a) {
124
- var inputValue = _a.inputValue;
125
- return inputValue.length >= MIN_INPUT_SYMBOLS && !isNull(corporateEntries) && !isNull(myContactsEntries) && noOptionsMessage ? noOptionsMessage : null;
126
- };
127
- var generateOptions = function () {
128
- var _a, _b;
129
- if (isLoading || isUserTyping)
130
- return;
131
- var commonFields = {
132
- platform: platform,
133
- layoutType: layoutType,
134
- isChipsCollapsable: isChipsCollapsable,
135
- isSelectedChipHasTooltip: isSelectedChipHasTooltip,
136
- isInputFocused: isInputFocused,
137
- selectRef: selectRef,
138
- setIsSearchable: setIsSearchable,
139
- setModalData: setModalData,
140
- collapsableChipsCount: collapsableChipsCount,
141
- lastVisibleChipIndex: lastVisibleChipIndex,
142
- };
143
- var corporateContacts = uniqBy(__spreadArray(__spreadArray([], ((corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.corpPhonebookEntries) || []), true), ((corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.trustSearchEntries) || []), true), function (_a) {
144
- var contacts = _a.contacts;
145
- return contacts.filter(function (_a) {
146
- var contactType = _a.contactType;
147
- return contactType === EMAIL_FIELD;
148
- })[0].contact;
149
- });
150
- var query = ((_b = (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.inputValue) || '';
151
- var sortedCorporateContacts = sortCorporateContacts(corporateContacts, query);
152
- return __spreadArray(__spreadArray([], generateCorporateOptionsToSelect(__assign({ language: language, options: sortedCorporateContacts }, commonFields)), true), generateContactsOptionsToSelect(__assign({ options: myContactsEntries || [] }, commonFields)), true);
153
- };
154
- var handleSetTimeoutForCounter = function () {
155
- var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
156
- setTimeoutId(id);
157
- };
158
- var requestDebounce = debounce(function (inputValue) {
159
- onInputChange(inputValue);
160
- setIsUserTyping(false);
161
- }, USER_TYPING_TIMEOUT);
162
- var handleResetError = function () { return isError && setIsError(false); };
163
- var handleMenuClose = function () {
164
- menuScrollFromTop.current = 0;
165
- handleResetError();
166
- onMenuClose && onMenuClose();
167
- };
168
- var handleInputChange = function (inputValue, additionalInfo) {
169
- if (additionalInfo) {
170
- var action = additionalInfo.action, prevInputValue = additionalInfo.prevInputValue;
171
- var trimPrevInputValue_1 = prevInputValue.trim();
172
- var isInputBlurAction = action === INPUT_ACTIONS.blur;
173
- var isMenuCloseAction = action === MENU_ACTIONS.close;
174
- if (!isInputBlurAction && !isMenuCloseAction)
175
- setInputValue(inputValue);
176
- if ((isInputBlurAction || isMenuCloseAction) && checkIsValueIsEmail(trimPrevInputValue_1)) {
177
- var isUserAlreadySelected = selectedUsers.some(function (_a) {
178
- var email = _a.email;
179
- return email === trimPrevInputValue_1;
180
- });
181
- setInputValue(isUserAlreadySelected ? trimPrevInputValue_1 : '');
182
- }
183
- }
184
- setIsUserTyping(!isEmpty(inputValue));
185
- handleResetError();
186
- if (inputValue.length >= MIN_INPUT_SYMBOLS) {
187
- requestDebounce(inputValue);
188
- }
189
- else {
190
- debounce(function () {
191
- setIsUserTyping(false);
192
- }, USER_TYPING_TIMEOUT);
193
- }
194
- };
195
- var handleAddUser = function (needToShowError) {
196
- if (needToShowError === void 0) { needToShowError = true; }
197
- var props = selectRef.current.props;
198
- var options = props.options, inputValue = props.inputValue, onChange = props.onChange;
199
- var trimInputValue = inputValue.trim();
200
- var optionProps = {
201
- email: trimInputValue,
202
- platform: platform,
203
- layoutType: layoutType,
204
- isChipsCollapsable: isChipsCollapsable,
205
- isSelectedChipHasTooltip: isSelectedChipHasTooltip,
206
- isInputFocused: isInputFocused,
207
- selectRef: selectRef,
208
- collapsableChipsCount: collapsableChipsCount,
209
- lastVisibleChipIndex: lastVisibleChipIndex,
210
- };
211
- if (checkIsValueIsEmail(trimInputValue)) {
212
- var isUserAlreadySelected = selectedUsers.find(function (_a) {
213
- var email = _a.email;
214
- return email === trimInputValue;
215
- });
216
- var existingUser = options.find(function (_a) {
217
- var email = _a.email;
218
- return email === trimInputValue;
219
- });
220
- onChange(__spreadArray(__spreadArray([], selectedUsers, true), [existingUser || generateEnteredByUserOption(optionProps)], false));
221
- isUserAlreadySelected && needToShowError
222
- ? setIsError(true)
223
- : handleInputChange('', { action: INPUT_ACTIONS.change, prevInputValue: trimInputValue });
224
- }
225
- return Promise.resolve();
226
- };
227
- var handleKeyDown = function (event) {
228
- if (event.code === ENTER_KEY || event.key === ENTER_KEY) {
229
- event.preventDefault();
230
- handleAddUser().then(function () { });
231
- }
232
- };
233
- var handleChange = function (newSelectedUsers) {
234
- var uniqNewSelectedUsers = uniqBy(newSelectedUsers, EMAIL_FIELD);
235
- var users = [];
236
- var deletedUser = selectedUsers.find(function (_a) {
237
- var value = _a.value;
238
- return !uniqNewSelectedUsers.some(function (_a) {
239
- var selectedUserValue = _a.value;
240
- return value === selectedUserValue;
241
- });
242
- });
243
- if (deletedUser === null || deletedUser === void 0 ? void 0 : deletedUser.isNotRemovable)
244
- return;
245
- uniqNewSelectedUsers.forEach(function (user) {
246
- var isEnteredByUser = user.isEnteredByUser, isMyContacts = user.isMyContacts;
247
- var userToAdd = omit(user, COMMON_FIELDS_TO_OMIT);
248
- var entryFieldsToExclude = isMyContacts ? [EXCLUDED_FIELDS.isMyContacts] : [EXCLUDED_FIELDS.language];
249
- var fieldsToExclude = isEnteredByUser ? [EXCLUDED_FIELDS.isEnteredByUser, EXCLUDED_FIELDS.isError] : entryFieldsToExclude;
250
- users.push(omit(userToAdd, fieldsToExclude));
251
- });
252
- onChange(users);
253
- setSelectedUsers(uniqNewSelectedUsers);
254
- if (maxMembersCount) {
255
- var isMaxUsersAdded = uniqNewSelectedUsers.length === maxMembersCount;
256
- var remainingUsers = maxMembersCount - uniqNewSelectedUsers.length;
257
- if (isMaxUsersAdded) {
258
- !isNull(timeoutId) && clearTimeout(timeoutId);
259
- handleSetTimeoutForCounter();
260
- }
261
- if (remainingUsers && !isNull(timeoutId)) {
262
- clearTimeout(timeoutId);
263
- setTimeoutId(null);
264
- }
265
- }
266
- if (!isInputFocused.current && isChipsCollapsable) {
267
- handleFocus();
268
- }
269
- };
270
- var isContainsValue = function (_a) {
271
- var label = _a.label, email = _a.email, value = _a.value;
272
- return label.toLowerCase().includes(value) || email.toLowerCase().includes(value);
273
- };
274
- var handleFilterOption = function (_a, inputValue) {
275
- var _b = _a.data, label = _b.label, optionEmail = _b.email;
276
- var originInputValue = inputValue.toLowerCase();
277
- var transliteratedInputValue = tr(originInputValue);
278
- var toEngInputValue = ru.toEn(originInputValue);
279
- var fromEngInputValue = ru.fromEn(originInputValue);
280
- var isUserAlreadySelected = selectedUsers.find(function (_a) {
281
- var email = _a.email;
282
- return email === optionEmail;
283
- });
284
- var isContainsInputValue = [originInputValue, transliteratedInputValue, toEngInputValue, fromEngInputValue].some(function (value) {
285
- return isContainsValue({ label: label, email: optionEmail, value: value });
286
- });
287
- if (isFilteringDisabled)
288
- return !isEmpty(selectedUsers) ? !isUserAlreadySelected : true;
289
- return !isEmpty(selectedUsers) ? !isUserAlreadySelected && isContainsInputValue : isContainsInputValue;
290
- };
291
- var generateTruncatedElementY = function (element) { return Math.trunc(element.getBoundingClientRect().y); };
292
- var calculateCounterWidth = function (counterNumber) {
293
- if (counterNumber >= 100)
294
- return THREE_DIGIT_NUMBER_WIDTH;
295
- if (counterNumber >= 10)
296
- return TWO_DIGIT_NUMBER_WIDTH;
297
- return SINGLE_DIGIT_NUMBER_WIDTH;
298
- };
299
- var handleCollapseChips = function () {
300
- var _a, _b;
301
- var collapsableChips = 0;
302
- var chipLabelWithMaxWidth = '';
303
- var chipsNodes = ((_a = document.querySelector("#".concat(userDropdownId))) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.smartapp-chip')) || [];
304
- var chips = Array.from(chipsNodes);
305
- if (isEmpty(chips))
306
- return;
307
- var yRows = uniq(chips.map(function (chip) { return generateTruncatedElementY(chip); }));
308
- var ySecondRow = yRows[1];
309
- var rowsToHide = yRows.slice(2);
310
- var secondRow = [];
311
- chips.forEach(function (chip) {
312
- var y = generateTruncatedElementY(chip);
313
- if (rowsToHide.includes(y)) {
314
- collapsableChips += 1;
315
- }
316
- else {
317
- y === ySecondRow && secondRow.push(chip);
318
- }
319
- });
320
- var counterWidth = calculateCounterWidth(collapsableChips);
321
- var rowWidth = counterWidth + INPUT_SPACE_WIDTH;
322
- var dropdownWidth = ((_b = document.querySelector("#".concat(userDropdownId))) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width) - maskWidth;
323
- secondRow.forEach(function (chip) {
324
- var _a;
325
- rowWidth += chip.getBoundingClientRect().width + GAP;
326
- if (rowWidth > dropdownWidth) {
327
- if (secondRow.length > 1) {
328
- collapsableChips += 1;
329
- }
330
- else {
331
- var emptySpaceWidth = collapsableChips > 0 ? counterWidth + INPUT_SPACE_WIDTH + GAP : INPUT_SPACE_WIDTH;
332
- chip.style.maxWidth = "".concat(dropdownWidth - emptySpaceWidth, "px");
333
- chipLabelWithMaxWidth = ((_a = chip.querySelector('.smartapp-chip__info--name')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '';
334
- }
335
- }
336
- });
337
- collapsableChipsCount.current = collapsableChips;
338
- lastVisibleChipIndex.current = chips.length - collapsableChips;
339
- setChipLabelWithMaxWidth(chipLabelWithMaxWidth || generateId());
340
- };
341
- var handleUnCollapseChips = function () {
342
- var _a;
343
- if (!userDropdownId)
344
- return;
345
- var chipsNodes = ((_a = document.querySelector("#".concat(userDropdownId))) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.smartapp-chip')) || [];
346
- var chips = Array.from(chipsNodes);
347
- chips.forEach(function (chip) {
348
- var _a;
349
- var chipLabel = ((_a = chip.querySelector('.smartapp-chip__info--name')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '';
350
- chipLabel === chipLabelWithMaxWidth && (chip.style.maxWidth = '100%');
351
- });
352
- collapsableChipsCount.current = 0;
353
- lastVisibleChipIndex.current = -1;
354
- setChipLabelWithMaxWidth('');
355
- };
356
- var handleBlur = function () {
357
- handleAddUser(false).then(function () {
358
- isChipsCollapsable && handleCollapseChips();
359
- isInputFocused.current = false;
360
- });
361
- };
362
- var handleFocus = function () {
363
- if (isIosPlatform(platform)) {
364
- new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
365
- }
366
- else {
367
- setTimeout(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 100);
368
- }
369
- isInputFocused.current = true;
370
- isChipsCollapsable && handleUnCollapseChips();
371
- };
372
- var handleCloseModal = function () {
373
- setModalData(null);
374
- setIsSearchable(true);
375
- if (isMobilePlatform(platform)) {
376
- new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
377
- }
378
- };
379
- var renderCounter = function () {
380
- return !isNil(maxMembersCount) && (_jsx("div", __assign({ className: classNames('smartapp-user-dropdown__title--counter', { 'smartapp-user-dropdown__title--counter__error': !isNull(timeoutId) }) }, { children: "".concat(selectedUsers.length, "/").concat(maxMembersCount) })));
381
- };
382
- var renderTitle = function () {
383
- return title && (_jsxs("div", __assign({ className: "smartapp-user-dropdown__title" }, { children: [_jsx("p", __assign({ className: "smartapp-user-dropdown__title--text" }, { children: title })), renderCounter()] })));
384
- };
385
- var renderMask = function () {
386
- return mask && (_jsx("div", __assign({ ref: maskRef, className: "smartapp-user-dropdown__container--mask" }, { children: mask })));
387
- };
388
- var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-user-dropdown__hint" }, { children: hint })); };
389
- var modalContent = modalData ? (_jsx(ContactBottomSheet, { language: language, avatar: modalData.avatar, name: modalData.name, email: modalData.email, serverName: modalData.serverName, company: modalData.company, department: modalData.department, companyPosition: modalData.companyPosition })) : (_jsx(_Fragment, {}));
390
- useEffect(function () {
391
- !userDropdownId && setUserDropdownId("user_dropdown_".concat(generateId().replace(/-/g, '_')));
392
- }, [userDropdownId]);
393
- useLayoutEffect(function () {
394
- if (userDropdownId) {
395
- isChipsCollapsable ? handleCollapseChips() : handleUnCollapseChips();
396
- }
397
- // eslint-disable-next-line
398
- }, [isChipsCollapsable, userDropdownId]);
399
- useEffect(function () {
400
- setPaddingLeft(calculatePaddingLeft());
401
- }, [mask]);
402
- useEffect(function () {
403
- setSelectedUsers(function (prevSelectedUsers) { return prevSelectedUsers.map(function (selectedUser) { return (__assign(__assign({}, selectedUser), { layoutType: layoutType, isChipsCollapsable: isChipsCollapsable })); }); });
404
- }, [layoutType, isChipsCollapsable]);
405
- useEffect(function () {
406
- if (!isEmpty(selectedEntries)) {
407
- setSelectedUsers(selectedEntries.map(function (entity) {
408
- var commonFields = {
409
- platform: platform,
410
- layoutType: layoutType,
411
- isChipsCollapsable: isChipsCollapsable,
412
- isSelectedChipHasTooltip: isSelectedChipHasTooltip,
413
- isInputFocused: isInputFocused,
414
- selectRef: selectRef,
415
- collapsableChipsCount: collapsableChipsCount,
416
- lastVisibleChipIndex: lastVisibleChipIndex,
417
- };
418
- var generatedNotCorporateEntity = Object.keys(entity).length === 1
419
- ? generateEnteredByUserOption(__assign({ email: entity.email }, commonFields))
420
- : generateContactsOption(__assign({ option: entity }, commonFields));
421
- return 'contacts' in entity ? generateCorporateOption(__assign({ option: entity }, commonFields)) : generatedNotCorporateEntity;
422
- }));
423
- }
424
- // eslint-disable-next-line
425
- }, [selectedEntries]);
426
- useEffect(function () {
427
- var handleVisibilityChange = function () { var _a; return document.hidden && ((_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.blur()); };
428
- document.addEventListener('visibilitychange', handleVisibilityChange);
429
- return function () {
430
- document.removeEventListener('visibilitychange', handleVisibilityChange);
431
- };
432
- }, []);
433
- var OptionComponent = useCallback(function (props) { return _jsx(Option, __assign({}, props, { children: props.children })); }, []);
434
- var MenuListComponent = useCallback(function (props) { return (_jsx(MenuList, __assign({}, props, { children: props.children, selectRef: selectRef, scrollFromTop: menuScrollFromTop, language: language, hasNextPage: hasNextPage, isLoading: isLoading, isUserTyping: isUserTyping, isNextPageLoading: isNextPageLoading, onLoadNextPage: function (inputValue) { return onLoadNextPage && onLoadNextPage(inputValue); } }))); }, [hasNextPage, isLoading, isNextPageLoading, isUserTyping, onLoadNextPage, language]);
435
- return (_jsxs("div", __assign({ id: userDropdownId, className: classNames('smartapp-user-dropdown', containerClassName), style: containerStyles }, { children: [renderTitle(), _jsxs("div", __assign({ className: "smartapp-user-dropdown__container" }, { children: [renderMask(), _jsx(Select, { ref: selectRef, isMulti: true, openMenuOnFocus: true, blurInputOnSelect: false, captureMenuScroll: false, isSearchable: isSearchable, menuPlacement: menuPosition, controlShouldRenderValue: isChipsVisible, backspaceRemovesValue: isChipsVisible, isDisabled: isDisabled, closeMenuOnSelect: isMenuCloseOnSelect, isLoading: isLoading || isUserTyping, isClearable: false, styles: generateStyles(), placeholder: placeholder || '', noOptionsMessage: generateNoOptionsMessage, loadingMessage: function () { return _jsx(LoadingMessage, {}); }, value: selectedUsers, inputValue: inputValue, options: !isNull(corporateEntries) || !isNull(myContactsEntries) ? generateOptions() : undefined, filterOption: handleFilterOption, onInputChange: handleInputChange, onChange: handleChange, onMenuClose: handleMenuClose, onMenuOpen: onMenuOpen, onKeyDown: handleKeyDown, onBlur: handleBlur, autoFocus: autoFocus, onFocus: handleFocus, components: {
436
- Input: Input,
437
- MultiValueLabel: MultiValueLabel,
438
- MultiValueRemove: MultiValueRemove,
439
- Option: OptionComponent,
440
- IndicatorSeparator: IndicatorSeparator,
441
- DropdownIndicator: DropdownIndicator,
442
- LoadingIndicator: LoadingIndicator,
443
- MenuList: MenuListComponent,
444
- } })] })), renderHint(), _jsx(Modal, { isModalOpen: !isNull(modalData), platform: platform, content: modalContent, isBottomSheet: isMobilePlatform(platform), backgroundColor: "var(--color-bg-blackout-transparent)", handleCloseModal: handleCloseModal })] })));
445
- };
446
- export default UserDropdown;
447
- //# sourceMappingURL=UserDropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserDropdown.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/UserDropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACxF,OAAO,MAAM,EAAE,EAAc,UAAU,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7E,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,IAAI,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,EAAE,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sCAAsC,EACtD,gBAAgB,EAAE,gBAAgB,GAClC,KACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,98 +0,0 @@
1
- /// <reference types="react" />
2
- import { TCorporateEntity, TGenerateContactsOption, TGenerateContactsOptionsToSelect, TGenerateCorporateOption, TGenerateCorporateOptionsToSelect, TGenerateEnteredByUserOption } from './types';
3
- export declare const generateCorporateOption: ({ option: { name, avatar, email, contacts, serverName, company, department, companyPosition, isPrivateSchedule, isNotRemovable }, ...remainingFields }: TGenerateCorporateOption) => {
4
- platform: string;
5
- layoutType: string;
6
- isChipsCollapsable: boolean;
7
- isInputFocused: import("react").RefObject<boolean>;
8
- selectRef: import("react").RefObject<any>;
9
- value: string;
10
- label: string;
11
- name: string;
12
- avatar: string | null;
13
- email: string;
14
- contacts: {
15
- userHuid: string;
16
- contact: string;
17
- contactType: string;
18
- }[];
19
- serverName: string | null;
20
- company: string | null;
21
- department: string | null;
22
- companyPosition: string | null;
23
- isPrivateSchedule: boolean | undefined;
24
- isNotRemovable: boolean | undefined;
25
- };
26
- export declare const generateCorporateOptionsToSelect: ({ language, options, setIsSearchable, setModalData, ...remainingFields }: TGenerateCorporateOptionsToSelect) => {
27
- language: string;
28
- setIsSearchable: (isSearchable: boolean) => void;
29
- setModalData: (modalData: import("./types").TModalData | null) => void;
30
- platform: string;
31
- layoutType: string;
32
- isChipsCollapsable: boolean;
33
- isInputFocused: import("react").RefObject<boolean>;
34
- selectRef: import("react").RefObject<any>;
35
- value: string;
36
- label: string;
37
- name: string;
38
- avatar: string | null;
39
- email: string;
40
- contacts: {
41
- userHuid: string;
42
- contact: string;
43
- contactType: string;
44
- }[];
45
- serverName: string | null;
46
- company: string | null;
47
- department: string | null;
48
- companyPosition: string | null;
49
- isPrivateSchedule: boolean | undefined;
50
- isNotRemovable: boolean | undefined;
51
- }[];
52
- export declare const generateContactsOption: ({ option: { name, avatar, email, isPrivateSchedule, isNotRemovable }, ...remainingFields }: TGenerateContactsOption) => {
53
- platform: string;
54
- layoutType: string;
55
- isChipsCollapsable: boolean;
56
- isInputFocused: import("react").RefObject<boolean>;
57
- selectRef: import("react").RefObject<any>;
58
- value: string;
59
- label: string;
60
- name: string | null;
61
- avatar: string | null;
62
- email: string;
63
- isMyContacts: boolean;
64
- isPrivateSchedule: boolean | undefined;
65
- isNotRemovable: boolean | undefined;
66
- };
67
- export declare const generateContactsOptionsToSelect: ({ options, ...remainingFields }: TGenerateContactsOptionsToSelect) => {
68
- platform: string;
69
- layoutType: string;
70
- isChipsCollapsable: boolean;
71
- isInputFocused: import("react").RefObject<boolean>;
72
- selectRef: import("react").RefObject<any>;
73
- value: string;
74
- label: string;
75
- name: string | null;
76
- avatar: string | null;
77
- email: string;
78
- isMyContacts: boolean;
79
- isPrivateSchedule: boolean | undefined;
80
- isNotRemovable: boolean | undefined;
81
- }[];
82
- export declare const generateEnteredByUserOption: ({ email, ...remainingFields }: TGenerateEnteredByUserOption) => {
83
- platform: string;
84
- layoutType: string;
85
- isChipsCollapsable: boolean;
86
- isInputFocused: import("react").RefObject<boolean>;
87
- selectRef: import("react").RefObject<any>;
88
- isError?: boolean | undefined;
89
- value: string;
90
- label: string;
91
- email: string;
92
- isEnteredByUser: boolean;
93
- };
94
- export declare const IndicatorSeparator: () => null;
95
- export declare const DropdownIndicator: () => null;
96
- export declare const MultiValueRemove: () => null;
97
- export declare const LoadingIndicator: () => null;
98
- export declare const sortCorporateContacts: (contacts: TCorporateEntity[], query: string) => TCorporateEntity[];