@zohodesk/dot 1.2.4 → 1.3.0-temp-158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +20 -9
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
- 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/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -12
- package/coverage/coverage-summary.json +17 -13
- package/coverage/index.html +40 -10
- package/es/Drawer/Drawer.js +3 -2
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/es/v1/Attachment/Attachment.js +79 -76
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +41 -48
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +60 -67
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +129 -155
- package/es/v1/form/fields/DateField/DateField.js +132 -163
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +129 -157
- package/es/v1/form/fields/RadioField/RadioField.js +91 -99
- package/es/v1/form/fields/SelectField/SelectField.js +141 -156
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +155 -198
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +110 -126
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +77 -102
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Lookup/Lookup.js +4 -3
- package/es/v1/lookup/Section/Section.js +15 -21
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/Drawer/Drawer.js +3 -2
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +8 -6
- package/lib/v1/Attachment/Attachment.js +78 -113
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +6 -6
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +13 -56
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +45 -86
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +59 -104
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +108 -160
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +153 -194
- package/lib/v1/form/fields/DateField/DateField.js +141 -207
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +169 -229
- package/lib/v1/form/fields/PhoneField/PhoneField.js +151 -194
- package/lib/v1/form/fields/RadioField/RadioField.js +93 -139
- package/lib/v1/form/fields/SelectField/SelectField.js +152 -203
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +161 -254
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +109 -208
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +83 -139
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Lookup/Lookup.js +5 -3
- package/lib/v1/lookup/Section/Section.js +15 -59
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +10 -10
- package/result.json +1 -1
- package/unittest/index.html +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = Comment;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/Comment/props/defaultProps");
|
|
13
11
|
|
|
@@ -17,78 +15,35 @@ var _icons = require("@zohodesk/icons");
|
|
|
17
15
|
|
|
18
16
|
var _i18n = require("@zohodesk/i18n");
|
|
19
17
|
|
|
20
|
-
var _Button = _interopRequireDefault(require("@zohodesk/components/
|
|
18
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/es/v1/semantic/Button/Button"));
|
|
21
19
|
|
|
22
20
|
var _CommentModule = _interopRequireDefault(require("../../../list/Comment/Comment.module.css"));
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
-
|
|
42
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
-
|
|
44
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
-
|
|
46
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
-
|
|
48
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
|
|
50
|
-
var Comment = /*#__PURE__*/function (_Component) {
|
|
51
|
-
_inherits(Comment, _Component);
|
|
52
|
-
|
|
53
|
-
var _super = _createSuper(Comment);
|
|
54
|
-
|
|
55
|
-
function Comment(props) {
|
|
56
|
-
_classCallCheck(this, Comment);
|
|
57
|
-
|
|
58
|
-
return _super.call(this, props);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_createClass(Comment, [{
|
|
62
|
-
key: "render",
|
|
63
|
-
value: function render() {
|
|
64
|
-
var _this$props = this.props,
|
|
65
|
-
count = _this$props.count,
|
|
66
|
-
onClick = _this$props.onClick,
|
|
67
|
-
className = _this$props.className;
|
|
68
|
-
var i18N = _i18n.i18NProviderUtils.getI18NValue;
|
|
69
|
-
var commentCount = parseInt(count);
|
|
70
|
-
var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
72
|
-
customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
|
|
73
|
-
onClick: onClick,
|
|
74
|
-
dataId: "commentLstContainer",
|
|
75
|
-
title: commentTitle,
|
|
76
|
-
a11y: {
|
|
77
|
-
ariaLabel: commentTitle
|
|
78
|
-
}
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
80
|
-
name: "ZD-TK-commentLine",
|
|
81
|
-
iconClass: _CommentModule["default"].commentIcon
|
|
82
|
-
}), count && /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
|
-
className: _CommentModule["default"].count
|
|
84
|
-
}, count));
|
|
24
|
+
function Comment(props) {
|
|
25
|
+
var count = props.count,
|
|
26
|
+
onClick = props.onClick,
|
|
27
|
+
className = props.className;
|
|
28
|
+
var i18N = _i18n.i18NProviderUtils.getI18NValue;
|
|
29
|
+
var commentCount = parseInt(count);
|
|
30
|
+
var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
32
|
+
customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
|
|
33
|
+
onClick: onClick,
|
|
34
|
+
dataId: "commentLstContainer",
|
|
35
|
+
title: commentTitle,
|
|
36
|
+
a11y: {
|
|
37
|
+
ariaLabel: commentTitle
|
|
85
38
|
}
|
|
86
|
-
}]
|
|
39
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
40
|
+
name: "ZD-TK-commentLine",
|
|
41
|
+
iconClass: _CommentModule["default"].commentIcon
|
|
42
|
+
}), count && /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
|
+
className: _CommentModule["default"].count
|
|
44
|
+
}, count));
|
|
45
|
+
}
|
|
87
46
|
|
|
88
|
-
return Comment;
|
|
89
|
-
}(_react.Component);
|
|
90
|
-
|
|
91
|
-
exports["default"] = Comment;
|
|
92
47
|
Comment.defaultProps = _defaultProps.defaultProps;
|
|
93
48
|
Comment.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
94
49
|
// Comment.docs = {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/DepartmentDropDown/props/defaultProps");
|
|
13
11
|
|
|
@@ -21,129 +19,76 @@ var _DepartmentDropDownModule = _interopRequireDefault(require("../../../list/De
|
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var _this;
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, DepartmentDropDown);
|
|
22
|
+
function DepartmentDropDown(props) {
|
|
23
|
+
var departmentName = props.departmentName,
|
|
24
|
+
_props$departmentList = props.departmentList,
|
|
25
|
+
departmentList = _props$departmentList === void 0 ? [] : _props$departmentList,
|
|
26
|
+
onSelectLabel = props.onSelectLabel,
|
|
27
|
+
isEditable = props.isEditable,
|
|
28
|
+
dataId = props.dataId,
|
|
29
|
+
isFetching = props.isFetching,
|
|
30
|
+
isPopupActive = props.isPopupActive,
|
|
31
|
+
getNextOptions = props.getNextOptions,
|
|
32
|
+
isNextOptions = props.isNextOptions,
|
|
33
|
+
onSearch = props.onSearch,
|
|
34
|
+
needSearchFetching = props.needSearchFetching,
|
|
35
|
+
searchStr = props.searchStr,
|
|
36
|
+
i18nKeys = props.i18nKeys,
|
|
37
|
+
onMoveDepartment = props.onMoveDepartment,
|
|
38
|
+
getDepartment = props.getDepartment;
|
|
39
|
+
var _i18nKeys$title = i18nKeys.title,
|
|
40
|
+
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
41
|
+
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
42
|
+
searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
|
|
43
|
+
_i18nKeys$searchError = i18nKeys.searchErrorText,
|
|
44
|
+
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
45
|
+
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
46
|
+
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
47
|
+
|
|
48
|
+
function onClick(e) {
|
|
49
|
+
if (getDepartment) {
|
|
50
|
+
getDepartment(e);
|
|
51
|
+
}
|
|
57
52
|
|
|
58
|
-
|
|
59
|
-
_this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
|
|
60
|
-
_this.onMoveDepartment = _this.onMoveDepartment.bind(_assertThisInitialized(_this));
|
|
61
|
-
return _this;
|
|
53
|
+
onSearch('');
|
|
62
54
|
}
|
|
63
55
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
getDepartment = _this$props.getDepartment,
|
|
69
|
-
onSearch = _this$props.onSearch;
|
|
70
|
-
|
|
71
|
-
if (getDepartment) {
|
|
72
|
-
getDepartment(e);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
onSearch('');
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
78
|
-
key: "onMoveDepartment",
|
|
79
|
-
value: function onMoveDepartment(deptId) {
|
|
80
|
-
var _this$props2 = this.props,
|
|
81
|
-
onSearch = _this$props2.onSearch,
|
|
82
|
-
onMoveDepartment = _this$props2.onMoveDepartment;
|
|
83
|
-
onSearch('');
|
|
84
|
-
onMoveDepartment(deptId);
|
|
85
|
-
}
|
|
86
|
-
}, {
|
|
87
|
-
key: "render",
|
|
88
|
-
value: function render() {
|
|
89
|
-
var _this$props3 = this.props,
|
|
90
|
-
departmentName = _this$props3.departmentName,
|
|
91
|
-
_this$props3$departme = _this$props3.departmentList,
|
|
92
|
-
departmentList = _this$props3$departme === void 0 ? [] : _this$props3$departme,
|
|
93
|
-
onSelectLabel = _this$props3.onSelectLabel,
|
|
94
|
-
isEditable = _this$props3.isEditable,
|
|
95
|
-
dataId = _this$props3.dataId,
|
|
96
|
-
isFetching = _this$props3.isFetching,
|
|
97
|
-
isPopupActive = _this$props3.isPopupActive,
|
|
98
|
-
getNextOptions = _this$props3.getNextOptions,
|
|
99
|
-
isNextOptions = _this$props3.isNextOptions,
|
|
100
|
-
onSearch = _this$props3.onSearch,
|
|
101
|
-
needSearchFetching = _this$props3.needSearchFetching,
|
|
102
|
-
searchStr = _this$props3.searchStr,
|
|
103
|
-
i18nKeys = _this$props3.i18nKeys;
|
|
104
|
-
var _i18nKeys$title = i18nKeys.title,
|
|
105
|
-
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
106
|
-
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
107
|
-
searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
|
|
108
|
-
_i18nKeys$searchError = i18nKeys.searchErrorText,
|
|
109
|
-
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
110
|
-
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
111
|
-
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
112
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
113
|
-
title: title,
|
|
114
|
-
options: departmentList,
|
|
115
|
-
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
116
|
-
text: departmentName,
|
|
117
|
-
dataTitle: departmentName
|
|
118
|
-
}),
|
|
119
|
-
keyName: "name",
|
|
120
|
-
idName: "id",
|
|
121
|
-
onClick: this.onMoveDepartment,
|
|
122
|
-
isArrow: false,
|
|
123
|
-
isEditable: isEditable,
|
|
124
|
-
onSelectLabel: onSelectLabel,
|
|
125
|
-
isPopupActive: isPopupActive,
|
|
126
|
-
needExternalPopupState: true,
|
|
127
|
-
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
128
|
-
boxSize: "small",
|
|
129
|
-
dataId: dataId,
|
|
130
|
-
isDataLoaded: !isFetching,
|
|
131
|
-
isPadding: false,
|
|
132
|
-
searchErrorText: searchErrorText,
|
|
133
|
-
searchEmptyHint: searchEmptyText,
|
|
134
|
-
isNeedEffect: false,
|
|
135
|
-
className: _DepartmentDropDownModule["default"].departmentBox,
|
|
136
|
-
placeHolderText: placeholder,
|
|
137
|
-
getNextOptions: getNextOptions,
|
|
138
|
-
isNextOptions: isNextOptions,
|
|
139
|
-
onSearch: onSearch,
|
|
140
|
-
needSearchFetching: needSearchFetching
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}]);
|
|
56
|
+
function handleMoveDepartment(deptId) {
|
|
57
|
+
onSearch('');
|
|
58
|
+
onMoveDepartment(deptId);
|
|
59
|
+
}
|
|
144
60
|
|
|
145
|
-
return
|
|
146
|
-
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
62
|
+
title: title,
|
|
63
|
+
options: departmentList,
|
|
64
|
+
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
65
|
+
text: departmentName,
|
|
66
|
+
dataTitle: departmentName
|
|
67
|
+
}),
|
|
68
|
+
keyName: "name",
|
|
69
|
+
idName: "id",
|
|
70
|
+
onClick: handleMoveDepartment,
|
|
71
|
+
isArrow: false,
|
|
72
|
+
isEditable: isEditable,
|
|
73
|
+
onSelectLabel: onSelectLabel,
|
|
74
|
+
isPopupActive: isPopupActive,
|
|
75
|
+
needExternalPopupState: true,
|
|
76
|
+
isSearch: departmentList.length > 5 || searchStr.length !== 0,
|
|
77
|
+
boxSize: "small",
|
|
78
|
+
dataId: dataId,
|
|
79
|
+
isDataLoaded: !isFetching,
|
|
80
|
+
isPadding: false,
|
|
81
|
+
searchErrorText: searchErrorText,
|
|
82
|
+
searchEmptyHint: searchEmptyText,
|
|
83
|
+
isNeedEffect: false,
|
|
84
|
+
className: _DepartmentDropDownModule["default"].departmentBox,
|
|
85
|
+
placeHolderText: placeholder,
|
|
86
|
+
getNextOptions: getNextOptions,
|
|
87
|
+
isNextOptions: isNextOptions,
|
|
88
|
+
onSearch: onSearch,
|
|
89
|
+
needSearchFetching: needSearchFetching
|
|
90
|
+
});
|
|
91
|
+
}
|
|
147
92
|
|
|
148
93
|
DepartmentDropDown.defaultProps = _defaultProps.defaultProps;
|
|
149
94
|
DepartmentDropDown.propTypes = _propTypes.propTypes;
|
package/lib/v1/list/Dot/Dot.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = Dot;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/Dot/props/defaultProps");
|
|
13
11
|
|
|
@@ -17,56 +15,13 @@ var _DotModule = _interopRequireDefault(require("../../../list/Dot/Dot.module.cs
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
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); }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
18
|
+
function Dot(props) {
|
|
19
|
+
var className = props.className,
|
|
20
|
+
spacingType = props.spacingType;
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: "".concat(_DotModule["default"].dot, " ").concat(_DotModule["default"][spacingType], " ").concat(className)
|
|
23
|
+
}, ".");
|
|
24
|
+
}
|
|
37
25
|
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var Dot = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(Dot, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(Dot);
|
|
48
|
-
|
|
49
|
-
function Dot(props) {
|
|
50
|
-
_classCallCheck(this, Dot);
|
|
51
|
-
|
|
52
|
-
return _super.call(this, props);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(Dot, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
className = _this$props.className,
|
|
60
|
-
spacingType = _this$props.spacingType;
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
-
className: "".concat(_DotModule["default"].dot, " ").concat(_DotModule["default"][spacingType], " ").concat(className)
|
|
63
|
-
}, ".");
|
|
64
|
-
}
|
|
65
|
-
}]);
|
|
66
|
-
|
|
67
|
-
return Dot;
|
|
68
|
-
}(_react.Component);
|
|
69
|
-
|
|
70
|
-
exports["default"] = Dot;
|
|
71
26
|
Dot.propTypes = _propTypes.propTypes;
|
|
72
27
|
Dot.defaultProps = _defaultProps.defaultProps;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = DotNew;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/DotNew/props/defaultProps");
|
|
13
11
|
|
|
@@ -17,59 +15,16 @@ var _DotNewModule = _interopRequireDefault(require("../../../list/DotNew/DotNew.
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function _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); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
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); }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
18
|
+
function DotNew(props) {
|
|
19
|
+
var className = props.className,
|
|
20
|
+
dataTitle = props.dataTitle,
|
|
21
|
+
size = props.size;
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
+
className: "".concat(_DotNewModule["default"].container, " ").concat(_DotNewModule["default"][size], " ").concat(className ? className : ''),
|
|
24
|
+
"data-title": dataTitle
|
|
25
|
+
});
|
|
26
|
+
}
|
|
37
27
|
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var DotNew = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(DotNew, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(DotNew);
|
|
48
|
-
|
|
49
|
-
function DotNew(props) {
|
|
50
|
-
_classCallCheck(this, DotNew);
|
|
51
|
-
|
|
52
|
-
return _super.call(this, props);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(DotNew, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
className = _this$props.className,
|
|
60
|
-
dataTitle = _this$props.dataTitle,
|
|
61
|
-
size = _this$props.size;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: "".concat(_DotNewModule["default"].container, " ").concat(_DotNewModule["default"][size], " ").concat(className ? className : ''),
|
|
64
|
-
"data-title": dataTitle
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}]);
|
|
68
|
-
|
|
69
|
-
return DotNew;
|
|
70
|
-
}(_react.Component);
|
|
71
|
-
|
|
72
|
-
exports["default"] = DotNew;
|
|
73
28
|
DotNew.propTypes = _propTypes.propTypes;
|
|
74
29
|
DotNew.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
75
30
|
// DotNew.docs = {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = GridStencils;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -15,66 +13,27 @@ var _GridStencilsModule = _interopRequireDefault(require("../../../list/GridSten
|
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
15
|
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
function GridStencils(props) {
|
|
17
|
+
var lineBar = props.lineBar,
|
|
18
|
+
from = props.from,
|
|
19
|
+
isThreeLayout = props.isThreeLayout,
|
|
20
|
+
styles = props.styles,
|
|
21
|
+
order = props.order;
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
+
className: from == 'leftPanel' && isThreeLayout ? "".concat(_GridStencilsModule["default"].stenLoading, " ").concat(_GridStencilsModule["default"].threeLayout) : from == 'leftPanel' ? "".concat(_GridStencilsModule["default"].stenLoading, " ").concat(_GridStencilsModule["default"].leftCont) : _GridStencilsModule["default"].stenLoading,
|
|
24
|
+
style: styles,
|
|
25
|
+
order: order
|
|
26
|
+
}, lineBar ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
|
+
className: _GridStencilsModule["default"].stenLoadbody
|
|
28
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
+
className: "".concat(_GridStencilsModule["default"].lineBar, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
30
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
className: "".concat(_GridStencilsModule["default"].lineBar2, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: "".concat(_GridStencilsModule["default"].lineBar3, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
34
|
+
})) : '');
|
|
35
|
+
}
|
|
33
36
|
|
|
34
|
-
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; } }
|
|
35
|
-
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
|
-
|
|
38
|
-
var GridStencils = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
_inherits(GridStencils, _React$Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(GridStencils);
|
|
42
|
-
|
|
43
|
-
function GridStencils() {
|
|
44
|
-
_classCallCheck(this, GridStencils);
|
|
45
|
-
|
|
46
|
-
return _super.apply(this, arguments);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
_createClass(GridStencils, [{
|
|
50
|
-
key: "render",
|
|
51
|
-
value: function render() {
|
|
52
|
-
var _this$props = this.props,
|
|
53
|
-
lineBar = _this$props.lineBar,
|
|
54
|
-
from = _this$props.from,
|
|
55
|
-
isThreeLayout = _this$props.isThreeLayout,
|
|
56
|
-
styles = _this$props.styles,
|
|
57
|
-
order = _this$props.order;
|
|
58
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
-
className: from == 'leftPanel' && isThreeLayout ? "".concat(_GridStencilsModule["default"].stenLoading, " ").concat(_GridStencilsModule["default"].threeLayout) : from == 'leftPanel' ? "".concat(_GridStencilsModule["default"].stenLoading, " ").concat(_GridStencilsModule["default"].leftCont) : _GridStencilsModule["default"].stenLoading,
|
|
60
|
-
style: styles,
|
|
61
|
-
order: order
|
|
62
|
-
}, lineBar ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: _GridStencilsModule["default"].stenLoadbody
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
-
className: "".concat(_GridStencilsModule["default"].lineBar, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
66
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
-
className: "".concat(_GridStencilsModule["default"].lineBar2, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
68
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: "".concat(_GridStencilsModule["default"].lineBar3, " ").concat(_GridStencilsModule["default"].stenListBAr)
|
|
70
|
-
})) : '');
|
|
71
|
-
}
|
|
72
|
-
}]);
|
|
73
|
-
|
|
74
|
-
return GridStencils;
|
|
75
|
-
}(_react["default"].Component);
|
|
76
|
-
|
|
77
|
-
exports["default"] = GridStencils;
|
|
78
37
|
GridStencils.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
79
38
|
// GridStencils.docs = {
|
|
80
39
|
// folderName: 'List',
|