@zohodesk/dot 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +9 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +12 -12
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +1 -1
- package/es/Drawer/Drawer.js +3 -2
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
- package/es/v1/Attachment/Attachment.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +1 -1
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +1 -1
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
- package/es/v1/form/fields/DateField/DateField.js +131 -162
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
- package/es/v1/form/fields/RadioField/RadioField.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +3 -3
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -3
- package/es/v1/lookup/Section/Section.js +1 -1
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/Drawer/Drawer.js +3 -2
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +6 -6
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +1 -1
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +1 -1
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
- package/lib/v1/form/fields/DateField/DateField.js +140 -206
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
- package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
- package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/lib/v1/lookup/Lookup/Lookup.js +5 -3
- package/lib/v1/lookup/Section/Section.js +1 -1
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/package.json +8 -8
- package/result.json +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -13,13 +13,13 @@ var _defaultProps = require("../../../../form/fields/CheckBoxField/props/default
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../../form/fields/CheckBoxField/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
|
-
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/
|
|
18
|
+
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/es/v1/CheckBox/CheckBox"));
|
|
19
19
|
|
|
20
20
|
var _ValidationMessage = _interopRequireDefault(require("../ValidationMessage/ValidationMessage"));
|
|
21
21
|
|
|
22
|
-
var _Layout = require("@zohodesk/components/
|
|
22
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
23
23
|
|
|
24
24
|
var _FieldContainer = _interopRequireDefault(require("../FieldContainer/FieldContainer"));
|
|
25
25
|
|
|
@@ -33,165 +33,113 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
33
33
|
|
|
34
34
|
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); }
|
|
35
35
|
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
function CheckBoxField(props) {
|
|
37
|
+
var labelName = props.labelName,
|
|
38
|
+
id = props.id,
|
|
39
|
+
isMandatory = props.isMandatory,
|
|
40
|
+
validationMessage = props.validationMessage,
|
|
41
|
+
validationPalette = props.validationPalette,
|
|
42
|
+
isReadOnly = props.isReadOnly,
|
|
43
|
+
checked = props.checked,
|
|
44
|
+
errorType = props.errorType,
|
|
45
|
+
isDisabled = props.isDisabled,
|
|
46
|
+
title = props.title,
|
|
47
|
+
dataId = props.dataId,
|
|
48
|
+
dataSelectorId = props.dataSelectorId,
|
|
49
|
+
validationRuleMessage = props.validationRuleMessage,
|
|
50
|
+
validationRulePalette = props.validationRulePalette,
|
|
51
|
+
infoText = props.infoText,
|
|
52
|
+
fieldSize = props.fieldSize,
|
|
53
|
+
labelPalette = props.labelPalette,
|
|
54
|
+
labelCustomClass = props.labelCustomClass,
|
|
55
|
+
direction = props.direction,
|
|
56
|
+
lineClamp = props.lineClamp,
|
|
57
|
+
isLocked = props.isLocked,
|
|
58
|
+
lockedInfoText = props.lockedInfoText,
|
|
59
|
+
customProps = props.customProps,
|
|
60
|
+
renderLabelProps = props.renderLabelProps,
|
|
61
|
+
getRef = props.getRef,
|
|
62
|
+
onChange = props.onChange;
|
|
63
|
+
var _customProps$LabelPro = customProps.LabelProps,
|
|
64
|
+
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
65
|
+
_customProps$CheckBox = customProps.CheckBoxProps,
|
|
66
|
+
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
67
|
+
_customProps$Validati = customProps.ValidationMessageProps1,
|
|
68
|
+
ValidationMessageProps1 = _customProps$Validati === void 0 ? {} : _customProps$Validati,
|
|
69
|
+
_customProps$Validati2 = customProps.ValidationMessageProps2,
|
|
70
|
+
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
71
|
+
var removeEvent = isDisabled || isReadOnly;
|
|
72
|
+
var isDirectCol = direction === 'column';
|
|
73
|
+
|
|
74
|
+
var labelElement = /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
|
|
75
|
+
isLocked: isLocked,
|
|
76
|
+
lockedInfoText: lockedInfoText,
|
|
77
|
+
infoText: infoText,
|
|
78
|
+
renderProps: renderLabelProps
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
80
|
+
text: labelName,
|
|
81
|
+
id: id,
|
|
82
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
83
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
84
|
+
infoText: infoText,
|
|
85
|
+
customClass: "".concat(!isDirectCol ? _FieldsModule["default"].checkboxText : '', " ").concat(!isDirectCol ? _FieldsModule["default"]["lineClamp_".concat(lineClamp)] : '', " ").concat(isReadOnly || isDisabled ? _FieldsModule["default"].cbTextReadonly : _FieldsModule["default"].cbTextPointer, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
86
|
+
title: labelName,
|
|
87
|
+
onClick: !removeEvent ? handleLabelClick : null,
|
|
88
|
+
variant: isDirectCol ? 'default' : 'primary',
|
|
89
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
90
|
+
}, LabelProps)));
|
|
91
|
+
|
|
92
|
+
function handleChange(value) {
|
|
93
|
+
onChange && onChange(id, value);
|
|
94
|
+
}
|
|
58
95
|
|
|
59
|
-
|
|
96
|
+
function handleGetRef(el) {
|
|
97
|
+
getRef && getRef(el, id);
|
|
98
|
+
}
|
|
60
99
|
|
|
61
|
-
function
|
|
62
|
-
|
|
100
|
+
function handleLabelClick() {
|
|
101
|
+
handleChange(!checked);
|
|
102
|
+
}
|
|
63
103
|
|
|
64
|
-
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
106
|
+
"data-title": isDisabled ? title : null,
|
|
107
|
+
"data-selector-id": dataSelectorId
|
|
108
|
+
}, isDirectCol && labelElement, /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
+
className: "".concat(isDirectCol ? _FieldsModule["default"].fieldContainer : _FieldsModule["default"].checkboxFieldContainer, " ").concat(isDirectCol && labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
111
|
+
alignBox: "row",
|
|
112
|
+
isCover: false,
|
|
113
|
+
align: "top"
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
115
|
+
className: isDirectCol ? _FieldsModule["default"].checkbox : _FieldsModule["default"].checkboxRow
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], _extends({
|
|
117
|
+
id: id,
|
|
118
|
+
onChange: handleChange,
|
|
119
|
+
disabled: removeEvent,
|
|
120
|
+
checked: checked,
|
|
121
|
+
getRef: handleGetRef,
|
|
122
|
+
dataId: dataId
|
|
123
|
+
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
124
|
+
flexible: true
|
|
125
|
+
}, labelElement)), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
|
|
126
|
+
text: validationMessage,
|
|
127
|
+
palette: validationPalette,
|
|
128
|
+
type: errorType,
|
|
129
|
+
dataId: "".concat(dataId, "_ValidationMessage")
|
|
130
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
|
|
131
|
+
text: validationRuleMessage,
|
|
132
|
+
palette: validationRulePalette,
|
|
133
|
+
type: errorType,
|
|
134
|
+
dataId: "".concat(dataId, "_ValidationRuleMessage")
|
|
135
|
+
}, ValidationMessageProps2))));
|
|
136
|
+
} // const MomoizedCheckBoxField = memo(CheckBoxField);
|
|
137
|
+
// export default MomoizedCheckBoxField;
|
|
138
|
+
// MomoizedCheckBoxField.propTypes = propTypes;
|
|
139
|
+
// MomoizedCheckBoxField.defaultProps = defaultProps;
|
|
65
140
|
|
|
66
|
-
_this = _super.call(this, props);
|
|
67
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
68
|
-
_this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
|
|
69
|
-
_this.handleLabelClick = _this.handleLabelClick.bind(_assertThisInitialized(_this));
|
|
70
|
-
return _this;
|
|
71
|
-
}
|
|
72
141
|
|
|
73
|
-
_createClass(CheckBoxField, [{
|
|
74
|
-
key: "handleChange",
|
|
75
|
-
value: function handleChange(value) {
|
|
76
|
-
var _this$props = this.props,
|
|
77
|
-
id = _this$props.id,
|
|
78
|
-
onChange = _this$props.onChange;
|
|
79
|
-
onChange && onChange(id, value);
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
key: "handleGetRef",
|
|
83
|
-
value: function handleGetRef(el) {
|
|
84
|
-
var _this$props2 = this.props,
|
|
85
|
-
getRef = _this$props2.getRef,
|
|
86
|
-
id = _this$props2.id;
|
|
87
|
-
getRef && getRef(el, id);
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "handleLabelClick",
|
|
91
|
-
value: function handleLabelClick() {
|
|
92
|
-
var checked = this.props.checked;
|
|
93
|
-
this.handleChange(!checked);
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
key: "render",
|
|
97
|
-
value: function render() {
|
|
98
|
-
var _this$props3 = this.props,
|
|
99
|
-
labelName = _this$props3.labelName,
|
|
100
|
-
id = _this$props3.id,
|
|
101
|
-
isMandatory = _this$props3.isMandatory,
|
|
102
|
-
validationMessage = _this$props3.validationMessage,
|
|
103
|
-
validationPalette = _this$props3.validationPalette,
|
|
104
|
-
isReadOnly = _this$props3.isReadOnly,
|
|
105
|
-
checked = _this$props3.checked,
|
|
106
|
-
errorType = _this$props3.errorType,
|
|
107
|
-
isDisabled = _this$props3.isDisabled,
|
|
108
|
-
title = _this$props3.title,
|
|
109
|
-
dataId = _this$props3.dataId,
|
|
110
|
-
dataSelectorId = _this$props3.dataSelectorId,
|
|
111
|
-
validationRuleMessage = _this$props3.validationRuleMessage,
|
|
112
|
-
validationRulePalette = _this$props3.validationRulePalette,
|
|
113
|
-
infoText = _this$props3.infoText,
|
|
114
|
-
fieldSize = _this$props3.fieldSize,
|
|
115
|
-
labelPalette = _this$props3.labelPalette,
|
|
116
|
-
labelCustomClass = _this$props3.labelCustomClass,
|
|
117
|
-
direction = _this$props3.direction,
|
|
118
|
-
lineClamp = _this$props3.lineClamp,
|
|
119
|
-
isLocked = _this$props3.isLocked,
|
|
120
|
-
lockedInfoText = _this$props3.lockedInfoText,
|
|
121
|
-
customProps = _this$props3.customProps,
|
|
122
|
-
renderLabelProps = _this$props3.renderLabelProps;
|
|
123
|
-
var _customProps$LabelPro = customProps.LabelProps,
|
|
124
|
-
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
125
|
-
_customProps$CheckBox = customProps.CheckBoxProps,
|
|
126
|
-
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
127
|
-
_customProps$Validati = customProps.ValidationMessageProps1,
|
|
128
|
-
ValidationMessageProps1 = _customProps$Validati === void 0 ? {} : _customProps$Validati,
|
|
129
|
-
_customProps$Validati2 = customProps.ValidationMessageProps2,
|
|
130
|
-
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
131
|
-
var removeEvent = isDisabled || isReadOnly;
|
|
132
|
-
var isDirectCol = direction === 'column';
|
|
133
|
-
|
|
134
|
-
var labelElement = /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
|
|
135
|
-
isLocked: isLocked,
|
|
136
|
-
lockedInfoText: lockedInfoText,
|
|
137
|
-
infoText: infoText,
|
|
138
|
-
renderProps: renderLabelProps
|
|
139
|
-
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
140
|
-
text: labelName,
|
|
141
|
-
id: id,
|
|
142
|
-
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
143
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
144
|
-
infoText: infoText,
|
|
145
|
-
customClass: "".concat(!isDirectCol ? _FieldsModule["default"].checkboxText : '', " ").concat(!isDirectCol ? _FieldsModule["default"]["lineClamp_".concat(lineClamp)] : '', " ").concat(isReadOnly || isDisabled ? _FieldsModule["default"].cbTextReadonly : _FieldsModule["default"].cbTextPointer, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
146
|
-
title: labelName,
|
|
147
|
-
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
148
|
-
variant: isDirectCol ? 'default' : 'primary',
|
|
149
|
-
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
150
|
-
}, LabelProps)));
|
|
151
|
-
|
|
152
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
154
|
-
"data-title": isDisabled ? title : null,
|
|
155
|
-
"data-selector-id": dataSelectorId
|
|
156
|
-
}, isDirectCol && labelElement, /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
-
className: "".concat(isDirectCol ? _FieldsModule["default"].fieldContainer : _FieldsModule["default"].checkboxFieldContainer, " ").concat(isDirectCol && labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
158
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
159
|
-
alignBox: "row",
|
|
160
|
-
isCover: false,
|
|
161
|
-
align: "top"
|
|
162
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
|
-
className: isDirectCol ? _FieldsModule["default"].checkbox : _FieldsModule["default"].checkboxRow
|
|
164
|
-
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], _extends({
|
|
165
|
-
id: id,
|
|
166
|
-
onChange: this.handleChange,
|
|
167
|
-
disabled: removeEvent,
|
|
168
|
-
checked: checked,
|
|
169
|
-
getRef: this.handleGetRef,
|
|
170
|
-
dataId: dataId
|
|
171
|
-
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
172
|
-
flexible: true
|
|
173
|
-
}, labelElement)), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
|
|
174
|
-
text: validationMessage,
|
|
175
|
-
palette: validationPalette,
|
|
176
|
-
type: errorType,
|
|
177
|
-
dataId: "".concat(dataId, "_ValidationMessage")
|
|
178
|
-
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
|
|
179
|
-
text: validationRuleMessage,
|
|
180
|
-
palette: validationRulePalette,
|
|
181
|
-
type: errorType,
|
|
182
|
-
dataId: "".concat(dataId, "_ValidationRuleMessage")
|
|
183
|
-
}, ValidationMessageProps2))));
|
|
184
|
-
}
|
|
185
|
-
}]);
|
|
186
|
-
|
|
187
|
-
return CheckBoxField;
|
|
188
|
-
}(_react.PureComponent);
|
|
189
|
-
|
|
190
|
-
exports["default"] = CheckBoxField;
|
|
191
142
|
CheckBoxField.propTypes = _propTypes.propTypes;
|
|
192
|
-
CheckBoxField.defaultProps = _defaultProps.defaultProps;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
// folderName: 'General'
|
|
196
|
-
// };
|
|
197
|
-
// }
|
|
143
|
+
CheckBoxField.defaultProps = _defaultProps.defaultProps;
|
|
144
|
+
var _default = CheckBoxField;
|
|
145
|
+
exports["default"] = _default;
|