@zohodesk/dot 1.0.0-temp-189.1 → 1.0.0-temp-191.1
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/es/ActionButton/ActionButton.js +4 -2
- package/es/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2 -2
- package/es/Attachment/Attachment.js +2 -1
- package/es/AttachmentViewer/AttachmentViewer.js +13 -6
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +4 -2
- package/es/AttachmentViewer/props/defaultProps.js +2 -1
- package/es/AttachmentViewer/props/propTypes.js +2 -1
- package/es/ChannelIcon/ChannelIcon.js +1 -0
- package/es/MessageBanner/MessageBanner.js +4 -2
- package/es/alert/AlertHeader/AlertHeader.js +2 -1
- package/es/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +2 -2
- package/es/avatar/AvatarClose/AvatarClose.js +7 -2
- package/es/avatar/AvatarClose/__tests__/__snapshots__/AvatarClose.spec.js.snap +2 -0
- package/es/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/es/avatar/AvatarClose/props/propTypes.js +2 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +6 -2
- package/es/list/Subject/Subject.js +3 -7
- package/es/list/Subject/Subject.module.css +0 -20
- package/es/list/Subject/__tests__/Subject.spec.js +0 -9
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +1 -38
- package/es/list/Subject/props/defaultProps.js +1 -2
- package/es/list/Subject/props/propTypes.js +1 -2
- package/es/list/status/StatusDropdown/StatusDropdown.js +5 -2
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +16 -7
- package/es/lookup/header/ViewDropDown/__test__/__snapshots__/ViewDropDown.spec.js.snap +2 -0
- package/es/lookup/header/ViewDropDown/props/defaultProps.js +2 -1
- package/es/lookup/header/ViewDropDown/props/propTypes.js +1 -0
- package/es/setup/header/Search/Search.js +8 -3
- package/es/setup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +2 -0
- package/es/setup/header/Search/props/defaultProps.js +2 -1
- package/es/setup/header/Search/props/propTypes.js +2 -1
- package/es/v1/ActionButton/ActionButton.js +4 -2
- package/es/v1/Attachment/Attachment.js +2 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +13 -6
- package/es/v1/AttachmentViewer/props/defaultProps.js +2 -1
- package/es/v1/AttachmentViewer/props/propTypes.js +2 -1
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -0
- package/es/v1/MessageBanner/MessageBanner.js +4 -2
- package/es/v1/alert/AlertHeader/AlertHeader.js +2 -1
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -2
- package/es/v1/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/es/v1/avatar/AvatarClose/props/propTypes.js +2 -1
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +6 -2
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +2 -1
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +2 -1
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +2 -1
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +2 -1
- package/es/v1/list/Subject/Subject.js +3 -7
- package/es/v1/list/Subject/props/defaultProps.js +1 -2
- package/es/v1/list/Subject/props/propTypes.js +1 -2
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +5 -2
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +16 -7
- package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +2 -1
- package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +1 -0
- package/es/v1/setup/header/Search/Search.js +8 -3
- package/es/v1/setup/header/Search/props/defaultProps.js +2 -1
- package/es/v1/setup/header/Search/props/propTypes.js +2 -1
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +2 -1
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +2 -1
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +2 -1
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +2 -1
- package/lib/ActionButton/ActionButton.js +4 -2
- package/lib/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2 -2
- package/lib/Attachment/Attachment.js +2 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +18 -10
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +4 -2
- package/lib/AttachmentViewer/props/defaultProps.js +2 -1
- package/lib/AttachmentViewer/props/propTypes.js +2 -1
- package/lib/ChannelIcon/ChannelIcon.js +1 -0
- package/lib/MessageBanner/MessageBanner.js +4 -2
- package/lib/alert/AlertHeader/AlertHeader.js +2 -1
- package/lib/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +2 -2
- package/lib/avatar/AvatarClose/AvatarClose.js +8 -3
- package/lib/avatar/AvatarClose/__tests__/__snapshots__/AvatarClose.spec.js.snap +2 -0
- package/lib/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarClose/props/propTypes.js +2 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +7 -3
- package/lib/list/Subject/Subject.js +5 -9
- package/lib/list/Subject/Subject.module.css +0 -20
- package/lib/list/Subject/__tests__/Subject.spec.js +0 -9
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +1 -38
- package/lib/list/Subject/props/defaultProps.js +1 -2
- package/lib/list/Subject/props/propTypes.js +1 -2
- package/lib/list/status/StatusDropdown/StatusDropdown.js +5 -2
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +16 -7
- package/lib/lookup/header/ViewDropDown/__test__/__snapshots__/ViewDropDown.spec.js.snap +2 -0
- package/lib/lookup/header/ViewDropDown/props/defaultProps.js +2 -1
- package/lib/lookup/header/ViewDropDown/props/propTypes.js +1 -0
- package/lib/setup/header/Search/Search.js +8 -3
- package/lib/setup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +2 -0
- package/lib/setup/header/Search/props/defaultProps.js +2 -1
- package/lib/setup/header/Search/props/propTypes.js +2 -1
- package/lib/v1/ActionButton/ActionButton.js +4 -2
- package/lib/v1/Attachment/Attachment.js +2 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +18 -10
- package/lib/v1/AttachmentViewer/props/defaultProps.js +2 -1
- package/lib/v1/AttachmentViewer/props/propTypes.js +2 -1
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -0
- package/lib/v1/MessageBanner/MessageBanner.js +4 -2
- package/lib/v1/alert/AlertHeader/AlertHeader.js +2 -1
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +8 -3
- package/lib/v1/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/lib/v1/avatar/AvatarClose/props/propTypes.js +2 -1
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +7 -3
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +2 -1
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +2 -1
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +2 -1
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +2 -1
- package/lib/v1/list/Subject/Subject.js +5 -9
- package/lib/v1/list/Subject/props/defaultProps.js +1 -2
- package/lib/v1/list/Subject/props/propTypes.js +1 -2
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +5 -2
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +16 -7
- package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +2 -1
- package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +1 -0
- package/lib/v1/setup/header/Search/Search.js +8 -3
- package/lib/v1/setup/header/Search/props/defaultProps.js +2 -1
- package/lib/v1/setup/header/Search/props/propTypes.js +2 -1
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +2 -1
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +2 -1
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +2 -1
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +2 -1
- package/package.json +3 -3
|
@@ -220,7 +220,8 @@ export default class AttachmentViewer extends Component {
|
|
|
220
220
|
isZoomed
|
|
221
221
|
} = this.state;
|
|
222
222
|
const {
|
|
223
|
-
maintainZoom
|
|
223
|
+
maintainZoom,
|
|
224
|
+
dataId
|
|
224
225
|
} = this.props;
|
|
225
226
|
|
|
226
227
|
const getImgStyle = i => {
|
|
@@ -265,7 +266,9 @@ export default class AttachmentViewer extends Component {
|
|
|
265
266
|
}, isAudioFile(data.name) ? selectedIndex == i ? /*#__PURE__*/React.createElement("video", {
|
|
266
267
|
autoPlay: true,
|
|
267
268
|
controls: true,
|
|
268
|
-
className: style.zoomIn
|
|
269
|
+
className: style.zoomIn,
|
|
270
|
+
"data-id": `${dataId}_videoPreview`,
|
|
271
|
+
"data-test-id": `${dataId}_videoPreview`
|
|
269
272
|
}, /*#__PURE__*/React.createElement("source", {
|
|
270
273
|
src: data.viewUrl,
|
|
271
274
|
type: `audio/${getExtensionFromFileName(data.name)}`
|
|
@@ -295,7 +298,8 @@ export default class AttachmentViewer extends Component {
|
|
|
295
298
|
responsiveId,
|
|
296
299
|
needDownload,
|
|
297
300
|
i18nKeys,
|
|
298
|
-
isActive
|
|
301
|
+
isActive,
|
|
302
|
+
dataId
|
|
299
303
|
} = this.props;
|
|
300
304
|
const totalLen = data.length;
|
|
301
305
|
const selectedAttachment = data[selectedIndex] || {};
|
|
@@ -401,7 +405,8 @@ export default class AttachmentViewer extends Component {
|
|
|
401
405
|
target: "_parent",
|
|
402
406
|
hasReload: true,
|
|
403
407
|
download: true,
|
|
404
|
-
title: i18nKeys.downloadText
|
|
408
|
+
title: i18nKeys.downloadText,
|
|
409
|
+
dataId: `${dataId}_downloadAttach`
|
|
405
410
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
406
411
|
iconName: "ZD-GN-download",
|
|
407
412
|
className: style.menuIcon,
|
|
@@ -468,13 +473,15 @@ export default class AttachmentViewer extends Component {
|
|
|
468
473
|
dataId: "rightAttachNav",
|
|
469
474
|
isBold: true
|
|
470
475
|
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
471
|
-
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide}
|
|
476
|
+
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide} `,
|
|
477
|
+
dataId: `${dataId}_attachPreviewFooter`
|
|
472
478
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
473
479
|
align: "vertical",
|
|
474
480
|
alignBox: "row",
|
|
475
481
|
className: style.footerHeight
|
|
476
482
|
}, author && /*#__PURE__*/React.createElement(Box, {
|
|
477
|
-
className: style.author
|
|
483
|
+
className: style.author,
|
|
484
|
+
dataId: `${dataId}_authorName`
|
|
478
485
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
479
486
|
alignBox: "row",
|
|
480
487
|
align: "both"
|
|
@@ -39,10 +39,12 @@ export default function MessageBanner(props) {
|
|
|
39
39
|
href: href,
|
|
40
40
|
onClick: onClick,
|
|
41
41
|
className: style.link,
|
|
42
|
-
target: "_blank"
|
|
42
|
+
target: "_blank",
|
|
43
|
+
dataId: `${dataId}_link`
|
|
43
44
|
}, urlText)))), onClose ? /*#__PURE__*/React.createElement(Box, {
|
|
44
45
|
className: style.close,
|
|
45
|
-
onClick: onClose
|
|
46
|
+
onClick: onClose,
|
|
47
|
+
dataId: `${dataId}_close`
|
|
46
48
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
47
49
|
align: "both"
|
|
48
50
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -49,7 +49,8 @@ export default function AlertHeader(props) {
|
|
|
49
49
|
isCover: false,
|
|
50
50
|
wrap: "wrap",
|
|
51
51
|
"data-drag-hook": "true",
|
|
52
|
-
eleRef: dragRef
|
|
52
|
+
eleRef: dragRef,
|
|
53
|
+
dataId: `${dataId}_alertHeader`
|
|
53
54
|
}, needIcon && /*#__PURE__*/React.createElement("div", {
|
|
54
55
|
className: finalStyle.iconContainer
|
|
55
56
|
}, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
|
|
@@ -13,7 +13,8 @@ export default function AvatarClose(props) {
|
|
|
13
13
|
isClose,
|
|
14
14
|
onClick,
|
|
15
15
|
customProps,
|
|
16
|
-
dataSelectorId
|
|
16
|
+
dataSelectorId,
|
|
17
|
+
dataId
|
|
17
18
|
} = props;
|
|
18
19
|
let {
|
|
19
20
|
AvatarCloseProps = {},
|
|
@@ -22,6 +23,8 @@ export default function AvatarClose(props) {
|
|
|
22
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
23
24
|
className: style.container,
|
|
24
25
|
"data-selector-id": dataSelectorId,
|
|
26
|
+
"data-id": dataId,
|
|
27
|
+
"data-test-id": dataId,
|
|
25
28
|
...AvatarCloseProps
|
|
26
29
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
27
30
|
src: src,
|
|
@@ -31,7 +34,9 @@ export default function AvatarClose(props) {
|
|
|
31
34
|
...AvatarProps
|
|
32
35
|
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
33
36
|
className: style.pop,
|
|
34
|
-
onClick: onClick
|
|
37
|
+
onClick: onClick,
|
|
38
|
+
"data-id": `${dataId}_close`,
|
|
39
|
+
"data-test-id": `${dataId}_close`
|
|
35
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
36
41
|
className: style.icon
|
|
37
42
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -580,14 +580,16 @@ export class ToggleDropDown extends Component {
|
|
|
580
580
|
className: value ? style.iconBox : ''
|
|
581
581
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
582
582
|
name: iconName,
|
|
583
|
-
size: iconSize
|
|
583
|
+
size: iconSize,
|
|
584
|
+
dataId: `${dataId}_icon`
|
|
584
585
|
})) : null, value && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
585
586
|
id: ariaTitleId,
|
|
586
587
|
"aria-hidden": true,
|
|
587
588
|
className: `${style.value} toggleDropText`,
|
|
588
589
|
shrink: true,
|
|
589
590
|
tagName: "span",
|
|
590
|
-
"data-title": dataTitle
|
|
591
|
+
"data-title": dataTitle,
|
|
592
|
+
dataId: `${dataId}_value`
|
|
591
593
|
}, value), isEditable ? /*#__PURE__*/React.createElement(Icon, {
|
|
592
594
|
"aria-hidden": true,
|
|
593
595
|
size: "6",
|
|
@@ -638,6 +640,7 @@ export class ToggleDropDown extends Component {
|
|
|
638
640
|
isFetchingOptions: isFetchingOptions
|
|
639
641
|
}
|
|
640
642
|
},
|
|
643
|
+
dataId: `${dataId}_dropbox`,
|
|
641
644
|
...DropBoxProps,
|
|
642
645
|
onClose: this.handleTogglePopup
|
|
643
646
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -656,6 +659,7 @@ export class ToggleDropDown extends Component {
|
|
|
656
659
|
} //search
|
|
657
660
|
// onKeyDown={this.handleKeyDown}
|
|
658
661
|
,
|
|
662
|
+
dataId: `${dataId}_search`,
|
|
659
663
|
a11y: {
|
|
660
664
|
role: 'combobox',
|
|
661
665
|
ariaOwns: ariaTitleId,
|
|
@@ -52,7 +52,8 @@ export default function UnableToProcessRequest(props) {
|
|
|
52
52
|
customClass: {
|
|
53
53
|
customButton: style.errorBtn
|
|
54
54
|
},
|
|
55
|
-
onClick: onButtonClick
|
|
55
|
+
onClick: onButtonClick,
|
|
56
|
+
dataId: `${dataId}_button`
|
|
56
57
|
}) : null));
|
|
57
58
|
}
|
|
58
59
|
UnableToProcessRequest.propTypes = propTypes;
|
|
@@ -18,31 +18,27 @@ const Subject = props => {
|
|
|
18
18
|
className,
|
|
19
19
|
isDotted,
|
|
20
20
|
children,
|
|
21
|
-
customProps
|
|
22
|
-
whiteSpace
|
|
21
|
+
customProps
|
|
23
22
|
} = props;
|
|
24
23
|
const {
|
|
25
24
|
LinkProps = {},
|
|
26
25
|
TextProps = {}
|
|
27
26
|
} = customProps;
|
|
28
|
-
const isTooltipWrap = whiteSpace === 'pre' || whiteSpace === 'preWrap';
|
|
29
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
30
28
|
urlName: urlName,
|
|
31
29
|
href: href,
|
|
32
30
|
urlData: urlData,
|
|
33
31
|
onClick: onClick,
|
|
34
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${
|
|
32
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
35
33
|
dataId: dataId,
|
|
36
34
|
title: text,
|
|
37
35
|
target: target,
|
|
38
|
-
"data-title-wrap": isTooltipWrap,
|
|
39
36
|
...LinkProps
|
|
40
37
|
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
41
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${
|
|
38
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
42
39
|
"data-title": text,
|
|
43
40
|
"data-id": dataId,
|
|
44
41
|
"data-test-id": dataId,
|
|
45
|
-
"data-title-wrap": isTooltipWrap,
|
|
46
42
|
...TextProps
|
|
47
43
|
}, text));
|
|
48
44
|
};
|
|
@@ -165,7 +165,8 @@ function StatusDropdown(props) {
|
|
|
165
165
|
className: `${style.value} toggleDropText`,
|
|
166
166
|
shrink: true,
|
|
167
167
|
tagName: "span",
|
|
168
|
-
"data-title": dataTitle
|
|
168
|
+
"data-title": dataTitle,
|
|
169
|
+
dataId: `${dataId}_value`
|
|
169
170
|
}, value), isEditable ? /*#__PURE__*/React.createElement(Icon, {
|
|
170
171
|
"aria-hidden": true,
|
|
171
172
|
size: "7",
|
|
@@ -198,6 +199,7 @@ function StatusDropdown(props) {
|
|
|
198
199
|
isResponsivePadding: true,
|
|
199
200
|
needFocusScope: true,
|
|
200
201
|
onClose: handleTogglePopup,
|
|
202
|
+
dataId: `${dataId}_dropbox`,
|
|
201
203
|
customProps: {
|
|
202
204
|
focusScopeProps: {
|
|
203
205
|
searchValue: searchString,
|
|
@@ -224,7 +226,8 @@ function StatusDropdown(props) {
|
|
|
224
226
|
role: 'combobox',
|
|
225
227
|
ariaActivedescendant: isPopupReady ? value : '',
|
|
226
228
|
ariaOwns: ariaTitleId
|
|
227
|
-
}
|
|
229
|
+
},
|
|
230
|
+
dataId: `${dataId}_search`
|
|
228
231
|
})) : null, title && optionsList.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
229
232
|
className: style.title
|
|
230
233
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
@@ -69,7 +69,8 @@ class DropDown extends SelectComponent {
|
|
|
69
69
|
searchBoxSize,
|
|
70
70
|
searchBoxVariant,
|
|
71
71
|
searchBoxPlaceHolder,
|
|
72
|
-
maxLength
|
|
72
|
+
maxLength,
|
|
73
|
+
dataId
|
|
73
74
|
} = this.props;
|
|
74
75
|
const {
|
|
75
76
|
hoverIndex,
|
|
@@ -80,7 +81,9 @@ class DropDown extends SelectComponent {
|
|
|
80
81
|
} = this.state;
|
|
81
82
|
const suggestions = this.handleFilterSuggestions();
|
|
82
83
|
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
className: style.container
|
|
84
|
+
className: style.container,
|
|
85
|
+
"data-id": dataId,
|
|
86
|
+
"data-test-id": dataId
|
|
84
87
|
}, /*#__PURE__*/React.createElement("div", {
|
|
85
88
|
onClick: this.togglePopup,
|
|
86
89
|
ref: getTargetRef
|
|
@@ -88,11 +91,14 @@ class DropDown extends SelectComponent {
|
|
|
88
91
|
className: `${style.labelCnt} ${isPopupOpen ? style.focused : ''}`
|
|
89
92
|
}, /*#__PURE__*/React.createElement("span", {
|
|
90
93
|
className: style.labelText,
|
|
91
|
-
"data-title": selected
|
|
94
|
+
"data-title": selected,
|
|
95
|
+
"data-id": `${dataId}_selectedValue`,
|
|
96
|
+
"data-test-id": `${dataId}_selectedValue`
|
|
92
97
|
}, selected), /*#__PURE__*/React.createElement(Icon, {
|
|
93
98
|
name: "ZD-down",
|
|
94
99
|
size: "7",
|
|
95
|
-
iconClass: style.arrowIcon
|
|
100
|
+
iconClass: style.arrowIcon,
|
|
101
|
+
dataId: `${dataId}_icon`
|
|
96
102
|
}))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
97
103
|
query: this.responsiveFunc,
|
|
98
104
|
responsiveId: "Helmet"
|
|
@@ -110,7 +116,8 @@ class DropDown extends SelectComponent {
|
|
|
110
116
|
animationStyle: animationStyle,
|
|
111
117
|
size: "large",
|
|
112
118
|
alignBox: "row",
|
|
113
|
-
isResponsivePadding: true
|
|
119
|
+
isResponsivePadding: true,
|
|
120
|
+
dataId: `${dataId}_dropbox`
|
|
114
121
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
115
122
|
flexible: true
|
|
116
123
|
}, /*#__PURE__*/React.createElement(Card, null, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(DropDownSearch, {
|
|
@@ -121,13 +128,15 @@ class DropDown extends SelectComponent {
|
|
|
121
128
|
size: searchBoxSize,
|
|
122
129
|
variant: searchBoxVariant,
|
|
123
130
|
placeHolder: searchBoxPlaceHolder,
|
|
124
|
-
maxLength: maxLength
|
|
131
|
+
maxLength: maxLength,
|
|
132
|
+
dataId: `${dataId}_search`
|
|
125
133
|
})) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
126
134
|
shrink: true,
|
|
127
135
|
eleRef: this.suggestionContainerRef,
|
|
128
136
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
129
137
|
}, suggestions.length ? /*#__PURE__*/React.createElement("div", {
|
|
130
|
-
className: style.listItemContainer
|
|
138
|
+
className: style.listItemContainer,
|
|
139
|
+
"data-id": `${dataId}_Options`
|
|
131
140
|
}, suggestions.map(function () {
|
|
132
141
|
let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
133
142
|
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -13,7 +13,8 @@ export default function Search(props) {
|
|
|
13
13
|
onKeyPress,
|
|
14
14
|
onFocus,
|
|
15
15
|
onBlur,
|
|
16
|
-
customClass
|
|
16
|
+
customClass,
|
|
17
|
+
dataId
|
|
17
18
|
} = props;
|
|
18
19
|
let [isFocus, setIsFocus] = useState(false);
|
|
19
20
|
let [resetValue] = useState(value || '');
|
|
@@ -32,7 +33,9 @@ export default function Search(props) {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}
|
|
36
|
+
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`,
|
|
37
|
+
"data-id": `${dataId}_search`,
|
|
38
|
+
"data-test-id": `${dataId}_search`
|
|
36
39
|
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
37
40
|
placeHolder: placeHolder,
|
|
38
41
|
customClass: style.input,
|
|
@@ -45,7 +48,9 @@ export default function Search(props) {
|
|
|
45
48
|
onBlur: handleBlur
|
|
46
49
|
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
47
50
|
className: style.icon,
|
|
48
|
-
onClick: handleBlur
|
|
51
|
+
onClick: handleBlur,
|
|
52
|
+
"data-id": `${dataId}_clear`,
|
|
53
|
+
"data-test-id": `${dataId}_clear`
|
|
49
54
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
50
55
|
name: "ZD-close",
|
|
51
56
|
size: "19"
|
|
@@ -122,7 +122,8 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
122
122
|
onMouseEnter: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
123
123
|
onMouseLeave: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
124
124
|
eleRef: getTargetRef,
|
|
125
|
-
dataSelectorId: dataSelectorId
|
|
125
|
+
dataSelectorId: dataSelectorId,
|
|
126
|
+
dataId: "".concat(dataId, "_actionButton")
|
|
126
127
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
127
128
|
flexible: true
|
|
128
129
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
@@ -188,7 +189,8 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
188
189
|
getRef: getContainerRef,
|
|
189
190
|
popupGroup: popupGroup,
|
|
190
191
|
needFocusScope: true,
|
|
191
|
-
onClose: this.handleTogglePopup
|
|
192
|
+
onClose: this.handleTogglePopup,
|
|
193
|
+
dataId: "".concat(dataId, "_dropbox")
|
|
192
194
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
193
195
|
flexible: true,
|
|
194
196
|
shrink: true,
|
|
@@ -4,9 +4,9 @@ exports[`ActionButton rendering the defult props 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="container primaryFilledBox medium wholeDiv flex rowdir"
|
|
7
|
-
data-id="
|
|
7
|
+
data-id="actionButton_actionButton"
|
|
8
8
|
data-selector-id="actionButton"
|
|
9
|
-
data-test-id="
|
|
9
|
+
data-test-id="actionButton_actionButton"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
12
|
class="buttonReset contentBox primaryFilledBtn medium_btnBox contentBoxBdrRds clickable grow basis shrinkOff"
|
|
@@ -121,7 +121,8 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
121
121
|
href: downloadLink,
|
|
122
122
|
className: _AttachmentModule["default"].attachDownload,
|
|
123
123
|
title: downloadTitle,
|
|
124
|
-
hasReload: true
|
|
124
|
+
hasReload: true,
|
|
125
|
+
dataId: "".concat(dataId, "_download")
|
|
125
126
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
126
127
|
name: "ZD-downloadNew",
|
|
127
128
|
iconClass: _AttachmentModule["default"].downIcon
|
|
@@ -298,7 +298,9 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
298
298
|
dataList = _this$state2.dataList,
|
|
299
299
|
selectedIndex = _this$state2.selectedIndex,
|
|
300
300
|
isZoomed = _this$state2.isZoomed;
|
|
301
|
-
var
|
|
301
|
+
var _this$props = this.props,
|
|
302
|
+
maintainZoom = _this$props.maintainZoom,
|
|
303
|
+
dataId = _this$props.dataId;
|
|
302
304
|
|
|
303
305
|
var getImgStyle = function getImgStyle(i) {
|
|
304
306
|
var position;
|
|
@@ -342,7 +344,9 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
342
344
|
}, (0, _Attachment.isAudioFile)(data.name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("video", {
|
|
343
345
|
autoPlay: true,
|
|
344
346
|
controls: true,
|
|
345
|
-
className: _AttachmentViewerModule["default"].zoomIn
|
|
347
|
+
className: _AttachmentViewerModule["default"].zoomIn,
|
|
348
|
+
"data-id": "".concat(dataId, "_videoPreview"),
|
|
349
|
+
"data-test-id": "".concat(dataId, "_videoPreview")
|
|
346
350
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
347
351
|
src: data.viewUrl,
|
|
348
352
|
type: "audio/".concat((0, _Attachment.getExtensionFromFileName)(data.name))
|
|
@@ -370,11 +374,12 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
370
374
|
selectedIndex = _this$state3.selectedIndex,
|
|
371
375
|
data = _this$state3.data,
|
|
372
376
|
isZoomed = _this$state3.isZoomed;
|
|
373
|
-
var _this$
|
|
374
|
-
responsiveId = _this$
|
|
375
|
-
needDownload = _this$
|
|
376
|
-
i18nKeys = _this$
|
|
377
|
-
isActive = _this$
|
|
377
|
+
var _this$props2 = this.props,
|
|
378
|
+
responsiveId = _this$props2.responsiveId,
|
|
379
|
+
needDownload = _this$props2.needDownload,
|
|
380
|
+
i18nKeys = _this$props2.i18nKeys,
|
|
381
|
+
isActive = _this$props2.isActive,
|
|
382
|
+
dataId = _this$props2.dataId;
|
|
378
383
|
var totalLen = data.length;
|
|
379
384
|
var selectedAttachment = data[selectedIndex] || {};
|
|
380
385
|
var selectedImgUrl = selectedAttachment.viewUrl;
|
|
@@ -479,7 +484,8 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
479
484
|
target: "_parent",
|
|
480
485
|
hasReload: true,
|
|
481
486
|
download: true,
|
|
482
|
-
title: i18nKeys.downloadText
|
|
487
|
+
title: i18nKeys.downloadText,
|
|
488
|
+
dataId: "".concat(dataId, "_downloadAttach")
|
|
483
489
|
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
484
490
|
iconName: "ZD-GN-download",
|
|
485
491
|
className: _AttachmentViewerModule["default"].menuIcon,
|
|
@@ -546,13 +552,15 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
546
552
|
dataId: "rightAttachNav",
|
|
547
553
|
isBold: true
|
|
548
554
|
}))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
549
|
-
className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " ")
|
|
555
|
+
className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " "),
|
|
556
|
+
dataId: "".concat(dataId, "_attachPreviewFooter")
|
|
550
557
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
551
558
|
align: "vertical",
|
|
552
559
|
alignBox: "row",
|
|
553
560
|
className: _AttachmentViewerModule["default"].footerHeight
|
|
554
561
|
}, author && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
555
|
-
className: _AttachmentViewerModule["default"].author
|
|
562
|
+
className: _AttachmentViewerModule["default"].author,
|
|
563
|
+
dataId: "".concat(dataId, "_authorName")
|
|
556
564
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
557
565
|
alignBox: "row",
|
|
558
566
|
align: "both"
|
|
@@ -123,6 +123,8 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
123
123
|
>
|
|
124
124
|
<a
|
|
125
125
|
class="container "
|
|
126
|
+
data-id="AttachmentViewer_downloadAttach"
|
|
127
|
+
data-test-id="AttachmentViewer_downloadAttach"
|
|
126
128
|
download=""
|
|
127
129
|
href="https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG"
|
|
128
130
|
rel="noopener noreferrer"
|
|
@@ -274,9 +276,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
274
276
|
</div>
|
|
275
277
|
<div
|
|
276
278
|
class="footer footerHeight shrinkOff"
|
|
277
|
-
data-id="
|
|
279
|
+
data-id="AttachmentViewer_attachPreviewFooter"
|
|
278
280
|
data-selector-id="box"
|
|
279
|
-
data-test-id="
|
|
281
|
+
data-test-id="AttachmentViewer_attachPreviewFooter"
|
|
280
282
|
>
|
|
281
283
|
<div
|
|
282
284
|
class="footerHeight flex cover rowdir vCenter"
|