@zohodesk/dot 1.0.0-beta.246 → 1.0.0-beta.247
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 +5 -0
- package/css_error.log +0 -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 +4 -2
- package/es/avatar/AvatarStatus/props/defaultProps.js +2 -1
- package/es/avatar/AvatarStatus/props/propTypes.js +1 -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 +4 -2
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -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/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 +9 -5
- package/lib/ActionButton/props/defaultProps.js +1 -1
- package/lib/ActionButton/props/propTypes.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/AlphabeticList/props/defaultProps.js +2 -1
- package/lib/AlphabeticList/props/propTypes.js +3 -2
- package/lib/Attachment/Attachment.js +7 -3
- package/lib/Attachment/props/defaultProps.js +2 -1
- package/lib/Attachment/props/propTypes.js +1 -0
- package/lib/AttachmentViewer/AttachmentImage.js +3 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +4 -2
- package/lib/AttachmentViewer/utils.js +4 -1
- package/lib/ChannelIcon/ChannelIcon.js +7 -3
- package/lib/ChannelIcon/props/defaultProps.js +2 -1
- package/lib/ChannelIcon/props/propTypes.js +2 -1
- package/lib/Drawer/Drawer.js +3 -1
- package/lib/ExternalLink/ExternalLink.js +3 -1
- package/lib/FlipCard/FlipCard.js +3 -1
- package/lib/FormAction/FormAction.js +7 -3
- package/lib/FormAction/props/defaultProps.js +2 -1
- package/lib/FormAction/props/propTypes.js +2 -1
- package/lib/FreezeLayer/FreezeLayer.js +3 -1
- package/lib/IconButton/IconButton.js +5 -1
- package/lib/IconButton/props/defaultProps.js +2 -1
- package/lib/IconButton/props/propTypes.js +5 -1
- package/lib/Image/Image.js +3 -1
- package/lib/ImportantNotes/ImportantNotes.js +3 -1
- package/lib/Link/Link.js +3 -1
- package/lib/Loader/Loader.js +3 -1
- package/lib/Message/Message.js +7 -3
- package/lib/Message/props/defaultProps.js +2 -1
- package/lib/Message/props/propTypes.js +1 -0
- package/lib/MessageBanner/MessageBanner.js +7 -3
- package/lib/MessageBanner/props/defaultProps.js +2 -1
- package/lib/MessageBanner/props/propTypes.js +2 -1
- package/lib/NewStar/NewStar.js +3 -1
- package/lib/PlusIcon/PlusIcon.js +3 -1
- package/lib/Separator/Separator.js +3 -1
- package/lib/ToastMessage/ToastMessage.js +5 -3
- package/lib/ToastMessage/props/defaultProps.js +2 -1
- package/lib/ToastMessage/props/propTypes.js +1 -0
- package/lib/Upload/Upload.js +6 -2
- package/lib/Upload/props/defaultProps.js +2 -1
- package/lib/Upload/props/propTypes.js +1 -0
- package/lib/actions/AutoClose.js +2 -2
- package/lib/alert/AlertHeader/AlertHeader.js +3 -1
- package/lib/alert/AlertLookup/AlertLookup.js +3 -1
- package/lib/avatar/AvatarClose/AvatarClose.js +7 -3
- package/lib/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarClose/props/propTypes.js +2 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +7 -3
- package/lib/avatar/AvatarCollision/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarCollision/props/propTypes.js +1 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.js +7 -3
- package/lib/avatar/AvatarIcon/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarIcon/props/propTypes.js +1 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +7 -3
- package/lib/avatar/AvatarStatus/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarStatus/props/propTypes.js +1 -0
- package/lib/avatar/AvatarThread/AvatarThread.js +7 -3
- package/lib/avatar/AvatarThread/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +8 -3
- package/lib/avatar/AvatarUser/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarUser/props/propTypes.js +1 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +7 -3
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -1
- package/lib/deprecated/utils/KeyboardApi.js +4 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +7 -3
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +1 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +3 -1
- package/lib/emptystate/EditionPage/EditionPage.js +3 -1
- package/lib/errorstate/Inconvenience/Inconvenience.js +3 -1
- package/lib/errorstate/LinkText/LinkText.js +3 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -1
- package/lib/errorstate/WillBack/WillBack.js +3 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +6 -2
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +6 -2
- package/lib/form/fields/CheckBoxField/props/propTypes.js +4 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +6 -2
- package/lib/form/fields/CurrencyField/props/defaultProps.js +6 -2
- package/lib/form/fields/CurrencyField/props/propTypes.js +4 -1
- package/lib/form/fields/DateField/DateField.js +6 -2
- package/lib/form/fields/DateField/props/defaultProps.js +6 -2
- package/lib/form/fields/DateField/props/propTypes.js +4 -1
- package/lib/form/fields/FieldContainer/FieldContainer.js +7 -3
- package/lib/form/fields/FieldContainer/props/defaultProps.js +6 -2
- package/lib/form/fields/FieldContainer/props/propTypes.js +4 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +6 -2
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +6 -2
- package/lib/form/fields/MultiSelectField/props/propTypes.js +4 -1
- package/lib/form/fields/PhoneField/PhoneField.js +6 -2
- package/lib/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/lib/form/fields/RadioField/RadioField.js +6 -2
- package/lib/form/fields/RadioField/props/defaultProps.js +2 -1
- package/lib/form/fields/SelectField/SelectField.js +6 -2
- package/lib/form/fields/SelectField/props/defaultProps.js +6 -2
- package/lib/form/fields/SelectField/props/propTypes.js +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +7 -3
- package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +6 -4
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +6 -2
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +4 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +6 -2
- package/lib/form/fields/TextBoxField/props/defaultProps.js +6 -2
- package/lib/form/fields/TextBoxField/props/propTypes.js +4 -1
- package/lib/form/fields/TextEditor/TextEditor.js +8 -4
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +6 -2
- package/lib/form/fields/TextEditorField/props/defaultProps.js +6 -2
- package/lib/form/fields/TextEditorField/props/propTypes.js +4 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +9 -4
- package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
- package/lib/form/fields/TextareaField/TextareaField.js +6 -2
- package/lib/form/fields/TextareaField/props/defaultProps.js +6 -2
- package/lib/form/fields/TextareaField/props/propTypes.js +4 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +7 -3
- package/lib/form/fields/ValidationMessage/props/defaultProps.js +2 -1
- package/lib/form/fields/props/FieldCommonPropTypes.js +2 -1
- package/lib/form/layout/Field/Field.js +3 -1
- package/lib/form/layout/Section/Section.js +3 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +3 -1
- package/lib/layout/SubtabLayout/SubtabLayout.js +3 -1
- package/lib/list/AvatarFlip/AvatarFlip.js +3 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.js +3 -1
- package/lib/list/Comment/Comment.js +3 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +4 -1
- package/lib/list/Dot/Dot.js +3 -1
- package/lib/list/DotNew/DotNew.js +3 -1
- package/lib/list/GridStencils/GridStencils.js +3 -1
- package/lib/list/Icons/AddNewIcon.js +3 -1
- package/lib/list/Icons/CompleteIcon.js +3 -1
- package/lib/list/Icons/DeleteIcon.js +3 -1
- package/lib/list/Icons/EditIcon.js +3 -1
- package/lib/list/Icons/FloatingIcons.js +3 -1
- package/lib/list/Icons/ReadUnreadIcon.js +3 -1
- package/lib/list/Icons/SmartIcon.js +3 -1
- package/lib/list/ListLayout/ListLayout.js +3 -1
- package/lib/list/ListLayout/props/propTypes.js +4 -1
- package/lib/list/ListStencils/ListStencils.js +3 -1
- package/lib/list/SecondaryText/AccountName.js +3 -1
- package/lib/list/SecondaryText/ContactName.js +3 -1
- package/lib/list/SecondaryText/DepartmentText.js +3 -1
- package/lib/list/SecondaryText/Email.js +3 -1
- package/lib/list/SecondaryText/HappinessRating.js +3 -1
- package/lib/list/SecondaryText/PhoneNumber.js +3 -1
- package/lib/list/SecondaryText/PriorityText.js +3 -1
- package/lib/list/SecondaryText/SecondaryText.js +3 -1
- package/lib/list/SecondaryText/StatusText.js +3 -1
- package/lib/list/SecondaryText/TicketId.js +3 -1
- package/lib/list/SecondaryText/Website.js +3 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +3 -1
- package/lib/list/SentimentStatus/SentimentStatus.js +3 -1
- package/lib/list/Subject/Subject.js +3 -1
- package/lib/list/TagNew/TagNew.js +3 -1
- package/lib/list/Thread/Thread.js +3 -1
- package/lib/list/UserTime/UserTime.js +3 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +3 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +3 -1
- package/lib/lookup/Lookup/Lookup.js +5 -2
- package/lib/lookup/Section/Section.js +3 -1
- package/lib/lookup/header/Close/Close.js +3 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -2
- package/lib/lookup/header/Search/Search.js +3 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +5 -2
- package/lib/lookup/header/Title/Title.js +3 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +3 -1
- package/lib/setup/header/Button/Button.js +3 -1
- package/lib/setup/header/Link/Link.js +3 -1
- package/lib/setup/header/Search/Search.js +3 -1
- package/lib/setup/header/Views/Views.js +3 -1
- package/lib/setup/helptips/Description/Description.js +3 -1
- package/lib/setup/helptips/Link/Link.js +3 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +3 -1
- package/lib/setup/helptips/Title/Title.js +3 -1
- package/lib/setup/table/Table/Table.js +3 -1
- package/lib/setup/table/TableBody/TableBody.js +3 -1
- package/lib/setup/table/TableData/TableData.js +3 -1
- package/lib/setup/table/TableHead/TableHead.js +3 -1
- package/lib/setup/table/TableRow/TableRow.js +3 -1
- package/lib/setup/table/Text/Text.js +3 -1
- package/lib/svg/PlusIcon.js +3 -1
- package/lib/svg/SnippetIcon.js +3 -1
- package/lib/svg/TemplateIcon.js +3 -1
- package/lib/version2/AlertClose/AlertClose.js +3 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +11 -5
- package/lib/version2/GlobalNotification/props/defaultProps.js +2 -1
- package/lib/version2/GlobalNotification/props/propTypes.js +1 -0
- package/lib/version2/alertIcons/AlarmAlertIcon.js +3 -1
- package/lib/version2/alertIcons/AlertIcons.js +7 -3
- package/lib/version2/alertIcons/DangerAlertIcon.js +3 -1
- package/lib/version2/alertIcons/ErrorAlertIcon.js +3 -1
- package/lib/version2/alertIcons/InfoAlertIcon.js +3 -1
- package/lib/version2/alertIcons/NotificationAlertIcon.js +3 -1
- package/lib/version2/alertIcons/SuccessAlertIcon.js +3 -1
- package/lib/version2/alertIcons/WarningAlertIcon.js +3 -1
- package/lib/version2/alertIcons/props/defaultProps.js +2 -1
- package/lib/version2/alertIcons/props/propTypes.js +2 -1
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -1
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -1
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -1
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -1
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -1
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +3 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +3 -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/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +3 -1
- package/package.json +5 -5
|
@@ -21,7 +21,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
21
21
|
customTextClass,
|
|
22
22
|
teamClassName,
|
|
23
23
|
borderOnActive,
|
|
24
|
-
customProps
|
|
24
|
+
customProps,
|
|
25
|
+
dataSelectorId
|
|
25
26
|
} = this.props;
|
|
26
27
|
let {
|
|
27
28
|
AvatarWithTeamProps = {},
|
|
@@ -32,7 +33,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
32
33
|
} = customProps;
|
|
33
34
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
34
35
|
className: `${style.container} `,
|
|
35
|
-
"data-id": "avatarWithTeamId"
|
|
36
|
+
"data-id": "avatarWithTeamId",
|
|
37
|
+
"data-selector-id": dataSelectorId
|
|
36
38
|
}, AvatarWithTeamProps), isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
37
39
|
name: name,
|
|
38
40
|
src: src,
|
|
@@ -8,6 +8,7 @@ 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']),
|
|
@@ -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,
|
|
@@ -46,7 +46,8 @@ export default class GlobalNotification extends React.Component {
|
|
|
46
46
|
hideMessage,
|
|
47
47
|
onClick,
|
|
48
48
|
i18nKeys = {},
|
|
49
|
-
customProps
|
|
49
|
+
customProps,
|
|
50
|
+
dataSelectorId
|
|
50
51
|
} = this.props;
|
|
51
52
|
let {
|
|
52
53
|
closeTitle = 'Close'
|
|
@@ -57,7 +58,8 @@ export default class GlobalNotification extends React.Component {
|
|
|
57
58
|
hideMessage: hideMessage,
|
|
58
59
|
onClick: onClick,
|
|
59
60
|
closeTitle: closeTitle,
|
|
60
|
-
customProps: customProps
|
|
61
|
+
customProps: customProps,
|
|
62
|
+
dataSelectorId: dataSelectorId
|
|
61
63
|
});
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -85,7 +87,8 @@ export function GlobalNotificationUI(props) {
|
|
|
85
87
|
message,
|
|
86
88
|
onClick,
|
|
87
89
|
closeTitle = '',
|
|
88
|
-
customProps = {}
|
|
90
|
+
customProps = {},
|
|
91
|
+
dataSelectorId
|
|
89
92
|
} = props;
|
|
90
93
|
let {
|
|
91
94
|
ExtraProps = {}
|
|
@@ -93,7 +96,8 @@ export function GlobalNotificationUI(props) {
|
|
|
93
96
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
94
97
|
className: `${style.message} ${type ? style[type] : ''}`,
|
|
95
98
|
"data-id": `show_${type}_message`,
|
|
96
|
-
tabIndex: 0
|
|
99
|
+
tabIndex: 0,
|
|
100
|
+
"data-selector-id": dataSelectorId
|
|
97
101
|
}, ExtraProps), /*#__PURE__*/React.createElement(Container, {
|
|
98
102
|
className: `${style.container}`,
|
|
99
103
|
alignBox: "row",
|
|
@@ -35,13 +35,15 @@ export default class AlertIcons extends Component {
|
|
|
35
35
|
render() {
|
|
36
36
|
let {
|
|
37
37
|
type,
|
|
38
|
-
variant
|
|
38
|
+
variant,
|
|
39
|
+
dataSelectorId
|
|
39
40
|
} = this.props;
|
|
40
41
|
let {
|
|
41
42
|
AlertIcon = DangerAlertIcon
|
|
42
43
|
} = alertIconsObject[type] || {};
|
|
43
44
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: style.iconContainer
|
|
45
|
+
className: style.iconContainer,
|
|
46
|
+
"data-selector-id": dataSelectorId
|
|
45
47
|
}, /*#__PURE__*/React.createElement(AlertIcon, {
|
|
46
48
|
variant: variant,
|
|
47
49
|
type: type
|
|
@@ -5,7 +5,8 @@ export const AlarmAlertIcon_propTypes = {
|
|
|
5
5
|
};
|
|
6
6
|
export const AlertIcons_propTypes = {
|
|
7
7
|
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
|
|
8
|
-
variant: PropTypes.oneOf(['primary', 'secondary'])
|
|
8
|
+
variant: PropTypes.oneOf(['primary', 'secondary']),
|
|
9
|
+
dataSelectorId: PropTypes.string
|
|
9
10
|
};
|
|
10
11
|
export const DangerAlertIcon_propTypes = {
|
|
11
12
|
type: PropTypes.string,
|