@zohodesk/dot 1.0.0-temp-191 → 1.0.0-temp-189.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 +2 -4
- package/es/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2 -2
- package/es/Attachment/Attachment.js +1 -2
- package/es/AttachmentViewer/AttachmentViewer.js +6 -13
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +2 -4
- package/es/AttachmentViewer/props/defaultProps.js +1 -2
- package/es/AttachmentViewer/props/propTypes.js +1 -2
- package/es/ChannelIcon/ChannelIcon.js +0 -1
- package/es/MessageBanner/MessageBanner.js +3 -5
- package/es/alert/AlertHeader/AlertHeader.js +1 -2
- package/es/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +2 -2
- package/es/avatar/AvatarClose/AvatarClose.js +2 -7
- package/es/avatar/AvatarClose/__tests__/__snapshots__/AvatarClose.spec.js.snap +0 -2
- package/es/avatar/AvatarClose/props/defaultProps.js +1 -2
- package/es/avatar/AvatarClose/props/propTypes.js +1 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +0 -2
- package/es/list/Subject/Subject.js +7 -3
- package/es/list/Subject/Subject.module.css +20 -0
- package/es/list/Subject/__tests__/Subject.spec.js +9 -0
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +38 -1
- package/es/list/Subject/props/defaultProps.js +2 -1
- package/es/list/Subject/props/propTypes.js +2 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +5 -11
- package/es/lookup/header/ViewDropDown/__test__/__snapshots__/ViewDropDown.spec.js.snap +0 -2
- package/es/lookup/header/ViewDropDown/props/defaultProps.js +1 -2
- package/es/lookup/header/ViewDropDown/props/propTypes.js +0 -1
- package/es/setup/header/Search/Search.js +3 -8
- package/es/setup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +0 -2
- package/es/setup/header/Search/props/defaultProps.js +1 -2
- package/es/setup/header/Search/props/propTypes.js +1 -2
- package/es/v1/ActionButton/ActionButton.js +2 -4
- package/es/v1/Attachment/Attachment.js +1 -2
- package/es/v1/AttachmentViewer/AttachmentViewer.js +6 -13
- package/es/v1/AttachmentViewer/props/defaultProps.js +1 -2
- package/es/v1/AttachmentViewer/props/propTypes.js +1 -2
- package/es/v1/ChannelIcon/ChannelIcon.js +0 -1
- package/es/v1/MessageBanner/MessageBanner.js +2 -4
- package/es/v1/alert/AlertHeader/AlertHeader.js +1 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +2 -7
- package/es/v1/avatar/AvatarClose/props/defaultProps.js +1 -2
- package/es/v1/avatar/AvatarClose/props/propTypes.js +1 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -2
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +1 -2
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -2
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -2
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -2
- package/es/v1/list/Subject/Subject.js +7 -3
- package/es/v1/list/Subject/props/defaultProps.js +2 -1
- package/es/v1/list/Subject/props/propTypes.js +2 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +5 -11
- package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +1 -2
- package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -1
- package/es/v1/setup/header/Search/Search.js +3 -8
- package/es/v1/setup/header/Search/props/defaultProps.js +1 -2
- package/es/v1/setup/header/Search/props/propTypes.js +1 -2
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +1 -2
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -2
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -2
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -2
- package/lib/ActionButton/ActionButton.js +2 -4
- package/lib/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2 -2
- package/lib/Attachment/Attachment.js +1 -2
- package/lib/AttachmentViewer/AttachmentViewer.js +10 -18
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +2 -4
- package/lib/AttachmentViewer/props/defaultProps.js +1 -2
- package/lib/AttachmentViewer/props/propTypes.js +1 -2
- package/lib/ChannelIcon/ChannelIcon.js +0 -1
- package/lib/MessageBanner/MessageBanner.js +3 -5
- package/lib/alert/AlertHeader/AlertHeader.js +1 -2
- package/lib/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +2 -2
- package/lib/avatar/AvatarClose/AvatarClose.js +3 -8
- package/lib/avatar/AvatarClose/__tests__/__snapshots__/AvatarClose.spec.js.snap +0 -2
- package/lib/avatar/AvatarClose/props/defaultProps.js +1 -2
- package/lib/avatar/AvatarClose/props/propTypes.js +1 -2
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +1 -3
- package/lib/list/Subject/Subject.js +9 -5
- package/lib/list/Subject/Subject.module.css +20 -0
- package/lib/list/Subject/__tests__/Subject.spec.js +9 -0
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +38 -1
- package/lib/list/Subject/props/defaultProps.js +2 -1
- package/lib/list/Subject/props/propTypes.js +2 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +5 -11
- package/lib/lookup/header/ViewDropDown/__test__/__snapshots__/ViewDropDown.spec.js.snap +0 -2
- package/lib/lookup/header/ViewDropDown/props/defaultProps.js +1 -2
- package/lib/lookup/header/ViewDropDown/props/propTypes.js +0 -1
- package/lib/setup/header/Search/Search.js +3 -8
- package/lib/setup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +0 -2
- package/lib/setup/header/Search/props/defaultProps.js +1 -2
- package/lib/setup/header/Search/props/propTypes.js +1 -2
- package/lib/v1/ActionButton/ActionButton.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -2
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +10 -18
- package/lib/v1/AttachmentViewer/props/defaultProps.js +1 -2
- package/lib/v1/AttachmentViewer/props/propTypes.js +1 -2
- package/lib/v1/ChannelIcon/ChannelIcon.js +0 -1
- package/lib/v1/MessageBanner/MessageBanner.js +2 -4
- package/lib/v1/alert/AlertHeader/AlertHeader.js +1 -2
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +3 -8
- package/lib/v1/avatar/AvatarClose/props/defaultProps.js +1 -2
- package/lib/v1/avatar/AvatarClose/props/propTypes.js +1 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +1 -3
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +1 -2
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -2
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -2
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -2
- package/lib/v1/list/Subject/Subject.js +9 -5
- package/lib/v1/list/Subject/props/defaultProps.js +2 -1
- package/lib/v1/list/Subject/props/propTypes.js +2 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +5 -11
- package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +1 -2
- package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -1
- package/lib/v1/setup/header/Search/Search.js +3 -8
- package/lib/v1/setup/header/Search/props/defaultProps.js +1 -2
- package/lib/v1/setup/header/Search/props/propTypes.js +1 -2
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -2
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -2
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -2
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -2
- package/package.json +3 -3
- package/result.json +1 -1
- package/unittest/index.html +18 -2
|
@@ -70,8 +70,7 @@ export class ActionButton extends React.Component {
|
|
|
70
70
|
onMouseEnter: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
71
71
|
onMouseLeave: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
72
72
|
eleRef: getTargetRef,
|
|
73
|
-
dataSelectorId: dataSelectorId
|
|
74
|
-
dataId: `${dataId}_actionButton`
|
|
73
|
+
dataSelectorId: dataSelectorId
|
|
75
74
|
}, isLoading ? /*#__PURE__*/React.createElement(Box, {
|
|
76
75
|
flexible: true
|
|
77
76
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -137,8 +136,7 @@ export class ActionButton extends React.Component {
|
|
|
137
136
|
getRef: getContainerRef,
|
|
138
137
|
popupGroup: popupGroup,
|
|
139
138
|
needFocusScope: true,
|
|
140
|
-
onClose: this.handleTogglePopup
|
|
141
|
-
dataId: `${dataId}_dropbox`
|
|
139
|
+
onClose: this.handleTogglePopup
|
|
142
140
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
143
141
|
flexible: true,
|
|
144
142
|
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="containerComponent"
|
|
8
8
|
data-selector-id="actionButton"
|
|
9
|
-
data-test-id="
|
|
9
|
+
data-test-id="containerComponent"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
12
|
class="buttonReset contentBox primaryFilledBtn medium_btnBox contentBoxBdrRds clickable grow basis shrinkOff"
|
|
@@ -73,8 +73,7 @@ export default class Attachment extends React.Component {
|
|
|
73
73
|
href: downloadLink,
|
|
74
74
|
className: style.attachDownload,
|
|
75
75
|
title: downloadTitle,
|
|
76
|
-
hasReload: true
|
|
77
|
-
dataId: `${dataId}_download`
|
|
76
|
+
hasReload: true
|
|
78
77
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
79
78
|
name: "ZD-downloadNew",
|
|
80
79
|
iconClass: style.downIcon
|
|
@@ -220,8 +220,7 @@ export default class AttachmentViewer extends Component {
|
|
|
220
220
|
isZoomed
|
|
221
221
|
} = this.state;
|
|
222
222
|
const {
|
|
223
|
-
maintainZoom
|
|
224
|
-
dataId
|
|
223
|
+
maintainZoom
|
|
225
224
|
} = this.props;
|
|
226
225
|
|
|
227
226
|
const getImgStyle = i => {
|
|
@@ -266,9 +265,7 @@ export default class AttachmentViewer extends Component {
|
|
|
266
265
|
}, isAudioFile(data.name) ? selectedIndex == i ? /*#__PURE__*/React.createElement("video", {
|
|
267
266
|
autoPlay: true,
|
|
268
267
|
controls: true,
|
|
269
|
-
className: style.zoomIn
|
|
270
|
-
"data-id": `${dataId}_videoPreview`,
|
|
271
|
-
"data-test-id": `${dataId}_videoPreview`
|
|
268
|
+
className: style.zoomIn
|
|
272
269
|
}, /*#__PURE__*/React.createElement("source", {
|
|
273
270
|
src: data.viewUrl,
|
|
274
271
|
type: `audio/${getExtensionFromFileName(data.name)}`
|
|
@@ -298,8 +295,7 @@ export default class AttachmentViewer extends Component {
|
|
|
298
295
|
responsiveId,
|
|
299
296
|
needDownload,
|
|
300
297
|
i18nKeys,
|
|
301
|
-
isActive
|
|
302
|
-
dataId
|
|
298
|
+
isActive
|
|
303
299
|
} = this.props;
|
|
304
300
|
const totalLen = data.length;
|
|
305
301
|
const selectedAttachment = data[selectedIndex] || {};
|
|
@@ -405,8 +401,7 @@ export default class AttachmentViewer extends Component {
|
|
|
405
401
|
target: "_parent",
|
|
406
402
|
hasReload: true,
|
|
407
403
|
download: true,
|
|
408
|
-
title: i18nKeys.downloadText
|
|
409
|
-
dataId: `${dataId}_downloadAttach`
|
|
404
|
+
title: i18nKeys.downloadText
|
|
410
405
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
411
406
|
iconName: "ZD-GN-download",
|
|
412
407
|
className: style.menuIcon,
|
|
@@ -473,15 +468,13 @@ export default class AttachmentViewer extends Component {
|
|
|
473
468
|
dataId: "rightAttachNav",
|
|
474
469
|
isBold: true
|
|
475
470
|
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
476
|
-
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide}
|
|
477
|
-
dataId: `${dataId}_attachPreviewFooter`
|
|
471
|
+
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide} `
|
|
478
472
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
479
473
|
align: "vertical",
|
|
480
474
|
alignBox: "row",
|
|
481
475
|
className: style.footerHeight
|
|
482
476
|
}, author && /*#__PURE__*/React.createElement(Box, {
|
|
483
|
-
className: style.author
|
|
484
|
-
dataId: `${dataId}_authorName`
|
|
477
|
+
className: style.author
|
|
485
478
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
486
479
|
alignBox: "row",
|
|
487
480
|
align: "both"
|
|
@@ -123,8 +123,6 @@ 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"
|
|
128
126
|
download=""
|
|
129
127
|
href="https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG"
|
|
130
128
|
rel="noopener noreferrer"
|
|
@@ -276,9 +274,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
276
274
|
</div>
|
|
277
275
|
<div
|
|
278
276
|
class="footer footerHeight shrinkOff"
|
|
279
|
-
data-id="
|
|
277
|
+
data-id="boxComponent"
|
|
280
278
|
data-selector-id="box"
|
|
281
|
-
data-test-id="
|
|
279
|
+
data-test-id="boxComponent"
|
|
282
280
|
>
|
|
283
281
|
<div
|
|
284
282
|
class="footerHeight flex cover rowdir vCenter"
|
|
@@ -40,12 +40,10 @@ export default class MessageBanner extends React.Component {
|
|
|
40
40
|
href: href,
|
|
41
41
|
onClick: onClick,
|
|
42
42
|
className: style.link,
|
|
43
|
-
target: "_blank"
|
|
44
|
-
dataId: `${dataId}_link`
|
|
43
|
+
target: "_blank"
|
|
45
44
|
}, urlText)))), onClose ? /*#__PURE__*/React.createElement(Box, {
|
|
46
|
-
className: style.
|
|
47
|
-
onClick: onClose
|
|
48
|
-
dataId: `${dataId}_close`
|
|
45
|
+
className: style.close,
|
|
46
|
+
onClick: onClose
|
|
49
47
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
50
48
|
align: "both"
|
|
51
49
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -34,8 +34,7 @@ export default class AlertHeader extends Component {
|
|
|
34
34
|
alignBox: "row",
|
|
35
35
|
className: `${style.container} ${style[palette]}`,
|
|
36
36
|
isCover: false,
|
|
37
|
-
wrap: "wrap"
|
|
38
|
-
dataId: `${dataId}_alertHeader`
|
|
37
|
+
wrap: "wrap"
|
|
39
38
|
}, needIcon ? /*#__PURE__*/React.createElement("div", {
|
|
40
39
|
className: style.iconContainer
|
|
41
40
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -4,9 +4,9 @@ exports[`AlertHeader rendering the defult props 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="container danger flex rowdir wrap vCenter"
|
|
7
|
-
data-id="
|
|
7
|
+
data-id="containerComponent"
|
|
8
8
|
data-selector-id="container"
|
|
9
|
-
data-test-id="
|
|
9
|
+
data-test-id="containerComponent"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
12
|
class="iconContainer"
|
|
@@ -18,8 +18,7 @@ export default class AvatarClose extends React.Component {
|
|
|
18
18
|
isClose,
|
|
19
19
|
onClick,
|
|
20
20
|
customProps,
|
|
21
|
-
dataSelectorId
|
|
22
|
-
dataId
|
|
21
|
+
dataSelectorId
|
|
23
22
|
} = this.props;
|
|
24
23
|
let {
|
|
25
24
|
AvatarCloseProps = {},
|
|
@@ -28,8 +27,6 @@ export default class AvatarClose extends React.Component {
|
|
|
28
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
28
|
className: style.container,
|
|
30
29
|
"data-selector-id": dataSelectorId,
|
|
31
|
-
"data-id": dataId,
|
|
32
|
-
"data-test-id": dataId,
|
|
33
30
|
...AvatarCloseProps
|
|
34
31
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
35
32
|
src: src,
|
|
@@ -39,9 +36,7 @@ export default class AvatarClose extends React.Component {
|
|
|
39
36
|
...AvatarProps
|
|
40
37
|
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
41
38
|
className: style.pop,
|
|
42
|
-
onClick: onClick
|
|
43
|
-
"data-id": `${dataId}_close`,
|
|
44
|
-
"data-test-id": `${dataId}_close`
|
|
39
|
+
onClick: onClick
|
|
45
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
46
41
|
className: style.icon
|
|
47
42
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -638,7 +638,6 @@ export class ToggleDropDown extends Component {
|
|
|
638
638
|
isFetchingOptions: isFetchingOptions
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
|
-
dataId: `${dataId}_dropbox`,
|
|
642
641
|
...DropBoxProps,
|
|
643
642
|
onClose: this.handleTogglePopup
|
|
644
643
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -657,7 +656,6 @@ export class ToggleDropDown extends Component {
|
|
|
657
656
|
} //search
|
|
658
657
|
// onKeyDown={this.handleKeyDown}
|
|
659
658
|
,
|
|
660
|
-
dataId: `${dataId}_search`,
|
|
661
659
|
a11y: {
|
|
662
660
|
role: 'combobox',
|
|
663
661
|
ariaOwns: ariaTitleId,
|
|
@@ -22,27 +22,31 @@ export default class Subject extends Component {
|
|
|
22
22
|
className,
|
|
23
23
|
isDotted,
|
|
24
24
|
children,
|
|
25
|
-
customProps
|
|
25
|
+
customProps,
|
|
26
|
+
whiteSpace
|
|
26
27
|
} = this.props;
|
|
27
28
|
let {
|
|
28
29
|
LinkProps = {},
|
|
29
30
|
TextProps = {}
|
|
30
31
|
} = customProps;
|
|
32
|
+
const isTooltipWrap = whiteSpace === 'pre' || whiteSpace === 'preWrap';
|
|
31
33
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
32
34
|
urlName: urlName,
|
|
33
35
|
href: href,
|
|
34
36
|
urlData: urlData,
|
|
35
37
|
onClick: onClick,
|
|
36
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
38
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${style[`whiteSpace_${whiteSpace}`]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
37
39
|
dataId: dataId,
|
|
38
40
|
title: text,
|
|
39
41
|
target: target,
|
|
42
|
+
"data-title-wrap": isTooltipWrap,
|
|
40
43
|
...LinkProps
|
|
41
44
|
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
42
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
45
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${style[`whiteSpace_${whiteSpace}`]} ${className} ${style[`font_${fontWeight}`]}`,
|
|
43
46
|
"data-title": text,
|
|
44
47
|
"data-id": dataId,
|
|
45
48
|
"data-test-id": dataId,
|
|
49
|
+
"data-title-wrap": isTooltipWrap,
|
|
46
50
|
...TextProps
|
|
47
51
|
}, text));
|
|
48
52
|
}
|
|
@@ -32,4 +32,24 @@
|
|
|
32
32
|
|
|
33
33
|
.cursorPointer {
|
|
34
34
|
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.whiteSpace_normal {
|
|
38
|
+
white-space: normal;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.whiteSpace_noWrap {
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.whiteSpace_pre {
|
|
46
|
+
white-space: pre;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.whiteSpace_preLine {
|
|
50
|
+
white-space: pre-line;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.whiteSpace_preWrap {
|
|
54
|
+
white-space: pre-wrap;
|
|
35
55
|
}
|
|
@@ -8,4 +8,13 @@ describe('Subject', () => {
|
|
|
8
8
|
} = render( /*#__PURE__*/React.createElement(Subject, null));
|
|
9
9
|
expect(asFragment()).toMatchSnapshot();
|
|
10
10
|
});
|
|
11
|
+
const whiteSpace = ['normal', 'noWrap', 'preLine', 'preWrap'];
|
|
12
|
+
test.each(whiteSpace)('rendering the whiteSpace of -%s', whiteSpace => {
|
|
13
|
+
const {
|
|
14
|
+
asFragment
|
|
15
|
+
} = render( /*#__PURE__*/React.createElement(Subject, {
|
|
16
|
+
whiteSpace: whiteSpace
|
|
17
|
+
}));
|
|
18
|
+
expect(asFragment()).toMatchSnapshot();
|
|
19
|
+
});
|
|
11
20
|
});
|
|
@@ -3,7 +3,44 @@
|
|
|
3
3
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<span
|
|
6
|
-
class="subject dotted font_regular"
|
|
6
|
+
class="subject dotted whiteSpace_pre font_regular"
|
|
7
|
+
data-title-wrap="true"
|
|
8
|
+
/>
|
|
9
|
+
</DocumentFragment>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
exports[`Subject rendering the whiteSpace of -noWrap 1`] = `
|
|
13
|
+
<DocumentFragment>
|
|
14
|
+
<span
|
|
15
|
+
class="subject dotted whiteSpace_noWrap font_regular"
|
|
16
|
+
data-title-wrap="false"
|
|
17
|
+
/>
|
|
18
|
+
</DocumentFragment>
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
22
|
+
<DocumentFragment>
|
|
23
|
+
<span
|
|
24
|
+
class="subject dotted whiteSpace_normal font_regular"
|
|
25
|
+
data-title-wrap="false"
|
|
26
|
+
/>
|
|
27
|
+
</DocumentFragment>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`Subject rendering the whiteSpace of -preLine 1`] = `
|
|
31
|
+
<DocumentFragment>
|
|
32
|
+
<span
|
|
33
|
+
class="subject dotted whiteSpace_preLine font_regular"
|
|
34
|
+
data-title-wrap="false"
|
|
35
|
+
/>
|
|
36
|
+
</DocumentFragment>
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`Subject rendering the whiteSpace of -preWrap 1`] = `
|
|
40
|
+
<DocumentFragment>
|
|
41
|
+
<span
|
|
42
|
+
class="subject dotted whiteSpace_preWrap font_regular"
|
|
43
|
+
data-title-wrap="true"
|
|
7
44
|
/>
|
|
8
45
|
</DocumentFragment>
|
|
9
46
|
`;
|
|
@@ -242,7 +242,6 @@ export class StatusDropdown extends React.Component {
|
|
|
242
242
|
isResponsivePadding: true,
|
|
243
243
|
needFocusScope: true,
|
|
244
244
|
onClose: this.handleTogglePopup,
|
|
245
|
-
dataId: `${dataId}_dropbox`,
|
|
246
245
|
customProps: {
|
|
247
246
|
focusScopeProps: {
|
|
248
247
|
loadNextOptions: getNextOptions,
|
|
@@ -269,8 +268,7 @@ export class StatusDropdown extends React.Component {
|
|
|
269
268
|
role: 'combobox',
|
|
270
269
|
ariaActivedescendant: isPopupReady ? value : '',
|
|
271
270
|
ariaOwns: ariaTitleId
|
|
272
|
-
}
|
|
273
|
-
dataId: `${dataId}_search`
|
|
271
|
+
}
|
|
274
272
|
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
275
273
|
className: style.title
|
|
276
274
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
@@ -69,8 +69,7 @@ class DropDown extends SelectComponent {
|
|
|
69
69
|
searchBoxSize,
|
|
70
70
|
searchBoxVariant,
|
|
71
71
|
searchBoxPlaceHolder,
|
|
72
|
-
maxLength
|
|
73
|
-
dataId
|
|
72
|
+
maxLength
|
|
74
73
|
} = this.props;
|
|
75
74
|
const {
|
|
76
75
|
hoverIndex,
|
|
@@ -81,9 +80,7 @@ class DropDown extends SelectComponent {
|
|
|
81
80
|
} = this.state;
|
|
82
81
|
const suggestions = this.handleFilterSuggestions();
|
|
83
82
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
|
-
className: style.container
|
|
85
|
-
"data-id": dataId,
|
|
86
|
-
"data-test-id": dataId
|
|
83
|
+
className: style.container
|
|
87
84
|
}, /*#__PURE__*/React.createElement("div", {
|
|
88
85
|
onClick: this.togglePopup,
|
|
89
86
|
ref: getTargetRef
|
|
@@ -113,8 +110,7 @@ class DropDown extends SelectComponent {
|
|
|
113
110
|
animationStyle: animationStyle,
|
|
114
111
|
size: "large",
|
|
115
112
|
alignBox: "row",
|
|
116
|
-
isResponsivePadding: true
|
|
117
|
-
dataId: `${dataId}_dropbox`
|
|
113
|
+
isResponsivePadding: true
|
|
118
114
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
119
115
|
flexible: true
|
|
120
116
|
}, /*#__PURE__*/React.createElement(Card, null, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(DropDownSearch, {
|
|
@@ -125,15 +121,13 @@ class DropDown extends SelectComponent {
|
|
|
125
121
|
size: searchBoxSize,
|
|
126
122
|
variant: searchBoxVariant,
|
|
127
123
|
placeHolder: searchBoxPlaceHolder,
|
|
128
|
-
maxLength: maxLength
|
|
129
|
-
dataId: `${dataId}_search`
|
|
124
|
+
maxLength: maxLength
|
|
130
125
|
})) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
131
126
|
shrink: true,
|
|
132
127
|
eleRef: this.suggestionContainerRef,
|
|
133
128
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
134
129
|
}, suggestions.length ? /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
className: style.listItemContainer
|
|
136
|
-
"data-id": `${dataId}_Options`
|
|
130
|
+
className: style.listItemContainer
|
|
137
131
|
}, suggestions.map(function () {
|
|
138
132
|
let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
139
133
|
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -45,16 +45,13 @@ export default class Search extends React.Component {
|
|
|
45
45
|
value,
|
|
46
46
|
onChange,
|
|
47
47
|
onKeyPress,
|
|
48
|
-
customClass
|
|
49
|
-
dataId
|
|
48
|
+
customClass
|
|
50
49
|
} = this.props;
|
|
51
50
|
let {
|
|
52
51
|
isFocus
|
|
53
52
|
} = this.state;
|
|
54
53
|
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
-
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}
|
|
56
|
-
"data-id": `${dataId}_search`,
|
|
57
|
-
"data-test-id": `${dataId}_search`
|
|
54
|
+
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
|
|
58
55
|
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
59
56
|
placeHolder: placeHolder,
|
|
60
57
|
customClass: style.input,
|
|
@@ -67,9 +64,7 @@ export default class Search extends React.Component {
|
|
|
67
64
|
onBlur: this.onBlur
|
|
68
65
|
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
69
66
|
className: style.icon,
|
|
70
|
-
onClick: this.onBlur
|
|
71
|
-
"data-id": `${dataId}_clear`,
|
|
72
|
-
"data-test-id": `${dataId}_clear`
|
|
67
|
+
onClick: this.onBlur
|
|
73
68
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
74
69
|
name: "ZD-close",
|
|
75
70
|
size: "19"
|
|
@@ -60,8 +60,7 @@ function ActionButton(props) {
|
|
|
60
60
|
onMouseEnter: !onClick ? onHover && handleTogglePopup : undefined,
|
|
61
61
|
onMouseLeave: !onClick ? onHover && handleTogglePopup : undefined,
|
|
62
62
|
eleRef: getTargetRef,
|
|
63
|
-
dataSelectorId: dataSelectorId
|
|
64
|
-
dataId: `${dataId}_actionButton`
|
|
63
|
+
dataSelectorId: dataSelectorId
|
|
65
64
|
}, isLoading ? /*#__PURE__*/React.createElement(Box, {
|
|
66
65
|
flexible: true
|
|
67
66
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -127,8 +126,7 @@ function ActionButton(props) {
|
|
|
127
126
|
getRef: getContainerRef,
|
|
128
127
|
popupGroup: popupGroup,
|
|
129
128
|
needFocusScope: true,
|
|
130
|
-
onClose: handleTogglePopup
|
|
131
|
-
dataId: `${dataId}_dropbox`
|
|
129
|
+
onClose: handleTogglePopup
|
|
132
130
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
133
131
|
flexible: true,
|
|
134
132
|
shrink: true,
|
|
@@ -76,8 +76,7 @@ const Attachment = props => {
|
|
|
76
76
|
href: downloadLink,
|
|
77
77
|
className: style.attachDownload,
|
|
78
78
|
title: downloadTitle,
|
|
79
|
-
hasReload: true
|
|
80
|
-
dataId: `${dataId}_download`
|
|
79
|
+
hasReload: true
|
|
81
80
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
82
81
|
name: "ZD-downloadNew",
|
|
83
82
|
iconClass: style.downIcon
|
|
@@ -220,8 +220,7 @@ export default class AttachmentViewer extends Component {
|
|
|
220
220
|
isZoomed
|
|
221
221
|
} = this.state;
|
|
222
222
|
const {
|
|
223
|
-
maintainZoom
|
|
224
|
-
dataId
|
|
223
|
+
maintainZoom
|
|
225
224
|
} = this.props;
|
|
226
225
|
|
|
227
226
|
const getImgStyle = i => {
|
|
@@ -266,9 +265,7 @@ export default class AttachmentViewer extends Component {
|
|
|
266
265
|
}, isAudioFile(data.name) ? selectedIndex == i ? /*#__PURE__*/React.createElement("video", {
|
|
267
266
|
autoPlay: true,
|
|
268
267
|
controls: true,
|
|
269
|
-
className: style.zoomIn
|
|
270
|
-
"data-id": `${dataId}_videoPreview`,
|
|
271
|
-
"data-test-id": `${dataId}_videoPreview`
|
|
268
|
+
className: style.zoomIn
|
|
272
269
|
}, /*#__PURE__*/React.createElement("source", {
|
|
273
270
|
src: data.viewUrl,
|
|
274
271
|
type: `audio/${getExtensionFromFileName(data.name)}`
|
|
@@ -298,8 +295,7 @@ export default class AttachmentViewer extends Component {
|
|
|
298
295
|
responsiveId,
|
|
299
296
|
needDownload,
|
|
300
297
|
i18nKeys,
|
|
301
|
-
isActive
|
|
302
|
-
dataId
|
|
298
|
+
isActive
|
|
303
299
|
} = this.props;
|
|
304
300
|
const totalLen = data.length;
|
|
305
301
|
const selectedAttachment = data[selectedIndex] || {};
|
|
@@ -405,8 +401,7 @@ export default class AttachmentViewer extends Component {
|
|
|
405
401
|
target: "_parent",
|
|
406
402
|
hasReload: true,
|
|
407
403
|
download: true,
|
|
408
|
-
title: i18nKeys.downloadText
|
|
409
|
-
dataId: `${dataId}_downloadAttach`
|
|
404
|
+
title: i18nKeys.downloadText
|
|
410
405
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
411
406
|
iconName: "ZD-GN-download",
|
|
412
407
|
className: style.menuIcon,
|
|
@@ -473,15 +468,13 @@ export default class AttachmentViewer extends Component {
|
|
|
473
468
|
dataId: "rightAttachNav",
|
|
474
469
|
isBold: true
|
|
475
470
|
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
476
|
-
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide}
|
|
477
|
-
dataId: `${dataId}_attachPreviewFooter`
|
|
471
|
+
className: `${style.footer} ${isPViewListOpen && totalLen !== 1 ? style.footerHeight : style.footerHide} `
|
|
478
472
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
479
473
|
align: "vertical",
|
|
480
474
|
alignBox: "row",
|
|
481
475
|
className: style.footerHeight
|
|
482
476
|
}, author && /*#__PURE__*/React.createElement(Box, {
|
|
483
|
-
className: style.author
|
|
484
|
-
dataId: `${dataId}_authorName`
|
|
477
|
+
className: style.author
|
|
485
478
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
486
479
|
alignBox: "row",
|
|
487
480
|
align: "both"
|