@gridsuite/commons-ui 0.119.0 → 0.119.2
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/dist/components/contingencyList/criteriaBased/CriteriaBasedForm.js +2 -1
- package/dist/components/filter/expert/ExpertFilterForm.js +2 -1
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +2 -1
- package/dist/components/inputs/reactHookForm/text/DescriptionField.js +1 -1
- package/dist/components/topBar/TopBar.js +3 -0
- package/package.json +1 -1
|
@@ -47,7 +47,8 @@ function CriteriaBasedForm({ equipments, defaultValues, children }) {
|
|
|
47
47
|
shouldOpenPopup: openConfirmationPopup,
|
|
48
48
|
resetOnConfirmation: handleResetOnConfirmation,
|
|
49
49
|
message: "changeTypeMessage",
|
|
50
|
-
validateButtonLabel: "button.changeType"
|
|
50
|
+
validateButtonLabel: "button.changeType",
|
|
51
|
+
"data-testid": "EquipmentTypeSelector"
|
|
51
52
|
}
|
|
52
53
|
) }),
|
|
53
54
|
/* @__PURE__ */ jsx(Box, { sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
@@ -106,7 +106,8 @@ function ExpertFilterForm() {
|
|
|
106
106
|
resetOnConfirmation: handleResetOnConfirmation,
|
|
107
107
|
message: "changeTypeMessage",
|
|
108
108
|
validateButtonLabel: "button.changeType",
|
|
109
|
-
sx: filterStyles.textField
|
|
109
|
+
sx: filterStyles.textField,
|
|
110
|
+
"data-testid": "EquipmentTypeSelector"
|
|
110
111
|
}
|
|
111
112
|
) }),
|
|
112
113
|
/* @__PURE__ */ jsx(Box, { sx: unscrollableDialogStyles.scrollableContent, children: watchEquipmentType && isSupportedEquipmentType(watchEquipmentType) && /* @__PURE__ */ jsx(CustomReactQueryBuilder, { name: EXPERT_FILTER_QUERY, fields: translatedFields }) })
|
|
@@ -174,7 +174,8 @@ function ExplicitNamingFilterForm({ sourceFilterForExplicitNamingConversion }) {
|
|
|
174
174
|
resetOnConfirmation: handleResetOnConfirmation,
|
|
175
175
|
message: "changeTypeMessage",
|
|
176
176
|
validateButtonLabel: "button.changeType",
|
|
177
|
-
sx: filterStyles.textField
|
|
177
|
+
sx: filterStyles.textField,
|
|
178
|
+
"data-testid": "EquipmentTypeSelector"
|
|
178
179
|
}
|
|
179
180
|
),
|
|
180
181
|
sourceFilterForExplicitNamingConversion && /* @__PURE__ */ jsx(
|
|
@@ -22,7 +22,7 @@ function DescriptionField({ expandingTextSx }) {
|
|
|
22
22
|
setIsDescriptionFieldVisible(true);
|
|
23
23
|
}
|
|
24
24
|
}, [description]);
|
|
25
|
-
return /* @__PURE__ */ jsx(Box, { children: !isDescriptionFieldVisible ? /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(ControlPoint, {}), onClick: handleOpenDescription, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddDescription" }) }) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "flex-start" }, children: [
|
|
25
|
+
return /* @__PURE__ */ jsx(Box, { children: !isDescriptionFieldVisible ? /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(ControlPoint, {}), onClick: handleOpenDescription, "data-testid": "AddDescriptionButton", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddDescription" }) }) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "flex-start" }, children: [
|
|
26
26
|
/* @__PURE__ */ jsx(
|
|
27
27
|
ExpandingTextField,
|
|
28
28
|
{
|
|
@@ -448,6 +448,7 @@ function TopBar({
|
|
|
448
448
|
value: LANG_SYSTEM,
|
|
449
449
|
"aria-label": LANG_SYSTEM,
|
|
450
450
|
sx: styles.languageToggleButton,
|
|
451
|
+
"data-testid": "LangSystem",
|
|
451
452
|
children: /* @__PURE__ */ jsx(Computer, {})
|
|
452
453
|
}
|
|
453
454
|
),
|
|
@@ -457,6 +458,7 @@ function TopBar({
|
|
|
457
458
|
value: LANG_ENGLISH,
|
|
458
459
|
"aria-label": LANG_ENGLISH,
|
|
459
460
|
sx: styles.languageToggleButton,
|
|
461
|
+
"data-testid": "LangEnglish",
|
|
460
462
|
children: "EN"
|
|
461
463
|
}
|
|
462
464
|
),
|
|
@@ -466,6 +468,7 @@ function TopBar({
|
|
|
466
468
|
value: LANG_FRENCH,
|
|
467
469
|
"aria-label": LANG_FRENCH,
|
|
468
470
|
sx: styles.toggleButton,
|
|
471
|
+
"data-testid": "LangFrench",
|
|
469
472
|
children: "FR"
|
|
470
473
|
}
|
|
471
474
|
)
|