@expressms/smartapp-ui 2.9.2 → 2.9.3

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