@expressms/smartapp-ui 3.0.0-alpha.22 → 3.0.0-alpha.23
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-arrow-down.svg +3 -0
- package/build/main/assets/icons/avatar-arrow-up.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/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/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/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/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/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/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-failure.svg +3 -0
- package/build/main/assets/icons/notification-info.svg +5 -0
- package/build/main/assets/icons/notification-success.svg +4 -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 +12 -0
- package/build/main/assets/icons/refresh.svg +3 -0
- package/build/main/assets/icons/search.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/unread-mails.svg +4 -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 +24 -0
- package/build/main/assets/storybook/index.js +25 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +198 -0
- package/build/main/constants/constants.js +218 -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 +58 -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 +31 -0
- package/build/main/helpers/index.js +183 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/hooks/useLongTap.d.ts +12 -0
- package/build/main/hooks/useLongTap.js +29 -0
- package/build/main/hooks/useLongTap.js.map +1 -0
- package/build/main/hooks/useModal.d.ts +22 -0
- package/build/main/hooks/useModal.js +61 -0
- package/build/main/hooks/useModal.js.map +1 -0
- package/build/main/index.d.ts +36 -0
- package/build/main/index.js +37 -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 +6 -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 +146 -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 +22 -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 +4 -0
- package/build/main//321/201omponents/Avatar/Avatar.js +243 -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 +61 -0
- package/build/main//321/201omponents/Avatar/types.js +29 -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 +62 -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 +24 -0
- package/build/main//321/201omponents/Button/types.js +12 -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 +4 -0
- package/build/main//321/201omponents/Calendar/Calendar.js +145 -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 +15 -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 +4 -0
- package/build/main//321/201omponents/Chip/Chip.js +118 -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 +28 -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/ConfirmationModal/ConfirmationModal.d.ts +4 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +63 -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 +28 -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 +81 -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 +34 -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/CustomSelect/CustomSelect.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +248 -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 +70 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +69 -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 +58 -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/types.d.ts +12 -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 +222 -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 +19 -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 +182 -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 +27 -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 +203 -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 +41 -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 +4 -0
- package/build/main//321/201omponents/Modal/Modal.js +259 -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 +41 -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 +8 -0
- package/build/main//321/201omponents/Notification/Notification.js +199 -0
- package/build/main//321/201omponents/Notification/Notification.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 +44 -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 +338 -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 +31 -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 +88 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -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 +129 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +137 -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 +80 -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 +44 -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 +549 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/constants.js +10 -0
- package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +105 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +143 -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 +69 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +269 -0
- package/build/main//321/201omponents/UserDropdown/types.js +9 -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 +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
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, userType, uid, department, companyPosition, isPrivateSchedule, isNotRemovable, isBusyAtSelectedTime, }, ...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
|
+
userType: import("./constants").CONTACT_TYPES | undefined;
|
|
20
|
+
uid: string | undefined;
|
|
21
|
+
serverName: string | null;
|
|
22
|
+
company: string | null;
|
|
23
|
+
department: string | null;
|
|
24
|
+
companyPosition: string | null;
|
|
25
|
+
isPrivateSchedule: boolean | undefined;
|
|
26
|
+
isNotRemovable: boolean | undefined;
|
|
27
|
+
isBusyAtSelectedTime: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
export declare const generateCorporateOptionsToSelect: ({ language, options, setIsSearchable, setModalData, ...remainingFields }: TGenerateCorporateOptionsToSelect) => {
|
|
30
|
+
language: string;
|
|
31
|
+
setIsSearchable: (isSearchable: boolean) => void;
|
|
32
|
+
setModalData: (modalData: import("./types").TModalData | null) => void;
|
|
33
|
+
platform: string;
|
|
34
|
+
layoutType: string;
|
|
35
|
+
isChipsCollapsable: boolean;
|
|
36
|
+
isInputFocused: import("react").RefObject<boolean>;
|
|
37
|
+
selectRef: import("react").RefObject<any>;
|
|
38
|
+
value: string;
|
|
39
|
+
label: string;
|
|
40
|
+
name: string;
|
|
41
|
+
avatar: string | null;
|
|
42
|
+
email: string;
|
|
43
|
+
contacts: {
|
|
44
|
+
userHuid: string;
|
|
45
|
+
contact: string;
|
|
46
|
+
contactType: string;
|
|
47
|
+
}[];
|
|
48
|
+
userType: import("./constants").CONTACT_TYPES | undefined;
|
|
49
|
+
uid: string | undefined;
|
|
50
|
+
serverName: string | null;
|
|
51
|
+
company: string | null;
|
|
52
|
+
department: string | null;
|
|
53
|
+
companyPosition: string | null;
|
|
54
|
+
isPrivateSchedule: boolean | undefined;
|
|
55
|
+
isNotRemovable: boolean | undefined;
|
|
56
|
+
isBusyAtSelectedTime: boolean | undefined;
|
|
57
|
+
}[];
|
|
58
|
+
export declare const generateContactsOption: ({ option: { name, avatar, email, isPrivateSchedule, isNotRemovable, isBusyAtSelectedTime }, ...remainingFields }: TGenerateContactsOption) => {
|
|
59
|
+
platform: string;
|
|
60
|
+
layoutType: string;
|
|
61
|
+
isChipsCollapsable: boolean;
|
|
62
|
+
isInputFocused: import("react").RefObject<boolean>;
|
|
63
|
+
selectRef: import("react").RefObject<any>;
|
|
64
|
+
value: string;
|
|
65
|
+
label: string;
|
|
66
|
+
name: string | null;
|
|
67
|
+
avatar: string | null;
|
|
68
|
+
email: string;
|
|
69
|
+
isMyContacts: boolean;
|
|
70
|
+
isPrivateSchedule: boolean | undefined;
|
|
71
|
+
isNotRemovable: boolean | undefined;
|
|
72
|
+
isBusyAtSelectedTime: boolean | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const generateContactsOptionsToSelect: ({ options, ...remainingFields }: TGenerateContactsOptionsToSelect) => {
|
|
75
|
+
platform: string;
|
|
76
|
+
layoutType: string;
|
|
77
|
+
isChipsCollapsable: boolean;
|
|
78
|
+
isInputFocused: import("react").RefObject<boolean>;
|
|
79
|
+
selectRef: import("react").RefObject<any>;
|
|
80
|
+
value: string;
|
|
81
|
+
label: string;
|
|
82
|
+
name: string | null;
|
|
83
|
+
avatar: string | null;
|
|
84
|
+
email: string;
|
|
85
|
+
isMyContacts: boolean;
|
|
86
|
+
isPrivateSchedule: boolean | undefined;
|
|
87
|
+
isNotRemovable: boolean | undefined;
|
|
88
|
+
isBusyAtSelectedTime: boolean | undefined;
|
|
89
|
+
}[];
|
|
90
|
+
export declare const generateEnteredByUserOption: ({ email, ...remainingFields }: TGenerateEnteredByUserOption) => {
|
|
91
|
+
platform: string;
|
|
92
|
+
layoutType: string;
|
|
93
|
+
isChipsCollapsable: boolean;
|
|
94
|
+
isInputFocused: import("react").RefObject<boolean>;
|
|
95
|
+
selectRef: import("react").RefObject<any>;
|
|
96
|
+
value: string;
|
|
97
|
+
label: string;
|
|
98
|
+
email: string;
|
|
99
|
+
isEnteredByUser: boolean;
|
|
100
|
+
};
|
|
101
|
+
export declare const IndicatorSeparator: () => null;
|
|
102
|
+
export declare const DropdownIndicator: () => null;
|
|
103
|
+
export declare const MultiValueRemove: () => null;
|
|
104
|
+
export declare const LoadingIndicator: () => null;
|
|
105
|
+
export declare const sortContacts: <T extends TUser>(contacts: T[], query: string) => T[];
|
|
@@ -0,0 +1,143 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
24
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
25
|
+
if (ar || !(i in from)) {
|
|
26
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
27
|
+
ar[i] = from[i];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
31
|
+
};
|
|
32
|
+
import { transliterate as tr } from 'transliteration';
|
|
33
|
+
import ru from 'convert-layout/ru';
|
|
34
|
+
import { SPACE } from '../../constants';
|
|
35
|
+
import { MATCH_SCORES, } from './types';
|
|
36
|
+
export var generateCorporateOption = function (_a) {
|
|
37
|
+
var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, contacts = _b.contacts, serverName = _b.serverName, company = _b.company, userType = _b.userType, uid = _b.uid, department = _b.department, companyPosition = _b.companyPosition, isPrivateSchedule = _b.isPrivateSchedule, isNotRemovable = _b.isNotRemovable, isBusyAtSelectedTime = _b.isBusyAtSelectedTime, remainingFields = __rest(_a, ["option"]);
|
|
38
|
+
return (__assign({ value: contacts[0].userHuid, label: name, name: name, avatar: avatar, email: email || contacts[0].contact, contacts: contacts, userType: userType, uid: uid, serverName: serverName, company: company, department: department, companyPosition: companyPosition, isPrivateSchedule: isPrivateSchedule, isNotRemovable: isNotRemovable, isBusyAtSelectedTime: isBusyAtSelectedTime }, remainingFields));
|
|
39
|
+
};
|
|
40
|
+
export var generateCorporateOptionsToSelect = function (_a) {
|
|
41
|
+
var language = _a.language, options = _a.options, setIsSearchable = _a.setIsSearchable, setModalData = _a.setModalData, remainingFields = __rest(_a, ["language", "options", "setIsSearchable", "setModalData"]);
|
|
42
|
+
return options.map(function (option) { return (__assign(__assign({}, generateCorporateOption(__assign({ option: option }, remainingFields))), { language: language, setIsSearchable: setIsSearchable, setModalData: setModalData })); });
|
|
43
|
+
};
|
|
44
|
+
export var generateContactsOption = function (_a) {
|
|
45
|
+
var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, isPrivateSchedule = _b.isPrivateSchedule, isNotRemovable = _b.isNotRemovable, isBusyAtSelectedTime = _b.isBusyAtSelectedTime, remainingFields = __rest(_a, ["option"]);
|
|
46
|
+
return (__assign({ value: email, label: name || email, name: name, avatar: avatar, email: email, isMyContacts: true, isPrivateSchedule: isPrivateSchedule, isNotRemovable: isNotRemovable, isBusyAtSelectedTime: isBusyAtSelectedTime }, remainingFields));
|
|
47
|
+
};
|
|
48
|
+
export var generateContactsOptionsToSelect = function (_a) {
|
|
49
|
+
var options = _a.options, remainingFields = __rest(_a, ["options"]);
|
|
50
|
+
return options.map(function (option) { return generateContactsOption(__assign({ option: option }, remainingFields)); });
|
|
51
|
+
};
|
|
52
|
+
export var generateEnteredByUserOption = function (_a) {
|
|
53
|
+
var email = _a.email, remainingFields = __rest(_a, ["email"]);
|
|
54
|
+
return (__assign({ value: email, label: email, email: email, isEnteredByUser: true }, remainingFields));
|
|
55
|
+
};
|
|
56
|
+
export var IndicatorSeparator = function () { return null; };
|
|
57
|
+
export var DropdownIndicator = function () { return null; };
|
|
58
|
+
export var MultiValueRemove = function () { return null; };
|
|
59
|
+
export var LoadingIndicator = function () { return null; };
|
|
60
|
+
// сортируем по принципу:
|
|
61
|
+
// 1 - совпадение в емейле, от НАЧАЛА емейла, то есть если введено ger, то gerasimenkoa@express.ms выше чем agerasimenko@express.ms
|
|
62
|
+
// 2 - совпадение в емейле в любом месте, то есть agerasimenko@express.ms выше apoliakov@express.ms и тд
|
|
63
|
+
// 3 - совпадение в имени, от НАЧАЛА ПЕРВОГО слова, при поиске ger, Gerasimenko Andrey выше чем Andrey Gerasimenko
|
|
64
|
+
// 4 - совпадение в имени, от НАЧАЛА ЛЮБОГО слова, то есть Andrey Gerasimenko выше чем Anton Poliakov
|
|
65
|
+
// 5 - совпадение в имени в любом месте
|
|
66
|
+
// 6 - все остальные
|
|
67
|
+
var generateQueryVariants = function (query) { return ({
|
|
68
|
+
origin: query,
|
|
69
|
+
translit: tr(query),
|
|
70
|
+
toEng: ru.toEn(query),
|
|
71
|
+
fromEng: ru.fromEn(query),
|
|
72
|
+
}); };
|
|
73
|
+
var extractFirstWord = function (text) { var _a; return (_a = text.split(SPACE)[0]) !== null && _a !== void 0 ? _a : ''; };
|
|
74
|
+
var createMatchers = function (queryVariants) {
|
|
75
|
+
var variants = Object.values(queryVariants);
|
|
76
|
+
var startsWith = function (text) { return variants.some(function (variant) { return text.startsWith(variant); }); };
|
|
77
|
+
var includes = function (text) { return variants.some(function (variant) { return text.includes(variant); }); };
|
|
78
|
+
var anyWordStartsWith = function (text) { return text.split(SPACE).some(function (word) { return startsWith(word); }); };
|
|
79
|
+
return { startsWith: startsWith, includes: includes, anyWordStartsWith: anyWordStartsWith };
|
|
80
|
+
};
|
|
81
|
+
var scoreEmailMatch = function (email, _a) {
|
|
82
|
+
var startsWith = _a.startsWith, includes = _a.includes;
|
|
83
|
+
if (!email)
|
|
84
|
+
return MATCH_SCORES.NO_MATCH;
|
|
85
|
+
var normalizedEmail = email.toLowerCase();
|
|
86
|
+
if (startsWith(normalizedEmail))
|
|
87
|
+
return MATCH_SCORES.EMAIL_STARTS_WITH;
|
|
88
|
+
if (includes(normalizedEmail))
|
|
89
|
+
return MATCH_SCORES.EMAIL_CONTAINS;
|
|
90
|
+
return MATCH_SCORES.NO_MATCH;
|
|
91
|
+
};
|
|
92
|
+
var scoreNameMatch = function (name, _a) {
|
|
93
|
+
var startsWith = _a.startsWith, anyWordStartsWith = _a.anyWordStartsWith, includes = _a.includes;
|
|
94
|
+
if (!name)
|
|
95
|
+
return MATCH_SCORES.NO_MATCH;
|
|
96
|
+
var normalizedName = name.toLowerCase();
|
|
97
|
+
var firstWord = extractFirstWord(normalizedName);
|
|
98
|
+
if (startsWith(firstWord))
|
|
99
|
+
return MATCH_SCORES.NAME_FIRST_WORD_STARTS_WITH;
|
|
100
|
+
if (anyWordStartsWith(normalizedName))
|
|
101
|
+
return MATCH_SCORES.NAME_ANY_WORD_STARTS_WITH;
|
|
102
|
+
if (includes(normalizedName))
|
|
103
|
+
return MATCH_SCORES.NAME_CONTAINS;
|
|
104
|
+
return MATCH_SCORES.NO_MATCH;
|
|
105
|
+
};
|
|
106
|
+
var calculateContactScore = function (_a, matchers) {
|
|
107
|
+
var email = _a.email, _b = _a.name, name = _b === void 0 ? '' : _b;
|
|
108
|
+
return ({
|
|
109
|
+
emailScore: scoreEmailMatch(email, matchers),
|
|
110
|
+
nameScore: scoreNameMatch(name || '', matchers),
|
|
111
|
+
originalName: name || '',
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
var compareContacts = function (_a, _b) {
|
|
115
|
+
var emailScoreA = _a.emailScore, nameScoreA = _a.nameScore, originalNameA = _a.originalName;
|
|
116
|
+
var emailScoreB = _b.emailScore, nameScoreB = _b.nameScore, originalNameB = _b.originalName;
|
|
117
|
+
if (emailScoreA !== emailScoreB)
|
|
118
|
+
return emailScoreB - emailScoreA;
|
|
119
|
+
if (nameScoreA !== nameScoreB)
|
|
120
|
+
return nameScoreB - nameScoreA;
|
|
121
|
+
return originalNameA.localeCompare(originalNameB);
|
|
122
|
+
};
|
|
123
|
+
export var sortContacts = function (contacts, query) {
|
|
124
|
+
if (!query.trim())
|
|
125
|
+
return __spreadArray([], contacts, true).sort(function (_a, _b) {
|
|
126
|
+
var nameA = _a.name;
|
|
127
|
+
var nameB = _b.name;
|
|
128
|
+
return (nameA || '').localeCompare(nameB || '');
|
|
129
|
+
});
|
|
130
|
+
var queryVariants = generateQueryVariants(query.toLowerCase());
|
|
131
|
+
var matchers = createMatchers(queryVariants);
|
|
132
|
+
return __spreadArray([], contacts, true).map(function (contact) { return ({ contact: contact, score: calculateContactScore(contact, matchers) }); })
|
|
133
|
+
.sort(function (_a, _b) {
|
|
134
|
+
var scoreA = _a.score;
|
|
135
|
+
var scoreB = _b.score;
|
|
136
|
+
return compareContacts(scoreA, scoreB);
|
|
137
|
+
})
|
|
138
|
+
.map(function (_a) {
|
|
139
|
+
var contact = _a.contact;
|
|
140
|
+
return contact;
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents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A,EAAE,KAAK,EAAE,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,EAA9D,CAA8D,CAAC;SAChF,IAAI,CAAC,UAAC,EAAiB,EAAE,EAAiB;YAA3B,MAAM,WAAA;YAAa,MAAM,WAAA;QAAO,OAAA,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC;IAA/B,CAA+B,CAAC;SAC/E,GAAG,CAAC,UAAC,EAAW;YAAT,OAAO,aAAA;QAAO,OAAA,OAAO;IAAP,CAAO,CAAC,CAAA;AAClC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './UserDropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TSelectStyles } from './types';
|
|
2
|
+
declare const _default: ({ isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft, platform, layoutType, isInputHidden, isDisabledMenuOffsetAtFullscreen, isMaskRepresented, fontFamilyStyle: { fontFamily }, containerPadding, }: TSelectStyles) => {
|
|
3
|
+
control: (provided: any, { isFocused }: any) => any;
|
|
4
|
+
menu: (provided: any) => any;
|
|
5
|
+
menuList: (provided: any) => any;
|
|
6
|
+
valueContainer: (provided: any, { hasValue }: any) => any;
|
|
7
|
+
placeholder: (provided: any) => any;
|
|
8
|
+
input: (provided: any) => any;
|
|
9
|
+
multiValue: (provided: any) => any;
|
|
10
|
+
multiValueLabel: (provided: any) => any;
|
|
11
|
+
noOptionsMessage: (provided: any) => any;
|
|
12
|
+
loadingMessage: (provided: any) => any;
|
|
13
|
+
option: (provided: any) => any;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { isFullScreen, isWebPlatform } from '../../helpers';
|
|
13
|
+
import { COLORS } from '../../constants';
|
|
14
|
+
// eslint-disable-next-line import/no-anonymous-default-export
|
|
15
|
+
export default (function (_a) {
|
|
16
|
+
var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, platform = _a.platform, layoutType = _a.layoutType, isInputHidden = _a.isInputHidden, isDisabledMenuOffsetAtFullscreen = _a.isDisabledMenuOffsetAtFullscreen, isMaskRepresented = _a.isMaskRepresented, fontFamily = _a.fontFamilyStyle.fontFamily, containerPadding = _a.containerPadding;
|
|
17
|
+
return ({
|
|
18
|
+
control: function (provided, _a) {
|
|
19
|
+
var isFocused = _a.isFocused;
|
|
20
|
+
var focusedBorderColor = 'var(--color-border-focused)';
|
|
21
|
+
var errorBorderColor = 'var(--color-border-error)';
|
|
22
|
+
var borderColor = isFocused ? focusedBorderColor : 'var(--color-border-primary)';
|
|
23
|
+
var hoverBorderColor = isFocused ? focusedBorderColor : 'var(--color-border-primary-hover)';
|
|
24
|
+
return __assign(__assign({}, provided), { background: isDisabled ? 'var(--color-bg-light-transparent)' : 'transparent', display: isInputHidden ? 'none' : 'block', borderRadius: '10px', borderColor: isError ? errorBorderColor : borderColor, boxShadow: 'none', cursor: 'text', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
|
|
25
|
+
borderColor: isWebPlatform(platform) && (isError ? errorBorderColor : hoverBorderColor),
|
|
26
|
+
} });
|
|
27
|
+
},
|
|
28
|
+
menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? '384px' : '100%', left: isFullScreen(layoutType) && !isDisabledMenuOffsetAtFullscreen ? '55px' : 0, background: COLORS.transparent, borderRadius: '10px', boxShadow: "0px 2px 24px 0px ".concat(COLORS.selectBoxShadow), margin: '4px 0', zIndex: 2, '&:has(.smartapp-menu-list__char-hint)': {
|
|
29
|
+
width: '316px',
|
|
30
|
+
right: '0',
|
|
31
|
+
marginLeft: isFullScreen(layoutType) ? 0 : 'auto',
|
|
32
|
+
marginRight: isFullScreen(layoutType) ? 0 : 'auto',
|
|
33
|
+
} })); },
|
|
34
|
+
menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '220px', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: 0, '::-webkit-scrollbar-thumb': {
|
|
35
|
+
background: 'var(--color-scrollbar-thumb)',
|
|
36
|
+
}, '::-webkit-scrollbar-track': {
|
|
37
|
+
background: COLORS.transparent,
|
|
38
|
+
} })); },
|
|
39
|
+
valueContainer: function (provided, _a) {
|
|
40
|
+
var hasValue = _a.hasValue;
|
|
41
|
+
var valueContainerPadding = lastRowNumber === 1 ? "10.5px 12px 10.5px ".concat(paddingLeft) : "3px 4px 3px ".concat(isMaskRepresented ? paddingLeft : '4px');
|
|
42
|
+
var padding = containerPadding || valueContainerPadding;
|
|
43
|
+
return hasValue && isChipsVisible ? __assign(__assign({}, provided), { display: 'flex', gap: '8px', padding: padding }) : __assign(__assign({}, provided), { padding: padding });
|
|
44
|
+
},
|
|
45
|
+
placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: fontFamily, fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: 'var(--color-text-tertiary)', margin: 0 })); },
|
|
46
|
+
input: function (provided) { return (__assign(__assign({}, provided), { display: isMaxMembersAdded || isDisabled ? 'none' : 'grid', fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: 'var(--color-text-primary)', caretColor: 'var(--color-icon-accent)', padding: 0, margin: 0, overflow: 'auto', gridTemplateColumns: 'max-content' })); },
|
|
47
|
+
multiValue: function (provided) { return (__assign(__assign({}, provided), { width: 'auto', background: 'unset', borderRadius: '1000px', margin: 0, '& > div:first-child': {
|
|
48
|
+
maxWidth: '100%',
|
|
49
|
+
}, '&:has(.multi-value-label-counter)': {
|
|
50
|
+
width: 'fit-content',
|
|
51
|
+
cursor: 'default',
|
|
52
|
+
}, '&:empty': {
|
|
53
|
+
display: 'none',
|
|
54
|
+
} })); },
|
|
55
|
+
multiValueLabel: function (provided) { return (__assign(__assign({}, provided), { width: '100%', padding: '0 !important', '.smartapp-chip': {
|
|
56
|
+
maxWidth: '100%',
|
|
57
|
+
} })); },
|
|
58
|
+
noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: 400, color: 'var(--color-text-secondary)', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: '16px 12px' })); },
|
|
59
|
+
loadingMessage: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '220px', borderRadius: '10px', padding: 0, overflow: 'hidden' })); },
|
|
60
|
+
option: function (provided) { return (__assign(__assign({}, provided), { height: '45px', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: '0', cursor: isWebPlatform(platform) && 'pointer', marginBottom: '2px', transition: 'background 250ms ease-in-out', '&:hover': {
|
|
61
|
+
background: isWebPlatform(platform) && 'var(--color-bg-element-on-top-hover)',
|
|
62
|
+
}, '&:active': {
|
|
63
|
+
background: 'var(--color-bg-element-on-top-pressed)',
|
|
64
|
+
}, '&:focus-visible': {
|
|
65
|
+
outline: 'none',
|
|
66
|
+
} })); },
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=selectStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents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aAChB,IACD,EAnB6B,CAmB7B;QAEF,eAAe,EAAE,UAAC,QAAa,IAAK,OAAA,uBAC/B,QAAQ,KACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,cAAc,EAEvB,gBAAgB,EAAE;gBAChB,QAAQ,EAAE,MAAM;aACjB,IACD,EARkC,CAQlC;QAEF,gBAAgB,EAAE,UAAC,QAAa,IAAK,OAAA,uBAChC,QAAQ,KACX,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,6BAA6B,EACpC,UAAU,EAAE,gCAAgC,EAC5C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,WAAW,IACpB,EARmC,CAQnC;QAEF,cAAc,EAAE,UAAC,QAAa,IAAK,OAAA,uBAC9B,QAAQ,KACX,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,QAAQ,IAClB,EANiC,CAMjC;QAEF,MAAM,EAAE,UAAC,QAAa,IAAK,OAAA,uBACtB,QAAQ,KACX,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gCAAgC,EAC5C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,SAAS,EAC5C,YAAY,EAAE,KAAK,EACnB,UAAU,EAAE,8BAA8B,EAE1C,SAAS,EAAE;gBACT,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,sCAAsC;aAC9E,EAED,UAAU,EAAE;gBACV,UAAU,EAAE,wCAAwC;aACrD,EAED,iBAAiB,EAAE;gBACjB,OAAO,EAAE,MAAM;aAChB,IACD,EArByB,CAqBzB;KACH,CAAC;AA9JmB,CA8JnB,EAAA"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
import { MenuListProps, OptionProps } from 'react-select';
|
|
3
|
+
import { IFontFamilyProps, ILanguageProps, ILayoutTypeProps, IPlatformProps, TFontFamilyStyle, TStyles } from '../../constants';
|
|
4
|
+
import { CONTACT_TYPES } from './constants';
|
|
5
|
+
import { MenuItem } from '../ContextMenu/types';
|
|
6
|
+
export interface IContactBottomSheet extends ILanguageProps {
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
avatar: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
serverName: string | null;
|
|
12
|
+
company: string | null;
|
|
13
|
+
department: string | null;
|
|
14
|
+
companyPosition: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface IContactInfo extends ILanguageProps {
|
|
17
|
+
elementRef?: RefObject<HTMLDivElement | null>;
|
|
18
|
+
serverName: string | null;
|
|
19
|
+
company: string | null;
|
|
20
|
+
department: string | null;
|
|
21
|
+
companyPosition: string | null;
|
|
22
|
+
}
|
|
23
|
+
export type TRenderInfoItem = {
|
|
24
|
+
title: string;
|
|
25
|
+
info: string;
|
|
26
|
+
};
|
|
27
|
+
export interface ILoadingMessage {
|
|
28
|
+
skeletonRowsCount?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface IMenuListProps extends MenuListProps {
|
|
31
|
+
selectRef: RefObject<any>;
|
|
32
|
+
scrollFromTop: RefObject<number>;
|
|
33
|
+
language: string;
|
|
34
|
+
hasNextPage: boolean;
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
isUserTyping: boolean;
|
|
37
|
+
isShowCatalogSearchButton?: boolean;
|
|
38
|
+
isNextPageLoading: boolean;
|
|
39
|
+
onLoadNextPage: (inputValue: string) => void;
|
|
40
|
+
onShowCatalogSearchButtonClick?: () => void;
|
|
41
|
+
}
|
|
42
|
+
type TData = ILanguageProps & {
|
|
43
|
+
label: string;
|
|
44
|
+
avatar: string | null;
|
|
45
|
+
email: string;
|
|
46
|
+
serverName: string | null;
|
|
47
|
+
company: string | null;
|
|
48
|
+
department: string | null;
|
|
49
|
+
companyPosition: string | null;
|
|
50
|
+
isMyContacts: boolean;
|
|
51
|
+
platform: 'web' | 'ios' | 'android';
|
|
52
|
+
fontFamily: string;
|
|
53
|
+
setIsSearchable: (isSearchable: boolean) => void;
|
|
54
|
+
setModalData: (modalData: TModalData | null) => void;
|
|
55
|
+
userType?: CONTACT_TYPES;
|
|
56
|
+
uid?: string;
|
|
57
|
+
};
|
|
58
|
+
export interface IOptionProps extends OptionProps {
|
|
59
|
+
data: TData;
|
|
60
|
+
}
|
|
61
|
+
export interface ISearchInCatalogButtonProps {
|
|
62
|
+
width?: number;
|
|
63
|
+
language: string;
|
|
64
|
+
isOnlyButtonInList?: boolean;
|
|
65
|
+
noOptionText?: string | null;
|
|
66
|
+
onShowCatalogSearchButtonClick?: () => void;
|
|
67
|
+
}
|
|
68
|
+
export type TModalData = {
|
|
69
|
+
avatar: string | null;
|
|
70
|
+
name: string;
|
|
71
|
+
email: string;
|
|
72
|
+
serverName: string | null;
|
|
73
|
+
company: string | null;
|
|
74
|
+
department: string | null;
|
|
75
|
+
companyPosition: string | null;
|
|
76
|
+
};
|
|
77
|
+
type TGenerateCommonOption = {
|
|
78
|
+
platform: string;
|
|
79
|
+
layoutType: string;
|
|
80
|
+
isChipsCollapsable: boolean;
|
|
81
|
+
isInputFocused: RefObject<boolean>;
|
|
82
|
+
selectRef: RefObject<any>;
|
|
83
|
+
};
|
|
84
|
+
export type TGenerateCorporateOption = TGenerateCommonOption & {
|
|
85
|
+
option: TCorporateEntity;
|
|
86
|
+
};
|
|
87
|
+
export type TGenerateCorporateOptionsToSelect = TGenerateCommonOption & {
|
|
88
|
+
language: string;
|
|
89
|
+
options: TCorporateEntity[];
|
|
90
|
+
setIsSearchable: (isSearchable: boolean) => void;
|
|
91
|
+
setModalData: (modalData: TModalData | null) => void;
|
|
92
|
+
};
|
|
93
|
+
export type TGenerateContactsOption = TGenerateCommonOption & {
|
|
94
|
+
option: TMyContactsEntries;
|
|
95
|
+
};
|
|
96
|
+
export type TGenerateContactsOptionsToSelect = TGenerateCommonOption & {
|
|
97
|
+
options: TMyContactsEntries[];
|
|
98
|
+
};
|
|
99
|
+
export type TGenerateEnteredByUserOption = TGenerateCommonOption & {
|
|
100
|
+
email: string;
|
|
101
|
+
};
|
|
102
|
+
export type TSelectStyles = {
|
|
103
|
+
isChipsVisible: boolean;
|
|
104
|
+
isMaxMembersAdded: boolean;
|
|
105
|
+
isDisabled: boolean;
|
|
106
|
+
isError: boolean;
|
|
107
|
+
lastRowNumber: number;
|
|
108
|
+
paddingLeft: string;
|
|
109
|
+
platform: string;
|
|
110
|
+
layoutType: string;
|
|
111
|
+
isInputHidden: boolean;
|
|
112
|
+
isDisabledMenuOffsetAtFullscreen: boolean;
|
|
113
|
+
isMaskRepresented: boolean;
|
|
114
|
+
fontFamilyStyle: TFontFamilyStyle;
|
|
115
|
+
containerPadding?: string;
|
|
116
|
+
};
|
|
117
|
+
export type TGenerateNoOptionsMessage = {
|
|
118
|
+
inputValue: string;
|
|
119
|
+
};
|
|
120
|
+
export type THandleFilterOption = {
|
|
121
|
+
data: MultiOptionType;
|
|
122
|
+
};
|
|
123
|
+
export type TSelectProps = {
|
|
124
|
+
options: MultiOptionType[];
|
|
125
|
+
inputValue: string;
|
|
126
|
+
onChange: (value: MultiOptionType[]) => void;
|
|
127
|
+
onInputChange: (value: string) => void;
|
|
128
|
+
};
|
|
129
|
+
export interface MultiOptionType {
|
|
130
|
+
value: string;
|
|
131
|
+
label: string;
|
|
132
|
+
avatar?: string | null;
|
|
133
|
+
email: string;
|
|
134
|
+
layoutType: string;
|
|
135
|
+
isChipsCollapsable: boolean;
|
|
136
|
+
isLoading?: boolean;
|
|
137
|
+
uid?: string;
|
|
138
|
+
isWarning?: boolean;
|
|
139
|
+
userType?: CONTACT_TYPES;
|
|
140
|
+
platform?: string;
|
|
141
|
+
serverName?: string | null;
|
|
142
|
+
company?: string | null;
|
|
143
|
+
department?: string | null;
|
|
144
|
+
companyPosition?: string | null;
|
|
145
|
+
isMyContacts?: boolean;
|
|
146
|
+
isEnteredByUser?: boolean;
|
|
147
|
+
isNotRemovable?: boolean;
|
|
148
|
+
}
|
|
149
|
+
export type TMyContactsEntries = {
|
|
150
|
+
isBusyAtSelectedTime?: boolean;
|
|
151
|
+
isPrivateSchedule?: boolean;
|
|
152
|
+
isNotRemovable?: boolean;
|
|
153
|
+
isOrganizer?: boolean;
|
|
154
|
+
name: string | null;
|
|
155
|
+
email: string;
|
|
156
|
+
avatar: string | null;
|
|
157
|
+
isLoading?: boolean;
|
|
158
|
+
userType?: CONTACT_TYPES;
|
|
159
|
+
isWarning?: boolean;
|
|
160
|
+
uid?: string;
|
|
161
|
+
isResetChipsToInputValue?: boolean;
|
|
162
|
+
contextMenuItems?: MenuItem[];
|
|
163
|
+
};
|
|
164
|
+
type TContacts = {
|
|
165
|
+
userHuid: string;
|
|
166
|
+
contact: string;
|
|
167
|
+
contactType: string;
|
|
168
|
+
};
|
|
169
|
+
export type TCorporateEntity = {
|
|
170
|
+
isBusyAtSelectedTime?: boolean;
|
|
171
|
+
isPrivateSchedule?: boolean;
|
|
172
|
+
isNotRemovable?: boolean;
|
|
173
|
+
isOrganizer?: boolean;
|
|
174
|
+
avatar: string | null;
|
|
175
|
+
uid?: string;
|
|
176
|
+
isResetChipsToInputValue?: boolean;
|
|
177
|
+
contextMenuItems?: MenuItem[];
|
|
178
|
+
userType?: CONTACT_TYPES;
|
|
179
|
+
isLoading?: boolean;
|
|
180
|
+
isWarning?: boolean;
|
|
181
|
+
name: string;
|
|
182
|
+
email: string | null;
|
|
183
|
+
serverName: string | null;
|
|
184
|
+
company: string | null;
|
|
185
|
+
department: string | null;
|
|
186
|
+
companyPosition: string | null;
|
|
187
|
+
contacts: TContacts[];
|
|
188
|
+
};
|
|
189
|
+
type TCorporateEntries = {
|
|
190
|
+
corpPhonebookEntries: TCorporateEntity[];
|
|
191
|
+
trustSearchEntries: TCorporateEntity[];
|
|
192
|
+
};
|
|
193
|
+
export type TUser = TCorporateEntity | TMyContactsEntries | {
|
|
194
|
+
email: string;
|
|
195
|
+
name?: string | null;
|
|
196
|
+
isBusyAtSelectedTime?: boolean;
|
|
197
|
+
uid?: string;
|
|
198
|
+
isResetChipsToInputValue?: boolean;
|
|
199
|
+
isPrivateSchedule?: boolean;
|
|
200
|
+
isNotRemovable?: boolean;
|
|
201
|
+
isOrganizer?: boolean;
|
|
202
|
+
isWarning?: boolean;
|
|
203
|
+
isLoading?: boolean;
|
|
204
|
+
userType?: CONTACT_TYPES;
|
|
205
|
+
contextMenuItems?: MenuItem[];
|
|
206
|
+
};
|
|
207
|
+
export interface IUserDropdownProps extends IPlatformProps, ILayoutTypeProps, IFontFamilyProps, ILanguageProps {
|
|
208
|
+
isDisabled?: boolean;
|
|
209
|
+
isLoading?: boolean;
|
|
210
|
+
isChipsOutline?: boolean;
|
|
211
|
+
isChipsVisible?: boolean;
|
|
212
|
+
isChipsCollapsable?: boolean;
|
|
213
|
+
isSelectedChipHasTooltip?: boolean;
|
|
214
|
+
isMenuCloseOnSelect?: boolean;
|
|
215
|
+
isFilteringDisabled?: boolean;
|
|
216
|
+
isShowCatalogSearchButton?: boolean;
|
|
217
|
+
isBackspaceChipToInput?: boolean;
|
|
218
|
+
isInputHidden?: boolean;
|
|
219
|
+
isDisabledMenuOffsetAtFullscreen?: boolean;
|
|
220
|
+
hasNextPage?: boolean;
|
|
221
|
+
isNextPageLoading?: boolean;
|
|
222
|
+
title?: string;
|
|
223
|
+
mask?: string;
|
|
224
|
+
placeholder?: string;
|
|
225
|
+
hint?: ReactElement | string;
|
|
226
|
+
noOptionsMessage?: string;
|
|
227
|
+
maxMembersCount?: number;
|
|
228
|
+
menuPosition?: 'bottom' | 'auto' | 'top';
|
|
229
|
+
autoFocus?: boolean;
|
|
230
|
+
externalInputValue?: string;
|
|
231
|
+
containerClassName?: string;
|
|
232
|
+
containerPadding?: string;
|
|
233
|
+
containerStyles?: TStyles;
|
|
234
|
+
selectedEntries?: TUser[];
|
|
235
|
+
corporateEntries: TCorporateEntries | null;
|
|
236
|
+
myContactsEntries: TMyContactsEntries[] | null;
|
|
237
|
+
emailsToExclude?: string[];
|
|
238
|
+
onInputChange: (inputValue: string) => void;
|
|
239
|
+
onChange: (users: TUser[]) => void;
|
|
240
|
+
onMenuOpen?: () => void;
|
|
241
|
+
onMenuClose?: () => void;
|
|
242
|
+
onLoadNextPage?: (inputValue: string) => void;
|
|
243
|
+
onShowCatalogSearchButtonClick?: () => void;
|
|
244
|
+
}
|
|
245
|
+
export type TQueryVariants = {
|
|
246
|
+
origin: string;
|
|
247
|
+
translit: string;
|
|
248
|
+
toEng: string;
|
|
249
|
+
fromEng: string;
|
|
250
|
+
};
|
|
251
|
+
export type TContactMatchScore = {
|
|
252
|
+
emailScore: number;
|
|
253
|
+
nameScore: number;
|
|
254
|
+
originalName: string;
|
|
255
|
+
};
|
|
256
|
+
export declare const MATCH_SCORES: {
|
|
257
|
+
readonly EMAIL_STARTS_WITH: 6;
|
|
258
|
+
readonly EMAIL_CONTAINS: 5;
|
|
259
|
+
readonly NAME_FIRST_WORD_STARTS_WITH: 4;
|
|
260
|
+
readonly NAME_ANY_WORD_STARTS_WITH: 3;
|
|
261
|
+
readonly NAME_CONTAINS: 2;
|
|
262
|
+
readonly NO_MATCH: 0;
|
|
263
|
+
};
|
|
264
|
+
export type TMatchers = {
|
|
265
|
+
startsWith: (text: string) => boolean;
|
|
266
|
+
includes: (text: string) => boolean;
|
|
267
|
+
anyWordStartsWith: (text: string) => boolean;
|
|
268
|
+
};
|
|
269
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAkRA,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC;IACjB,2BAA2B,EAAE,CAAC;IAC9B,yBAAyB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/сomponents/types.ts"],"names":[],"mappings":""}
|