@zohodesk/dot 1.9.2 → 1.9.3
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 +15 -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 +5 -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/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,71 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { FieldCommonPropTypes } from "../../props/FieldCommonPropTypes";
|
|
3
|
-
export const propTypes = {
|
|
4
|
-
fieldProperties: PropTypes.shape({
|
|
5
|
-
id: PropTypes.string.isRequired,
|
|
6
|
-
labelName: PropTypes.string,
|
|
7
|
-
isMandatory: PropTypes.bool,
|
|
8
|
-
isDisabled: PropTypes.bool,
|
|
9
|
-
isReadOnly: PropTypes.bool,
|
|
10
|
-
value: PropTypes.string,
|
|
11
|
-
selectedValueCount: PropTypes.string,
|
|
12
|
-
validationMessage: PropTypes.string,
|
|
13
|
-
options: PropTypes.array,
|
|
14
|
-
clickableTag: PropTypes.bool,
|
|
15
|
-
infoText: PropTypes.string,
|
|
16
|
-
isLocked: PropTypes.bool,
|
|
17
|
-
lockedInfoText: PropTypes.string,
|
|
18
|
-
alignField: PropTypes.oneOf(['vertical', 'baseline'])
|
|
19
|
-
}),
|
|
20
|
-
styleProperties: PropTypes.shape({
|
|
21
|
-
labelSize: PropTypes.string,
|
|
22
|
-
labelPalette: PropTypes.string,
|
|
23
|
-
labelClass: PropTypes.string,
|
|
24
|
-
containerClass: PropTypes.string,
|
|
25
|
-
needBorder: PropTypes.bool,
|
|
26
|
-
borderColor: PropTypes.string,
|
|
27
|
-
validationPalette: PropTypes.string,
|
|
28
|
-
errorType: PropTypes.string
|
|
29
|
-
}),
|
|
30
|
-
actions: PropTypes.shape({
|
|
31
|
-
onChange: PropTypes.func,
|
|
32
|
-
onAdd: PropTypes.func,
|
|
33
|
-
onDelete: PropTypes.func,
|
|
34
|
-
onScroll: PropTypes.func,
|
|
35
|
-
onFocus: PropTypes.func
|
|
36
|
-
}),
|
|
37
|
-
isNewNeeded: PropTypes.bool,
|
|
38
|
-
htmlId: PropTypes.string,
|
|
39
|
-
isLoading: PropTypes.bool,
|
|
40
|
-
isListDisabled: PropTypes.bool,
|
|
41
|
-
numberOfDisplayedValues: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
42
|
-
getTextBoxChildren: PropTypes.func,
|
|
43
|
-
children: PropTypes.node,
|
|
44
|
-
i18nKeys: PropTypes.object,
|
|
45
|
-
noMoreData: PropTypes.bool,
|
|
46
|
-
position: PropTypes.string,
|
|
47
|
-
getContainerRef: PropTypes.func,
|
|
48
|
-
getTargetRef: PropTypes.func,
|
|
49
|
-
customProps: PropTypes.shape({
|
|
50
|
-
LabelProps: PropTypes.object,
|
|
51
|
-
TagsMultiSelectProps: PropTypes.object,
|
|
52
|
-
ValidationMessageProps: PropTypes.object
|
|
53
|
-
}),
|
|
54
|
-
ePhiData: PropTypes.shape({
|
|
55
|
-
ePhiTitle: PropTypes.string,
|
|
56
|
-
ePhiText: PropTypes.string,
|
|
57
|
-
ePhiStatus: PropTypes.bool
|
|
58
|
-
}),
|
|
59
|
-
searchValue: PropTypes.string,
|
|
60
|
-
isPopupOpen: PropTypes.bool,
|
|
61
|
-
isPopupReady: PropTypes.bool,
|
|
62
|
-
removeClose: PropTypes.func,
|
|
63
|
-
togglePopup: PropTypes.func,
|
|
64
|
-
clickableTag: PropTypes.bool,
|
|
65
|
-
dataId: PropTypes.string,
|
|
66
|
-
dataSelectorId: PropTypes.string,
|
|
67
|
-
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
68
|
-
isRestrictScroll: PropTypes.bool,
|
|
69
|
-
positionsOffset: PropTypes.object,
|
|
70
|
-
targetOffset: PropTypes.object
|
|
71
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**** Libraries ****/
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
/**** Components ****/
|
|
6
|
-
|
|
7
|
-
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
|
-
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
9
|
-
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
|
-
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
11
|
-
import FieldContainer from "../FieldContainer/FieldContainer";
|
|
12
|
-
/**** CSS ****/
|
|
13
|
-
|
|
14
|
-
import style from "../../../../form/fields/Fields.module.css";
|
|
15
|
-
|
|
16
|
-
const TextBoxField = props => {
|
|
17
|
-
const {
|
|
18
|
-
labelName,
|
|
19
|
-
id,
|
|
20
|
-
textBoxSize,
|
|
21
|
-
textBoxVariant,
|
|
22
|
-
textBoxType,
|
|
23
|
-
isMandatory,
|
|
24
|
-
validationMessage,
|
|
25
|
-
validationPalette,
|
|
26
|
-
maxLength,
|
|
27
|
-
isReadOnly,
|
|
28
|
-
value,
|
|
29
|
-
errorType,
|
|
30
|
-
isDisabled,
|
|
31
|
-
title,
|
|
32
|
-
onBlur,
|
|
33
|
-
dataId,
|
|
34
|
-
dataSelectorId,
|
|
35
|
-
validationRuleMessage,
|
|
36
|
-
validationRulePalette,
|
|
37
|
-
onKeyDown,
|
|
38
|
-
placeHolder,
|
|
39
|
-
infoText,
|
|
40
|
-
borderColor,
|
|
41
|
-
fieldSize,
|
|
42
|
-
labelPalette,
|
|
43
|
-
labelCustomClass,
|
|
44
|
-
htmlId,
|
|
45
|
-
lockedInfoText,
|
|
46
|
-
isLocked,
|
|
47
|
-
needReadOnlyStyle,
|
|
48
|
-
isClickable,
|
|
49
|
-
onFocus,
|
|
50
|
-
ePhiData,
|
|
51
|
-
children,
|
|
52
|
-
customProps,
|
|
53
|
-
renderLabelProps,
|
|
54
|
-
onChange,
|
|
55
|
-
getRef
|
|
56
|
-
} = props;
|
|
57
|
-
const {
|
|
58
|
-
LabelProps = {},
|
|
59
|
-
TextBoxIconProps = {},
|
|
60
|
-
ValidationMessageProps1 = {},
|
|
61
|
-
ValidationMessageProps2 = {}
|
|
62
|
-
} = customProps;
|
|
63
|
-
const getNextId = useUniqueId();
|
|
64
|
-
let uniqueId = htmlId ? htmlId : getNextId();
|
|
65
|
-
|
|
66
|
-
const handleChange = value => {
|
|
67
|
-
onChange && onChange(id, value);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const handleGetRef = el => {
|
|
71
|
-
getRef && getRef(el, id);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
76
|
-
"data-title": isDisabled ? title : null,
|
|
77
|
-
"data-selector-id": dataSelectorId
|
|
78
|
-
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
79
|
-
infoText: infoText,
|
|
80
|
-
isLocked: isLocked,
|
|
81
|
-
lockedInfoText: lockedInfoText,
|
|
82
|
-
ePhiData: ePhiData,
|
|
83
|
-
dataId: dataId,
|
|
84
|
-
renderProps: renderLabelProps
|
|
85
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
86
|
-
text: labelName,
|
|
87
|
-
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
88
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
89
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
90
|
-
htmlFor: uniqueId,
|
|
91
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
92
|
-
...LabelProps,
|
|
93
|
-
id: labelName
|
|
94
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
96
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
97
|
-
htmlId: uniqueId,
|
|
98
|
-
id: id,
|
|
99
|
-
type: textBoxType,
|
|
100
|
-
variant: textBoxVariant,
|
|
101
|
-
size: fieldSize === 'medium' ? textBoxSize : 'xsmall',
|
|
102
|
-
maxLength: maxLength,
|
|
103
|
-
isReadOnly: isReadOnly,
|
|
104
|
-
inputRef: handleGetRef,
|
|
105
|
-
value: value,
|
|
106
|
-
onChange: handleChange,
|
|
107
|
-
dataId: dataId,
|
|
108
|
-
onBlur: onBlur,
|
|
109
|
-
onKeyDown: onKeyDown,
|
|
110
|
-
placeHolder: placeHolder,
|
|
111
|
-
borderColor: borderColor,
|
|
112
|
-
onFocus: onFocus,
|
|
113
|
-
isDisabled: isDisabled,
|
|
114
|
-
needEffect: isReadOnly || isDisabled ? false : true,
|
|
115
|
-
isClickable: isClickable,
|
|
116
|
-
needReadOnlyStyle: needReadOnlyStyle,
|
|
117
|
-
...TextBoxIconProps,
|
|
118
|
-
a11y: {
|
|
119
|
-
ariaLabelledby: labelName
|
|
120
|
-
}
|
|
121
|
-
}, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
122
|
-
text: validationMessage,
|
|
123
|
-
palette: validationPalette,
|
|
124
|
-
type: errorType,
|
|
125
|
-
dataId: `${dataId}_ValidationMessage`,
|
|
126
|
-
htmlFor: uniqueId,
|
|
127
|
-
...ValidationMessageProps1
|
|
128
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
129
|
-
text: validationRuleMessage,
|
|
130
|
-
palette: validationRulePalette,
|
|
131
|
-
type: errorType,
|
|
132
|
-
htmlFor: uniqueId,
|
|
133
|
-
dataId: `${dataId}_ValidationRuleMessage`,
|
|
134
|
-
...ValidationMessageProps2
|
|
135
|
-
})));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
TextBoxField.propTypes = propTypes;
|
|
139
|
-
TextBoxField.defaultProps = defaultProps;
|
|
140
|
-
const MemoizedTextBoxField = /*#__PURE__*/memo(TextBoxField);
|
|
141
|
-
MemoizedTextBoxField.propTypes = propTypes;
|
|
142
|
-
MemoizedTextBoxField.defaultProps = defaultProps;
|
|
143
|
-
MemoizedTextBoxField.displayName = 'TextBoxField';
|
|
144
|
-
export default TextBoxField;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldCommonDefaultProps } from "../../props/FieldCommonDefaultProps";
|
|
2
|
-
export const defaultProps = {
|
|
3
|
-
errorType: 'primary',
|
|
4
|
-
textBoxSize: 'xmedium',
|
|
5
|
-
textBoxType: 'text',
|
|
6
|
-
textBoxVariant: 'primary',
|
|
7
|
-
borderColor: 'default',
|
|
8
|
-
fieldSize: 'medium',
|
|
9
|
-
// isFocusOnLabelClick: true,
|
|
10
|
-
labelPalette: 'default',
|
|
11
|
-
labelCustomClass: '',
|
|
12
|
-
isClickable: false,
|
|
13
|
-
needReadOnlyStyle: true,
|
|
14
|
-
customProps: {},
|
|
15
|
-
dataSelectorId: 'textBoxField',
|
|
16
|
-
...FieldCommonDefaultProps()
|
|
17
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FieldCommonPropTypes } from "../../props/FieldCommonPropTypes";
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export const propTypes = {
|
|
4
|
-
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
5
|
-
errorType: PropTypes.oneOf(['primary', 'secondary']),
|
|
6
|
-
fieldSize: PropTypes.oneOf(['small', 'medium']),
|
|
7
|
-
getRef: PropTypes.func,
|
|
8
|
-
id: PropTypes.string,
|
|
9
|
-
// isFocusOnLabelClick: PropTypes.bool,
|
|
10
|
-
labelCustomClass: PropTypes.string,
|
|
11
|
-
labelName: PropTypes.string.isRequired,
|
|
12
|
-
labelPalette: PropTypes.string,
|
|
13
|
-
maxLength: PropTypes.number,
|
|
14
|
-
onBlur: PropTypes.func,
|
|
15
|
-
onChange: PropTypes.func,
|
|
16
|
-
onKeyDown: PropTypes.func,
|
|
17
|
-
placeHolder: PropTypes.string,
|
|
18
|
-
textBoxSize: PropTypes.string,
|
|
19
|
-
textBoxType: PropTypes.string,
|
|
20
|
-
textBoxVariant: PropTypes.string,
|
|
21
|
-
title: PropTypes.string,
|
|
22
|
-
validationMessage: PropTypes.string,
|
|
23
|
-
validationPalette: PropTypes.string,
|
|
24
|
-
validationRuleMessage: PropTypes.string,
|
|
25
|
-
validationRulePalette: PropTypes.string,
|
|
26
|
-
value: PropTypes.string,
|
|
27
|
-
isClickable: PropTypes.bool,
|
|
28
|
-
needReadOnlyStyle: PropTypes.bool,
|
|
29
|
-
children: PropTypes.node,
|
|
30
|
-
customProps: PropTypes.shape({
|
|
31
|
-
LabelProps: PropTypes.object,
|
|
32
|
-
TextBoxIconProps: PropTypes.object,
|
|
33
|
-
ValidationMessageProps1: PropTypes.object,
|
|
34
|
-
ValidationMessageProps2: PropTypes.object
|
|
35
|
-
}),
|
|
36
|
-
htmlId: PropTypes.string,
|
|
37
|
-
onFocus: PropTypes.func,
|
|
38
|
-
ePhiData: PropTypes.shape({
|
|
39
|
-
ePhiTitle: PropTypes.string,
|
|
40
|
-
ePhiText: PropTypes.string,
|
|
41
|
-
ePhiStatus: PropTypes.bool
|
|
42
|
-
}),
|
|
43
|
-
...FieldCommonPropTypes
|
|
44
|
-
};
|
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
/***** Libraries *****/
|
|
2
|
-
import React, { Component } from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
import selectn from 'selectn';
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
-
/***** Methods *****/
|
|
8
|
-
|
|
9
|
-
import { bind, editorContentValidate, fixEncoding, isFileNameSizeInvalid, isImageFormat, triggerKeyup, getRichEditorContent, changeContent, validateEditorContentOnInsertHtml, loadResource } from "../../../../utils/editorUtils"; //import './ZohoDeskEditor_Init';
|
|
10
|
-
|
|
11
|
-
/***** components *****/
|
|
12
|
-
|
|
13
|
-
import styles from "../../../../form/fields/TextEditor/TextEditor.module.css";
|
|
14
|
-
/* eslint-disable camelcase */
|
|
15
|
-
|
|
16
|
-
/* eslint-disable no-undef */
|
|
17
|
-
|
|
18
|
-
/* eslint-disable react/no-deprecated */
|
|
19
|
-
|
|
20
|
-
export default class TextEditor extends Component {
|
|
21
|
-
constructor(props) {
|
|
22
|
-
super(props);
|
|
23
|
-
this.state = {
|
|
24
|
-
isEditorLoad: false,
|
|
25
|
-
isResourceLoaded: false,
|
|
26
|
-
isEditorShow: false
|
|
27
|
-
};
|
|
28
|
-
let methods = ['editorCallback', 'handleUpload', 'handleChange', 'focusCallback', 'handleInlineUpload', // 'handleDropUpload',
|
|
29
|
-
'blurCallback', 'handleGetContent', 'initializeEditor', 'clearEditorData', 'plainTextSwitchCallback', 'onWindowClick', 'toggleEditor'];
|
|
30
|
-
bind.apply(this, methods);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
componentDidMount() {
|
|
34
|
-
this.mount = true;
|
|
35
|
-
|
|
36
|
-
if (typeof global.ZohoDeskEditor === 'undefined') {
|
|
37
|
-
loadResource(this.props.EDITORURL, 'js', 'ZohoDeskEditor').then(() => {
|
|
38
|
-
this.setState({
|
|
39
|
-
isResourceLoaded: true
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
this.setState({
|
|
44
|
-
isResourceLoaded: true
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
window.addEventListener('click', this.onWindowClick);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
initializeEditor(id, mode) {
|
|
52
|
-
let {
|
|
53
|
-
value,
|
|
54
|
-
editorMode = '',
|
|
55
|
-
editorOptions = {},
|
|
56
|
-
needEditorFocus = true,
|
|
57
|
-
// handleDropUpload,
|
|
58
|
-
fontFamily,
|
|
59
|
-
fontSize,
|
|
60
|
-
initCallback,
|
|
61
|
-
handleAlertMessage,
|
|
62
|
-
needInlineAttachment,
|
|
63
|
-
customInitOption
|
|
64
|
-
} = this.props;
|
|
65
|
-
|
|
66
|
-
if (id && global.ZohoDeskEditor) {
|
|
67
|
-
let defaultObj = {
|
|
68
|
-
id,
|
|
69
|
-
content: fixEncoding(value),
|
|
70
|
-
callback: this.editorCallback,
|
|
71
|
-
imageuploadcallback: this.handleInlineUpload,
|
|
72
|
-
// handleInlineDropImage: handleDropUpload ? this.handleDropUpload : undefined,
|
|
73
|
-
contentChanged: this.handleChange,
|
|
74
|
-
focusCallback: this.focusCallback,
|
|
75
|
-
lineHeight: 'Normal',
|
|
76
|
-
backgroundColor: 'transparent',
|
|
77
|
-
defaultfontsize: '14px',
|
|
78
|
-
allowTagsInsertHTML: ['iframe'],
|
|
79
|
-
allowAttrsInsertHTML: ['frameborder', 'allowfullscreen'],
|
|
80
|
-
needEditorFocus,
|
|
81
|
-
blurCallback: this.blurCallback,
|
|
82
|
-
mode,
|
|
83
|
-
handleAlertMessage: handleAlertMessage,
|
|
84
|
-
plainTextSwitchCallback: this.plainTextSwitchCallback,
|
|
85
|
-
imgAspect: true,
|
|
86
|
-
handleInlineDropImage: needInlineAttachment ? this.handleInlineUpload : null,
|
|
87
|
-
needInlineAttachHandling: needInlineAttachment,
|
|
88
|
-
hookOnInsertHTML: validateEditorContentOnInsertHtml,
|
|
89
|
-
needCustomPaste: function (event, editorObj) {
|
|
90
|
-
return true; // By default reply editor needs customPaste, so returning true.
|
|
91
|
-
},
|
|
92
|
-
htmlVersion: '<!Doctype html>'
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
if (!customInitOption) {
|
|
96
|
-
if (!ZohoDeskEditor_Init.init) {
|
|
97
|
-
global.editorInitialize && global.editorInitialize();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback, fontSize);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
defaultObj = Object.assign(defaultObj, editorOptions);
|
|
104
|
-
const globalEditor = global.ZohoDeskEditor;
|
|
105
|
-
globalEditor && typeof globalEditor.create == 'function' && globalEditor.create(defaultObj, customInitOption);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
plainTextSwitchCallback() {
|
|
110
|
-
let {
|
|
111
|
-
plainTextSwitchCallback,
|
|
112
|
-
id
|
|
113
|
-
} = this.props;
|
|
114
|
-
let content = this.handleGetContent();
|
|
115
|
-
plainTextSwitchCallback && plainTextSwitchCallback(content, id);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
clearEditorData(id) {
|
|
119
|
-
let {
|
|
120
|
-
getRef
|
|
121
|
-
} = this.props;
|
|
122
|
-
|
|
123
|
-
if (global.editor && global.editor[id]) {
|
|
124
|
-
delete global.editor[id];
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
getRef && getRef(null);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
UNSAFE_componentWillReceiveProps(np) {
|
|
131
|
-
let {
|
|
132
|
-
changeEditorContent
|
|
133
|
-
} = this.props;
|
|
134
|
-
let id = np.id;
|
|
135
|
-
let editorObj = global.editor ? global.editor[id] ? global.editor[id] : {} : {};
|
|
136
|
-
|
|
137
|
-
if (np.isEmptyContent && editorObj) {
|
|
138
|
-
editorObj.setContent('');
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (typeof changeEditorContent !== 'undefined' && np.changeEditorContent != changeEditorContent && np.changeEditorContent) {
|
|
142
|
-
changeContent(id, np.value);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
componentDidUpdate(prevProps, prevState) {
|
|
147
|
-
let {
|
|
148
|
-
id,
|
|
149
|
-
value,
|
|
150
|
-
shouldUpdateContent,
|
|
151
|
-
mode
|
|
152
|
-
} = this.props;
|
|
153
|
-
let {
|
|
154
|
-
isResourceLoaded
|
|
155
|
-
} = this.state;
|
|
156
|
-
|
|
157
|
-
if (prevProps.id !== id) {
|
|
158
|
-
global.editor[id] = global.editor[prevProps.id];
|
|
159
|
-
delete global.editor[prevProps.id];
|
|
160
|
-
shouldUpdateContent && changeContent(id, value);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (prevState.isResourceLoaded !== isResourceLoaded && isResourceLoaded) {
|
|
164
|
-
this.initializeEditor(id, mode);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
componentWillUnmount() {
|
|
169
|
-
this.mount = false;
|
|
170
|
-
this.clearEditorData(this.props.id);
|
|
171
|
-
window.removeEventListener('click', this.onWindowClick);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
focusCallback() {
|
|
175
|
-
let {
|
|
176
|
-
onFocus
|
|
177
|
-
} = this.props;
|
|
178
|
-
onFocus && onFocus();
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
handleGetContent() {
|
|
182
|
-
let {
|
|
183
|
-
id
|
|
184
|
-
} = this.props;
|
|
185
|
-
let editorObj = global.editor[id] ? global.editor[id] : {};
|
|
186
|
-
let content = getRichEditorContent(id);
|
|
187
|
-
|
|
188
|
-
if (!editorContentValidate(editorObj)) {
|
|
189
|
-
content = '';
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
content = content.trim();
|
|
193
|
-
return content;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
handleChange() {
|
|
197
|
-
let {
|
|
198
|
-
onChange,
|
|
199
|
-
id
|
|
200
|
-
} = this.props;
|
|
201
|
-
|
|
202
|
-
if (onChange) {
|
|
203
|
-
let content = this.handleGetContent();
|
|
204
|
-
onChange(content, id);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
editorCallback(editorObj) {
|
|
209
|
-
let {
|
|
210
|
-
editorCallback,
|
|
211
|
-
getRef,
|
|
212
|
-
isCustomScroll,
|
|
213
|
-
customCSS
|
|
214
|
-
} = this.props;
|
|
215
|
-
this.setState({
|
|
216
|
-
isEditorLoad: true,
|
|
217
|
-
isEditorShow: true
|
|
218
|
-
});
|
|
219
|
-
let {
|
|
220
|
-
id
|
|
221
|
-
} = this.props;
|
|
222
|
-
global.editor = global.editor || {};
|
|
223
|
-
|
|
224
|
-
if (!global.editor[id]) {
|
|
225
|
-
global.editor[id] = editorObj;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
editorCallback && editorCallback(editorObj);
|
|
229
|
-
const iframe = selectn('iframe.contentDocument.body', editorObj) || null;
|
|
230
|
-
const iframeHead = selectn('iframe.contentDocument.head', editorObj) || null;
|
|
231
|
-
getRef && getRef(iframe);
|
|
232
|
-
|
|
233
|
-
if (iframe) {
|
|
234
|
-
iframe.addEventListener('click', () => editorObj.iframe.click());
|
|
235
|
-
|
|
236
|
-
if (isCustomScroll) {
|
|
237
|
-
let link = document.createElement('style');
|
|
238
|
-
link.innerText = "body{font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 0}.scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
|
|
239
|
-
iframeHead.appendChild(link);
|
|
240
|
-
iframe.classList.add('scroll');
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
let customStyleTag = document.createElement('style');
|
|
244
|
-
customStyleTag.type = 'text/css';
|
|
245
|
-
const customizedCSS = `pre {white-space: pre-wrap} ${customCSS}`;
|
|
246
|
-
const fontCSS = `@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: Regular;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'RobotoRegular';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}
|
|
247
|
-
@font-face {font-family: 'ZohoPuvi';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: ZDLato;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'Roboto';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}`;
|
|
248
|
-
customStyleTag.textContent = `${customizedCSS} ${fontCSS}`;
|
|
249
|
-
iframeHead.appendChild(customStyleTag);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
handleInlineUpload(file, successCallback, failureCallback, mode, editorObj) {
|
|
254
|
-
let {
|
|
255
|
-
id,
|
|
256
|
-
setInlineAttachmentInProgress: progress,
|
|
257
|
-
i18nKeys,
|
|
258
|
-
inlineImageProps
|
|
259
|
-
} = this.props;
|
|
260
|
-
const {
|
|
261
|
-
fileUploadError,
|
|
262
|
-
fileNotSupported,
|
|
263
|
-
fileSizeLimitExceed,
|
|
264
|
-
fileEmptyError,
|
|
265
|
-
fileNameLimitExceed
|
|
266
|
-
} = i18nKeys;
|
|
267
|
-
const {
|
|
268
|
-
allowedFileExtensions = ["jpeg", "jpg", "png", "gif", "bmp", "ico"],
|
|
269
|
-
fileNameMaxCharacters = 200,
|
|
270
|
-
fileSizeMaxBytes = 3 * 1024 * 1024
|
|
271
|
-
} = inlineImageProps;
|
|
272
|
-
|
|
273
|
-
if (!isFileNameSizeInvalid(file.name, fileNameMaxCharacters)) {
|
|
274
|
-
if (file.size != 0) {
|
|
275
|
-
if (file.size <= fileSizeMaxBytes) {
|
|
276
|
-
if (isImageFormat(file.name, allowedFileExtensions)) {
|
|
277
|
-
progress && progress(true);
|
|
278
|
-
this.handleUpload(file).then(res => {
|
|
279
|
-
successCallback(res);
|
|
280
|
-
progress && progress(false);
|
|
281
|
-
|
|
282
|
-
if (id && editorObj) {
|
|
283
|
-
triggerKeyup(editorObj.doc);
|
|
284
|
-
}
|
|
285
|
-
}, () => {
|
|
286
|
-
failureCallback(fileUploadError);
|
|
287
|
-
});
|
|
288
|
-
} else {
|
|
289
|
-
failureCallback(fileNotSupported);
|
|
290
|
-
}
|
|
291
|
-
} else {
|
|
292
|
-
failureCallback(fileSizeLimitExceed);
|
|
293
|
-
}
|
|
294
|
-
} else {
|
|
295
|
-
failureCallback(fileEmptyError);
|
|
296
|
-
}
|
|
297
|
-
} else {
|
|
298
|
-
failureCallback(fileNameLimitExceed);
|
|
299
|
-
}
|
|
300
|
-
} // handleDropUpload(file, successCallback, failureCallback) {
|
|
301
|
-
// let e = { target: { files: [file] } };
|
|
302
|
-
// let { handleDropUpload } = this.props;
|
|
303
|
-
// handleDropUpload(e).then(
|
|
304
|
-
// (res) => {
|
|
305
|
-
// successCallback(res);
|
|
306
|
-
// },
|
|
307
|
-
// () => {
|
|
308
|
-
// failureCallback();
|
|
309
|
-
// }
|
|
310
|
-
// );
|
|
311
|
-
// }
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
blurCallback() {
|
|
315
|
-
let {
|
|
316
|
-
blurCallback
|
|
317
|
-
} = this.props;
|
|
318
|
-
let content = this.handleGetContent();
|
|
319
|
-
blurCallback && blurCallback(content);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
handleUpload(file) {
|
|
323
|
-
let {
|
|
324
|
-
onUpload,
|
|
325
|
-
editorMode,
|
|
326
|
-
getCSRFCookieName,
|
|
327
|
-
getCSRFCookie
|
|
328
|
-
} = this.props;
|
|
329
|
-
|
|
330
|
-
try {
|
|
331
|
-
let formData = new FormData();
|
|
332
|
-
formData.append('img_file', file, file.name);
|
|
333
|
-
|
|
334
|
-
if (getCSRFCookieName && getCSRFCookie) {
|
|
335
|
-
formData.append(getCSRFCookieName(), getCSRFCookie());
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
return onUpload(formData, file);
|
|
339
|
-
} catch (err) {
|
|
340
|
-
return Promise.reject();
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
onWindowClick(e) {
|
|
345
|
-
let {
|
|
346
|
-
isEditorDefaultOpen
|
|
347
|
-
} = this.props;
|
|
348
|
-
let element = e.target;
|
|
349
|
-
|
|
350
|
-
if (!element.closest('[data-isEditor]') && !element.closest("[id='KB_Editor_UploadImage_Popup']") && !element.closest("[id='KB_Editor_Overlay']") && !element.closest('.zdeskEditor_popup') && element && typeof element.className === 'string' && !element.className.startsWith('KB') && !element.hasAttribute('data-insertoptions') && !element.closest('.KB_Editor_common_DropDown')) {
|
|
351
|
-
let {
|
|
352
|
-
value = '',
|
|
353
|
-
id
|
|
354
|
-
} = this.props;
|
|
355
|
-
let cont = value;
|
|
356
|
-
|
|
357
|
-
if (typeof editor !== 'undefined') {
|
|
358
|
-
cont = editor['addFormEditor'] && editor['addFormEditor'].getContent();
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (!isEditorDefaultOpen) {
|
|
362
|
-
if ((cont == '' || cont == '<div><br></div>') && this.mount) {
|
|
363
|
-
this.toggleEditor(false);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
toggleEditor(value) {
|
|
370
|
-
let {
|
|
371
|
-
toggleEdit
|
|
372
|
-
} = this.props;
|
|
373
|
-
toggleEdit && toggleEdit(value);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
render() {
|
|
377
|
-
let {
|
|
378
|
-
id,
|
|
379
|
-
dataId,
|
|
380
|
-
type,
|
|
381
|
-
border,
|
|
382
|
-
ImgLazyLoad,
|
|
383
|
-
loadingComponent,
|
|
384
|
-
isNightMode,
|
|
385
|
-
isReadOnly,
|
|
386
|
-
dataSelectorId,
|
|
387
|
-
isDisabled
|
|
388
|
-
} = this.props;
|
|
389
|
-
let {
|
|
390
|
-
isEditorLoad,
|
|
391
|
-
isEditorShow
|
|
392
|
-
} = this.state;
|
|
393
|
-
let editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
|
|
394
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
395
|
-
className: `${styles.textEditor} ${styles[type]} ${styles[border]}
|
|
396
|
-
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${isReadOnly || isDisabled ? styles.disable : ''} ${!isEditorShow ? styles.editorHide : ''}`,
|
|
397
|
-
dataId: dataId,
|
|
398
|
-
"data-isEditor": true,
|
|
399
|
-
dataSelectorId: dataSelectorId
|
|
400
|
-
}, loadingComponent && !isEditorLoad ? loadingComponent : null, /*#__PURE__*/React.createElement(Box, {
|
|
401
|
-
flexible: true,
|
|
402
|
-
id: id,
|
|
403
|
-
dataId: dataId
|
|
404
|
-
}), editorDoc && ImgLazyLoad ? /*#__PURE__*/React.createElement(ImgLazyLoad, {
|
|
405
|
-
node: editorDoc
|
|
406
|
-
}) : null, isReadOnly || isDisabled ? /*#__PURE__*/React.createElement("div", {
|
|
407
|
-
className: styles.readOnlyMask
|
|
408
|
-
}) : null);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
TextEditor.defaultProps = defaultProps;
|
|
413
|
-
TextEditor.propTypes = propTypes; // if (__DOCS__) {
|
|
414
|
-
// TextEditor.docs = {
|
|
415
|
-
// componentGroup: 'Fields',
|
|
416
|
-
// folderName: 'TextEditor'
|
|
417
|
-
// };
|
|
418
|
-
// }
|