@expressms/smartapp-ui 2.8.9-alpha.4 → 2.8.9-alpha.5

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