@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
|
@@ -2,24 +2,17 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from '../../../list/BluePrintStatus/props/propTypes';
|
|
3
3
|
import style from '../../../list/BluePrintStatus/BluePrintStatus.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
-
name: "ZD-blueprint",
|
|
18
|
-
title: title,
|
|
19
|
-
iconClass: style.iconStyle
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
|
|
5
|
+
export default function BluePrintStatus(props) {
|
|
6
|
+
let {
|
|
7
|
+
title
|
|
8
|
+
} = props;
|
|
9
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10
|
+
className: `${style.container}`
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
12
|
+
name: "ZD-blueprint",
|
|
13
|
+
title: title,
|
|
14
|
+
iconClass: style.iconStyle
|
|
15
|
+
}));
|
|
23
16
|
}
|
|
24
17
|
BluePrintStatus.propTypes = propTypes; // if (__DOCS__) {
|
|
25
18
|
// BluePrintStatus.docs = {
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../list/Comment/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/Comment/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
6
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/semantic/Button/Button';
|
|
7
7
|
import style from '../../../list/Comment/Comment.module.css';
|
|
8
|
-
export default
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
name: "ZD-TK-commentLine",
|
|
32
|
-
iconClass: style.commentIcon
|
|
33
|
-
}), count && /*#__PURE__*/React.createElement("span", {
|
|
34
|
-
className: style.count
|
|
35
|
-
}, count));
|
|
36
|
-
}
|
|
37
|
-
|
|
8
|
+
export default function Comment(props) {
|
|
9
|
+
let {
|
|
10
|
+
count,
|
|
11
|
+
onClick,
|
|
12
|
+
className
|
|
13
|
+
} = props;
|
|
14
|
+
let i18N = i18NProviderUtils.getI18NValue;
|
|
15
|
+
let commentCount = parseInt(count);
|
|
16
|
+
let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
17
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18
|
+
customClass: `${style.container} ${className} `,
|
|
19
|
+
onClick: onClick,
|
|
20
|
+
dataId: "commentLstContainer",
|
|
21
|
+
title: commentTitle,
|
|
22
|
+
a11y: {
|
|
23
|
+
ariaLabel: commentTitle
|
|
24
|
+
}
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
+
name: "ZD-TK-commentLine",
|
|
27
|
+
iconClass: style.commentIcon
|
|
28
|
+
}), count && /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
className: style.count
|
|
30
|
+
}, count));
|
|
38
31
|
}
|
|
39
32
|
Comment.defaultProps = defaultProps;
|
|
40
33
|
Comment.propTypes = propTypes; // if (__DOCS__) {
|
|
@@ -1,23 +1,36 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../list/DepartmentDropDown/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/DepartmentDropDown/props/propTypes';
|
|
4
4
|
import ToggleDropDown from '../../dropdown/ToggleDropDown/ToggleDropDown';
|
|
5
5
|
import { DepartmentText } from '../SecondaryText';
|
|
6
6
|
import style from '../../../list/DepartmentDropDown/DepartmentDropDown.module.css';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
function DepartmentDropDown(props) {
|
|
9
|
+
let {
|
|
10
|
+
departmentName,
|
|
11
|
+
departmentList = [],
|
|
12
|
+
onSelectLabel,
|
|
13
|
+
isEditable,
|
|
14
|
+
dataId,
|
|
15
|
+
isFetching,
|
|
16
|
+
isPopupActive,
|
|
17
|
+
getNextOptions,
|
|
18
|
+
isNextOptions,
|
|
19
|
+
onSearch,
|
|
20
|
+
needSearchFetching,
|
|
21
|
+
searchStr,
|
|
22
|
+
i18nKeys,
|
|
23
|
+
onMoveDepartment,
|
|
24
|
+
getDepartment
|
|
25
|
+
} = props;
|
|
26
|
+
let {
|
|
27
|
+
title = 'Move Department',
|
|
28
|
+
searchEmptyText = 'No results found',
|
|
29
|
+
searchErrorText = 'No results',
|
|
30
|
+
placeholder = 'Search Department'
|
|
31
|
+
} = i18nKeys;
|
|
20
32
|
|
|
33
|
+
function onClick(e) {
|
|
21
34
|
if (getDepartment) {
|
|
22
35
|
getDepartment(e);
|
|
23
36
|
}
|
|
@@ -25,69 +38,41 @@ class DepartmentDropDown extends Component {
|
|
|
25
38
|
onSearch('');
|
|
26
39
|
}
|
|
27
40
|
|
|
28
|
-
|
|
29
|
-
let {
|
|
30
|
-
onSearch,
|
|
31
|
-
onMoveDepartment
|
|
32
|
-
} = this.props;
|
|
41
|
+
function handleMoveDepartment(deptId) {
|
|
33
42
|
onSearch('');
|
|
34
43
|
onMoveDepartment(deptId);
|
|
35
44
|
}
|
|
36
45
|
|
|
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
|
-
idName: "id",
|
|
68
|
-
onClick: this.onMoveDepartment,
|
|
69
|
-
isArrow: false,
|
|
70
|
-
isEditable: isEditable,
|
|
71
|
-
onSelectLabel: onSelectLabel,
|
|
72
|
-
isPopupActive: isPopupActive,
|
|
73
|
-
needExternalPopupState: true,
|
|
74
|
-
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
75
|
-
boxSize: "small",
|
|
76
|
-
dataId: dataId,
|
|
77
|
-
isDataLoaded: !isFetching,
|
|
78
|
-
isPadding: false,
|
|
79
|
-
searchErrorText: searchErrorText,
|
|
80
|
-
searchEmptyHint: searchEmptyText,
|
|
81
|
-
isNeedEffect: false,
|
|
82
|
-
className: style.departmentBox,
|
|
83
|
-
placeHolderText: placeholder,
|
|
84
|
-
getNextOptions: getNextOptions,
|
|
85
|
-
isNextOptions: isNextOptions,
|
|
86
|
-
onSearch: onSearch,
|
|
87
|
-
needSearchFetching: needSearchFetching
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
46
|
+
return /*#__PURE__*/React.createElement(ToggleDropDown, {
|
|
47
|
+
title: title,
|
|
48
|
+
options: departmentList,
|
|
49
|
+
value: /*#__PURE__*/React.createElement(DepartmentText, {
|
|
50
|
+
text: departmentName,
|
|
51
|
+
dataTitle: departmentName
|
|
52
|
+
}),
|
|
53
|
+
keyName: "name",
|
|
54
|
+
idName: "id",
|
|
55
|
+
onClick: handleMoveDepartment,
|
|
56
|
+
isArrow: false,
|
|
57
|
+
isEditable: isEditable,
|
|
58
|
+
onSelectLabel: onSelectLabel,
|
|
59
|
+
isPopupActive: isPopupActive,
|
|
60
|
+
needExternalPopupState: true,
|
|
61
|
+
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
62
|
+
boxSize: "small",
|
|
63
|
+
dataId: dataId,
|
|
64
|
+
isDataLoaded: !isFetching,
|
|
65
|
+
isPadding: false,
|
|
66
|
+
searchErrorText: searchErrorText,
|
|
67
|
+
searchEmptyHint: searchEmptyText,
|
|
68
|
+
isNeedEffect: false,
|
|
69
|
+
className: style.departmentBox,
|
|
70
|
+
placeHolderText: placeholder,
|
|
71
|
+
getNextOptions: getNextOptions,
|
|
72
|
+
isNextOptions: isNextOptions,
|
|
73
|
+
onSearch: onSearch,
|
|
74
|
+
needSearchFetching: needSearchFetching
|
|
75
|
+
});
|
|
91
76
|
}
|
|
92
77
|
|
|
93
78
|
DepartmentDropDown.defaultProps = defaultProps;
|
package/es/v1/list/Dot/Dot.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../list/Dot/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/Dot/props/propTypes';
|
|
4
4
|
import style from '../../../list/Dot/Dot.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
spacingType
|
|
14
|
-
} = this.props;
|
|
15
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: `${style.dot} ${style[spacingType]} ${className}`
|
|
17
|
-
}, ".");
|
|
18
|
-
}
|
|
19
|
-
|
|
5
|
+
export default function Dot(props) {
|
|
6
|
+
let {
|
|
7
|
+
className,
|
|
8
|
+
spacingType
|
|
9
|
+
} = props;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: `${style.dot} ${style[spacingType]} ${className}`
|
|
12
|
+
}, ".");
|
|
20
13
|
}
|
|
21
14
|
Dot.propTypes = propTypes;
|
|
22
15
|
Dot.defaultProps = defaultProps;
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../list/DotNew/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/DotNew/props/propTypes';
|
|
4
4
|
import style from '../../../list/DotNew/DotNew.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = this.props;
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: `${style.container} ${style[size]} ${className ? className : ''}`,
|
|
18
|
-
"data-title": dataTitle
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
5
|
+
export default function DotNew(props) {
|
|
6
|
+
let {
|
|
7
|
+
className,
|
|
8
|
+
dataTitle,
|
|
9
|
+
size
|
|
10
|
+
} = props;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: `${style.container} ${style[size]} ${className ? className : ''}`,
|
|
13
|
+
"data-title": dataTitle
|
|
14
|
+
});
|
|
22
15
|
}
|
|
23
16
|
DotNew.propTypes = propTypes;
|
|
24
17
|
DotNew.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { propTypes } from '../../../list/GridStencils/props/propTypes';
|
|
3
3
|
import style from '../../../list/GridStencils/GridStencils.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})) : '');
|
|
26
|
-
}
|
|
27
|
-
|
|
4
|
+
export default function GridStencils(props) {
|
|
5
|
+
let {
|
|
6
|
+
lineBar,
|
|
7
|
+
from,
|
|
8
|
+
isThreeLayout,
|
|
9
|
+
styles,
|
|
10
|
+
order
|
|
11
|
+
} = props;
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: from == 'leftPanel' && isThreeLayout ? `${style.stenLoading} ${style.threeLayout}` : from == 'leftPanel' ? `${style.stenLoading} ${style.leftCont}` : style.stenLoading,
|
|
14
|
+
style: styles,
|
|
15
|
+
order: order
|
|
16
|
+
}, lineBar ? /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: style.stenLoadbody
|
|
18
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: `${style.lineBar} ${style.stenListBAr}`
|
|
20
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: `${style.lineBar2} ${style.stenListBAr}`
|
|
22
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: `${style.lineBar3} ${style.stenListBAr}`
|
|
24
|
+
})) : '');
|
|
28
25
|
}
|
|
29
26
|
GridStencils.propTypes = propTypes; // if (__DOCS__) {
|
|
30
27
|
// GridStencils.docs = {
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AddNewIcon_propTypes } from '../../../list/Icons/props/propTypes';
|
|
3
3
|
import { Icon } from '@zohodesk/icons';
|
|
4
|
-
import btnStyle from '@zohodesk/components/
|
|
4
|
+
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
5
5
|
import style from '../../../list/Icons/Icons.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
|
-
|
|
6
|
+
export default function AddNewIcon(props) {
|
|
7
|
+
let {
|
|
8
|
+
onClick,
|
|
9
|
+
dataId,
|
|
10
|
+
dataTitle,
|
|
11
|
+
iconClass,
|
|
12
|
+
className
|
|
13
|
+
} = props;
|
|
14
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
15
|
+
onClick: onClick,
|
|
16
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
17
|
+
"data-id": dataId,
|
|
18
|
+
"data-test-id": dataId,
|
|
19
|
+
"data-title": dataTitle
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
21
|
+
name: "ZD-SE-addTickets",
|
|
22
|
+
iconClass: iconClass ? iconClass : ''
|
|
23
|
+
}));
|
|
27
24
|
}
|
|
28
25
|
AddNewIcon.propTypes = AddNewIcon_propTypes;
|
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CompleteIcon_propTypes } from '../../../list/Icons/props/propTypes';
|
|
3
3
|
import { Icon } from '@zohodesk/icons';
|
|
4
|
-
import btnStyle from '@zohodesk/components/
|
|
4
|
+
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
5
5
|
import style from '../../../list/Icons/Icons.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
|
-
|
|
6
|
+
export default function CompleteIcon(props) {
|
|
7
|
+
let {
|
|
8
|
+
onClick,
|
|
9
|
+
dataId,
|
|
10
|
+
dataTitle,
|
|
11
|
+
iconClass,
|
|
12
|
+
className,
|
|
13
|
+
iconSize
|
|
14
|
+
} = props;
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
|
+
onClick: onClick,
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-test-id": dataId,
|
|
20
|
+
"data-title": dataTitle
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
|
+
name: "ZD-GN-checkbox",
|
|
23
|
+
iconClass: iconClass ? iconClass : '',
|
|
24
|
+
size: iconSize
|
|
25
|
+
}));
|
|
29
26
|
}
|
|
30
27
|
CompleteIcon.propTypes = CompleteIcon_propTypes;
|
|
@@ -2,30 +2,27 @@ import React from 'react';
|
|
|
2
2
|
import { DeleteComponent_propTypes } from '../../../list/Icons/props/propTypes';
|
|
3
3
|
import style from '../../../list/Icons/Icons.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import btnStyle from '@zohodesk/components/
|
|
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
|
-
|
|
5
|
+
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
6
|
+
export default function DeleteComponent(props) {
|
|
7
|
+
let {
|
|
8
|
+
onClick,
|
|
9
|
+
dataId,
|
|
10
|
+
dataTitle,
|
|
11
|
+
iconClass,
|
|
12
|
+
iconSize,
|
|
13
|
+
className
|
|
14
|
+
} = props;
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
|
+
onClick: onClick,
|
|
17
|
+
className: `${style.iconStyle} ${style.redHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-test-id": dataId,
|
|
20
|
+
"data-title": dataTitle,
|
|
21
|
+
"aria-label": dataTitle
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
23
|
+
name: "ZD-GN-delete",
|
|
24
|
+
iconClass: iconClass ? iconClass : '',
|
|
25
|
+
size: iconSize
|
|
26
|
+
}));
|
|
30
27
|
}
|
|
31
28
|
DeleteComponent.propTypes = DeleteComponent_propTypes;
|
|
@@ -2,30 +2,27 @@ import React from 'react';
|
|
|
2
2
|
import { EditIcon_propTypes } from '../../../list/Icons/props/propTypes';
|
|
3
3
|
import style from '../../../list/Icons/Icons.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import btnStyle from '@zohodesk/components/
|
|
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
|
-
|
|
5
|
+
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
6
|
+
export default function EditIcon(props) {
|
|
7
|
+
let {
|
|
8
|
+
onClick,
|
|
9
|
+
dataId,
|
|
10
|
+
dataTitle,
|
|
11
|
+
iconClass,
|
|
12
|
+
iconSize,
|
|
13
|
+
className
|
|
14
|
+
} = props;
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
|
+
onClick: onClick,
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-test-id": dataId,
|
|
20
|
+
"data-title": dataTitle,
|
|
21
|
+
"aria-label": dataTitle
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
23
|
+
name: "ZD-GN-edit",
|
|
24
|
+
iconClass: iconClass ? iconClass : '',
|
|
25
|
+
size: iconSize
|
|
26
|
+
}));
|
|
30
27
|
}
|
|
31
28
|
EditIcon.propTypes = EditIcon_propTypes;
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FloatingIcons_defaultProps } from '../../../list/Icons/props/defaultProps';
|
|
3
3
|
import { FloatingIcons_propTypes } from '../../../list/Icons/props/propTypes';
|
|
4
4
|
import style from '../../../list/Icons/Icons.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
17
|
-
className: `${style.container}`
|
|
18
|
-
}, icons.map(child => /*#__PURE__*/React.cloneElement(child, {
|
|
19
|
-
iconClass
|
|
20
|
-
})));
|
|
21
|
-
}
|
|
22
|
-
|
|
5
|
+
export default function FloatingIcons(props) {
|
|
6
|
+
let {
|
|
7
|
+
children = [],
|
|
8
|
+
iconClass
|
|
9
|
+
} = props;
|
|
10
|
+
const icons = React.Children.toArray(children).filter(o => o);
|
|
11
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
12
|
+
className: `${style.container}`
|
|
13
|
+
}, icons.map(child => /*#__PURE__*/React.cloneElement(child, {
|
|
14
|
+
iconClass
|
|
15
|
+
})));
|
|
23
16
|
}
|
|
24
17
|
FloatingIcons.propTypes = FloatingIcons_propTypes;
|
|
25
18
|
FloatingIcons.defaultProps = FloatingIcons_defaultProps; // if (__DOCS__) {
|