@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,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = AvatarFlip;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/AvatarFlip/props/defaultProps");
|
|
13
11
|
|
|
@@ -19,109 +17,66 @@ var _AvatarFlipModule = _interopRequireDefault(require("../../../list/AvatarFlip
|
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
function AvatarFlip(props) {
|
|
21
|
+
var id = props.id,
|
|
22
|
+
action = props.action,
|
|
23
|
+
name = props.name,
|
|
24
|
+
isChecked = props.isChecked,
|
|
25
|
+
onChange = props.onChange,
|
|
26
|
+
noNeedFlip = props.noNeedFlip,
|
|
27
|
+
size = props.size,
|
|
28
|
+
onClick = props.onClick,
|
|
29
|
+
isPaidUser = props.isPaidUser,
|
|
30
|
+
isPortalUser = props.isPortalUser,
|
|
31
|
+
channel = props.channel,
|
|
32
|
+
src = props.src,
|
|
33
|
+
icon = props.icon,
|
|
34
|
+
initial = props.initial,
|
|
35
|
+
dataId = props.dataId,
|
|
36
|
+
className = props.className,
|
|
37
|
+
palette = props.palette,
|
|
38
|
+
textPalette = props.textPalette,
|
|
39
|
+
customTextClass = props.customTextClass,
|
|
40
|
+
frontClass = props.frontClass,
|
|
41
|
+
needTitle = props.needTitle,
|
|
42
|
+
tourId = props.tourId,
|
|
43
|
+
iconSize = props.iconSize,
|
|
44
|
+
isFilledCheckbox = props.isFilledCheckbox,
|
|
45
|
+
channelTitle = props.channelTitle,
|
|
46
|
+
customProps = props.customProps;
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], {
|
|
48
|
+
id: id,
|
|
49
|
+
action: action,
|
|
50
|
+
name: name,
|
|
51
|
+
initial: initial,
|
|
52
|
+
isChecked: isChecked,
|
|
53
|
+
onChange: onChange,
|
|
54
|
+
noNeedFlip: noNeedFlip,
|
|
55
|
+
size: size,
|
|
56
|
+
onClick: onClick,
|
|
57
|
+
isPaidUser: isPaidUser,
|
|
58
|
+
isPortalUser: isPortalUser,
|
|
59
|
+
channel: channel,
|
|
60
|
+
src: src,
|
|
61
|
+
icon: icon,
|
|
62
|
+
iconSize: iconSize,
|
|
63
|
+
iconClass: "".concat(_AvatarFlipModule["default"].iconStyle),
|
|
64
|
+
dataId: dataId,
|
|
65
|
+
ticListContainer: "tic-list-filp-cont",
|
|
66
|
+
ticList: "tic-list-filp",
|
|
67
|
+
className: className,
|
|
68
|
+
palette: palette,
|
|
69
|
+
textPalette: textPalette,
|
|
70
|
+
customTextClass: customTextClass,
|
|
71
|
+
frontClass: frontClass,
|
|
72
|
+
needTitle: needTitle,
|
|
73
|
+
tourId: tourId,
|
|
74
|
+
isFilledCheckbox: isFilledCheckbox,
|
|
75
|
+
channelTitle: channelTitle,
|
|
76
|
+
customProps: customProps
|
|
77
|
+
});
|
|
78
|
+
}
|
|
39
79
|
|
|
40
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
-
|
|
42
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
|
-
|
|
44
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
-
|
|
46
|
-
var AvatarFlip = /*#__PURE__*/function (_Component) {
|
|
47
|
-
_inherits(AvatarFlip, _Component);
|
|
48
|
-
|
|
49
|
-
var _super = _createSuper(AvatarFlip);
|
|
50
|
-
|
|
51
|
-
function AvatarFlip() {
|
|
52
|
-
_classCallCheck(this, AvatarFlip);
|
|
53
|
-
|
|
54
|
-
return _super.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
_createClass(AvatarFlip, [{
|
|
58
|
-
key: "render",
|
|
59
|
-
value: function render() {
|
|
60
|
-
var _this$props = this.props,
|
|
61
|
-
id = _this$props.id,
|
|
62
|
-
action = _this$props.action,
|
|
63
|
-
name = _this$props.name,
|
|
64
|
-
isChecked = _this$props.isChecked,
|
|
65
|
-
onChange = _this$props.onChange,
|
|
66
|
-
noNeedFlip = _this$props.noNeedFlip,
|
|
67
|
-
size = _this$props.size,
|
|
68
|
-
onClick = _this$props.onClick,
|
|
69
|
-
isPaidUser = _this$props.isPaidUser,
|
|
70
|
-
isPortalUser = _this$props.isPortalUser,
|
|
71
|
-
channel = _this$props.channel,
|
|
72
|
-
src = _this$props.src,
|
|
73
|
-
icon = _this$props.icon,
|
|
74
|
-
initial = _this$props.initial,
|
|
75
|
-
dataId = _this$props.dataId,
|
|
76
|
-
className = _this$props.className,
|
|
77
|
-
palette = _this$props.palette,
|
|
78
|
-
textPalette = _this$props.textPalette,
|
|
79
|
-
customTextClass = _this$props.customTextClass,
|
|
80
|
-
frontClass = _this$props.frontClass,
|
|
81
|
-
needTitle = _this$props.needTitle,
|
|
82
|
-
tourId = _this$props.tourId,
|
|
83
|
-
iconSize = _this$props.iconSize,
|
|
84
|
-
isFilledCheckbox = _this$props.isFilledCheckbox,
|
|
85
|
-
channelTitle = _this$props.channelTitle,
|
|
86
|
-
customProps = _this$props.customProps;
|
|
87
|
-
return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], {
|
|
88
|
-
id: id,
|
|
89
|
-
action: action,
|
|
90
|
-
name: name,
|
|
91
|
-
initial: initial,
|
|
92
|
-
isChecked: isChecked,
|
|
93
|
-
onChange: onChange,
|
|
94
|
-
noNeedFlip: noNeedFlip,
|
|
95
|
-
size: size,
|
|
96
|
-
onClick: onClick,
|
|
97
|
-
isPaidUser: isPaidUser,
|
|
98
|
-
isPortalUser: isPortalUser,
|
|
99
|
-
channel: channel,
|
|
100
|
-
src: src,
|
|
101
|
-
icon: icon,
|
|
102
|
-
iconSize: iconSize,
|
|
103
|
-
iconClass: "".concat(_AvatarFlipModule["default"].iconStyle),
|
|
104
|
-
dataId: dataId,
|
|
105
|
-
ticListContainer: "tic-list-filp-cont",
|
|
106
|
-
ticList: "tic-list-filp",
|
|
107
|
-
className: className,
|
|
108
|
-
palette: palette,
|
|
109
|
-
textPalette: textPalette,
|
|
110
|
-
customTextClass: customTextClass,
|
|
111
|
-
frontClass: frontClass,
|
|
112
|
-
needTitle: needTitle,
|
|
113
|
-
tourId: tourId,
|
|
114
|
-
isFilledCheckbox: isFilledCheckbox,
|
|
115
|
-
channelTitle: channelTitle,
|
|
116
|
-
customProps: customProps
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}]);
|
|
120
|
-
|
|
121
|
-
return AvatarFlip;
|
|
122
|
-
}(_react.Component);
|
|
123
|
-
|
|
124
|
-
exports["default"] = AvatarFlip;
|
|
125
80
|
AvatarFlip.propTypes = _propTypes.propTypes;
|
|
126
81
|
AvatarFlip.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
127
82
|
// AvatarFlip.docs = {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = BluePrintStatus;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -17,55 +15,17 @@ var _icons = require("@zohodesk/icons");
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
-
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
|
-
|
|
34
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
|
+
function BluePrintStatus(props) {
|
|
19
|
+
var title = props.title;
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
21
|
+
className: "".concat(_BluePrintStatusModule["default"].container)
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
23
|
+
name: "ZD-blueprint",
|
|
24
|
+
title: title,
|
|
25
|
+
iconClass: _BluePrintStatusModule["default"].iconStyle
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
35
28
|
|
|
36
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
-
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
-
|
|
40
|
-
var BluePrintStatus = /*#__PURE__*/function (_React$Component) {
|
|
41
|
-
_inherits(BluePrintStatus, _React$Component);
|
|
42
|
-
|
|
43
|
-
var _super = _createSuper(BluePrintStatus);
|
|
44
|
-
|
|
45
|
-
function BluePrintStatus(props) {
|
|
46
|
-
_classCallCheck(this, BluePrintStatus);
|
|
47
|
-
|
|
48
|
-
return _super.call(this, props);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
_createClass(BluePrintStatus, [{
|
|
52
|
-
key: "render",
|
|
53
|
-
value: function render() {
|
|
54
|
-
var title = this.props.title;
|
|
55
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
56
|
-
className: "".concat(_BluePrintStatusModule["default"].container)
|
|
57
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
58
|
-
name: "ZD-blueprint",
|
|
59
|
-
title: title,
|
|
60
|
-
iconClass: _BluePrintStatusModule["default"].iconStyle
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
}]);
|
|
64
|
-
|
|
65
|
-
return BluePrintStatus;
|
|
66
|
-
}(_react["default"].Component);
|
|
67
|
-
|
|
68
|
-
exports["default"] = BluePrintStatus;
|
|
69
29
|
BluePrintStatus.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
70
30
|
// BluePrintStatus.docs = {
|
|
71
31
|
// componentGroup: 'Atom'
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = Comment;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/Comment/props/defaultProps");
|
|
13
11
|
|
|
@@ -17,78 +15,35 @@ var _icons = require("@zohodesk/icons");
|
|
|
17
15
|
|
|
18
16
|
var _i18n = require("@zohodesk/i18n");
|
|
19
17
|
|
|
20
|
-
var _Button = _interopRequireDefault(require("@zohodesk/components/
|
|
18
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/es/v1/semantic/Button/Button"));
|
|
21
19
|
|
|
22
20
|
var _CommentModule = _interopRequireDefault(require("../../../list/Comment/Comment.module.css"));
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
-
|
|
42
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
-
|
|
44
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
-
|
|
46
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
-
|
|
48
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
|
|
50
|
-
var Comment = /*#__PURE__*/function (_Component) {
|
|
51
|
-
_inherits(Comment, _Component);
|
|
52
|
-
|
|
53
|
-
var _super = _createSuper(Comment);
|
|
54
|
-
|
|
55
|
-
function Comment(props) {
|
|
56
|
-
_classCallCheck(this, Comment);
|
|
57
|
-
|
|
58
|
-
return _super.call(this, props);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_createClass(Comment, [{
|
|
62
|
-
key: "render",
|
|
63
|
-
value: function render() {
|
|
64
|
-
var _this$props = this.props,
|
|
65
|
-
count = _this$props.count,
|
|
66
|
-
onClick = _this$props.onClick,
|
|
67
|
-
className = _this$props.className;
|
|
68
|
-
var i18N = _i18n.i18NProviderUtils.getI18NValue;
|
|
69
|
-
var commentCount = parseInt(count);
|
|
70
|
-
var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
72
|
-
customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
|
|
73
|
-
onClick: onClick,
|
|
74
|
-
dataId: "commentLstContainer",
|
|
75
|
-
title: commentTitle,
|
|
76
|
-
a11y: {
|
|
77
|
-
ariaLabel: commentTitle
|
|
78
|
-
}
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
80
|
-
name: "ZD-TK-commentLine",
|
|
81
|
-
iconClass: _CommentModule["default"].commentIcon
|
|
82
|
-
}), count && /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
|
-
className: _CommentModule["default"].count
|
|
84
|
-
}, count));
|
|
24
|
+
function Comment(props) {
|
|
25
|
+
var count = props.count,
|
|
26
|
+
onClick = props.onClick,
|
|
27
|
+
className = props.className;
|
|
28
|
+
var i18N = _i18n.i18NProviderUtils.getI18NValue;
|
|
29
|
+
var commentCount = parseInt(count);
|
|
30
|
+
var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
32
|
+
customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
|
|
33
|
+
onClick: onClick,
|
|
34
|
+
dataId: "commentLstContainer",
|
|
35
|
+
title: commentTitle,
|
|
36
|
+
a11y: {
|
|
37
|
+
ariaLabel: commentTitle
|
|
85
38
|
}
|
|
86
|
-
}]
|
|
39
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
40
|
+
name: "ZD-TK-commentLine",
|
|
41
|
+
iconClass: _CommentModule["default"].commentIcon
|
|
42
|
+
}), count && /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
|
+
className: _CommentModule["default"].count
|
|
44
|
+
}, count));
|
|
45
|
+
}
|
|
87
46
|
|
|
88
|
-
return Comment;
|
|
89
|
-
}(_react.Component);
|
|
90
|
-
|
|
91
|
-
exports["default"] = Comment;
|
|
92
47
|
Comment.defaultProps = _defaultProps.defaultProps;
|
|
93
48
|
Comment.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
94
49
|
// Comment.docs = {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/DepartmentDropDown/props/defaultProps");
|
|
13
11
|
|
|
@@ -21,129 +19,76 @@ var _DepartmentDropDownModule = _interopRequireDefault(require("../../../list/De
|
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
|
-
function
|
|
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
|
-
var _this;
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, DepartmentDropDown);
|
|
22
|
+
function DepartmentDropDown(props) {
|
|
23
|
+
var departmentName = props.departmentName,
|
|
24
|
+
_props$departmentList = props.departmentList,
|
|
25
|
+
departmentList = _props$departmentList === void 0 ? [] : _props$departmentList,
|
|
26
|
+
onSelectLabel = props.onSelectLabel,
|
|
27
|
+
isEditable = props.isEditable,
|
|
28
|
+
dataId = props.dataId,
|
|
29
|
+
isFetching = props.isFetching,
|
|
30
|
+
isPopupActive = props.isPopupActive,
|
|
31
|
+
getNextOptions = props.getNextOptions,
|
|
32
|
+
isNextOptions = props.isNextOptions,
|
|
33
|
+
onSearch = props.onSearch,
|
|
34
|
+
needSearchFetching = props.needSearchFetching,
|
|
35
|
+
searchStr = props.searchStr,
|
|
36
|
+
i18nKeys = props.i18nKeys,
|
|
37
|
+
onMoveDepartment = props.onMoveDepartment,
|
|
38
|
+
getDepartment = props.getDepartment;
|
|
39
|
+
var _i18nKeys$title = i18nKeys.title,
|
|
40
|
+
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
41
|
+
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
42
|
+
searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
|
|
43
|
+
_i18nKeys$searchError = i18nKeys.searchErrorText,
|
|
44
|
+
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
45
|
+
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
46
|
+
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
47
|
+
|
|
48
|
+
function onClick(e) {
|
|
49
|
+
if (getDepartment) {
|
|
50
|
+
getDepartment(e);
|
|
51
|
+
}
|
|
57
52
|
|
|
58
|
-
|
|
59
|
-
_this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
|
|
60
|
-
_this.onMoveDepartment = _this.onMoveDepartment.bind(_assertThisInitialized(_this));
|
|
61
|
-
return _this;
|
|
53
|
+
onSearch('');
|
|
62
54
|
}
|
|
63
55
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
getDepartment = _this$props.getDepartment,
|
|
69
|
-
onSearch = _this$props.onSearch;
|
|
70
|
-
|
|
71
|
-
if (getDepartment) {
|
|
72
|
-
getDepartment(e);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
onSearch('');
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
78
|
-
key: "onMoveDepartment",
|
|
79
|
-
value: function onMoveDepartment(deptId) {
|
|
80
|
-
var _this$props2 = this.props,
|
|
81
|
-
onSearch = _this$props2.onSearch,
|
|
82
|
-
onMoveDepartment = _this$props2.onMoveDepartment;
|
|
83
|
-
onSearch('');
|
|
84
|
-
onMoveDepartment(deptId);
|
|
85
|
-
}
|
|
86
|
-
}, {
|
|
87
|
-
key: "render",
|
|
88
|
-
value: function render() {
|
|
89
|
-
var _this$props3 = this.props,
|
|
90
|
-
departmentName = _this$props3.departmentName,
|
|
91
|
-
_this$props3$departme = _this$props3.departmentList,
|
|
92
|
-
departmentList = _this$props3$departme === void 0 ? [] : _this$props3$departme,
|
|
93
|
-
onSelectLabel = _this$props3.onSelectLabel,
|
|
94
|
-
isEditable = _this$props3.isEditable,
|
|
95
|
-
dataId = _this$props3.dataId,
|
|
96
|
-
isFetching = _this$props3.isFetching,
|
|
97
|
-
isPopupActive = _this$props3.isPopupActive,
|
|
98
|
-
getNextOptions = _this$props3.getNextOptions,
|
|
99
|
-
isNextOptions = _this$props3.isNextOptions,
|
|
100
|
-
onSearch = _this$props3.onSearch,
|
|
101
|
-
needSearchFetching = _this$props3.needSearchFetching,
|
|
102
|
-
searchStr = _this$props3.searchStr,
|
|
103
|
-
i18nKeys = _this$props3.i18nKeys;
|
|
104
|
-
var _i18nKeys$title = i18nKeys.title,
|
|
105
|
-
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
106
|
-
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
107
|
-
searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
|
|
108
|
-
_i18nKeys$searchError = i18nKeys.searchErrorText,
|
|
109
|
-
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
110
|
-
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
111
|
-
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
112
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
113
|
-
title: title,
|
|
114
|
-
options: departmentList,
|
|
115
|
-
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
116
|
-
text: departmentName,
|
|
117
|
-
dataTitle: departmentName
|
|
118
|
-
}),
|
|
119
|
-
keyName: "name",
|
|
120
|
-
idName: "id",
|
|
121
|
-
onClick: this.onMoveDepartment,
|
|
122
|
-
isArrow: false,
|
|
123
|
-
isEditable: isEditable,
|
|
124
|
-
onSelectLabel: onSelectLabel,
|
|
125
|
-
isPopupActive: isPopupActive,
|
|
126
|
-
needExternalPopupState: true,
|
|
127
|
-
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
128
|
-
boxSize: "small",
|
|
129
|
-
dataId: dataId,
|
|
130
|
-
isDataLoaded: !isFetching,
|
|
131
|
-
isPadding: false,
|
|
132
|
-
searchErrorText: searchErrorText,
|
|
133
|
-
searchEmptyHint: searchEmptyText,
|
|
134
|
-
isNeedEffect: false,
|
|
135
|
-
className: _DepartmentDropDownModule["default"].departmentBox,
|
|
136
|
-
placeHolderText: placeholder,
|
|
137
|
-
getNextOptions: getNextOptions,
|
|
138
|
-
isNextOptions: isNextOptions,
|
|
139
|
-
onSearch: onSearch,
|
|
140
|
-
needSearchFetching: needSearchFetching
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}]);
|
|
56
|
+
function handleMoveDepartment(deptId) {
|
|
57
|
+
onSearch('');
|
|
58
|
+
onMoveDepartment(deptId);
|
|
59
|
+
}
|
|
144
60
|
|
|
145
|
-
return
|
|
146
|
-
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
62
|
+
title: title,
|
|
63
|
+
options: departmentList,
|
|
64
|
+
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
65
|
+
text: departmentName,
|
|
66
|
+
dataTitle: departmentName
|
|
67
|
+
}),
|
|
68
|
+
keyName: "name",
|
|
69
|
+
idName: "id",
|
|
70
|
+
onClick: handleMoveDepartment,
|
|
71
|
+
isArrow: false,
|
|
72
|
+
isEditable: isEditable,
|
|
73
|
+
onSelectLabel: onSelectLabel,
|
|
74
|
+
isPopupActive: isPopupActive,
|
|
75
|
+
needExternalPopupState: true,
|
|
76
|
+
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
77
|
+
boxSize: "small",
|
|
78
|
+
dataId: dataId,
|
|
79
|
+
isDataLoaded: !isFetching,
|
|
80
|
+
isPadding: false,
|
|
81
|
+
searchErrorText: searchErrorText,
|
|
82
|
+
searchEmptyHint: searchEmptyText,
|
|
83
|
+
isNeedEffect: false,
|
|
84
|
+
className: _DepartmentDropDownModule["default"].departmentBox,
|
|
85
|
+
placeHolderText: placeholder,
|
|
86
|
+
getNextOptions: getNextOptions,
|
|
87
|
+
isNextOptions: isNextOptions,
|
|
88
|
+
onSearch: onSearch,
|
|
89
|
+
needSearchFetching: needSearchFetching
|
|
90
|
+
});
|
|
91
|
+
}
|
|
147
92
|
|
|
148
93
|
DepartmentDropDown.defaultProps = _defaultProps.defaultProps;
|
|
149
94
|
DepartmentDropDown.propTypes = _propTypes.propTypes;
|