@zohodesk/dot 1.9.2 → 1.9.4
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/README.md +22 -0
- package/_react-cli.config.js +27 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
- package/cbt.config.js +41 -0
- package/es/AlphabeticList/AlphabeticList.module.css +0 -0
- package/es/AttachmentViewer/AttachmentViewer.js +20 -24
- package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +1 -2
- package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +39 -38
- package/es/ChannelIcon/ChannelIcon.js +11 -13
- package/es/DotProvider/DotProvider.js +4 -2
- package/es/Drawer/Drawer.js +5 -4
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/ExternalLink/ExternalLink.module.css +0 -0
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Onboarding/Onboarding.js +25 -33
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/Separator/Separator.module.css +5 -5
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +0 -0
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/dot_layer.module.css +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +13 -14
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +17 -19
- package/es/form/fields/SelectField/SelectField.js +13 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -20
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +13 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +14 -15
- package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +17 -10
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/GridStencils/GridStencils.module.css +14 -5
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +6 -4
- package/es/list/SecondaryText/ContactName.js +6 -4
- package/es/list/SecondaryText/Email.js +5 -4
- package/es/list/SecondaryText/PhoneNumber.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/Subject/Subject.js +6 -4
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +11 -7
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/es/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/es/list/status/StatusListItem/props/propTypes.js +2 -1
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/Lookup/Lookup.module.css +0 -0
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/Text/TableText.module.css +0 -0
- package/es/setup/table/Text/Text.js +0 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +9 -8
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -0
- package/lib/Drawer/Drawer.js +0 -0
- package/lib/ExternalLink/ExternalLink.js +0 -0
- package/lib/ExternalLink/ExternalLink.module.css +0 -0
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/Link/Link.js +0 -0
- package/lib/PlusIcon/PlusIcon.js +0 -0
- package/lib/Separator/Separator.module.css +5 -5
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.js +0 -0
- package/lib/ToastMessage/ToastMessage.module.css +0 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
- package/lib/dot_layer.module.css +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/lib/form/layout/Field/Field.js +0 -0
- package/lib/form/layout/Section/Section.js +0 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +16 -10
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/GridStencils/GridStencils.module.css +14 -5
- package/lib/list/SecondaryText/Website.js +0 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
- package/lib/list/Subject/Subject.js +1 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +7 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/lib/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/lib/list/status/StatusListItem/props/propTypes.js +2 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
- package/lib/lookup/Lookup/Lookup.js +0 -0
- package/lib/lookup/Lookup/Lookup.module.css +0 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/lib/setup/helptips/Link/Link.js +0 -0
- package/lib/setup/helptips/Title/Title.js +0 -0
- package/lib/setup/table/Text/TableText.module.css +0 -0
- package/lib/setup/table/Text/Text.js +0 -0
- package/package.json +16 -20
- package/es/v1/ActionButton/ActionButton.js +0 -155
- package/es/v1/ActionButton/props/defaultProps.js +0 -19
- package/es/v1/ActionButton/props/propTypes.js +0 -37
- package/es/v1/AlphabeticList/AlphabeticList.js +0 -94
- package/es/v1/AlphabeticList/props/defaultProps.js +0 -12
- package/es/v1/AlphabeticList/props/propTypes.js +0 -23
- package/es/v1/Attachment/Attachment.js +0 -96
- package/es/v1/Attachment/props/defaultProps.js +0 -8
- package/es/v1/Attachment/props/propTypes.js +0 -18
- package/es/v1/AttachmentViewer/AttachmentImage.js +0 -81
- package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -626
- package/es/v1/AttachmentViewer/props/defaultProps.js +0 -11
- package/es/v1/AttachmentViewer/props/propTypes.js +0 -36
- package/es/v1/ChannelIcon/ChannelIcon.js +0 -93
- package/es/v1/ChannelIcon/props/defaultProps.js +0 -7
- package/es/v1/ChannelIcon/props/propTypes.js +0 -25
- package/es/v1/Drawer/Drawer.js +0 -270
- package/es/v1/Drawer/props/defaultProps.js +0 -23
- package/es/v1/Drawer/props/propTypes.js +0 -53
- package/es/v1/ExternalLink/ExternalLink.js +0 -48
- package/es/v1/ExternalLink/props/defaultProps.js +0 -5
- package/es/v1/ExternalLink/props/propTypes.js +0 -12
- package/es/v1/FlipCard/FlipCard.js +0 -132
- package/es/v1/FlipCard/props/defaultProps.js +0 -5
- package/es/v1/FlipCard/props/propTypes.js +0 -37
- package/es/v1/FormAction/FormAction.js +0 -75
- package/es/v1/FormAction/props/defaultProps.js +0 -5
- package/es/v1/FormAction/props/propTypes.js +0 -8
- package/es/v1/FreezeLayer/FreezeLayer.js +0 -74
- package/es/v1/FreezeLayer/props/defaultProps.js +0 -9
- package/es/v1/FreezeLayer/props/propTypes.js +0 -19
- package/es/v1/GlobalNotification/GlobalNotification.js +0 -144
- package/es/v1/GlobalNotification/props/defaultProps.js +0 -6
- package/es/v1/GlobalNotification/props/propTypes.js +0 -42
- package/es/v1/IconButton/IconButton.js +0 -112
- package/es/v1/IconButton/props/defaultProps.js +0 -17
- package/es/v1/IconButton/props/propTypes.js +0 -33
- package/es/v1/Image/Image.js +0 -36
- package/es/v1/Image/props/defaultProps.js +0 -4
- package/es/v1/Image/props/propTypes.js +0 -15
- package/es/v1/ImportantNotes/ImportantNotes.js +0 -41
- package/es/v1/ImportantNotes/props/defaultProps.js +0 -6
- package/es/v1/ImportantNotes/props/propTypes.js +0 -10
- package/es/v1/Link/Link.js +0 -93
- package/es/v1/Link/props/defaultProps.js +0 -5
- package/es/v1/Link/props/propTypes.js +0 -18
- package/es/v1/Loader/Loader.js +0 -15
- package/es/v1/Message/Message.js +0 -91
- package/es/v1/Message/props/defaultProps.js +0 -4
- package/es/v1/Message/props/propTypes.js +0 -20
- package/es/v1/MessageBanner/MessageBanner.js +0 -60
- package/es/v1/MessageBanner/props/defaultProps.js +0 -7
- package/es/v1/MessageBanner/props/propTypes.js +0 -13
- package/es/v1/NewStar/NewStar.js +0 -61
- package/es/v1/NewStar/props/defaultProps.js +0 -4
- package/es/v1/NewStar/props/propTypes.js +0 -6
- package/es/v1/PlusIcon/PlusIcon.js +0 -32
- package/es/v1/PlusIcon/props/defaultProps.js +0 -8
- package/es/v1/PlusIcon/props/propTypes.js +0 -11
- package/es/v1/Separator/Separator.js +0 -53
- package/es/v1/Separator/props/defaultProps.js +0 -12
- package/es/v1/Separator/props/propTypes.js +0 -11
- package/es/v1/TagWithIcon/TagWithIcon.js +0 -39
- package/es/v1/TagWithIcon/props/defaultProps.js +0 -8
- package/es/v1/TagWithIcon/props/propTypes.js +0 -13
- package/es/v1/ToastMessage/ToastMessage.js +0 -201
- package/es/v1/ToastMessage/props/defaultProps.js +0 -18
- package/es/v1/ToastMessage/props/propTypes.js +0 -40
- package/es/v1/Upload/Upload.js +0 -69
- package/es/v1/Upload/props/defaultProps.js +0 -7
- package/es/v1/Upload/props/propTypes.js +0 -17
- package/es/v1/actions/AutoClose.js +0 -44
- package/es/v1/actions/props/defaultProps.js +0 -3
- package/es/v1/actions/props/propTypes.js +0 -8
- package/es/v1/alert/AlertClose/AlertClose.js +0 -43
- package/es/v1/alert/AlertClose/props/propTypes.js +0 -8
- package/es/v1/alert/AlertHeader/AlertHeader.js +0 -82
- package/es/v1/alert/AlertHeader/props/defaultProps.js +0 -12
- package/es/v1/alert/AlertHeader/props/propTypes.js +0 -20
- package/es/v1/alert/AlertLookup/AlertLookup.js +0 -166
- package/es/v1/alert/AlertLookup/props/defaultProps.js +0 -13
- package/es/v1/alert/AlertLookup/props/propTypes.js +0 -36
- package/es/v1/alert/alertIcons/AlarmAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/AlertIcons.js +0 -57
- package/es/v1/alert/alertIcons/DangerAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/ErrorAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/InfoAlertIcon.js +0 -74
- package/es/v1/alert/alertIcons/NotificationAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/SuccessAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/WarningAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/index.js +0 -8
- package/es/v1/alert/alertIcons/props/defaultProps.js +0 -27
- package/es/v1/alert/alertIcons/props/propTypes.js +0 -34
- package/es/v1/alert/index.js +0 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +0 -47
- package/es/v1/avatar/AvatarClose/props/defaultProps.js +0 -7
- package/es/v1/avatar/AvatarClose/props/propTypes.js +0 -15
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +0 -51
- package/es/v1/avatar/AvatarCollision/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarCollision/props/propTypes.js +0 -17
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +0 -48
- package/es/v1/avatar/AvatarIcon/props/defaultProps.js +0 -14
- package/es/v1/avatar/AvatarIcon/props/propTypes.js +0 -20
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -59
- package/es/v1/avatar/AvatarStatus/props/defaultProps.js +0 -12
- package/es/v1/avatar/AvatarStatus/props/propTypes.js +0 -26
- package/es/v1/avatar/AvatarThread/AvatarThread.js +0 -72
- package/es/v1/avatar/AvatarThread/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarThread/props/propTypes.js +0 -30
- package/es/v1/avatar/AvatarUser/AvatarUser.js +0 -110
- package/es/v1/avatar/AvatarUser/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarUser/props/propTypes.js +0 -35
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -94
- package/es/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -25
- package/es/v1/avatar/index.js +0 -7
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -880
- package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -29
- package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -83
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -64
- package/es/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -10
- package/es/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -21
- package/es/v1/emptystate/EditionPage/EditionPage.js +0 -51
- package/es/v1/emptystate/EditionPage/props/defaultProps.js +0 -5
- package/es/v1/emptystate/EditionPage/props/propTypes.js +0 -11
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +0 -60
- package/es/v1/errorstate/Inconvenience/props/defaultProps.js +0 -8
- package/es/v1/errorstate/Inconvenience/props/propTypes.js +0 -16
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -64
- package/es/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -8
- package/es/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -64
- package/es/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -9
- package/es/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -17
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -64
- package/es/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UrlNotFound/props/propTypes.js +0 -16
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -64
- package/es/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -8
- package/es/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -16
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -130
- package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -12
- package/es/v1/form/fields/CheckBoxField/props/propTypes.js +0 -29
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +0 -160
- package/es/v1/form/fields/CurrencyField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/CurrencyField/props/propTypes.js +0 -39
- package/es/v1/form/fields/DateField/DateField.js +0 -164
- package/es/v1/form/fields/DateField/props/defaultProps.js +0 -19
- package/es/v1/form/fields/DateField/props/propTypes.js +0 -39
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +0 -66
- package/es/v1/form/fields/FieldContainer/props/defaultProps.js +0 -6
- package/es/v1/form/fields/FieldContainer/props/propTypes.js +0 -24
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -190
- package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/MultiSelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/PhoneField/PhoneField.js +0 -161
- package/es/v1/form/fields/PhoneField/props/defaultProps.js +0 -16
- package/es/v1/form/fields/PhoneField/props/propTypes.js +0 -47
- package/es/v1/form/fields/RadioField/RadioField.js +0 -144
- package/es/v1/form/fields/RadioField/props/defaultProps.js +0 -13
- package/es/v1/form/fields/RadioField/props/propTypes.js +0 -33
- package/es/v1/form/fields/RadioField/useRadio.js +0 -44
- package/es/v1/form/fields/SelectField/SelectField.js +0 -160
- package/es/v1/form/fields/SelectField/props/defaultProps.js +0 -18
- package/es/v1/form/fields/SelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -333
- package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -57
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -276
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -23
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -71
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +0 -144
- package/es/v1/form/fields/TextBoxField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/TextBoxField/props/propTypes.js +0 -44
- package/es/v1/form/fields/TextEditor/TextEditor.js +0 -418
- package/es/v1/form/fields/TextEditor/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -53
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +0 -159
- package/es/v1/form/fields/TextEditorField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextEditorField/props/propTypes.js +0 -59
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -163
- package/es/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -9
- package/es/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -40
- package/es/v1/form/fields/TextareaField/TextareaField.js +0 -140
- package/es/v1/form/fields/TextareaField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextareaField/props/propTypes.js +0 -35
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -58
- package/es/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -7
- package/es/v1/form/fields/ValidationMessage/props/propTypes.js +0 -16
- package/es/v1/form/fields/index.js +0 -16
- package/es/v1/form/fields/props/FieldCommonDefaultProps.js +0 -10
- package/es/v1/form/fields/props/FieldCommonPropTypes.js +0 -17
- package/es/v1/form/layout/Field/Field.js +0 -29
- package/es/v1/form/layout/Field/props/defaultProps.js +0 -4
- package/es/v1/form/layout/Field/props/propTypes.js +0 -10
- package/es/v1/form/layout/Section/Section.js +0 -30
- package/es/v1/form/layout/Section/props/propTypes.js +0 -11
- package/es/v1/form/layout/index.js +0 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -174
- package/es/v1/layout/SetupDetailLayout/index.js +0 -4
- package/es/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -20
- package/es/v1/layout/SetupDetailLayout/props/propTypes.js +0 -40
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +0 -126
- package/es/v1/layout/SubtabLayout/index.js +0 -4
- package/es/v1/layout/SubtabLayout/props/defaultProps.js +0 -25
- package/es/v1/layout/SubtabLayout/props/propTypes.js +0 -40
- package/es/v1/list/AvatarFlip/AvatarFlip.js +0 -73
- package/es/v1/list/AvatarFlip/props/defaultProps.js +0 -6
- package/es/v1/list/AvatarFlip/props/propTypes.js +0 -29
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +0 -21
- package/es/v1/list/BluePrintStatus/props/propTypes.js +0 -4
- package/es/v1/list/Comment/Comment.js +0 -35
- package/es/v1/list/Comment/props/defaultProps.js +0 -4
- package/es/v1/list/Comment/props/propTypes.js +0 -7
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -85
- package/es/v1/list/DepartmentDropDown/props/defaultProps.js +0 -7
- package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -24
- package/es/v1/list/Dot/Dot.js +0 -15
- package/es/v1/list/Dot/props/defaultProps.js +0 -4
- package/es/v1/list/Dot/props/propTypes.js +0 -5
- package/es/v1/list/DotNew/DotNew.js +0 -22
- package/es/v1/list/DotNew/props/defaultProps.js +0 -3
- package/es/v1/list/DotNew/props/propTypes.js +0 -6
- package/es/v1/list/GridStencils/GridStencils.js +0 -31
- package/es/v1/list/GridStencils/props/propTypes.js +0 -8
- package/es/v1/list/Icons/AddNewIcon.js +0 -25
- package/es/v1/list/Icons/CompleteIcon.js +0 -27
- package/es/v1/list/Icons/DeleteIcon.js +0 -28
- package/es/v1/list/Icons/EditIcon.js +0 -28
- package/es/v1/list/Icons/FloatingIcons.js +0 -23
- package/es/v1/list/Icons/ReadUnreadIcon.js +0 -32
- package/es/v1/list/Icons/SmartIcon.js +0 -25
- package/es/v1/list/Icons/index.js +0 -7
- package/es/v1/list/Icons/props/defaultProps.js +0 -6
- package/es/v1/list/Icons/props/propTypes.js +0 -53
- package/es/v1/list/ListLayout/ListLayout.js +0 -68
- package/es/v1/list/ListLayout/props/defaultProps.js +0 -11
- package/es/v1/list/ListLayout/props/propTypes.js +0 -27
- package/es/v1/list/ListStencils/ListStencils.js +0 -44
- package/es/v1/list/ListStencils/props/defaultProps.js +0 -3
- package/es/v1/list/ListStencils/props/propTypes.js +0 -4
- package/es/v1/list/SecondaryText/AccountName.js +0 -77
- package/es/v1/list/SecondaryText/ContactName.js +0 -76
- package/es/v1/list/SecondaryText/DepartmentText.js +0 -18
- package/es/v1/list/SecondaryText/Email.js +0 -47
- package/es/v1/list/SecondaryText/HappinessRating.js +0 -23
- package/es/v1/list/SecondaryText/PhoneNumber.js +0 -51
- package/es/v1/list/SecondaryText/PriorityText.js +0 -21
- package/es/v1/list/SecondaryText/SecondaryText.js +0 -27
- package/es/v1/list/SecondaryText/StatusText.js +0 -22
- package/es/v1/list/SecondaryText/TicketId.js +0 -41
- package/es/v1/list/SecondaryText/Website.js +0 -35
- package/es/v1/list/SecondaryText/index.js +0 -11
- package/es/v1/list/SecondaryText/props/defaultProps.js +0 -44
- package/es/v1/list/SecondaryText/props/propTypes.js +0 -142
- package/es/v1/list/SecondryPanel/SecondryPanel.js +0 -87
- package/es/v1/list/SecondryPanel/props/defaultProps.js +0 -18
- package/es/v1/list/SecondryPanel/props/propTypes.js +0 -27
- package/es/v1/list/SentimentStatus/SentimentStatus.js +0 -23
- package/es/v1/list/SentimentStatus/props/propTypes.js +0 -5
- package/es/v1/list/Subject/Subject.js +0 -52
- package/es/v1/list/Subject/props/defaultProps.js +0 -8
- package/es/v1/list/Subject/props/propTypes.js +0 -20
- package/es/v1/list/TagNew/TagNew.js +0 -24
- package/es/v1/list/TagNew/props/defaultProps.js +0 -4
- package/es/v1/list/TagNew/props/propTypes.js +0 -8
- package/es/v1/list/Thread/Thread.js +0 -33
- package/es/v1/list/Thread/props/defaultProps.js +0 -4
- package/es/v1/list/Thread/props/propTypes.js +0 -8
- package/es/v1/list/index.js +0 -16
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +0 -307
- package/es/v1/list/status/StatusDropdown/props/defaultProps.js +0 -22
- package/es/v1/list/status/StatusDropdown/props/propTypes.js +0 -60
- package/es/v1/list/status/StatusListItem/StatusListItem.js +0 -108
- package/es/v1/list/status/StatusListItem/props/defaultProps.js +0 -16
- package/es/v1/list/status/StatusListItem/props/propTypes.js +0 -31
- package/es/v1/list/status/index.js +0 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +0 -54
- package/es/v1/lookup/EmptyPage/props/defaultProps.js +0 -4
- package/es/v1/lookup/EmptyPage/props/propTypes.js +0 -5
- package/es/v1/lookup/Lookup/Lookup.js +0 -116
- package/es/v1/lookup/Lookup/props/defaultProps.js +0 -9
- package/es/v1/lookup/Lookup/props/propTypes.js +0 -24
- package/es/v1/lookup/Section/Section.js +0 -18
- package/es/v1/lookup/Section/props/propTypes.js +0 -6
- package/es/v1/lookup/header/Close/Close.js +0 -30
- package/es/v1/lookup/header/Close/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Close/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
- package/es/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -9
- package/es/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -20
- package/es/v1/lookup/header/Search/Search.js +0 -179
- package/es/v1/lookup/header/Search/props/defaultProps.js +0 -5
- package/es/v1/lookup/header/Search/props/propTypes.js +0 -28
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +0 -108
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +0 -21
- package/es/v1/lookup/header/Title/Title.js +0 -27
- package/es/v1/lookup/header/Title/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Title/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -194
- package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -27
- package/es/v1/lookup/header/index.js +0 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +0 -190
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +0 -17
- package/es/v1/notification/DesktopNotification/props/propTypes.js +0 -43
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -91
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -7
- package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -13
- package/es/v1/setup/header/Button/Button.js +0 -24
- package/es/v1/setup/header/Button/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Button/props/propTypes.js +0 -7
- package/es/v1/setup/header/Link/Link.js +0 -32
- package/es/v1/setup/header/Link/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Link/props/propTypes.js +0 -8
- package/es/v1/setup/header/Search/Search.js +0 -60
- package/es/v1/setup/header/Search/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Search/props/propTypes.js +0 -12
- package/es/v1/setup/header/Views/Views.js +0 -34
- package/es/v1/setup/header/Views/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Views/props/propTypes.js +0 -9
- package/es/v1/setup/header/index.js +0 -4
- package/es/v1/setup/helptips/Description/Description.js +0 -12
- package/es/v1/setup/helptips/Description/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/Link/Link.js +0 -29
- package/es/v1/setup/helptips/Link/props/propTypes.js +0 -7
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +0 -27
- package/es/v1/setup/helptips/ListGroup/props/propTypes.js +0 -5
- package/es/v1/setup/helptips/Title/Title.js +0 -12
- package/es/v1/setup/helptips/Title/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/index.js +0 -4
- package/es/v1/setup/index.js +0 -6
- package/es/v1/setup/table/Table/Table.js +0 -22
- package/es/v1/setup/table/Table/props/defaultProps.js +0 -4
- package/es/v1/setup/table/Table/props/propTypes.js +0 -6
- package/es/v1/setup/table/TableBody/TableBody.js +0 -26
- package/es/v1/setup/table/TableBody/props/defaultProps.js +0 -3
- package/es/v1/setup/table/TableBody/props/propTypes.js +0 -7
- package/es/v1/setup/table/TableData/TableData.js +0 -31
- package/es/v1/setup/table/TableData/props/defaultProps.js +0 -5
- package/es/v1/setup/table/TableData/props/propTypes.js +0 -11
- package/es/v1/setup/table/TableHead/TableHead.js +0 -31
- package/es/v1/setup/table/TableHead/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableHead/props/propTypes.js +0 -8
- package/es/v1/setup/table/TableRow/TableRow.js +0 -36
- package/es/v1/setup/table/TableRow/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableRow/props/propTypes.js +0 -11
- package/es/v1/setup/table/Text/Text.js +0 -50
- package/es/v1/setup/table/Text/props/defaultProps.js +0 -7
- package/es/v1/setup/table/Text/props/propTypes.js +0 -13
- package/es/v1/setup/table/index.js +0 -5
- package/es/v1/svg/PlusIcon.js +0 -25
- package/es/v1/svg/SnippetIcon.js +0 -27
- package/es/v1/svg/TemplateIcon.js +0 -28
- package/es/v1/svg/index.js +0 -3
- package/es/v1/svg/props/defaultProps.js +0 -15
- package/es/v1/svg/props/propTypes.js +0 -16
- package/es/v1/utils/ChannelIconMapping.js +0 -129
- package/es/v1/utils/General.js +0 -45
- package/es/v1/utils/editorUtils.js +0 -193
- package/lib/v1/ActionButton/ActionButton.js +0 -173
- package/lib/v1/ActionButton/props/defaultProps.js +0 -26
- package/lib/v1/ActionButton/props/propTypes.js +0 -48
- package/lib/v1/AlphabeticList/AlphabeticList.js +0 -113
- package/lib/v1/AlphabeticList/props/defaultProps.js +0 -20
- package/lib/v1/AlphabeticList/props/propTypes.js +0 -50
- package/lib/v1/Attachment/Attachment.js +0 -110
- package/lib/v1/Attachment/props/defaultProps.js +0 -15
- package/lib/v1/Attachment/props/propTypes.js +0 -29
- package/lib/v1/AttachmentViewer/AttachmentImage.js +0 -117
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -713
- package/lib/v1/AttachmentViewer/props/defaultProps.js +0 -19
- package/lib/v1/AttachmentViewer/props/propTypes.js +0 -48
- package/lib/v1/ChannelIcon/ChannelIcon.js +0 -114
- package/lib/v1/ChannelIcon/props/defaultProps.js +0 -14
- package/lib/v1/ChannelIcon/props/propTypes.js +0 -36
- package/lib/v1/Drawer/Drawer.js +0 -302
- package/lib/v1/Drawer/props/defaultProps.js +0 -32
- package/lib/v1/Drawer/props/propTypes.js +0 -67
- package/lib/v1/ExternalLink/ExternalLink.js +0 -57
- package/lib/v1/ExternalLink/props/defaultProps.js +0 -12
- package/lib/v1/ExternalLink/props/propTypes.js +0 -23
- package/lib/v1/FlipCard/FlipCard.js +0 -149
- package/lib/v1/FlipCard/props/defaultProps.js +0 -12
- package/lib/v1/FlipCard/props/propTypes.js +0 -48
- package/lib/v1/FormAction/FormAction.js +0 -102
- package/lib/v1/FormAction/props/defaultProps.js +0 -12
- package/lib/v1/FormAction/props/propTypes.js +0 -19
- package/lib/v1/FreezeLayer/FreezeLayer.js +0 -94
- package/lib/v1/FreezeLayer/props/defaultProps.js +0 -16
- package/lib/v1/FreezeLayer/props/propTypes.js +0 -31
- package/lib/v1/GlobalNotification/GlobalNotification.js +0 -187
- package/lib/v1/GlobalNotification/props/defaultProps.js +0 -13
- package/lib/v1/GlobalNotification/props/propTypes.js +0 -58
- package/lib/v1/IconButton/IconButton.js +0 -149
- package/lib/v1/IconButton/props/defaultProps.js +0 -24
- package/lib/v1/IconButton/props/propTypes.js +0 -43
- package/lib/v1/Image/Image.js +0 -48
- package/lib/v1/Image/props/defaultProps.js +0 -11
- package/lib/v1/Image/props/propTypes.js +0 -26
- package/lib/v1/ImportantNotes/ImportantNotes.js +0 -55
- package/lib/v1/ImportantNotes/props/defaultProps.js +0 -13
- package/lib/v1/ImportantNotes/props/propTypes.js +0 -21
- package/lib/v1/Link/Link.js +0 -116
- package/lib/v1/Link/props/defaultProps.js +0 -12
- package/lib/v1/Link/props/propTypes.js +0 -29
- package/lib/v1/Loader/Loader.js +0 -27
- package/lib/v1/Message/Message.js +0 -113
- package/lib/v1/Message/props/defaultProps.js +0 -11
- package/lib/v1/Message/props/propTypes.js +0 -41
- package/lib/v1/MessageBanner/MessageBanner.js +0 -75
- package/lib/v1/MessageBanner/props/defaultProps.js +0 -14
- package/lib/v1/MessageBanner/props/propTypes.js +0 -24
- package/lib/v1/NewStar/NewStar.js +0 -74
- package/lib/v1/NewStar/props/defaultProps.js +0 -11
- package/lib/v1/NewStar/props/propTypes.js +0 -17
- package/lib/v1/PlusIcon/PlusIcon.js +0 -45
- package/lib/v1/PlusIcon/props/defaultProps.js +0 -15
- package/lib/v1/PlusIcon/props/propTypes.js +0 -22
- package/lib/v1/Separator/Separator.js +0 -66
- package/lib/v1/Separator/props/defaultProps.js +0 -19
- package/lib/v1/Separator/props/propTypes.js +0 -22
- package/lib/v1/TagWithIcon/TagWithIcon.js +0 -53
- package/lib/v1/TagWithIcon/props/defaultProps.js +0 -15
- package/lib/v1/TagWithIcon/props/propTypes.js +0 -24
- package/lib/v1/ToastMessage/ToastMessage.js +0 -246
- package/lib/v1/ToastMessage/props/defaultProps.js +0 -25
- package/lib/v1/ToastMessage/props/propTypes.js +0 -51
- package/lib/v1/Upload/Upload.js +0 -83
- package/lib/v1/Upload/props/defaultProps.js +0 -14
- package/lib/v1/Upload/props/propTypes.js +0 -28
- package/lib/v1/actions/AutoClose.js +0 -75
- package/lib/v1/actions/props/defaultProps.js +0 -10
- package/lib/v1/actions/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertClose/AlertClose.js +0 -62
- package/lib/v1/alert/AlertClose/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertHeader/AlertHeader.js +0 -107
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +0 -19
- package/lib/v1/alert/AlertHeader/props/propTypes.js +0 -31
- package/lib/v1/alert/AlertLookup/AlertLookup.js +0 -187
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +0 -20
- package/lib/v1/alert/AlertLookup/props/propTypes.js +0 -47
- package/lib/v1/alert/alertIcons/AlarmAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/AlertIcons.js +0 -78
- package/lib/v1/alert/alertIcons/DangerAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/ErrorAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/InfoAlertIcon.js +0 -86
- package/lib/v1/alert/alertIcons/NotificationAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/SuccessAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/WarningAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/index.js +0 -71
- package/lib/v1/alert/alertIcons/props/defaultProps.js +0 -41
- package/lib/v1/alert/alertIcons/props/propTypes.js +0 -52
- package/lib/v1/alert/index.js +0 -23
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +0 -61
- package/lib/v1/avatar/AvatarClose/props/defaultProps.js +0 -14
- package/lib/v1/avatar/AvatarClose/props/propTypes.js +0 -26
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +0 -65
- package/lib/v1/avatar/AvatarCollision/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarCollision/props/propTypes.js +0 -28
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +0 -63
- package/lib/v1/avatar/AvatarIcon/props/defaultProps.js +0 -21
- package/lib/v1/avatar/AvatarIcon/props/propTypes.js +0 -31
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -73
- package/lib/v1/avatar/AvatarStatus/props/defaultProps.js +0 -19
- package/lib/v1/avatar/AvatarStatus/props/propTypes.js +0 -35
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +0 -85
- package/lib/v1/avatar/AvatarThread/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarThread/props/propTypes.js +0 -41
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +0 -122
- package/lib/v1/avatar/AvatarUser/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarUser/props/propTypes.js +0 -46
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -109
- package/lib/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -36
- package/lib/v1/avatar/index.js +0 -63
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -946
- package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -36
- package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -94
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -77
- package/lib/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -17
- package/lib/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -32
- package/lib/v1/emptystate/EditionPage/EditionPage.js +0 -64
- package/lib/v1/emptystate/EditionPage/props/defaultProps.js +0 -12
- package/lib/v1/emptystate/EditionPage/props/propTypes.js +0 -22
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +0 -76
- package/lib/v1/errorstate/Inconvenience/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/Inconvenience/props/propTypes.js +0 -27
- package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -80
- package/lib/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -80
- package/lib/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -16
- package/lib/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -28
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -80
- package/lib/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UrlNotFound/props/propTypes.js +0 -27
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -80
- package/lib/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -148
- package/lib/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +0 -47
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +0 -194
- package/lib/v1/form/fields/CurrencyField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/CurrencyField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/DateField/DateField.js +0 -183
- package/lib/v1/form/fields/DateField/props/defaultProps.js +0 -34
- package/lib/v1/form/fields/DateField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +0 -87
- package/lib/v1/form/fields/FieldContainer/props/defaultProps.js +0 -22
- package/lib/v1/form/fields/FieldContainer/props/propTypes.js +0 -35
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -208
- package/lib/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/MultiSelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/PhoneField/PhoneField.js +0 -193
- package/lib/v1/form/fields/PhoneField/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/PhoneField/props/propTypes.js +0 -58
- package/lib/v1/form/fields/RadioField/RadioField.js +0 -164
- package/lib/v1/form/fields/RadioField/props/defaultProps.js +0 -20
- package/lib/v1/form/fields/RadioField/props/propTypes.js +0 -44
- package/lib/v1/form/fields/RadioField/useRadio.js +0 -50
- package/lib/v1/form/fields/SelectField/SelectField.js +0 -179
- package/lib/v1/form/fields/SelectField/props/defaultProps.js +0 -33
- package/lib/v1/form/fields/SelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -387
- package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -317
- package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -38
- package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -83
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +0 -163
- package/lib/v1/form/fields/TextBoxField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/TextBoxField/props/propTypes.js +0 -62
- package/lib/v1/form/fields/TextEditor/TextEditor.js +0 -462
- package/lib/v1/form/fields/TextEditor/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -64
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +0 -175
- package/lib/v1/form/fields/TextEditorField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextEditorField/props/propTypes.js +0 -67
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -204
- package/lib/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -16
- package/lib/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -51
- package/lib/v1/form/fields/TextareaField/TextareaField.js +0 -157
- package/lib/v1/form/fields/TextareaField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextareaField/props/propTypes.js +0 -53
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -71
- package/lib/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -14
- package/lib/v1/form/fields/ValidationMessage/props/propTypes.js +0 -27
- package/lib/v1/form/fields/index.js +0 -135
- package/lib/v1/form/fields/props/FieldCommonDefaultProps.js +0 -19
- package/lib/v1/form/fields/props/FieldCommonPropTypes.js +0 -28
- package/lib/v1/form/layout/Field/Field.js +0 -40
- package/lib/v1/form/layout/Field/props/defaultProps.js +0 -11
- package/lib/v1/form/layout/Field/props/propTypes.js +0 -21
- package/lib/v1/form/layout/Section/Section.js +0 -40
- package/lib/v1/form/layout/Section/props/propTypes.js +0 -22
- package/lib/v1/form/layout/index.js +0 -23
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -212
- package/lib/v1/layout/SetupDetailLayout/index.js +0 -37
- package/lib/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -30
- package/lib/v1/layout/SetupDetailLayout/props/propTypes.js +0 -54
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +0 -146
- package/lib/v1/layout/SubtabLayout/index.js +0 -37
- package/lib/v1/layout/SubtabLayout/props/defaultProps.js +0 -35
- package/lib/v1/layout/SubtabLayout/props/propTypes.js +0 -54
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +0 -86
- package/lib/v1/list/AvatarFlip/props/defaultProps.js +0 -13
- package/lib/v1/list/AvatarFlip/props/propTypes.js +0 -40
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +0 -33
- package/lib/v1/list/BluePrintStatus/props/propTypes.js +0 -15
- package/lib/v1/list/Comment/Comment.js +0 -49
- package/lib/v1/list/Comment/props/defaultProps.js +0 -11
- package/lib/v1/list/Comment/props/propTypes.js +0 -18
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -102
- package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +0 -14
- package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -35
- package/lib/v1/list/Dot/Dot.js +0 -27
- package/lib/v1/list/Dot/props/defaultProps.js +0 -11
- package/lib/v1/list/Dot/props/propTypes.js +0 -16
- package/lib/v1/list/DotNew/DotNew.js +0 -34
- package/lib/v1/list/DotNew/props/defaultProps.js +0 -10
- package/lib/v1/list/DotNew/props/propTypes.js +0 -17
- package/lib/v1/list/GridStencils/GridStencils.js +0 -42
- package/lib/v1/list/GridStencils/props/propTypes.js +0 -19
- package/lib/v1/list/Icons/AddNewIcon.js +0 -38
- package/lib/v1/list/Icons/CompleteIcon.js +0 -40
- package/lib/v1/list/Icons/DeleteIcon.js +0 -41
- package/lib/v1/list/Icons/EditIcon.js +0 -41
- package/lib/v1/list/Icons/FloatingIcons.js +0 -42
- package/lib/v1/list/Icons/ReadUnreadIcon.js +0 -46
- package/lib/v1/list/Icons/SmartIcon.js +0 -38
- package/lib/v1/list/Icons/index.js +0 -63
- package/lib/v1/list/Icons/props/defaultProps.js +0 -14
- package/lib/v1/list/Icons/props/propTypes.js +0 -70
- package/lib/v1/list/ListLayout/ListLayout.js +0 -82
- package/lib/v1/list/ListLayout/props/defaultProps.js +0 -18
- package/lib/v1/list/ListLayout/props/propTypes.js +0 -39
- package/lib/v1/list/ListStencils/ListStencils.js +0 -57
- package/lib/v1/list/ListStencils/props/defaultProps.js +0 -10
- package/lib/v1/list/ListStencils/props/propTypes.js +0 -15
- package/lib/v1/list/SecondaryText/AccountName.js +0 -86
- package/lib/v1/list/SecondaryText/ContactName.js +0 -94
- package/lib/v1/list/SecondaryText/DepartmentText.js +0 -29
- package/lib/v1/list/SecondaryText/Email.js +0 -53
- package/lib/v1/list/SecondaryText/HappinessRating.js +0 -34
- package/lib/v1/list/SecondaryText/PhoneNumber.js +0 -57
- package/lib/v1/list/SecondaryText/PriorityText.js +0 -33
- package/lib/v1/list/SecondaryText/SecondaryText.js +0 -38
- package/lib/v1/list/SecondaryText/StatusText.js +0 -34
- package/lib/v1/list/SecondaryText/TicketId.js +0 -54
- package/lib/v1/list/SecondaryText/Website.js +0 -48
- package/lib/v1/list/SecondaryText/index.js +0 -95
- package/lib/v1/list/SecondaryText/props/defaultProps.js +0 -59
- package/lib/v1/list/SecondaryText/props/propTypes.js +0 -163
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +0 -104
- package/lib/v1/list/SecondryPanel/props/defaultProps.js +0 -28
- package/lib/v1/list/SecondryPanel/props/propTypes.js +0 -41
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +0 -35
- package/lib/v1/list/SentimentStatus/props/propTypes.js +0 -16
- package/lib/v1/list/Subject/Subject.js +0 -65
- package/lib/v1/list/Subject/props/defaultProps.js +0 -15
- package/lib/v1/list/Subject/props/propTypes.js +0 -31
- package/lib/v1/list/TagNew/TagNew.js +0 -35
- package/lib/v1/list/TagNew/props/defaultProps.js +0 -11
- package/lib/v1/list/TagNew/props/propTypes.js +0 -19
- package/lib/v1/list/Thread/Thread.js +0 -46
- package/lib/v1/list/Thread/props/defaultProps.js +0 -11
- package/lib/v1/list/Thread/props/propTypes.js +0 -19
- package/lib/v1/list/index.js +0 -165
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +0 -363
- package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +0 -29
- package/lib/v1/list/status/StatusDropdown/props/propTypes.js +0 -34
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +0 -124
- package/lib/v1/list/status/StatusListItem/props/defaultProps.js +0 -23
- package/lib/v1/list/status/StatusListItem/props/propTypes.js +0 -42
- package/lib/v1/list/status/index.js +0 -23
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +0 -70
- package/lib/v1/lookup/EmptyPage/props/defaultProps.js +0 -11
- package/lib/v1/lookup/EmptyPage/props/propTypes.js +0 -16
- package/lib/v1/lookup/Lookup/Lookup.js +0 -145
- package/lib/v1/lookup/Lookup/props/defaultProps.js +0 -16
- package/lib/v1/lookup/Lookup/props/propTypes.js +0 -35
- package/lib/v1/lookup/Section/Section.js +0 -30
- package/lib/v1/lookup/Section/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/Close/Close.js +0 -47
- package/lib/v1/lookup/header/Close/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Close/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -116
- package/lib/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -16
- package/lib/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -31
- package/lib/v1/lookup/header/Search/Search.js +0 -208
- package/lib/v1/lookup/header/Search/props/defaultProps.js +0 -12
- package/lib/v1/lookup/header/Search/props/propTypes.js +0 -40
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +0 -133
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +0 -32
- package/lib/v1/lookup/header/Title/Title.js +0 -44
- package/lib/v1/lookup/header/Title/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Title/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -239
- package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -38
- package/lib/v1/lookup/header/index.js +0 -47
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +0 -209
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +0 -26
- package/lib/v1/notification/DesktopNotification/props/propTypes.js +0 -55
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -105
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -16
- package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -24
- package/lib/v1/setup/header/Button/Button.js +0 -37
- package/lib/v1/setup/header/Button/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Button/props/propTypes.js +0 -18
- package/lib/v1/setup/header/Link/Link.js +0 -47
- package/lib/v1/setup/header/Link/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Link/props/propTypes.js +0 -19
- package/lib/v1/setup/header/Search/Search.js +0 -99
- package/lib/v1/setup/header/Search/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Search/props/propTypes.js +0 -23
- package/lib/v1/setup/header/Views/Views.js +0 -47
- package/lib/v1/setup/header/Views/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Views/props/propTypes.js +0 -20
- package/lib/v1/setup/header/index.js +0 -39
- package/lib/v1/setup/helptips/Description/Description.js +0 -23
- package/lib/v1/setup/helptips/Description/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/Link/Link.js +0 -42
- package/lib/v1/setup/helptips/Link/props/propTypes.js +0 -18
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +0 -42
- package/lib/v1/setup/helptips/ListGroup/props/propTypes.js +0 -16
- package/lib/v1/setup/helptips/Title/Title.js +0 -23
- package/lib/v1/setup/helptips/Title/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/index.js +0 -39
- package/lib/v1/setup/index.js +0 -24
- package/lib/v1/setup/table/Table/Table.js +0 -34
- package/lib/v1/setup/table/Table/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/Table/props/propTypes.js +0 -17
- package/lib/v1/setup/table/TableBody/TableBody.js +0 -39
- package/lib/v1/setup/table/TableBody/props/defaultProps.js +0 -10
- package/lib/v1/setup/table/TableBody/props/propTypes.js +0 -18
- package/lib/v1/setup/table/TableData/TableData.js +0 -44
- package/lib/v1/setup/table/TableData/props/defaultProps.js +0 -12
- package/lib/v1/setup/table/TableData/props/propTypes.js +0 -22
- package/lib/v1/setup/table/TableHead/TableHead.js +0 -44
- package/lib/v1/setup/table/TableHead/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableHead/props/propTypes.js +0 -19
- package/lib/v1/setup/table/TableRow/TableRow.js +0 -49
- package/lib/v1/setup/table/TableRow/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableRow/props/propTypes.js +0 -22
- package/lib/v1/setup/table/Text/Text.js +0 -64
- package/lib/v1/setup/table/Text/props/defaultProps.js +0 -14
- package/lib/v1/setup/table/Text/props/propTypes.js +0 -24
- package/lib/v1/setup/table/index.js +0 -47
- package/lib/v1/svg/PlusIcon.js +0 -37
- package/lib/v1/svg/SnippetIcon.js +0 -39
- package/lib/v1/svg/TemplateIcon.js +0 -40
- package/lib/v1/svg/index.js +0 -31
- package/lib/v1/svg/props/defaultProps.js +0 -24
- package/lib/v1/svg/props/propTypes.js +0 -29
- package/lib/v1/utils/ChannelIconMapping.js +0 -138
- package/lib/v1/utils/General.js +0 -58
- package/lib/v1/utils/editorUtils.js +0 -224
|
@@ -1,713 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _defaultProps = require("./props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _propTypes = require("./props/propTypes");
|
|
15
|
-
|
|
16
|
-
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
|
-
|
|
18
|
-
var _icons = require("@zohodesk/icons");
|
|
19
|
-
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
21
|
-
|
|
22
|
-
var _CustomResponsive = require("@zohodesk/components/es/Responsive/CustomResponsive");
|
|
23
|
-
|
|
24
|
-
var _IdProvider = require("@zohodesk/components/es/Provider/IdProvider");
|
|
25
|
-
|
|
26
|
-
var _AttachmentImage = _interopRequireDefault(require("./AttachmentImage"));
|
|
27
|
-
|
|
28
|
-
var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
29
|
-
|
|
30
|
-
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
31
|
-
|
|
32
|
-
var _FreezeLayer = _interopRequireDefault(require("../FreezeLayer/FreezeLayer"));
|
|
33
|
-
|
|
34
|
-
var _Attachment = require("../../AttachmentViewer/Attachment");
|
|
35
|
-
|
|
36
|
-
var _utils = require("../../AttachmentViewer/utils");
|
|
37
|
-
|
|
38
|
-
var _audio_thumbnail = _interopRequireDefault(require("../../../images/audio_thumbnail.png"));
|
|
39
|
-
|
|
40
|
-
var _General = require("../../utils/General");
|
|
41
|
-
|
|
42
|
-
var _AttachmentViewerModule = _interopRequireDefault(require("../../AttachmentViewer/AttachmentViewer.module.css"));
|
|
43
|
-
|
|
44
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
|
-
|
|
46
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
47
|
-
|
|
48
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
49
|
-
|
|
50
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
51
|
-
|
|
52
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
53
|
-
|
|
54
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
55
|
-
|
|
56
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
57
|
-
|
|
58
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
59
|
-
|
|
60
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
61
|
-
|
|
62
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
|
-
|
|
64
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
65
|
-
|
|
66
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
67
|
-
|
|
68
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
69
|
-
|
|
70
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
71
|
-
|
|
72
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
73
|
-
|
|
74
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
75
|
-
|
|
76
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
77
|
-
|
|
78
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
79
|
-
|
|
80
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
81
|
-
|
|
82
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
83
|
-
|
|
84
|
-
var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
85
|
-
_inherits(AttachmentViewer, _Component);
|
|
86
|
-
|
|
87
|
-
var _super = _createSuper(AttachmentViewer);
|
|
88
|
-
|
|
89
|
-
function AttachmentViewer(props) {
|
|
90
|
-
var _this;
|
|
91
|
-
|
|
92
|
-
_classCallCheck(this, AttachmentViewer);
|
|
93
|
-
|
|
94
|
-
_this = _super.call(this, props);
|
|
95
|
-
_this.state = {
|
|
96
|
-
isPViewListOpen: !!(_this.props.previewObj && _this.props.previewObj.previewData),
|
|
97
|
-
selectedIndex: _this.props.previewObj.selectedIndex,
|
|
98
|
-
isZoomed: false,
|
|
99
|
-
data: _this.props.previewObj ? _this.props.previewObj.previewData : [],
|
|
100
|
-
dataList: _this.getUpdateDataList({
|
|
101
|
-
index: _this.props.previewObj.selectedIndex,
|
|
102
|
-
data: _this.props.previewObj ? _this.props.previewObj.previewData : [],
|
|
103
|
-
dataList: []
|
|
104
|
-
}),
|
|
105
|
-
canOpenInNewTab: false,
|
|
106
|
-
canZoom: false,
|
|
107
|
-
isPreviewAttachmentValid: false
|
|
108
|
-
};
|
|
109
|
-
_this.togglePViewList = _this.togglePViewList.bind(_assertThisInitialized(_this));
|
|
110
|
-
_this.changeSelectedIndex = _this.changeSelectedIndex.bind(_assertThisInitialized(_this));
|
|
111
|
-
_this.closeAttachmentViewer = _this.closeAttachmentViewer.bind(_assertThisInitialized(_this));
|
|
112
|
-
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
113
|
-
_this.zoomIn = _this.zoomIn.bind(_assertThisInitialized(_this));
|
|
114
|
-
_this.zoomOut = _this.zoomOut.bind(_assertThisInitialized(_this));
|
|
115
|
-
_this.imgPreviewView = _this.imgPreviewView.bind(_assertThisInitialized(_this));
|
|
116
|
-
_this.getNextId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
|
|
117
|
-
_this.getUpdateDataList = _this.getUpdateDataList.bind(_assertThisInitialized(_this));
|
|
118
|
-
_this.zoomMaintain = _this.zoomMaintain.bind(_assertThisInitialized(_this));
|
|
119
|
-
_this.handleMenuValidation = _this.handleMenuValidation.bind(_assertThisInitialized(_this));
|
|
120
|
-
return _this;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
_createClass(AttachmentViewer, [{
|
|
124
|
-
key: "componentDidMount",
|
|
125
|
-
value: function componentDidMount() {
|
|
126
|
-
this.handleMenuValidation();
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "componentDidUpdate",
|
|
130
|
-
value: function componentDidUpdate(prevProps, prevState) {
|
|
131
|
-
var previewObj = this.props.previewObj;
|
|
132
|
-
var selectedIndex = this.state.selectedIndex;
|
|
133
|
-
var indexChanged = previewObj.selectedIndex != prevProps.previewObj.selectedIndex;
|
|
134
|
-
|
|
135
|
-
if (previewObj.previewData.length != prevProps.previewObj.previewData.length || indexChanged) {
|
|
136
|
-
var objChanged = previewObj.previewData.some(function (value, index) {
|
|
137
|
-
return (0, _General.shallowDiff)(value, prevProps.previewObj[index]);
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
if (objChanged || indexChanged) {
|
|
141
|
-
this.setState({
|
|
142
|
-
selectedIndex: previewObj.selectedIndex,
|
|
143
|
-
data: previewObj ? previewObj.previewData : [],
|
|
144
|
-
dataList: this.getUpdateDataList({
|
|
145
|
-
index: previewObj.selectedIndex,
|
|
146
|
-
data: previewObj ? previewObj.previewData : [],
|
|
147
|
-
dataList: []
|
|
148
|
-
}),
|
|
149
|
-
isPViewListOpen: !!(this.props.previewObj && this.props.previewObj.previewData)
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (prevState.selectedIndex != selectedIndex) {
|
|
155
|
-
this.handleMenuValidation();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}, {
|
|
159
|
-
key: "handleMenuValidation",
|
|
160
|
-
value: function handleMenuValidation() {
|
|
161
|
-
var _this2 = this;
|
|
162
|
-
|
|
163
|
-
var _this$state = this.state,
|
|
164
|
-
data = _this$state.data,
|
|
165
|
-
selectedIndex = _this$state.selectedIndex;
|
|
166
|
-
var selectedAttachment = data[selectedIndex] || {};
|
|
167
|
-
var selectedAttachmentViewUrl = selectedAttachment.viewUrl;
|
|
168
|
-
var selectedAttachmentDownloadUrl = selectedAttachment.downloadUrl;
|
|
169
|
-
var selectedAttachmentName = selectedAttachment.name;
|
|
170
|
-
(0, _utils.checkFileSourcesValidation)({
|
|
171
|
-
fileName: selectedAttachmentName,
|
|
172
|
-
viewURL: selectedAttachmentViewUrl
|
|
173
|
-
}).then(function (fileSourceValidation) {
|
|
174
|
-
var isViewURLValid = fileSourceValidation.isViewURLValid,
|
|
175
|
-
canZoom = fileSourceValidation.canZoom;
|
|
176
|
-
|
|
177
|
-
_this2.setState({
|
|
178
|
-
isPreviewAttachmentValid: isViewURLValid,
|
|
179
|
-
canZoom: canZoom,
|
|
180
|
-
canOpenInNewTab: isViewURLValid
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}, {
|
|
185
|
-
key: "togglePViewList",
|
|
186
|
-
value: function togglePViewList() {
|
|
187
|
-
var _this3 = this;
|
|
188
|
-
|
|
189
|
-
this.setState(function (prevState) {
|
|
190
|
-
return {
|
|
191
|
-
isPViewListOpen: !prevState.isPViewListOpen
|
|
192
|
-
};
|
|
193
|
-
}, function () {
|
|
194
|
-
_this3.focusSelectedImg(_this3.state.selectedIndex);
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}, {
|
|
198
|
-
key: "zoomOut",
|
|
199
|
-
value: function zoomOut(ele) {
|
|
200
|
-
this.setState({
|
|
201
|
-
isZoomed: false
|
|
202
|
-
}); // const img = document.getElementById(`img${ele}`);
|
|
203
|
-
// if (img) {
|
|
204
|
-
// img.classList.remove(style.zoomedImg);
|
|
205
|
-
// img.classList.add(style.normalImg);
|
|
206
|
-
// }
|
|
207
|
-
}
|
|
208
|
-
}, {
|
|
209
|
-
key: "zoomIn",
|
|
210
|
-
value: function zoomIn(event, ele) {
|
|
211
|
-
var moveToPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
212
|
-
this.setState({
|
|
213
|
-
isZoomed: true
|
|
214
|
-
});
|
|
215
|
-
var img = document.getElementById("img".concat(ele));
|
|
216
|
-
var ratio = 95;
|
|
217
|
-
var imgContainer, imgUnits, imgSize, imgRatio, imgContainerUnits, imgContainerPosition;
|
|
218
|
-
|
|
219
|
-
if (moveToPosition) {
|
|
220
|
-
imgContainer = document.getElementById("imgBox".concat(ele));
|
|
221
|
-
imgUnits = img.getBoundingClientRect();
|
|
222
|
-
imgSize = {
|
|
223
|
-
height: img.naturalHeight,
|
|
224
|
-
width: img.naturalWidth
|
|
225
|
-
};
|
|
226
|
-
imgRatio = {
|
|
227
|
-
height: Math.floor(imgSize.height / imgUnits.height / 100 * ratio),
|
|
228
|
-
width: Math.floor(imgSize.width / imgUnits.width / 100 * ratio)
|
|
229
|
-
};
|
|
230
|
-
imgContainerUnits = imgContainer.getBoundingClientRect();
|
|
231
|
-
imgContainerPosition = imgContainer ? {
|
|
232
|
-
top: imgContainerUnits.top,
|
|
233
|
-
left: imgContainerUnits.left
|
|
234
|
-
} : {
|
|
235
|
-
top: 0,
|
|
236
|
-
left: 0
|
|
237
|
-
};
|
|
238
|
-
} // if (img) {
|
|
239
|
-
// img.classList.remove(style.normalImg);
|
|
240
|
-
// img.classList.add(style.zoomedImg);
|
|
241
|
-
// }
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
if (moveToPosition) {
|
|
245
|
-
imgContainer.scrollLeft = (event.pageX - imgContainerPosition.left - imgUnits.left) * imgRatio.width;
|
|
246
|
-
imgContainer.scrollTop = (event.pageY - imgContainerPosition.top - imgUnits.top) * imgRatio.height;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}, {
|
|
250
|
-
key: "zoomMaintain",
|
|
251
|
-
value: function zoomMaintain(selectedIndex) {
|
|
252
|
-
var isZoomed = this.state.isZoomed;
|
|
253
|
-
isZoomed ? this.zoomIn({}, selectedIndex) : this.zoomOut(selectedIndex);
|
|
254
|
-
}
|
|
255
|
-
}, {
|
|
256
|
-
key: "getUpdateDataList",
|
|
257
|
-
value: function getUpdateDataList(_ref) {
|
|
258
|
-
var index = _ref.index,
|
|
259
|
-
data = _ref.data,
|
|
260
|
-
dataList = _ref.dataList;
|
|
261
|
-
data = data || this.state.data;
|
|
262
|
-
dataList = dataList || this.state.dataList;
|
|
263
|
-
|
|
264
|
-
var finalDataList = _toConsumableArray(dataList);
|
|
265
|
-
|
|
266
|
-
if (index >= finalDataList.length) {
|
|
267
|
-
for (var i = dataList.length; i <= index; i++) {
|
|
268
|
-
finalDataList.push(data.slice(i)[0]);
|
|
269
|
-
}
|
|
270
|
-
} else if (index + 1 === finalDataList.length && index + 1 < data.length) {
|
|
271
|
-
finalDataList.push(data.slice(index + 1)[0]);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
return finalDataList;
|
|
275
|
-
}
|
|
276
|
-
}, {
|
|
277
|
-
key: "updateDataList",
|
|
278
|
-
value: function updateDataList(index) {
|
|
279
|
-
this.setState({
|
|
280
|
-
dataList: this.getUpdateDataList({
|
|
281
|
-
index: index
|
|
282
|
-
})
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
}, {
|
|
286
|
-
key: "changeSelectedIndex",
|
|
287
|
-
value: function changeSelectedIndex(index) {
|
|
288
|
-
var _this4 = this;
|
|
289
|
-
|
|
290
|
-
var _this$state2 = this.state,
|
|
291
|
-
data = _this$state2.data,
|
|
292
|
-
selectedIndex = _this$state2.selectedIndex;
|
|
293
|
-
var maintainZoom = this.props.maintainZoom;
|
|
294
|
-
maintainZoom ? this.zoomMaintain(index) : this.zoomOut(selectedIndex);
|
|
295
|
-
|
|
296
|
-
if (index <= data.length - 1) {
|
|
297
|
-
this.updateDataList(index);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
this.setState({
|
|
301
|
-
selectedIndex: index
|
|
302
|
-
}, function () {
|
|
303
|
-
_this4.focusSelectedImg(index);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
}, {
|
|
307
|
-
key: "focusSelectedImg",
|
|
308
|
-
value: function focusSelectedImg(index) {
|
|
309
|
-
var ele = this["img_".concat(index)];
|
|
310
|
-
|
|
311
|
-
if (ele) {
|
|
312
|
-
var cont = this.imgListCont;
|
|
313
|
-
cont.scrollLeft = ele.offsetLeft;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}, {
|
|
317
|
-
key: "closeAttachmentViewer",
|
|
318
|
-
value: function closeAttachmentViewer() {
|
|
319
|
-
this.setState({
|
|
320
|
-
isPViewListOpen: false,
|
|
321
|
-
isZoomed: false
|
|
322
|
-
});
|
|
323
|
-
this.props.hideAttachmentViewer();
|
|
324
|
-
}
|
|
325
|
-
}, {
|
|
326
|
-
key: "responsiveFunc",
|
|
327
|
-
value: function responsiveFunc(_ref2) {
|
|
328
|
-
var mediaQueryOR = _ref2.mediaQueryOR;
|
|
329
|
-
return {
|
|
330
|
-
uptoTablet: mediaQueryOR([{
|
|
331
|
-
maxWidth: 768
|
|
332
|
-
}])
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
}, {
|
|
336
|
-
key: "imgPreviewView",
|
|
337
|
-
value: function imgPreviewView() {
|
|
338
|
-
var _this5 = this;
|
|
339
|
-
|
|
340
|
-
var _this$state3 = this.state,
|
|
341
|
-
dataList = _this$state3.dataList,
|
|
342
|
-
selectedIndex = _this$state3.selectedIndex,
|
|
343
|
-
isZoomed = _this$state3.isZoomed,
|
|
344
|
-
canZoom = _this$state3.canZoom,
|
|
345
|
-
isPreviewAttachmentValid = _this$state3.isPreviewAttachmentValid;
|
|
346
|
-
var _this$props = this.props,
|
|
347
|
-
maintainZoom = _this$props.maintainZoom,
|
|
348
|
-
dataId = _this$props.dataId;
|
|
349
|
-
|
|
350
|
-
var getImgStyle = function getImgStyle(i) {
|
|
351
|
-
var position;
|
|
352
|
-
|
|
353
|
-
if (selectedIndex < i) {
|
|
354
|
-
position = (i - selectedIndex) * 100;
|
|
355
|
-
return {
|
|
356
|
-
transform: "translateX(".concat(parseInt(position), "%)"),
|
|
357
|
-
opacity: '0'
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (i === selectedIndex) {
|
|
362
|
-
return {
|
|
363
|
-
transform: 'translateX(0%)',
|
|
364
|
-
opacity: '1'
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
position = (selectedIndex - i) * 100 * -1;
|
|
369
|
-
return {
|
|
370
|
-
transform: "translateX(".concat(parseInt(position), "%)"),
|
|
371
|
-
opacity: '0'
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
return dataList.length && dataList.map(function () {
|
|
376
|
-
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
377
|
-
var i = arguments.length > 1 ? arguments[1] : undefined;
|
|
378
|
-
var viewUrl = data.viewUrl,
|
|
379
|
-
name = data.name,
|
|
380
|
-
children = data.children,
|
|
381
|
-
_data$dataId = data.dataId,
|
|
382
|
-
dataId = _data$dataId === void 0 ? 'attachViewer' : _data$dataId,
|
|
383
|
-
_data$customClass = data.customClass,
|
|
384
|
-
customClass = _data$customClass === void 0 ? {} : _data$customClass,
|
|
385
|
-
_data$customProps = data.customProps,
|
|
386
|
-
customProps = _data$customProps === void 0 ? {} : _data$customProps;
|
|
387
|
-
var _customProps$audioPro = customProps.audioProps,
|
|
388
|
-
audioProps = _customProps$audioPro === void 0 ? {} : _customProps$audioPro,
|
|
389
|
-
_customProps$imagePro = customProps.imageProps,
|
|
390
|
-
imageProps = _customProps$imagePro === void 0 ? {} : _customProps$imagePro;
|
|
391
|
-
var _customClass$customIm = customClass.customImageClass,
|
|
392
|
-
customImageClass = _customClass$customIm === void 0 ? '' : _customClass$customIm,
|
|
393
|
-
_customClass$customCh = customClass.customChildrenClass,
|
|
394
|
-
customChildrenClass = _customClass$customCh === void 0 ? '' : _customClass$customCh;
|
|
395
|
-
var retainZoom = canZoom && selectedIndex == i && maintainZoom;
|
|
396
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
397
|
-
className: _AttachmentViewerModule["default"].imgBox,
|
|
398
|
-
id: "imgBox".concat(i),
|
|
399
|
-
key: i,
|
|
400
|
-
alignBox: "row",
|
|
401
|
-
align: "both",
|
|
402
|
-
style: getImgStyle(i)
|
|
403
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
404
|
-
className: _AttachmentViewerModule["default"].imgRef,
|
|
405
|
-
id: "imgPreviewRef".concat(i)
|
|
406
|
-
}, (0, _Attachment.isAudioFile)(name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("video", _extends({
|
|
407
|
-
autoPlay: true,
|
|
408
|
-
controls: true,
|
|
409
|
-
className: _AttachmentViewerModule["default"].zoomIn,
|
|
410
|
-
"data-id": "".concat(dataId, "_videoPreview"),
|
|
411
|
-
"data-test-id": "".concat(dataId, "_videoPreview")
|
|
412
|
-
}, audioProps), /*#__PURE__*/_react["default"].createElement("source", {
|
|
413
|
-
src: viewUrl,
|
|
414
|
-
type: "audio/".concat((0, _Attachment.getExtensionFromFileName)(name))
|
|
415
|
-
})) : null : /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
|
|
416
|
-
customClass: {
|
|
417
|
-
customImageClass: "".concat(_AttachmentViewerModule["default"].img, " ").concat(_AttachmentViewerModule["default"].altText, "\n ").concat(canZoom || retainZoom ? isZoomed ? "".concat(_AttachmentViewerModule["default"].zoomedImg, " ").concat(_AttachmentViewerModule["default"].zoomOutCursor) : "".concat(_AttachmentViewerModule["default"].normalImg, " ").concat(_AttachmentViewerModule["default"].zoomInCursor) : '', " ").concat(customImageClass),
|
|
418
|
-
customChildrenClass: customChildrenClass
|
|
419
|
-
},
|
|
420
|
-
src: viewUrl,
|
|
421
|
-
onClick: isPreviewAttachmentValid ? isZoomed ? _this5.zoomOut.bind(_this5, i) : function (e) {
|
|
422
|
-
_this5.zoomIn(e, i, true);
|
|
423
|
-
} : undefined,
|
|
424
|
-
alt: name,
|
|
425
|
-
dataId: dataId,
|
|
426
|
-
id: "img".concat(i),
|
|
427
|
-
isCover: false
|
|
428
|
-
}, imageProps), children)));
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
}, {
|
|
432
|
-
key: "render",
|
|
433
|
-
value: function render() {
|
|
434
|
-
var _this6 = this;
|
|
435
|
-
|
|
436
|
-
var _this$state4 = this.state,
|
|
437
|
-
isPViewListOpen = _this$state4.isPViewListOpen,
|
|
438
|
-
selectedIndex = _this$state4.selectedIndex,
|
|
439
|
-
data = _this$state4.data,
|
|
440
|
-
isZoomed = _this$state4.isZoomed,
|
|
441
|
-
canZoom = _this$state4.canZoom,
|
|
442
|
-
canOpenInNewTab = _this$state4.canOpenInNewTab;
|
|
443
|
-
var _this$props2 = this.props,
|
|
444
|
-
responsiveId = _this$props2.responsiveId,
|
|
445
|
-
needDownload = _this$props2.needDownload,
|
|
446
|
-
i18nKeys = _this$props2.i18nKeys,
|
|
447
|
-
isActive = _this$props2.isActive,
|
|
448
|
-
dataId = _this$props2.dataId;
|
|
449
|
-
var totalLen = data.length;
|
|
450
|
-
var selectedAttachment = data[selectedIndex] || {};
|
|
451
|
-
var selectedImgUrl = selectedAttachment.viewUrl;
|
|
452
|
-
var downloadUrl = selectedAttachment.downloadUrl;
|
|
453
|
-
var authorHref;
|
|
454
|
-
var authorName;
|
|
455
|
-
|
|
456
|
-
var _ref3 = data[selectedIndex] ? data[selectedIndex] : {},
|
|
457
|
-
author = _ref3.author;
|
|
458
|
-
|
|
459
|
-
if (author) {
|
|
460
|
-
authorHref = author.href;
|
|
461
|
-
authorName = author.name;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
var ariaId = this.getNextId();
|
|
465
|
-
return /*#__PURE__*/_react["default"].createElement(_FreezeLayer["default"], {
|
|
466
|
-
isActive: isActive && totalLen >= 1,
|
|
467
|
-
palette: "dark",
|
|
468
|
-
animationName: "expand"
|
|
469
|
-
}, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
470
|
-
responsiveId: responsiveId,
|
|
471
|
-
query: this.responsiveFunc
|
|
472
|
-
}, function (_ref4) {
|
|
473
|
-
var uptoTablet = _ref4.uptoTablet;
|
|
474
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
475
|
-
scroll: "none",
|
|
476
|
-
"data-scroll-palette": "dark"
|
|
477
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
478
|
-
alignBox: "row",
|
|
479
|
-
className: _AttachmentViewerModule["default"].header,
|
|
480
|
-
align: "between",
|
|
481
|
-
tabindex: "0"
|
|
482
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
483
|
-
shrink: true,
|
|
484
|
-
className: _AttachmentViewerModule["default"].title,
|
|
485
|
-
"data-title": selectedAttachment.name,
|
|
486
|
-
dataId: "attachName",
|
|
487
|
-
id: ariaId
|
|
488
|
-
}, selectedAttachment.name), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
489
|
-
flexible: true,
|
|
490
|
-
className: _AttachmentViewerModule["default"].count,
|
|
491
|
-
dataId: "attachCountContainer"
|
|
492
|
-
}, selectedIndex + 1, "/", totalLen), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
493
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mbleMenuBar : _AttachmentViewerModule["default"].menuBar
|
|
494
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
495
|
-
isInline: true,
|
|
496
|
-
alignBox: uptoTablet ? 'column-reverse' : 'row',
|
|
497
|
-
align: uptoTablet ? 'bottom' : 'center',
|
|
498
|
-
wrap: "wrap",
|
|
499
|
-
isCover: false
|
|
500
|
-
}, canZoom ? isZoomed ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
501
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
|
|
502
|
-
onClick: _this6.zoomOut.bind(_this6, selectedIndex),
|
|
503
|
-
"data-id": "zoomOut",
|
|
504
|
-
"data-test-id": "zoomOut",
|
|
505
|
-
"data-title": i18nKeys.zoomOutText
|
|
506
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
507
|
-
iconName: "ZD-GN-zoomOut",
|
|
508
|
-
className: _AttachmentViewerModule["default"].menuIcon,
|
|
509
|
-
iconSize: "16",
|
|
510
|
-
hoverType: "border",
|
|
511
|
-
a11y: {
|
|
512
|
-
ariaLabel: i18nKeys.zoomOutText
|
|
513
|
-
}
|
|
514
|
-
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
515
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
|
|
516
|
-
onClick: function onClick(e) {
|
|
517
|
-
return _this6.zoomIn(e, selectedIndex);
|
|
518
|
-
},
|
|
519
|
-
"data-id": "zoomIn",
|
|
520
|
-
"data-test-id": "zoomIn",
|
|
521
|
-
"data-title": i18nKeys.zoomInText
|
|
522
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
523
|
-
iconName: "ZD-GN-zoomIn",
|
|
524
|
-
className: _AttachmentViewerModule["default"].menuIcon,
|
|
525
|
-
iconSize: "16",
|
|
526
|
-
hoverType: "border",
|
|
527
|
-
a11y: {
|
|
528
|
-
ariaLabel: i18nKeys.zoomInText
|
|
529
|
-
}
|
|
530
|
-
})) : null, canOpenInNewTab ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
531
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu
|
|
532
|
-
}, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
533
|
-
href: selectedImgUrl,
|
|
534
|
-
target: "_blank",
|
|
535
|
-
dataId: "newTabAttach",
|
|
536
|
-
title: i18nKeys.newTabText
|
|
537
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
538
|
-
iconName: "ZD-GN-newLink",
|
|
539
|
-
className: _AttachmentViewerModule["default"].menuIcon,
|
|
540
|
-
iconSize: "16",
|
|
541
|
-
hoverType: "border",
|
|
542
|
-
needButtonTag: false,
|
|
543
|
-
a11y: {
|
|
544
|
-
ariaLabel: i18nKeys.newTabText
|
|
545
|
-
}
|
|
546
|
-
}))) : null, needDownload ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
547
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu
|
|
548
|
-
}, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
549
|
-
href: downloadUrl,
|
|
550
|
-
target: "_parent",
|
|
551
|
-
hasReload: true,
|
|
552
|
-
download: true,
|
|
553
|
-
title: i18nKeys.downloadText,
|
|
554
|
-
dataId: "".concat(dataId, "_downloadAttach")
|
|
555
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
556
|
-
iconName: "ZD-GN-download",
|
|
557
|
-
className: _AttachmentViewerModule["default"].menuIcon,
|
|
558
|
-
iconSize: "16",
|
|
559
|
-
hoverType: "border",
|
|
560
|
-
needButtonTag: false,
|
|
561
|
-
a11y: {
|
|
562
|
-
ariaLabel: i18nKeys.downloadText
|
|
563
|
-
}
|
|
564
|
-
}))) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
565
|
-
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
|
|
566
|
-
onClick: _this6.closeAttachmentViewer,
|
|
567
|
-
"data-id": "closeAttach",
|
|
568
|
-
"data-test-id": "closeAttach",
|
|
569
|
-
"data-title": i18nKeys.closeText
|
|
570
|
-
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
571
|
-
iconName: "ZD-cross",
|
|
572
|
-
iconSize: "15",
|
|
573
|
-
hoverType: "border",
|
|
574
|
-
className: _AttachmentViewerModule["default"].menuIcon,
|
|
575
|
-
a11y: {
|
|
576
|
-
ariaLabel: i18nKeys.closeText
|
|
577
|
-
},
|
|
578
|
-
title: i18nKeys.closeText
|
|
579
|
-
})))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
580
|
-
flexible: true,
|
|
581
|
-
role: "toolbar",
|
|
582
|
-
tabindex: "0"
|
|
583
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
584
|
-
alignBox: "row"
|
|
585
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
586
|
-
className: "".concat(_AttachmentViewerModule["default"].arrowBox, " ").concat(uptoTablet ? _AttachmentViewerModule["default"].mbleArrowBox : _AttachmentViewerModule["default"].nrmlArrowBox, " ").concat(selectedIndex === 0 ? _AttachmentViewerModule["default"].hidden : ''),
|
|
587
|
-
onClick: _this6.changeSelectedIndex.bind(_this6, selectedIndex - 1),
|
|
588
|
-
"data-title": i18nKeys.previousText,
|
|
589
|
-
"data-title-position": "left"
|
|
590
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
591
|
-
className: _AttachmentViewerModule["default"].btn,
|
|
592
|
-
"aria-label": i18nKeys.previousText
|
|
593
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
594
|
-
name: "ZD-arrowLeft3",
|
|
595
|
-
iconClass: _AttachmentViewerModule["default"].arrow,
|
|
596
|
-
dataId: "leftAttachNav",
|
|
597
|
-
isBold: true
|
|
598
|
-
}))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
599
|
-
className: _AttachmentViewerModule["default"].previewBox,
|
|
600
|
-
tabindex: "0",
|
|
601
|
-
"aria-describedby": ariaId,
|
|
602
|
-
isShrink: false,
|
|
603
|
-
eleRef: _this6.setImgBoxRef,
|
|
604
|
-
scroll: "both",
|
|
605
|
-
flexible: true
|
|
606
|
-
}, _this6.imgPreviewView()), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
607
|
-
className: "".concat(_AttachmentViewerModule["default"].arrowBox, " ").concat(uptoTablet ? _AttachmentViewerModule["default"].mbleArrowBox : _AttachmentViewerModule["default"].nrmlArrowBox, " ").concat(totalLen === selectedIndex + 1 ? _AttachmentViewerModule["default"].hidden : ''),
|
|
608
|
-
onClick: _this6.changeSelectedIndex.bind(_this6, selectedIndex + 1),
|
|
609
|
-
"data-title": i18nKeys.nextText,
|
|
610
|
-
"data-title-position": "right"
|
|
611
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
612
|
-
className: _AttachmentViewerModule["default"].btn,
|
|
613
|
-
"aria-label": i18nKeys.nextText
|
|
614
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
615
|
-
name: "ZD-arrowRight3",
|
|
616
|
-
iconClass: _AttachmentViewerModule["default"].arrow,
|
|
617
|
-
dataId: "rightAttachNav",
|
|
618
|
-
isBold: true
|
|
619
|
-
}))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
620
|
-
className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " "),
|
|
621
|
-
dataId: "".concat(dataId, "_attachPreviewFooter")
|
|
622
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
623
|
-
align: "vertical",
|
|
624
|
-
alignBox: "row",
|
|
625
|
-
className: _AttachmentViewerModule["default"].footerHeight
|
|
626
|
-
}, author && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
627
|
-
className: _AttachmentViewerModule["default"].author,
|
|
628
|
-
dataId: "".concat(dataId, "_authorName")
|
|
629
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
630
|
-
alignBox: "row",
|
|
631
|
-
align: "both"
|
|
632
|
-
}, /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
|
|
633
|
-
name: authorName,
|
|
634
|
-
size: "xmedium",
|
|
635
|
-
src: authorHref,
|
|
636
|
-
palette: "info"
|
|
637
|
-
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
638
|
-
flexible: true,
|
|
639
|
-
className: _AttachmentViewerModule["default"].authorName,
|
|
640
|
-
"data-title": authorName
|
|
641
|
-
}, authorName))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
642
|
-
flexible: true
|
|
643
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
644
|
-
align: "vertical",
|
|
645
|
-
alignBox: "row",
|
|
646
|
-
scroll: "horizontal",
|
|
647
|
-
eleRef: function eleRef(el) {
|
|
648
|
-
return _this6.imgListCont = el;
|
|
649
|
-
},
|
|
650
|
-
className: _AttachmentViewerModule["default"].listContainer
|
|
651
|
-
}, data.map(function (item, index) {
|
|
652
|
-
var name = item.name,
|
|
653
|
-
viewUrl = item.viewUrl,
|
|
654
|
-
children = item.children,
|
|
655
|
-
_item$customClass = item.customClass,
|
|
656
|
-
customClass = _item$customClass === void 0 ? {} : _item$customClass,
|
|
657
|
-
_item$dataId = item.dataId,
|
|
658
|
-
dataId = _item$dataId === void 0 ? 'AttachmentImage' : _item$dataId,
|
|
659
|
-
_item$customProps = item.customProps,
|
|
660
|
-
customProps = _item$customProps === void 0 ? {} : _item$customProps;
|
|
661
|
-
var thumbnail = item.thumbnail;
|
|
662
|
-
var _customClass$customIm2 = customClass.customImageClass,
|
|
663
|
-
customImageClass = _customClass$customIm2 === void 0 ? '' : _customClass$customIm2,
|
|
664
|
-
_customClass$customCh2 = customClass.customChildrenClass,
|
|
665
|
-
customChildrenClass = _customClass$customCh2 === void 0 ? '' : _customClass$customCh2;
|
|
666
|
-
thumbnail = (0, _Attachment.isAudioFile)(name) ? thumbnail || _audio_thumbnail["default"] : thumbnail; //fallback thumbnail for audio
|
|
667
|
-
|
|
668
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
669
|
-
className: "".concat(_AttachmentViewerModule["default"].imgItem, " ").concat(index === selectedIndex ? _AttachmentViewerModule["default"].selected : ''),
|
|
670
|
-
key: index,
|
|
671
|
-
onClick: _this6.changeSelectedIndex.bind(_this6, index),
|
|
672
|
-
eleRef: function eleRef(el) {
|
|
673
|
-
return _this6["img_".concat(index)] = el;
|
|
674
|
-
},
|
|
675
|
-
dataId: "attachPreviewList",
|
|
676
|
-
"data-title": name
|
|
677
|
-
}, /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
|
|
678
|
-
src: thumbnail || viewUrl,
|
|
679
|
-
size: "small",
|
|
680
|
-
alt: name,
|
|
681
|
-
customClass: {
|
|
682
|
-
customImageClass: "".concat(_AttachmentViewerModule["default"].image, " ").concat(_AttachmentViewerModule["default"].altText, " ").concat(customImageClass),
|
|
683
|
-
customChildrenClass: "".concat(_AttachmentViewerModule["default"].crsrPointer, " ").concat(customChildrenClass)
|
|
684
|
-
},
|
|
685
|
-
dataId: dataId
|
|
686
|
-
}, customProps), children));
|
|
687
|
-
}))))), totalLen !== 1 && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
688
|
-
dataId: "attachToggle",
|
|
689
|
-
onClick: _this6.togglePViewList,
|
|
690
|
-
iconName: "ZD-GN-hideTab",
|
|
691
|
-
iconSize: "14",
|
|
692
|
-
hoverType: "border",
|
|
693
|
-
iconClass: "".concat(_AttachmentViewerModule["default"].thumpIcon, " ").concat(isPViewListOpen ? _AttachmentViewerModule["default"].thumpIconActive : ''),
|
|
694
|
-
className: _AttachmentViewerModule["default"].button,
|
|
695
|
-
a11y: {
|
|
696
|
-
ariaLabel: i18nKeys.hideText
|
|
697
|
-
},
|
|
698
|
-
title: isPViewListOpen ? i18nKeys.hideText : i18nKeys.showText
|
|
699
|
-
}));
|
|
700
|
-
}));
|
|
701
|
-
}
|
|
702
|
-
}]);
|
|
703
|
-
|
|
704
|
-
return AttachmentViewer;
|
|
705
|
-
}(_react.Component);
|
|
706
|
-
|
|
707
|
-
exports["default"] = AttachmentViewer;
|
|
708
|
-
AttachmentViewer.propTypes = _propTypes.AttachmentViewer_propTypes;
|
|
709
|
-
AttachmentViewer.defaultProps = _defaultProps.AttachmentViewer_defaultProps; // if (__DOCS__) {
|
|
710
|
-
// AttachmentViewer.docs = {
|
|
711
|
-
// componentGroup: "Molecule"
|
|
712
|
-
// };
|
|
713
|
-
// }
|