@zohodesk/dot 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +15 -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/index.html +1 -1
- package/es/Attachment/Attachment.js +2 -1
- package/es/Attachment/Attachment.module.css +10 -6
- package/es/Link/Link.js +2 -1
- package/es/TagWithIcon/props/propTypes.js +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -2
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
- package/es/layout/SubtabLayout/props/propTypes.js +1 -1
- package/es/list/Icons/AddNewIcon.js +3 -2
- package/es/list/Icons/CompleteIcon.js +3 -2
- package/es/list/Icons/DeleteIcon.js +4 -3
- package/es/list/Icons/EditIcon.js +5 -3
- package/es/list/Icons/ReadUnreadIcon.js +5 -3
- package/es/list/Icons/SmartIcon.js +5 -3
- package/es/list/ListLayout/ListLayout.module.css +24 -8
- package/es/list/listCommon.module.css +23 -5
- package/es/list/status/StatusDropdown/StatusDropdown.js +16 -3
- package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
- package/es/lookup/Lookup/Lookup.js +2 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/es/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/es/v1/Attachment/Attachment.js +88 -0
- package/es/v1/AttachmentViewer/AttachmentImage.js +79 -0
- package/es/v1/AttachmentViewer/AttachmentViewer.js +541 -0
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +1 -1
- package/es/v1/FlipCard/FlipCard.js +3 -3
- package/es/v1/FreezeLayer/FreezeLayer.js +74 -0
- package/es/v1/Image/Image.js +39 -0
- package/es/v1/Link/Link.js +2 -1
- package/es/v1/Loader/Loader.js +21 -0
- package/es/v1/Message/Message.js +118 -0
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/PlusIcon/PlusIcon.js +44 -0
- package/es/v1/Separator/Separator.js +60 -0
- package/es/v1/ToastMessage/ToastMessage.js +203 -0
- package/es/v1/Upload/Upload.js +76 -0
- package/es/v1/actions/AutoClose.js +43 -0
- package/es/v1/alert/index.js +2 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +53 -0
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +62 -0
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +54 -0
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +72 -0
- package/es/v1/avatar/AvatarThread/AvatarThread.js +79 -0
- package/es/v1/avatar/AvatarUser/AvatarUser.js +116 -0
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +98 -0
- package/es/v1/avatar/index.js +7 -0
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +861 -0
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +86 -0
- package/es/v1/errorstate/LinkText/LinkText.js +29 -0
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +84 -0
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +83 -0
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +84 -0
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +86 -0
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +84 -0
- package/es/v1/errorstate/WillBack/WillBack.js +75 -0
- package/es/v1/errorstate/index.js +8 -0
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +141 -0
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +183 -0
- package/es/v1/form/fields/DateField/DateField.js +195 -0
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +71 -0
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +213 -0
- package/es/v1/form/fields/PhoneField/PhoneField.js +189 -0
- package/es/v1/form/fields/RadioField/RadioField.js +116 -0
- package/es/v1/form/fields/SelectField/SelectField.js +183 -0
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +292 -0
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +164 -0
- package/es/v1/form/fields/TextEditor/TextEditor.js +418 -0
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +178 -0
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +203 -0
- package/es/v1/form/fields/TextareaField/TextareaField.js +161 -0
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +58 -0
- package/es/v1/form/fields/index.js +16 -0
- package/es/v1/form/layout/Field/Field.js +33 -0
- package/es/v1/form/layout/Section/Section.js +37 -0
- package/es/v1/form/layout/index.js +2 -0
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +217 -0
- package/es/v1/layout/SetupDetailLayout/index.js +4 -0
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +144 -0
- package/es/v1/layout/SubtabLayout/index.js +4 -0
- package/es/v1/list/AvatarFlip/AvatarFlip.js +76 -0
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +28 -0
- package/es/v1/list/Comment/Comment.js +45 -0
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +100 -0
- package/es/v1/list/Dot/Dot.js +22 -0
- package/es/v1/list/DotNew/DotNew.js +29 -0
- package/es/v1/list/GridStencils/GridStencils.js +34 -0
- package/es/v1/list/Icons/AddNewIcon.js +28 -0
- package/es/v1/list/Icons/CompleteIcon.js +30 -0
- package/es/v1/list/Icons/DeleteIcon.js +31 -0
- package/es/v1/list/Icons/EditIcon.js +31 -0
- package/es/v1/list/Icons/FloatingIcons.js +30 -0
- package/es/v1/list/Icons/ReadUnreadIcon.js +35 -0
- package/es/v1/list/Icons/SmartIcon.js +28 -0
- package/es/v1/list/Icons/index.js +7 -0
- package/es/v1/list/ListLayout/ListLayout.js +83 -0
- package/es/v1/list/ListStencils/ListStencils.js +47 -0
- package/es/v1/list/SecondaryText/AccountName.js +85 -0
- package/es/v1/list/SecondaryText/ContactName.js +85 -0
- package/es/v1/list/SecondaryText/DepartmentText.js +30 -0
- package/es/v1/list/SecondaryText/Email.js +55 -0
- package/es/v1/list/SecondaryText/HappinessRating.js +31 -0
- package/es/v1/list/SecondaryText/PhoneNumber.js +59 -0
- package/es/v1/list/SecondaryText/PriorityText.js +33 -0
- package/es/v1/list/SecondaryText/SecondaryText.js +40 -0
- package/es/v1/list/SecondaryText/StatusText.js +34 -0
- package/es/v1/list/SecondaryText/TicketId.js +53 -0
- package/es/v1/list/SecondaryText/Website.js +43 -0
- package/es/v1/list/SecondaryText/index.js +11 -0
- package/es/v1/list/SecondryPanel/SecondryPanel.js +105 -0
- package/es/v1/list/SentimentStatus/SentimentStatus.js +34 -0
- package/es/v1/list/Subject/Subject.js +57 -0
- package/es/v1/list/TagNew/TagNew.js +33 -0
- package/es/v1/list/Thread/Thread.js +43 -0
- package/es/v1/list/UserTime/UserTime.js +83 -0
- package/es/v1/list/index.js +17 -0
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +465 -0
- package/es/v1/list/status/StatusListItem/StatusListItem.js +122 -0
- package/es/v1/list/status/index.js +2 -0
- package/es/v1/lookup/EmptyPage/EmptyPage.js +65 -0
- package/es/v1/lookup/Lookup/Lookup.js +2 -0
- package/es/v1/lookup/Section/Section.js +25 -0
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +176 -0
- package/es/v1/lookup/header/index.js +5 -0
- package/es/v1/setup/header/Button/Button.js +36 -0
- package/es/v1/setup/header/Link/Link.js +44 -0
- package/es/v1/setup/header/Search/Search.js +81 -0
- package/es/v1/setup/header/Views/Views.js +46 -0
- package/es/v1/setup/header/index.js +4 -0
- package/es/v1/setup/helptips/Description/Description.js +24 -0
- package/es/v1/setup/helptips/Link/Link.js +41 -0
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +39 -0
- package/es/v1/setup/helptips/Title/Title.js +24 -0
- package/es/v1/setup/helptips/index.js +4 -0
- package/es/v1/setup/index.js +6 -0
- package/es/v1/setup/table/index.js +5 -0
- package/es/v1/svg/PlusIcon.js +32 -0
- package/es/v1/svg/SnippetIcon.js +34 -0
- package/es/v1/svg/TemplateIcon.js +35 -0
- package/es/v1/svg/index.js +3 -0
- package/es/v1/version2/alertIcons/index.js +8 -0
- package/es/v1/version2/index.js +12 -0
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +79 -0
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
- package/es/v1/version2/notification/DesktopNotification/DesktopNotification.js +164 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/lib/Attachment/Attachment.js +2 -1
- package/lib/Attachment/Attachment.module.css +10 -6
- package/lib/Link/Link.js +2 -1
- package/lib/TagWithIcon/props/propTypes.js +1 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -3
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/lib/layout/SubtabLayout/props/propTypes.js +1 -1
- package/lib/list/Icons/AddNewIcon.js +4 -2
- package/lib/list/Icons/CompleteIcon.js +4 -2
- package/lib/list/Icons/DeleteIcon.js +5 -3
- package/lib/list/Icons/EditIcon.js +6 -3
- package/lib/list/Icons/ReadUnreadIcon.js +6 -3
- package/lib/list/Icons/SmartIcon.js +6 -3
- package/lib/list/ListLayout/ListLayout.module.css +24 -8
- package/lib/list/listCommon.module.css +23 -5
- package/lib/list/status/StatusDropdown/StatusDropdown.js +16 -5
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +2 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/lib/v1/Attachment/Attachment.js +140 -0
- package/lib/v1/AttachmentViewer/AttachmentImage.js +124 -0
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +625 -0
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +1 -1
- package/lib/v1/FlipCard/FlipCard.js +3 -3
- package/lib/v1/FreezeLayer/FreezeLayer.js +94 -0
- package/lib/v1/Image/Image.js +89 -0
- package/lib/v1/Link/Link.js +2 -1
- package/lib/v1/Loader/Loader.js +70 -0
- package/lib/v1/Message/Message.js +170 -0
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/PlusIcon/PlusIcon.js +91 -0
- package/lib/v1/Separator/Separator.js +107 -0
- package/lib/v1/ToastMessage/ToastMessage.js +246 -0
- package/lib/v1/Upload/Upload.js +128 -0
- package/lib/v1/actions/AutoClose.js +75 -0
- package/lib/v1/alert/index.js +23 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +101 -0
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +110 -0
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +106 -0
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +119 -0
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +130 -0
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +167 -0
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +154 -0
- package/lib/v1/avatar/index.js +63 -0
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +932 -0
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +137 -0
- package/lib/v1/errorstate/LinkText/LinkText.js +80 -0
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +135 -0
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +134 -0
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +135 -0
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +137 -0
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +135 -0
- package/lib/v1/errorstate/WillBack/WillBack.js +125 -0
- package/lib/v1/errorstate/index.js +71 -0
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +197 -0
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +234 -0
- package/lib/v1/form/fields/DateField/DateField.js +249 -0
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +118 -0
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +268 -0
- package/lib/v1/form/fields/PhoneField/PhoneField.js +236 -0
- package/lib/v1/form/fields/RadioField/RadioField.js +169 -0
- package/lib/v1/form/fields/SelectField/SelectField.js +236 -0
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +346 -0
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +299 -0
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +219 -0
- package/lib/v1/form/fields/TextEditor/TextEditor.js +463 -0
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +230 -0
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +256 -0
- package/lib/v1/form/fields/TextareaField/TextareaField.js +215 -0
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +110 -0
- package/lib/{docs/formDocs.js → v1/form/fields/index.js} +33 -25
- package/lib/v1/form/layout/Field/Field.js +87 -0
- package/lib/v1/form/layout/Section/Section.js +86 -0
- package/lib/v1/form/layout/index.js +23 -0
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +305 -0
- package/lib/v1/layout/SetupDetailLayout/index.js +37 -0
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +245 -0
- package/lib/v1/layout/SubtabLayout/index.js +37 -0
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +131 -0
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +73 -0
- package/lib/v1/list/Comment/Comment.js +98 -0
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +157 -0
- package/lib/v1/list/Dot/Dot.js +72 -0
- package/lib/v1/list/DotNew/DotNew.js +79 -0
- package/lib/v1/list/GridStencils/GridStencils.js +83 -0
- package/lib/v1/list/Icons/AddNewIcon.js +79 -0
- package/lib/v1/list/Icons/CompleteIcon.js +81 -0
- package/lib/v1/list/Icons/DeleteIcon.js +82 -0
- package/lib/v1/list/Icons/EditIcon.js +82 -0
- package/lib/v1/list/Icons/FloatingIcons.js +87 -0
- package/lib/v1/list/Icons/ReadUnreadIcon.js +87 -0
- package/lib/v1/list/Icons/SmartIcon.js +83 -0
- package/lib/v1/list/Icons/index.js +63 -0
- package/lib/v1/list/ListLayout/ListLayout.js +145 -0
- package/lib/v1/list/ListStencils/ListStencils.js +96 -0
- package/lib/v1/list/SecondaryText/AccountName.js +136 -0
- package/lib/v1/list/SecondaryText/ContactName.js +144 -0
- package/lib/v1/list/SecondaryText/DepartmentText.js +79 -0
- package/lib/v1/list/SecondaryText/Email.js +103 -0
- package/lib/v1/list/SecondaryText/HappinessRating.js +81 -0
- package/lib/v1/list/SecondaryText/PhoneNumber.js +107 -0
- package/lib/v1/list/SecondaryText/PriorityText.js +83 -0
- package/lib/v1/list/SecondaryText/SecondaryText.js +88 -0
- package/lib/v1/list/SecondaryText/StatusText.js +84 -0
- package/lib/v1/list/SecondaryText/TicketId.js +104 -0
- package/lib/v1/list/SecondaryText/Website.js +91 -0
- package/lib/v1/list/SecondaryText/index.js +95 -0
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +205 -0
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +80 -0
- package/lib/v1/list/Subject/Subject.js +108 -0
- package/lib/v1/list/TagNew/TagNew.js +83 -0
- package/lib/v1/list/Thread/Thread.js +95 -0
- package/lib/v1/list/UserTime/UserTime.js +136 -0
- package/lib/v1/list/index.js +173 -0
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +541 -0
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +168 -0
- package/lib/v1/list/status/index.js +23 -0
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +120 -0
- package/lib/v1/lookup/Lookup/Lookup.js +2 -0
- package/lib/v1/lookup/Section/Section.js +75 -0
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +221 -0
- package/lib/v1/lookup/header/index.js +47 -0
- package/lib/v1/setup/header/Button/Button.js +83 -0
- package/lib/v1/setup/header/Link/Link.js +93 -0
- package/lib/v1/setup/header/Search/Search.js +126 -0
- package/lib/v1/setup/header/Views/Views.js +93 -0
- package/lib/v1/setup/header/index.js +39 -0
- package/lib/v1/setup/helptips/Description/Description.js +68 -0
- package/lib/v1/setup/helptips/Link/Link.js +88 -0
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +88 -0
- package/lib/v1/setup/helptips/Title/Title.js +68 -0
- package/lib/v1/setup/helptips/index.js +39 -0
- package/lib/v1/setup/index.js +24 -0
- package/lib/v1/setup/table/index.js +47 -0
- package/lib/v1/svg/PlusIcon.js +82 -0
- package/lib/v1/svg/SnippetIcon.js +84 -0
- package/lib/v1/svg/TemplateIcon.js +85 -0
- package/lib/v1/svg/index.js +31 -0
- package/lib/v1/version2/alertIcons/index.js +71 -0
- package/lib/v1/version2/index.js +58 -0
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +104 -0
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
- package/lib/v1/version2/notification/DesktopNotification/DesktopNotification.js +193 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/package.json +9 -9
- package/result.json +1 -1
- package/es/docs/formDocs.js +0 -15
- package/es/docs/generalDocs.js +0 -63
- package/es/docs/lookupDocs.js +0 -17
- package/es/docs/setupDocs.js +0 -11
- package/lib/docs/generalDocs.js +0 -479
- package/lib/docs/lookupDocs.js +0 -135
- package/lib/docs/setupDocs.js +0 -95
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { SetupDetailLayout_defaultProps, SetupHeader_defaultProps, SetupContent_defaultProps, SetupFooter_defaultProps } from '../../../layout/SetupDetailLayout/props/defaultProps';
|
|
3
|
+
import { SetupDetailLayout_propTypes, SetupHeader_propTypes, SetupContent_propTypes, SetupFooter_propTypes } from '../../../layout/SetupDetailLayout/props/propTypes';
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
5
|
+
import { Icon } from '@zohodesk/icons';
|
|
6
|
+
import style from '../../../layout/SetupDetailLayout/SetupDetailLayout.module.css';
|
|
7
|
+
export default class SetupDetailLayout extends React.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
this.state = {
|
|
11
|
+
isHelpInfoOpen: false
|
|
12
|
+
};
|
|
13
|
+
this.toggleHelpInfo = this.toggleHelpInfo.bind(this);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
toggleHelpInfo() {
|
|
17
|
+
let {
|
|
18
|
+
isHelpInfoOpen
|
|
19
|
+
} = this.state;
|
|
20
|
+
this.setState({
|
|
21
|
+
isHelpInfoOpen: !isHelpInfoOpen
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
render() {
|
|
26
|
+
let {
|
|
27
|
+
isHelpInfoOpen
|
|
28
|
+
} = this.state;
|
|
29
|
+
let {
|
|
30
|
+
children,
|
|
31
|
+
needHelpInfo,
|
|
32
|
+
getHelpInfo,
|
|
33
|
+
helpInfoTitle,
|
|
34
|
+
dataId,
|
|
35
|
+
i18nKeys
|
|
36
|
+
} = this.props;
|
|
37
|
+
const {
|
|
38
|
+
closeText = 'Close'
|
|
39
|
+
} = i18nKeys;
|
|
40
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
41
|
+
isScrollAttribute: true,
|
|
42
|
+
dataId: dataId
|
|
43
|
+
}, React.Children.map(children, child => {
|
|
44
|
+
if (child && child.type == SetupHeader) {
|
|
45
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
46
|
+
openHelpInfo: this.toggleHelpInfo,
|
|
47
|
+
needHelpInfo: needHelpInfo
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return child;
|
|
52
|
+
}), getHelpInfo ? /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
className: `${style.popup} ${isHelpInfoOpen ? style.open : style.close}`,
|
|
54
|
+
dataId: `${dataId}_infobox`
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
56
|
+
alignBox: "row",
|
|
57
|
+
align: "vertical",
|
|
58
|
+
className: style.infoHeader
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
60
|
+
className: style.infoIcon
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
62
|
+
name: "ZD-info31"
|
|
63
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
64
|
+
flexible: true,
|
|
65
|
+
className: style.infoText
|
|
66
|
+
}, helpInfoTitle), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
onClick: this.toggleHelpInfo,
|
|
68
|
+
className: style.infoClose,
|
|
69
|
+
"data-title": closeText,
|
|
70
|
+
"data-id": `${dataId}_close`,
|
|
71
|
+
"data-test-id": `${dataId}_close`
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
73
|
+
name: "ZD-close"
|
|
74
|
+
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
75
|
+
flexible: true,
|
|
76
|
+
scroll: "vertical",
|
|
77
|
+
className: style.infoFooter
|
|
78
|
+
}, getHelpInfo()))) : null);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
SetupDetailLayout.propTypes = SetupDetailLayout_propTypes;
|
|
83
|
+
SetupDetailLayout.defaultProps = SetupDetailLayout_defaultProps; // if (__DOCS__) {
|
|
84
|
+
// SetupDetailLayout.docs = {
|
|
85
|
+
// componentGroup: 'Template'
|
|
86
|
+
// };
|
|
87
|
+
// }
|
|
88
|
+
|
|
89
|
+
export class SetupHeader extends Component {
|
|
90
|
+
constructor(props) {
|
|
91
|
+
super(props);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
render() {
|
|
95
|
+
let {
|
|
96
|
+
title,
|
|
97
|
+
needBack,
|
|
98
|
+
onBackClick,
|
|
99
|
+
openHelpInfo,
|
|
100
|
+
needHelpInfo,
|
|
101
|
+
needHelpInfoWrapper,
|
|
102
|
+
getLeftPlaceHolder,
|
|
103
|
+
getRightPlaceHolder,
|
|
104
|
+
leftClassName,
|
|
105
|
+
rightClassName,
|
|
106
|
+
isCustomizedHeader,
|
|
107
|
+
headerCustomStyle,
|
|
108
|
+
dataId,
|
|
109
|
+
i18nKeys
|
|
110
|
+
} = this.props;
|
|
111
|
+
const {
|
|
112
|
+
infoText = 'Help',
|
|
113
|
+
backText = 'Back'
|
|
114
|
+
} = i18nKeys;
|
|
115
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
116
|
+
className: isCustomizedHeader === true ? headerCustomStyle : style.header,
|
|
117
|
+
dataId: dataId
|
|
118
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
119
|
+
alignBox: "row",
|
|
120
|
+
align: "vertical"
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
122
|
+
className: style.back
|
|
123
|
+
}, needBack ? /*#__PURE__*/React.createElement("span", {
|
|
124
|
+
className: style.backIcon,
|
|
125
|
+
onClick: onBackClick,
|
|
126
|
+
"data-title": backText,
|
|
127
|
+
"data-id": `${dataId}_back`,
|
|
128
|
+
"data-test-id": `${dataId}_back`
|
|
129
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
130
|
+
name: "ZD-back"
|
|
131
|
+
})) : null), /*#__PURE__*/React.createElement(Box, {
|
|
132
|
+
flexible: !getLeftPlaceHolder && !getRightPlaceHolder ? true : false,
|
|
133
|
+
className: style.title,
|
|
134
|
+
dataId: `${dataId}_title`
|
|
135
|
+
}, title), getLeftPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
136
|
+
flexible: true,
|
|
137
|
+
shrink: true,
|
|
138
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
139
|
+
className: leftClassName
|
|
140
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
141
|
+
align: "vertical",
|
|
142
|
+
alignBox: "row"
|
|
143
|
+
}, getLeftPlaceHolder())) : null, getRightPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
144
|
+
flexible: true,
|
|
145
|
+
shrink: true,
|
|
146
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
147
|
+
className: rightClassName
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
149
|
+
align: "vertical",
|
|
150
|
+
alignBox: "row",
|
|
151
|
+
className: style.rightPanel
|
|
152
|
+
}, getRightPlaceHolder())) : null, needHelpInfo ? /*#__PURE__*/React.createElement(Box, null, needHelpInfoWrapper ? /*#__PURE__*/React.createElement("span", {
|
|
153
|
+
className: style.helpInfoCont
|
|
154
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
155
|
+
className: style.helpInfo,
|
|
156
|
+
onClick: openHelpInfo,
|
|
157
|
+
"data-title": infoText,
|
|
158
|
+
"data-id": `${dataId}_info`,
|
|
159
|
+
"data-test-id": `${dataId}_info`
|
|
160
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
161
|
+
name: "ZD-info31"
|
|
162
|
+
}))) : /*#__PURE__*/React.createElement("span", {
|
|
163
|
+
className: `${style.helpInfo} ${style.mr15}`,
|
|
164
|
+
onClick: openHelpInfo,
|
|
165
|
+
"data-title": infoText,
|
|
166
|
+
"data-id": `${dataId}_info`,
|
|
167
|
+
"data-test-id": `${dataId}_info`
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
169
|
+
name: "ZD-info31"
|
|
170
|
+
}))) : null));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
SetupHeader.propTypes = SetupHeader_propTypes;
|
|
175
|
+
SetupHeader.defaultProps = SetupHeader_defaultProps;
|
|
176
|
+
export class SetupContent extends Component {
|
|
177
|
+
constructor(props) {
|
|
178
|
+
super(props);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
render() {
|
|
182
|
+
let {
|
|
183
|
+
children,
|
|
184
|
+
needPadding,
|
|
185
|
+
className,
|
|
186
|
+
dataId
|
|
187
|
+
} = this.props;
|
|
188
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
189
|
+
flexible: true,
|
|
190
|
+
scroll: "vertical",
|
|
191
|
+
className: `${className ? className : ''} ${style.content} ${needPadding ? style.padding : ''} `,
|
|
192
|
+
isScrollAttribute: true,
|
|
193
|
+
dataId: dataId
|
|
194
|
+
}, children);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
SetupContent.propTypes = SetupContent_propTypes;
|
|
199
|
+
SetupContent.defaultProps = SetupContent_defaultProps;
|
|
200
|
+
export class SetupFooter extends Component {
|
|
201
|
+
constructor(props) {
|
|
202
|
+
super(props);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
render() {
|
|
206
|
+
let {
|
|
207
|
+
children,
|
|
208
|
+
dataId
|
|
209
|
+
} = this.props;
|
|
210
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
211
|
+
dataId: dataId
|
|
212
|
+
}, children);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
SetupFooter.propTypes = SetupFooter_propTypes;
|
|
217
|
+
SetupFooter.defaultProps = SetupFooter_defaultProps;
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from '../../../layout/SubtabLayout/props/propTypes';
|
|
5
|
+
import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from '../../../layout/SubtabLayout/props/defaultProps';
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
7
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
|
|
8
|
+
import PlusIcon from '../../PlusIcon/PlusIcon';
|
|
9
|
+
import style from '../../../layout/SubtabLayout/SubtabLayout.module.css';
|
|
10
|
+
export class SubtabHeader extends React.Component {
|
|
11
|
+
render() {
|
|
12
|
+
let {
|
|
13
|
+
onAdd,
|
|
14
|
+
getLeftPlaceHolder,
|
|
15
|
+
title,
|
|
16
|
+
label,
|
|
17
|
+
getRightPlaceHolder,
|
|
18
|
+
type,
|
|
19
|
+
leftClassName,
|
|
20
|
+
rightClassName,
|
|
21
|
+
className,
|
|
22
|
+
needBorder,
|
|
23
|
+
needShadow,
|
|
24
|
+
needPlusIconLine,
|
|
25
|
+
children,
|
|
26
|
+
dataId,
|
|
27
|
+
isPeekView
|
|
28
|
+
} = this.props;
|
|
29
|
+
return /*#__PURE__*/React.createElement(CardHeader, {
|
|
30
|
+
customClass: `${style.tabHead} ${needShadow ? style.shadowStyle : ''} ${needBorder ? `${style[type]}_borderStyle` : ''}`
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
32
|
+
alignBox: "row",
|
|
33
|
+
className: ` ${className} ${isPeekView ? `${style[type]}_peek` : style[type]}`,
|
|
34
|
+
align: "vertical"
|
|
35
|
+
}, onAdd || children ? /*#__PURE__*/React.createElement(Box, {
|
|
36
|
+
className: `${style.left} ${needPlusIconLine ? style.plusIconLine : ''}`
|
|
37
|
+
}, onAdd ? /*#__PURE__*/React.createElement(PlusIcon, {
|
|
38
|
+
dataId: dataId,
|
|
39
|
+
onClick: onAdd
|
|
40
|
+
}) : children) : null, title ? /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
className: `${style.title} ${onAdd ? style.cursor : ''}`,
|
|
42
|
+
onClick: onAdd ? onAdd : null
|
|
43
|
+
}, title) : null, getLeftPlaceHolder && /*#__PURE__*/React.createElement(Box, {
|
|
44
|
+
flexible: true,
|
|
45
|
+
shrink: true,
|
|
46
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
47
|
+
className: leftClassName
|
|
48
|
+
}, label ? /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: style.label
|
|
50
|
+
}, label) : null, getLeftPlaceHolder), getRightPlaceHolder && /*#__PURE__*/React.createElement(Box, {
|
|
51
|
+
flexible: true,
|
|
52
|
+
shrink: true,
|
|
53
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
54
|
+
className: rightClassName
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
56
|
+
alignBox: "row",
|
|
57
|
+
align: "vertical",
|
|
58
|
+
className: style.aside
|
|
59
|
+
}, getRightPlaceHolder))));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
SubtabHeader.propTypes = SubtabHeader_propTypes;
|
|
64
|
+
SubtabHeader.defaultProps = SubtabHeader_defaultProps;
|
|
65
|
+
export class SubtabFooter extends React.Component {
|
|
66
|
+
render() {
|
|
67
|
+
let {
|
|
68
|
+
isPeekView,
|
|
69
|
+
getRightFooterPlaceHolder,
|
|
70
|
+
dataId,
|
|
71
|
+
children,
|
|
72
|
+
className,
|
|
73
|
+
leftClassName,
|
|
74
|
+
rightClassName,
|
|
75
|
+
size,
|
|
76
|
+
needPadding,
|
|
77
|
+
type
|
|
78
|
+
} = this.props;
|
|
79
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
80
|
+
alignBox: "row",
|
|
81
|
+
align: "vertical",
|
|
82
|
+
className: ` ${style.footer} ${needPadding ? isPeekView ? `${style[type]}_peekFooter` : `${style[type]}_detailFooter` : ''} ${style[size]} ${className}`,
|
|
83
|
+
dataId: dataId
|
|
84
|
+
}, children ? /*#__PURE__*/React.createElement(Box, {
|
|
85
|
+
flexible: true,
|
|
86
|
+
shrink: true,
|
|
87
|
+
className: leftClassName
|
|
88
|
+
}, children) : null, getRightFooterPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
89
|
+
flexible: true,
|
|
90
|
+
shrink: true,
|
|
91
|
+
className: rightClassName
|
|
92
|
+
}, getRightFooterPlaceHolder) : null);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
SubtabFooter.propTypes = SubtabFooter_propTypes;
|
|
97
|
+
SubtabFooter.defaultProps = SubtabFooter_defaultProps;
|
|
98
|
+
export class SubtabContent extends React.Component {
|
|
99
|
+
render() {
|
|
100
|
+
let {
|
|
101
|
+
children,
|
|
102
|
+
scroll,
|
|
103
|
+
className,
|
|
104
|
+
eleRef,
|
|
105
|
+
dataId,
|
|
106
|
+
onScroll
|
|
107
|
+
} = this.props;
|
|
108
|
+
return /*#__PURE__*/React.createElement(CardContent, {
|
|
109
|
+
scroll: scroll,
|
|
110
|
+
isScrollAttribute: true,
|
|
111
|
+
onScroll: onScroll,
|
|
112
|
+
customClass: className ? className : '',
|
|
113
|
+
eleRef: eleRef,
|
|
114
|
+
dataId: dataId
|
|
115
|
+
}, children);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
}
|
|
119
|
+
SubtabContent.propTypes = SubtabContent_propTypes;
|
|
120
|
+
SubtabContent.defaultProps = SubtabContent_defaultProps;
|
|
121
|
+
export default class SubtabLayout extends React.Component {
|
|
122
|
+
render() {
|
|
123
|
+
let {
|
|
124
|
+
children,
|
|
125
|
+
dataId
|
|
126
|
+
} = this.props;
|
|
127
|
+
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
128
|
+
isScrollAttribute: true,
|
|
129
|
+
dataId: dataId
|
|
130
|
+
}, this.props, {
|
|
131
|
+
childTypes: {
|
|
132
|
+
cardHeader: SubtabHeader,
|
|
133
|
+
cardContent: SubtabContent
|
|
134
|
+
}
|
|
135
|
+
}), children);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
SubtabLayout.defaultProps = SubtabLayout_defaultProps;
|
|
140
|
+
SubtabLayout.propTypes = SubtabLayout_propTypes; // if (__DOCS__) {
|
|
141
|
+
// SubtabLayout.docs = {
|
|
142
|
+
// componentGroup: 'Template'
|
|
143
|
+
// };
|
|
144
|
+
// }
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { defaultProps } from '../../../list/AvatarFlip/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../list/AvatarFlip/props/propTypes';
|
|
4
|
+
import FlipCard from '../../FlipCard/FlipCard';
|
|
5
|
+
import style from '../../../list/AvatarFlip/AvatarFlip.module.css';
|
|
6
|
+
export default class AvatarFlip extends Component {
|
|
7
|
+
render() {
|
|
8
|
+
let {
|
|
9
|
+
id,
|
|
10
|
+
action,
|
|
11
|
+
name,
|
|
12
|
+
isChecked,
|
|
13
|
+
onChange,
|
|
14
|
+
noNeedFlip,
|
|
15
|
+
size,
|
|
16
|
+
onClick,
|
|
17
|
+
isPaidUser,
|
|
18
|
+
isPortalUser,
|
|
19
|
+
channel,
|
|
20
|
+
src,
|
|
21
|
+
icon,
|
|
22
|
+
initial,
|
|
23
|
+
dataId,
|
|
24
|
+
className,
|
|
25
|
+
palette,
|
|
26
|
+
textPalette,
|
|
27
|
+
customTextClass,
|
|
28
|
+
frontClass,
|
|
29
|
+
needTitle,
|
|
30
|
+
tourId,
|
|
31
|
+
iconSize,
|
|
32
|
+
isFilledCheckbox,
|
|
33
|
+
channelTitle,
|
|
34
|
+
customProps
|
|
35
|
+
} = this.props;
|
|
36
|
+
return /*#__PURE__*/React.createElement(FlipCard, {
|
|
37
|
+
id: id,
|
|
38
|
+
action: action,
|
|
39
|
+
name: name,
|
|
40
|
+
initial: initial,
|
|
41
|
+
isChecked: isChecked,
|
|
42
|
+
onChange: onChange,
|
|
43
|
+
noNeedFlip: noNeedFlip,
|
|
44
|
+
size: size,
|
|
45
|
+
onClick: onClick,
|
|
46
|
+
isPaidUser: isPaidUser,
|
|
47
|
+
isPortalUser: isPortalUser,
|
|
48
|
+
channel: channel,
|
|
49
|
+
src: src,
|
|
50
|
+
icon: icon,
|
|
51
|
+
iconSize: iconSize,
|
|
52
|
+
iconClass: `${style.iconStyle}`,
|
|
53
|
+
dataId: dataId,
|
|
54
|
+
ticListContainer: "tic-list-filp-cont",
|
|
55
|
+
ticList: "tic-list-filp",
|
|
56
|
+
className: className,
|
|
57
|
+
palette: palette,
|
|
58
|
+
textPalette: textPalette,
|
|
59
|
+
customTextClass: customTextClass,
|
|
60
|
+
frontClass: frontClass,
|
|
61
|
+
needTitle: needTitle,
|
|
62
|
+
tourId: tourId,
|
|
63
|
+
isFilledCheckbox: isFilledCheckbox,
|
|
64
|
+
channelTitle: channelTitle,
|
|
65
|
+
customProps: customProps
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
AvatarFlip.propTypes = propTypes;
|
|
71
|
+
AvatarFlip.defaultProps = defaultProps; // if (__DOCS__) {
|
|
72
|
+
// AvatarFlip.docs = {
|
|
73
|
+
// folderName: 'List',
|
|
74
|
+
// componentGroup: 'AvatarFlip'
|
|
75
|
+
// };
|
|
76
|
+
// }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { propTypes } from '../../../list/BluePrintStatus/props/propTypes';
|
|
3
|
+
import style from '../../../list/BluePrintStatus/BluePrintStatus.module.css';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
export default class BluePrintStatus extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
let {
|
|
12
|
+
title
|
|
13
|
+
} = this.props;
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
15
|
+
className: `${style.container}`
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
+
name: "ZD-blueprint",
|
|
18
|
+
title: title,
|
|
19
|
+
iconClass: style.iconStyle
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
BluePrintStatus.propTypes = propTypes; // if (__DOCS__) {
|
|
25
|
+
// BluePrintStatus.docs = {
|
|
26
|
+
// componentGroup: 'Atom'
|
|
27
|
+
// };
|
|
28
|
+
// }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { defaultProps } from '../../../list/Comment/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../list/Comment/props/propTypes';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
6
|
+
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
7
|
+
import style from '../../../list/Comment/Comment.module.css';
|
|
8
|
+
export default class Comment extends Component {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(props);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
render() {
|
|
14
|
+
let {
|
|
15
|
+
count,
|
|
16
|
+
onClick,
|
|
17
|
+
className
|
|
18
|
+
} = this.props;
|
|
19
|
+
let i18N = i18NProviderUtils.getI18NValue;
|
|
20
|
+
let commentCount = parseInt(count);
|
|
21
|
+
let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
22
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
23
|
+
customClass: `${style.container} ${className} `,
|
|
24
|
+
onClick: onClick,
|
|
25
|
+
dataId: "commentLstContainer",
|
|
26
|
+
title: commentTitle,
|
|
27
|
+
a11y: {
|
|
28
|
+
ariaLabel: commentTitle
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
31
|
+
name: "ZD-TK-commentLine",
|
|
32
|
+
iconClass: style.commentIcon
|
|
33
|
+
}), count && /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
className: style.count
|
|
35
|
+
}, count));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
Comment.defaultProps = defaultProps;
|
|
40
|
+
Comment.propTypes = propTypes; // if (__DOCS__) {
|
|
41
|
+
// Comment.docs = {
|
|
42
|
+
// folderName: 'List',
|
|
43
|
+
// componentGroup: 'Comment'
|
|
44
|
+
// };
|
|
45
|
+
// }
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { defaultProps } from '../../../list/DepartmentDropDown/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../list/DepartmentDropDown/props/propTypes';
|
|
4
|
+
import ToggleDropDown from '../../dropdown/ToggleDropDown/ToggleDropDown';
|
|
5
|
+
import { DepartmentText } from '../SecondaryText';
|
|
6
|
+
import style from '../../../list/DepartmentDropDown/DepartmentDropDown.module.css';
|
|
7
|
+
|
|
8
|
+
class DepartmentDropDown extends Component {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(props);
|
|
11
|
+
this.onClick = this.onClick.bind(this);
|
|
12
|
+
this.onMoveDepartment = this.onMoveDepartment.bind(this);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
onClick(e) {
|
|
16
|
+
let {
|
|
17
|
+
getDepartment,
|
|
18
|
+
onSearch
|
|
19
|
+
} = this.props;
|
|
20
|
+
|
|
21
|
+
if (getDepartment) {
|
|
22
|
+
getDepartment(e);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onSearch('');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
onMoveDepartment(deptId) {
|
|
29
|
+
let {
|
|
30
|
+
onSearch,
|
|
31
|
+
onMoveDepartment
|
|
32
|
+
} = this.props;
|
|
33
|
+
onSearch('');
|
|
34
|
+
onMoveDepartment(deptId);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
render() {
|
|
38
|
+
let {
|
|
39
|
+
departmentName,
|
|
40
|
+
departmentList = [],
|
|
41
|
+
onSelectLabel,
|
|
42
|
+
isEditable,
|
|
43
|
+
dataId,
|
|
44
|
+
isFetching,
|
|
45
|
+
isPopupActive,
|
|
46
|
+
getNextOptions,
|
|
47
|
+
isNextOptions,
|
|
48
|
+
onSearch,
|
|
49
|
+
needSearchFetching,
|
|
50
|
+
searchStr,
|
|
51
|
+
i18nKeys
|
|
52
|
+
} = this.props;
|
|
53
|
+
let {
|
|
54
|
+
title = 'Move Department',
|
|
55
|
+
searchEmptyText = 'No results found',
|
|
56
|
+
searchErrorText = 'No results',
|
|
57
|
+
placeholder = 'Search Department'
|
|
58
|
+
} = i18nKeys;
|
|
59
|
+
return /*#__PURE__*/React.createElement(ToggleDropDown, {
|
|
60
|
+
title: title,
|
|
61
|
+
options: departmentList,
|
|
62
|
+
value: /*#__PURE__*/React.createElement(DepartmentText, {
|
|
63
|
+
text: departmentName,
|
|
64
|
+
dataTitle: departmentName
|
|
65
|
+
}),
|
|
66
|
+
keyName: "name",
|
|
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
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
DepartmentDropDown.defaultProps = defaultProps;
|
|
94
|
+
DepartmentDropDown.propTypes = propTypes;
|
|
95
|
+
export default DepartmentDropDown; // if (__DOCS__) {
|
|
96
|
+
// DepartmentDropDown.docs = {
|
|
97
|
+
// folderName: 'List',
|
|
98
|
+
// componentGroup: 'DepartmentDropDown'
|
|
99
|
+
// };
|
|
100
|
+
// }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { defaultProps } from '../../../list/Dot/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../list/Dot/props/propTypes';
|
|
4
|
+
import style from '../../../list/Dot/Dot.module.css';
|
|
5
|
+
export default class Dot extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
let {
|
|
12
|
+
className,
|
|
13
|
+
spacingType
|
|
14
|
+
} = this.props;
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: `${style.dot} ${style[spacingType]} ${className}`
|
|
17
|
+
}, ".");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
Dot.propTypes = propTypes;
|
|
22
|
+
Dot.defaultProps = defaultProps;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { defaultProps } from '../../../list/DotNew/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../list/DotNew/props/propTypes';
|
|
4
|
+
import style from '../../../list/DotNew/DotNew.module.css';
|
|
5
|
+
export default class DotNew extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
let {
|
|
12
|
+
className,
|
|
13
|
+
dataTitle,
|
|
14
|
+
size
|
|
15
|
+
} = this.props;
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: `${style.container} ${style[size]} ${className ? className : ''}`,
|
|
18
|
+
"data-title": dataTitle
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
DotNew.propTypes = propTypes;
|
|
24
|
+
DotNew.defaultProps = defaultProps; // if (__DOCS__) {
|
|
25
|
+
// DotNew.docs = {
|
|
26
|
+
// folderName: 'List',
|
|
27
|
+
// componentGroup: 'DotNew'
|
|
28
|
+
// };
|
|
29
|
+
// }
|