@expressms/smartapp-ui 3.0.0-alpha.22 → 3.0.0-alpha.221
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.
- package/build/main/assets/icons/accepted-invite-status.svg +4 -0
- package/build/main/assets/icons/arrow-back.svg +3 -0
- package/build/main/assets/icons/arrow-down.svg +3 -0
- package/build/main/assets/icons/arrow-up.svg +3 -0
- package/build/main/assets/icons/attachment-loader.svg +3 -0
- package/build/main/assets/icons/avatar-loader.svg +3 -0
- package/build/main/assets/icons/button-loader.svg +3 -0
- package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
- package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
- package/build/main/assets/icons/check-mark-square.svg +4 -0
- package/build/main/assets/icons/check-mark.svg +4 -0
- package/build/main/assets/icons/chevron.svg +3 -0
- package/build/main/assets/icons/chip-info.svg +5 -0
- package/build/main/assets/icons/clear.svg +3 -0
- package/build/main/assets/icons/close-modal.svg +3 -0
- package/build/main/assets/icons/close-stories.svg +4 -0
- package/build/main/assets/icons/close.svg +3 -0
- package/build/main/assets/icons/contact-info.svg +5 -0
- package/build/main/assets/icons/copy.svg +3 -0
- package/build/main/assets/icons/corporate-user.svg +3 -0
- package/build/main/assets/icons/crown.svg +5 -0
- package/build/main/assets/icons/declined-invite-status.svg +4 -0
- package/build/main/assets/icons/delete-chip.svg +3 -0
- package/build/main/assets/icons/department.svg +3 -0
- package/build/main/assets/icons/distribution.svg +12 -0
- package/build/main/assets/icons/doc-small.svg +11 -0
- package/build/main/assets/icons/doc.svg +11 -0
- package/build/main/assets/icons/download.svg +3 -0
- package/build/main/assets/icons/error.svg +5 -0
- package/build/main/assets/icons/external-link.svg +3 -0
- package/build/main/assets/icons/eye-off.svg +5 -0
- package/build/main/assets/icons/eye-on.svg +4 -0
- package/build/main/assets/icons/file-small.svg +11 -0
- package/build/main/assets/icons/file.svg +11 -0
- package/build/main/assets/icons/global-address-book-user.svg +4 -0
- package/build/main/assets/icons/group.svg +3 -0
- package/build/main/assets/icons/image-no-preview-small.svg +11 -0
- package/build/main/assets/icons/image-no-preview.svg +11 -0
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
- package/build/main/assets/icons/info.svg +5 -0
- package/build/main/assets/icons/input-arrow-down.svg +3 -0
- package/build/main/assets/icons/input-arrow-up.svg +3 -0
- package/build/main/assets/icons/job-position.svg +3 -0
- package/build/main/assets/icons/loader.svg +3 -0
- package/build/main/assets/icons/logout.svg +4 -0
- package/build/main/assets/icons/magnifying-glass.svg +3 -0
- package/build/main/assets/icons/mail.svg +3 -0
- package/build/main/assets/icons/meeting-room.svg +3 -0
- package/build/main/assets/icons/more.svg +3 -0
- package/build/main/assets/icons/my-contacts-user.svg +3 -0
- package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
- package/build/main/assets/icons/notification-close.svg +3 -0
- package/build/main/assets/icons/notification-error.svg +5 -0
- package/build/main/assets/icons/notification-failure-filled.svg +3 -0
- package/build/main/assets/icons/notification-failure.svg +3 -0
- package/build/main/assets/icons/notification-info-filled.svg +5 -0
- package/build/main/assets/icons/notification-info.svg +5 -0
- package/build/main/assets/icons/notification-success-filled.svg +4 -0
- package/build/main/assets/icons/notification-success.svg +4 -0
- package/build/main/assets/icons/office.svg +3 -0
- package/build/main/assets/icons/order.svg +6 -0
- package/build/main/assets/icons/pdf-small.svg +11 -0
- package/build/main/assets/icons/pdf.svg +11 -0
- package/build/main/assets/icons/play-small.svg +3 -0
- package/build/main/assets/icons/play.svg +3 -0
- package/build/main/assets/icons/plus.svg +4 -0
- package/build/main/assets/icons/ppt-small.svg +11 -0
- package/build/main/assets/icons/ppt.svg +11 -0
- package/build/main/assets/icons/private.svg +5 -0
- package/build/main/assets/icons/refresh.svg +3 -0
- package/build/main/assets/icons/remove.svg +3 -0
- package/build/main/assets/icons/search.svg +3 -0
- package/build/main/assets/icons/select-arrow-down.svg +3 -0
- package/build/main/assets/icons/select-arrow-up.svg +3 -0
- package/build/main/assets/icons/server.svg +3 -0
- package/build/main/assets/icons/story-loader.svg +3 -0
- package/build/main/assets/icons/tick.svg +10 -0
- package/build/main/assets/icons/trash.svg +3 -0
- package/build/main/assets/icons/txt-small.svg +11 -0
- package/build/main/assets/icons/txt.svg +11 -0
- package/build/main/assets/icons/video-no-preview-small.svg +11 -0
- package/build/main/assets/icons/video-no-preview.svg +11 -0
- package/build/main/assets/icons/warning-avatar.svg +4 -0
- package/build/main/assets/icons/xls-small.svg +11 -0
- package/build/main/assets/icons/xls.svg +11 -0
- package/build/main/assets/storybook/index.d.ts +27 -0
- package/build/main/assets/storybook/index.js +28 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +243 -0
- package/build/main/constants/constants.js +301 -0
- package/build/main/constants/constants.js.map +1 -0
- package/build/main/constants/index.d.ts +2 -0
- package/build/main/constants/index.js +3 -0
- package/build/main/constants/index.js.map +1 -0
- package/build/main/constants/types.d.ts +69 -0
- package/build/main/constants/types.js +2 -0
- package/build/main/constants/types.js.map +1 -0
- package/build/main/helpers/index.d.ts +33 -0
- package/build/main/helpers/index.js +204 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
- package/build/main/hooks/useCharHintDisplay.js +57 -0
- package/build/main/hooks/useCharHintDisplay.js.map +1 -0
- package/build/main/hooks/useMobileLongTap.d.ts +16 -0
- package/build/main/hooks/useMobileLongTap.js +65 -0
- package/build/main/hooks/useMobileLongTap.js.map +1 -0
- package/build/main/hooks/useModal.d.ts +30 -0
- package/build/main/hooks/useModal.js +275 -0
- package/build/main/hooks/useModal.js.map +1 -0
- package/build/main/index.d.ts +38 -0
- package/build/main/index.js +39 -0
- package/build/main/index.js.map +1 -0
- package/build/main/styles/index.d.ts +1 -0
- package/build/main/styles/index.js +2 -0
- package/build/main/styles/index.js.map +1 -0
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +14 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
- package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
- package/build/main//321/201omponents/ActionModal/index.js +2 -0
- package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
- package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
- package/build/main//321/201omponents/ActionModal/types.js +2 -0
- package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
- package/build/main//321/201omponents/AttachedFile/index.js +2 -0
- package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
- package/build/main//321/201omponents/AttachedFile/types.js +2 -0
- package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
- package/build/main//321/201omponents/Avatar/Avatar.js +254 -0
- package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
- package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
- package/build/main//321/201omponents/Avatar/index.js +2 -0
- package/build/main//321/201omponents/Avatar/index.js.map +1 -0
- package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
- package/build/main//321/201omponents/Avatar/types.js +32 -0
- package/build/main//321/201omponents/Avatar/types.js.map +1 -0
- package/build/main//321/201omponents/Button/Button.d.ts +4 -0
- package/build/main//321/201omponents/Button/Button.js +68 -0
- package/build/main//321/201omponents/Button/Button.js.map +1 -0
- package/build/main//321/201omponents/Button/index.d.ts +1 -0
- package/build/main//321/201omponents/Button/index.js +2 -0
- package/build/main//321/201omponents/Button/index.js.map +1 -0
- package/build/main//321/201omponents/Button/types.d.ts +31 -0
- package/build/main//321/201omponents/Button/types.js +15 -0
- package/build/main//321/201omponents/Button/types.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
- package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
- package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
- package/build/main//321/201omponents/CachedImage/index.js +2 -0
- package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
- package/build/main//321/201omponents/CachedImage/types.js +2 -0
- package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
- package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
- package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
- package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
- package/build/main//321/201omponents/Calendar/index.js +2 -0
- package/build/main//321/201omponents/Calendar/index.js.map +1 -0
- package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
- package/build/main//321/201omponents/Calendar/types.js +2 -0
- package/build/main//321/201omponents/Calendar/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
- package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
- package/build/main//321/201omponents/Charts/colors.js +4 -0
- package/build/main//321/201omponents/Charts/colors.js.map +1 -0
- package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
- package/build/main//321/201omponents/Charts/constants.js +42 -0
- package/build/main//321/201omponents/Charts/constants.js.map +1 -0
- package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
- package/build/main//321/201omponents/Charts/helpers.js +73 -0
- package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
- package/build/main//321/201omponents/Charts/index.d.ts +3 -0
- package/build/main//321/201omponents/Charts/index.js +4 -0
- package/build/main//321/201omponents/Charts/index.js.map +1 -0
- package/build/main//321/201omponents/Charts/types.d.ts +89 -0
- package/build/main//321/201omponents/Charts/types.js +2 -0
- package/build/main//321/201omponents/Charts/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
- package/build/main//321/201omponents/Charts/useEvents.js +45 -0
- package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
- package/build/main//321/201omponents/Checkbox/index.js +2 -0
- package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
- package/build/main//321/201omponents/Checkbox/types.js +2 -0
- package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
- package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
- package/build/main//321/201omponents/Chip/Chip.js +288 -0
- package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
- package/build/main//321/201omponents/Chip/index.d.ts +1 -0
- package/build/main//321/201omponents/Chip/index.js +2 -0
- package/build/main//321/201omponents/Chip/index.js.map +1 -0
- package/build/main//321/201omponents/Chip/types.d.ts +39 -0
- package/build/main//321/201omponents/Chip/types.js +2 -0
- package/build/main//321/201omponents/Chip/types.js.map +1 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
- package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
- package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
- package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
- package/build/main//321/201omponents/ContextMenu/index.js +2 -0
- package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
- package/build/main//321/201omponents/ContextMenu/types.js +2 -0
- package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
- package/build/main//321/201omponents/CustomSelect/index.js +2 -0
- package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +77 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
- package/build/main//321/201omponents/CustomSelect/types.js +2 -0
- package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
- package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
- package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
- package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
- package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
- package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
- package/build/main//321/201omponents/Error/Error.d.ts +4 -0
- package/build/main//321/201omponents/Error/Error.js +23 -0
- package/build/main//321/201omponents/Error/Error.js.map +1 -0
- package/build/main//321/201omponents/Error/index.d.ts +1 -0
- package/build/main//321/201omponents/Error/index.js +2 -0
- package/build/main//321/201omponents/Error/index.js.map +1 -0
- package/build/main//321/201omponents/Error/types.d.ts +10 -0
- package/build/main//321/201omponents/Error/types.js +2 -0
- package/build/main//321/201omponents/Error/types.js.map +1 -0
- package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
- package/build/main//321/201omponents/Flex/Flex.js +35 -0
- package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/index.d.ts +3 -0
- package/build/main//321/201omponents/Flex/index.js +4 -0
- package/build/main//321/201omponents/Flex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/types.d.ts +21 -0
- package/build/main//321/201omponents/Flex/types.js +2 -0
- package/build/main//321/201omponents/Flex/types.js.map +1 -0
- package/build/main//321/201omponents/Header/Header.d.ts +5 -0
- package/build/main//321/201omponents/Header/Header.js +125 -0
- package/build/main//321/201omponents/Header/Header.js.map +1 -0
- package/build/main//321/201omponents/Header/index.d.ts +1 -0
- package/build/main//321/201omponents/Header/index.js +2 -0
- package/build/main//321/201omponents/Header/index.js.map +1 -0
- package/build/main//321/201omponents/Header/types.d.ts +47 -0
- package/build/main//321/201omponents/Header/types.js +2 -0
- package/build/main//321/201omponents/Header/types.js.map +1 -0
- package/build/main//321/201omponents/Input/Input.d.ts +4 -0
- package/build/main//321/201omponents/Input/Input.js +256 -0
- package/build/main//321/201omponents/Input/Input.js.map +1 -0
- package/build/main//321/201omponents/Input/index.d.ts +1 -0
- package/build/main//321/201omponents/Input/index.js +2 -0
- package/build/main//321/201omponents/Input/index.js.map +1 -0
- package/build/main//321/201omponents/Input/types.d.ts +37 -0
- package/build/main//321/201omponents/Input/types.js +2 -0
- package/build/main//321/201omponents/Input/types.js.map +1 -0
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
- package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
- package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
- package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
- package/build/main//321/201omponents/ListItem/index.js +2 -0
- package/build/main//321/201omponents/ListItem/index.js.map +1 -0
- package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
- package/build/main//321/201omponents/ListItem/types.js +2 -0
- package/build/main//321/201omponents/ListItem/types.js.map +1 -0
- package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
- package/build/main//321/201omponents/Loader/Loader.js +44 -0
- package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
- package/build/main//321/201omponents/Loader/index.d.ts +1 -0
- package/build/main//321/201omponents/Loader/index.js +2 -0
- package/build/main//321/201omponents/Loader/index.js.map +1 -0
- package/build/main//321/201omponents/Loader/types.d.ts +18 -0
- package/build/main//321/201omponents/Loader/types.js +2 -0
- package/build/main//321/201omponents/Loader/types.js.map +1 -0
- package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
- package/build/main//321/201omponents/Modal/Modal.js +397 -0
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
- package/build/main//321/201omponents/Modal/index.d.ts +1 -0
- package/build/main//321/201omponents/Modal/index.js +2 -0
- package/build/main//321/201omponents/Modal/index.js.map +1 -0
- package/build/main//321/201omponents/Modal/types.d.ts +77 -0
- package/build/main//321/201omponents/Modal/types.js +2 -0
- package/build/main//321/201omponents/Modal/types.js.map +1 -0
- package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
- package/build/main//321/201omponents/Notification/Notification.js +208 -0
- package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
- package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
- package/build/main//321/201omponents/Notification/constants.js +59 -0
- package/build/main//321/201omponents/Notification/constants.js.map +1 -0
- package/build/main//321/201omponents/Notification/index.d.ts +1 -0
- package/build/main//321/201omponents/Notification/index.js +2 -0
- package/build/main//321/201omponents/Notification/index.js.map +1 -0
- package/build/main//321/201omponents/Notification/types.d.ts +64 -0
- package/build/main//321/201omponents/Notification/types.js +2 -0
- package/build/main//321/201omponents/Notification/types.js.map +1 -0
- package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
- package/build/main//321/201omponents/Profile/Profile.js +42 -0
- package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
- package/build/main//321/201omponents/Profile/index.d.ts +1 -0
- package/build/main//321/201omponents/Profile/index.js +2 -0
- package/build/main//321/201omponents/Profile/index.js.map +1 -0
- package/build/main//321/201omponents/Profile/types.d.ts +14 -0
- package/build/main//321/201omponents/Profile/types.js +2 -0
- package/build/main//321/201omponents/Profile/types.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
- package/build/main//321/201omponents/ProgressBar/index.js +2 -0
- package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
- package/build/main//321/201omponents/ProgressBar/types.js +2 -0
- package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
- package/build/main//321/201omponents/RadioButton/index.js +2 -0
- package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
- package/build/main//321/201omponents/RadioButton/types.js +2 -0
- package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
- package/build/main//321/201omponents/ScrollBar/index.js +2 -0
- package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
- package/build/main//321/201omponents/ScrollBar/types.js +2 -0
- package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
- package/build/main//321/201omponents/Skeleton/index.js +2 -0
- package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
- package/build/main//321/201omponents/Skeleton/types.js +2 -0
- package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
- package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
- package/build/main//321/201omponents/Stories/Stories.js +406 -0
- package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
- package/build/main//321/201omponents/Stories/index.d.ts +1 -0
- package/build/main//321/201omponents/Stories/index.js +2 -0
- package/build/main//321/201omponents/Stories/index.js.map +1 -0
- package/build/main//321/201omponents/Stories/types.d.ts +71 -0
- package/build/main//321/201omponents/Stories/types.js +16 -0
- package/build/main//321/201omponents/Stories/types.js.map +1 -0
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
- package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
- package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
- package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
- package/build/main//321/201omponents/Switcher/index.js +2 -0
- package/build/main//321/201omponents/Switcher/index.js.map +1 -0
- package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
- package/build/main//321/201omponents/Switcher/types.js +2 -0
- package/build/main//321/201omponents/Switcher/types.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
- package/build/main//321/201omponents/SyncLoader/index.js +2 -0
- package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
- package/build/main//321/201omponents/SyncLoader/types.js +2 -0
- package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
- package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
- package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
- package/build/main//321/201omponents/Textarea/index.js +2 -0
- package/build/main//321/201omponents/Textarea/index.js.map +1 -0
- package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
- package/build/main//321/201omponents/Textarea/types.js +2 -0
- package/build/main//321/201omponents/Textarea/types.js.map +1 -0
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
- package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
- package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
- package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
- package/build/main//321/201omponents/Toggle/index.js +2 -0
- package/build/main//321/201omponents/Toggle/index.js.map +1 -0
- package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
- package/build/main//321/201omponents/Toggle/types.js +2 -0
- package/build/main//321/201omponents/Toggle/types.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
- package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
- package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
- package/build/main//321/201omponents/UserDropdown/index.js +2 -0
- package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
- package/build/main//321/201omponents/UserDropdown/types.js +2 -0
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
- package/build/main//321/201omponents/types.d.ts +2 -0
- package/build/main//321/201omponents/types.js +2 -0
- package/build/main//321/201omponents/types.js.map +1 -0
- package/package.json +13 -8
|
@@ -0,0 +1,527 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
/* eslint-disable max-lines */
|
|
23
|
+
import { memo, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
24
|
+
import Select, { components } from 'react-select';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { debounce, includes, isArray, isEmpty, isNil, isNull, omit, pick, uniqBy } from 'lodash';
|
|
27
|
+
import { useDroppable } from '@dnd-kit/core';
|
|
28
|
+
import { useCharHintDisplay } from '../../hooks/useCharHintDisplay';
|
|
29
|
+
import Modal from '../Modal';
|
|
30
|
+
import ContactBottomSheet from './ContactBottomSheet/ContactBottomSheet';
|
|
31
|
+
import LoadingMessage from './LoadingMessage/LoadingMessage';
|
|
32
|
+
import MenuList from './MenuList/MenuList';
|
|
33
|
+
import MultiValueLabel from './MultiValueLabel/MultiValueLabel';
|
|
34
|
+
import Option from './Option/Option';
|
|
35
|
+
import SearchInCatalogButton from './SearchInCatalogButton/SearchInCatalogButton';
|
|
36
|
+
import selectStyles from './selectStyles';
|
|
37
|
+
import Delimiter from './components/Delimiter';
|
|
38
|
+
import Hint from './components/Hint';
|
|
39
|
+
import Input from './components/Input';
|
|
40
|
+
import Mask from './components/Mask';
|
|
41
|
+
import Title from './components/Title';
|
|
42
|
+
import { checkIfContactTypeIsGroup, checkIsIosPlatform, checkIsMobilePlatform, generateFontFamilyStyle, generateId } from '../../helpers';
|
|
43
|
+
import { DropdownIndicator, IndicatorSeparator, LoadingIndicator, MultiValueRemove, applyFilteringToOption, calculateHorizontalPadding, checkIsValueIsEmail, collapseChips, extractInputEmails, generateContactsOptionsToSelect, generateCorporateOptionsToSelect, generateEnteredByUserOption, retrieveChipsElements, retrieveFilteredContacts, setCaretInEmptyInput, setCaretPosition, transformSelectedEntity, transformSelectedUsers, unCollapseChips, } from './helpers';
|
|
44
|
+
import { BACKSPACE_KEY, DEFAULT_INPUT_PADDING, EMAIL_FIELD, EMPTY_STRING, ENTER_KEY, EVENT_LISTENER_TYPES, FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN, LANGUAGES, LAYOUT_TYPE, MENU_POSITIONS, MIN_INPUT_SYMBOLS, PLATFORM, RENDER_DELAY, SEARCH_PLACEHOLDER, SPACE, SPACE_KEY, } from '../../constants';
|
|
45
|
+
import { CLEAR_USER_TYPING_TIMEOUT, COMMON_FIELDS_TO_OMIT, COMMON_FIELDS_TO_PICK, DEFAULT_MAX_ROWS_COUNT_TO_COLLAPSE_CHIPS, DEFAULT_MENU_LIST_MAX_HEIGHT, EMAIL_SEPARATORS, INPUT_ACTIONS, MENU_ACTIONS, PADDING_WITH_CLEAR_ICON, USER_TYPING_TIMEOUT, } from './constants';
|
|
46
|
+
import '../../styles/styles.scss';
|
|
47
|
+
var generateContactBottomSheetMaxHeight = function () { var _a, _b; return ((_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : window.innerHeight) - FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN; };
|
|
48
|
+
var UserDropdown = function (_a) {
|
|
49
|
+
var _b;
|
|
50
|
+
var _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, fontFamily = _a.fontFamily, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isLoading, isLoading = _e === void 0 ? false : _e, _f = _a.isChipsOutline, isChipsOutline = _f === void 0 ? false : _f, _g = _a.isError, isError = _g === void 0 ? false : _g, _h = _a.isChipsVisible, isChipsVisible = _h === void 0 ? true : _h, _j = _a.isChipsCollapsable, isChipsCollapsable = _j === void 0 ? false : _j, _k = _a.isSelectedChipHasTooltip, isSelectedChipHasTooltip = _k === void 0 ? false : _k, _l = _a.isMenuCloseOnBlur, isMenuCloseOnBlur = _l === void 0 ? true : _l, _m = _a.isMenuCloseOnSelect, isMenuCloseOnSelect = _m === void 0 ? true : _m, _o = _a.isFilteringDisabled, isFilteringDisabled = _o === void 0 ? false : _o, _p = _a.hasNextPage, hasNextPage = _p === void 0 ? false : _p, _q = _a.isNextPageLoading, isNextPageLoading = _q === void 0 ? false : _q, _r = _a.isInputHidden, isInputHidden = _r === void 0 ? false : _r, _s = _a.isBackspaceChipToInput, isBackspaceChipToInput = _s === void 0 ? false : _s, _t = _a.isShowCatalogSearchButton, isShowCatalogSearchButton = _t === void 0 ? false : _t, _u = _a.isDisabledMenuOffsetAtFullscreen, isDisabledMenuOffsetAtFullscreen = _u === void 0 ? false : _u, _v = _a.isDisabledCheckUniqueEmails, isDisabledCheckUniqueEmails = _v === void 0 ? false : _v, _w = _a.isMenuShadowless, isMenuShadowless = _w === void 0 ? false : _w, _x = _a.isStateless, isStateless = _x === void 0 ? false : _x, _y = _a.isSelectedOptionsHidden, isSelectedOptionsHidden = _y === void 0 ? true : _y, _z = _a.isMaskHiddenOnFocus, isMaskHiddenOnFocus = _z === void 0 ? false : _z, _0 = _a.isInputValueClearedOnBlur, isInputValueClearedOnBlur = _0 === void 0 ? false : _0, _1 = _a.isNotClickable, isNotClickable = _1 === void 0 ? false : _1, _2 = _a.language, language = _2 === void 0 ? LANGUAGES.ru : _2, _3 = _a.layoutType, layoutType = _3 === void 0 ? LAYOUT_TYPE.minimal : _3, externalInputValue = _a.externalInputValue, title = _a.title, contactInfoTitle = _a.contactInfoTitle, mask = _a.mask, suffix = _a.suffix, _4 = _a.placeholder, placeholder = _4 === void 0 ? EMPTY_STRING : _4, focusPlaceholder = _a.focusPlaceholder, hint = _a.hint, onShowCatalogSearchButtonClick = _a.onShowCatalogSearchButtonClick, noOptionsMessage = _a.noOptionsMessage, maxMembersCount = _a.maxMembersCount, skeletonRowsCount = _a.skeletonRowsCount, _5 = _a.maxRowsCountToCollapseChips, maxRowsCountToCollapseChips = _5 === void 0 ? DEFAULT_MAX_ROWS_COUNT_TO_COLLAPSE_CHIPS : _5, _6 = _a.menuListMaxHeight, menuListMaxHeight = _6 === void 0 ? DEFAULT_MENU_LIST_MAX_HEIGHT : _6, _7 = _a.menuShouldScrollIntoView, menuShouldScrollIntoView = _7 === void 0 ? true : _7, _8 = _a.menuPosition, menuPosition = _8 === void 0 ? MENU_POSITIONS.top : _8, menuLocation = _a.menuLocation, menuPortalTarget = _a.menuPortalTarget, _9 = _a.autoFocus, autoFocus = _9 === void 0 ? false : _9, containerClassName = _a.containerClassName, charHintClassName = _a.charHintClassName, containerPadding = _a.containerPadding, containerStyles = _a.containerStyles, selectedEntries = _a.selectedEntries, corporateEntries = _a.corporateEntries, myContactsEntries = _a.myContactsEntries, emailsToExclude = _a.emailsToExclude, _10 = _a.userDropdownId, initialUserDropdownId = _10 === void 0 ? EMPTY_STRING : _10, focusRef = _a.focusRef, onInputChange = _a.onInputChange, onImmediateInputChange = _a.onImmediateInputChange, onChange = _a.onChange, onMenuOpen = _a.onMenuOpen, onMenuClose = _a.onMenuClose, onLoadNextPage = _a.onLoadNextPage, onClickContactInfoCopyEmail = _a.onClickContactInfoCopyEmail, onFocus = _a.onFocus;
|
|
51
|
+
var _11 = useState(initialUserDropdownId), userDropdownId = _11[0], setUserDropdownId = _11[1];
|
|
52
|
+
var _12 = useState([]), selectedUsers = _12[0], setSelectedUsers = _12[1];
|
|
53
|
+
var _13 = useState(EMPTY_STRING), paddingLeft = _13[0], setPaddingLeft = _13[1];
|
|
54
|
+
var _14 = useState(EMPTY_STRING), paddingRight = _14[0], setPaddingRight = _14[1];
|
|
55
|
+
var _15 = useState(0), maskWidth = _15[0], setMaskWidth = _15[1];
|
|
56
|
+
var _16 = useState(0), suffixWidth = _16[0], setSuffixWidth = _16[1];
|
|
57
|
+
var _17 = useState(true), isSearchable = _17[0], setIsSearchable = _17[1];
|
|
58
|
+
var _18 = useState(false), isUserTyping = _18[0], setIsUserTyping = _18[1];
|
|
59
|
+
var _19 = useState(null), modalData = _19[0], setModalData = _19[1];
|
|
60
|
+
var _20 = useState(EMPTY_STRING), chipLabelWithMaxWidth = _20[0], setChipLabelWithMaxWidth = _20[1];
|
|
61
|
+
var _21 = useState(EMPTY_STRING), inputValue = _21[0], setInputValue = _21[1];
|
|
62
|
+
var _22 = useState(placeholder), placeholderValue = _22[0], setPlaceholderValue = _22[1];
|
|
63
|
+
var _23 = useState(false), isDelimiterVisible = _23[0], setIsDelimiterVisible = _23[1];
|
|
64
|
+
var _24 = useState(0), delimiterOffset = _24[0], setDelimiterOffset = _24[1];
|
|
65
|
+
var _25 = useState(false), isFocused = _25[0], setIsFocused = _25[1];
|
|
66
|
+
var _26 = useState(false), isMenuOpen = _26[0], setIsMenuOpen = _26[1];
|
|
67
|
+
var isInputFocused = useRef(false);
|
|
68
|
+
var selectRef = useRef(null);
|
|
69
|
+
var maskRef = useRef(null);
|
|
70
|
+
var suffixRef = useRef(null);
|
|
71
|
+
var menuScrollFromTop = useRef(0);
|
|
72
|
+
var collapsableChipsCount = useRef(0);
|
|
73
|
+
var visibleChipsCount = useRef(0);
|
|
74
|
+
var isNeedCheckChipCollapsableCount = useRef(false);
|
|
75
|
+
var lastVisibleChipIndex = useRef(-1);
|
|
76
|
+
var skipAddUserToChipsOnNextBlurRef = useRef(false);
|
|
77
|
+
var userTypingTimeoutRef = useRef(null);
|
|
78
|
+
var prevIsLoadingRef = useRef(isLoading);
|
|
79
|
+
var selectedUsersLength = selectedUsers.length;
|
|
80
|
+
var _27 = useDroppable({ id: userDropdownId }), setNodeRef = _27.setNodeRef, over = _27.over;
|
|
81
|
+
var overId = (over || {}).id;
|
|
82
|
+
var isDraggable = overId === userDropdownId;
|
|
83
|
+
var isInputPlaceholderVisible = selectedUsersLength === 1 && isEmpty(inputValue) ? ((_b = selectedUsers[0].isNotRemovable) !== null && _b !== void 0 ? _b : false) : false;
|
|
84
|
+
var isMaskVisible = !isEmpty(mask) && (!isMaskHiddenOnFocus || (isEmpty(inputValue) && !isFocused));
|
|
85
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
86
|
+
useImperativeHandle(focusRef, function () { return ({ focus: handleFocus, blur: function () { return handleDragBlur(true); } }); }, []);
|
|
87
|
+
var fontFamilyStyle = generateFontFamilyStyle(fontFamily);
|
|
88
|
+
var isCharHintVisible = useCharHintDisplay({ inputValue: inputValue }).isCharHintVisible;
|
|
89
|
+
var checkIsEmailToExclude = useCallback(function (email) { return includes(emailsToExclude, email); }, [emailsToExclude]);
|
|
90
|
+
var generateStyles = function () {
|
|
91
|
+
return selectStyles({
|
|
92
|
+
isChipsVisible: isChipsVisible,
|
|
93
|
+
isMaxMembersAdded: maxMembersCount && isChipsVisible ? selectedUsersLength === maxMembersCount : false,
|
|
94
|
+
isDisabled: isDisabled,
|
|
95
|
+
isInputPlaceholderVisible: isInputPlaceholderVisible,
|
|
96
|
+
lastRowNumber: isChipsVisible ? Math.ceil(selectedUsersLength / 2) + 1 : 1,
|
|
97
|
+
paddingLeft: isMaskVisible || isEmpty(mask) ? paddingLeft : "".concat(DEFAULT_INPUT_PADDING, "px"),
|
|
98
|
+
paddingRight: !isChipsVisible && !isEmpty(inputValue) ? PADDING_WITH_CLEAR_ICON : paddingRight,
|
|
99
|
+
platform: platform,
|
|
100
|
+
layoutType: layoutType,
|
|
101
|
+
isInputHidden: isInputHidden,
|
|
102
|
+
isDisabledMenuOffsetAtFullscreen: isDisabledMenuOffsetAtFullscreen,
|
|
103
|
+
isInputFocused: isInputFocused.current,
|
|
104
|
+
isMaskRepresented: isMaskVisible,
|
|
105
|
+
isSuffixRepresented: !isNil(suffix),
|
|
106
|
+
isMenuShadowless: isMenuShadowless,
|
|
107
|
+
isShowCatalogSearchButton: isShowCatalogSearchButton,
|
|
108
|
+
fontFamilyStyle: fontFamilyStyle,
|
|
109
|
+
containerPadding: containerPadding,
|
|
110
|
+
isDraggable: isDraggable,
|
|
111
|
+
isChipsCollapsed: isChipsCollapsable && !isInputFocused.current,
|
|
112
|
+
menuListMaxHeight: menuListMaxHeight,
|
|
113
|
+
maxRowsCountToCollapseChips: maxRowsCountToCollapseChips,
|
|
114
|
+
isError: isError,
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
var generateNoOptionsMessage = function (_a) {
|
|
118
|
+
var inputValue = _a.inputValue;
|
|
119
|
+
return inputValue.length >= MIN_INPUT_SYMBOLS && !isNull(corporateEntries) && !isNull(myContactsEntries) && noOptionsMessage ? noOptionsMessage : null;
|
|
120
|
+
};
|
|
121
|
+
var generateOptions = function () {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
if (isLoading || isUserTyping)
|
|
124
|
+
return;
|
|
125
|
+
var commonFields = {
|
|
126
|
+
platform: platform,
|
|
127
|
+
language: language,
|
|
128
|
+
layoutType: layoutType,
|
|
129
|
+
fontFamily: fontFamily,
|
|
130
|
+
isChipsCollapsable: isChipsCollapsable,
|
|
131
|
+
isSelectedChipHasTooltip: isSelectedChipHasTooltip,
|
|
132
|
+
isInputFocused: isInputFocused,
|
|
133
|
+
selectRef: selectRef,
|
|
134
|
+
setIsSearchable: setIsSearchable,
|
|
135
|
+
setModalData: setModalData,
|
|
136
|
+
collapsableChipsCount: collapsableChipsCount,
|
|
137
|
+
lastVisibleChipIndex: lastVisibleChipIndex,
|
|
138
|
+
};
|
|
139
|
+
var _c = retrieveFilteredContacts({
|
|
140
|
+
query: ((_b = (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.inputValue) || EMPTY_STRING,
|
|
141
|
+
corporateEntries: corporateEntries,
|
|
142
|
+
myContactsEntries: myContactsEntries,
|
|
143
|
+
checkIsEmailToExclude: checkIsEmailToExclude,
|
|
144
|
+
}), filteredCorporateContacts = _c.filteredCorporateContacts, filteredLocalContacts = _c.filteredLocalContacts, filteredMyContacts = _c.filteredMyContacts;
|
|
145
|
+
return __spreadArray(__spreadArray(__spreadArray([], generateCorporateOptionsToSelect(__assign({ options: filteredCorporateContacts }, commonFields)), true), generateContactsOptionsToSelect(__assign({ options: filteredLocalContacts, isLocalContact: true }, commonFields)), true), generateContactsOptionsToSelect(__assign({ options: filteredMyContacts, isMyContacts: true }, commonFields)), true);
|
|
146
|
+
};
|
|
147
|
+
var clearUserTypingTimeout = useCallback(function () {
|
|
148
|
+
var userTypingTimeoutRefCurrent = userTypingTimeoutRef.current;
|
|
149
|
+
if (userTypingTimeoutRefCurrent) {
|
|
150
|
+
clearTimeout(userTypingTimeoutRefCurrent);
|
|
151
|
+
userTypingTimeoutRef.current = null;
|
|
152
|
+
}
|
|
153
|
+
}, []);
|
|
154
|
+
useEffect(function () {
|
|
155
|
+
if (prevIsLoadingRef.current && !isLoading) {
|
|
156
|
+
setIsUserTyping(false);
|
|
157
|
+
clearUserTypingTimeout();
|
|
158
|
+
}
|
|
159
|
+
prevIsLoadingRef.current = isLoading;
|
|
160
|
+
}, [isLoading, clearUserTypingTimeout]);
|
|
161
|
+
var requestInputChangeDebounce = useMemo(function () {
|
|
162
|
+
return debounce(function (inputValue) {
|
|
163
|
+
onInputChange(inputValue);
|
|
164
|
+
clearUserTypingTimeout();
|
|
165
|
+
userTypingTimeoutRef.current = setTimeout(function () { return setIsUserTyping(false); }, CLEAR_USER_TYPING_TIMEOUT);
|
|
166
|
+
}, USER_TYPING_TIMEOUT);
|
|
167
|
+
}, [clearUserTypingTimeout, onInputChange]);
|
|
168
|
+
var handleMenuOpen = function () {
|
|
169
|
+
setIsMenuOpen(true);
|
|
170
|
+
onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen();
|
|
171
|
+
};
|
|
172
|
+
var handleMenuClose = function () {
|
|
173
|
+
menuScrollFromTop.current = 0;
|
|
174
|
+
setIsDelimiterVisible(false);
|
|
175
|
+
onMenuClose === null || onMenuClose === void 0 ? void 0 : onMenuClose();
|
|
176
|
+
};
|
|
177
|
+
var handleInputChange = useCallback(function (inputValue, additionalInfo) {
|
|
178
|
+
if (additionalInfo) {
|
|
179
|
+
var action = additionalInfo.action;
|
|
180
|
+
var isInputBlurAction = action === INPUT_ACTIONS.blur;
|
|
181
|
+
var isMenuCloseAction = action === MENU_ACTIONS.close;
|
|
182
|
+
if (!isInputBlurAction && !isMenuCloseAction) {
|
|
183
|
+
setInputValue(inputValue);
|
|
184
|
+
onImmediateInputChange === null || onImmediateInputChange === void 0 ? void 0 : onImmediateInputChange(inputValue);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (!isEmpty(inputValue)) {
|
|
188
|
+
clearUserTypingTimeout();
|
|
189
|
+
setIsUserTyping(true);
|
|
190
|
+
}
|
|
191
|
+
inputValue.length >= MIN_INPUT_SYMBOLS && requestInputChangeDebounce(inputValue);
|
|
192
|
+
}, [onImmediateInputChange, requestInputChangeDebounce, clearUserTypingTimeout]);
|
|
193
|
+
var handleAddUser = function (isInputBlurAction) {
|
|
194
|
+
var selectRefCurrent = selectRef.current;
|
|
195
|
+
if (isNil(selectRefCurrent))
|
|
196
|
+
return;
|
|
197
|
+
var props = selectRefCurrent.props;
|
|
198
|
+
var options = props.options, onChange = props.onChange;
|
|
199
|
+
if (isEmpty(inputValue) || isInputBlurAction)
|
|
200
|
+
return Promise.resolve();
|
|
201
|
+
var trimInputValue = inputValue.trim();
|
|
202
|
+
var optionProps = {
|
|
203
|
+
platform: platform,
|
|
204
|
+
language: language,
|
|
205
|
+
layoutType: layoutType,
|
|
206
|
+
fontFamily: fontFamily,
|
|
207
|
+
isChipsCollapsable: isChipsCollapsable,
|
|
208
|
+
isSelectedChipHasTooltip: isSelectedChipHasTooltip,
|
|
209
|
+
isInputFocused: isInputFocused,
|
|
210
|
+
selectRef: selectRef,
|
|
211
|
+
collapsableChipsCount: collapsableChipsCount,
|
|
212
|
+
lastVisibleChipIndex: lastVisibleChipIndex,
|
|
213
|
+
};
|
|
214
|
+
var inputEmails = extractInputEmails(trimInputValue);
|
|
215
|
+
var enteredUsers = [];
|
|
216
|
+
var incorrectEmails = [];
|
|
217
|
+
var inputEmailsLength = inputEmails.length;
|
|
218
|
+
var isSingleEmailEntered = inputEmailsLength === 1;
|
|
219
|
+
var emailSeparator = trimInputValue.includes(EMAIL_SEPARATORS.semicolon) ? EMAIL_SEPARATORS.semicolon : EMAIL_SEPARATORS.comma;
|
|
220
|
+
inputEmails.forEach(function (inputEmail) {
|
|
221
|
+
var isValueIsEmail = checkIsValueIsEmail(inputEmail);
|
|
222
|
+
if (isValueIsEmail && !checkIsEmailToExclude(inputEmail)) {
|
|
223
|
+
var isUserAlreadySelected = selectedUsers.find(function (_a) {
|
|
224
|
+
var email = _a.email;
|
|
225
|
+
return email === inputEmail;
|
|
226
|
+
});
|
|
227
|
+
var existingUser = options.find(function (_a) {
|
|
228
|
+
var email = _a.email;
|
|
229
|
+
return email === inputEmail;
|
|
230
|
+
});
|
|
231
|
+
enteredUsers.push(existingUser || generateEnteredByUserOption(__assign(__assign({}, optionProps), { email: inputEmail })));
|
|
232
|
+
if (isUserAlreadySelected && isSingleEmailEntered)
|
|
233
|
+
return;
|
|
234
|
+
else
|
|
235
|
+
handleInputChange(EMPTY_STRING, { action: INPUT_ACTIONS.change, prevInputValue: trimInputValue });
|
|
236
|
+
}
|
|
237
|
+
!isValueIsEmail && incorrectEmails.push(inputEmail);
|
|
238
|
+
});
|
|
239
|
+
!isSingleEmailEntered && setInputValue(incorrectEmails.join("".concat(emailSeparator).concat(SPACE)).trim());
|
|
240
|
+
onChange(__spreadArray(__spreadArray([], selectedUsers, true), enteredUsers, true));
|
|
241
|
+
return Promise.resolve();
|
|
242
|
+
};
|
|
243
|
+
var handleKeyDown = function (event) {
|
|
244
|
+
var _a, _b, _c;
|
|
245
|
+
var key = event.key, code = event.code, target = event.target;
|
|
246
|
+
var isEnterPressed = code === ENTER_KEY || key === ENTER_KEY;
|
|
247
|
+
var isBackspacePressed = code === BACKSPACE_KEY || key === BACKSPACE_KEY;
|
|
248
|
+
var isSpacePressed = code === SPACE_KEY;
|
|
249
|
+
var isTransformChipToInputValue = isBackspacePressed && isBackspaceChipToInput && inputValue === EMPTY_STRING && !isEmpty(selectedUsers);
|
|
250
|
+
if (isEnterPressed) {
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
(_a = handleAddUser()) === null || _a === void 0 ? void 0 : _a.then(function () { });
|
|
253
|
+
}
|
|
254
|
+
if (isSpacePressed) {
|
|
255
|
+
var inputValue_1 = target.value;
|
|
256
|
+
// block space at the beginning of the string & prevent selecting the option
|
|
257
|
+
if (isEmpty(inputValue_1))
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
// allow space within the string, but prevent selecting the option
|
|
260
|
+
event.stopPropagation();
|
|
261
|
+
}
|
|
262
|
+
if (isTransformChipToInputValue) {
|
|
263
|
+
var _d = selectedUsers[selectedUsersLength - 1], label = _d.label, email = _d.email;
|
|
264
|
+
var newSelectedUsers = selectedUsers.slice(0, -1);
|
|
265
|
+
setSelectedUsers(newSelectedUsers);
|
|
266
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newSelectedUsers.map(function (user) { return omit(user, COMMON_FIELDS_TO_OMIT); }));
|
|
267
|
+
var rawValue = label || email;
|
|
268
|
+
var newInputValue = rawValue.slice(0, -1);
|
|
269
|
+
setInputValue(newInputValue);
|
|
270
|
+
handleInputChange(newInputValue);
|
|
271
|
+
onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen();
|
|
272
|
+
(_c = (_b = selectRef.current) === null || _b === void 0 ? void 0 : _b.onMenuOpen) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
var transformCurrentChipToInputValue = useCallback(function (label, value) {
|
|
276
|
+
var _a, _b;
|
|
277
|
+
skipAddUserToChipsOnNextBlurRef.current = true;
|
|
278
|
+
setSelectedUsers(function (prevSelectedUsers) {
|
|
279
|
+
var nextSelectedUsers = prevSelectedUsers.filter(function (_a) {
|
|
280
|
+
var userEmail = _a.email, userType = _a.userType, userUid = _a.uid;
|
|
281
|
+
return checkIfContactTypeIsGroup(userType) ? userUid !== value : userEmail !== value;
|
|
282
|
+
});
|
|
283
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextSelectedUsers.map(function (userData) { return omit(userData, COMMON_FIELDS_TO_OMIT); }));
|
|
284
|
+
return nextSelectedUsers;
|
|
285
|
+
});
|
|
286
|
+
handleFocus();
|
|
287
|
+
setInputValue(label);
|
|
288
|
+
onInputChange(label);
|
|
289
|
+
handleInputChange(label);
|
|
290
|
+
onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen();
|
|
291
|
+
(_b = (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onMenuOpen) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
292
|
+
setIsUserTyping(false);
|
|
293
|
+
},
|
|
294
|
+
// eslint-disable-next-line
|
|
295
|
+
[onInputChange, handleInputChange, onMenuOpen, onChange]);
|
|
296
|
+
var handleChange = function (newSelectedUsers) {
|
|
297
|
+
var uniqNewSelectedUsers = isDisabledCheckUniqueEmails ? newSelectedUsers : uniqBy(newSelectedUsers, EMAIL_FIELD);
|
|
298
|
+
var deletedUser = selectedUsers.find(function (_a) {
|
|
299
|
+
var value = _a.value;
|
|
300
|
+
return !uniqNewSelectedUsers.some(function (_a) {
|
|
301
|
+
var selectedUserValue = _a.value;
|
|
302
|
+
return value === selectedUserValue;
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
if (deletedUser === null || deletedUser === void 0 ? void 0 : deletedUser.isNotRemovable)
|
|
306
|
+
return;
|
|
307
|
+
var users = transformSelectedUsers(uniqNewSelectedUsers);
|
|
308
|
+
onChange(users);
|
|
309
|
+
if (!isInputHidden && !isStateless)
|
|
310
|
+
setSelectedUsers(uniqNewSelectedUsers);
|
|
311
|
+
if (!isInputFocused.current && isChipsCollapsable)
|
|
312
|
+
handleFocus();
|
|
313
|
+
};
|
|
314
|
+
var handleFilterOption = function (_a, inputValue) {
|
|
315
|
+
var data = _a.data;
|
|
316
|
+
return applyFilteringToOption({ isFilteringDisabled: isFilteringDisabled, isSelectedOptionsHidden: isSelectedOptionsHidden, inputValue: inputValue, data: data, selectedUsers: selectedUsers });
|
|
317
|
+
};
|
|
318
|
+
var handleCollapseChips = function () {
|
|
319
|
+
var chips = retrieveChipsElements(userDropdownId);
|
|
320
|
+
if (isEmpty(chips))
|
|
321
|
+
return;
|
|
322
|
+
var _a = collapseChips({
|
|
323
|
+
userDropdownId: userDropdownId,
|
|
324
|
+
maxRowsCountToCollapseChips: maxRowsCountToCollapseChips,
|
|
325
|
+
maskWidth: maskWidth,
|
|
326
|
+
suffixWidth: suffixWidth,
|
|
327
|
+
chips: chips,
|
|
328
|
+
}), collapsableChips = _a.collapsableChips, numberOfVisibleChips = _a.numberOfVisibleChips, chipLabelWithMaxWidth = _a.chipLabelWithMaxWidth;
|
|
329
|
+
isNeedCheckChipCollapsableCount.current = true;
|
|
330
|
+
visibleChipsCount.current = numberOfVisibleChips;
|
|
331
|
+
collapsableChipsCount.current = collapsableChips;
|
|
332
|
+
lastVisibleChipIndex.current = numberOfVisibleChips;
|
|
333
|
+
setChipLabelWithMaxWidth(chipLabelWithMaxWidth || generateId());
|
|
334
|
+
};
|
|
335
|
+
var handleUnCollapseChips = useCallback(function () {
|
|
336
|
+
if (!userDropdownId)
|
|
337
|
+
return;
|
|
338
|
+
var chips = retrieveChipsElements(userDropdownId);
|
|
339
|
+
unCollapseChips(chipLabelWithMaxWidth, chips);
|
|
340
|
+
isNeedCheckChipCollapsableCount.current = false;
|
|
341
|
+
visibleChipsCount.current = chips.length;
|
|
342
|
+
collapsableChipsCount.current = 0;
|
|
343
|
+
lastVisibleChipIndex.current = -1;
|
|
344
|
+
setChipLabelWithMaxWidth(EMPTY_STRING);
|
|
345
|
+
}, [chipLabelWithMaxWidth, userDropdownId]);
|
|
346
|
+
var handleDragBlur = function (isDisableCheckFocused) {
|
|
347
|
+
var _a;
|
|
348
|
+
if (!isInputFocused.current && !isDisableCheckFocused)
|
|
349
|
+
return;
|
|
350
|
+
if (selectRef.current)
|
|
351
|
+
selectRef.current._preventBlur = false;
|
|
352
|
+
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
353
|
+
};
|
|
354
|
+
var handleBlur = function () {
|
|
355
|
+
var _a;
|
|
356
|
+
var shouldSkipAddUserToChipsOnNextBlur = skipAddUserToChipsOnNextBlurRef.current;
|
|
357
|
+
var _b = selectRef.current || {}, _preventBlur = _b._preventBlur, _contextMenuOpen = _b._contextMenuOpen, _isDragging = _b._isDragging;
|
|
358
|
+
if (_preventBlur || _contextMenuOpen || _isDragging || skipAddUserToChipsOnNextBlurRef.current)
|
|
359
|
+
return;
|
|
360
|
+
var onBlurComplete = function () {
|
|
361
|
+
isChipsCollapsable && handleCollapseChips();
|
|
362
|
+
isInputFocused.current = false;
|
|
363
|
+
setIsFocused(false);
|
|
364
|
+
};
|
|
365
|
+
if (shouldSkipAddUserToChipsOnNextBlur) {
|
|
366
|
+
onBlurComplete();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
else
|
|
370
|
+
(_a = handleAddUser(true)) === null || _a === void 0 ? void 0 : _a.then(function () { return requestAnimationFrame(function () { return requestAnimationFrame(function () { return onBlurComplete(); }); }); });
|
|
371
|
+
skipAddUserToChipsOnNextBlurRef.current = false;
|
|
372
|
+
};
|
|
373
|
+
var handleSelectBlur = function () {
|
|
374
|
+
setPlaceholderValue(placeholder);
|
|
375
|
+
isMenuCloseOnBlur && setIsMenuOpen(false);
|
|
376
|
+
if (isInputValueClearedOnBlur) {
|
|
377
|
+
setInputValue(EMPTY_STRING);
|
|
378
|
+
onImmediateInputChange === null || onImmediateInputChange === void 0 ? void 0 : onImmediateInputChange(EMPTY_STRING);
|
|
379
|
+
}
|
|
380
|
+
setTimeout(handleBlur, RENDER_DELAY);
|
|
381
|
+
};
|
|
382
|
+
var focusInputIOS = useCallback(function (input) {
|
|
383
|
+
var length = input.value.length;
|
|
384
|
+
requestAnimationFrame(function () {
|
|
385
|
+
input.focus();
|
|
386
|
+
input.value === EMPTY_STRING ? setCaretInEmptyInput(input) : setCaretPosition(input, length);
|
|
387
|
+
});
|
|
388
|
+
}, []);
|
|
389
|
+
var handleFocus = useCallback(function (isDisableCheckFocused) {
|
|
390
|
+
setPlaceholderValue(focusPlaceholder || SEARCH_PLACEHOLDER[language]);
|
|
391
|
+
if (isInputFocused.current && !isDisableCheckFocused)
|
|
392
|
+
return;
|
|
393
|
+
isInputFocused.current = true;
|
|
394
|
+
setIsFocused(true);
|
|
395
|
+
var selectRefCurrent = selectRef.current;
|
|
396
|
+
var _a = selectRefCurrent || {}, _preventBlur = _a._preventBlur, inputRef = _a.inputRef;
|
|
397
|
+
setTimeout(function () {
|
|
398
|
+
if (selectRefCurrent && !_preventBlur)
|
|
399
|
+
checkIsIosPlatform(platform) && inputRef ? focusInputIOS(inputRef) : selectRefCurrent.focus();
|
|
400
|
+
}, RENDER_DELAY);
|
|
401
|
+
isChipsCollapsable && handleUnCollapseChips();
|
|
402
|
+
}, [focusPlaceholder, language, isChipsCollapsable, handleUnCollapseChips, platform, focusInputIOS]);
|
|
403
|
+
var handleForceFocus = useCallback(function () { return setTimeout(function () { return handleFocus(true); }, RENDER_DELAY); }, [handleFocus]);
|
|
404
|
+
var handleSelectFocus = useCallback(function () {
|
|
405
|
+
handleFocus();
|
|
406
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
|
407
|
+
}, [handleFocus, onFocus]);
|
|
408
|
+
var handleCloseModal = function () {
|
|
409
|
+
setModalData(null);
|
|
410
|
+
setIsSearchable(true);
|
|
411
|
+
if (checkIsMobilePlatform(platform)) {
|
|
412
|
+
new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
var modalContent = modalData ? (_jsx(ContactBottomSheet, { fontFamily: fontFamily, language: language, contactInfoTitle: contactInfoTitle, avatar: modalData.avatar, name: modalData.name, email: modalData.email, serverName: modalData.serverName, company: modalData.company, department: modalData.department, companyPosition: modalData.companyPosition, handleCloseModal: handleCloseModal, onClickContactInfoCopyEmail: onClickContactInfoCopyEmail })) : (_jsx(_Fragment, {}));
|
|
416
|
+
useEffect(function () {
|
|
417
|
+
if (externalInputValue && isInputHidden) {
|
|
418
|
+
setInputValue(externalInputValue);
|
|
419
|
+
handleInputChange(externalInputValue);
|
|
420
|
+
}
|
|
421
|
+
//eslint-disable-next-line
|
|
422
|
+
}, [externalInputValue, isInputHidden]);
|
|
423
|
+
useEffect(function () {
|
|
424
|
+
!userDropdownId && setUserDropdownId("user_dropdown_".concat(generateId().replace(/-/g, '_')));
|
|
425
|
+
}, [userDropdownId]);
|
|
426
|
+
useLayoutEffect(function () {
|
|
427
|
+
if (isChipsCollapsable && !isEmpty(chipLabelWithMaxWidth) && !isInputFocused.current) {
|
|
428
|
+
handleUnCollapseChips();
|
|
429
|
+
handleCollapseChips();
|
|
430
|
+
}
|
|
431
|
+
// eslint-disable-next-line
|
|
432
|
+
}, [hint]);
|
|
433
|
+
useLayoutEffect(function () {
|
|
434
|
+
if (userDropdownId)
|
|
435
|
+
setTimeout(function () { return (isChipsCollapsable ? handleCollapseChips() : handleUnCollapseChips()); }, RENDER_DELAY);
|
|
436
|
+
// eslint-disable-next-line
|
|
437
|
+
}, [isChipsCollapsable, userDropdownId]);
|
|
438
|
+
useEffect(function () {
|
|
439
|
+
setPaddingLeft(calculateHorizontalPadding(maskRef, setMaskWidth));
|
|
440
|
+
}, [mask]);
|
|
441
|
+
useEffect(function () {
|
|
442
|
+
setPaddingRight(calculateHorizontalPadding(suffixRef, setSuffixWidth));
|
|
443
|
+
}, [suffix]);
|
|
444
|
+
useEffect(function () {
|
|
445
|
+
setSelectedUsers(function (prevSelectedUsers) {
|
|
446
|
+
return prevSelectedUsers.map(function (selectedUser) { return (__assign(__assign({}, selectedUser), { layoutType: layoutType, fontFamily: fontFamily, language: language, isChipsCollapsable: isChipsCollapsable })); });
|
|
447
|
+
});
|
|
448
|
+
}, [layoutType, fontFamily, language, isChipsCollapsable]);
|
|
449
|
+
useEffect(function () {
|
|
450
|
+
if (isArray(selectedEntries) && !isEmpty(selectedEntries)) {
|
|
451
|
+
setSelectedUsers(selectedEntries.map(function (entity) {
|
|
452
|
+
var contextMenuItems = entity.contextMenuItems;
|
|
453
|
+
var generateContextMenuItems = function () {
|
|
454
|
+
return contextMenuItems === null || contextMenuItems === void 0 ? void 0 : contextMenuItems.map(function (item) { return (__assign(__assign({}, item), { action: function (data) {
|
|
455
|
+
var _a;
|
|
456
|
+
(_a = item.action) === null || _a === void 0 ? void 0 : _a.call(item, data);
|
|
457
|
+
checkIsMobilePlatform(platform) && handleFocus(true);
|
|
458
|
+
} })); });
|
|
459
|
+
};
|
|
460
|
+
var commonFields = __assign(__assign({}, pick(entity, COMMON_FIELDS_TO_PICK)), { platform: platform, layoutType: layoutType, fontFamily: fontFamily, language: language, isChipsCollapsable: isChipsCollapsable, isSelectedChipHasTooltip: isSelectedChipHasTooltip, isInputFocused: isInputFocused, selectRef: selectRef, collapsableChipsCount: collapsableChipsCount, lastVisibleChipIndex: lastVisibleChipIndex, contextMenuItems: generateContextMenuItems() });
|
|
461
|
+
return transformSelectedEntity(entity, commonFields);
|
|
462
|
+
}));
|
|
463
|
+
}
|
|
464
|
+
else
|
|
465
|
+
setSelectedUsers([]);
|
|
466
|
+
// eslint-disable-next-line
|
|
467
|
+
}, [selectedEntries]);
|
|
468
|
+
useEffect(function () {
|
|
469
|
+
var handleVisibilityChange = function () { var _a; return document.hidden && ((_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.blur()); };
|
|
470
|
+
document.addEventListener(EVENT_LISTENER_TYPES.visibilityChange, handleVisibilityChange);
|
|
471
|
+
return function () {
|
|
472
|
+
document.removeEventListener(EVENT_LISTENER_TYPES.visibilityChange, handleVisibilityChange);
|
|
473
|
+
};
|
|
474
|
+
}, []);
|
|
475
|
+
useEffect(function () {
|
|
476
|
+
return function () {
|
|
477
|
+
requestInputChangeDebounce.cancel();
|
|
478
|
+
clearUserTypingTimeout();
|
|
479
|
+
};
|
|
480
|
+
}, [clearUserTypingTimeout, requestInputChangeDebounce]);
|
|
481
|
+
useEffect(function () {
|
|
482
|
+
if (isChipsCollapsable && !isInputFocused.current && isNeedCheckChipCollapsableCount.current)
|
|
483
|
+
collapsableChipsCount.current = (selectedEntries || []).length - visibleChipsCount.current;
|
|
484
|
+
}, [isChipsCollapsable, selectedEntries]);
|
|
485
|
+
var OptionComponent = useCallback(function (props) { return _jsx(Option, __assign({}, props, { isMenuShadowless: isMenuShadowless, children: props.children })); }, [isMenuShadowless]);
|
|
486
|
+
var MenuListComponent = useCallback(function (props) { return (_jsx(MenuList, __assign({}, props, { children: props.children, selectRef: selectRef, scrollFromTop: menuScrollFromTop, language: language, platform: platform, menuListMaxHeight: menuListMaxHeight, charHintClassName: charHintClassName, hasNextPage: hasNextPage, isLoading: isLoading, isShowCatalogSearchButton: isShowCatalogSearchButton, onShowCatalogSearchButtonClick: onShowCatalogSearchButtonClick, isUserTyping: isUserTyping, isCharHintVisible: isCharHintVisible, isMenuShadowless: isMenuShadowless, isNextPageLoading: isNextPageLoading, onLoadNextPage: function (inputValue) { return onLoadNextPage === null || onLoadNextPage === void 0 ? void 0 : onLoadNextPage(inputValue); }, setIsDelimiterVisible: setIsDelimiterVisible }))); }, [
|
|
487
|
+
charHintClassName,
|
|
488
|
+
hasNextPage,
|
|
489
|
+
isCharHintVisible,
|
|
490
|
+
isLoading,
|
|
491
|
+
isMenuShadowless,
|
|
492
|
+
isNextPageLoading,
|
|
493
|
+
isShowCatalogSearchButton,
|
|
494
|
+
isUserTyping,
|
|
495
|
+
language,
|
|
496
|
+
menuListMaxHeight,
|
|
497
|
+
onLoadNextPage,
|
|
498
|
+
onShowCatalogSearchButtonClick,
|
|
499
|
+
platform,
|
|
500
|
+
]);
|
|
501
|
+
var NoOptionsButton = function (props) { return (_jsx(components.NoOptionsMessage, __assign({}, props, { children: _jsx(SearchInCatalogButton, { language: language, isOnlyButtonInList: true, isMenuShadowless: isMenuShadowless, noOptionText: isShowCatalogSearchButton ? undefined : generateNoOptionsMessage({ inputValue: inputValue }), onShowCatalogSearchButtonClick: onShowCatalogSearchButtonClick }) }))); };
|
|
502
|
+
var InputComponent = useCallback(function (props) { return (_jsx(Input, __assign({}, props, { "data-is-clearable": !isChipsVisible, "data-placeholder": placeholderValue, suffixref: suffixRef, suffix: suffix }))); }, [isChipsVisible, placeholderValue, suffix]);
|
|
503
|
+
var MultiValueLabelComponent = useCallback(function (props) { return (_jsx(MultiValueLabel, __assign({}, props, { platform: platform, isChipsOutline: isChipsOutline, transformCurrentChipToInputValue: transformCurrentChipToInputValue, handleBlurDropdown: function () { return handleDragBlur(true); }, handleRequestFocus: handleForceFocus }))); }, [platform, isChipsOutline, transformCurrentChipToInputValue, handleForceFocus]);
|
|
504
|
+
var setContainerNodeRef = function (ref) {
|
|
505
|
+
var _a = ((ref === null || ref === void 0 ? void 0 : ref.getBoundingClientRect()) || {}).left, left = _a === void 0 ? 0 : _a;
|
|
506
|
+
setNodeRef(ref);
|
|
507
|
+
setDelimiterOffset(isShowCatalogSearchButton ? 0 : left);
|
|
508
|
+
};
|
|
509
|
+
return (_jsxs("div", __assign({ id: userDropdownId, className: classNames('smartapp-user-dropdown', containerClassName, { 'smartapp-user-dropdown__not-clickable': isNotClickable }), style: __assign(__assign({}, fontFamilyStyle), containerStyles) }, { children: [_jsx(Title, { text: title }), _jsxs("div", __assign({ className: "smartapp-user-dropdown__container", ref: setContainerNodeRef }, { children: [_jsx(Mask, { mask: mask, elementRef: maskRef, isVisible: isMaskVisible }), _jsx(Select, { ref: selectRef, menuIsOpen: isInputHidden ? !!externalInputValue : isMenuOpen, menuPortalTarget: menuPortalTarget === null || menuPortalTarget === void 0 ? void 0 : menuPortalTarget.current, isMulti: true, openMenuOnFocus: true, hideSelectedOptions: isSelectedOptionsHidden, blurInputOnSelect: false, captureMenuScroll: false, isSearchable: isSearchable, menuShouldScrollIntoView: menuShouldScrollIntoView, menuPlacement: menuPosition, menuPosition: menuLocation, controlShouldRenderValue: isChipsVisible, backspaceRemovesValue: isChipsVisible, isDisabled: isDisabled, closeMenuOnSelect: isMenuCloseOnSelect, isLoading: isLoading || isUserTyping, isClearable: false, isOptionDisabled: function (_a) {
|
|
510
|
+
var _b = _a.isAlreadyAdded, isAlreadyAdded = _b === void 0 ? false : _b;
|
|
511
|
+
return isAlreadyAdded;
|
|
512
|
+
}, styles: generateStyles(), placeholder: placeholderValue, noOptionsMessage: generateNoOptionsMessage, loadingMessage: function () { return _jsx(LoadingMessage, { isMenuShadowless: isMenuShadowless, skeletonRowsCount: skeletonRowsCount }); }, value: selectedUsers, inputValue: inputValue, options: !isNull(corporateEntries) || !isNull(myContactsEntries) ? generateOptions() : undefined, filterOption: handleFilterOption, onInputChange: handleInputChange, onChange: handleChange, onMenuClose: handleMenuClose, onMenuOpen: handleMenuOpen, onKeyDown: handleKeyDown, onBlur: handleSelectBlur, autoFocus: autoFocus, onFocus: handleSelectFocus, instanceId: userDropdownId, components: {
|
|
513
|
+
Input: InputComponent,
|
|
514
|
+
MultiValueLabel: MultiValueLabelComponent,
|
|
515
|
+
MultiValueRemove: MultiValueRemove,
|
|
516
|
+
Option: OptionComponent,
|
|
517
|
+
IndicatorSeparator: IndicatorSeparator,
|
|
518
|
+
DropdownIndicator: DropdownIndicator,
|
|
519
|
+
LoadingIndicator: LoadingIndicator,
|
|
520
|
+
MenuList: MenuListComponent,
|
|
521
|
+
NoOptionsMessage: NoOptionsButton,
|
|
522
|
+
} }), _jsx(Delimiter, { isDelimiterVisible: isDelimiterVisible, isMenuShadowless: isMenuShadowless, isShowCatalogSearchButton: isShowCatalogSearchButton, delimiterOffset: delimiterOffset })] })), _jsx(Hint, { text: hint }), _jsx(Modal, { isModalOpen: !isNull(modalData), platform: platform, fontFamily: fontFamily, content: modalContent, isBottomSheet: checkIsMobilePlatform(platform), modalMaxHeight: checkIsMobilePlatform(platform) ? generateContactBottomSheetMaxHeight() : undefined, backgroundColor: "var(--color-bg-blackout-transparent)", handleCloseModal: handleCloseModal,
|
|
523
|
+
// fix появления ненужного паддинга под клавиатуру android у ContactBottomSheet
|
|
524
|
+
bottomSheetScrollMobileConfig: { shouldDoScrollToFocusedElement: false } })] })));
|
|
525
|
+
};
|
|
526
|
+
export default memo(UserDropdown);
|
|
527
|
+
//# sour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atalogSearchButton: boolean;
|
|
5
|
+
delimiterOffset: number;
|
|
6
|
+
};
|
|
7
|
+
declare const Delimiter: ({ isDelimiterVisible, isMenuShadowless, isShowCatalogSearchButton, delimiterOffset }: TDelimiter) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export default Delimiter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
var Delimiter = function (_a) {
|
|
4
|
+
var isDelimiterVisible = _a.isDelimiterVisible, isMenuShadowless = _a.isMenuShadowless, isShowCatalogSearchButton = _a.isShowCatalogSearchButton, delimiterOffset = _a.delimiterOffset;
|
|
5
|
+
return isMenuShadowless && isDelimiterVisible ? (_jsx("div", { className: classNames('smartapp-user-dropdown__container--delimiter', {
|
|
6
|
+
'smartapp-user-dropdown__container--delimiter__with-catalog-search-btn': isShowCatalogSearchButton,
|
|
7
|
+
}), style: { '--delimiter-offset': "-".concat(delimiterOffset, "px") } })) : null;
|
|
8
|
+
};
|
|
9
|
+
export default Delimiter;
|
|
10
|
+
//# sourceMappingURL=Delimiter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Delimiter.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/components/Delimiter.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AASnC,IAAM,SAAS,GAAG,UAAC,EAAgG;QAA9F,kBAAkB,wBAAA,EAAE,gBAAgB,sBAAA,EAAE,yBAAyB,+BAAA,EAAE,eAAe,qBAAA;IACnG,OAAA,gBAAgB,IAAI,kBAAkB,CAAC,CAAC,CAAC,CACvC,cACE,SAAS,EAAE,UAAU,CAAC,8CAA8C,EAAE;YACpE,uEAAuE,EAAE,yBAAyB;SACnG,CAAC,EACF,KAAK,EAAE,EAAE,oBAAoB,EAAE,WAAI,eAAe,OAAI,EAAmB,GACzE,CACH,CAAC,CAAC,CAAC,IAAI;AAPR,CAOQ,CAAA;AAEV,eAAe,SAAS,CAAA"}
|