@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,305 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.SetupHeader = exports.SetupFooter = exports.SetupContent = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _defaultProps = require("../../../layout/SetupDetailLayout/props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("../../../layout/SetupDetailLayout/props/propTypes");
|
|
15
|
+
|
|
16
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
17
|
+
|
|
18
|
+
var _icons = require("@zohodesk/icons");
|
|
19
|
+
|
|
20
|
+
var _SetupDetailLayoutModule = _interopRequireDefault(require("../../../layout/SetupDetailLayout/SetupDetailLayout.module.css"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
|
|
30
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
+
|
|
32
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
+
|
|
34
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
|
|
38
|
+
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); }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
+
|
|
44
|
+
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; } }
|
|
45
|
+
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
+
|
|
48
|
+
var SetupDetailLayout = /*#__PURE__*/function (_React$Component) {
|
|
49
|
+
_inherits(SetupDetailLayout, _React$Component);
|
|
50
|
+
|
|
51
|
+
var _super = _createSuper(SetupDetailLayout);
|
|
52
|
+
|
|
53
|
+
function SetupDetailLayout(props) {
|
|
54
|
+
var _this;
|
|
55
|
+
|
|
56
|
+
_classCallCheck(this, SetupDetailLayout);
|
|
57
|
+
|
|
58
|
+
_this = _super.call(this, props);
|
|
59
|
+
_this.state = {
|
|
60
|
+
isHelpInfoOpen: false
|
|
61
|
+
};
|
|
62
|
+
_this.toggleHelpInfo = _this.toggleHelpInfo.bind(_assertThisInitialized(_this));
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_createClass(SetupDetailLayout, [{
|
|
67
|
+
key: "toggleHelpInfo",
|
|
68
|
+
value: function toggleHelpInfo() {
|
|
69
|
+
var isHelpInfoOpen = this.state.isHelpInfoOpen;
|
|
70
|
+
this.setState({
|
|
71
|
+
isHelpInfoOpen: !isHelpInfoOpen
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "render",
|
|
76
|
+
value: function render() {
|
|
77
|
+
var _this2 = this;
|
|
78
|
+
|
|
79
|
+
var isHelpInfoOpen = this.state.isHelpInfoOpen;
|
|
80
|
+
var _this$props = this.props,
|
|
81
|
+
children = _this$props.children,
|
|
82
|
+
needHelpInfo = _this$props.needHelpInfo,
|
|
83
|
+
getHelpInfo = _this$props.getHelpInfo,
|
|
84
|
+
helpInfoTitle = _this$props.helpInfoTitle,
|
|
85
|
+
dataId = _this$props.dataId,
|
|
86
|
+
i18nKeys = _this$props.i18nKeys;
|
|
87
|
+
var _i18nKeys$closeText = i18nKeys.closeText,
|
|
88
|
+
closeText = _i18nKeys$closeText === void 0 ? 'Close' : _i18nKeys$closeText;
|
|
89
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
90
|
+
isScrollAttribute: true,
|
|
91
|
+
dataId: dataId
|
|
92
|
+
}, _react["default"].Children.map(children, function (child) {
|
|
93
|
+
if (child && child.type == SetupHeader) {
|
|
94
|
+
return /*#__PURE__*/_react["default"].cloneElement(child, {
|
|
95
|
+
openHelpInfo: _this2.toggleHelpInfo,
|
|
96
|
+
needHelpInfo: needHelpInfo
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return child;
|
|
101
|
+
}), getHelpInfo ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
102
|
+
className: "".concat(_SetupDetailLayoutModule["default"].popup, " ").concat(isHelpInfoOpen ? _SetupDetailLayoutModule["default"].open : _SetupDetailLayoutModule["default"].close),
|
|
103
|
+
dataId: "".concat(dataId, "_infobox")
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
105
|
+
alignBox: "row",
|
|
106
|
+
align: "vertical",
|
|
107
|
+
className: _SetupDetailLayoutModule["default"].infoHeader
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
109
|
+
className: _SetupDetailLayoutModule["default"].infoIcon
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
111
|
+
name: "ZD-info31"
|
|
112
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
113
|
+
flexible: true,
|
|
114
|
+
className: _SetupDetailLayoutModule["default"].infoText
|
|
115
|
+
}, helpInfoTitle), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
onClick: this.toggleHelpInfo,
|
|
117
|
+
className: _SetupDetailLayoutModule["default"].infoClose,
|
|
118
|
+
"data-title": closeText,
|
|
119
|
+
"data-id": "".concat(dataId, "_close"),
|
|
120
|
+
"data-test-id": "".concat(dataId, "_close")
|
|
121
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
122
|
+
name: "ZD-close"
|
|
123
|
+
}))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
124
|
+
flexible: true,
|
|
125
|
+
scroll: "vertical",
|
|
126
|
+
className: _SetupDetailLayoutModule["default"].infoFooter
|
|
127
|
+
}, getHelpInfo()))) : null);
|
|
128
|
+
}
|
|
129
|
+
}]);
|
|
130
|
+
|
|
131
|
+
return SetupDetailLayout;
|
|
132
|
+
}(_react["default"].Component);
|
|
133
|
+
|
|
134
|
+
exports["default"] = SetupDetailLayout;
|
|
135
|
+
SetupDetailLayout.propTypes = _propTypes.SetupDetailLayout_propTypes;
|
|
136
|
+
SetupDetailLayout.defaultProps = _defaultProps.SetupDetailLayout_defaultProps; // if (__DOCS__) {
|
|
137
|
+
// SetupDetailLayout.docs = {
|
|
138
|
+
// componentGroup: 'Template'
|
|
139
|
+
// };
|
|
140
|
+
// }
|
|
141
|
+
|
|
142
|
+
var SetupHeader = /*#__PURE__*/function (_Component) {
|
|
143
|
+
_inherits(SetupHeader, _Component);
|
|
144
|
+
|
|
145
|
+
var _super2 = _createSuper(SetupHeader);
|
|
146
|
+
|
|
147
|
+
function SetupHeader(props) {
|
|
148
|
+
_classCallCheck(this, SetupHeader);
|
|
149
|
+
|
|
150
|
+
return _super2.call(this, props);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
_createClass(SetupHeader, [{
|
|
154
|
+
key: "render",
|
|
155
|
+
value: function render() {
|
|
156
|
+
var _this$props2 = this.props,
|
|
157
|
+
title = _this$props2.title,
|
|
158
|
+
needBack = _this$props2.needBack,
|
|
159
|
+
onBackClick = _this$props2.onBackClick,
|
|
160
|
+
openHelpInfo = _this$props2.openHelpInfo,
|
|
161
|
+
needHelpInfo = _this$props2.needHelpInfo,
|
|
162
|
+
needHelpInfoWrapper = _this$props2.needHelpInfoWrapper,
|
|
163
|
+
getLeftPlaceHolder = _this$props2.getLeftPlaceHolder,
|
|
164
|
+
getRightPlaceHolder = _this$props2.getRightPlaceHolder,
|
|
165
|
+
leftClassName = _this$props2.leftClassName,
|
|
166
|
+
rightClassName = _this$props2.rightClassName,
|
|
167
|
+
isCustomizedHeader = _this$props2.isCustomizedHeader,
|
|
168
|
+
headerCustomStyle = _this$props2.headerCustomStyle,
|
|
169
|
+
dataId = _this$props2.dataId,
|
|
170
|
+
i18nKeys = _this$props2.i18nKeys;
|
|
171
|
+
var _i18nKeys$infoText = i18nKeys.infoText,
|
|
172
|
+
infoText = _i18nKeys$infoText === void 0 ? 'Help' : _i18nKeys$infoText,
|
|
173
|
+
_i18nKeys$backText = i18nKeys.backText,
|
|
174
|
+
backText = _i18nKeys$backText === void 0 ? 'Back' : _i18nKeys$backText;
|
|
175
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
176
|
+
className: isCustomizedHeader === true ? headerCustomStyle : _SetupDetailLayoutModule["default"].header,
|
|
177
|
+
dataId: dataId
|
|
178
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
179
|
+
alignBox: "row",
|
|
180
|
+
align: "vertical"
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
182
|
+
className: _SetupDetailLayoutModule["default"].back
|
|
183
|
+
}, needBack ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
|
+
className: _SetupDetailLayoutModule["default"].backIcon,
|
|
185
|
+
onClick: onBackClick,
|
|
186
|
+
"data-title": backText,
|
|
187
|
+
"data-id": "".concat(dataId, "_back"),
|
|
188
|
+
"data-test-id": "".concat(dataId, "_back")
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
190
|
+
name: "ZD-back"
|
|
191
|
+
})) : null), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
192
|
+
flexible: !getLeftPlaceHolder && !getRightPlaceHolder ? true : false,
|
|
193
|
+
className: _SetupDetailLayoutModule["default"].title,
|
|
194
|
+
dataId: "".concat(dataId, "_title")
|
|
195
|
+
}, title), getLeftPlaceHolder ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
196
|
+
flexible: true,
|
|
197
|
+
shrink: true,
|
|
198
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
199
|
+
className: leftClassName
|
|
200
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
201
|
+
align: "vertical",
|
|
202
|
+
alignBox: "row"
|
|
203
|
+
}, getLeftPlaceHolder())) : null, getRightPlaceHolder ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
204
|
+
flexible: true,
|
|
205
|
+
shrink: true,
|
|
206
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
207
|
+
className: rightClassName
|
|
208
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
209
|
+
align: "vertical",
|
|
210
|
+
alignBox: "row",
|
|
211
|
+
className: _SetupDetailLayoutModule["default"].rightPanel
|
|
212
|
+
}, getRightPlaceHolder())) : null, needHelpInfo ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, needHelpInfoWrapper ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
213
|
+
className: _SetupDetailLayoutModule["default"].helpInfoCont
|
|
214
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
215
|
+
className: _SetupDetailLayoutModule["default"].helpInfo,
|
|
216
|
+
onClick: openHelpInfo,
|
|
217
|
+
"data-title": infoText,
|
|
218
|
+
"data-id": "".concat(dataId, "_info"),
|
|
219
|
+
"data-test-id": "".concat(dataId, "_info")
|
|
220
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
221
|
+
name: "ZD-info31"
|
|
222
|
+
}))) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
223
|
+
className: "".concat(_SetupDetailLayoutModule["default"].helpInfo, " ").concat(_SetupDetailLayoutModule["default"].mr15),
|
|
224
|
+
onClick: openHelpInfo,
|
|
225
|
+
"data-title": infoText,
|
|
226
|
+
"data-id": "".concat(dataId, "_info"),
|
|
227
|
+
"data-test-id": "".concat(dataId, "_info")
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
229
|
+
name: "ZD-info31"
|
|
230
|
+
}))) : null));
|
|
231
|
+
}
|
|
232
|
+
}]);
|
|
233
|
+
|
|
234
|
+
return SetupHeader;
|
|
235
|
+
}(_react.Component);
|
|
236
|
+
|
|
237
|
+
exports.SetupHeader = SetupHeader;
|
|
238
|
+
SetupHeader.propTypes = _propTypes.SetupHeader_propTypes;
|
|
239
|
+
SetupHeader.defaultProps = _defaultProps.SetupHeader_defaultProps;
|
|
240
|
+
|
|
241
|
+
var SetupContent = /*#__PURE__*/function (_Component2) {
|
|
242
|
+
_inherits(SetupContent, _Component2);
|
|
243
|
+
|
|
244
|
+
var _super3 = _createSuper(SetupContent);
|
|
245
|
+
|
|
246
|
+
function SetupContent(props) {
|
|
247
|
+
_classCallCheck(this, SetupContent);
|
|
248
|
+
|
|
249
|
+
return _super3.call(this, props);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
_createClass(SetupContent, [{
|
|
253
|
+
key: "render",
|
|
254
|
+
value: function render() {
|
|
255
|
+
var _this$props3 = this.props,
|
|
256
|
+
children = _this$props3.children,
|
|
257
|
+
needPadding = _this$props3.needPadding,
|
|
258
|
+
className = _this$props3.className,
|
|
259
|
+
dataId = _this$props3.dataId;
|
|
260
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
261
|
+
flexible: true,
|
|
262
|
+
scroll: "vertical",
|
|
263
|
+
className: "".concat(className ? className : '', " ").concat(_SetupDetailLayoutModule["default"].content, " ").concat(needPadding ? _SetupDetailLayoutModule["default"].padding : '', " "),
|
|
264
|
+
isScrollAttribute: true,
|
|
265
|
+
dataId: dataId
|
|
266
|
+
}, children);
|
|
267
|
+
}
|
|
268
|
+
}]);
|
|
269
|
+
|
|
270
|
+
return SetupContent;
|
|
271
|
+
}(_react.Component);
|
|
272
|
+
|
|
273
|
+
exports.SetupContent = SetupContent;
|
|
274
|
+
SetupContent.propTypes = _propTypes.SetupContent_propTypes;
|
|
275
|
+
SetupContent.defaultProps = _defaultProps.SetupContent_defaultProps;
|
|
276
|
+
|
|
277
|
+
var SetupFooter = /*#__PURE__*/function (_Component3) {
|
|
278
|
+
_inherits(SetupFooter, _Component3);
|
|
279
|
+
|
|
280
|
+
var _super4 = _createSuper(SetupFooter);
|
|
281
|
+
|
|
282
|
+
function SetupFooter(props) {
|
|
283
|
+
_classCallCheck(this, SetupFooter);
|
|
284
|
+
|
|
285
|
+
return _super4.call(this, props);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
_createClass(SetupFooter, [{
|
|
289
|
+
key: "render",
|
|
290
|
+
value: function render() {
|
|
291
|
+
var _this$props4 = this.props,
|
|
292
|
+
children = _this$props4.children,
|
|
293
|
+
dataId = _this$props4.dataId;
|
|
294
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
295
|
+
dataId: dataId
|
|
296
|
+
}, children);
|
|
297
|
+
}
|
|
298
|
+
}]);
|
|
299
|
+
|
|
300
|
+
return SetupFooter;
|
|
301
|
+
}(_react.Component);
|
|
302
|
+
|
|
303
|
+
exports.SetupFooter = SetupFooter;
|
|
304
|
+
SetupFooter.propTypes = _propTypes.SetupFooter_propTypes;
|
|
305
|
+
SetupFooter.defaultProps = _defaultProps.SetupFooter_defaultProps;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "SetupContent", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _SetupDetailLayout.SetupContent;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "SetupDetailLayout", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _SetupDetailLayout["default"];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "SetupFooter", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _SetupDetailLayout.SetupFooter;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "SetupHeader", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _SetupDetailLayout.SetupHeader;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _SetupDetailLayout = _interopRequireWildcard(require("./SetupDetailLayout"));
|
|
34
|
+
|
|
35
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
|
+
|
|
37
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.SubtabHeader = exports.SubtabFooter = exports.SubtabContent = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../layout/SubtabLayout/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _defaultProps = require("../../../layout/SubtabLayout/props/defaultProps");
|
|
15
|
+
|
|
16
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
17
|
+
|
|
18
|
+
var _Card = require("@zohodesk/components/lib/Card");
|
|
19
|
+
|
|
20
|
+
var _PlusIcon = _interopRequireDefault(require("../../PlusIcon/PlusIcon"));
|
|
21
|
+
|
|
22
|
+
var _SubtabLayoutModule = _interopRequireDefault(require("../../../layout/SubtabLayout/SubtabLayout.module.css"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
|
|
30
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
+
|
|
32
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
+
|
|
34
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
|
|
38
|
+
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); }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
+
|
|
44
|
+
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; } }
|
|
45
|
+
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
+
|
|
48
|
+
var SubtabHeader = /*#__PURE__*/function (_React$Component) {
|
|
49
|
+
_inherits(SubtabHeader, _React$Component);
|
|
50
|
+
|
|
51
|
+
var _super = _createSuper(SubtabHeader);
|
|
52
|
+
|
|
53
|
+
function SubtabHeader() {
|
|
54
|
+
_classCallCheck(this, SubtabHeader);
|
|
55
|
+
|
|
56
|
+
return _super.apply(this, arguments);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_createClass(SubtabHeader, [{
|
|
60
|
+
key: "render",
|
|
61
|
+
value: function render() {
|
|
62
|
+
var _this$props = this.props,
|
|
63
|
+
onAdd = _this$props.onAdd,
|
|
64
|
+
getLeftPlaceHolder = _this$props.getLeftPlaceHolder,
|
|
65
|
+
title = _this$props.title,
|
|
66
|
+
label = _this$props.label,
|
|
67
|
+
getRightPlaceHolder = _this$props.getRightPlaceHolder,
|
|
68
|
+
type = _this$props.type,
|
|
69
|
+
leftClassName = _this$props.leftClassName,
|
|
70
|
+
rightClassName = _this$props.rightClassName,
|
|
71
|
+
className = _this$props.className,
|
|
72
|
+
needBorder = _this$props.needBorder,
|
|
73
|
+
needShadow = _this$props.needShadow,
|
|
74
|
+
needPlusIconLine = _this$props.needPlusIconLine,
|
|
75
|
+
children = _this$props.children,
|
|
76
|
+
dataId = _this$props.dataId,
|
|
77
|
+
isPeekView = _this$props.isPeekView;
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, {
|
|
79
|
+
customClass: "".concat(_SubtabLayoutModule["default"].tabHead, " ").concat(needShadow ? _SubtabLayoutModule["default"].shadowStyle : '', " ").concat(needBorder ? "".concat(_SubtabLayoutModule["default"][type], "_borderStyle") : '')
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
81
|
+
alignBox: "row",
|
|
82
|
+
className: " ".concat(className, " ").concat(isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peek") : _SubtabLayoutModule["default"][type]),
|
|
83
|
+
align: "vertical"
|
|
84
|
+
}, onAdd || children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
85
|
+
className: "".concat(_SubtabLayoutModule["default"].left, " ").concat(needPlusIconLine ? _SubtabLayoutModule["default"].plusIconLine : '')
|
|
86
|
+
}, onAdd ? /*#__PURE__*/_react["default"].createElement(_PlusIcon["default"], {
|
|
87
|
+
dataId: dataId,
|
|
88
|
+
onClick: onAdd
|
|
89
|
+
}) : children) : null, title ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
90
|
+
className: "".concat(_SubtabLayoutModule["default"].title, " ").concat(onAdd ? _SubtabLayoutModule["default"].cursor : ''),
|
|
91
|
+
onClick: onAdd ? onAdd : null
|
|
92
|
+
}, title) : null, getLeftPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
93
|
+
flexible: true,
|
|
94
|
+
shrink: true,
|
|
95
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
96
|
+
className: leftClassName
|
|
97
|
+
}, label ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: _SubtabLayoutModule["default"].label
|
|
99
|
+
}, label) : null, getLeftPlaceHolder), getRightPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
100
|
+
flexible: true,
|
|
101
|
+
shrink: true,
|
|
102
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
103
|
+
className: rightClassName
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
105
|
+
alignBox: "row",
|
|
106
|
+
align: "vertical",
|
|
107
|
+
className: _SubtabLayoutModule["default"].aside
|
|
108
|
+
}, getRightPlaceHolder))));
|
|
109
|
+
}
|
|
110
|
+
}]);
|
|
111
|
+
|
|
112
|
+
return SubtabHeader;
|
|
113
|
+
}(_react["default"].Component);
|
|
114
|
+
|
|
115
|
+
exports.SubtabHeader = SubtabHeader;
|
|
116
|
+
SubtabHeader.propTypes = _propTypes.SubtabHeader_propTypes;
|
|
117
|
+
SubtabHeader.defaultProps = _defaultProps.SubtabHeader_defaultProps;
|
|
118
|
+
|
|
119
|
+
var SubtabFooter = /*#__PURE__*/function (_React$Component2) {
|
|
120
|
+
_inherits(SubtabFooter, _React$Component2);
|
|
121
|
+
|
|
122
|
+
var _super2 = _createSuper(SubtabFooter);
|
|
123
|
+
|
|
124
|
+
function SubtabFooter() {
|
|
125
|
+
_classCallCheck(this, SubtabFooter);
|
|
126
|
+
|
|
127
|
+
return _super2.apply(this, arguments);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_createClass(SubtabFooter, [{
|
|
131
|
+
key: "render",
|
|
132
|
+
value: function render() {
|
|
133
|
+
var _this$props2 = this.props,
|
|
134
|
+
isPeekView = _this$props2.isPeekView,
|
|
135
|
+
getRightFooterPlaceHolder = _this$props2.getRightFooterPlaceHolder,
|
|
136
|
+
dataId = _this$props2.dataId,
|
|
137
|
+
children = _this$props2.children,
|
|
138
|
+
className = _this$props2.className,
|
|
139
|
+
leftClassName = _this$props2.leftClassName,
|
|
140
|
+
rightClassName = _this$props2.rightClassName,
|
|
141
|
+
size = _this$props2.size,
|
|
142
|
+
needPadding = _this$props2.needPadding,
|
|
143
|
+
type = _this$props2.type;
|
|
144
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
145
|
+
alignBox: "row",
|
|
146
|
+
align: "vertical",
|
|
147
|
+
className: " ".concat(_SubtabLayoutModule["default"].footer, " ").concat(needPadding ? isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peekFooter") : "".concat(_SubtabLayoutModule["default"][type], "_detailFooter") : '', " ").concat(_SubtabLayoutModule["default"][size], " ").concat(className),
|
|
148
|
+
dataId: dataId
|
|
149
|
+
}, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
150
|
+
flexible: true,
|
|
151
|
+
shrink: true,
|
|
152
|
+
className: leftClassName
|
|
153
|
+
}, children) : null, getRightFooterPlaceHolder ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
154
|
+
flexible: true,
|
|
155
|
+
shrink: true,
|
|
156
|
+
className: rightClassName
|
|
157
|
+
}, getRightFooterPlaceHolder) : null);
|
|
158
|
+
}
|
|
159
|
+
}]);
|
|
160
|
+
|
|
161
|
+
return SubtabFooter;
|
|
162
|
+
}(_react["default"].Component);
|
|
163
|
+
|
|
164
|
+
exports.SubtabFooter = SubtabFooter;
|
|
165
|
+
SubtabFooter.propTypes = _propTypes.SubtabFooter_propTypes;
|
|
166
|
+
SubtabFooter.defaultProps = _defaultProps.SubtabFooter_defaultProps;
|
|
167
|
+
|
|
168
|
+
var SubtabContent = /*#__PURE__*/function (_React$Component3) {
|
|
169
|
+
_inherits(SubtabContent, _React$Component3);
|
|
170
|
+
|
|
171
|
+
var _super3 = _createSuper(SubtabContent);
|
|
172
|
+
|
|
173
|
+
function SubtabContent() {
|
|
174
|
+
_classCallCheck(this, SubtabContent);
|
|
175
|
+
|
|
176
|
+
return _super3.apply(this, arguments);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
_createClass(SubtabContent, [{
|
|
180
|
+
key: "render",
|
|
181
|
+
value: function render() {
|
|
182
|
+
var _this$props3 = this.props,
|
|
183
|
+
children = _this$props3.children,
|
|
184
|
+
scroll = _this$props3.scroll,
|
|
185
|
+
className = _this$props3.className,
|
|
186
|
+
eleRef = _this$props3.eleRef,
|
|
187
|
+
dataId = _this$props3.dataId,
|
|
188
|
+
onScroll = _this$props3.onScroll;
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
190
|
+
scroll: scroll,
|
|
191
|
+
isScrollAttribute: true,
|
|
192
|
+
onScroll: onScroll,
|
|
193
|
+
customClass: className ? className : '',
|
|
194
|
+
eleRef: eleRef,
|
|
195
|
+
dataId: dataId
|
|
196
|
+
}, children);
|
|
197
|
+
}
|
|
198
|
+
}]);
|
|
199
|
+
|
|
200
|
+
return SubtabContent;
|
|
201
|
+
}(_react["default"].Component);
|
|
202
|
+
|
|
203
|
+
exports.SubtabContent = SubtabContent;
|
|
204
|
+
SubtabContent.propTypes = _propTypes.SubtabContent_propTypes;
|
|
205
|
+
SubtabContent.defaultProps = _defaultProps.SubtabContent_defaultProps;
|
|
206
|
+
|
|
207
|
+
var SubtabLayout = /*#__PURE__*/function (_React$Component4) {
|
|
208
|
+
_inherits(SubtabLayout, _React$Component4);
|
|
209
|
+
|
|
210
|
+
var _super4 = _createSuper(SubtabLayout);
|
|
211
|
+
|
|
212
|
+
function SubtabLayout() {
|
|
213
|
+
_classCallCheck(this, SubtabLayout);
|
|
214
|
+
|
|
215
|
+
return _super4.apply(this, arguments);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
_createClass(SubtabLayout, [{
|
|
219
|
+
key: "render",
|
|
220
|
+
value: function render() {
|
|
221
|
+
var _this$props4 = this.props,
|
|
222
|
+
children = _this$props4.children,
|
|
223
|
+
dataId = _this$props4.dataId;
|
|
224
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.Card, _extends({
|
|
225
|
+
isScrollAttribute: true,
|
|
226
|
+
dataId: dataId
|
|
227
|
+
}, this.props, {
|
|
228
|
+
childTypes: {
|
|
229
|
+
cardHeader: SubtabHeader,
|
|
230
|
+
cardContent: SubtabContent
|
|
231
|
+
}
|
|
232
|
+
}), children);
|
|
233
|
+
}
|
|
234
|
+
}]);
|
|
235
|
+
|
|
236
|
+
return SubtabLayout;
|
|
237
|
+
}(_react["default"].Component);
|
|
238
|
+
|
|
239
|
+
exports["default"] = SubtabLayout;
|
|
240
|
+
SubtabLayout.defaultProps = _defaultProps.SubtabLayout_defaultProps;
|
|
241
|
+
SubtabLayout.propTypes = _propTypes.SubtabLayout_propTypes; // if (__DOCS__) {
|
|
242
|
+
// SubtabLayout.docs = {
|
|
243
|
+
// componentGroup: 'Template'
|
|
244
|
+
// };
|
|
245
|
+
// }
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "SubtabContent", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _SubtabLayout.SubtabContent;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "SubtabFooter", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _SubtabLayout.SubtabFooter;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "SubtabHeader", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _SubtabLayout.SubtabHeader;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "SubtabLayout", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _SubtabLayout["default"];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _SubtabLayout = _interopRequireWildcard(require("./SubtabLayout"));
|
|
34
|
+
|
|
35
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
|
+
|
|
37
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|