@zohodesk/components 1.0.0-alpha-273 → 1.0.0-alpha-274
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/es/Accordion/Accordion.js +1 -0
- package/es/Accordion/AccordionItem.js +1 -0
- package/es/AppContainer/AppContainer.js +15 -6
- package/es/AppContainer/props/defaultProps.js +2 -1
- package/es/AppContainer/props/propTypes.js +1 -0
- package/es/Avatar/Avatar.js +3 -0
- package/es/AvatarTeam/AvatarTeam.js +1 -0
- package/es/Button/Button.js +1 -0
- package/es/Buttongroup/Buttongroup.js +1 -0
- package/es/DateTime/CalendarView.js +1 -0
- package/es/DateTime/DateTime.js +3 -1
- package/es/DateTime/DateWidget.js +2 -0
- package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -0
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDownHeading.js +1 -0
- package/es/DropDown/DropDownItem.js +2 -1
- package/es/Heading/Heading.js +1 -0
- package/es/Label/Label.js +1 -0
- package/es/Layout/Box.js +4 -3
- package/es/Layout/Container.js +4 -3
- package/es/Layout/props/defaultProps.js +2 -0
- package/es/Layout/props/propTypes.js +2 -0
- package/es/Layout/utils.js +5 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -0
- package/es/MultiSelect/EmptyState.js +4 -0
- package/es/MultiSelect/MultiSelect.js +1 -0
- package/es/MultiSelect/MultiSelectWithAvatar.js +1 -0
- package/es/Popup/Popup.js +1 -4
- package/es/Ribbon/Ribbon.js +1 -0
- package/es/Select/GroupSelect.js +1 -0
- package/es/Select/Select.js +2 -1
- package/es/Select/SelectWithAvatar.js +2 -0
- package/es/Select/SelectWithIcon.js +2 -1
- package/es/Switch/Switch.js +1 -0
- package/es/Tab/Tabs.js +2 -1
- package/es/Tag/Tag.js +1 -0
- package/es/TextBox/TextBox.js +1 -0
- package/es/Textarea/Textarea.js +1 -0
- package/es/Tooltip/Tooltip.js +2 -1
- package/es/semantic/Button/Button.js +1 -0
- package/lib/Accordion/Accordion.js +1 -0
- package/lib/Accordion/AccordionItem.js +1 -0
- package/lib/AppContainer/AppContainer.js +11 -6
- package/lib/AppContainer/props/defaultProps.js +2 -1
- package/lib/AppContainer/props/propTypes.js +1 -0
- package/lib/Avatar/Avatar.js +3 -0
- package/lib/AvatarTeam/AvatarTeam.js +1 -0
- package/lib/Button/Button.js +1 -0
- package/lib/Buttongroup/Buttongroup.js +1 -0
- package/lib/DateTime/CalendarView.js +1 -0
- package/lib/DateTime/DateTime.js +3 -1
- package/lib/DateTime/DateWidget.js +2 -0
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -0
- package/lib/DropDown/DropDown.js +2 -1
- package/lib/DropDown/DropDownHeading.js +1 -0
- package/lib/DropDown/DropDownItem.js +2 -1
- package/lib/Heading/Heading.js +2 -1
- package/lib/Label/Label.js +1 -0
- package/lib/Layout/Box.js +8 -4
- package/lib/Layout/Container.js +8 -4
- package/lib/Layout/props/defaultProps.js +2 -0
- package/lib/Layout/props/propTypes.js +2 -0
- package/lib/Layout/utils.js +5 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +1 -0
- package/lib/MultiSelect/EmptyState.js +4 -0
- package/lib/MultiSelect/MultiSelect.js +1 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -0
- package/lib/Popup/Popup.js +1 -4
- package/lib/Ribbon/Ribbon.js +1 -0
- package/lib/Select/GroupSelect.js +1 -0
- package/lib/Select/Select.js +2 -1
- package/lib/Select/SelectWithAvatar.js +2 -0
- package/lib/Select/SelectWithIcon.js +2 -1
- package/lib/Switch/Switch.js +1 -0
- package/lib/Tab/Tabs.js +2 -1
- package/lib/Tag/Tag.js +1 -0
- package/lib/TextBox/TextBox.js +1 -0
- package/lib/Textarea/Textarea.js +1 -0
- package/lib/Tooltip/Tooltip.js +2 -1
- package/lib/semantic/Button/Button.js +1 -0
- package/package.json +1 -1
|
@@ -133,7 +133,9 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
133
133
|
}, {
|
|
134
134
|
key: "componentDidMount",
|
|
135
135
|
value: function componentDidMount() {
|
|
136
|
-
|
|
136
|
+
var needTooltip = this.props.needTooltip;
|
|
137
|
+
|
|
138
|
+
if (this.containerElement && needTooltip) {
|
|
137
139
|
this.containerElement.addEventListener('mouseover', this.handleOver, false);
|
|
138
140
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
139
141
|
this.tooltipRef.observeElement();
|
|
@@ -142,7 +144,9 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
142
144
|
}, {
|
|
143
145
|
key: "componentWillUnmount",
|
|
144
146
|
value: function componentWillUnmount() {
|
|
145
|
-
|
|
147
|
+
var needTooltip = this.props.needTooltip;
|
|
148
|
+
|
|
149
|
+
if (this.containerElement && needTooltip) {
|
|
146
150
|
this.containerElement.removeEventListener('mouseover', this.handleOver, false);
|
|
147
151
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
148
152
|
this.tooltipRef.unObserveElement();
|
|
@@ -159,6 +163,7 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
159
163
|
dataSelectorId = _this$props.dataSelectorId,
|
|
160
164
|
tooltipClass = _this$props.tooltipClass,
|
|
161
165
|
tooltipParentClass = _this$props.tooltipParentClass,
|
|
166
|
+
needTooltip = _this$props.needTooltip,
|
|
162
167
|
customProps = _this$props.customProps;
|
|
163
168
|
var _customProps$Containe = customProps.ContainerProps,
|
|
164
169
|
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
|
|
@@ -167,22 +172,22 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
167
172
|
_customProps$ExtraPro = customProps.ExtraProps,
|
|
168
173
|
ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
|
|
169
174
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
170
|
-
className: "".concat(_AppContainerModule["default"].container, " ").concat(className)
|
|
171
|
-
,
|
|
175
|
+
className: "".concat(_AppContainerModule["default"].container, " ").concat(className),
|
|
172
176
|
dataId: dataId,
|
|
173
177
|
dataSelectorId: dataSelectorId,
|
|
174
178
|
tagName: tagName,
|
|
175
179
|
eleRef: this.getContainerRef
|
|
176
180
|
}, ContainerProps, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
177
181
|
flexible: true
|
|
178
|
-
}, children)), /*#__PURE__*/_react["default"].createElement("div", _extends({}, ExtraProps, {
|
|
182
|
+
}, children)), needTooltip ? /*#__PURE__*/_react["default"].createElement("div", _extends({}, ExtraProps, {
|
|
179
183
|
className: "".concat(_AppContainerModule["default"].container, " ").concat(_AppContainerModule["default"].tooltip, " ").concat(tooltipParentClass),
|
|
180
184
|
"data-id": "".concat(dataId, "_tooltip"),
|
|
185
|
+
"data-test-id": "".concat(dataId, "_tooltip"),
|
|
181
186
|
"data-selector-id": "".concat(dataSelectorId, "_tooltip")
|
|
182
187
|
}), /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], _extends({
|
|
183
188
|
ref: this.setTooltipRef,
|
|
184
189
|
customClass: tooltipClass
|
|
185
|
-
}, TooltipProps))));
|
|
190
|
+
}, TooltipProps))) : null);
|
|
186
191
|
}
|
|
187
192
|
}]);
|
|
188
193
|
|
|
@@ -16,6 +16,7 @@ var propTypes = {
|
|
|
16
16
|
eleRef: _propTypes["default"].func,
|
|
17
17
|
tagName: _propTypes["default"].string,
|
|
18
18
|
className: _propTypes["default"].string,
|
|
19
|
+
needTooltip: _propTypes["default"].bool,
|
|
19
20
|
tooltipClass: _propTypes["default"].string,
|
|
20
21
|
tooltipParentClass: _propTypes["default"].string,
|
|
21
22
|
customProps: _propTypes["default"].shape({
|
package/lib/Avatar/Avatar.js
CHANGED
|
@@ -213,15 +213,18 @@ var Avatar = /*#__PURE__*/function (_React$Component) {
|
|
|
213
213
|
className: "".concat(_AvatarModule["default"].avatar, " ").concat(_AvatarModule["default"][size], " ").concat((0, _AvatarSize["default"])(size), " ").concat(_AvatarModule["default"][shapeStyle], " ").concat(_AvatarModule["default"][palette], " ").concat(textStyle, " ").concat(borderStyle, " ").concat(customClass ? customClass : ''),
|
|
214
214
|
"data-title": needTitle ? title ? title : name : null,
|
|
215
215
|
"data-id": dataId,
|
|
216
|
+
"data-test-id": dataId,
|
|
216
217
|
onClick: onClick,
|
|
217
218
|
"data-selector-id": dataSelectorId
|
|
218
219
|
}, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/_react["default"].createElement("span", {
|
|
219
220
|
className: "".concat(_AvatarModule["default"].initial),
|
|
220
221
|
"data-id": "".concat(dataId, "_AvatarInitial"),
|
|
222
|
+
"data-test-id": "".concat(dataId, "_AvatarInitial"),
|
|
221
223
|
"data-selector-id": "".concat(dataSelectorId, "_AvatarInitial")
|
|
222
224
|
}, initial), (showAvatar || showAlternateAvatar) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
223
225
|
className: "".concat(_AvatarModule["default"].image, " ").concat(isAnimate ? _AvatarModule["default"].animate : '', " ").concat(needInnerBorder ? _AvatarModule["default"].innerBorder : ''),
|
|
224
226
|
"data-id": "".concat(dataId, "_AvatarImg"),
|
|
227
|
+
"data-test-id": "".concat(dataId, "_AvatarImg"),
|
|
225
228
|
"data-selector-id": "".concat(dataSelectorId, "_AvatarImg"),
|
|
226
229
|
name: name,
|
|
227
230
|
onError: this.putInvalidImageURLJSON,
|
|
@@ -96,6 +96,7 @@ var AvatarTeam = /*#__PURE__*/function (_React$Component) {
|
|
|
96
96
|
return /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
97
97
|
className: "".concat(_AvatarTeamModule["default"].container, " ").concat(borderOnActive ? _AvatarTeamModule["default"].borderOnActive : border ? _AvatarTeamModule["default"].borderOnHover : '', " "),
|
|
98
98
|
"data-id": dataId,
|
|
99
|
+
"data-test-id": dataId,
|
|
99
100
|
"data-selector-id": dataSelectorId
|
|
100
101
|
}, AvatarTeamProps), /*#__PURE__*/_react["default"].createElement(_Avatar["default"], _extends({
|
|
101
102
|
name: name,
|
package/lib/Button/Button.js
CHANGED
|
@@ -55,6 +55,7 @@ function Button(props) {
|
|
|
55
55
|
return /*#__PURE__*/_react["default"].createElement("button", _extends({
|
|
56
56
|
className: buttonClass,
|
|
57
57
|
"data-id": disabled ? "".concat(dataId, "_disabled") : dataId,
|
|
58
|
+
"data-test-id": disabled ? "".concat(dataId, "_disabled") : dataId,
|
|
58
59
|
disabled: disabled || statusLower === 'loading',
|
|
59
60
|
onClick: onClick,
|
|
60
61
|
"data-title": title,
|
|
@@ -71,6 +71,7 @@ var Buttongroup = /*#__PURE__*/function (_React$Component) {
|
|
|
71
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
72
|
className: "".concat(_ButtongroupModule["default"].buttonGroup, " ").concat(_ButtongroupModule["default"][type], " ").concat(customClass ? customClass : ''),
|
|
73
73
|
"data-id": dataId,
|
|
74
|
+
"data-test-id": dataId,
|
|
74
75
|
"data-selector-id": dataSelectorId
|
|
75
76
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
77
|
className: _ButtongroupModule["default"]["align".concat(buttonPosition)]
|
|
@@ -219,6 +219,7 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
219
219
|
ariaLabel: dayNamesShort
|
|
220
220
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
221
221
|
"data-id": "".concat(dataId, "_dateContainer"),
|
|
222
|
+
"data-test-id": "".concat(dataId, "_dateContainer"),
|
|
222
223
|
className: "".concat(_DateTimeModule["default"].dateContainer, " ").concat(needBorder ? _DateTimeModule["default"].separator : '')
|
|
223
224
|
}, rows));
|
|
224
225
|
}
|
package/lib/DateTime/DateTime.js
CHANGED
|
@@ -742,6 +742,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
742
742
|
var childEle = /*#__PURE__*/_react["default"].createElement("div", {
|
|
743
743
|
className: "".concat(_DateTimeModule["default"].container, " ").concat(innerClass),
|
|
744
744
|
"data-id": "".concat(dataId, "_Calendar"),
|
|
745
|
+
"data-test-id": "".concat(dataId, "_Calendar"),
|
|
745
746
|
onClick: this.closePopup
|
|
746
747
|
}, /*#__PURE__*/_react["default"].createElement(_DateTimePopupHeader["default"], {
|
|
747
748
|
onOpenYearView: this.handleOpenYearView,
|
|
@@ -800,7 +801,8 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
800
801
|
|
|
801
802
|
return isDefaultPosition ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
802
803
|
className: "".concat(_DateTimeModule["default"].dropBox, " ").concat(className),
|
|
803
|
-
"data-id": "".concat(dataId, "_dateBoxContainer")
|
|
804
|
+
"data-id": "".concat(dataId, "_dateBoxContainer"),
|
|
805
|
+
"data-test-id": "".concat(dataId, "_dateBoxContainer")
|
|
804
806
|
}, childEle) : isReady ? /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
|
|
805
807
|
size: boxSize,
|
|
806
808
|
boxPosition: position,
|
|
@@ -1024,11 +1024,13 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1024
1024
|
className: "".concat(_DateWidgetModule["default"].container)
|
|
1025
1025
|
}, children ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1026
1026
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : "".concat(dataId, "_widget")),
|
|
1027
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : "".concat(dataId, "_widget")),
|
|
1027
1028
|
onClick: isDisabled || isReadOnly ? null : this.handleTogglePopup,
|
|
1028
1029
|
ref: getTargetRef,
|
|
1029
1030
|
className: "".concat(className ? className : '', " ").concat(isDisabled ? _DateWidgetModule["default"].disabled : _DateWidgetModule["default"].enabled)
|
|
1030
1031
|
}, children) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1031
1032
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : "".concat(dataId, "_widget")),
|
|
1033
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : "".concat(dataId, "_widget")),
|
|
1032
1034
|
className: "".concat(className ? className : '', " ").concat(_DateWidgetModule["default"].textBox, " ").concat(isPopupOpen && !isDisabled ? _DateWidgetModule["default"].textBoxFocus : '', " ").concat(isDisabled ? _DateWidgetModule["default"].disabled : isReadOnly ? _DateWidgetModule["default"].readOnly : _DateWidgetModule["default"].enabled),
|
|
1033
1035
|
onClick: !isAllowedDateType ? isDisabled || isReadOnly ? null : this.handleTogglePopup : null,
|
|
1034
1036
|
ref: getTargetRef
|
|
@@ -108,6 +108,7 @@ function DropBoxElement(props) {
|
|
|
108
108
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
109
|
className: boxClassName,
|
|
110
110
|
"data-id": "".concat(dataId),
|
|
111
|
+
"data-test-id": "".concat(dataId),
|
|
111
112
|
"data-selector-id": dataSelectorId,
|
|
112
113
|
ref: getRef,
|
|
113
114
|
style: inlineStyle,
|
|
@@ -124,6 +125,7 @@ function DropBoxElement(props) {
|
|
|
124
125
|
className: "".concat(subContainerClass, " ").concat(_DropBoxElementModule["default"]["".concat(palette, "Palette")]),
|
|
125
126
|
onClick: onClick,
|
|
126
127
|
"data-id": "".concat(dataId, "_subcontainer"),
|
|
128
|
+
"data-test-id": "".concat(dataId, "_subcontainer"),
|
|
127
129
|
"data-selector-id": "".concat(dataSelectorId, "_subcontainer"),
|
|
128
130
|
ref: subContainerRef
|
|
129
131
|
}, isModel ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -132,6 +134,7 @@ function DropBoxElement(props) {
|
|
|
132
134
|
className: _DropBoxElementModule["default"][arrowPosition],
|
|
133
135
|
style: arrowstyle,
|
|
134
136
|
"data-id": "".concat(dataId, "_arrow"),
|
|
137
|
+
"data-test-id": "".concat(dataId, "_arrow"),
|
|
135
138
|
"data-selector-id": "".concat(dataSelectorId, "_arrow")
|
|
136
139
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
140
|
className: _DropBoxElementModule["default"].arrowShape
|
package/lib/DropDown/DropDown.js
CHANGED
|
@@ -162,7 +162,8 @@ var DropDownItemContainer = /*#__PURE__*/function (_React$Component4) {
|
|
|
162
162
|
className: _DropDownModule["default"].listGroup,
|
|
163
163
|
onScroll: this.onScroll,
|
|
164
164
|
ref: this.getRef,
|
|
165
|
-
"data-id": dataId
|
|
165
|
+
"data-id": dataId,
|
|
166
|
+
"data-test-id": dataId
|
|
166
167
|
}, children);
|
|
167
168
|
}
|
|
168
169
|
}]);
|
|
@@ -105,7 +105,8 @@ var DropDownItem = /*#__PURE__*/function (_React$Component) {
|
|
|
105
105
|
onClick: this.onClick,
|
|
106
106
|
onMouseOver: this.onHover,
|
|
107
107
|
ref: this.getRef,
|
|
108
|
-
"data-id": dataId
|
|
108
|
+
"data-id": dataId,
|
|
109
|
+
"data-test-id": dataId
|
|
109
110
|
}, children && children[0] ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
111
|
className: _DropDownItemModule["default"].children
|
|
111
112
|
}, " ", children[0], " ") : children !== undefined ? /*#__PURE__*/_react["default"].createElement("span", {
|
package/lib/Heading/Heading.js
CHANGED
package/lib/Label/Label.js
CHANGED
package/lib/Layout/Box.js
CHANGED
|
@@ -18,7 +18,11 @@ var _LayoutModule = _interopRequireDefault(require("./Layout.module.css"));
|
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
|
+
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
|
+
|
|
25
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
26
|
|
|
23
27
|
/* eslint-disable react/no-unused-prop-types*/
|
|
24
28
|
function getBoxClassNames(props) {
|
|
@@ -109,16 +113,16 @@ function getBoxProps(props) {
|
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
function Box(props) {
|
|
112
|
-
var childProps = getBoxProps(props);
|
|
113
116
|
var tagName = props.tagName;
|
|
114
|
-
(0, _utils.setProps)(
|
|
117
|
+
var componentProps = (0, _utils.setProps)(_objectSpread({}, getBoxProps(props)), props, {
|
|
115
118
|
isScrollAttribute: 'data-scroll',
|
|
116
119
|
eleRef: 'ref',
|
|
117
120
|
dataId: 'data-id',
|
|
121
|
+
testId: 'data-test-id',
|
|
118
122
|
tourId: 'data-tour',
|
|
119
123
|
dataSelectorId: 'data-selector-id'
|
|
120
124
|
});
|
|
121
|
-
return /*#__PURE__*/_react["default"].createElement(tagName,
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(tagName, componentProps);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
Box.propTypes = _propTypes.BoxProps;
|
package/lib/Layout/Container.js
CHANGED
|
@@ -18,7 +18,11 @@ var _LayoutModule = _interopRequireDefault(require("./Layout.module.css"));
|
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
|
+
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
|
+
|
|
25
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
26
|
|
|
23
27
|
/* eslint-disable react/no-unused-prop-types*/
|
|
24
28
|
function getContainerClassNames(props) {
|
|
@@ -126,16 +130,16 @@ function getContainerProps(props) {
|
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
function Container(props) {
|
|
129
|
-
var childProps = getContainerProps(props);
|
|
130
133
|
var tagName = props.tagName;
|
|
131
|
-
(0, _utils.setProps)(
|
|
134
|
+
var componentProps = (0, _utils.setProps)(_objectSpread({}, getContainerProps(props)), props, {
|
|
132
135
|
isScrollAttribute: 'data-scroll',
|
|
133
136
|
eleRef: 'ref',
|
|
134
137
|
dataId: 'data-id',
|
|
138
|
+
testId: 'data-test-id',
|
|
135
139
|
tourId: 'data-tour',
|
|
136
140
|
dataSelectorId: 'data-selector-id'
|
|
137
141
|
});
|
|
138
|
-
return /*#__PURE__*/_react["default"].createElement(tagName,
|
|
142
|
+
return /*#__PURE__*/_react["default"].createElement(tagName, componentProps);
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
Container.propTypes = _propTypes.ContainerProps;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ContainerDefaultProps = exports.BoxDefaultProps = void 0;
|
|
7
7
|
var BoxDefaultProps = {
|
|
8
8
|
dataId: 'boxComponent',
|
|
9
|
+
testId: '',
|
|
9
10
|
isScrollAttribute: false,
|
|
10
11
|
tagName: 'div',
|
|
11
12
|
dataSelectorId: 'box'
|
|
@@ -13,6 +14,7 @@ var BoxDefaultProps = {
|
|
|
13
14
|
exports.BoxDefaultProps = BoxDefaultProps;
|
|
14
15
|
var ContainerDefaultProps = {
|
|
15
16
|
dataId: 'containerComponent',
|
|
17
|
+
testId: '',
|
|
16
18
|
isScrollAttribute: false,
|
|
17
19
|
isCover: true,
|
|
18
20
|
alignBox: 'column',
|
|
@@ -16,6 +16,7 @@ var BoxProps = {
|
|
|
16
16
|
className: _propTypes["default"].string,
|
|
17
17
|
column: _propTypes["default"].oneOf(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']),
|
|
18
18
|
dataId: _propTypes["default"].string,
|
|
19
|
+
testId: _propTypes["default"].string,
|
|
19
20
|
dataSelectorId: _propTypes["default"].string,
|
|
20
21
|
eleRef: _propTypes["default"].func,
|
|
21
22
|
flexible: _propTypes["default"].bool,
|
|
@@ -41,6 +42,7 @@ var ContainerProps = {
|
|
|
41
42
|
children: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].string]),
|
|
42
43
|
className: _propTypes["default"].string,
|
|
43
44
|
dataId: _propTypes["default"].string,
|
|
45
|
+
testId: _propTypes["default"].string,
|
|
44
46
|
dataSelectorId: _propTypes["default"].string,
|
|
45
47
|
eleRef: _propTypes["default"].func,
|
|
46
48
|
hidden: _propTypes["default"].array,
|
package/lib/Layout/utils.js
CHANGED
|
@@ -46,8 +46,12 @@ function isInteger(value) {
|
|
|
46
46
|
|
|
47
47
|
function setProps(childProps, props) {
|
|
48
48
|
var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
49
|
-
Object.keys(values).
|
|
49
|
+
Object.keys(values).forEach(function (value) {
|
|
50
50
|
if (props[value]) {
|
|
51
|
+
if (value === 'dataId') {
|
|
52
|
+
childProps['data-test-id'] = props[value];
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
childProps[values[value]] = props[value];
|
|
52
56
|
}
|
|
53
57
|
});
|
|
@@ -991,6 +991,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
991
991
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
992
992
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
993
993
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
994
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
994
995
|
"data-title": isDisabled ? title : null,
|
|
995
996
|
onClick: this.handleInputFocus,
|
|
996
997
|
"data-selector-id": dataSelectorId
|
|
@@ -475,6 +475,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
475
475
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
476
476
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
477
477
|
"data-id": dataIdMultiSelectComp,
|
|
478
|
+
"data-test-id": dataIdMultiSelectComp,
|
|
478
479
|
"data-title": isDisabled ? title : null,
|
|
479
480
|
onClick: this.handleInputFocus,
|
|
480
481
|
"data-selector-id": dataSelectorId
|
|
@@ -79,21 +79,25 @@ var EmptyState = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLoading ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
80
|
className: className,
|
|
81
81
|
"data-id": "".concat(dataId, "_Loading"),
|
|
82
|
+
"data-test-id": "".concat(dataId, "_Loading"),
|
|
82
83
|
role: role,
|
|
83
84
|
id: htmlId
|
|
84
85
|
}, loadingText) : searchString.length && suggestions.length === 0 ? getCustomEmptyState ? getCustomEmptyState() : /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
86
|
className: className,
|
|
86
87
|
"data-id": "".concat(dataId, "_srchEmptyMsg"),
|
|
88
|
+
"data-test-id": "".concat(dataId, "_srchEmptyMsg"),
|
|
87
89
|
role: role,
|
|
88
90
|
id: htmlId
|
|
89
91
|
}, searchEmptyText || emptyText) : options.length === 0 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
92
|
className: className,
|
|
91
93
|
"data-id": "".concat(dataId, "_noOptnsMsg"),
|
|
94
|
+
"data-test-id": "".concat(dataId, "_noOptnsMsg"),
|
|
92
95
|
role: role,
|
|
93
96
|
id: htmlId
|
|
94
97
|
}, emptyText) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
98
|
className: className,
|
|
96
99
|
"data-id": "".concat(dataId, "_NoMoreOptionMsg"),
|
|
100
|
+
"data-test-id": "".concat(dataId, "_NoMoreOptionMsg"),
|
|
97
101
|
role: role,
|
|
98
102
|
id: htmlId
|
|
99
103
|
}, noMoreText || emptyText));
|
|
@@ -1012,6 +1012,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1012
1012
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1013
1013
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
1014
1014
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1015
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1015
1016
|
"data-title": isDisabled ? title : null,
|
|
1016
1017
|
onClick: this.handleInputFocus,
|
|
1017
1018
|
"data-selector-id": dataSelectorId
|
|
@@ -197,6 +197,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
197
197
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
198
|
className: " ".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
199
199
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
200
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
200
201
|
"data-title": isDisabled ? title : null,
|
|
201
202
|
onClick: this.handleInputFocus,
|
|
202
203
|
"data-selector-id": dataSelectorId
|
package/lib/Popup/Popup.js
CHANGED
|
@@ -406,10 +406,7 @@ var Popup = function Popup(Component) {
|
|
|
406
406
|
dropElement = _openedPopup.dropElement,
|
|
407
407
|
placeHolderElement = _openedPopup.placeHolderElement;
|
|
408
408
|
var isDropBoxChild = (0, _Common.isDescendant)(dropElement, target);
|
|
409
|
-
var isTargetChild = (0, _Common.isDescendant)(placeHolderElement, target); // const
|
|
410
|
-
// '[data-id=massUpdatePopup]'
|
|
411
|
-
// );
|
|
412
|
-
// const isPopupMassUpdateChild = isDescendant(
|
|
409
|
+
var isTargetChild = (0, _Common.isDescendant)(placeHolderElement, target); // const isPopupMassUpdateChild = isDescendant(
|
|
413
410
|
// massUpdateParent,
|
|
414
411
|
// dropElement
|
|
415
412
|
// );
|
package/lib/Ribbon/Ribbon.js
CHANGED
|
@@ -63,6 +63,7 @@ var Ribbon = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
64
64
|
className: "".concat(_RibbonModule["default"].basic, " ").concat(customClass, " ").concat(type !== 'tag' ? type === 'plain' || type === 'box' || type === 'stamp' ? "".concat(_RibbonModule["default"]["plain_".concat(palette)], " \n ").concat(type === 'box' ? _RibbonModule["default"]["box_".concat(palette)] : '', " ").concat(type === 'stamp' ? _RibbonModule["default"]["stamp_".concat(palette)] : '') : "".concat(_RibbonModule["default"]["palette_".concat(palette)], " ").concat(type === 'default' ? _RibbonModule["default"]["default_".concat(palette)] : '') : '', " ").concat(_RibbonModule["default"][size], " ").concat(_RibbonModule["default"][type]),
|
|
65
65
|
"data-id": dataId,
|
|
66
|
+
"data-test-id": dataId,
|
|
66
67
|
"data-selector-id": dataSelectorId
|
|
67
68
|
}, type === 'sticker' ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
68
69
|
className: _RibbonModule["default"].after
|
|
@@ -687,6 +687,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
687
687
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
688
688
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
|
|
689
689
|
"data-id": dataIdSlctComp,
|
|
690
|
+
"data-test-id": dataIdSlctComp,
|
|
690
691
|
"data-title": isDisabled ? title : null,
|
|
691
692
|
"data-selector-id": dataSelectorId
|
|
692
693
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/Select/Select.js
CHANGED
|
@@ -803,7 +803,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
803
803
|
className: "".concat(className ? className : ''),
|
|
804
804
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
805
805
|
ref: getTargetRef,
|
|
806
|
-
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
|
|
806
|
+
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
807
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
|
|
807
808
|
}, needSelectDownIcon ? /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
808
809
|
a11y: {
|
|
809
810
|
role: 'Menuitem',
|
|
@@ -232,6 +232,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
232
232
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
233
233
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(className ? className : ''),
|
|
234
234
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
235
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
235
236
|
"data-title": isDisabled ? title : null,
|
|
236
237
|
"data-selector-id": dataSelectorId
|
|
237
238
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -243,6 +244,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
243
244
|
}, selectedId ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
244
245
|
className: _MultiSelectModule["default"].tag,
|
|
245
246
|
"data-id": "".concat(dataId, "_SelectTag"),
|
|
247
|
+
"data-test-id": "".concat(dataId, "_SelectTag"),
|
|
246
248
|
key: "".concat(id, "tag")
|
|
247
249
|
}, /*#__PURE__*/_react["default"].createElement(_Tag["default"], {
|
|
248
250
|
avatarPalette: avatarPalette,
|
|
@@ -430,7 +430,8 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
430
430
|
className: "".concat(className ? className : ''),
|
|
431
431
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
432
432
|
ref: getTargetRef,
|
|
433
|
-
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
|
|
433
|
+
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
434
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
|
|
434
435
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
435
436
|
alignBox: "row"
|
|
436
437
|
}, needIcon ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
package/lib/Switch/Switch.js
CHANGED
|
@@ -125,6 +125,7 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
|
125
125
|
}), /*#__PURE__*/_react["default"].createElement("label", {
|
|
126
126
|
htmlFor: id,
|
|
127
127
|
"data-id": dataId,
|
|
128
|
+
"data-test-id": dataId,
|
|
128
129
|
className: "".concat(_SwitchModule["default"].label, " ").concat(_SwitchModule["default"]["".concat(size, "Label")], " ").concat(customSwitch)
|
|
129
130
|
})), text && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
130
131
|
text: text,
|
package/lib/Tab/Tabs.js
CHANGED
|
@@ -661,7 +661,8 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
|
661
661
|
}, this.renderTabs(mainTabs, moreTabs, false))), otherTabs.length ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, otherTabs) : null, isAnimate && needTabBorder && needAppearance && /*#__PURE__*/_react["default"].createElement("div", {
|
|
662
662
|
className: hlClass,
|
|
663
663
|
ref: this.getHighlightRef,
|
|
664
|
-
"data-id": dataId
|
|
664
|
+
"data-id": dataId,
|
|
665
|
+
"data-test-id": dataId
|
|
665
666
|
})));
|
|
666
667
|
}
|
|
667
668
|
}]);
|
package/lib/Tag/Tag.js
CHANGED
|
@@ -154,6 +154,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
|
154
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
155
|
className: "".concat(_TagModule["default"].container, " ").concat(needEffect && !isReadOnly ? _TagModule["default"].effect : _TagModule["default"].readonly, " ").concat(active ? "".concat(_TagModule["default"].selected, " ").concat(_TagModule["default"]["active".concat(palette)]) : '', " ").concat(onRemove ? active ? "".concat(_TagModule["default"]["active".concat(size, "Effect")]) : '' : '', " ").concat(_TagModule["default"][size], " ").concat(rounded ? _TagModule["default"].lgRadius : _TagModule["default"].smRadius, " ").concat(_TagModule["default"][palette], " ").concat(disabled ? _TagModule["default"].disabled : '', " ").concat(onSelectTag ? _TagModule["default"].pointer : '', " ").concat(customTag),
|
|
156
156
|
"data-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
157
|
+
"data-test-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
157
158
|
onClick: this.handleSelect,
|
|
158
159
|
ref: this.getRef,
|
|
159
160
|
"data-title": tooltip ? tooltip : text,
|
package/lib/TextBox/TextBox.js
CHANGED
|
@@ -189,6 +189,7 @@ var Textbox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
189
189
|
"aria-multiselectable": ariaMultiselectable,
|
|
190
190
|
className: "".concat(isReadOnly && needReadOnlyStyle ? _TextBoxModule["default"].readonly : '', " ").concat(isClickable ? _TextBoxModule["default"].pointer : '', " ").concat(classList, " ").concat(_TextBoxModule["default"]["borderColor_".concat(borderColor)], " ").concat(customClass ? customClass : ''),
|
|
191
191
|
"data-id": "".concat(dataId),
|
|
192
|
+
"data-test-id": "".concat(dataId),
|
|
192
193
|
"data-selector-id": dataSelectorId,
|
|
193
194
|
id: htmlId || id,
|
|
194
195
|
maxLength: maxLength,
|
package/lib/Textarea/Textarea.js
CHANGED
package/lib/Tooltip/Tooltip.js
CHANGED
|
@@ -552,7 +552,8 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
552
552
|
width: width
|
|
553
553
|
},
|
|
554
554
|
ref: this.getToolTipDOM,
|
|
555
|
-
"data-id": dataId
|
|
555
|
+
"data-id": dataId,
|
|
556
|
+
"data-test-id": dataId
|
|
556
557
|
}, !dataTooltipnoArrow ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
557
558
|
className: "".concat(_TooltipModule["default"].tooltiparrow, " ").concat(arrowStyle),
|
|
558
559
|
style: {
|