@zohodesk/dot 1.0.0-beta.246 → 1.0.0-beta.248
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/README.md +14 -0
- package/es/ActionButton/ActionButton.js +6 -4
- package/es/ActionButton/props/defaultProps.js +1 -1
- package/es/ActionButton/props/propTypes.js +1 -1
- package/es/AlphabeticList/AlphabeticList.js +4 -2
- package/es/AlphabeticList/props/defaultProps.js +2 -1
- package/es/AlphabeticList/props/propTypes.js +2 -1
- package/es/Attachment/Attachment.js +4 -2
- package/es/Attachment/props/defaultProps.js +2 -1
- package/es/Attachment/props/propTypes.js +1 -0
- package/es/ChannelIcon/ChannelIcon.js +4 -2
- package/es/ChannelIcon/props/defaultProps.js +2 -1
- package/es/ChannelIcon/props/propTypes.js +2 -1
- package/es/FormAction/FormAction.js +4 -2
- package/es/FormAction/props/defaultProps.js +2 -1
- package/es/FormAction/props/propTypes.js +2 -1
- package/es/IconButton/IconButton.js +2 -0
- package/es/IconButton/props/defaultProps.js +2 -1
- package/es/IconButton/props/propTypes.js +1 -0
- package/es/Message/Message.js +4 -2
- package/es/Message/props/defaultProps.js +2 -1
- package/es/Message/props/propTypes.js +1 -0
- package/es/MessageBanner/MessageBanner.js +4 -2
- package/es/MessageBanner/props/defaultProps.js +2 -1
- package/es/MessageBanner/props/propTypes.js +2 -1
- package/es/ToastMessage/ToastMessage.js +3 -1
- package/es/ToastMessage/props/defaultProps.js +2 -1
- package/es/ToastMessage/props/propTypes.js +1 -0
- package/es/Upload/Upload.js +3 -1
- package/es/Upload/props/defaultProps.js +2 -1
- package/es/Upload/props/propTypes.js +1 -0
- package/es/avatar/AvatarClose/AvatarClose.js +4 -2
- package/es/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/es/avatar/AvatarClose/props/propTypes.js +2 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +4 -2
- package/es/avatar/AvatarCollision/props/defaultProps.js +2 -1
- package/es/avatar/AvatarCollision/props/propTypes.js +1 -0
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -2
- package/es/avatar/AvatarIcon/props/defaultProps.js +2 -1
- package/es/avatar/AvatarIcon/props/propTypes.js +1 -0
- package/es/avatar/AvatarStatus/AvatarStatus.js +6 -2
- package/es/avatar/AvatarStatus/props/defaultProps.js +4 -1
- package/es/avatar/AvatarStatus/props/propTypes.js +3 -0
- package/es/avatar/AvatarThread/AvatarThread.js +4 -2
- package/es/avatar/AvatarThread/props/defaultProps.js +2 -1
- package/es/avatar/AvatarThread/props/propTypes.js +1 -0
- package/es/avatar/AvatarUser/AvatarUser.js +3 -1
- package/es/avatar/AvatarUser/props/defaultProps.js +2 -1
- package/es/avatar/AvatarUser/props/propTypes.js +1 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +6 -3
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +3 -1
- package/es/avatar/AvatarWithTeam/props/propTypes.js +2 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +3 -1
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/es/dropdown/ToggleDropDown/props/propTypes.js +1 -0
- package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -1
- package/es/form/fields/CheckBoxField/props/defaultProps.js +1 -0
- package/es/form/fields/CurrencyField/CurrencyField.js +3 -1
- package/es/form/fields/CurrencyField/props/defaultProps.js +1 -0
- package/es/form/fields/DateField/DateField.js +3 -1
- package/es/form/fields/DateField/props/defaultProps.js +1 -0
- package/es/form/fields/FieldContainer/FieldContainer.js +4 -2
- package/es/form/fields/FieldContainer/props/defaultProps.js +2 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +3 -1
- package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -0
- package/es/form/fields/PhoneField/PhoneField.js +3 -1
- package/es/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/es/form/fields/RadioField/RadioField.js +3 -1
- package/es/form/fields/RadioField/props/defaultProps.js +2 -1
- package/es/form/fields/SelectField/SelectField.js +3 -1
- package/es/form/fields/SelectField/props/defaultProps.js +1 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -2
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -0
- package/es/form/fields/TextBoxField/TextBoxField.js +3 -1
- package/es/form/fields/TextBoxField/props/defaultProps.js +1 -0
- package/es/form/fields/TextEditor/TextEditor.js +4 -2
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +3 -1
- package/es/form/fields/TextEditorField/props/defaultProps.js +1 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -2
- package/es/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
- package/es/form/fields/TextareaField/TextareaField.js +3 -1
- package/es/form/fields/TextareaField/props/defaultProps.js +1 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/es/form/fields/ValidationMessage/props/defaultProps.js +2 -1
- package/es/form/fields/props/FieldCommonPropTypes.js +2 -1
- package/es/list/AvatarFlip/AvatarFlip.js +5 -3
- package/es/list/AvatarFlip/props/defaultProps.js +2 -1
- package/es/list/AvatarFlip/props/propTypes.js +2 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +8 -4
- package/es/version2/GlobalNotification/props/defaultProps.js +2 -1
- package/es/version2/GlobalNotification/props/propTypes.js +1 -0
- package/es/version2/alertIcons/AlertIcons.js +4 -2
- package/es/version2/alertIcons/props/defaultProps.js +2 -1
- package/es/version2/alertIcons/props/propTypes.js +2 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +3 -1
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +2 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +1 -0
- package/lib/ActionButton/ActionButton.js +6 -4
- package/lib/ActionButton/props/defaultProps.js +1 -1
- package/lib/ActionButton/props/propTypes.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +4 -2
- package/lib/AlphabeticList/props/defaultProps.js +2 -1
- package/lib/AlphabeticList/props/propTypes.js +2 -1
- package/lib/Attachment/Attachment.js +4 -2
- package/lib/Attachment/props/defaultProps.js +2 -1
- package/lib/Attachment/props/propTypes.js +1 -0
- package/lib/ChannelIcon/ChannelIcon.js +4 -2
- package/lib/ChannelIcon/props/defaultProps.js +2 -1
- package/lib/ChannelIcon/props/propTypes.js +2 -1
- package/lib/FormAction/FormAction.js +4 -2
- package/lib/FormAction/props/defaultProps.js +2 -1
- package/lib/FormAction/props/propTypes.js +2 -1
- package/lib/IconButton/IconButton.js +2 -0
- package/lib/IconButton/props/defaultProps.js +2 -1
- package/lib/IconButton/props/propTypes.js +1 -0
- package/lib/Message/Message.js +4 -2
- package/lib/Message/props/defaultProps.js +2 -1
- package/lib/Message/props/propTypes.js +1 -0
- package/lib/MessageBanner/MessageBanner.js +4 -2
- package/lib/MessageBanner/props/defaultProps.js +2 -1
- package/lib/MessageBanner/props/propTypes.js +2 -1
- package/lib/ToastMessage/ToastMessage.js +3 -1
- package/lib/ToastMessage/props/defaultProps.js +2 -1
- package/lib/ToastMessage/props/propTypes.js +1 -0
- package/lib/Upload/Upload.js +3 -1
- package/lib/Upload/props/defaultProps.js +2 -1
- package/lib/Upload/props/propTypes.js +1 -0
- package/lib/avatar/AvatarClose/AvatarClose.js +4 -2
- package/lib/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarClose/props/propTypes.js +2 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +4 -2
- package/lib/avatar/AvatarCollision/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarCollision/props/propTypes.js +1 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.js +4 -2
- package/lib/avatar/AvatarIcon/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarIcon/props/propTypes.js +1 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +6 -2
- package/lib/avatar/AvatarStatus/props/defaultProps.js +4 -1
- package/lib/avatar/AvatarStatus/props/propTypes.js +22 -23
- package/lib/avatar/AvatarThread/AvatarThread.js +4 -2
- package/lib/avatar/AvatarThread/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +3 -1
- package/lib/avatar/AvatarUser/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarUser/props/propTypes.js +1 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +6 -3
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +3 -1
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +2 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -1
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +1 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -1
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +2 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +3 -1
- package/lib/form/fields/CurrencyField/props/defaultProps.js +2 -1
- package/lib/form/fields/DateField/DateField.js +3 -1
- package/lib/form/fields/DateField/props/defaultProps.js +2 -1
- package/lib/form/fields/FieldContainer/FieldContainer.js +4 -2
- package/lib/form/fields/FieldContainer/props/defaultProps.js +2 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +3 -1
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/PhoneField/PhoneField.js +3 -1
- package/lib/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/lib/form/fields/RadioField/RadioField.js +3 -1
- package/lib/form/fields/RadioField/props/defaultProps.js +2 -1
- package/lib/form/fields/SelectField/SelectField.js +3 -1
- package/lib/form/fields/SelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -2
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +3 -1
- package/lib/form/fields/TextBoxField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/TextEditor.js +4 -2
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +3 -1
- package/lib/form/fields/TextEditorField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -2
- package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
- package/lib/form/fields/TextareaField/TextareaField.js +3 -1
- package/lib/form/fields/TextareaField/props/defaultProps.js +2 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/lib/form/fields/ValidationMessage/props/defaultProps.js +2 -1
- package/lib/form/fields/props/FieldCommonPropTypes.js +2 -1
- package/lib/list/AvatarFlip/AvatarFlip.js +5 -3
- package/lib/list/AvatarFlip/props/defaultProps.js +2 -1
- package/lib/list/AvatarFlip/props/propTypes.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +8 -4
- package/lib/version2/GlobalNotification/props/defaultProps.js +2 -1
- package/lib/version2/GlobalNotification/props/propTypes.js +1 -0
- package/lib/version2/alertIcons/AlertIcons.js +4 -2
- package/lib/version2/alertIcons/props/defaultProps.js +2 -1
- package/lib/version2/alertIcons/props/propTypes.js +2 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +3 -1
- package/lib/version2/notification/DesktopNotification/props/defaultProps.js +2 -1
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +1 -0
- package/package.json +6 -6
|
@@ -20,6 +20,7 @@ export const propTypes = {
|
|
|
20
20
|
src: PropTypes.string,
|
|
21
21
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
22
22
|
title: PropTypes.string,
|
|
23
|
+
dataSelectorId: PropTypes.string,
|
|
23
24
|
alternateSrc: PropTypes.string,
|
|
24
25
|
i18nKeys: PropTypes.shape({
|
|
25
26
|
paidTitle: PropTypes.string,
|
|
@@ -21,7 +21,9 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
21
21
|
customTextClass,
|
|
22
22
|
teamClassName,
|
|
23
23
|
borderOnActive,
|
|
24
|
-
customProps
|
|
24
|
+
customProps,
|
|
25
|
+
dataSelectorId,
|
|
26
|
+
teamBorderActive
|
|
25
27
|
} = this.props;
|
|
26
28
|
let {
|
|
27
29
|
AvatarWithTeamProps = {},
|
|
@@ -32,7 +34,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
32
34
|
} = customProps;
|
|
33
35
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
34
36
|
className: `${style.container} `,
|
|
35
|
-
"data-id": "avatarWithTeamId"
|
|
37
|
+
"data-id": "avatarWithTeamId",
|
|
38
|
+
"data-selector-id": dataSelectorId
|
|
36
39
|
}, AvatarWithTeamProps), isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
37
40
|
name: name,
|
|
38
41
|
src: src,
|
|
@@ -79,7 +82,7 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
79
82
|
customClass: {
|
|
80
83
|
customAvatar: customTextClass
|
|
81
84
|
},
|
|
82
|
-
borderOnActive:
|
|
85
|
+
borderOnActive: teamBorderActive
|
|
83
86
|
}, AvatarTeam2Props))) : null);
|
|
84
87
|
}
|
|
85
88
|
}
|
|
@@ -8,11 +8,13 @@ export const propTypes = {
|
|
|
8
8
|
palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
|
|
9
9
|
size: PropTypes.string,
|
|
10
10
|
src: PropTypes.string,
|
|
11
|
+
dataSelectorId: PropTypes.string,
|
|
11
12
|
teamClassName: PropTypes.string,
|
|
12
13
|
teamName: PropTypes.string,
|
|
13
14
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
14
15
|
title: PropTypes.string,
|
|
15
16
|
borderOnActive: PropTypes.bool,
|
|
17
|
+
teamBorderActive: PropTypes.bool,
|
|
16
18
|
customProps: PropTypes.shape({
|
|
17
19
|
AvatarWithTeamProps: PropTypes.object,
|
|
18
20
|
Avatar1Props: PropTypes.object,
|
|
@@ -490,6 +490,7 @@ export class ToggleDropDown extends Component {
|
|
|
490
490
|
getTargetRef,
|
|
491
491
|
getContainerRef,
|
|
492
492
|
dataId,
|
|
493
|
+
dataSelectorId,
|
|
493
494
|
searchBoxSize,
|
|
494
495
|
searchEmptyHint,
|
|
495
496
|
searchErrorText,
|
|
@@ -541,7 +542,8 @@ export class ToggleDropDown extends Component {
|
|
|
541
542
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
542
543
|
className: style.wrapper,
|
|
543
544
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
544
|
-
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined
|
|
545
|
+
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
546
|
+
"data-selector-id": dataSelectorId
|
|
545
547
|
}, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
|
|
546
548
|
alignBox: "row",
|
|
547
549
|
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
@@ -53,6 +53,7 @@ export default class CheckBoxField extends PureComponent {
|
|
|
53
53
|
isDisabled,
|
|
54
54
|
title,
|
|
55
55
|
dataId,
|
|
56
|
+
dataSelectorId,
|
|
56
57
|
validationRuleMessage,
|
|
57
58
|
validationRulePalette,
|
|
58
59
|
infoText,
|
|
@@ -93,7 +94,8 @@ export default class CheckBoxField extends PureComponent {
|
|
|
93
94
|
}, LabelProps)));
|
|
94
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
95
96
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
96
|
-
"data-title": isDisabled ? title : null
|
|
97
|
+
"data-title": isDisabled ? title : null,
|
|
98
|
+
"data-selector-id": dataSelectorId
|
|
97
99
|
}, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
|
|
98
100
|
className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
99
101
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -85,6 +85,7 @@ export default class CurrencyField extends PureComponent {
|
|
|
85
85
|
labelPalette,
|
|
86
86
|
labelCustomClass,
|
|
87
87
|
htmlId,
|
|
88
|
+
dataSelectorId,
|
|
88
89
|
lockedInfoText,
|
|
89
90
|
isLocked,
|
|
90
91
|
needReadOnlyStyle,
|
|
@@ -112,7 +113,8 @@ export default class CurrencyField extends PureComponent {
|
|
|
112
113
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
113
114
|
return /*#__PURE__*/React.createElement("div", {
|
|
114
115
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
115
|
-
"data-title": isDisabled ? title : null
|
|
116
|
+
"data-title": isDisabled ? title : null,
|
|
117
|
+
"data-selector-id": dataSelectorId
|
|
116
118
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
117
119
|
infoText: infoText,
|
|
118
120
|
isLocked: isLocked,
|
|
@@ -86,6 +86,7 @@ export default class DateField extends PureComponent {
|
|
|
86
86
|
title,
|
|
87
87
|
popupGroup,
|
|
88
88
|
dataId,
|
|
89
|
+
dataSelectorId,
|
|
89
90
|
validationRuleMessage,
|
|
90
91
|
validationRulePalette,
|
|
91
92
|
onKeyDown,
|
|
@@ -114,7 +115,8 @@ export default class DateField extends PureComponent {
|
|
|
114
115
|
let getAriaId = htmlId ? htmlId : this.getNextId();
|
|
115
116
|
return /*#__PURE__*/React.createElement("div", {
|
|
116
117
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
117
|
-
"data-title": isDisabled ? title : null
|
|
118
|
+
"data-title": isDisabled ? title : null,
|
|
119
|
+
"data-selector-id": dataSelectorId
|
|
118
120
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
119
121
|
infoText: infoText,
|
|
120
122
|
isLocked: isLocked,
|
|
@@ -22,7 +22,8 @@ export default class FieldContainer extends PureComponent {
|
|
|
22
22
|
infoText,
|
|
23
23
|
dataId,
|
|
24
24
|
renderProps,
|
|
25
|
-
alignContainer
|
|
25
|
+
alignContainer,
|
|
26
|
+
dataSelectorId
|
|
26
27
|
} = this.props;
|
|
27
28
|
let {
|
|
28
29
|
ePhiTitle = '',
|
|
@@ -37,7 +38,8 @@ export default class FieldContainer extends PureComponent {
|
|
|
37
38
|
return /*#__PURE__*/React.createElement(Container, {
|
|
38
39
|
align: alignContainer,
|
|
39
40
|
alignBox: "row",
|
|
40
|
-
isCover: false
|
|
41
|
+
isCover: false,
|
|
42
|
+
dataSelectorId: dataSelectorId
|
|
41
43
|
}, renderStart ? renderStart() : null, children, renderMiddle ? renderMiddle() : null, infoText ? /*#__PURE__*/React.createElement(Icon, {
|
|
42
44
|
name: "ZD-GN-info",
|
|
43
45
|
iconClass: style.infoIcon,
|
|
@@ -98,6 +98,7 @@ export default class MultiSelectField extends PureComponent {
|
|
|
98
98
|
isDisabled,
|
|
99
99
|
title,
|
|
100
100
|
dataId,
|
|
101
|
+
dataSelectorId,
|
|
101
102
|
validationRuleMessage,
|
|
102
103
|
validationRulePalette,
|
|
103
104
|
onKeyDown,
|
|
@@ -132,7 +133,8 @@ export default class MultiSelectField extends PureComponent {
|
|
|
132
133
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
133
134
|
return /*#__PURE__*/React.createElement("div", {
|
|
134
135
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
135
|
-
"data-title": isDisabled ? title : null
|
|
136
|
+
"data-title": isDisabled ? title : null,
|
|
137
|
+
"data-selector-id": dataSelectorId
|
|
136
138
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
137
139
|
infoText: infoText,
|
|
138
140
|
isLocked: isLocked,
|
|
@@ -77,6 +77,7 @@ export default class PhoneField extends PureComponent {
|
|
|
77
77
|
title,
|
|
78
78
|
onBlur,
|
|
79
79
|
dataId,
|
|
80
|
+
dataSelectorId,
|
|
80
81
|
onKeyDown,
|
|
81
82
|
placeHolder,
|
|
82
83
|
infoText,
|
|
@@ -119,7 +120,8 @@ export default class PhoneField extends PureComponent {
|
|
|
119
120
|
return /*#__PURE__*/React.createElement(Container, {
|
|
120
121
|
alignBox: "row",
|
|
121
122
|
className: `${style.container} ${isDisabled ? style.disabled : ''}`,
|
|
122
|
-
"data-title": isDisabled ? title : null
|
|
123
|
+
"data-title": isDisabled ? title : null,
|
|
124
|
+
dataSelectorId: dataSelectorId
|
|
123
125
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
124
126
|
flexible: true
|
|
125
127
|
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
@@ -40,6 +40,7 @@ export default class RadioField extends PureComponent {
|
|
|
40
40
|
selectedValue,
|
|
41
41
|
isActive,
|
|
42
42
|
dataId,
|
|
43
|
+
dataSelectorId,
|
|
43
44
|
validationRuleMessage,
|
|
44
45
|
validationRulePalette,
|
|
45
46
|
isReadOnly,
|
|
@@ -54,7 +55,8 @@ export default class RadioField extends PureComponent {
|
|
|
54
55
|
} = customProps;
|
|
55
56
|
return /*#__PURE__*/React.createElement("div", {
|
|
56
57
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
57
|
-
"data-title": isDisabled ? title : null
|
|
58
|
+
"data-title": isDisabled ? title : null,
|
|
59
|
+
"data-selector-id": dataSelectorId
|
|
58
60
|
}, labelName && /*#__PURE__*/React.createElement(Label, _extends({
|
|
59
61
|
text: labelName,
|
|
60
62
|
size: "medium",
|
|
@@ -71,6 +71,7 @@ export default class SelectField extends PureComponent {
|
|
|
71
71
|
isDisabled,
|
|
72
72
|
title,
|
|
73
73
|
dataId,
|
|
74
|
+
dataSelectorId,
|
|
74
75
|
fieldClass,
|
|
75
76
|
validationRuleMessage,
|
|
76
77
|
validationRulePalette,
|
|
@@ -106,7 +107,8 @@ export default class SelectField extends PureComponent {
|
|
|
106
107
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
107
108
|
return /*#__PURE__*/React.createElement("div", {
|
|
108
109
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
109
|
-
"data-title": isDisabled ? title : null
|
|
110
|
+
"data-title": isDisabled ? title : null,
|
|
111
|
+
"data-selector-id": dataSelectorId
|
|
110
112
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
111
113
|
infoText: infoText,
|
|
112
114
|
isLocked: isLocked,
|
|
@@ -127,7 +127,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
127
127
|
htmlId,
|
|
128
128
|
boxSize,
|
|
129
129
|
onSelectTag,
|
|
130
|
-
clickableTag
|
|
130
|
+
clickableTag,
|
|
131
|
+
dataSelectorId
|
|
131
132
|
} = this.props;
|
|
132
133
|
let {
|
|
133
134
|
showAll
|
|
@@ -137,7 +138,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
137
138
|
className: ` ${!isReadOnly ? ` ${needBorder ? style.hasBorder : ''}
|
|
138
139
|
${needBorder ? style[`borderColor_${borderColor}`] : style.borderColor_transparent} ${isPopupReady && needBorder ? style.active : ''}` : ''} ${className}`,
|
|
139
140
|
onClick: stopBubbling,
|
|
140
|
-
"data-id": `${dataId}_tagsContainer
|
|
141
|
+
"data-id": `${dataId}_tagsContainer`,
|
|
142
|
+
"data-selector-id": dataSelectorId
|
|
141
143
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
142
144
|
alignBox: "row",
|
|
143
145
|
align: "vertical",
|
|
@@ -39,7 +39,8 @@ const TagsMultiSelectField = props => {
|
|
|
39
39
|
children,
|
|
40
40
|
ePhiData,
|
|
41
41
|
customProps,
|
|
42
|
-
clickableTag
|
|
42
|
+
clickableTag,
|
|
43
|
+
dataSelectorId
|
|
43
44
|
} = props;
|
|
44
45
|
const {
|
|
45
46
|
LabelProps = {},
|
|
@@ -169,7 +170,8 @@ const TagsMultiSelectField = props => {
|
|
|
169
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
170
171
|
className: `${isDisabled ? fieldStyle.disabled : isReadOnly ? fieldStyle.readonly : ''}`,
|
|
171
172
|
tabIndex: "0",
|
|
172
|
-
"aria-label": `${labelName}
|
|
173
|
+
"aria-label": `${labelName}`,
|
|
174
|
+
"data-selector-id": dataSelectorId
|
|
173
175
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
174
176
|
ePhiData: ePhiData,
|
|
175
177
|
alignContainer: "baseline",
|
|
@@ -62,6 +62,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
62
62
|
title,
|
|
63
63
|
onBlur,
|
|
64
64
|
dataId,
|
|
65
|
+
dataSelectorId,
|
|
65
66
|
validationRuleMessage,
|
|
66
67
|
validationRulePalette,
|
|
67
68
|
onKeyDown,
|
|
@@ -91,7 +92,8 @@ export default class TextBoxField extends PureComponent {
|
|
|
91
92
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
92
93
|
return /*#__PURE__*/React.createElement("div", {
|
|
93
94
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
94
|
-
"data-title": isDisabled ? title : null
|
|
95
|
+
"data-title": isDisabled ? title : null,
|
|
96
|
+
"data-selector-id": dataSelectorId
|
|
95
97
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
96
98
|
infoText: infoText,
|
|
97
99
|
isLocked: isLocked,
|
|
@@ -331,7 +331,8 @@ export default class TextEditor extends Component {
|
|
|
331
331
|
ImgLazyLoad,
|
|
332
332
|
loadingComponent,
|
|
333
333
|
isNightMode,
|
|
334
|
-
isReadOnly
|
|
334
|
+
isReadOnly,
|
|
335
|
+
dataSelectorId
|
|
335
336
|
} = this.props;
|
|
336
337
|
let {
|
|
337
338
|
isEditorLoad,
|
|
@@ -342,7 +343,8 @@ export default class TextEditor extends Component {
|
|
|
342
343
|
className: `${styles.textEditor} ${styles[type]} ${styles[border]}
|
|
343
344
|
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${!isEditorShow ? styles.editorHide : ''}`,
|
|
344
345
|
dataId: dataId,
|
|
345
|
-
"data-isEditor": true
|
|
346
|
+
"data-isEditor": true,
|
|
347
|
+
dataSelectorId: dataSelectorId
|
|
346
348
|
}, loadingComponent && !isEditorLoad ? loadingComponent : null, /*#__PURE__*/React.createElement(Box, {
|
|
347
349
|
flexible: true,
|
|
348
350
|
id: id,
|
|
@@ -63,6 +63,7 @@ export default class TextEditorField extends PureComponent {
|
|
|
63
63
|
onAttachmentUpload,
|
|
64
64
|
needEditor,
|
|
65
65
|
dataId,
|
|
66
|
+
dataSelectorId,
|
|
66
67
|
isDisabled,
|
|
67
68
|
fieldSize,
|
|
68
69
|
textBoxSize,
|
|
@@ -102,7 +103,8 @@ export default class TextEditorField extends PureComponent {
|
|
|
102
103
|
ValidationMessageProps = {}
|
|
103
104
|
} = customProps;
|
|
104
105
|
return /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''} ${className || ''}
|
|
106
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''} ${className || ''}`,
|
|
107
|
+
"data-selector-id": dataSelectorId
|
|
106
108
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
107
109
|
infoText: infoText,
|
|
108
110
|
isLocked: isLocked,
|
|
@@ -110,7 +110,8 @@ export default class TextEditorWrapper extends Component {
|
|
|
110
110
|
i18nKeys,
|
|
111
111
|
isEditorDefaultOpen,
|
|
112
112
|
needInlineAttachment,
|
|
113
|
-
customProps
|
|
113
|
+
customProps,
|
|
114
|
+
dataSelectorId
|
|
114
115
|
} = this.props;
|
|
115
116
|
const {
|
|
116
117
|
Textarea1Props = {},
|
|
@@ -122,7 +123,8 @@ export default class TextEditorWrapper extends Component {
|
|
|
122
123
|
};
|
|
123
124
|
let editorOptionsObject = Object.assign(defaultObj, editorOptions);
|
|
124
125
|
return /*#__PURE__*/React.createElement("div", {
|
|
125
|
-
className: style.container
|
|
126
|
+
className: style.container,
|
|
127
|
+
"data-selector-id": dataSelectorId
|
|
126
128
|
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, _extends({
|
|
127
129
|
onFocus: this.handleTextareaFocus,
|
|
128
130
|
text: value,
|
|
@@ -70,6 +70,7 @@ export default class TextareaField extends PureComponent {
|
|
|
70
70
|
title,
|
|
71
71
|
placeHolder,
|
|
72
72
|
dataId,
|
|
73
|
+
dataSelectorId,
|
|
73
74
|
validationRuleMessage,
|
|
74
75
|
validationRulePalette,
|
|
75
76
|
// onKeyDown,
|
|
@@ -93,7 +94,8 @@ export default class TextareaField extends PureComponent {
|
|
|
93
94
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
94
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
95
96
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
96
|
-
"data-title": isDisabled ? title : null
|
|
97
|
+
"data-title": isDisabled ? title : null,
|
|
98
|
+
"data-selector-id": dataSelectorId
|
|
97
99
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
98
100
|
infoText: infoText,
|
|
99
101
|
isLocked: isLocked,
|
|
@@ -17,7 +17,8 @@ export default class ValidationMessage extends React.Component {
|
|
|
17
17
|
dataId,
|
|
18
18
|
clipped,
|
|
19
19
|
a11y,
|
|
20
|
-
tooltip
|
|
20
|
+
tooltip,
|
|
21
|
+
dataSelectorId
|
|
21
22
|
} = this.props;
|
|
22
23
|
let {
|
|
23
24
|
role = 'alert'
|
|
@@ -26,7 +27,8 @@ export default class ValidationMessage extends React.Component {
|
|
|
26
27
|
role: role,
|
|
27
28
|
onClick: onClick,
|
|
28
29
|
className: `${type === 'primary' ? style.primary : style.secondary}`,
|
|
29
|
-
"data-id": "errorMsgContainer"
|
|
30
|
+
"data-id": "errorMsgContainer",
|
|
31
|
+
"data-selector-id": dataSelectorId
|
|
30
32
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
31
33
|
text: text,
|
|
32
34
|
htmlFor: htmlFor,
|
|
@@ -1,3 +1,4 @@
|
|
|
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); }
|
|
1
2
|
import React, { Component } from 'react';
|
|
2
3
|
import { defaultProps } from './props/defaultProps';
|
|
3
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -30,9 +31,10 @@ export default class AvatarFlip extends Component {
|
|
|
30
31
|
tourId,
|
|
31
32
|
iconSize,
|
|
32
33
|
isFilledCheckbox,
|
|
33
|
-
channelTitle
|
|
34
|
+
channelTitle,
|
|
35
|
+
customProps
|
|
34
36
|
} = this.props;
|
|
35
|
-
return /*#__PURE__*/React.createElement(FlipCard, {
|
|
37
|
+
return /*#__PURE__*/React.createElement(FlipCard, _extends({
|
|
36
38
|
id: id,
|
|
37
39
|
action: action,
|
|
38
40
|
name: name,
|
|
@@ -61,7 +63,7 @@ export default class AvatarFlip extends Component {
|
|
|
61
63
|
tourId: tourId,
|
|
62
64
|
isFilledCheckbox: isFilledCheckbox,
|
|
63
65
|
channelTitle: channelTitle
|
|
64
|
-
});
|
|
66
|
+
}, customProps));
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
AvatarFlip.propTypes = propTypes;
|