@zohodesk/dot 1.2.4 → 1.3.0
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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +9 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +12 -12
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +1 -1
- package/es/Drawer/Drawer.js +3 -2
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
- package/es/v1/Attachment/Attachment.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +1 -1
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +1 -1
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
- package/es/v1/form/fields/DateField/DateField.js +131 -162
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
- package/es/v1/form/fields/RadioField/RadioField.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +3 -3
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -3
- package/es/v1/lookup/Section/Section.js +1 -1
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/Drawer/Drawer.js +3 -2
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +6 -6
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +1 -1
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +1 -1
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
- package/lib/v1/form/fields/DateField/DateField.js +140 -206
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
- package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
- package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/lib/v1/lookup/Lookup/Lookup.js +5 -3
- package/lib/v1/lookup/Section/Section.js +1 -1
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/package.json +8 -8
- package/result.json +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -1,189 +1,161 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo, useState, useRef } from 'react';
|
|
5
5
|
import { defaultProps } from '../../../../form/fields/PhoneField/props/defaultProps';
|
|
6
6
|
import { propTypes } from '../../../../form/fields/PhoneField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { Icon } from '@zohodesk/icons';
|
|
10
|
-
import { Container, Box } from '@zohodesk/components/
|
|
10
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
11
11
|
import TextBoxField from '../TextBoxField/TextBoxField';
|
|
12
12
|
import Link from '../../../Link/Link';
|
|
13
13
|
/**** CSS ****/
|
|
14
14
|
|
|
15
15
|
import style from '../../../../form/fields/Fields.module.css';
|
|
16
16
|
import { formatPhoneUrl } from '../../../../utils/General';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
|
|
18
|
+
function PhoneField(props) {
|
|
19
|
+
let {
|
|
20
|
+
labelName,
|
|
21
|
+
id,
|
|
22
|
+
textBoxSize,
|
|
23
|
+
textBoxVariant,
|
|
24
|
+
textBoxType,
|
|
25
|
+
isMandatory,
|
|
26
|
+
validationMessage,
|
|
27
|
+
maxLength,
|
|
28
|
+
isReadOnly,
|
|
29
|
+
value,
|
|
30
|
+
errorType,
|
|
31
|
+
isDisabled,
|
|
32
|
+
title,
|
|
33
|
+
onBlur,
|
|
34
|
+
dataId,
|
|
35
|
+
dataSelectorId,
|
|
36
|
+
onKeyDown,
|
|
37
|
+
placeHolder,
|
|
38
|
+
infoText,
|
|
39
|
+
isTelephony,
|
|
40
|
+
providerName,
|
|
41
|
+
ticketId,
|
|
42
|
+
contactId,
|
|
43
|
+
borderColor,
|
|
44
|
+
fieldSize,
|
|
45
|
+
labelPalette,
|
|
46
|
+
labelCustomClass,
|
|
47
|
+
i18nKeys,
|
|
48
|
+
onCall,
|
|
49
|
+
ePhiData,
|
|
50
|
+
type,
|
|
51
|
+
onFocus,
|
|
52
|
+
onChange,
|
|
53
|
+
getRef,
|
|
54
|
+
customProps
|
|
55
|
+
} = props;
|
|
56
|
+
const {
|
|
57
|
+
TextBoxFieldProps = {},
|
|
58
|
+
LinkProps = {}
|
|
59
|
+
} = customProps;
|
|
60
|
+
const [isActive, setActive] = useState(false);
|
|
61
|
+
const textBoxElem = useRef(null);
|
|
62
|
+
let {
|
|
63
|
+
callTitle
|
|
64
|
+
} = i18nKeys;
|
|
65
|
+
let callBackparam = {
|
|
66
|
+
contact_id: contactId ? contactId : '',
|
|
67
|
+
request_id: ticketId,
|
|
68
|
+
activity_id: '',
|
|
69
|
+
entity_module: 'Requests'
|
|
70
|
+
};
|
|
71
|
+
let phoneValue = value;
|
|
72
|
+
|
|
73
|
+
if (isActive) {
|
|
74
|
+
phoneValue = value;
|
|
75
|
+
} else {
|
|
76
|
+
phoneValue = formatPhoneUrl(value);
|
|
28
77
|
}
|
|
29
78
|
|
|
30
|
-
handleChange(id, value) {
|
|
31
|
-
let {
|
|
32
|
-
onChange
|
|
33
|
-
} = this.props;
|
|
79
|
+
function handleChange(id, value) {
|
|
34
80
|
onChange && onChange(id, value);
|
|
35
81
|
}
|
|
36
82
|
|
|
37
|
-
handleGetRef(el) {
|
|
38
|
-
|
|
39
|
-
getRef,
|
|
40
|
-
id
|
|
41
|
-
} = this.props;
|
|
42
|
-
this.textBoxElem = el;
|
|
83
|
+
function handleGetRef(el) {
|
|
84
|
+
textBoxElem.current = el;
|
|
43
85
|
getRef && getRef(el, id);
|
|
44
86
|
}
|
|
45
87
|
|
|
46
|
-
focusInput(e) {
|
|
47
|
-
|
|
88
|
+
function focusInput(e) {
|
|
89
|
+
textBoxElem.current.focus();
|
|
48
90
|
}
|
|
49
91
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onFocus
|
|
53
|
-
} = this.props;
|
|
54
|
-
this.setState({
|
|
55
|
-
isActive: true
|
|
56
|
-
});
|
|
92
|
+
function handleFocus() {
|
|
93
|
+
setActive(true);
|
|
57
94
|
onFocus && onFocus();
|
|
58
95
|
}
|
|
59
96
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onBlur
|
|
63
|
-
} = this.props;
|
|
64
|
-
this.setState({
|
|
65
|
-
isActive: false
|
|
66
|
-
});
|
|
97
|
+
function handleBlur() {
|
|
98
|
+
setActive(false);
|
|
67
99
|
onBlur && onBlur();
|
|
68
100
|
}
|
|
69
101
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
102
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
103
|
+
alignBox: "row",
|
|
104
|
+
className: `${style.container} ${isDisabled ? style.disabled : ''}`,
|
|
105
|
+
"data-title": isDisabled ? title : null,
|
|
106
|
+
dataSelectorId: dataSelectorId
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
108
|
+
flexible: true
|
|
109
|
+
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
110
|
+
labelName: labelName,
|
|
111
|
+
id: id,
|
|
112
|
+
palette: isMandatory ? 'mandatory' : 'default',
|
|
113
|
+
onClick: focusInput,
|
|
114
|
+
infoText: infoText,
|
|
115
|
+
type: textBoxType,
|
|
116
|
+
textBoxVariant: textBoxVariant,
|
|
117
|
+
size: textBoxSize,
|
|
118
|
+
maxLength: maxLength,
|
|
119
|
+
isReadOnly: isReadOnly,
|
|
120
|
+
getRef: handleGetRef,
|
|
121
|
+
value: phoneValue,
|
|
122
|
+
onChange: handleChange,
|
|
123
|
+
dataId: dataId,
|
|
124
|
+
onBlur: handleBlur,
|
|
125
|
+
onFocus: handleFocus,
|
|
126
|
+
onKeyDown: onKeyDown,
|
|
127
|
+
placeHolder: placeHolder,
|
|
128
|
+
validationMessage: validationMessage,
|
|
129
|
+
borderColor: borderColor,
|
|
130
|
+
isDisabled: isDisabled,
|
|
131
|
+
fieldSize: fieldSize,
|
|
132
|
+
isMandatory: isMandatory,
|
|
133
|
+
labelPalette: labelPalette,
|
|
134
|
+
labelCustomClass: labelCustomClass,
|
|
135
|
+
errorType: errorType,
|
|
136
|
+
ePhiData: ePhiData
|
|
137
|
+
}, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
138
|
+
className: style.phoneIcon,
|
|
139
|
+
callfrom: "phone",
|
|
140
|
+
pbxname: providerName,
|
|
141
|
+
phonenum: value,
|
|
142
|
+
module: "RequestDetailsView",
|
|
143
|
+
title: callTitle,
|
|
144
|
+
callBackParam: JSON.stringify(callBackparam),
|
|
145
|
+
callto: 'RequestPhoneNumber',
|
|
146
|
+
href: true,
|
|
147
|
+
onClick: onCall,
|
|
148
|
+
type: type
|
|
149
|
+
}, LinkProps), /*#__PURE__*/React.createElement(Icon, {
|
|
150
|
+
name: "ZD-GN-phone",
|
|
151
|
+
size: "14"
|
|
152
|
+
})) : null));
|
|
153
|
+
} // const MomoizedPhoneField = memo(PhoneField);
|
|
154
|
+
// export default MomoizedPhoneField;
|
|
155
|
+
// MomoizedPhoneField.propTypes = propTypes;
|
|
156
|
+
// MomoizedPhoneField.defaultProps = defaultProps;
|
|
122
157
|
|
|
123
|
-
if (isActive) {
|
|
124
|
-
phoneValue = value;
|
|
125
|
-
} else {
|
|
126
|
-
phoneValue = formatPhoneUrl(value);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
130
|
-
alignBox: "row",
|
|
131
|
-
className: `${style.container} ${isDisabled ? style.disabled : ''}`,
|
|
132
|
-
"data-title": isDisabled ? title : null,
|
|
133
|
-
dataSelectorId: dataSelectorId
|
|
134
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
135
|
-
flexible: true
|
|
136
|
-
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
137
|
-
labelName: labelName,
|
|
138
|
-
id: id,
|
|
139
|
-
palette: isMandatory ? 'mandatory' : 'default',
|
|
140
|
-
onClick: this.focusInput,
|
|
141
|
-
infoText: infoText,
|
|
142
|
-
type: textBoxType,
|
|
143
|
-
textBoxVariant: textBoxVariant,
|
|
144
|
-
size: textBoxSize,
|
|
145
|
-
maxLength: maxLength,
|
|
146
|
-
isReadOnly: isReadOnly,
|
|
147
|
-
getRef: this.handleGetRef,
|
|
148
|
-
value: phoneValue,
|
|
149
|
-
onChange: this.handleChange,
|
|
150
|
-
dataId: dataId,
|
|
151
|
-
onBlur: this.onBlur,
|
|
152
|
-
onFocus: this.onFocus,
|
|
153
|
-
onKeyDown: onKeyDown,
|
|
154
|
-
placeHolder: placeHolder,
|
|
155
|
-
validationMessage: validationMessage,
|
|
156
|
-
borderColor: borderColor,
|
|
157
|
-
isDisabled: isDisabled,
|
|
158
|
-
fieldSize: fieldSize,
|
|
159
|
-
isMandatory: isMandatory,
|
|
160
|
-
labelPalette: labelPalette,
|
|
161
|
-
labelCustomClass: labelCustomClass,
|
|
162
|
-
errorType: errorType,
|
|
163
|
-
ePhiData: ePhiData
|
|
164
|
-
}, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
165
|
-
className: style.phoneIcon,
|
|
166
|
-
callfrom: "phone",
|
|
167
|
-
pbxname: providerName,
|
|
168
|
-
phonenum: value,
|
|
169
|
-
module: "RequestDetailsView",
|
|
170
|
-
title: callTitle,
|
|
171
|
-
callBackParam: JSON.stringify(callBackparam),
|
|
172
|
-
callto: 'RequestPhoneNumber',
|
|
173
|
-
href: true,
|
|
174
|
-
onClick: onCall,
|
|
175
|
-
type: type
|
|
176
|
-
}, LinkProps), /*#__PURE__*/React.createElement(Icon, {
|
|
177
|
-
name: "ZD-GN-phone",
|
|
178
|
-
size: "14"
|
|
179
|
-
})) : null));
|
|
180
|
-
}
|
|
181
158
|
|
|
182
|
-
}
|
|
183
159
|
PhoneField.propTypes = propTypes;
|
|
184
|
-
PhoneField.defaultProps = defaultProps;
|
|
185
|
-
|
|
186
|
-
// componentGroup: 'Form Fields',
|
|
187
|
-
// folderName: 'General'
|
|
188
|
-
// };
|
|
189
|
-
// }
|
|
160
|
+
PhoneField.defaultProps = defaultProps;
|
|
161
|
+
export default PhoneField;
|
|
@@ -6,8 +6,8 @@ import { defaultProps } from '../../../../form/fields/RadioField/props/defaultPr
|
|
|
6
6
|
import { propTypes } from '../../../../form/fields/RadioField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
10
|
-
import Radio from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
|
+
import Radio from '@zohodesk/components/es/v1/Radio/Radio';
|
|
11
11
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
12
|
/** Css */
|
|
13
13
|
|
|
@@ -6,10 +6,10 @@ import { defaultProps } from '../../../../form/fields/SelectField/props/defaultP
|
|
|
6
6
|
import { propTypes } from '../../../../form/fields/SelectField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
10
|
-
import Select from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
|
+
import Select from '@zohodesk/components/es/v1/Select/Select';
|
|
11
11
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { getUniqueId } from '@zohodesk/components/
|
|
12
|
+
import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
13
13
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
14
|
/**** props ****/
|
|
15
15
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../form/fields/TagsMultiSelect/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../form/fields/TagsMultiSelect/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
-
import Tag from '@zohodesk/components/
|
|
6
|
-
import TextBoxIcon from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import Tag from '@zohodesk/components/es/v1/Tag/Tag';
|
|
6
|
+
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
7
7
|
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
8
|
-
import ListItem from '@zohodesk/components/
|
|
8
|
+
import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
|
|
9
9
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
10
|
-
import DropDownSeparator from '@zohodesk/components/
|
|
10
|
+
import DropDownSeparator from '@zohodesk/components/es/v1/DropDown/DropDownSeparator';
|
|
11
11
|
import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
12
|
-
import ResponsiveDropBox from '@zohodesk/components/
|
|
13
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
12
|
+
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
|
|
14
14
|
import { stopBubbling } from '../../../../utils/General';
|
|
15
|
-
import { scrollTo, findScrollEnd } from '@zohodesk/components/
|
|
15
|
+
import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common.js';
|
|
16
16
|
import style from '../../../../form/fields/TagsMultiSelect/TagsMultiSelect.module.css';
|
|
17
17
|
export default class TagsMultiSelect extends React.Component {
|
|
18
18
|
constructor(props) {
|
|
@@ -3,9 +3,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { defaultProps } from '../../../../form/fields/TagsMultiSelectField/props/defaultProps';
|
|
5
5
|
import { propTypes } from '../../../../form/fields/TagsMultiSelectField/props/propTypes';
|
|
6
|
-
import { Box } from '@zohodesk/components/
|
|
7
|
-
import Label from '@zohodesk/components/
|
|
8
|
-
import Popup from '@zohodesk/components/
|
|
6
|
+
import { Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
|
+
import Popup from '@zohodesk/components/es/v1/Popup/Popup';
|
|
9
9
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
10
10
|
import TagsMultiSelect from '../TagsMultiSelect/TagsMultiSelect';
|
|
11
11
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
@@ -249,9 +249,12 @@ const TagsMultiSelectField = props => {
|
|
|
249
249
|
}, ValidationMessageProps)));
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
export default Popup(TagsMultiSelectField);
|
|
253
252
|
TagsMultiSelectField.propTypes = propTypes;
|
|
254
|
-
TagsMultiSelectField.defaultProps = defaultProps;
|
|
253
|
+
TagsMultiSelectField.defaultProps = defaultProps;
|
|
254
|
+
const TagsMultiSelectField_Component = Popup(TagsMultiSelectField);
|
|
255
|
+
TagsMultiSelectField_Component.defaultProps = TagsMultiSelectField.defaultProps;
|
|
256
|
+
TagsMultiSelectField_Component.propTypes = TagsMultiSelectField.propTypes;
|
|
257
|
+
export default TagsMultiSelectField_Component; // if (__DOCS__) {
|
|
255
258
|
// TagsMultiSelectField.docs = {
|
|
256
259
|
// componentGroup: 'TagsMultiSelectField'
|
|
257
260
|
// };
|
|
@@ -6,10 +6,10 @@ import { defaultProps } from '../../../../form/fields/TextBoxField/props/default
|
|
|
6
6
|
import { propTypes } from '../../../../form/fields/TextBoxField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
10
|
-
import TextBoxIcon from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
|
+
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
11
11
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { getUniqueId } from '@zohodesk/components/
|
|
12
|
+
import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
13
13
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
14
|
/**** CSS ****/
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
|
|
|
3
3
|
import { defaultProps } from '../../../../form/fields/TextEditor/props/defaultProps';
|
|
4
4
|
import { propTypes } from '../../../../form/fields/TextEditor/props/propTypes';
|
|
5
5
|
import selectn from 'selectn';
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
7
|
/***** Methods *****/
|
|
8
8
|
|
|
9
9
|
import { bind, editorContentValidate, fixEncoding, isFileNameSizeInvalid, isImageFormat, triggerKeyup, getRichEditorContent, changeContent, validateEditorContentOnInsertHtml, loadResource } from '../../../../utils/editorUtils'; //import './ZohoDeskEditor_Init';
|
|
@@ -6,7 +6,7 @@ import { defaultProps } from '../../../../form/fields/TextEditorField/props/defa
|
|
|
6
6
|
import { propTypes } from '../../../../form/fields/TextEditorField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import TextEditorWrapper from '../TextEditorWrapper/TextEditorWrapper';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
@@ -6,10 +6,10 @@ import { propTypes } from '../../../../form/fields/TextEditorWrapper/props/propT
|
|
|
6
6
|
/**** Components ****/
|
|
7
7
|
|
|
8
8
|
import TextEditor from '../TextEditor/TextEditor';
|
|
9
|
-
import Textarea from '@zohodesk/components/
|
|
10
|
-
import VelocityAnimationGroup from '@zohodesk/components/
|
|
9
|
+
import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
|
|
10
|
+
import VelocityAnimationGroup from '@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
11
11
|
import { editorContentValidate } from '../../../../utils/editorUtils';
|
|
12
|
-
import style from '
|
|
12
|
+
import style from './../../../../form/fields/TextEditorWrapper/TextEditorWrapper.module.css';
|
|
13
13
|
/* eslint-disable react/no-deprecated */
|
|
14
14
|
|
|
15
15
|
export default class TextEditorWrapper extends Component {
|
|
@@ -6,10 +6,10 @@ import { defaultProps } from '../../../../form/fields/TextareaField/props/defaul
|
|
|
6
6
|
import { propTypes } from '../../../../form/fields/TextareaField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
10
|
-
import Textarea from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
|
+
import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
|
|
11
11
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { getUniqueId } from '@zohodesk/components/
|
|
12
|
+
import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
13
13
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
14
|
/**** CSS ****/
|
|
15
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../form/fields/ValidationMessage/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../form/fields/ValidationMessage/props/propTypes';
|
|
4
|
-
import Label from '@zohodesk/components/
|
|
5
|
-
import colors from '@zohodesk/components/
|
|
4
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
5
|
+
import colors from '@zohodesk/components/es/Label/LabelColors.module.css';
|
|
6
6
|
import style from '../../../../form/fields/ValidationMessage/ValidationMessage.module.css';
|
|
7
7
|
import { Icon } from '@zohodesk/icons';
|
|
8
8
|
export default class ValidationMessage extends React.Component {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { SetupDetailLayout_defaultProps, SetupHeader_defaultProps, SetupContent_defaultProps, SetupFooter_defaultProps } from '../../../layout/SetupDetailLayout/props/defaultProps';
|
|
3
3
|
import { SetupDetailLayout_propTypes, SetupHeader_propTypes, SetupContent_propTypes, SetupFooter_propTypes } from '../../../layout/SetupDetailLayout/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import style from '../../../layout/SetupDetailLayout/SetupDetailLayout.module.css';
|
|
7
7
|
export default class SetupDetailLayout extends React.Component {
|
|
@@ -3,8 +3,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from '../../../layout/SubtabLayout/props/propTypes';
|
|
5
5
|
import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from '../../../layout/SubtabLayout/props/defaultProps';
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/
|
|
7
|
-
import { Card, CardHeader, CardContent } from '@zohodesk/components/
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
8
8
|
import PlusIcon from '../../PlusIcon/PlusIcon';
|
|
9
9
|
import style from '../../../layout/SubtabLayout/SubtabLayout.module.css';
|
|
10
10
|
export class SubtabHeader extends React.Component {
|
|
@@ -1,71 +1,68 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../list/AvatarFlip/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/AvatarFlip/props/propTypes';
|
|
4
4
|
import FlipCard from '../../FlipCard/FlipCard';
|
|
5
5
|
import style from '../../../list/AvatarFlip/AvatarFlip.module.css';
|
|
6
|
-
export default
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
6
|
+
export default function AvatarFlip(props) {
|
|
7
|
+
let {
|
|
8
|
+
id,
|
|
9
|
+
action,
|
|
10
|
+
name,
|
|
11
|
+
isChecked,
|
|
12
|
+
onChange,
|
|
13
|
+
noNeedFlip,
|
|
14
|
+
size,
|
|
15
|
+
onClick,
|
|
16
|
+
isPaidUser,
|
|
17
|
+
isPortalUser,
|
|
18
|
+
channel,
|
|
19
|
+
src,
|
|
20
|
+
icon,
|
|
21
|
+
initial,
|
|
22
|
+
dataId,
|
|
23
|
+
className,
|
|
24
|
+
palette,
|
|
25
|
+
textPalette,
|
|
26
|
+
customTextClass,
|
|
27
|
+
frontClass,
|
|
28
|
+
needTitle,
|
|
29
|
+
tourId,
|
|
30
|
+
iconSize,
|
|
31
|
+
isFilledCheckbox,
|
|
32
|
+
channelTitle,
|
|
33
|
+
customProps
|
|
34
|
+
} = props;
|
|
35
|
+
return /*#__PURE__*/React.createElement(FlipCard, {
|
|
36
|
+
id: id,
|
|
37
|
+
action: action,
|
|
38
|
+
name: name,
|
|
39
|
+
initial: initial,
|
|
40
|
+
isChecked: isChecked,
|
|
41
|
+
onChange: onChange,
|
|
42
|
+
noNeedFlip: noNeedFlip,
|
|
43
|
+
size: size,
|
|
44
|
+
onClick: onClick,
|
|
45
|
+
isPaidUser: isPaidUser,
|
|
46
|
+
isPortalUser: isPortalUser,
|
|
47
|
+
channel: channel,
|
|
48
|
+
src: src,
|
|
49
|
+
icon: icon,
|
|
50
|
+
iconSize: iconSize,
|
|
51
|
+
iconClass: `${style.iconStyle}`,
|
|
52
|
+
dataId: dataId,
|
|
53
|
+
ticListContainer: "tic-list-filp-cont",
|
|
54
|
+
ticList: "tic-list-filp",
|
|
55
|
+
className: className,
|
|
56
|
+
palette: palette,
|
|
57
|
+
textPalette: textPalette,
|
|
58
|
+
customTextClass: customTextClass,
|
|
59
|
+
frontClass: frontClass,
|
|
60
|
+
needTitle: needTitle,
|
|
61
|
+
tourId: tourId,
|
|
62
|
+
isFilledCheckbox: isFilledCheckbox,
|
|
63
|
+
channelTitle: channelTitle,
|
|
64
|
+
customProps: customProps
|
|
65
|
+
});
|
|
69
66
|
}
|
|
70
67
|
AvatarFlip.propTypes = propTypes;
|
|
71
68
|
AvatarFlip.defaultProps = defaultProps; // if (__DOCS__) {
|