@widergy/energy-ui 3.76.0 → 3.77.0
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/CHANGELOG.md +7 -0
- package/dist/components/UTAlert/index.js +4 -5
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +3 -3
- package/dist/components/UTBarChart/components/XAxis/index.js +4 -5
- package/dist/components/UTBreadcrumbs/index.js +4 -4
- package/dist/components/UTCreditCard/index.js +10 -13
- package/dist/components/UTDialog/index.js +6 -9
- package/dist/components/UTOnboarding/index.js +7 -11
- package/dist/components/UTPanel/versions/V0/index.js +4 -5
- package/dist/components/UTPanel/versions/V1/index.js +6 -9
- package/dist/components/UTStatusMessage/index.js +6 -9
- package/dist/components/UTTable/components/ResponsiveCell/index.js +7 -4
- package/dist/components/UTTable/components/TableHeader/index.js +3 -3
- package/dist/components/UTTable/components/TableRow/index.js +6 -3
- package/dist/components/UTTable/index.js +14 -6
- package/dist/components/UTTabs/index.js +3 -3
- package/dist/components/UTWorkflowContainer/versions/V0/index.js +4 -5
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/index.js +6 -9
- package/dist/components/UTWorkflowContainer/versions/V1/index.js +7 -11
- package/dist/constants/testIds.js +76 -66
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.77.0](https://github.com/widergy/energy-ui/compare/v3.76.0...v3.77.0) (2025-05-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* [AUT-597] new testid structure object ([#618](https://github.com/widergy/energy-ui/issues/618)) ([adb5090](https://github.com/widergy/energy-ui/commit/adb509016b0bc7b009813f397199e7592b0630d4))
|
|
7
|
+
|
|
1
8
|
# [3.76.0](https://github.com/widergy/energy-ui/compare/v3.75.0...v3.76.0) (2025-05-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -25,9 +25,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
25
25
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
26
26
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
27
|
const {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} = _testIds.COMPONENT_IDS.snackBarIds;
|
|
28
|
+
snackBar
|
|
29
|
+
} = _testIds.TEST_IDS;
|
|
31
30
|
const variantIcon = {
|
|
32
31
|
error: _Error.default,
|
|
33
32
|
info: _Info.default,
|
|
@@ -67,9 +66,9 @@ class UTAlert extends _react.PureComponent {
|
|
|
67
66
|
render() {
|
|
68
67
|
const {
|
|
69
68
|
classes = {},
|
|
70
|
-
closeDataTestId =
|
|
69
|
+
closeDataTestId = snackBar.closeButton,
|
|
71
70
|
content: alert = {},
|
|
72
|
-
labelDataTestId =
|
|
71
|
+
labelDataTestId = snackBar.label,
|
|
73
72
|
withoutIcon
|
|
74
73
|
} = this.props;
|
|
75
74
|
const anchor = {
|
|
@@ -14,8 +14,8 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
14
14
|
var _constants = require("./constants");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
const {
|
|
17
|
-
|
|
18
|
-
} = _testIds.
|
|
17
|
+
barChart
|
|
18
|
+
} = _testIds.TEST_IDS;
|
|
19
19
|
const Bar = _ref => {
|
|
20
20
|
let {
|
|
21
21
|
width,
|
|
@@ -38,7 +38,7 @@ const Bar = _ref => {
|
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
|
|
39
39
|
className: tooltipClassName,
|
|
40
40
|
content: tooltipContent,
|
|
41
|
-
dataTestId: "".concat(
|
|
41
|
+
dataTestId: "".concat(barChart.bar.tooltip).concat(id),
|
|
42
42
|
interactive: false,
|
|
43
43
|
stringContentClassName: _stylesModule.default.tooltip
|
|
44
44
|
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
@@ -16,9 +16,8 @@ var _constants = require("./constants");
|
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
18
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = _testIds.COMPONENT_IDS.barChartIds;
|
|
19
|
+
barChart
|
|
20
|
+
} = _testIds.TEST_IDS;
|
|
22
21
|
const XAxis = _ref => {
|
|
23
22
|
let {
|
|
24
23
|
data,
|
|
@@ -87,7 +86,7 @@ const XAxis = _ref => {
|
|
|
87
86
|
labelBackgroundPadding: labelBackgroundPadding,
|
|
88
87
|
labelYOffset: labelYOffset,
|
|
89
88
|
mainLabel: mainLabel,
|
|
90
|
-
mainLabelDataTestId: "".concat(
|
|
89
|
+
mainLabelDataTestId: "".concat(barChart.xAxis.mainLabel).concat(index),
|
|
91
90
|
mainLabelStyles: mainLabelStyles,
|
|
92
91
|
selected: selected,
|
|
93
92
|
selectedLabelBackground: selectedLabelBackground,
|
|
@@ -106,7 +105,7 @@ const XAxis = _ref => {
|
|
|
106
105
|
color: color || '',
|
|
107
106
|
graphYStart: graphYStart,
|
|
108
107
|
secondaryLabel: secondaryLabel,
|
|
109
|
-
secondaryLabelDataTestId: "".concat(
|
|
108
|
+
secondaryLabelDataTestId: "".concat(barChart.xAxis.secondaryLabel).concat(index),
|
|
110
109
|
x: xAxis(index) + xOffset,
|
|
111
110
|
yOffset: _constants.Y_OFFSET
|
|
112
111
|
});
|
|
@@ -19,8 +19,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
20
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
21
21
|
const {
|
|
22
|
-
|
|
23
|
-
} = _testIds.
|
|
22
|
+
breadcrumbs: breadcrumbsIds
|
|
23
|
+
} = _testIds.TEST_IDS;
|
|
24
24
|
const UTBreadcrumbs = _ref => {
|
|
25
25
|
let {
|
|
26
26
|
breadcrumbs,
|
|
@@ -153,7 +153,7 @@ const UTBreadcrumbs = _ref => {
|
|
|
153
153
|
key: "".concat(route, "-").concat(label)
|
|
154
154
|
}, !route && !menuItems || disableMenu ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
155
155
|
className: _stylesModule.default.label,
|
|
156
|
-
dataTestId: dataTestId ? "".concat(dataTestId, ".").concat(index) : "".concat(
|
|
156
|
+
dataTestId: dataTestId ? "".concat(dataTestId, ".").concat(index) : "".concat(breadcrumbsIds.item, ".").concat(index),
|
|
157
157
|
variant: "small",
|
|
158
158
|
weight: "medium"
|
|
159
159
|
}, colorThemesDefinition.label), label) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
|
|
@@ -162,7 +162,7 @@ const UTBreadcrumbs = _ref => {
|
|
|
162
162
|
childrenContainer: overflowControl ? _stylesModule.default.buttonContainer : null,
|
|
163
163
|
text: overflowControl ? _stylesModule.default.ellipsis : null
|
|
164
164
|
},
|
|
165
|
-
dataTestId: dataTestId ? "".concat(dataTestId, ".").concat(index) : "".concat(
|
|
165
|
+
dataTestId: dataTestId ? "".concat(dataTestId, ".").concat(index) : "".concat(breadcrumbsIds.item, ".").concat(index),
|
|
166
166
|
onClick: handleClick,
|
|
167
167
|
size: "small",
|
|
168
168
|
variant: "text"
|
|
@@ -16,11 +16,8 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
cvcFieldId,
|
|
22
|
-
cardFieldId
|
|
23
|
-
} = _testIds.COMPONENT_IDS.creditCardIds;
|
|
19
|
+
creditCard
|
|
20
|
+
} = _testIds.TEST_IDS;
|
|
24
21
|
const UTCreditCard = _ref => {
|
|
25
22
|
var _value$expYearField;
|
|
26
23
|
let {
|
|
@@ -89,13 +86,13 @@ const UTCreditCard = _ref => {
|
|
|
89
86
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
90
87
|
className: _stylesModule.default.fields
|
|
91
88
|
}, /*#__PURE__*/_react.default.createElement(_UTTextInput.default, {
|
|
92
|
-
dataTestId:
|
|
89
|
+
dataTestId: creditCard.cardField,
|
|
93
90
|
error: errors[cardField],
|
|
94
91
|
onChange: onChangeField(cardField),
|
|
95
92
|
onFocus: () => setFocused(_constants.fields.NUMBER),
|
|
96
93
|
required: true,
|
|
97
94
|
title: numberTitle,
|
|
98
|
-
validationDataTestId: "".concat(
|
|
95
|
+
validationDataTestId: "".concat(creditCard.cardField, ".validation"),
|
|
99
96
|
value: values[cardField],
|
|
100
97
|
version: "V1"
|
|
101
98
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -104,37 +101,37 @@ const UTCreditCard = _ref => {
|
|
|
104
101
|
classNames: {
|
|
105
102
|
container: _stylesModule.default.inRow
|
|
106
103
|
},
|
|
107
|
-
dataTestId:
|
|
104
|
+
dataTestId: creditCard.expires,
|
|
108
105
|
error: errors[expires],
|
|
109
106
|
onChange: onChangeField(expires),
|
|
110
107
|
onFocus: () => setFocused(_constants.fields.EXPIRY),
|
|
111
108
|
required: true,
|
|
112
109
|
title: expiryTitle,
|
|
113
|
-
validationDataTestId: "".concat(
|
|
110
|
+
validationDataTestId: "".concat(creditCard.expires, ".validation"),
|
|
114
111
|
value: values[expires],
|
|
115
112
|
version: "V1"
|
|
116
113
|
}), /*#__PURE__*/_react.default.createElement(_UTPasswordField.default, {
|
|
117
114
|
classNames: {
|
|
118
115
|
container: _stylesModule.default.inRow
|
|
119
116
|
},
|
|
120
|
-
dataTestId:
|
|
117
|
+
dataTestId: creditCard.cvcField,
|
|
121
118
|
error: errors[cvcField],
|
|
122
119
|
onChange: onChangeField(cvcField),
|
|
123
120
|
onVisibilityToggle: setCvcVisibility,
|
|
124
121
|
title: cvcTitle,
|
|
125
122
|
required: true,
|
|
126
123
|
onFocus: () => setFocused(_constants.fields.CVC),
|
|
127
|
-
validationDataTestId: "".concat(
|
|
124
|
+
validationDataTestId: "".concat(creditCard.cvcField, ".validation"),
|
|
128
125
|
value: values[cvcField],
|
|
129
126
|
version: "V1"
|
|
130
127
|
})), /*#__PURE__*/_react.default.createElement(_UTTextInput.default, {
|
|
131
|
-
dataTestId:
|
|
128
|
+
dataTestId: creditCard.nameField,
|
|
132
129
|
error: errors[nameFiled],
|
|
133
130
|
onChange: onChangeField(nameFiled),
|
|
134
131
|
required: true,
|
|
135
132
|
onFocus: () => setFocused(_constants.fields.NAME),
|
|
136
133
|
title: nameTitle,
|
|
137
|
-
validationDataTestId: "".concat(
|
|
134
|
+
validationDataTestId: "".concat(creditCard.nameField, ".validation"),
|
|
138
135
|
value: values[nameFiled],
|
|
139
136
|
version: "V1"
|
|
140
137
|
})));
|
|
@@ -22,22 +22,19 @@ var _constants = require("./constants");
|
|
|
22
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
23
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
24
24
|
const {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
closeButtonId,
|
|
28
|
-
titleId
|
|
29
|
-
} = _testIds.COMPONENT_IDS.dialogIds;
|
|
25
|
+
dialog
|
|
26
|
+
} = _testIds.TEST_IDS;
|
|
30
27
|
const UTDialog = _ref => {
|
|
31
28
|
let {
|
|
32
29
|
acceptButton,
|
|
33
|
-
acceptButtonDataTestId =
|
|
30
|
+
acceptButtonDataTestId = dialog.acceptButton,
|
|
34
31
|
alertConfig,
|
|
35
32
|
cancelButton,
|
|
36
|
-
cancelButtonDataTestId =
|
|
33
|
+
cancelButtonDataTestId = dialog.cancelButton,
|
|
37
34
|
children,
|
|
38
35
|
classNames,
|
|
39
36
|
classes,
|
|
40
|
-
closeButtonDataTestId =
|
|
37
|
+
closeButtonDataTestId = dialog.closeButton,
|
|
41
38
|
contentName,
|
|
42
39
|
dialogProps,
|
|
43
40
|
disableEnforceFocus,
|
|
@@ -49,7 +46,7 @@ const UTDialog = _ref => {
|
|
|
49
46
|
onRequestClose,
|
|
50
47
|
roundedCloseButton,
|
|
51
48
|
title,
|
|
52
|
-
titleDataTestId =
|
|
49
|
+
titleDataTestId = dialog.title,
|
|
53
50
|
TransitionProps,
|
|
54
51
|
warningAlert,
|
|
55
52
|
whiteTitle,
|
|
@@ -18,27 +18,23 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
20
|
const {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
nextButtonId,
|
|
24
|
-
prevButtonId,
|
|
25
|
-
titleId
|
|
26
|
-
} = _testIds.COMPONENT_IDS.onboardingIds;
|
|
21
|
+
onboarding
|
|
22
|
+
} = _testIds.TEST_IDS;
|
|
27
23
|
const UTOnboarding = _ref => {
|
|
28
24
|
var _steps$currentStep$is, _steps$currentStep, _steps$currentStep$hi, _steps$currentStep2, _steps$currentStep3, _steps$currentStep4;
|
|
29
25
|
let {
|
|
30
26
|
classNames,
|
|
31
27
|
classes: themeClasses,
|
|
32
|
-
closeButtonDataTestId =
|
|
33
|
-
descriptionDataTestId =
|
|
28
|
+
closeButtonDataTestId = onboarding.close,
|
|
29
|
+
descriptionDataTestId = onboarding.description,
|
|
34
30
|
enabled,
|
|
35
31
|
handleComplete,
|
|
36
32
|
handleOnClose,
|
|
37
|
-
nextButtonDataTestId =
|
|
33
|
+
nextButtonDataTestId = onboarding.nextButton,
|
|
38
34
|
options,
|
|
39
|
-
prevButtonDataTestId =
|
|
35
|
+
prevButtonDataTestId = onboarding.prevButton,
|
|
40
36
|
steps,
|
|
41
|
-
titleDataTestId =
|
|
37
|
+
titleDataTestId = onboarding.title,
|
|
42
38
|
variant
|
|
43
39
|
} = _ref;
|
|
44
40
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [themeClasses, classNames]) || {};
|
|
@@ -18,14 +18,13 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
20
|
const {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _testIds.COMPONENT_IDS.panelIds;
|
|
21
|
+
panel
|
|
22
|
+
} = _testIds.TEST_IDS;
|
|
24
23
|
const UTPanel = _ref => {
|
|
25
24
|
let {
|
|
26
25
|
children,
|
|
27
26
|
classes = {},
|
|
28
|
-
closeButtonDataTestId =
|
|
27
|
+
closeButtonDataTestId = panel.closeButton,
|
|
29
28
|
containerRef,
|
|
30
29
|
disableScrollbar = false,
|
|
31
30
|
modalProps,
|
|
@@ -37,7 +36,7 @@ const UTPanel = _ref => {
|
|
|
37
36
|
perfectScrollbarOptions,
|
|
38
37
|
title,
|
|
39
38
|
TitleComponent,
|
|
40
|
-
titleDataTestId =
|
|
39
|
+
titleDataTestId = panel.title,
|
|
41
40
|
TitleIcon,
|
|
42
41
|
...props
|
|
43
42
|
} = _ref;
|
|
@@ -26,18 +26,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
26
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
27
27
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
28
28
|
const {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
secondaryActionId,
|
|
32
|
-
titleId
|
|
33
|
-
} = _testIds.COMPONENT_IDS.panelIds;
|
|
29
|
+
panel
|
|
30
|
+
} = _testIds.TEST_IDS;
|
|
34
31
|
const UTPanel = _ref => {
|
|
35
32
|
let {
|
|
36
33
|
BackdropProps = {},
|
|
37
34
|
children,
|
|
38
35
|
classes: theme,
|
|
39
36
|
classNames,
|
|
40
|
-
closeButtonDataTestId =
|
|
37
|
+
closeButtonDataTestId = panel.closeButton,
|
|
41
38
|
collapsableHeader = false,
|
|
42
39
|
currentStep = 1,
|
|
43
40
|
disableScrollbar = false,
|
|
@@ -49,7 +46,7 @@ const UTPanel = _ref => {
|
|
|
49
46
|
hideHeader = false,
|
|
50
47
|
hideMainButton = false,
|
|
51
48
|
isWorkflow = false,
|
|
52
|
-
mainActionDataTestId =
|
|
49
|
+
mainActionDataTestId = panel.mainAction,
|
|
53
50
|
mainButton = {},
|
|
54
51
|
modalProps,
|
|
55
52
|
onClose,
|
|
@@ -58,13 +55,13 @@ const UTPanel = _ref => {
|
|
|
58
55
|
open,
|
|
59
56
|
panelSide,
|
|
60
57
|
perfectScrollbarOptions,
|
|
61
|
-
secondaryActionDataTestId =
|
|
58
|
+
secondaryActionDataTestId = panel.secondaryAction,
|
|
62
59
|
singleHeaderItemsColumn = false,
|
|
63
60
|
size = 'M',
|
|
64
61
|
stepsCount,
|
|
65
62
|
subtitle = '',
|
|
66
63
|
title = '',
|
|
67
|
-
titleDataTestId =
|
|
64
|
+
titleDataTestId = panel.title,
|
|
68
65
|
titleProps = {},
|
|
69
66
|
...props
|
|
70
67
|
} = _ref;
|
|
@@ -18,11 +18,8 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
20
|
const {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
iconId,
|
|
24
|
-
titleId
|
|
25
|
-
} = _testIds.COMPONENT_IDS.statusMessageIds;
|
|
21
|
+
statusMessage
|
|
22
|
+
} = _testIds.TEST_IDS;
|
|
26
23
|
const UTStatusMessage = _ref => {
|
|
27
24
|
let {
|
|
28
25
|
children,
|
|
@@ -58,26 +55,26 @@ const UTStatusMessage = _ref => {
|
|
|
58
55
|
}, /*#__PURE__*/_react.default.createElement(_UTIcon.default, _extends({
|
|
59
56
|
name: icon,
|
|
60
57
|
colorTheme: _constants.ICON_COLOR_THEMES[colorTheme],
|
|
61
|
-
dataTestId:
|
|
58
|
+
dataTestId: statusMessage.icon
|
|
62
59
|
}, iconProps)))) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
63
60
|
className: "".concat(_stylesModule.default.content, " ").concat(classes.content)
|
|
64
61
|
}, (title || description || helpText) && /*#__PURE__*/_react.default.createElement("div", {
|
|
65
62
|
className: _stylesModule.default.section
|
|
66
63
|
}, title && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
67
64
|
className: _stylesModule.default.label,
|
|
68
|
-
dataTestId:
|
|
65
|
+
dataTestId: statusMessage.title,
|
|
69
66
|
variant: "title3",
|
|
70
67
|
weight: "medium"
|
|
71
68
|
}, titleProps), title), description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
72
69
|
className: _stylesModule.default.label,
|
|
73
70
|
colorTheme: "gray",
|
|
74
|
-
dataTestId:
|
|
71
|
+
dataTestId: statusMessage.description,
|
|
75
72
|
withMarkdown: true,
|
|
76
73
|
variant: "body"
|
|
77
74
|
}, descriptionProps), description), helpText && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
78
75
|
className: _stylesModule.default.label,
|
|
79
76
|
colorTheme: "gray",
|
|
80
|
-
dataTestId:
|
|
77
|
+
dataTestId: statusMessage.helperText,
|
|
81
78
|
variant: "small"
|
|
82
79
|
}, helpTextProps), helpText)), children, (primaryAction || secondaryAction) && /*#__PURE__*/_react.default.createElement("div", {
|
|
83
80
|
className: _stylesModule.default.section
|
|
@@ -14,12 +14,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
15
|
const ResponsiveCell = _ref => {
|
|
16
16
|
let {
|
|
17
|
+
classes,
|
|
17
18
|
column,
|
|
19
|
+
dataTestId,
|
|
20
|
+
defaultNullValue,
|
|
18
21
|
rowData,
|
|
19
|
-
classes,
|
|
20
22
|
rowStyles,
|
|
21
|
-
showBottomBorder
|
|
22
|
-
defaultNullValue
|
|
23
|
+
showBottomBorder
|
|
23
24
|
} = _ref;
|
|
24
25
|
const isBigCell = _constants.COLUMN_SIZES[column.size] > _constants.COLUMN_SIZES.medium || column.cellRenderer && !column.asRowInResponsive || column.type === _constants.CELL_TYPES.STATUS;
|
|
25
26
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, column.categoryName && /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -28,6 +29,7 @@ const ResponsiveCell = _ref => {
|
|
|
28
29
|
...rowStyles.responsiveCell
|
|
29
30
|
}
|
|
30
31
|
}, column.categoryName), /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
+
"data-testid": dataTestId,
|
|
31
33
|
className: "".concat(showBottomBorder ? "".concat(_stylesModule.default.lastCellContainer, " ").concat(classes.lastCellContainer) : _stylesModule.default.cellContainer, " ").concat(classes.responsiveCell, " ").concat(isBigCell ? _stylesModule.default.bigCell : _stylesModule.default.smallCell),
|
|
32
34
|
style: {
|
|
33
35
|
...rowStyles.responsiveCell
|
|
@@ -51,6 +53,7 @@ ResponsiveCell.propTypes = {
|
|
|
51
53
|
rowData: _propTypes.object,
|
|
52
54
|
rowStyles: _propTypes.object,
|
|
53
55
|
showBottomBorder: _propTypes.bool,
|
|
54
|
-
defaultNullValue: _propTypes.string
|
|
56
|
+
defaultNullValue: _propTypes.string,
|
|
57
|
+
dataTestId: _propTypes.string
|
|
55
58
|
};
|
|
56
59
|
var _default = exports.default = ResponsiveCell;
|
|
@@ -27,8 +27,8 @@ RefreshIcon.defaultProps = {
|
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg"
|
|
28
28
|
};
|
|
29
29
|
const {
|
|
30
|
-
|
|
31
|
-
} = _testIds.
|
|
30
|
+
table
|
|
31
|
+
} = _testIds.TEST_IDS;
|
|
32
32
|
const TableHeader = _ref => {
|
|
33
33
|
let {
|
|
34
34
|
classes,
|
|
@@ -44,7 +44,7 @@ const TableHeader = _ref => {
|
|
|
44
44
|
className: _stylesModule.default.titleContainer
|
|
45
45
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
46
46
|
className: classes.tableTitle,
|
|
47
|
-
dataTestId: titleDataTestId !== null && titleDataTestId !== void 0 ? titleDataTestId :
|
|
47
|
+
dataTestId: titleDataTestId !== null && titleDataTestId !== void 0 ? titleDataTestId : table.tableHeader.title,
|
|
48
48
|
variant: "subtitle1",
|
|
49
49
|
weight: "medium"
|
|
50
50
|
}, title), onReload && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
@@ -22,6 +22,9 @@ var _constants2 = require("./constants");
|
|
|
22
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
23
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
24
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
25
|
+
const {
|
|
26
|
+
CELL
|
|
27
|
+
} = _testIds.ID_CONSTANTS;
|
|
25
28
|
const TableRow = _ref => {
|
|
26
29
|
let {
|
|
27
30
|
actionDataTestId,
|
|
@@ -102,7 +105,7 @@ const TableRow = _ref => {
|
|
|
102
105
|
actionDataTestId: actionDataTestId,
|
|
103
106
|
column: column,
|
|
104
107
|
columnSizes: columnSizes,
|
|
105
|
-
dataTestId: "".concat(cellDataTestId, ".fixedLeft.column_").concat(i, ".").concat(
|
|
108
|
+
dataTestId: "".concat(cellDataTestId, ".fixedLeft.column_").concat(i, ".").concat(CELL),
|
|
106
109
|
key: "cell_".concat(column.key)
|
|
107
110
|
}, cellProps))), !(0, _array.isEmpty)(secondaryActions) && /*#__PURE__*/_react.default.createElement("div", {
|
|
108
111
|
className: _stylesModule.default.secondaryActions
|
|
@@ -121,7 +124,7 @@ const TableRow = _ref => {
|
|
|
121
124
|
actionDataTestId: actionDataTestId,
|
|
122
125
|
column: column,
|
|
123
126
|
columnSizes: columnSizes,
|
|
124
|
-
dataTestId: "".concat(cellDataTestId, ".secondary.column_").concat(index, ".").concat(
|
|
127
|
+
dataTestId: "".concat(cellDataTestId, ".secondary.column_").concat(index, ".").concat(CELL),
|
|
125
128
|
key: "cell_".concat(column.key)
|
|
126
129
|
}, cellProps, {
|
|
127
130
|
showBottomBorder: index === secondaryColumns.length - 1 && (0, _array.isEmpty)(primaryActions),
|
|
@@ -145,7 +148,7 @@ const TableRow = _ref => {
|
|
|
145
148
|
align: _constants.COLUMN_POSITION.RIGHT,
|
|
146
149
|
column: column,
|
|
147
150
|
columnSizes: columnSizes,
|
|
148
|
-
dataTestId: "".concat(cellDataTestId, ".fixedRight.column_").concat(i, ".").concat(
|
|
151
|
+
dataTestId: "".concat(cellDataTestId, ".fixedRight.column_").concat(i, ".").concat(CELL),
|
|
149
152
|
key: "cell_".concat(column.key)
|
|
150
153
|
}, cellProps)))));
|
|
151
154
|
};
|
|
@@ -30,6 +30,14 @@ var _constants = require("./constants");
|
|
|
30
30
|
var _hook = require("./hook");
|
|
31
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
32
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
33
|
+
const {
|
|
34
|
+
ACTIONS,
|
|
35
|
+
CELL,
|
|
36
|
+
HEADER,
|
|
37
|
+
SELECTION_COMPONENT,
|
|
38
|
+
TABLE,
|
|
39
|
+
TABLE_ROW
|
|
40
|
+
} = _testIds.ID_CONSTANTS;
|
|
33
41
|
const UTTable = _ref => {
|
|
34
42
|
let {
|
|
35
43
|
actionDataTestId,
|
|
@@ -215,8 +223,8 @@ const UTTable = _ref => {
|
|
|
215
223
|
const isRowClickable = onRowClick && (!clickableRowValidation || clickableRowValidation(row));
|
|
216
224
|
const handleRowClick = isRowClickable ? event => onRowClick(event, row) : undefined;
|
|
217
225
|
return /*#__PURE__*/_react.default.createElement(_TableRow.default, {
|
|
218
|
-
actionDataTestId: actionDataTestId !== null && actionDataTestId !== void 0 ? actionDataTestId : "".concat(
|
|
219
|
-
cellDataTestId: cellDataTestId !== null && cellDataTestId !== void 0 ? cellDataTestId : "".concat(
|
|
226
|
+
actionDataTestId: actionDataTestId !== null && actionDataTestId !== void 0 ? actionDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".row_").concat(index, ".").concat(CELL, ".").concat(ACTIONS),
|
|
227
|
+
cellDataTestId: cellDataTestId !== null && cellDataTestId !== void 0 ? cellDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".row_").concat(index),
|
|
220
228
|
CellComponent: CellComponent,
|
|
221
229
|
cellProps: {
|
|
222
230
|
defaultNullValue,
|
|
@@ -250,15 +258,15 @@ const UTTable = _ref => {
|
|
|
250
258
|
rowKey: rowKey,
|
|
251
259
|
rowStyles: rowStyles,
|
|
252
260
|
selectable: selectable,
|
|
253
|
-
selectionComponentDataTestId: selectionComponentDataTestId !== null && selectionComponentDataTestId !== void 0 ? selectionComponentDataTestId : "".concat(
|
|
261
|
+
selectionComponentDataTestId: selectionComponentDataTestId !== null && selectionComponentDataTestId !== void 0 ? selectionComponentDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".row_").concat(index, ".").concat(CELL, ".").concat(SELECTION_COMPONENT),
|
|
254
262
|
selectedRows: selectedRows,
|
|
255
263
|
tableSize: tableWidth
|
|
256
264
|
});
|
|
257
265
|
})));
|
|
258
266
|
const Header = /*#__PURE__*/_react.default.createElement(_TableRow.default, {
|
|
259
|
-
actionDataTestId: headerActionDataTestId !== null && headerActionDataTestId !== void 0 ? headerActionDataTestId : "".concat(
|
|
267
|
+
actionDataTestId: headerActionDataTestId !== null && headerActionDataTestId !== void 0 ? headerActionDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".").concat(HEADER, "Cell.").concat(ACTIONS),
|
|
260
268
|
CellComponent: _HeaderCell.default,
|
|
261
|
-
cellDataTestId: headerCellDataTestId !== null && headerCellDataTestId !== void 0 ? headerCellDataTestId : "".concat(
|
|
269
|
+
cellDataTestId: headerCellDataTestId !== null && headerCellDataTestId !== void 0 ? headerCellDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".").concat(HEADER, "Cell"),
|
|
262
270
|
cellProps: {
|
|
263
271
|
classes,
|
|
264
272
|
handleOrder,
|
|
@@ -286,7 +294,7 @@ const UTTable = _ref => {
|
|
|
286
294
|
rowKey: rowKey,
|
|
287
295
|
rowStyles: rowStyles,
|
|
288
296
|
selectable: selectable,
|
|
289
|
-
selectionComponentDataTestId: headerSelectionComponentDataTestId !== null && headerSelectionComponentDataTestId !== void 0 ? headerSelectionComponentDataTestId : "".concat(
|
|
297
|
+
selectionComponentDataTestId: headerSelectionComponentDataTestId !== null && headerSelectionComponentDataTestId !== void 0 ? headerSelectionComponentDataTestId : "".concat(TABLE, ".").concat(TABLE_ROW, ".").concat(HEADER, "Cell.").concat(SELECTION_COMPONENT),
|
|
290
298
|
selectedRows: selectedRows,
|
|
291
299
|
tableSize: tableWidth
|
|
292
300
|
});
|
|
@@ -24,8 +24,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
25
25
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
const {
|
|
27
|
-
|
|
28
|
-
} = _testIds.
|
|
27
|
+
tabs
|
|
28
|
+
} = _testIds.TEST_IDS;
|
|
29
29
|
class UTTabs extends _react.PureComponent {
|
|
30
30
|
constructor() {
|
|
31
31
|
super(...arguments);
|
|
@@ -78,7 +78,7 @@ class UTTabs extends _react.PureComponent {
|
|
|
78
78
|
disabled: opt.disabled,
|
|
79
79
|
icon: opt.icon,
|
|
80
80
|
component: tabComponent,
|
|
81
|
-
"data-testid": tabProps !== null && tabProps !== void 0 && tabProps.dataTestId ? "".concat(tabProps === null || tabProps === void 0 ? void 0 : tabProps.dataTestId).concat(i) : "".concat(
|
|
81
|
+
"data-testid": tabProps !== null && tabProps !== void 0 && tabProps.dataTestId ? "".concat(tabProps === null || tabProps === void 0 ? void 0 : tabProps.dataTestId).concat(i) : "".concat(tabs.tab).concat(i)
|
|
82
82
|
}, tabProps, lastOptionPropsFinal));
|
|
83
83
|
}), !(0, _array.isEmpty)(badges) && badges.map(badge => /*#__PURE__*/_react.default.createElement("div", {
|
|
84
84
|
className: "".concat(badge.styles, " ").concat(!badge.show && _stylesModule.default.hiddenBadge)
|
|
@@ -22,9 +22,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
22
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
23
23
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
24
24
|
const {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} = _testIds.COMPONENT_IDS.workflowContainerIds;
|
|
25
|
+
workflowContainer
|
|
26
|
+
} = _testIds.TEST_IDS;
|
|
28
27
|
const UTWorkflowContainer = _ref => {
|
|
29
28
|
let {
|
|
30
29
|
backButton,
|
|
@@ -41,9 +40,9 @@ const UTWorkflowContainer = _ref => {
|
|
|
41
40
|
stepCounter: StepCounter,
|
|
42
41
|
stepsCount,
|
|
43
42
|
subtitle,
|
|
44
|
-
subtitleDataTestId =
|
|
43
|
+
subtitleDataTestId = workflowContainer.header.subtitle,
|
|
45
44
|
title,
|
|
46
|
-
titleDataTestId =
|
|
45
|
+
titleDataTestId = workflowContainer.header.tagline,
|
|
47
46
|
TitleIcon,
|
|
48
47
|
withIcon = false,
|
|
49
48
|
wizardConfig = {}
|
|
@@ -16,11 +16,8 @@ var _constants = require("./constants");
|
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
18
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
primaryActionId,
|
|
22
|
-
secondaryActionId
|
|
23
|
-
} = _testIds.COMPONENT_IDS.workflowContainerIds;
|
|
19
|
+
workflowContainer
|
|
20
|
+
} = _testIds.TEST_IDS;
|
|
24
21
|
const NavActions = _ref => {
|
|
25
22
|
var _backButton$dataTestI, _secondaryAction$data, _primaryAction$dataTe, _nextButton$dataTestI;
|
|
26
23
|
let {
|
|
@@ -46,7 +43,7 @@ const NavActions = _ref => {
|
|
|
46
43
|
root: "".concat(_stylesModule.default.navAction, " ").concat(backButton.classes, " ").concat(forceResponsive && _stylesModule.default.navActionResponsive)
|
|
47
44
|
},
|
|
48
45
|
colorTheme: "secondary",
|
|
49
|
-
dataTestId: (_backButton$dataTestI = backButton.dataTestId) !== null && _backButton$dataTestI !== void 0 ? _backButton$dataTestI :
|
|
46
|
+
dataTestId: (_backButton$dataTestI = backButton.dataTestId) !== null && _backButton$dataTestI !== void 0 ? _backButton$dataTestI : workflowContainer.bottomNav.backButton,
|
|
50
47
|
disabled: backButton.disabled,
|
|
51
48
|
Icon: backButton === null || backButton === void 0 ? void 0 : backButton.Icon,
|
|
52
49
|
iconPlacement: "left",
|
|
@@ -58,7 +55,7 @@ const NavActions = _ref => {
|
|
|
58
55
|
root: "".concat(_stylesModule.default.navAction, " ").concat(forceResponsive && _stylesModule.default.navActionResponsive)
|
|
59
56
|
},
|
|
60
57
|
colorTheme: secondaryAction.colorTheme || 'primary',
|
|
61
|
-
dataTestId: (_secondaryAction$data = secondaryAction.dataTestId) !== null && _secondaryAction$data !== void 0 ? _secondaryAction$data :
|
|
58
|
+
dataTestId: (_secondaryAction$data = secondaryAction.dataTestId) !== null && _secondaryAction$data !== void 0 ? _secondaryAction$data : workflowContainer.bottomNav.secondaryAction,
|
|
62
59
|
disabled: secondaryAction.disabled,
|
|
63
60
|
iconPlacement: "left",
|
|
64
61
|
onClick: secondaryAction.onClick,
|
|
@@ -73,7 +70,7 @@ const NavActions = _ref => {
|
|
|
73
70
|
root: "".concat(_stylesModule.default.navAction, " ").concat(forceResponsive && _stylesModule.default.navActionResponsive)
|
|
74
71
|
},
|
|
75
72
|
colorTheme: primaryAction.colorTheme || 'primary',
|
|
76
|
-
dataTestId: (_primaryAction$dataTe = primaryAction.dataTestId) !== null && _primaryAction$dataTe !== void 0 ? _primaryAction$dataTe :
|
|
73
|
+
dataTestId: (_primaryAction$dataTe = primaryAction.dataTestId) !== null && _primaryAction$dataTe !== void 0 ? _primaryAction$dataTe : workflowContainer.bottomNav.primaryAction,
|
|
77
74
|
disabled: primaryAction.disabled,
|
|
78
75
|
iconPlacement: "right",
|
|
79
76
|
onClick: primaryAction.onClick,
|
|
@@ -84,7 +81,7 @@ const NavActions = _ref => {
|
|
|
84
81
|
root: "".concat(_stylesModule.default.navAction, " ").concat(nextButton.classes, " ").concat(forceResponsive && _stylesModule.default.navActionResponsive)
|
|
85
82
|
},
|
|
86
83
|
colorTheme: "primary",
|
|
87
|
-
dataTestId: (_nextButton$dataTestI = nextButton.dataTestId) !== null && _nextButton$dataTestI !== void 0 ? _nextButton$dataTestI :
|
|
84
|
+
dataTestId: (_nextButton$dataTestI = nextButton.dataTestId) !== null && _nextButton$dataTestI !== void 0 ? _nextButton$dataTestI : workflowContainer.bottomNav.nextButton,
|
|
88
85
|
disabled: nextButton.disabled,
|
|
89
86
|
Icon: nextButton === null || nextButton === void 0 ? void 0 : nextButton.Icon,
|
|
90
87
|
iconPlacement: "right",
|
|
@@ -24,12 +24,8 @@ var _theme = require("./theme");
|
|
|
24
24
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
26
26
|
const {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
subtitleId,
|
|
30
|
-
taglineId,
|
|
31
|
-
titleId
|
|
32
|
-
} = _testIds.COMPONENT_IDS.workflowContainerIds;
|
|
27
|
+
workflowContainer
|
|
28
|
+
} = _testIds.TEST_IDS;
|
|
33
29
|
const UTWorkflowContainer = _ref => {
|
|
34
30
|
let {
|
|
35
31
|
backButton,
|
|
@@ -43,22 +39,22 @@ const UTWorkflowContainer = _ref => {
|
|
|
43
39
|
forceResponsive = false,
|
|
44
40
|
headerActions,
|
|
45
41
|
helpText,
|
|
46
|
-
helpTextDataTestId =
|
|
42
|
+
helpTextDataTestId = workflowContainer.header.helpText,
|
|
47
43
|
nextButton,
|
|
48
44
|
onExit,
|
|
49
45
|
primaryAction,
|
|
50
46
|
requiredFieldInfo,
|
|
51
|
-
requiredFieldInfoDataTestId =
|
|
47
|
+
requiredFieldInfoDataTestId = workflowContainer.header.requiredFieldInfo,
|
|
52
48
|
secondaryAction,
|
|
53
49
|
stages,
|
|
54
50
|
stepperSize = 'S',
|
|
55
51
|
stepsCount,
|
|
56
52
|
subtitle,
|
|
57
|
-
subtitleDataTestId =
|
|
53
|
+
subtitleDataTestId = workflowContainer.header.subtitle,
|
|
58
54
|
tagline,
|
|
59
|
-
taglineDataTestId =
|
|
55
|
+
taglineDataTestId = workflowContainer.header.tagline,
|
|
60
56
|
title,
|
|
61
|
-
titleDataTestId =
|
|
57
|
+
titleDataTestId = workflowContainer.header.title,
|
|
62
58
|
variant = _constants.VARIANTS.DEFAULT,
|
|
63
59
|
withIcon = false,
|
|
64
60
|
withStepperPadding = true,
|
|
@@ -3,81 +3,91 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
exports.TEST_IDS = exports.ID_CONSTANTS = void 0;
|
|
7
|
+
const ID_CONSTANTS = exports.ID_CONSTANTS = {
|
|
8
|
+
ACTIONS: 'actions',
|
|
9
|
+
BOTTOM_NAV: 'bottomNav',
|
|
10
|
+
CELL: 'cell',
|
|
11
|
+
CREDIT_CARD: 'creditCard',
|
|
12
|
+
DIALOG: 'dialog',
|
|
13
|
+
HEADER: 'header',
|
|
14
|
+
ONBOARDING: 'onboarding',
|
|
15
|
+
PANEL: 'panel',
|
|
16
|
+
SELECTION_COMPONENT: 'selectionComponent',
|
|
17
|
+
STATUS_MESSAGE: 'statusMessage',
|
|
18
|
+
TABLE: 'table',
|
|
19
|
+
TABLE_ROW: 'tableRow',
|
|
20
|
+
WORKFLOW_CONTAINER: 'workflowContainer'
|
|
21
|
+
};
|
|
22
|
+
const TEST_IDS = exports.TEST_IDS = {
|
|
23
|
+
barChart: {
|
|
24
|
+
bar: {
|
|
25
|
+
tooltip: 'barChart.bar.tooltip.'
|
|
26
|
+
},
|
|
27
|
+
xAxis: {
|
|
28
|
+
secondaryLabel: 'barChart.xAxis.secondaryLabel.',
|
|
29
|
+
mainLabel: 'barChart.xAxis.mainLabel.'
|
|
30
|
+
}
|
|
24
31
|
},
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
breadcrumbs: {
|
|
33
|
+
item: 'breadcrumbs.item'
|
|
27
34
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
creditCard: {
|
|
36
|
+
cardField: "".concat(ID_CONSTANTS.CREDIT_CARD, ".cardField"),
|
|
37
|
+
cvcField: "".concat(ID_CONSTANTS.CREDIT_CARD, ".cvcField"),
|
|
38
|
+
expires: "".concat(ID_CONSTANTS.CREDIT_CARD, ".expires"),
|
|
39
|
+
nameField: "".concat(ID_CONSTANTS.CREDIT_CARD, ".nameField")
|
|
33
40
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
dialog: {
|
|
42
|
+
acceptButton: "".concat(ID_CONSTANTS.DIALOG, ".acceptButton"),
|
|
43
|
+
cancelButton: "".concat(ID_CONSTANTS.DIALOG, ".cancelButton"),
|
|
44
|
+
closeButton: "".concat(ID_CONSTANTS.DIALOG, ".closeButton"),
|
|
45
|
+
title: "".concat(ID_CONSTANTS.DIALOG, ".title")
|
|
39
46
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
onboarding: {
|
|
48
|
+
close: "".concat(ID_CONSTANTS.ONBOARDING, ".close"),
|
|
49
|
+
description: "".concat(ID_CONSTANTS.ONBOARDING, ".description"),
|
|
50
|
+
nextButton: "".concat(ID_CONSTANTS.ONBOARDING, ".nextButton"),
|
|
51
|
+
prevButton: "".concat(ID_CONSTANTS.ONBOARDING, ".prevButton"),
|
|
52
|
+
title: "".concat(ID_CONSTANTS.ONBOARDING, ".title")
|
|
46
53
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
panel: {
|
|
55
|
+
closeButton: "".concat(ID_CONSTANTS.PANEL, ".closeButton"),
|
|
56
|
+
mainAction: "".concat(ID_CONSTANTS.PANEL, ".mainAction"),
|
|
57
|
+
secondaryAction: "".concat(ID_CONSTANTS.PANEL, ".secondaryAction"),
|
|
58
|
+
title: "".concat(ID_CONSTANTS.PANEL, ".title")
|
|
52
59
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
snackBar: {
|
|
61
|
+
closeButton: 'snackbar.closeButton',
|
|
62
|
+
label: 'snackbar.label'
|
|
56
63
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
statusMessage: {
|
|
65
|
+
description: "".concat(ID_CONSTANTS.STATUS_MESSAGE, ".description"),
|
|
66
|
+
helperText: "".concat(ID_CONSTANTS.STATUS_MESSAGE, ".helperText"),
|
|
67
|
+
icon: "".concat(ID_CONSTANTS.STATUS_MESSAGE, ".icon"),
|
|
68
|
+
title: "".concat(ID_CONSTANTS.STATUS_MESSAGE, ".title")
|
|
62
69
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
titleId: "".concat(TABLE, ".tableHeader.title")
|
|
70
|
+
table: {
|
|
71
|
+
tableHeader: {
|
|
72
|
+
title: "".concat(ID_CONSTANTS.TABLE, ".tableHeader.title")
|
|
73
|
+
}
|
|
68
74
|
},
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
tabs: {
|
|
76
|
+
tab: 'tabs.tab.'
|
|
71
77
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
workflowContainer: {
|
|
79
|
+
bottomNav: {
|
|
80
|
+
backButton: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.BOTTOM_NAV, ".backButton"),
|
|
81
|
+
nextButton: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.BOTTOM_NAV, ".nextButton"),
|
|
82
|
+
primaryAction: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.BOTTOM_NAV, ".primaryAction"),
|
|
83
|
+
secondaryAction: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.BOTTOM_NAV, ".secondaryAction")
|
|
84
|
+
},
|
|
85
|
+
header: {
|
|
86
|
+
helpText: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.HEADER, ".helpText"),
|
|
87
|
+
requiredFieldInfo: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.HEADER, ".requiredFieldInfo"),
|
|
88
|
+
subtitle: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.HEADER, ".subtitle"),
|
|
89
|
+
tagline: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.HEADER, ".tagline"),
|
|
90
|
+
title: "".concat(ID_CONSTANTS.WORKFLOW_CONTAINER, ".").concat(ID_CONSTANTS.HEADER, ".title")
|
|
91
|
+
}
|
|
82
92
|
}
|
|
83
93
|
};
|