@zohodesk/dot 1.0.0-temp-182 → 1.0.0-temp-183
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/propValidation_report.html +1 -1
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +50 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +50 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +50 -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/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/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 +7 -4
- 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 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/Attachment/Attachment.module.css +4 -4
- package/es/ChannelIcon/ChannelIcon.module.css +1 -1
- package/es/Drawer/Drawer.js +5 -4
- package/es/Drawer/Drawer.module.css +3 -3
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/ImportantNotes/ImportantNotes.module.css +1 -1
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Message/Message.module.css +1 -1
- package/es/Separator/Separator.module.css +2 -11
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +3 -3
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/errorstate/EmptyStates.module.css +1 -24
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +15 -18
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -16
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +9 -3
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/GridStencils/GridStencils.module.css +1 -35
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +9 -8
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/header/Close/LookupClose.module.css +2 -3
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/Title/LookupTitle.module.css +2 -6
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/es/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/es/setup/header/Search/Search.module.css +2 -14
- package/es/setup/table/Text/TableText.module.css +2 -11
- package/es/v1/Drawer/Drawer.js +5 -4
- package/es/v1/ExternalLink/ExternalLink.js +5 -4
- package/es/v1/FlipCard/FlipCard.js +12 -14
- package/es/v1/GlobalNotification/GlobalNotification.js +7 -6
- package/es/v1/IconButton/IconButton.js +5 -4
- package/es/v1/Link/Link.js +10 -8
- package/es/v1/Message/Message.js +5 -4
- package/es/v1/ToastMessage/ToastMessage.js +4 -2
- package/es/v1/actions/AutoClose.js +1 -2
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +16 -18
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/v1/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/v1/list/ListLayout/ListLayout.js +5 -4
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +9 -8
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +5 -4
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +5 -4
- package/es/v1/lookup/header/Search/Search.js +3 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/lib/Attachment/Attachment.module.css +4 -4
- package/lib/ChannelIcon/ChannelIcon.module.css +1 -1
- package/lib/Drawer/Drawer.module.css +3 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +1 -1
- package/lib/Message/Message.module.css +1 -1
- package/lib/Separator/Separator.module.css +2 -11
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.module.css +3 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/lib/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/lib/errorstate/EmptyStates.module.css +1 -24
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -35
- package/lib/list/Subject/Subject.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/lib/lookup/header/Close/LookupClose.module.css +2 -3
- package/lib/lookup/header/Title/LookupTitle.module.css +2 -6
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/lib/setup/header/Search/Search.module.css +2 -14
- package/lib/setup/table/Text/TableText.module.css +2 -11
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -31,13 +33,12 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
31
33
|
Avatar2Props = {},
|
|
32
34
|
AvatarTeam2Props = {}
|
|
33
35
|
} = customProps;
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
35
37
|
className: `${style.container} `,
|
|
36
38
|
"data-id": "avatarWithTeamId",
|
|
37
39
|
"data-test-id": "avatarWithTeamId",
|
|
38
|
-
"data-selector-id": dataSelectorId
|
|
39
|
-
|
|
40
|
-
}, isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, {
|
|
40
|
+
"data-selector-id": dataSelectorId
|
|
41
|
+
}, AvatarWithTeamProps), isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
41
42
|
name: name,
|
|
42
43
|
src: src,
|
|
43
44
|
size: size,
|
|
@@ -46,9 +47,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
46
47
|
palette: palette,
|
|
47
48
|
textPalette: textPalette,
|
|
48
49
|
customClass: customTextClass,
|
|
49
|
-
borderOnActive: borderOnActive
|
|
50
|
-
|
|
51
|
-
}) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
50
|
+
borderOnActive: borderOnActive
|
|
51
|
+
}, Avatar1Props)) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
52
52
|
name: name,
|
|
53
53
|
src: src,
|
|
54
54
|
size: size,
|
|
@@ -59,9 +59,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
59
59
|
customClass: {
|
|
60
60
|
customAvatar: customTextClass
|
|
61
61
|
},
|
|
62
|
-
borderOnActive: borderOnActive
|
|
63
|
-
|
|
64
|
-
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
62
|
+
borderOnActive: borderOnActive
|
|
63
|
+
}, AvatarTeam1Props)) : /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
65
64
|
name: name,
|
|
66
65
|
src: src,
|
|
67
66
|
size: size,
|
|
@@ -70,14 +69,13 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
70
69
|
palette: palette,
|
|
71
70
|
textPalette: textPalette,
|
|
72
71
|
customClass: customTextClass,
|
|
73
|
-
borderOnActive: borderOnActive
|
|
74
|
-
|
|
75
|
-
}), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
72
|
+
borderOnActive: borderOnActive
|
|
73
|
+
}, Avatar2Props)), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
76
74
|
className: `${style.teamAvatar} ${teamClassName} `,
|
|
77
75
|
"data-id": "teamNameTestId",
|
|
78
76
|
"data-test-id": "teamNameTestId",
|
|
79
77
|
"data-title": needTitle ? title : undefined
|
|
80
|
-
}, /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
78
|
+
}, /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
81
79
|
name: teamName,
|
|
82
80
|
size: "small",
|
|
83
81
|
palette: palette,
|
|
@@ -87,9 +85,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
87
85
|
customClass: {
|
|
88
86
|
customAvatar: customTextClass
|
|
89
87
|
},
|
|
90
|
-
borderOnActive: teamBorderActive
|
|
91
|
-
|
|
92
|
-
})) : null);
|
|
88
|
+
borderOnActive: teamBorderActive
|
|
89
|
+
}, AvatarTeam2Props))) : null);
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
padding: var(--zd_size2) ;
|
|
12
12
|
border-radius: 50%;
|
|
13
13
|
transform: scale(0.8);
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--zdt_avatarwithteam_default_bg);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[dir=ltr] .teamAvatar {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
|
|
21
21
|
[dir=rtl] .teamAvatar {
|
|
22
22
|
left: calc( var(--zd_size10) * -1 ) ;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component, Fragment } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -548,22 +550,21 @@ export class ToggleDropDown extends Component {
|
|
|
548
550
|
let listIndex = -1;
|
|
549
551
|
const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
|
|
550
552
|
|
|
551
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
553
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
552
554
|
className: style.wrapper,
|
|
553
555
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
554
556
|
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
555
|
-
"data-selector-id": dataSelectorId
|
|
556
|
-
|
|
557
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
557
|
+
"data-selector-id": dataSelectorId
|
|
558
|
+
}, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
|
|
558
559
|
alignBox: "row",
|
|
559
560
|
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
560
561
|
eleRef: getTargetRef,
|
|
561
562
|
align: "vertical",
|
|
562
563
|
isCover: false,
|
|
563
564
|
dataId: dataId
|
|
564
|
-
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, {
|
|
565
|
+
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
|
|
565
566
|
isActive: isPopupOpen
|
|
566
|
-
}) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
567
|
+
})) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
567
568
|
hoverType: hoverType,
|
|
568
569
|
isActive: isPopupOpen,
|
|
569
570
|
isNeedEffect: isEditable && isNeedEffect
|
|
@@ -601,7 +602,7 @@ export class ToggleDropDown extends Component {
|
|
|
601
602
|
let {
|
|
602
603
|
tabletMode
|
|
603
604
|
} = _ref4;
|
|
604
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
605
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
605
606
|
boxPosition: position,
|
|
606
607
|
isActive: isPopupReady,
|
|
607
608
|
onClick: removeClose,
|
|
@@ -637,12 +638,12 @@ export class ToggleDropDown extends Component {
|
|
|
637
638
|
searchValue: searchValue,
|
|
638
639
|
isFetchingOptions: isFetchingOptions
|
|
639
640
|
}
|
|
640
|
-
}
|
|
641
|
-
|
|
641
|
+
}
|
|
642
|
+
}, DropBoxProps, {
|
|
642
643
|
onClose: this.handleTogglePopup
|
|
643
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
644
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
644
645
|
className: style.search
|
|
645
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
646
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
646
647
|
placeHolder: placeHolderText,
|
|
647
648
|
onChange: this.handleChange,
|
|
648
649
|
value: searchValue,
|
|
@@ -663,9 +664,8 @@ export class ToggleDropDown extends Component {
|
|
|
663
664
|
ariaAutocomplete: 'list',
|
|
664
665
|
ariaHaspopup: true,
|
|
665
666
|
ariaExpanded: true
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
667
|
+
}
|
|
668
|
+
}, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
669
669
|
className: style.title
|
|
670
670
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
671
671
|
text: title,
|
|
@@ -716,7 +716,7 @@ export class ToggleDropDown extends Component {
|
|
|
716
716
|
isDisabled = false
|
|
717
717
|
} = item;
|
|
718
718
|
listIndex += 1;
|
|
719
|
-
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
719
|
+
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
720
720
|
key: listIndex,
|
|
721
721
|
dataId: item[keyName],
|
|
722
722
|
value: item[keyName],
|
|
@@ -742,9 +742,8 @@ export class ToggleDropDown extends Component {
|
|
|
742
742
|
role: isSearch ? 'option' : 'menuitem',
|
|
743
743
|
ariaSelected: selectedId === item[idName],
|
|
744
744
|
ariaLabel: item[keyName]
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
745
|
+
}
|
|
746
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
748
747
|
key: listIndex,
|
|
749
748
|
dataId: item[keyName],
|
|
750
749
|
value: item[keyName],
|
|
@@ -767,9 +766,8 @@ export class ToggleDropDown extends Component {
|
|
|
767
766
|
role: isSearch ? 'option' : 'menuitem',
|
|
768
767
|
ariaSelected: selectedId === item[idName],
|
|
769
768
|
ariaLabel: item[keyName]
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
});
|
|
769
|
+
}
|
|
770
|
+
}, ListItemProps));
|
|
773
771
|
}));
|
|
774
772
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
775
773
|
isCover: false,
|
|
@@ -793,7 +791,7 @@ export class ToggleDropDown extends Component {
|
|
|
793
791
|
key: i
|
|
794
792
|
}, needDivider ? /*#__PURE__*/React.createElement("div", {
|
|
795
793
|
className: style.seperatedLine
|
|
796
|
-
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
794
|
+
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
797
795
|
dataId: item[keyName],
|
|
798
796
|
value: item[keyName],
|
|
799
797
|
id: item[idName],
|
|
@@ -819,9 +817,8 @@ export class ToggleDropDown extends Component {
|
|
|
819
817
|
role: isSearch ? 'option' : 'menuitem',
|
|
820
818
|
ariaSelected: selectedId === item[idName],
|
|
821
819
|
ariaLabel: item[keyName]
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
820
|
+
}
|
|
821
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
825
822
|
key: listIndex,
|
|
826
823
|
dataId: item[keyName],
|
|
827
824
|
value: item[keyName],
|
|
@@ -844,9 +841,8 @@ export class ToggleDropDown extends Component {
|
|
|
844
841
|
role: isSearch ? 'option' : 'menuitem',
|
|
845
842
|
ariaSelected: selectedId === item[idName],
|
|
846
843
|
ariaLabel: item[keyName]
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
}));
|
|
844
|
+
}
|
|
845
|
+
}, ListItemProps)));
|
|
850
846
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
851
847
|
isCover: false,
|
|
852
848
|
align: "both"
|
|
@@ -1,72 +1,57 @@
|
|
|
1
1
|
.container, .tabletContainer {
|
|
2
2
|
text-align: center;
|
|
3
|
-
background-color: var(--
|
|
3
|
+
background-color: var(--zdt_emptystate_default_bg);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.container {
|
|
7
6
|
padding-top: var(--zd_size80) ;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
.tabletContainer {
|
|
11
9
|
padding-top: var(--zd_size50) ;
|
|
12
10
|
}
|
|
13
|
-
|
|
14
11
|
.top {
|
|
15
12
|
position: relative;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
.header {
|
|
19
15
|
min-width: var(--zd_size400) ;
|
|
20
16
|
display: inline-block;
|
|
21
17
|
margin: 0 auto ;
|
|
22
18
|
}
|
|
23
|
-
|
|
24
19
|
[dir=ltr] .header {
|
|
25
20
|
text-align: left;
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
[dir=rtl] .header {
|
|
29
23
|
text-align: right;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
.title,
|
|
33
26
|
.tabletTitle,
|
|
34
27
|
.mobileTitle {
|
|
35
28
|
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
36
29
|
letter-spacing: var(--zd_size1);
|
|
37
30
|
}
|
|
38
|
-
|
|
39
31
|
.title, .tabletTitle, .mobileTitle {
|
|
40
32
|
margin-bottom: var(--zd_size5) ;
|
|
41
33
|
}
|
|
42
|
-
|
|
43
34
|
.title {
|
|
44
35
|
font-size: var(--zd_font_size50) ;
|
|
45
36
|
line-height: 1.4;
|
|
46
37
|
}
|
|
47
|
-
|
|
48
38
|
.tabletTitle {
|
|
49
39
|
font-size: var(--zd_font_size24) ;
|
|
50
40
|
line-height: 2.0833;
|
|
51
41
|
}
|
|
52
|
-
|
|
53
42
|
.mobileTitle {
|
|
54
43
|
font-size: var(--zd_font_size22) ;
|
|
55
44
|
line-height: 1.3636;
|
|
56
45
|
}
|
|
57
|
-
|
|
58
46
|
.subtitle {
|
|
59
47
|
font-size: var(--zd_font_size30) ;
|
|
60
48
|
}
|
|
61
|
-
|
|
62
49
|
.tabletSubTitle {
|
|
63
50
|
font-size: var(--zd_font_size18) ;
|
|
64
51
|
}
|
|
65
|
-
|
|
66
52
|
.mobileSubTitle {
|
|
67
53
|
font-size: var(--zd_font_size16) ;
|
|
68
54
|
}
|
|
69
|
-
|
|
70
55
|
.title,
|
|
71
56
|
.subtitle {
|
|
72
57
|
color: var(--zdt_emptystate_title_text);
|
|
@@ -77,35 +62,27 @@
|
|
|
77
62
|
text-align: center;
|
|
78
63
|
margin: 0 auto ;
|
|
79
64
|
}
|
|
80
|
-
|
|
81
65
|
.footerWidth {
|
|
82
66
|
min-width: var(--zd_size400) ;
|
|
83
67
|
}
|
|
84
|
-
|
|
85
68
|
.btmText, .tabletBtmText {
|
|
86
69
|
margin-bottom: var(--zd_size10) ;
|
|
87
70
|
}
|
|
88
|
-
|
|
89
71
|
.btmText {
|
|
90
72
|
font-size: var(--zd_font_size14) ;
|
|
91
73
|
}
|
|
92
|
-
|
|
93
74
|
.tabletBtmText {
|
|
94
75
|
font-size: var(--zd_font_size12) ;
|
|
95
76
|
}
|
|
96
|
-
|
|
97
77
|
.imageContainer, .tabletImageContainer, .mobileImageContainer {
|
|
98
78
|
margin-bottom: var(--zd_size30) ;
|
|
99
79
|
}
|
|
100
|
-
|
|
101
80
|
.imageContainer {
|
|
102
81
|
height: var(--zd_size400) ;
|
|
103
82
|
}
|
|
104
|
-
|
|
105
83
|
.mobileImageContainer {
|
|
106
84
|
height: var(--zd_size300) ;
|
|
107
85
|
}
|
|
108
|
-
|
|
109
86
|
.tabletImageContainer {
|
|
110
87
|
height: var(--zd_size350) ;
|
|
111
88
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -84,7 +86,7 @@ export default class CheckBoxField extends PureComponent {
|
|
|
84
86
|
lockedInfoText: lockedInfoText,
|
|
85
87
|
infoText: infoText,
|
|
86
88
|
renderProps: renderLabelProps
|
|
87
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
88
90
|
text: labelName,
|
|
89
91
|
id: id,
|
|
90
92
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -94,9 +96,8 @@ export default class CheckBoxField extends PureComponent {
|
|
|
94
96
|
title: labelName,
|
|
95
97
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
96
98
|
variant: isDirectCol ? 'default' : 'primary',
|
|
97
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
98
|
-
|
|
99
|
-
}));
|
|
99
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
100
|
+
}, LabelProps)));
|
|
100
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
101
102
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
102
103
|
"data-title": isDisabled ? title : null,
|
|
@@ -109,30 +110,27 @@ export default class CheckBoxField extends PureComponent {
|
|
|
109
110
|
align: "top"
|
|
110
111
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
111
112
|
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
112
|
-
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
113
|
+
}, /*#__PURE__*/React.createElement(CheckBox, _extends({
|
|
113
114
|
id: id,
|
|
114
115
|
onChange: this.handleChange,
|
|
115
116
|
disabled: removeEvent,
|
|
116
117
|
checked: checked,
|
|
117
118
|
getRef: this.handleGetRef,
|
|
118
119
|
dataId: dataId,
|
|
119
|
-
getContainerRef: getContainerRef
|
|
120
|
-
|
|
121
|
-
})), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
120
|
+
getContainerRef: getContainerRef
|
|
121
|
+
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
122
122
|
flexible: true
|
|
123
|
-
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
123
|
+
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
124
124
|
text: validationMessage,
|
|
125
125
|
palette: validationPalette,
|
|
126
126
|
type: errorType,
|
|
127
|
-
dataId: `${dataId}_ValidationMessage
|
|
128
|
-
|
|
129
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
127
|
+
dataId: `${dataId}_ValidationMessage`
|
|
128
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
130
129
|
text: validationRuleMessage,
|
|
131
130
|
palette: validationRulePalette,
|
|
132
131
|
type: errorType,
|
|
133
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
134
|
-
|
|
135
|
-
})));
|
|
132
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
133
|
+
}, ValidationMessageProps2))));
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -126,17 +128,16 @@ export default class CurrencyField extends PureComponent {
|
|
|
126
128
|
isLocked: isLocked,
|
|
127
129
|
lockedInfoText: lockedInfoText,
|
|
128
130
|
renderProps: renderLabelProps
|
|
129
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
131
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
130
132
|
text: labelName,
|
|
131
133
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
132
134
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
133
135
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
134
136
|
htmlFor: uniqueId,
|
|
135
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
136
|
-
|
|
137
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
137
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
138
|
+
}, LabelProps))), /*#__PURE__*/React.createElement("div", {
|
|
138
139
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
139
|
-
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
140
|
+
}, /*#__PURE__*/React.createElement(TextBox, _extends({
|
|
140
141
|
htmlId: uniqueId,
|
|
141
142
|
id: id,
|
|
142
143
|
type: textBoxType,
|
|
@@ -156,23 +157,20 @@ export default class CurrencyField extends PureComponent {
|
|
|
156
157
|
isDisabled: isDisabled,
|
|
157
158
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
158
159
|
isClickable: isClickable,
|
|
159
|
-
needReadOnlyStyle: needReadOnlyStyle
|
|
160
|
-
|
|
161
|
-
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
160
|
+
needReadOnlyStyle: needReadOnlyStyle
|
|
161
|
+
}, TextBoxProps)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
162
162
|
text: validationMessage,
|
|
163
163
|
palette: validationPalette,
|
|
164
164
|
type: errorType,
|
|
165
165
|
dataId: `${dataId}_ValidationMessage`,
|
|
166
|
-
htmlFor: uniqueId
|
|
167
|
-
|
|
168
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
166
|
+
htmlFor: uniqueId
|
|
167
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
169
168
|
text: validationRuleMessage,
|
|
170
169
|
palette: validationRulePalette,
|
|
171
170
|
type: errorType,
|
|
172
171
|
htmlFor: uniqueId,
|
|
173
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
174
|
-
|
|
175
|
-
})));
|
|
172
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
173
|
+
}, ValidationMessageProps2))));
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -131,21 +133,21 @@ export default class DateField extends PureComponent {
|
|
|
131
133
|
isLocked: isLocked,
|
|
132
134
|
lockedInfoText: lockedInfoText,
|
|
133
135
|
renderProps: renderLabelProps
|
|
134
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
136
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
135
137
|
text: labelName,
|
|
136
138
|
htmlFor: getAriaId,
|
|
137
139
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
138
140
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
139
141
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
140
142
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
141
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
142
|
-
|
|
143
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
144
|
+
}, LabelProps, {
|
|
143
145
|
id: labelName
|
|
144
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
146
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
145
147
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
146
148
|
}, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
|
|
147
149
|
className: style.lockText
|
|
148
|
-
}, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, {
|
|
150
|
+
}, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, _extends({
|
|
149
151
|
textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
|
|
150
152
|
textBoxVariant: textBoxVariant,
|
|
151
153
|
isDateTime: isDateTime,
|
|
@@ -163,26 +165,24 @@ export default class DateField extends PureComponent {
|
|
|
163
165
|
isEditable: true,
|
|
164
166
|
htmlId: getAriaId,
|
|
165
167
|
i18nKeys: i18nKeys,
|
|
166
|
-
iconOnHover: iconOnHover
|
|
167
|
-
|
|
168
|
+
iconOnHover: iconOnHover
|
|
169
|
+
}, DateWidgetProps, {
|
|
168
170
|
a11y: {
|
|
169
171
|
ariaLabelledby: labelName
|
|
170
172
|
}
|
|
171
|
-
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
173
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
172
174
|
text: validationMessage,
|
|
173
175
|
palette: validationPalette,
|
|
174
176
|
type: errorType,
|
|
175
177
|
htmlFor: getAriaId,
|
|
176
|
-
dataId: `${dataId}_ValidationMessage
|
|
177
|
-
|
|
178
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
178
|
+
dataId: `${dataId}_ValidationMessage`
|
|
179
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
179
180
|
text: validationRuleMessage,
|
|
180
181
|
palette: validationRulePalette,
|
|
181
182
|
type: errorType,
|
|
182
183
|
htmlFor: getAriaId,
|
|
183
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
184
|
-
|
|
185
|
-
})));
|
|
184
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
185
|
+
}, ValidationMessageProps2))));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -143,7 +145,7 @@ export default class MultiSelectField extends PureComponent {
|
|
|
143
145
|
isLocked: isLocked,
|
|
144
146
|
lockedInfoText: lockedInfoText,
|
|
145
147
|
renderProps: renderLabelProps
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
147
149
|
text: labelName,
|
|
148
150
|
id: id,
|
|
149
151
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -151,9 +153,8 @@ export default class MultiSelectField extends PureComponent {
|
|
|
151
153
|
,
|
|
152
154
|
customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
|
|
153
155
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
154
|
-
htmlFor: uniqueId
|
|
155
|
-
|
|
156
|
-
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
156
|
+
htmlFor: uniqueId
|
|
157
|
+
}, LabelProps))), /*#__PURE__*/React.createElement(MultiSelect, _extends({
|
|
157
158
|
options: options,
|
|
158
159
|
onChange: this.handleChange,
|
|
159
160
|
selectedOptions: selectedOptions,
|
|
@@ -184,24 +185,22 @@ export default class MultiSelectField extends PureComponent {
|
|
|
184
185
|
i18nKeys: i18nKeys,
|
|
185
186
|
htmlId: uniqueId,
|
|
186
187
|
customChildrenClass: customChildrenClass,
|
|
187
|
-
onFocus: onFocus
|
|
188
|
-
|
|
188
|
+
onFocus: onFocus
|
|
189
|
+
}, MultiSelectProps, {
|
|
189
190
|
ariaLabelledby: uniqueId
|
|
190
|
-
}, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
191
|
+
}), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
191
192
|
text: validationMessage,
|
|
192
193
|
palette: validationPalette,
|
|
193
194
|
type: errorType,
|
|
194
195
|
dataId: `${dataId}_ValidationMessage`,
|
|
195
|
-
htmlFor: uniqueId
|
|
196
|
-
|
|
197
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
196
|
+
htmlFor: uniqueId
|
|
197
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
198
198
|
text: validationRuleMessage,
|
|
199
199
|
palette: validationRulePalette,
|
|
200
200
|
type: errorType,
|
|
201
201
|
dataId: `${dataId}_ValidationRuleMessage`,
|
|
202
|
-
htmlFor: uniqueId
|
|
203
|
-
|
|
204
|
-
}));
|
|
202
|
+
htmlFor: uniqueId
|
|
203
|
+
}, ValidationMessageProps2)));
|
|
205
204
|
}
|
|
206
205
|
|
|
207
206
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -131,7 +133,7 @@ export default class PhoneField extends PureComponent {
|
|
|
131
133
|
dataSelectorId: dataSelectorId
|
|
132
134
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
133
135
|
flexible: true
|
|
134
|
-
}, /*#__PURE__*/React.createElement(TextBoxField, {
|
|
136
|
+
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
135
137
|
labelName: labelName,
|
|
136
138
|
id: id,
|
|
137
139
|
palette: isMandatory ? 'mandatory' : 'default',
|
|
@@ -158,9 +160,8 @@ export default class PhoneField extends PureComponent {
|
|
|
158
160
|
labelPalette: labelPalette,
|
|
159
161
|
labelCustomClass: labelCustomClass,
|
|
160
162
|
errorType: errorType,
|
|
161
|
-
ePhiData: ePhiData
|
|
162
|
-
|
|
163
|
-
})), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, {
|
|
163
|
+
ePhiData: ePhiData
|
|
164
|
+
}, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
164
165
|
className: style.phoneIcon,
|
|
165
166
|
callfrom: "phone",
|
|
166
167
|
pbxname: providerName,
|
|
@@ -171,9 +172,8 @@ export default class PhoneField extends PureComponent {
|
|
|
171
172
|
callto: 'RequestPhoneNumber',
|
|
172
173
|
href: true,
|
|
173
174
|
onClick: onCall,
|
|
174
|
-
type: type
|
|
175
|
-
|
|
176
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
175
|
+
type: type
|
|
176
|
+
}, LinkProps), /*#__PURE__*/React.createElement(Icon, {
|
|
177
177
|
name: "ZD-GN-phone",
|
|
178
178
|
size: "14"
|
|
179
179
|
})) : null));
|