@expressms/smartapp-ui 3.0.0-alpha.20 → 3.0.0-alpha.22
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/package.json +1 -1
- package/build/main/assets/icons/arrow-back.svg +0 -3
- package/build/main/assets/icons/arrow-down.svg +0 -3
- package/build/main/assets/icons/arrow-up.svg +0 -3
- package/build/main/assets/icons/attachment-loader.svg +0 -3
- package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
- package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
- package/build/main/assets/icons/avatar-loader.svg +0 -3
- package/build/main/assets/icons/button-loader.svg +0 -3
- package/build/main/assets/icons/calendar-arrow-next.svg +0 -3
- package/build/main/assets/icons/calendar-arrow-prev.svg +0 -3
- package/build/main/assets/icons/check-mark-square.svg +0 -4
- package/build/main/assets/icons/check-mark.svg +0 -4
- package/build/main/assets/icons/chip-info.svg +0 -5
- package/build/main/assets/icons/clear.svg +0 -3
- package/build/main/assets/icons/close-modal.svg +0 -3
- package/build/main/assets/icons/close-stories.svg +0 -4
- package/build/main/assets/icons/close.svg +0 -3
- package/build/main/assets/icons/contact-info.svg +0 -5
- package/build/main/assets/icons/corporate-user.svg +0 -3
- package/build/main/assets/icons/crown.svg +0 -5
- package/build/main/assets/icons/delete-chip.svg +0 -3
- package/build/main/assets/icons/distribution.svg +0 -12
- package/build/main/assets/icons/doc-small.svg +0 -11
- package/build/main/assets/icons/doc.svg +0 -11
- package/build/main/assets/icons/error.svg +0 -5
- package/build/main/assets/icons/external-link.svg +0 -3
- package/build/main/assets/icons/eye-off.svg +0 -5
- package/build/main/assets/icons/eye-on.svg +0 -4
- package/build/main/assets/icons/file-small.svg +0 -11
- package/build/main/assets/icons/file.svg +0 -11
- package/build/main/assets/icons/global-address-book-user.svg +0 -4
- package/build/main/assets/icons/group.svg +0 -3
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +0 -4
- package/build/main/assets/icons/info.svg +0 -5
- package/build/main/assets/icons/input-arrow-down.svg +0 -3
- package/build/main/assets/icons/input-arrow-up.svg +0 -3
- package/build/main/assets/icons/loader.svg +0 -3
- package/build/main/assets/icons/logout.svg +0 -4
- package/build/main/assets/icons/magnifying-glass.svg +0 -3
- package/build/main/assets/icons/mail.svg +0 -3
- package/build/main/assets/icons/meeting-room.svg +0 -3
- package/build/main/assets/icons/more.svg +0 -3
- package/build/main/assets/icons/my-contacts-user.svg +0 -3
- package/build/main/assets/icons/notification-close.svg +0 -3
- package/build/main/assets/icons/notification-failure.svg +0 -3
- package/build/main/assets/icons/notification-info.svg +0 -5
- package/build/main/assets/icons/notification-success.svg +0 -4
- package/build/main/assets/icons/order.svg +0 -6
- package/build/main/assets/icons/pdf-small.svg +0 -11
- package/build/main/assets/icons/pdf.svg +0 -11
- package/build/main/assets/icons/play-small.svg +0 -3
- package/build/main/assets/icons/play.svg +0 -3
- package/build/main/assets/icons/plus.svg +0 -4
- package/build/main/assets/icons/ppt-small.svg +0 -11
- package/build/main/assets/icons/ppt.svg +0 -11
- package/build/main/assets/icons/private.svg +0 -12
- package/build/main/assets/icons/refresh.svg +0 -3
- package/build/main/assets/icons/search.svg +0 -3
- package/build/main/assets/icons/story-loader.svg +0 -3
- package/build/main/assets/icons/tick.svg +0 -10
- package/build/main/assets/icons/trash.svg +0 -3
- package/build/main/assets/icons/txt-small.svg +0 -11
- package/build/main/assets/icons/txt.svg +0 -11
- package/build/main/assets/icons/unread-mails.svg +0 -4
- package/build/main/assets/icons/warning-avatar.svg +0 -4
- package/build/main/assets/icons/xls-small.svg +0 -11
- package/build/main/assets/icons/xls.svg +0 -11
- package/build/main/assets/storybook/index.d.ts +0 -24
- package/build/main/assets/storybook/index.js +0 -25
- package/build/main/assets/storybook/index.js.map +0 -1
- package/build/main/constants/constants.d.ts +0 -197
- package/build/main/constants/constants.js +0 -217
- package/build/main/constants/constants.js.map +0 -1
- package/build/main/constants/index.d.ts +0 -2
- package/build/main/constants/index.js +0 -3
- package/build/main/constants/index.js.map +0 -1
- package/build/main/constants/types.d.ts +0 -58
- package/build/main/constants/types.js +0 -2
- package/build/main/constants/types.js.map +0 -1
- package/build/main/helpers/index.d.ts +0 -31
- package/build/main/helpers/index.js +0 -183
- package/build/main/helpers/index.js.map +0 -1
- package/build/main/hooks/useLongTap.d.ts +0 -12
- package/build/main/hooks/useLongTap.js +0 -29
- package/build/main/hooks/useLongTap.js.map +0 -1
- package/build/main/hooks/useModal.d.ts +0 -22
- package/build/main/hooks/useModal.js +0 -61
- package/build/main/hooks/useModal.js.map +0 -1
- package/build/main/index.d.ts +0 -36
- package/build/main/index.js +0 -37
- package/build/main/index.js.map +0 -1
- package/build/main/styles/index.d.ts +0 -1
- package/build/main/styles/index.js +0 -2
- package/build/main/styles/index.js.map +0 -1
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +0 -14
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
- package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -53
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ActionModal/index.js +0 -2
- package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +0 -23
- package/build/main//321/201omponents/ActionModal/types.js +0 -2
- package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -146
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
- package/build/main//321/201omponents/AttachedFile/index.js +0 -2
- package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -22
- package/build/main//321/201omponents/AttachedFile/types.js +0 -2
- package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
- package/build/main//321/201omponents/Avatar/Avatar.js +0 -226
- package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
- package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
- package/build/main//321/201omponents/Avatar/index.js +0 -2
- package/build/main//321/201omponents/Avatar/index.js.map +0 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +0 -60
- package/build/main//321/201omponents/Avatar/types.js +0 -29
- package/build/main//321/201omponents/Avatar/types.js.map +0 -1
- package/build/main//321/201omponents/Button/Button.d.ts +0 -4
- package/build/main//321/201omponents/Button/Button.js +0 -62
- package/build/main//321/201omponents/Button/Button.js.map +0 -1
- package/build/main//321/201omponents/Button/index.d.ts +0 -1
- package/build/main//321/201omponents/Button/index.js +0 -2
- package/build/main//321/201omponents/Button/index.js.map +0 -1
- package/build/main//321/201omponents/Button/types.d.ts +0 -24
- package/build/main//321/201omponents/Button/types.js +0 -12
- package/build/main//321/201omponents/Button/types.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
- package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
- package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
- package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
- package/build/main//321/201omponents/CachedImage/index.js +0 -2
- package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
- package/build/main//321/201omponents/CachedImage/types.js +0 -2
- package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
- package/build/main//321/201omponents/Calendar/Calendar.js +0 -154
- package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
- package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
- package/build/main//321/201omponents/Calendar/index.js +0 -2
- package/build/main//321/201omponents/Calendar/index.js.map +0 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +0 -15
- package/build/main//321/201omponents/Calendar/types.js +0 -2
- package/build/main//321/201omponents/Calendar/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -47
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -42
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
- package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
- package/build/main//321/201omponents/Charts/colors.js +0 -4
- package/build/main//321/201omponents/Charts/colors.js.map +0 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -42
- package/build/main//321/201omponents/Charts/constants.js +0 -42
- package/build/main//321/201omponents/Charts/constants.js.map +0 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
- package/build/main//321/201omponents/Charts/helpers.js +0 -73
- package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
- package/build/main//321/201omponents/Charts/index.d.ts +0 -3
- package/build/main//321/201omponents/Charts/index.js +0 -4
- package/build/main//321/201omponents/Charts/index.js.map +0 -1
- package/build/main//321/201omponents/Charts/types.d.ts +0 -89
- package/build/main//321/201omponents/Charts/types.js +0 -2
- package/build/main//321/201omponents/Charts/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
- package/build/main//321/201omponents/Charts/useEvents.js +0 -45
- package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
- package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -8
- package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -48
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
- package/build/main//321/201omponents/Checkbox/index.js +0 -2
- package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +0 -14
- package/build/main//321/201omponents/Checkbox/types.js +0 -2
- package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
- package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
- package/build/main//321/201omponents/Chip/Chip.js +0 -118
- package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
- package/build/main//321/201omponents/Chip/index.d.ts +0 -1
- package/build/main//321/201omponents/Chip/index.js +0 -2
- package/build/main//321/201omponents/Chip/index.js.map +0 -1
- package/build/main//321/201omponents/Chip/types.d.ts +0 -27
- package/build/main//321/201omponents/Chip/types.js +0 -2
- package/build/main//321/201omponents/Chip/types.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -63
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
- package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -81
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
- package/build/main//321/201omponents/ContextMenu/index.js +0 -2
- package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -34
- package/build/main//321/201omponents/ContextMenu/types.js +0 -2
- package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -248
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelect/index.js +0 -2
- package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -70
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -69
- package/build/main//321/201omponents/CustomSelect/types.js +0 -2
- package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -58
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
- package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -222
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -90
- package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
- package/build/main//321/201omponents/Error/Error.d.ts +0 -4
- package/build/main//321/201omponents/Error/Error.js +0 -23
- package/build/main//321/201omponents/Error/Error.js.map +0 -1
- package/build/main//321/201omponents/Error/index.d.ts +0 -1
- package/build/main//321/201omponents/Error/index.js +0 -2
- package/build/main//321/201omponents/Error/index.js.map +0 -1
- package/build/main//321/201omponents/Error/types.d.ts +0 -10
- package/build/main//321/201omponents/Error/types.js +0 -2
- package/build/main//321/201omponents/Error/types.js.map +0 -1
- package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
- package/build/main//321/201omponents/Flex/Flex.js +0 -35
- package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/index.d.ts +0 -3
- package/build/main//321/201omponents/Flex/index.js +0 -4
- package/build/main//321/201omponents/Flex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/types.d.ts +0 -19
- package/build/main//321/201omponents/Flex/types.js +0 -2
- package/build/main//321/201omponents/Flex/types.js.map +0 -1
- package/build/main//321/201omponents/Header/Header.d.ts +0 -5
- package/build/main//321/201omponents/Header/Header.js +0 -125
- package/build/main//321/201omponents/Header/Header.js.map +0 -1
- package/build/main//321/201omponents/Header/index.d.ts +0 -1
- package/build/main//321/201omponents/Header/index.js +0 -2
- package/build/main//321/201omponents/Header/index.js.map +0 -1
- package/build/main//321/201omponents/Header/types.d.ts +0 -47
- package/build/main//321/201omponents/Header/types.js +0 -2
- package/build/main//321/201omponents/Header/types.js.map +0 -1
- package/build/main//321/201omponents/Input/Input.d.ts +0 -4
- package/build/main//321/201omponents/Input/Input.js +0 -182
- package/build/main//321/201omponents/Input/Input.js.map +0 -1
- package/build/main//321/201omponents/Input/index.d.ts +0 -1
- package/build/main//321/201omponents/Input/index.js +0 -2
- package/build/main//321/201omponents/Input/index.js.map +0 -1
- package/build/main//321/201omponents/Input/types.d.ts +0 -27
- package/build/main//321/201omponents/Input/types.js +0 -2
- package/build/main//321/201omponents/Input/types.js.map +0 -1
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
- package/build/main//321/201omponents/ListItem/ListItem.js +0 -203
- package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
- package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
- package/build/main//321/201omponents/ListItem/index.js +0 -2
- package/build/main//321/201omponents/ListItem/index.js.map +0 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +0 -41
- package/build/main//321/201omponents/ListItem/types.js +0 -2
- package/build/main//321/201omponents/ListItem/types.js.map +0 -1
- package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
- package/build/main//321/201omponents/Loader/Loader.js +0 -44
- package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
- package/build/main//321/201omponents/Loader/index.d.ts +0 -1
- package/build/main//321/201omponents/Loader/index.js +0 -2
- package/build/main//321/201omponents/Loader/index.js.map +0 -1
- package/build/main//321/201omponents/Loader/types.d.ts +0 -18
- package/build/main//321/201omponents/Loader/types.js +0 -2
- package/build/main//321/201omponents/Loader/types.js.map +0 -1
- package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
- package/build/main//321/201omponents/Modal/Modal.js +0 -259
- package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
- package/build/main//321/201omponents/Modal/index.d.ts +0 -1
- package/build/main//321/201omponents/Modal/index.js +0 -2
- package/build/main//321/201omponents/Modal/index.js.map +0 -1
- package/build/main//321/201omponents/Modal/types.d.ts +0 -41
- package/build/main//321/201omponents/Modal/types.js +0 -2
- package/build/main//321/201omponents/Modal/types.js.map +0 -1
- package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
- package/build/main//321/201omponents/Notification/Notification.js +0 -199
- package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
- package/build/main//321/201omponents/Notification/index.d.ts +0 -1
- package/build/main//321/201omponents/Notification/index.js +0 -2
- package/build/main//321/201omponents/Notification/index.js.map +0 -1
- package/build/main//321/201omponents/Notification/types.d.ts +0 -44
- package/build/main//321/201omponents/Notification/types.js +0 -2
- package/build/main//321/201omponents/Notification/types.js.map +0 -1
- package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
- package/build/main//321/201omponents/Profile/Profile.js +0 -42
- package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
- package/build/main//321/201omponents/Profile/index.d.ts +0 -1
- package/build/main//321/201omponents/Profile/index.js +0 -2
- package/build/main//321/201omponents/Profile/index.js.map +0 -1
- package/build/main//321/201omponents/Profile/types.d.ts +0 -14
- package/build/main//321/201omponents/Profile/types.js +0 -2
- package/build/main//321/201omponents/Profile/types.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ProgressBar/index.js +0 -2
- package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
- package/build/main//321/201omponents/ProgressBar/types.js +0 -2
- package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
- package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -33
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
- package/build/main//321/201omponents/RadioButton/index.js +0 -2
- package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
- package/build/main//321/201omponents/RadioButton/types.js +0 -2
- package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -140
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ScrollBar/index.js +0 -2
- package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -24
- package/build/main//321/201omponents/ScrollBar/types.js +0 -2
- package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
- package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
- package/build/main//321/201omponents/Skeleton/index.js +0 -2
- package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
- package/build/main//321/201omponents/Skeleton/types.js +0 -2
- package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
- package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
- package/build/main//321/201omponents/Stories/Stories.js +0 -338
- package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
- package/build/main//321/201omponents/Stories/index.d.ts +0 -1
- package/build/main//321/201omponents/Stories/index.js +0 -2
- package/build/main//321/201omponents/Stories/index.js.map +0 -1
- package/build/main//321/201omponents/Stories/types.d.ts +0 -71
- package/build/main//321/201omponents/Stories/types.js +0 -16
- package/build/main//321/201omponents/Stories/types.js.map +0 -1
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
- package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
- package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
- package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
- package/build/main//321/201omponents/Switcher/index.js +0 -2
- package/build/main//321/201omponents/Switcher/index.js.map +0 -1
- package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
- package/build/main//321/201omponents/Switcher/types.js +0 -2
- package/build/main//321/201omponents/Switcher/types.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
- package/build/main//321/201omponents/SyncLoader/index.js +0 -2
- package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -8
- package/build/main//321/201omponents/SyncLoader/types.js +0 -2
- package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
- package/build/main//321/201omponents/Textarea/Textarea.js +0 -59
- package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
- package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
- package/build/main//321/201omponents/Textarea/index.js +0 -2
- package/build/main//321/201omponents/Textarea/index.js.map +0 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
- package/build/main//321/201omponents/Textarea/types.js +0 -2
- package/build/main//321/201omponents/Textarea/types.js.map +0 -1
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
- package/build/main//321/201omponents/Toggle/Toggle.js +0 -35
- package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
- package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
- package/build/main//321/201omponents/Toggle/index.js +0 -2
- package/build/main//321/201omponents/Toggle/index.js.map +0 -1
- package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
- package/build/main//321/201omponents/Toggle/types.js +0 -2
- package/build/main//321/201omponents/Toggle/types.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -88
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -129
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -137
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -80
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +0 -44
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -549
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +0 -8
- package/build/main//321/201omponents/UserDropdown/constants.js +0 -10
- package/build/main//321/201omponents/UserDropdown/constants.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -105
- package/build/main//321/201omponents/UserDropdown/helpers.js +0 -143
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
- package/build/main//321/201omponents/UserDropdown/index.js +0 -2
- package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -69
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -269
- package/build/main//321/201omponents/UserDropdown/types.js +0 -9
- package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
- package/build/main//321/201omponents/types.d.ts +0 -2
- package/build/main//321/201omponents/types.js +0 -2
- package/build/main//321/201omponents/types.js.map +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MenuListProps } from 'react-select';
|
|
3
|
-
import { IFontFamilyProps, TFontFamilyStyle, TStyles } from '../../constants';
|
|
4
|
-
import { TIndicatorColor } from '../ListItem/types';
|
|
5
|
-
import { IntRange } from '../types';
|
|
6
|
-
export type TMenuList = MenuListProps & {
|
|
7
|
-
menuListRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
-
selectWidth: number;
|
|
9
|
-
optionHeight: number;
|
|
10
|
-
setOptionHeight: React.Dispatch<React.SetStateAction<number>>;
|
|
11
|
-
};
|
|
12
|
-
export type TSelectStyles = {
|
|
13
|
-
isDisabled: boolean;
|
|
14
|
-
isError: boolean;
|
|
15
|
-
isMenuAutoWidth: boolean;
|
|
16
|
-
fontFamilyStyle: TFontFamilyStyle;
|
|
17
|
-
menuListMaxHeight: number;
|
|
18
|
-
optionHeight: number;
|
|
19
|
-
containerPadding?: string;
|
|
20
|
-
};
|
|
21
|
-
export interface ILoadingMessage {
|
|
22
|
-
isCreatableSelect?: boolean;
|
|
23
|
-
}
|
|
24
|
-
interface IndicatorCustomSelectOption {
|
|
25
|
-
element: 'indicator';
|
|
26
|
-
color?: TIndicatorColor;
|
|
27
|
-
}
|
|
28
|
-
interface NoElementCustomSelectOption {
|
|
29
|
-
element: 'no-element';
|
|
30
|
-
secondaryText?: string;
|
|
31
|
-
secondaryTextColor?: string;
|
|
32
|
-
}
|
|
33
|
-
interface SimpleCustomSelectOption {
|
|
34
|
-
}
|
|
35
|
-
export type TCustomSelectOption = (NoElementCustomSelectOption | IndicatorCustomSelectOption | SimpleCustomSelectOption) & {
|
|
36
|
-
label: string;
|
|
37
|
-
value: string;
|
|
38
|
-
isDisabled?: boolean;
|
|
39
|
-
isCreatable?: boolean;
|
|
40
|
-
styles?: TStyles;
|
|
41
|
-
containerClassName?: string;
|
|
42
|
-
};
|
|
43
|
-
export interface ICustomSelectProps extends IFontFamilyProps {
|
|
44
|
-
isLoading?: boolean;
|
|
45
|
-
isSearchable?: boolean;
|
|
46
|
-
isCreatable?: boolean;
|
|
47
|
-
isDisabled?: boolean;
|
|
48
|
-
isOptionsWithTooltip?: boolean;
|
|
49
|
-
isMenuAutoWidth?: boolean;
|
|
50
|
-
width?: IntRange<1, 101>;
|
|
51
|
-
menuListMaxHeight?: number;
|
|
52
|
-
containerClassName?: string;
|
|
53
|
-
containerPadding?: string;
|
|
54
|
-
containerStyles?: TStyles;
|
|
55
|
-
title?: string;
|
|
56
|
-
placeholder: string;
|
|
57
|
-
hint?: string;
|
|
58
|
-
noOptionsMessage?: string;
|
|
59
|
-
noOptionsMessageClassName?: string;
|
|
60
|
-
error?: string;
|
|
61
|
-
menuPosition?: 'bottom' | 'auto' | 'top';
|
|
62
|
-
menuLocation?: 'absolute' | 'fixed';
|
|
63
|
-
defaultValue?: TCustomSelectOption;
|
|
64
|
-
options: TCustomSelectOption[];
|
|
65
|
-
onChange: (option: TCustomSelectOption) => void;
|
|
66
|
-
onDisabledOptionClick?: () => void;
|
|
67
|
-
onMenuOpen?: () => void;
|
|
68
|
-
}
|
|
69
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ICustomSelectProfilesProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const CustomSelectProfiles: ({ options, defaultValue, placeholder, onChange, width }: ICustomSelectProfilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default CustomSelectProfiles;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __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
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import Select, { components } from 'react-select';
|
|
25
|
-
import Avatar from '../Avatar';
|
|
26
|
-
import { AVATAR_SIZES } from '../Avatar/types';
|
|
27
|
-
import '../../styles/styles.scss';
|
|
28
|
-
var Control = function (_a) {
|
|
29
|
-
var _b, _c, _d;
|
|
30
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
|
31
|
-
return (_jsxs(components.Control, __assign({}, props, { children: [((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.value) && (_jsx("div", __assign({ className: "smartapp-custom-select-profiles__control" }, { children: _jsx("span", { children: _jsx(Avatar, { size: AVATAR_SIZES.size_32, username: (_d = (_c = props === null || props === void 0 ? void 0 : props.selectProps) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.username }) }) }))), children] })));
|
|
32
|
-
};
|
|
33
|
-
var Option = function (_a) {
|
|
34
|
-
var _b, _c, _d;
|
|
35
|
-
var props = __rest(_a, []);
|
|
36
|
-
return (_jsx(components.Option, __assign({}, props, { children: _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option" }, { children: [_jsx("div", __assign({ className: "smartapp-custom-select-profiles__option--avatar" }, { children: _jsx(Avatar, { size: AVATAR_SIZES.size_32, username: (_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.username }) })), _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option--info" }, { children: [_jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__title" }, { children: [(_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.username, " "] })), _jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__email" }, { children: [(_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.email, " "] }))] }))] })) })));
|
|
37
|
-
};
|
|
38
|
-
var DropdownIndicator = function (props) { return _jsx(components.DropdownIndicator, __assign({}, props)); };
|
|
39
|
-
var IndicatorSeparator = function () { return null; };
|
|
40
|
-
var CustomSelectProfiles = function (_a) {
|
|
41
|
-
var options = _a.options, defaultValue = _a.defaultValue, placeholder = _a.placeholder, onChange = _a.onChange, _b = _a.width, width = _b === void 0 ? 100 : _b;
|
|
42
|
-
var customStyles = {
|
|
43
|
-
option: function (provided, state) { return (__assign(__assign({}, provided), { cursor: 'pointer', color: '#000000', background: state.isSelected ? 'rgba(71, 153, 227, 0.1)' : '#ffffff', display: 'flex', textOverflow: 'ellipsis', width: "".concat(width, "%"), padding: '10px 0', '&:focus': {
|
|
44
|
-
background: '#ffffff',
|
|
45
|
-
color: 'none',
|
|
46
|
-
}, '&:hover': {
|
|
47
|
-
background: 'rgba(71, 153, 227, 0.1)',
|
|
48
|
-
} })); },
|
|
49
|
-
control: function (provided) { return (__assign(__assign({}, provided), { width: "".concat(width, "%"), textOverflow: 'ellipsis', padding: '5px 0 5px 5px' })); },
|
|
50
|
-
};
|
|
51
|
-
return (_jsx("div", __assign({ className: "smartapp-custom-select-profiles" }, { children: _jsx(Select
|
|
52
|
-
/* @ts-ignore */
|
|
53
|
-
, {
|
|
54
|
-
/* @ts-ignore */
|
|
55
|
-
onChange: function (option) { return onChange(option); }, options: options, defaultValue: defaultValue, styles: customStyles, getOptionLabel: function (option) { return option.username; }, getOptionValue: function (option) { return option.email; }, placeholder: _jsx("div", __assign({ className: "smartapp-custom-select-profiles__placeholder" }, { children: placeholder })), components: { Option: Option, Control: Control, DropdownIndicator: DropdownIndicator, IndicatorSeparator: IndicatorSeparator } }) })));
|
|
56
|
-
};
|
|
57
|
-
export default CustomSelectProfiles;
|
|
58
|
-
//# sourceMappingURL=CustomSelectProfiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomSelectProfiles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/CustomSelectProfiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,MAAM,EA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Y,EAAE,YAAY,EAC1B,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,QAAQ,EAAf,CAAe,EAC3C,cAAc,EAAE,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,EAAZ,CAAY,EACxC,WAAW,EAAE,uBAAK,SAAS,EAAC,8CAA8C,gBAAE,WAAW,IAAO,EAC9F,UAAU,EAAE,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,iBAAiB,mBAAA,EAAE,kBAAkB,oBAAA,EAAE,GACtE,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './CustomSelectProfiles';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IntRange } from '../types';
|
|
2
|
-
export type TCustomSelectOptionProfiles = {
|
|
3
|
-
username: string;
|
|
4
|
-
email: string;
|
|
5
|
-
};
|
|
6
|
-
export interface ICustomSelectProfilesProps {
|
|
7
|
-
options: TCustomSelectOptionProfiles[];
|
|
8
|
-
onChange: (option: TCustomSelectOptionProfiles) => void;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
defaultValue?: TCustomSelectOptionProfiles;
|
|
11
|
-
width?: IntRange<1, 101>;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IDragAndDropProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const DragAndDrop: ({ placeholder, options, onDragEndFunction, onChangeIsCompletedOption, onChangeOption, onClickDeleteOption, width, checkboxColor, orderColor, deleteColor, }: IDragAndDropProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default DragAndDrop;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
15
|
-
import CheckBox from '../Checkbox';
|
|
16
|
-
import { generateColor } from '../../helpers';
|
|
17
|
-
import { COLORS } from '../../constants';
|
|
18
|
-
import { ReactComponent as DeleteIcon } from '../../assets/icons/close.svg';
|
|
19
|
-
import { ReactComponent as OrderIcon } from '../../assets/icons/order.svg';
|
|
20
|
-
import '../../styles/styles.scss';
|
|
21
|
-
var DragAndDrop = function (_a) {
|
|
22
|
-
var placeholder = _a.placeholder, options = _a.options, onDragEndFunction = _a.onDragEndFunction, onChangeIsCompletedOption = _a.onChangeIsCompletedOption, onChangeOption = _a.onChangeOption, onClickDeleteOption = _a.onClickDeleteOption, width = _a.width, checkboxColor = _a.checkboxColor, orderColor = _a.orderColor, deleteColor = _a.deleteColor;
|
|
23
|
-
var _b = useState(false), isOnDragStart = _b[0], setIsOnDragStart = _b[1];
|
|
24
|
-
var isCheckbox = function (option) { return (option === null || option === void 0 ? void 0 : option.isCompleted) !== undefined; };
|
|
25
|
-
var reorderOptions = function (_a) {
|
|
26
|
-
var options = _a.options, startIndex = _a.startIndex, endIndex = _a.endIndex;
|
|
27
|
-
var result = Array.from(options);
|
|
28
|
-
result.forEach(function (item, index) {
|
|
29
|
-
if (startIndex > endIndex && index < startIndex && index >= endIndex) {
|
|
30
|
-
item.orderId = item.orderId + 1;
|
|
31
|
-
}
|
|
32
|
-
else if (startIndex < endIndex && index > startIndex && index <= endIndex) {
|
|
33
|
-
item.orderId = item.orderId - 1;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var removed = result.splice(startIndex, 1)[0];
|
|
37
|
-
removed.orderId = endIndex + 1;
|
|
38
|
-
result.splice(endIndex, 0, removed);
|
|
39
|
-
return result;
|
|
40
|
-
};
|
|
41
|
-
var handleDragStart = function () {
|
|
42
|
-
if (!isOnDragStart) {
|
|
43
|
-
setIsOnDragStart(true);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var handleDragEnd = function (result) {
|
|
47
|
-
setIsOnDragStart(false);
|
|
48
|
-
if (!(result === null || result === void 0 ? void 0 : result.destination)) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
var newOptions = reorderOptions({ options: options, startIndex: result.source.index, endIndex: result.destination.index });
|
|
52
|
-
onDragEndFunction(newOptions);
|
|
53
|
-
};
|
|
54
|
-
return (_jsx("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-drag-drop" }, { children: _jsx(DragDropContext, __assign({ onDragStart: handleDragStart, onDragEnd: handleDragEnd }, { children: _jsx(Droppable, __assign({ droppableId: "droppable" }, { children: function (provided) { return (_jsx("div", __assign({}, provided.droppableProps, { ref: provided.innerRef, className: "smartapp-drag-drop__container" }, { children: options === null || options === void 0 ? void 0 : options.map(function (instanceOption, index) { return (_jsx(Draggable, __assign({ draggableId: instanceOption.id, index: index }, { children: function (provided) { return (_jsxs("div", __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps, { className: "smartapp-drag-drop__container--instance" }, { children: [_jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__info" }, { children: [isCheckbox(instanceOption) && onChangeIsCompletedOption && (_jsx(CheckBox, { id: instanceOption.id, isChecked: instanceOption.isCompleted, checkedColor: checkboxColor, onChange: function () { return onChangeIsCompletedOption(instanceOption); } })), onChangeOption ? (_jsx("input", { onChange: function (e) { return onChangeOption && onChangeOption(e, instanceOption); }, defaultValue: instanceOption.defaultValue, className: "smartapp-drag-drop__container--instance__info--name", type: "text", enterKeyHint: "enter", placeholder: placeholder }, instanceOption === null || instanceOption === void 0 ? void 0 : instanceOption.id)) : (_jsx("p", __assign({ className: "smartapp-drag-drop__container--instance__info--name" }, { children: instanceOption.defaultValue })))] })), _jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__icons" }, { children: [_jsx(OrderIcon, { style: { color: generateColor(orderColor, COLORS.gray) } }), onClickDeleteOption && (_jsx(DeleteIcon, { className: "cp", style: { color: generateColor(deleteColor, COLORS.blue) }, onClick: function () { return onClickDeleteOption(instanceOption); } }))] }))] }))); } }), instanceOption.id)); }) }))); } })) })) })));
|
|
55
|
-
};
|
|
56
|
-
export default DragAndDrop;
|
|
57
|
-
//# sourceMappingURL=DragAndDrop.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/DragAndDrop.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,EAAE,cAAc,IAA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D,CA6ChD,CAAC,IACE,CACP,EAjDc,CAiDd,IACS,IACI,IACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DragAndDrop';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IntRange } from '../types';
|
|
2
|
-
export type TReorderOptions = {
|
|
3
|
-
options: TDragAndDropOption[];
|
|
4
|
-
startIndex: number;
|
|
5
|
-
endIndex: number;
|
|
6
|
-
};
|
|
7
|
-
export type TDragAndDropOption = {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultValue: string;
|
|
10
|
-
isCompleted?: boolean;
|
|
11
|
-
orderId: number;
|
|
12
|
-
};
|
|
13
|
-
export interface IDragAndDropProps {
|
|
14
|
-
placeholder: string;
|
|
15
|
-
options: TDragAndDropOption[];
|
|
16
|
-
onDragEndFunction: (result: any) => void;
|
|
17
|
-
onChangeIsCompletedOption?: (instanceOption: TDragAndDropOption) => void;
|
|
18
|
-
onChangeOption?: (e: any, instanceOption: TDragAndDropOption) => void;
|
|
19
|
-
onClickDeleteOption?: (instanceOption: TDragAndDropOption) => void;
|
|
20
|
-
width?: IntRange<1, 101>;
|
|
21
|
-
checkboxColor?: string;
|
|
22
|
-
orderColor?: string;
|
|
23
|
-
deleteColor?: string;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IDraggablePopup } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const DraggablePopup: ({ fontFamily, draggableZoneRef, popupContent, isPopupOpen, handleClose, popupCoords, title, bottomContent, dropZonePadding, offsetScrollY, handleChangeCoords, offsetPopupByClick, maxPopupHeight, contextMenuProps, popupClassName, isClosableOutside, maxPopupWidth, isDisabled, additionalPopup, handleClickOutside, titleStyles, isResetPaddingBottom, titleIcons, titleClassName, contentId, }: IDraggablePopup) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
export default DraggablePopup;
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useEffect, useRef, useState } from 'react';
|
|
14
|
-
import Draggable from 'react-draggable';
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
import Modal from '../Modal';
|
|
17
|
-
import { DRAGGABLE_KEY, EVENT_LISTENER_TYPES } from '../../constants';
|
|
18
|
-
import '../../styles/styles.scss';
|
|
19
|
-
var DEFAULT_DRAGGABLE_PADDING = {
|
|
20
|
-
top: 20,
|
|
21
|
-
bottom: 20,
|
|
22
|
-
right: 20,
|
|
23
|
-
left: 20,
|
|
24
|
-
};
|
|
25
|
-
var OFFSET_POPUP_X_BY_CLICK = 30;
|
|
26
|
-
var OFFSET_POPUP_Y_BY_CLICK = 10;
|
|
27
|
-
var DEFAULT_POPUP_POSITION = { x: 40, y: 40 };
|
|
28
|
-
var CONTEXT_MENU_OFFSET = 40;
|
|
29
|
-
var ADDITIONAL_CONTEXT_MENU_OFFSET_X = 60;
|
|
30
|
-
var ADDITIONAL_CONTEXT_MENU_OFFSET_Y = 40;
|
|
31
|
-
var calculateNewX = function (_a) {
|
|
32
|
-
var currentX = _a.currentX, leftPadding = _a.leftPadding, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth;
|
|
33
|
-
var maxPointX = zoneWidth - popupWidth - rightPadding;
|
|
34
|
-
if (currentX < leftPadding)
|
|
35
|
-
return leftPadding;
|
|
36
|
-
if (currentX > maxPointX)
|
|
37
|
-
return maxPointX;
|
|
38
|
-
return currentX;
|
|
39
|
-
};
|
|
40
|
-
var calculateNewY = function (_a) {
|
|
41
|
-
var currentY = _a.currentY, topPadding = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight;
|
|
42
|
-
var maxPointY = zoneHeight - popupHeight - bottomPadding;
|
|
43
|
-
if (currentY < topPadding)
|
|
44
|
-
return topPadding;
|
|
45
|
-
if (currentY > maxPointY)
|
|
46
|
-
return maxPointY;
|
|
47
|
-
return currentY;
|
|
48
|
-
};
|
|
49
|
-
var calculateNewAdditionalPopupX = function (_a) {
|
|
50
|
-
var currentX = _a.currentX, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth, _b = _a.additionalPopupWidth, additionalPopupWidth = _b === void 0 ? 0 : _b;
|
|
51
|
-
var padding = 4;
|
|
52
|
-
var rightOpenedPointX = currentX + popupWidth + padding;
|
|
53
|
-
var leftOpenedPointX = currentX - additionalPopupWidth - padding;
|
|
54
|
-
var maxPointX = zoneWidth - rightOpenedPointX - additionalPopupWidth;
|
|
55
|
-
return maxPointX >= rightPadding ? rightOpenedPointX : leftOpenedPointX;
|
|
56
|
-
};
|
|
57
|
-
var calculateNewAdditionalPopupY = function (_a) {
|
|
58
|
-
var currentY = _a.currentY, minPointedY = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight, _b = _a.additionalPopupHeight, additionalPopupHeight = _b === void 0 ? 0 : _b;
|
|
59
|
-
var middleOpenedPointY = currentY + popupHeight / 2 - additionalPopupHeight / 2;
|
|
60
|
-
var bottomOpenedPointY = currentY + popupHeight - additionalPopupHeight;
|
|
61
|
-
var maxPointedY = zoneHeight - bottomPadding;
|
|
62
|
-
if (middleOpenedPointY + additionalPopupHeight <= maxPointedY && middleOpenedPointY >= minPointedY)
|
|
63
|
-
return middleOpenedPointY;
|
|
64
|
-
if (currentY + additionalPopupHeight <= maxPointedY)
|
|
65
|
-
return currentY;
|
|
66
|
-
if (bottomOpenedPointY >= minPointedY)
|
|
67
|
-
return bottomOpenedPointY;
|
|
68
|
-
return minPointedY;
|
|
69
|
-
};
|
|
70
|
-
var generateMaxWidth = function (maxPopupWidth) { return ({ maxWidth: maxPopupWidth ? "".concat(maxPopupWidth, "px") : 'auto' }); };
|
|
71
|
-
var renderAdditionalPopup = function (_a) {
|
|
72
|
-
var additionalPopup = _a.additionalPopup, handleCloseModal = _a.handleCloseModal, additionalPopupRef = _a.additionalPopupRef, additionalPopupPosition = _a.additionalPopupPosition, additionalContextMenuProps = _a.additionalContextMenuProps;
|
|
73
|
-
if (!additionalPopup)
|
|
74
|
-
return null;
|
|
75
|
-
var _b = additionalPopupPosition || {}, _c = _b.x, x = _c === void 0 ? 0 : _c, _d = _b.y, y = _d === void 0 ? 0 : _d;
|
|
76
|
-
var fontFamily = additionalPopup.fontFamily, popupContent = additionalPopup.popupContent, maxPopupHeight = additionalPopup.maxPopupHeight, maxPopupWidth = additionalPopup.maxPopupWidth, popupClassName = additionalPopup.popupClassName, bottomContent = additionalPopup.bottomContent, title = additionalPopup.title, titleStyles = additionalPopup.titleStyles, isResetPaddingBottom = additionalPopup.isResetPaddingBottom, titleIcons = additionalPopup.titleIcons, titleClassName = additionalPopup.titleClassName, contentId = additionalPopup.contentId;
|
|
77
|
-
var maxWidth = generateMaxWidth(maxPopupWidth);
|
|
78
|
-
return (_jsx("div", __assign({ ref: additionalPopupRef, className: classNames("smartapp-draggable-popup__popup smartapp-draggable-popup__additional-popup ".concat(popupClassName), {
|
|
79
|
-
'invisible-content': !additionalPopupPosition,
|
|
80
|
-
}), style: __assign(__assign({}, maxWidth), { top: y, left: x }) }, { children: _jsx(Modal, { isModalOpen: true, fontFamily: fontFamily, content: popupContent, handleCloseModal: handleCloseModal, modalMaxHeight: maxPopupHeight, styles: maxWidth, title: title, titleStyles: titleStyles, className: "smartapp-draggable-popup__modal", isPopup: true, bottomContent: bottomContent, contextMenuProps: additionalContextMenuProps ? __assign(__assign({}, additionalContextMenuProps), { fontFamily: additionalContextMenuProps.fontFamily || fontFamily }) : undefined, titleClassName: titleClassName, isResetPaddingBottom: isResetPaddingBottom, titleIcons: titleIcons, contentId: contentId }) })));
|
|
81
|
-
};
|
|
82
|
-
var handleContextMenu = function (_a) {
|
|
83
|
-
var currentContextMenuProps = _a.currentContextMenuProps, setCurrentContextMenuProps = _a.setCurrentContextMenuProps, x = _a.x, y = _a.y, _b = _a.xOffset, xOffset = _b === void 0 ? 0 : _b, _c = _a.yOffset, yOffset = _c === void 0 ? 0 : _c, contextMenuProps = _a.contextMenuProps;
|
|
84
|
-
if (contextMenuProps) {
|
|
85
|
-
var _d = contextMenuProps.menuWidth, menuWidth = _d === void 0 ? 0 : _d;
|
|
86
|
-
return setCurrentContextMenuProps(__assign(__assign({}, contextMenuProps), { position: { x: x + xOffset - menuWidth, y: y + yOffset } }));
|
|
87
|
-
}
|
|
88
|
-
return currentContextMenuProps && setCurrentContextMenuProps(null);
|
|
89
|
-
};
|
|
90
|
-
var DraggablePopup = function (_a) {
|
|
91
|
-
var fontFamily = _a.fontFamily, draggableZoneRef = _a.draggableZoneRef, popupContent = _a.popupContent, isPopupOpen = _a.isPopupOpen, handleClose = _a.handleClose, popupCoords = _a.popupCoords, _b = _a.title, title = _b === void 0 ? '' : _b, bottomContent = _a.bottomContent, _c = _a.dropZonePadding, dropZonePadding = _c === void 0 ? DEFAULT_DRAGGABLE_PADDING : _c, _d = _a.offsetScrollY, offsetScrollY = _d === void 0 ? 0 : _d, handleChangeCoords = _a.handleChangeCoords, _e = _a.offsetPopupByClick, offsetPopupByClick = _e === void 0 ? { offsetPopupXByClick: OFFSET_POPUP_X_BY_CLICK, offsetPopupYByClick: OFFSET_POPUP_Y_BY_CLICK } : _e, maxPopupHeight = _a.maxPopupHeight, contextMenuProps = _a.contextMenuProps, _f = _a.popupClassName, popupClassName = _f === void 0 ? '' : _f, _g = _a.isClosableOutside, isClosableOutside = _g === void 0 ? true : _g, maxPopupWidth = _a.maxPopupWidth, _h = _a.isDisabled, isDisabled = _h === void 0 ? false : _h, additionalPopup = _a.additionalPopup, handleClickOutside = _a.handleClickOutside, titleStyles = _a.titleStyles, isResetPaddingBottom = _a.isResetPaddingBottom, titleIcons = _a.titleIcons, titleClassName = _a.titleClassName, contentId = _a.contentId;
|
|
92
|
-
var _j = useState(null), draggableZoneInfo = _j[0], setDraggableZoneInfo = _j[1];
|
|
93
|
-
var _k = useState(null), popupPosition = _k[0], setPopupPosition = _k[1];
|
|
94
|
-
var _l = useState(false), wasDraggable = _l[0], setWasDraggable = _l[1];
|
|
95
|
-
var _m = useState(null), currentContextMenuProps = _m[0], setCurrentContextMenuProps = _m[1];
|
|
96
|
-
var _o = useState(false), isMousedownInside = _o[0], setIsMousedownInside = _o[1];
|
|
97
|
-
var _p = useState(null), additionalPopupPosition = _p[0], setAdditionalPopupPosition = _p[1];
|
|
98
|
-
var _q = useState(null), additionalContextMenuProps = _q[0], setAdditionalContextMenuProps = _q[1];
|
|
99
|
-
var _r = draggableZoneInfo || {}, width = _r.width, _s = _r.height, height = _s === void 0 ? 0 : _s, top = _r.top, bottom = _r.bottom, right = _r.right, left = _r.left;
|
|
100
|
-
var popupRef = useRef(null);
|
|
101
|
-
var additionalPopupRef = useRef(null);
|
|
102
|
-
useEffect(function () {
|
|
103
|
-
var topPadding = dropZonePadding.top, bottomPadding = dropZonePadding.bottom, leftPadding = dropZonePadding.left, rightPadding = dropZonePadding.right;
|
|
104
|
-
var draggableZoneRefCurrent = draggableZoneRef.current;
|
|
105
|
-
var popupRefCurrent = popupRef.current;
|
|
106
|
-
var additionalPopupRefCurrent = additionalPopupRef.current;
|
|
107
|
-
var updatePosition = function () {
|
|
108
|
-
if (!draggableZoneRefCurrent || !popupRefCurrent || !popupCoords)
|
|
109
|
-
return;
|
|
110
|
-
var _a = draggableZoneRefCurrent.getBoundingClientRect(), zoneWidth = _a.width, zoneHeight = _a.height, topOffsetByPage = _a.top, leftOffsetByPage = _a.left;
|
|
111
|
-
var _b = popupRefCurrent.getBoundingClientRect(), popupWidth = _b.width, popupHeight = _b.height;
|
|
112
|
-
var _c = (additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.getBoundingClientRect()) || {}, _d = _c.width, additionalPopupWidth = _d === void 0 ? 0 : _d, _e = _c.height, additionalPopupHeight = _e === void 0 ? 0 : _e;
|
|
113
|
-
var x = popupCoords.x, y = popupCoords.y;
|
|
114
|
-
var offsetPopupXByClick = offsetPopupByClick.offsetPopupXByClick, offsetPopupYByClick = offsetPopupByClick.offsetPopupYByClick;
|
|
115
|
-
var currentOffsetY = wasDraggable ? 0 : offsetPopupYByClick - topOffsetByPage;
|
|
116
|
-
var currentOffsetX = wasDraggable ? 0 : offsetPopupXByClick - leftOffsetByPage;
|
|
117
|
-
var currentZoneHeight = zoneHeight + offsetScrollY;
|
|
118
|
-
var maxHeight = popupHeight;
|
|
119
|
-
var newX = calculateNewX({ currentX: x + currentOffsetX, leftPadding: leftPadding, rightPadding: rightPadding, zoneWidth: zoneWidth, popupWidth: popupWidth });
|
|
120
|
-
var newY = calculateNewY({ currentY: y + currentOffsetY, topPadding: topPadding, bottomPadding: bottomPadding, zoneHeight: zoneHeight, popupHeight: popupHeight });
|
|
121
|
-
setPopupPosition({ x: newX, y: newY });
|
|
122
|
-
if (additionalPopupRefCurrent) {
|
|
123
|
-
var contextMenuProps_1 = (additionalPopup || {}).contextMenuProps;
|
|
124
|
-
var newAdditionalPopupX = calculateNewAdditionalPopupX({
|
|
125
|
-
currentX: newX,
|
|
126
|
-
leftPadding: leftPadding,
|
|
127
|
-
rightPadding: rightPadding,
|
|
128
|
-
zoneWidth: zoneWidth,
|
|
129
|
-
popupWidth: popupWidth,
|
|
130
|
-
additionalPopupWidth: additionalPopupWidth,
|
|
131
|
-
});
|
|
132
|
-
var newAdditionalPopupY = calculateNewAdditionalPopupY({
|
|
133
|
-
currentY: newY,
|
|
134
|
-
topPadding: 0,
|
|
135
|
-
bottomPadding: bottomPadding,
|
|
136
|
-
zoneHeight: zoneHeight,
|
|
137
|
-
popupHeight: popupHeight,
|
|
138
|
-
additionalPopupHeight: additionalPopupHeight,
|
|
139
|
-
});
|
|
140
|
-
handleContextMenu({
|
|
141
|
-
contextMenuProps: contextMenuProps_1,
|
|
142
|
-
currentContextMenuProps: additionalContextMenuProps,
|
|
143
|
-
setCurrentContextMenuProps: setAdditionalContextMenuProps,
|
|
144
|
-
x: newAdditionalPopupX,
|
|
145
|
-
y: newAdditionalPopupY,
|
|
146
|
-
yOffset: topOffsetByPage + ADDITIONAL_CONTEXT_MENU_OFFSET_Y,
|
|
147
|
-
xOffset: additionalPopupWidth + ADDITIONAL_CONTEXT_MENU_OFFSET_X + popupWidth,
|
|
148
|
-
});
|
|
149
|
-
return setAdditionalPopupPosition({ x: newAdditionalPopupX, y: newAdditionalPopupY });
|
|
150
|
-
}
|
|
151
|
-
handleContextMenu({
|
|
152
|
-
contextMenuProps: contextMenuProps,
|
|
153
|
-
currentContextMenuProps: currentContextMenuProps,
|
|
154
|
-
setCurrentContextMenuProps: setCurrentContextMenuProps,
|
|
155
|
-
x: popupWidth - CONTEXT_MENU_OFFSET,
|
|
156
|
-
y: CONTEXT_MENU_OFFSET,
|
|
157
|
-
});
|
|
158
|
-
setDraggableZoneInfo({
|
|
159
|
-
width: zoneWidth,
|
|
160
|
-
height: currentZoneHeight,
|
|
161
|
-
top: topPadding,
|
|
162
|
-
right: zoneWidth - popupWidth - rightPadding,
|
|
163
|
-
left: leftPadding,
|
|
164
|
-
bottom: zoneHeight - maxHeight - bottomPadding,
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
var resizeObserver = new ResizeObserver(updatePosition);
|
|
168
|
-
if (popupRefCurrent)
|
|
169
|
-
resizeObserver.observe(popupRefCurrent);
|
|
170
|
-
if (additionalPopupRefCurrent)
|
|
171
|
-
resizeObserver.observe(additionalPopupRefCurrent);
|
|
172
|
-
return function () {
|
|
173
|
-
resizeObserver.disconnect();
|
|
174
|
-
};
|
|
175
|
-
/* eslint-disable-next-line */
|
|
176
|
-
}, [isPopupOpen, draggableZoneRef, popupRef, popupCoords, dropZonePadding, offsetScrollY, wasDraggable, contextMenuProps, additionalPopup]);
|
|
177
|
-
useEffect(function () {
|
|
178
|
-
var popupRefCurrent = popupRef.current;
|
|
179
|
-
var additionalPopupRefCurrent = additionalPopupRef.current;
|
|
180
|
-
var checkIfClickedOutside = function (e) {
|
|
181
|
-
var target = e.target;
|
|
182
|
-
if (isPopupOpen && isClosableOutside && popupRefCurrent && !popupRefCurrent.contains(target)) {
|
|
183
|
-
if (!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target)) || !additionalPopupRefCurrent) {
|
|
184
|
-
handleClickOutside ? handleClickOutside() : handleClose();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
var checkIfMousedownInside = function (e) {
|
|
189
|
-
var target = e.target;
|
|
190
|
-
var isInsidePopup = !!(popupRefCurrent === null || popupRefCurrent === void 0 ? void 0 : popupRefCurrent.contains(target));
|
|
191
|
-
var isInsideAdditionalPopup = !!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target));
|
|
192
|
-
setIsMousedownInside(isInsidePopup || isInsideAdditionalPopup);
|
|
193
|
-
};
|
|
194
|
-
var handleClick = function (e) { return !isMousedownInside && checkIfClickedOutside(e); };
|
|
195
|
-
document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
|
|
196
|
-
document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
|
|
197
|
-
return function () {
|
|
198
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
|
|
199
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
|
|
200
|
-
};
|
|
201
|
-
}, [isPopupOpen, handleClose, isClosableOutside, handleClickOutside, isMousedownInside]);
|
|
202
|
-
if (!isPopupOpen || !draggableZoneRef)
|
|
203
|
-
return null;
|
|
204
|
-
var handleDragStop = function (_a) {
|
|
205
|
-
var x = _a.x, y = _a.y;
|
|
206
|
-
!wasDraggable && setWasDraggable(true);
|
|
207
|
-
handleChangeCoords({ x: x, y: y });
|
|
208
|
-
setPopupPosition({ x: x, y: y });
|
|
209
|
-
};
|
|
210
|
-
var maxWidth = generateMaxWidth(maxPopupWidth);
|
|
211
|
-
var isDisabledDraggable = isDisabled || !!additionalPopup;
|
|
212
|
-
return (_jsxs("div", __assign({ style: { width: width, height: height }, className: "smartapp-draggable-popup" }, { children: [_jsx(Draggable, __assign({ handle: ".".concat(DRAGGABLE_KEY), onStop: function (_, data) { return handleDragStop(data); }, position: popupPosition || DEFAULT_POPUP_POSITION, bounds: { top: top, right: right, left: left, bottom: bottom }, disabled: isDisabledDraggable }, { children: _jsx("div", __assign({ className: classNames("smartapp-draggable-popup__popup-container", { 'invisible-content': !popupPosition }) }, { children: _jsx("div", __assign({ className: "smartapp-draggable-popup__popup ".concat(popupClassName), ref: popupRef, style: maxWidth }, { children: _jsx(Modal, { contentId: contentId, fontFamily: fontFamily, isModalOpen: isPopupOpen, content: popupContent, isPopup: true, handleCloseModal: handleClose, title: title, bottomContent: bottomContent, className: "smartapp-draggable-popup__modal", modalMaxHeight: maxPopupHeight, titleStyles: titleStyles, contextMenuProps: currentContextMenuProps || undefined, titleClassName: titleClassName, styles: maxWidth, isResetPaddingBottom: isResetPaddingBottom, titleIcons: titleIcons }) })) })) })), additionalPopup &&
|
|
213
|
-
renderAdditionalPopup({
|
|
214
|
-
additionalPopup: __assign(__assign({}, additionalPopup), { fontFamily: additionalPopup.fontFamily || fontFamily }),
|
|
215
|
-
handleCloseModal: handleClose,
|
|
216
|
-
additionalPopupRef: additionalPopupRef,
|
|
217
|
-
additionalPopupPosition: additionalPopupPosition,
|
|
218
|
-
additionalContextMenuProps: additionalContextMenuProps,
|
|
219
|
-
})] })));
|
|
220
|
-
};
|
|
221
|
-
export default DraggablePopup;
|
|
222
|
-
//# sourceMappingURL=DraggablePopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraggablePopup.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/DraggablePopup.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,SAA4B,MAAM,iBAAiB,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAWrE,OAAO,0BAA0B,CAAA;AAEjC,IAAM,yBAAyB,GAAG;IAChC,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;CACT,CAAA;AAED,IAAM,uBAAuB,GAAG,EAAE,CAAA;AAClC,IAAM,uBAAuB,GAAG,EAAE,CAAA;AAClC,IAAM,sBAAsB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAA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QACP,gBAAgB,EAAE,WAAW,EAC7B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAC,iCAAiC,EAC3C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,uBAAuB,IAAI,SAAS,EACtD,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,QAAQ,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,UAAU,GACtB,IACE,IACF,IACI,EACX,eAAe;gBACd,qBAAqB,CAAC;oBACpB,eAAe,wBAAO,eAAe,KAAE,UAAU,EAAE,eAAe,CAAC,UAAU,IAAI,UAAU,GAAE;oBAC7F,gBAAgB,EAAE,WAAW;oBAC7B,kBAAkB,oBAAA;oBAClB,uBAAuB,yBAAA;oBACvB,0BAA0B,4BAAA;iBAC3B,CAAC,KACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DraggablePopup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
|