@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
|
@@ -39,12 +39,10 @@ export default function MessageBanner(props) {
|
|
|
39
39
|
href: href,
|
|
40
40
|
onClick: onClick,
|
|
41
41
|
className: style.link,
|
|
42
|
-
target: "_blank"
|
|
43
|
-
dataId: `${dataId}_link`
|
|
42
|
+
target: "_blank"
|
|
44
43
|
}, urlText)))), onClose ? /*#__PURE__*/React.createElement(Box, {
|
|
45
44
|
className: style.close,
|
|
46
|
-
onClick: onClose
|
|
47
|
-
dataId: `${dataId}_close`
|
|
45
|
+
onClick: onClose
|
|
48
46
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
49
47
|
align: "both"
|
|
50
48
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -49,8 +49,7 @@ export default function AlertHeader(props) {
|
|
|
49
49
|
isCover: false,
|
|
50
50
|
wrap: "wrap",
|
|
51
51
|
"data-drag-hook": "true",
|
|
52
|
-
eleRef: dragRef
|
|
53
|
-
dataId: `${dataId}_alertHeader`
|
|
52
|
+
eleRef: dragRef
|
|
54
53
|
}, needIcon && /*#__PURE__*/React.createElement("div", {
|
|
55
54
|
className: finalStyle.iconContainer
|
|
56
55
|
}, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
|
|
@@ -13,8 +13,7 @@ export default function AvatarClose(props) {
|
|
|
13
13
|
isClose,
|
|
14
14
|
onClick,
|
|
15
15
|
customProps,
|
|
16
|
-
dataSelectorId
|
|
17
|
-
dataId
|
|
16
|
+
dataSelectorId
|
|
18
17
|
} = props;
|
|
19
18
|
let {
|
|
20
19
|
AvatarCloseProps = {},
|
|
@@ -23,8 +22,6 @@ export default function AvatarClose(props) {
|
|
|
23
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
23
|
className: style.container,
|
|
25
24
|
"data-selector-id": dataSelectorId,
|
|
26
|
-
"data-id": dataId,
|
|
27
|
-
"data-test-id": dataId,
|
|
28
25
|
...AvatarCloseProps
|
|
29
26
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
30
27
|
src: src,
|
|
@@ -34,9 +31,7 @@ export default function AvatarClose(props) {
|
|
|
34
31
|
...AvatarProps
|
|
35
32
|
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
36
33
|
className: style.pop,
|
|
37
|
-
onClick: onClick
|
|
38
|
-
"data-id": `${dataId}_close`,
|
|
39
|
-
"data-test-id": `${dataId}_close`
|
|
34
|
+
onClick: onClick
|
|
40
35
|
}, /*#__PURE__*/React.createElement("span", {
|
|
41
36
|
className: style.icon
|
|
42
37
|
}, /*#__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,
|
|
@@ -52,8 +52,7 @@ export default function UnableToProcessRequest(props) {
|
|
|
52
52
|
customClass: {
|
|
53
53
|
customButton: style.errorBtn
|
|
54
54
|
},
|
|
55
|
-
onClick: onButtonClick
|
|
56
|
-
dataId: `${dataId}_button`
|
|
55
|
+
onClick: onButtonClick
|
|
57
56
|
}) : null));
|
|
58
57
|
}
|
|
59
58
|
UnableToProcessRequest.propTypes = propTypes;
|
|
@@ -18,27 +18,31 @@ const Subject = props => {
|
|
|
18
18
|
className,
|
|
19
19
|
isDotted,
|
|
20
20
|
children,
|
|
21
|
-
customProps
|
|
21
|
+
customProps,
|
|
22
|
+
whiteSpace
|
|
22
23
|
} = props;
|
|
23
24
|
const {
|
|
24
25
|
LinkProps = {},
|
|
25
26
|
TextProps = {}
|
|
26
27
|
} = customProps;
|
|
28
|
+
const isTooltipWrap = whiteSpace === 'pre' || whiteSpace === 'preWrap';
|
|
27
29
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
28
30
|
urlName: urlName,
|
|
29
31
|
href: href,
|
|
30
32
|
urlData: urlData,
|
|
31
33
|
onClick: onClick,
|
|
32
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
34
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${style[`whiteSpace_${whiteSpace}`]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
33
35
|
dataId: dataId,
|
|
34
36
|
title: text,
|
|
35
37
|
target: target,
|
|
38
|
+
"data-title-wrap": isTooltipWrap,
|
|
36
39
|
...LinkProps
|
|
37
40
|
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
38
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
41
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${style[`whiteSpace_${whiteSpace}`]} ${className} ${style[`font_${fontWeight}`]}`,
|
|
39
42
|
"data-title": text,
|
|
40
43
|
"data-id": dataId,
|
|
41
44
|
"data-test-id": dataId,
|
|
45
|
+
"data-title-wrap": isTooltipWrap,
|
|
42
46
|
...TextProps
|
|
43
47
|
}, text));
|
|
44
48
|
};
|
|
@@ -198,7 +198,6 @@ function StatusDropdown(props) {
|
|
|
198
198
|
isResponsivePadding: true,
|
|
199
199
|
needFocusScope: true,
|
|
200
200
|
onClose: handleTogglePopup,
|
|
201
|
-
dataId: `${dataId}_dropbox`,
|
|
202
201
|
customProps: {
|
|
203
202
|
focusScopeProps: {
|
|
204
203
|
searchValue: searchString,
|
|
@@ -225,8 +224,7 @@ function StatusDropdown(props) {
|
|
|
225
224
|
role: 'combobox',
|
|
226
225
|
ariaActivedescendant: isPopupReady ? value : '',
|
|
227
226
|
ariaOwns: ariaTitleId
|
|
228
|
-
}
|
|
229
|
-
dataId: `${dataId}_search`
|
|
227
|
+
}
|
|
230
228
|
})) : null, title && optionsList.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
231
229
|
className: style.title
|
|
232
230
|
}, /*#__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;
|
|
@@ -13,8 +13,7 @@ export default function Search(props) {
|
|
|
13
13
|
onKeyPress,
|
|
14
14
|
onFocus,
|
|
15
15
|
onBlur,
|
|
16
|
-
customClass
|
|
17
|
-
dataId
|
|
16
|
+
customClass
|
|
18
17
|
} = props;
|
|
19
18
|
let [isFocus, setIsFocus] = useState(false);
|
|
20
19
|
let [resetValue] = useState(value || '');
|
|
@@ -33,9 +32,7 @@ export default function Search(props) {
|
|
|
33
32
|
};
|
|
34
33
|
|
|
35
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}
|
|
37
|
-
"data-id": `${dataId}_search`,
|
|
38
|
-
"data-test-id": `${dataId}_search`
|
|
35
|
+
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
|
|
39
36
|
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
40
37
|
placeHolder: placeHolder,
|
|
41
38
|
customClass: style.input,
|
|
@@ -48,9 +45,7 @@ export default function Search(props) {
|
|
|
48
45
|
onBlur: handleBlur
|
|
49
46
|
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
50
47
|
className: style.icon,
|
|
51
|
-
onClick: handleBlur
|
|
52
|
-
"data-id": `${dataId}_clear`,
|
|
53
|
-
"data-test-id": `${dataId}_clear`
|
|
48
|
+
onClick: handleBlur
|
|
54
49
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
55
50
|
name: "ZD-close",
|
|
56
51
|
size: "19"
|
|
@@ -122,8 +122,7 @@ 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
|
|
126
|
-
dataId: "".concat(dataId, "_actionButton")
|
|
125
|
+
dataSelectorId: dataSelectorId
|
|
127
126
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
128
127
|
flexible: true
|
|
129
128
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
@@ -189,8 +188,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
189
188
|
getRef: getContainerRef,
|
|
190
189
|
popupGroup: popupGroup,
|
|
191
190
|
needFocusScope: true,
|
|
192
|
-
onClose: this.handleTogglePopup
|
|
193
|
-
dataId: "".concat(dataId, "_dropbox")
|
|
191
|
+
onClose: this.handleTogglePopup
|
|
194
192
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
195
193
|
flexible: true,
|
|
196
194
|
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"
|
|
@@ -121,8 +121,7 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
121
121
|
href: downloadLink,
|
|
122
122
|
className: _AttachmentModule["default"].attachDownload,
|
|
123
123
|
title: downloadTitle,
|
|
124
|
-
hasReload: true
|
|
125
|
-
dataId: "".concat(dataId, "_download")
|
|
124
|
+
hasReload: true
|
|
126
125
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
127
126
|
name: "ZD-downloadNew",
|
|
128
127
|
iconClass: _AttachmentModule["default"].downIcon
|
|
@@ -298,9 +298,7 @@ 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
|
|
302
|
-
maintainZoom = _this$props.maintainZoom,
|
|
303
|
-
dataId = _this$props.dataId;
|
|
301
|
+
var maintainZoom = this.props.maintainZoom;
|
|
304
302
|
|
|
305
303
|
var getImgStyle = function getImgStyle(i) {
|
|
306
304
|
var position;
|
|
@@ -344,9 +342,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
344
342
|
}, (0, _Attachment.isAudioFile)(data.name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("video", {
|
|
345
343
|
autoPlay: true,
|
|
346
344
|
controls: true,
|
|
347
|
-
className: _AttachmentViewerModule["default"].zoomIn
|
|
348
|
-
"data-id": "".concat(dataId, "_videoPreview"),
|
|
349
|
-
"data-test-id": "".concat(dataId, "_videoPreview")
|
|
345
|
+
className: _AttachmentViewerModule["default"].zoomIn
|
|
350
346
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
351
347
|
src: data.viewUrl,
|
|
352
348
|
type: "audio/".concat((0, _Attachment.getExtensionFromFileName)(data.name))
|
|
@@ -374,12 +370,11 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
374
370
|
selectedIndex = _this$state3.selectedIndex,
|
|
375
371
|
data = _this$state3.data,
|
|
376
372
|
isZoomed = _this$state3.isZoomed;
|
|
377
|
-
var _this$
|
|
378
|
-
responsiveId = _this$
|
|
379
|
-
needDownload = _this$
|
|
380
|
-
i18nKeys = _this$
|
|
381
|
-
isActive = _this$
|
|
382
|
-
dataId = _this$props2.dataId;
|
|
373
|
+
var _this$props = this.props,
|
|
374
|
+
responsiveId = _this$props.responsiveId,
|
|
375
|
+
needDownload = _this$props.needDownload,
|
|
376
|
+
i18nKeys = _this$props.i18nKeys,
|
|
377
|
+
isActive = _this$props.isActive;
|
|
383
378
|
var totalLen = data.length;
|
|
384
379
|
var selectedAttachment = data[selectedIndex] || {};
|
|
385
380
|
var selectedImgUrl = selectedAttachment.viewUrl;
|
|
@@ -484,8 +479,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
484
479
|
target: "_parent",
|
|
485
480
|
hasReload: true,
|
|
486
481
|
download: true,
|
|
487
|
-
title: i18nKeys.downloadText
|
|
488
|
-
dataId: "".concat(dataId, "_downloadAttach")
|
|
482
|
+
title: i18nKeys.downloadText
|
|
489
483
|
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
490
484
|
iconName: "ZD-GN-download",
|
|
491
485
|
className: _AttachmentViewerModule["default"].menuIcon,
|
|
@@ -552,15 +546,13 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
552
546
|
dataId: "rightAttachNav",
|
|
553
547
|
isBold: true
|
|
554
548
|
}))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
555
|
-
className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " ")
|
|
556
|
-
dataId: "".concat(dataId, "_attachPreviewFooter")
|
|
549
|
+
className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " ")
|
|
557
550
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
558
551
|
align: "vertical",
|
|
559
552
|
alignBox: "row",
|
|
560
553
|
className: _AttachmentViewerModule["default"].footerHeight
|
|
561
554
|
}, author && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
562
|
-
className: _AttachmentViewerModule["default"].author
|
|
563
|
-
dataId: "".concat(dataId, "_authorName")
|
|
555
|
+
className: _AttachmentViewerModule["default"].author
|
|
564
556
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
565
557
|
alignBox: "row",
|
|
566
558
|
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"
|
|
@@ -38,7 +38,6 @@ var AttachmentViewer_propTypes = {
|
|
|
38
38
|
previewObj: _propTypes["default"].object,
|
|
39
39
|
responsiveId: _propTypes["default"].string,
|
|
40
40
|
maintainZoom: _propTypes["default"].bool,
|
|
41
|
-
isActive: _propTypes["default"].bool
|
|
42
|
-
dataId: _propTypes["default"].string
|
|
41
|
+
isActive: _propTypes["default"].bool
|
|
43
42
|
};
|
|
44
43
|
exports.AttachmentViewer_propTypes = AttachmentViewer_propTypes;
|
|
@@ -122,7 +122,6 @@ var ChannelIcon = /*#__PURE__*/function (_Component) {
|
|
|
122
122
|
palette: palette,
|
|
123
123
|
textPalette: textPalette,
|
|
124
124
|
customClass: customTextClass,
|
|
125
|
-
dataId: dataId,
|
|
126
125
|
needTitle: title,
|
|
127
126
|
title: title
|
|
128
127
|
}) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
@@ -89,12 +89,10 @@ var MessageBanner = /*#__PURE__*/function (_React$Component) {
|
|
|
89
89
|
href: href,
|
|
90
90
|
onClick: onClick,
|
|
91
91
|
className: _MessageBannerModule["default"].link,
|
|
92
|
-
target: "_blank"
|
|
93
|
-
dataId: "".concat(dataId, "_link")
|
|
92
|
+
target: "_blank"
|
|
94
93
|
}, urlText)))), onClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
95
|
-
className: _MessageBannerModule["default"].
|
|
96
|
-
onClick: onClose
|
|
97
|
-
dataId: "".concat(dataId, "_close")
|
|
94
|
+
className: _MessageBannerModule["default"].close,
|
|
95
|
+
onClick: onClose
|
|
98
96
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
99
97
|
align: "both"
|
|
100
98
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
@@ -88,8 +88,7 @@ var AlertHeader = /*#__PURE__*/function (_Component) {
|
|
|
88
88
|
alignBox: "row",
|
|
89
89
|
className: "".concat(_AlertHeaderModule["default"].container, " ").concat(_AlertHeaderModule["default"][palette]),
|
|
90
90
|
isCover: false,
|
|
91
|
-
wrap: "wrap"
|
|
92
|
-
dataId: "".concat(dataId, "_alertHeader")
|
|
91
|
+
wrap: "wrap"
|
|
93
92
|
}, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
93
|
className: _AlertHeaderModule["default"].iconContainer
|
|
95
94
|
}, /*#__PURE__*/_react["default"].createElement(_icons.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"
|
|
@@ -65,17 +65,14 @@ var AvatarClose = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
isClose = _this$props.isClose,
|
|
66
66
|
onClick = _this$props.onClick,
|
|
67
67
|
customProps = _this$props.customProps,
|
|
68
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
69
|
-
dataId = _this$props.dataId;
|
|
68
|
+
dataSelectorId = _this$props.dataSelectorId;
|
|
70
69
|
var _customProps$AvatarCl = customProps.AvatarCloseProps,
|
|
71
70
|
AvatarCloseProps = _customProps$AvatarCl === void 0 ? {} : _customProps$AvatarCl,
|
|
72
71
|
_customProps$AvatarPr = customProps.AvatarProps,
|
|
73
72
|
AvatarProps = _customProps$AvatarPr === void 0 ? {} : _customProps$AvatarPr;
|
|
74
73
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
75
74
|
className: _AvatarCloseModule["default"].container,
|
|
76
|
-
"data-selector-id": dataSelectorId
|
|
77
|
-
"data-id": dataId,
|
|
78
|
-
"data-test-id": dataId
|
|
75
|
+
"data-selector-id": dataSelectorId
|
|
79
76
|
}, AvatarCloseProps), /*#__PURE__*/_react["default"].createElement(_Avatar["default"], _extends({
|
|
80
77
|
src: src,
|
|
81
78
|
name: name,
|
|
@@ -83,9 +80,7 @@ var AvatarClose = /*#__PURE__*/function (_React$Component) {
|
|
|
83
80
|
size: size
|
|
84
81
|
}, AvatarProps)), isClose && /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
82
|
className: _AvatarCloseModule["default"].pop,
|
|
86
|
-
onClick: onClick
|
|
87
|
-
"data-id": "".concat(dataId, "_close"),
|
|
88
|
-
"data-test-id": "".concat(dataId, "_close")
|
|
83
|
+
onClick: onClick
|
|
89
84
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
85
|
className: _AvatarCloseModule["default"].icon
|
|
91
86
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|