@expressms/smartapp-ui 2.5.8 → 2.5.9
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/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/button-loader.svg +3 -0
- package/build/main/assets/icons/cancel-cross.svg +3 -0
- package/build/main/assets/icons/check-mark.svg +4 -0
- package/build/main/assets/icons/clear.svg +3 -0
- package/build/main/assets/icons/close-stories.svg +4 -0
- package/build/main/assets/icons/close.svg +10 -0
- package/build/main/assets/icons/contact-info.svg +12 -0
- package/build/main/assets/icons/corporate-user.svg +10 -0
- package/build/main/assets/icons/crown.svg +5 -0
- package/build/main/assets/icons/delete-chip.svg +3 -0
- package/build/main/assets/icons/download.svg +4 -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 +10 -0
- package/build/main/assets/icons/eye.svg +10 -0
- package/build/main/assets/icons/file.svg +3 -0
- package/build/main/assets/icons/info.svg +5 -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/my-contact-user.svg +10 -0
- package/build/main/assets/icons/notification-close.svg +3 -0
- package/build/main/assets/icons/notification-error.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/notification-warning.svg +5 -0
- package/build/main/assets/icons/order.svg +6 -0
- package/build/main/assets/icons/plus.svg +4 -0
- package/build/main/assets/icons/refresh.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/storybook/index.d.ts +12 -0
- package/build/main/assets/storybook/index.js +13 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +136 -0
- package/build/main/constants/constants.js +152 -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 +28 -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 +20 -0
- package/build/main/helpers/index.js +80 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/index.d.ts +3 -0
- package/build/main/index.js +4 -0
- package/build/main/index.js.map +1 -0
- package/build/main/styles/index.d.ts +1 -0
- package/build/main/styles/index.js +2 -0
- package/build/main/styles/index.js.map +1 -0
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +14 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js +56 -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 +20 -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 +60 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
- package/build/main//321/201omponents/AttachedFile/index.js +2 -0
- package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
- package/build/main//321/201omponents/AttachedFile/types.js +2 -0
- package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
- package/build/main//321/201omponents/Avatar/Avatar.js +115 -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 +36 -0
- package/build/main//321/201omponents/Avatar/types.js +9 -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 +57 -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 +23 -0
- package/build/main//321/201omponents/Button/types.js +11 -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 +54 -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 +8 -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 +48 -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 +14 -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 +3 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +39 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +3 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +30 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +3 -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 +2 -0
- package/build/main//321/201omponents/Charts/colors.js +3 -0
- package/build/main//321/201omponents/Charts/colors.js.map +1 -0
- package/build/main//321/201omponents/Charts/constants.d.ts +50 -0
- package/build/main//321/201omponents/Charts/constants.js +36 -0
- package/build/main//321/201omponents/Charts/constants.js.map +1 -0
- package/build/main//321/201omponents/Charts/helpers.d.ts +68 -0
- package/build/main//321/201omponents/Charts/helpers.js +91 -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 +51 -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/Checkbox/Checkbox.d.ts +4 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +36 -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 +9 -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 +40 -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 +10 -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 +44 -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 +16 -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 +55 -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 +24 -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 +4 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +172 -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 +61 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +54 -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 +57 -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/Error/Error.d.ts +4 -0
- package/build/main//321/201omponents/Error/Error.js +22 -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 +7 -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/Header/Header.d.ts +5 -0
- package/build/main//321/201omponents/Header/Header.js +124 -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 +44 -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 +210 -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 +195 -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 +38 -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 +40 -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 +12 -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 +53 -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 +15 -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 +178 -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 +39 -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 +4 -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 +36 -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 +9 -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 +4 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +50 -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 +9 -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 +66 -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 +16 -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 +281 -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 +54 -0
- package/build/main//321/201omponents/Stories/types.js +11 -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 +7 -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 +96 -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 +10 -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 +38 -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 +9 -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 +70 -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 +3 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +76 -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 +40 -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 +55 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +396 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +90 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +93 -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 +72 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +189 -0
- package/build/main//321/201omponents/UserDropdown/types.js +2 -0
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
- package/build/main//321/201omponents/index.d.ts +32 -0
- package/build/main//321/201omponents/index.js +33 -0
- package/build/main//321/201omponents/index.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,54 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useLayoutEffect, useState } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { isBlobUrl, tryToLoadImageFromCache, tryToSaveImageToCache } from './helpers';
|
|
5
|
+
import '../../styles/styles.scss';
|
|
6
|
+
var IMAGE_LOADING_STATE;
|
|
7
|
+
(function (IMAGE_LOADING_STATE) {
|
|
8
|
+
IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["pending"] = 0] = "pending";
|
|
9
|
+
IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["success"] = 1] = "success";
|
|
10
|
+
IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["error"] = -1] = "error";
|
|
11
|
+
})(IMAGE_LOADING_STATE || (IMAGE_LOADING_STATE = {}));
|
|
12
|
+
var CachedImage = function (_a) {
|
|
13
|
+
var src = _a.src, alt = _a.alt, className = _a.className, width = _a.width, height = _a.height, borderRadius = _a.borderRadius;
|
|
14
|
+
var _b = useState(''), url = _b[0], setUrl = _b[1];
|
|
15
|
+
var _c = useState(IMAGE_LOADING_STATE.pending), loadingState = _c[0], setLoadingState = _c[1];
|
|
16
|
+
useLayoutEffect(function () {
|
|
17
|
+
setUrl(src);
|
|
18
|
+
}, [src]);
|
|
19
|
+
// Очистка URL объекта после ошибки загрузки изображения
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
if (loadingState === IMAGE_LOADING_STATE.error && isBlobUrl(url))
|
|
22
|
+
URL.revokeObjectURL(url);
|
|
23
|
+
return function () { return void 0; };
|
|
24
|
+
}, [loadingState, url]);
|
|
25
|
+
var isImageLoadingStatePending = function () { return loadingState === IMAGE_LOADING_STATE.pending; };
|
|
26
|
+
// Обработчик успешной загрузки изображения
|
|
27
|
+
var handleOnLoad = function () {
|
|
28
|
+
if (!isImageLoadingStatePending())
|
|
29
|
+
return;
|
|
30
|
+
setLoadingState(IMAGE_LOADING_STATE.success);
|
|
31
|
+
tryToSaveImageToCache(src);
|
|
32
|
+
};
|
|
33
|
+
// Обработчик ошибки загрузки изображения
|
|
34
|
+
var handleOnError = function () {
|
|
35
|
+
if (!isImageLoadingStatePending())
|
|
36
|
+
return;
|
|
37
|
+
setLoadingState(IMAGE_LOADING_STATE.error);
|
|
38
|
+
tryToLoadImageFromCache(src).then(function (blobUrl) { return blobUrl && setUrl(blobUrl); });
|
|
39
|
+
};
|
|
40
|
+
var generateImageStyles = function () {
|
|
41
|
+
var widthValue = width ? "".concat(width, "px") : '100%';
|
|
42
|
+
var heightValue = height ? "".concat(height, "px") : '100%';
|
|
43
|
+
return {
|
|
44
|
+
minWidth: widthValue,
|
|
45
|
+
minHeight: heightValue,
|
|
46
|
+
width: widthValue,
|
|
47
|
+
height: heightValue,
|
|
48
|
+
borderRadius: "".concat(borderRadius, "px"),
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
return (_jsx("img", { className: classNames('smartapp-cached-image', className), style: generateImageStyles(), src: url, alt: alt, onLoad: handleOnLoad, onError: handleOnError }));
|
|
52
|
+
};
|
|
53
|
+
export default CachedImage;
|
|
54
|
+
//# sourceMappingURL=CachedImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CachedImage.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/CachedImage.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAA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Aa,GAAG;QACpB,IAAI,CAAC,0BAA0B,EAAE;YAAE,OAAM;QAEzC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAA;QAC1C,uBAAuB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,EAA1B,CAA0B,CAAC,CAAA;IAC5E,CAAC,CAAA;IAED,IAAM,mBAAmB,GAAG;QAC1B,IAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,UAAG,KAAK,OAAI,CAAC,CAAC,CAAC,MAAM,CAAA;QAChD,IAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,MAAM,OAAI,CAAC,CAAC,CAAC,MAAM,CAAA;QAEnD,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,WAAW;YACnB,YAAY,EAAE,UAAG,YAAY,OAAI;SAClC,CAAA;IACH,CAAC,CAAA;IAED,OAAO,CACL,cACE,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,SAAS,CAAC,EACzD,KAAK,EAAE,mBAAmB,EAAE,EAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,GACtB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var SMARTAPP_CACHE_STORAGE = 'smartapp-cache-storage';
|
|
2
|
+
var NETWORK_RESPONSE_ERROR = 'Network response was not ok';
|
|
3
|
+
var FAILED_TO_SAVE_IMAGE_TO_CACHE = 'Failed to save image to cache';
|
|
4
|
+
// Загрузка изображения из кэша
|
|
5
|
+
export var tryToLoadImageFromCache = function (url) {
|
|
6
|
+
return caches
|
|
7
|
+
.open(SMARTAPP_CACHE_STORAGE)
|
|
8
|
+
.then(function (cache) { return cache.match(url); })
|
|
9
|
+
.then(function (response) { return (response === null || response === void 0 ? void 0 : response.blob()) || null; })
|
|
10
|
+
.then(function (blob) { return (blob ? URL.createObjectURL(blob) : null); })
|
|
11
|
+
.catch(function () { return null; });
|
|
12
|
+
};
|
|
13
|
+
// Сохранение изображения в кэш
|
|
14
|
+
var saveImageToCache = function (url) {
|
|
15
|
+
return fetch(url, {
|
|
16
|
+
credentials: 'include',
|
|
17
|
+
})
|
|
18
|
+
.then(function (response) {
|
|
19
|
+
if (!response.ok)
|
|
20
|
+
throw new Error(NETWORK_RESPONSE_ERROR);
|
|
21
|
+
return caches.open(SMARTAPP_CACHE_STORAGE).then(function (cache) { return cache.put(url, response); });
|
|
22
|
+
})
|
|
23
|
+
.catch(function (error) { return console.error("".concat(FAILED_TO_SAVE_IMAGE_TO_CACHE, ":"), error); });
|
|
24
|
+
};
|
|
25
|
+
// Проверка наличия изображения в кэше и сохранение его при отсутствии
|
|
26
|
+
export var tryToSaveImageToCache = function (url) {
|
|
27
|
+
if (!url)
|
|
28
|
+
return Promise.resolve();
|
|
29
|
+
return caches
|
|
30
|
+
.open(SMARTAPP_CACHE_STORAGE)
|
|
31
|
+
.then(function (cache) { return cache.match(url); })
|
|
32
|
+
.then(function (response) {
|
|
33
|
+
if (!response)
|
|
34
|
+
return saveImageToCache(url);
|
|
35
|
+
return Promise.resolve();
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
// Функция для проверки, является ли URL объектом Blob
|
|
39
|
+
export var isBlobUrl = function (url) { return url.indexOf('blob:') === 0; };
|
|
40
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/helpers.ts"],"names":[],"mappings":"AAAA,IAAM,sBAAsB,GAAG,wBAAwB,CAAA;AACvD,IAAM,sBAAsB,GAAG,6BAA6B,CAAA;AAC5D,IAAM,6BA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GAAG,UAAC,GAAW;IAC/C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAElC,OAAO,MAAM;SACV,IAAI,CAAC,sBAAsB,CAAC;SAC5B,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC;SACjC,IAAI,CAAC,UAAC,QAAQ;QACb,IAAI,CAAC,QAAQ;YAAE,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAC3C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,sDAAsD;AACtD,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,GAAW,IAAK,OAAA,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CachedImage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ICalendarProps } from './types';
|
|
2
|
+
import '../../styles/styles.scss';
|
|
3
|
+
declare const CalendarDatepicker: ({ placeholder, initialCurrentDate, initialCurrentDateRange, minDate, onChangeCurrentDate, onChangeCurrentDateRange, calendarComponentClassName, calendarInputClassName, isRange, width, }: ICalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default CalendarDatepicker;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { useState } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import DatePicker, { registerLocale } from 'react-datepicker';
|
|
16
|
+
import ru from 'date-fns/locale/ru';
|
|
17
|
+
import en from 'date-fns/locale/en-US';
|
|
18
|
+
import '../../styles/styles.scss';
|
|
19
|
+
registerLocale('ru', ru);
|
|
20
|
+
registerLocale('en', en);
|
|
21
|
+
var CalendarDatepicker = function (_a) {
|
|
22
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? 'Введите дату' : _b, initialCurrentDate = _a.initialCurrentDate, initialCurrentDateRange = _a.initialCurrentDateRange, _c = _a.minDate, minDate = _c === void 0 ? null : _c, _d = _a.onChangeCurrentDate, onChangeCurrentDate = _d === void 0 ? function () { return undefined; } : _d, _e = _a.onChangeCurrentDateRange, onChangeCurrentDateRange = _e === void 0 ? function () { return undefined; } : _e, calendarComponentClassName = _a.calendarComponentClassName, calendarInputClassName = _a.calendarInputClassName, _f = _a.isRange, isRange = _f === void 0 ? false : _f, width = _a.width;
|
|
23
|
+
var _g = useState(initialCurrentDate ? initialCurrentDate : null), currentDate = _g[0], setCurrentDate = _g[1];
|
|
24
|
+
var _h = useState(initialCurrentDateRange ? initialCurrentDateRange : [null, null]), currentDateRange = _h[0], setCurrentDateRange = _h[1];
|
|
25
|
+
var startDate = currentDateRange[0], endDate = currentDateRange[1];
|
|
26
|
+
var onChangeDate = function (date) {
|
|
27
|
+
if (date) {
|
|
28
|
+
setCurrentDate(date);
|
|
29
|
+
onChangeCurrentDate(date);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var onChangeDateRange = function (period) {
|
|
33
|
+
setCurrentDateRange(period);
|
|
34
|
+
onChangeCurrentDateRange(period);
|
|
35
|
+
};
|
|
36
|
+
return (_jsx("div", __assign({ className: classNames({
|
|
37
|
+
'smartapp-calendar-component': !calendarInputClassName,
|
|
38
|
+
calendarInputClassName: calendarInputClassName,
|
|
39
|
+
}), style: { width: "".concat(width, "%") } }, { children: isRange ? (_jsx(DatePicker, { selectsRange: true, startDate: startDate, endDate: endDate, dateFormat: "dd.MM.yyyy", placeholderText: placeholder, locale: ru, className: classNames({
|
|
40
|
+
'smartapp-calendar-input': !calendarComponentClassName,
|
|
41
|
+
calendarComponentClassName: calendarComponentClassName,
|
|
42
|
+
}), onChange: function (period) { return onChangeDateRange(period); } })) : (_jsx(DatePicker, { selected: currentDate, dateFormat: "dd.MM.yyyy", locale: ru, placeholderText: placeholder, minDate: minDate, className: classNames({
|
|
43
|
+
'smartapp-calendar-input': !calendarComponentClassName,
|
|
44
|
+
calendarComponentClassName: calendarComponentClassName,
|
|
45
|
+
}), onChange: function (date) { return onChangeDate(date); } })) })));
|
|
46
|
+
};
|
|
47
|
+
export default CalendarDatepicker;
|
|
48
|
+
//# sourceMappingURL=Calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,UAAU,EAAE,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACnC,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEtC,OAAO,0BAA0B,CAAA;AAEjC,cAAc,CAAC,IAAI,EAAE,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BAA6B,EAAE,CAAC,sBAAsB;YACtD,sBAAsB,EAAE,sBAAsB;SAC/C,CAAC,EACF,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,gBAE5B,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,UAAU,IACT,YAAY,QACZ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAC,YAAY,EACvB,eAAe,EAAE,WAAW,EAC5B,MAAM,EAAE,EAAE,EACV,SAAS,EAAE,UAAU,CAAC;gBACpB,yBAAyB,EAAE,CAAC,0BAA0B;gBACtD,0BAA0B,EAAE,0BAA0B;aACvD,CAAC,EACF,QAAQ,EAAE,UAAC,MAAM,IAAK,OAAA,iBAAiB,CAAC,MAAM,CAAC,EAAzB,CAAyB,GAC/C,CACH,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IACT,QAAQ,EAAE,WAAW,EACrB,UAAU,EAAC,YAAY,EACvB,MAAM,EAAE,EAAE,EACV,eAAe,EAAE,WAAW,EAC5B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,UAAU,CAAC;gBACpB,yBAAyB,EAAE,CAAC,0BAA0B;gBACtD,0BAA0B,EAAE,0BAA0B;aACvD,CAAC,EACF,QAAQ,EAAE,UAAC,IAAI,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,GACtC,CACH,IACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Calendar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IntRange } from '../types';
|
|
2
|
+
export type TDateRange = [Date | null, Date | null];
|
|
3
|
+
export interface ICalendarProps {
|
|
4
|
+
initialCurrentDate?: Date;
|
|
5
|
+
initialCurrentDateRange?: TDateRange;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
minDate?: Date | null;
|
|
8
|
+
calendarComponentClassName?: string;
|
|
9
|
+
calendarInputClassName?: string;
|
|
10
|
+
isRange?: boolean;
|
|
11
|
+
onChangeCurrentDate?: (date: Date | null) => void;
|
|
12
|
+
onChangeCurrentDateRange?: (period: TDateRange) => void;
|
|
13
|
+
width?: IntRange<1, 101>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import ReactEcharts from 'echarts-for-react';
|
|
14
|
+
import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
|
|
15
|
+
import { generateBarItem, generateLegend } from '../helpers';
|
|
16
|
+
import '../../../styles/styles.scss';
|
|
17
|
+
var series = OPTIONS.series, shadow = OPTIONS.shadow, bar = OPTIONS.bar;
|
|
18
|
+
var option = function (_a) {
|
|
19
|
+
var data = _a.data, title = _a.title, xAxis = _a.xAxis;
|
|
20
|
+
return ({
|
|
21
|
+
title: __assign({ text: title }, OPTION_TITLE),
|
|
22
|
+
legend: generateLegend({ data: data, chartType: bar }),
|
|
23
|
+
tooltip: __assign(__assign({}, OPTION_TOOLTIP), { axisPointer: { type: shadow } }),
|
|
24
|
+
grid: OPTION_GRID,
|
|
25
|
+
xAxis: __assign({ data: xAxis }, OPTION_X_AXIS),
|
|
26
|
+
yAxis: OPTION_Y_AXIS,
|
|
27
|
+
series: generateBarItem(data),
|
|
28
|
+
emphasis: { focus: series },
|
|
29
|
+
barMaxWidth: 32,
|
|
30
|
+
barMinWidth: 15,
|
|
31
|
+
itemStyle: { borderRadius: [5, 5, 0, 0] },
|
|
32
|
+
barGap: '40%',
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export var ChartBar = function (_a) {
|
|
36
|
+
var title = _a.title, xAxis = _a.xAxis, data = _a.data;
|
|
37
|
+
return _jsx(ReactEcharts, { option: option({ data: data, title: title, xAxis: xAxis }), style: { height: 420 } });
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=ChartBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartBar.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartBar/ChartBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE5D,OAAO,6BAA6B,CAAA;AAE5B,IAAA,MAAM,GAAkB,OAAO,OAAzB,EAAE,MAAM,GAAU,OAAO,OAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAEvC,IAAM,MAAM,GAAG,UAAC,EAAmC;QAAjC,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;IAAoB,OAAA,CAAC;QACvD,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QAChD,OAAO,wBACF,cAAc,KACjB,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAC9B;QACD,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QACxC,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;QAC7B,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;QAC3B,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;QACzC,MAAM,EAAE,KAAK;KACd,CAAC;AAhBsD,CAgBtD,CAAA;AAEF,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAAoB,OAAA,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,MAAA,EAAE,KAAK,OAAA,EAAE,KAAK,OAAA,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI;AAAhF,CAAgF,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import ReactEcharts from 'echarts-for-react';
|
|
14
|
+
import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
|
|
15
|
+
import { generateLegend, generateLineItem } from '../helpers';
|
|
16
|
+
import '../../../styles/styles.scss';
|
|
17
|
+
export var ChartLine = function (_a) {
|
|
18
|
+
var title = _a.title, xAxis = _a.xAxis, data = _a.data;
|
|
19
|
+
var option = {
|
|
20
|
+
title: __assign({ text: title }, OPTION_TITLE),
|
|
21
|
+
legend: generateLegend({ data: data, chartType: OPTIONS.line }),
|
|
22
|
+
tooltip: OPTION_TOOLTIP,
|
|
23
|
+
grid: OPTION_GRID,
|
|
24
|
+
xAxis: __assign({ boundaryGap: false, data: xAxis }, OPTION_X_AXIS),
|
|
25
|
+
yAxis: OPTION_Y_AXIS,
|
|
26
|
+
series: generateLineItem(data),
|
|
27
|
+
};
|
|
28
|
+
return _jsx(ReactEcharts, { option: option, style: { height: 420 } });
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ChartLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartLine.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartLine/ChartLine.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7D,OAAO,6BAA6B,CAAA;AAEpC,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC5C,IAAM,MAAM,GAAG;QACb,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;QACzD,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QAC5D,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC;KAC/B,CAAA;IAED,OAAO,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI,CAAA;AACjE,CAAC,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useRef } from 'react';
|
|
14
|
+
import ReactEcharts from 'echarts-for-react';
|
|
15
|
+
import { OPTIONS } from '../constants';
|
|
16
|
+
import { COLORS } from '../../../constants';
|
|
17
|
+
import { TEXT_COLOR } from '../colors';
|
|
18
|
+
import { calculatePieValue, generateLegend } from '../helpers';
|
|
19
|
+
import '../../../styles/styles.scss';
|
|
20
|
+
var center = OPTIONS.center, pie = OPTIONS.pie;
|
|
21
|
+
var white = COLORS.white, black = COLORS.black;
|
|
22
|
+
var option = function (data, title) { return ({
|
|
23
|
+
legend: generateLegend({ data: data, chartType: pie }),
|
|
24
|
+
tooltip: {},
|
|
25
|
+
series: [
|
|
26
|
+
{
|
|
27
|
+
type: pie,
|
|
28
|
+
data: data,
|
|
29
|
+
radius: ['60%', '100%'],
|
|
30
|
+
itemStyle: { borderRadius: 8, borderColor: white, borderWidth: 6 },
|
|
31
|
+
label: { show: false },
|
|
32
|
+
labelLine: { show: false },
|
|
33
|
+
width: 320,
|
|
34
|
+
height: 320,
|
|
35
|
+
left: center,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
title: {
|
|
39
|
+
text: title,
|
|
40
|
+
left: center,
|
|
41
|
+
top: '28%',
|
|
42
|
+
textStyle: { color: TEXT_COLOR, fontSize: 14, fontWeight: 400 },
|
|
43
|
+
subtext: calculatePieValue(data),
|
|
44
|
+
subtextStyle: { color: black, fontSize: 32, fontWeight: 700 },
|
|
45
|
+
itemGap: 10,
|
|
46
|
+
},
|
|
47
|
+
}); };
|
|
48
|
+
export var ChartPie = function (_a) {
|
|
49
|
+
var data = _a.data, title = _a.title, subtitle = _a.subtitle;
|
|
50
|
+
var chartRef = useRef(null);
|
|
51
|
+
var handleLegendSelectChanged = function (_a) {
|
|
52
|
+
var _b;
|
|
53
|
+
var selected = _a.selected;
|
|
54
|
+
var filteredData = data.filter(function (_a) {
|
|
55
|
+
var name = _a.name;
|
|
56
|
+
return selected[name];
|
|
57
|
+
});
|
|
58
|
+
var subtext = calculatePieValue(filteredData);
|
|
59
|
+
(_b = chartRef.current) === null || _b === void 0 ? void 0 : _b.getEchartsInstance().setOption({ title: { subtext: subtext } });
|
|
60
|
+
};
|
|
61
|
+
var onEvents = { legendselectchanged: handleLegendSelectChanged };
|
|
62
|
+
return (_jsxs(_Fragment, { children: [_jsx("p", __assign({ className: "smartapp-chart__title" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option(data, subtitle), style: { height: 490 }, onEvents: onEvents })] }));
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=ChartPie.js.map
|
|
@@ -0,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,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,WAAW,CAAA;AACrC,MAAM,CAAC,IAAM,UAAU,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { COLORS } from '../../constants';
|
|
2
|
+
export declare enum OPTIONS {
|
|
3
|
+
center = "center",
|
|
4
|
+
axis = "axis",
|
|
5
|
+
shadow = "shadow",
|
|
6
|
+
circle = "circle",
|
|
7
|
+
category = "category",
|
|
8
|
+
transparent = "transparent",
|
|
9
|
+
value = "value",
|
|
10
|
+
series = "series",
|
|
11
|
+
pie = "pie",
|
|
12
|
+
bar = "bar",
|
|
13
|
+
line = "line"
|
|
14
|
+
}
|
|
15
|
+
export declare const OPTION_TITLE: {
|
|
16
|
+
left: OPTIONS;
|
|
17
|
+
textStyle: {
|
|
18
|
+
color: COLORS;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const OPTION_TOOLTIP: {
|
|
22
|
+
trigger: OPTIONS;
|
|
23
|
+
};
|
|
24
|
+
export declare const OPTION_GRID: {
|
|
25
|
+
left: string;
|
|
26
|
+
right: string;
|
|
27
|
+
bottom: string;
|
|
28
|
+
containLabel: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const OPTION_X_AXIS: {
|
|
31
|
+
type: OPTIONS;
|
|
32
|
+
axisLine: {
|
|
33
|
+
lineStyle: {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
axisLabel: {
|
|
38
|
+
color: COLORS;
|
|
39
|
+
};
|
|
40
|
+
axisPointer: {
|
|
41
|
+
label: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
backgroundColor: OPTIONS;
|
|
44
|
+
color: COLORS;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const OPTION_Y_AXIS: {
|
|
49
|
+
type: OPTIONS;
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { COLORS } from '../../constants';
|
|
2
|
+
import { LINE_COLOR } from './colors';
|
|
3
|
+
var darkerGray = COLORS.darkerGray, black = COLORS.black;
|
|
4
|
+
export var OPTIONS;
|
|
5
|
+
(function (OPTIONS) {
|
|
6
|
+
OPTIONS["center"] = "center";
|
|
7
|
+
OPTIONS["axis"] = "axis";
|
|
8
|
+
OPTIONS["shadow"] = "shadow";
|
|
9
|
+
OPTIONS["circle"] = "circle";
|
|
10
|
+
OPTIONS["category"] = "category";
|
|
11
|
+
OPTIONS["transparent"] = "transparent";
|
|
12
|
+
OPTIONS["value"] = "value";
|
|
13
|
+
OPTIONS["series"] = "series";
|
|
14
|
+
OPTIONS["pie"] = "pie";
|
|
15
|
+
OPTIONS["bar"] = "bar";
|
|
16
|
+
OPTIONS["line"] = "line";
|
|
17
|
+
})(OPTIONS || (OPTIONS = {}));
|
|
18
|
+
var center = OPTIONS.center, axis = OPTIONS.axis, category = OPTIONS.category, transparent = OPTIONS.transparent, value = OPTIONS.value;
|
|
19
|
+
export var OPTION_TITLE = {
|
|
20
|
+
left: center,
|
|
21
|
+
textStyle: { color: black },
|
|
22
|
+
};
|
|
23
|
+
export var OPTION_TOOLTIP = { trigger: axis };
|
|
24
|
+
export var OPTION_GRID = { left: '3%', right: '4%', bottom: '30%', containLabel: true };
|
|
25
|
+
export var OPTION_X_AXIS = {
|
|
26
|
+
type: category,
|
|
27
|
+
axisLine: {
|
|
28
|
+
lineStyle: { color: LINE_COLOR },
|
|
29
|
+
},
|
|
30
|
+
axisLabel: { color: darkerGray },
|
|
31
|
+
axisPointer: {
|
|
32
|
+
label: { show: true, backgroundColor: transparent, color: black },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export var OPTION_Y_AXIS = { type: value };
|
|
36
|
+
//# sourceMappingURL=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,EAAE;KACjC;IACD,SAAS,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IAChC,WAAW,EAAE;QACX,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;KAClE;CACF,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { OPTIONS } from './constants';
|
|
2
|
+
import { TChartData, TChartPieData, TGenerateLegendProps } from './types';
|
|
3
|
+
export declare const calculateValue: (data: number[]) => number;
|
|
4
|
+
export declare const calculatePieValue: (data: TChartPieData[]) => number;
|
|
5
|
+
export declare const generateLegendItemValue: (itemName: string, data: TChartData[]) => string;
|
|
6
|
+
export declare const generatePieLegendItemValue: (itemName: string, data: TChartPieData[]) => string;
|
|
7
|
+
export declare const generateLineItem: (data: TChartData[]) => {
|
|
8
|
+
name: string;
|
|
9
|
+
data: number[];
|
|
10
|
+
type: OPTIONS;
|
|
11
|
+
itemStyle: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
lineStyle: {
|
|
15
|
+
width: number;
|
|
16
|
+
};
|
|
17
|
+
smooth: boolean;
|
|
18
|
+
showSymbol: boolean;
|
|
19
|
+
emphasis: {
|
|
20
|
+
focus: OPTIONS;
|
|
21
|
+
};
|
|
22
|
+
}[];
|
|
23
|
+
export declare const generateBarItem: (data: TChartData[]) => {
|
|
24
|
+
name: string;
|
|
25
|
+
data: number[];
|
|
26
|
+
type: OPTIONS;
|
|
27
|
+
itemStyle: {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
}[];
|
|
31
|
+
export declare const generateLegend: ({ data, chartType }: TGenerateLegendProps) => {
|
|
32
|
+
itemGap: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
icon: OPTIONS.circle;
|
|
35
|
+
textStyle: {
|
|
36
|
+
rich: {
|
|
37
|
+
Name: {
|
|
38
|
+
fontSize: number;
|
|
39
|
+
align: OPTIONS.center;
|
|
40
|
+
};
|
|
41
|
+
value: {
|
|
42
|
+
fontSize: number;
|
|
43
|
+
align: OPTIONS.center;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
data?: string[] | undefined;
|
|
48
|
+
formatter?: ((name: string) => string) | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
bottom: number;
|
|
51
|
+
itemGap: number;
|
|
52
|
+
formatter: (name: string) => string;
|
|
53
|
+
textStyle: {
|
|
54
|
+
rich: {
|
|
55
|
+
Name: {
|
|
56
|
+
width: number;
|
|
57
|
+
fontSize: number;
|
|
58
|
+
align: OPTIONS.center;
|
|
59
|
+
};
|
|
60
|
+
value: {
|
|
61
|
+
fontSize: number;
|
|
62
|
+
align: OPTIONS.center;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
icon: OPTIONS.circle;
|
|
67
|
+
data?: string[] | undefined;
|
|
68
|
+
} | undefined;
|