@gridsuite/commons-ui 0.115.0 → 0.116.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/dist/components/authentication/Login.js +12 -1
- package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
- package/dist/components/filter/expert/expertFilterConstants.js +1 -3
- package/dist/components/inputs/reactHookForm/text/DescriptionField.js +2 -1
- package/dist/components/inputs/reactHookForm/utils/CancelButton.js +1 -1
- package/dist/components/topBar/TopBar.js +2 -0
- package/dist/components/treeViewFinder/TreeViewFinder.js +4 -4
- package/dist/translations/en/filterExpertEn.d.ts +0 -2
- package/dist/translations/en/filterExpertEn.js +0 -2
- package/dist/translations/fr/filterExpertFr.d.ts +0 -2
- package/dist/translations/fr/filterExpertFr.js +0 -2
- package/package.json +1 -1
|
@@ -26,7 +26,18 @@ function Login({ onLoginClick, disabled }) {
|
|
|
26
26
|
/* @__PURE__ */ jsx(FormattedMessage, { id: "login/login", defaultMessage: "login" }),
|
|
27
27
|
" ?"
|
|
28
28
|
] }),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
Button,
|
|
31
|
+
{
|
|
32
|
+
"data-testid": "LoginButton",
|
|
33
|
+
disabled,
|
|
34
|
+
fullWidth: true,
|
|
35
|
+
variant: "contained",
|
|
36
|
+
sx: styles.submit,
|
|
37
|
+
onClick: onLoginClick,
|
|
38
|
+
children: /* @__PURE__ */ jsx(FormattedMessage, { id: "login/connection", defaultMessage: "connection" })
|
|
39
|
+
}
|
|
40
|
+
)
|
|
30
41
|
] }),
|
|
31
42
|
/* @__PURE__ */ jsx(Box, { mt: 2, children: /* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "textSecondary", align: "center", children: [
|
|
32
43
|
"Copyright © ",
|
|
@@ -82,11 +82,9 @@ const RATIO_REGULATION_MODE_OPTIONS = [
|
|
|
82
82
|
];
|
|
83
83
|
const PHASE_REGULATION_MODE_OPTIONS = [
|
|
84
84
|
{ name: "CURRENT_LIMITER", label: "CurrentLimiter" },
|
|
85
|
-
{ name: "ACTIVE_POWER_CONTROL", label: "ActivePowerControl" }
|
|
86
|
-
{ name: "FIXED_TAP", label: "FixedTap" }
|
|
85
|
+
{ name: "ACTIVE_POWER_CONTROL", label: "ActivePowerControl" }
|
|
87
86
|
];
|
|
88
87
|
const SVAR_REGULATION_MODE_OPTIONS = [
|
|
89
|
-
{ name: "OFF", label: "regulationMode.off" },
|
|
90
88
|
{ name: "VOLTAGE", label: "regulationMode.voltage" },
|
|
91
89
|
{ name: "REACTIVE_POWER", label: "regulationMode.reactivePower" }
|
|
92
90
|
];
|
|
@@ -3,7 +3,7 @@ import { useThemeProps, Button } from "@mui/material";
|
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
function CancelButton(inProps) {
|
|
5
5
|
const props = useThemeProps({ props: inProps, name: "CancelButton" });
|
|
6
|
-
return /* @__PURE__ */ jsx(Button, { ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
|
|
6
|
+
return /* @__PURE__ */ jsx(Button, { "data-testid": "CancelButton", ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
CancelButton
|
|
@@ -213,6 +213,7 @@ function TopBar({
|
|
|
213
213
|
"aria-haspopup": "true",
|
|
214
214
|
onClick: handleClickAppsMenu,
|
|
215
215
|
color: "inherit",
|
|
216
|
+
"data-testid": "AppsMenu",
|
|
216
217
|
children: /* @__PURE__ */ jsx(Apps, {})
|
|
217
218
|
}
|
|
218
219
|
),
|
|
@@ -272,6 +273,7 @@ function TopBar({
|
|
|
272
273
|
onClick: handleToggleSettingsMenu,
|
|
273
274
|
color: "inherit",
|
|
274
275
|
style: anchorElSettingsMenu ? { cursor: "initial" } : { cursor: "pointer" },
|
|
276
|
+
"data-testid": "SettingsMenu",
|
|
275
277
|
children: [
|
|
276
278
|
/* @__PURE__ */ jsx(Box, { component: "span", sx: styles.name, children: user.profile.name !== void 0 ? abbreviationFromUserName(user.profile.name) : "" }),
|
|
277
279
|
anchorElSettingsMenu ? /* @__PURE__ */ jsx(ArrowDropUp, { sx: styles.arrowIcon }) : /* @__PURE__ */ jsx(ArrowDropDown, { sx: styles.arrowIcon })
|
|
@@ -283,11 +283,10 @@ function TreeViewFinderComponant(props) {
|
|
|
283
283
|
},
|
|
284
284
|
"aria-labelledby": "TreeViewFindertitle",
|
|
285
285
|
className,
|
|
286
|
-
classes: {
|
|
287
|
-
|
|
288
|
-
},
|
|
286
|
+
classes: { paper: composeClasses(classes, cssDialogPaper) },
|
|
287
|
+
"data-testid": "Dialog",
|
|
289
288
|
children: [
|
|
290
|
-
/* @__PURE__ */ jsx(DialogTitle, { id: "TreeViewFindertitle", children: title ?? intl.formatMessage({ id: "treeview_finder/finderTitle" }, { multiSelect }) }),
|
|
289
|
+
/* @__PURE__ */ jsx(DialogTitle, { id: "TreeViewFindertitle", "data-testid": "DialogTitle", children: title ?? intl.formatMessage({ id: "treeview_finder/finderTitle" }, { multiSelect }) }),
|
|
291
290
|
/* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
292
291
|
/* @__PURE__ */ jsx(DialogContentText, { children: contentText ?? intl.formatMessage({ id: "treeview_finder/contentText" }, { multiSelect }) }),
|
|
293
292
|
/* @__PURE__ */ jsx(
|
|
@@ -325,6 +324,7 @@ function TreeViewFinderComponant(props) {
|
|
|
325
324
|
setAutoScrollAllowed(true);
|
|
326
325
|
},
|
|
327
326
|
disabled: isValidationDisabled(),
|
|
327
|
+
"data-testid": "SubmitButton",
|
|
328
328
|
children: getValidationButtonText()
|
|
329
329
|
}
|
|
330
330
|
)
|
|
@@ -75,7 +75,6 @@ export declare const filterExpertEn: {
|
|
|
75
75
|
FixedRatio: string;
|
|
76
76
|
CurrentLimiter: string;
|
|
77
77
|
ActivePowerControl: string;
|
|
78
|
-
FixedTap: string;
|
|
79
78
|
ratioRegulationMode: string;
|
|
80
79
|
ratioRegulationMode1: string;
|
|
81
80
|
ratioRegulationMode2: string;
|
|
@@ -130,7 +129,6 @@ export declare const filterExpertEn: {
|
|
|
130
129
|
'maxSusceptance.svar': string;
|
|
131
130
|
'minSusceptance.svar': string;
|
|
132
131
|
regulationMode: string;
|
|
133
|
-
'regulationMode.off': string;
|
|
134
132
|
'regulationMode.voltage': string;
|
|
135
133
|
'regulationMode.reactivePower': string;
|
|
136
134
|
voltageSetPoint: string;
|
|
@@ -69,7 +69,6 @@ const filterExpertEn = {
|
|
|
69
69
|
FixedRatio: "Fixed ratio",
|
|
70
70
|
CurrentLimiter: "Current limiter",
|
|
71
71
|
ActivePowerControl: "Active power control",
|
|
72
|
-
FixedTap: "Fixed tap",
|
|
73
72
|
ratioRegulationMode: "Ratio tap changer regulation mode",
|
|
74
73
|
ratioRegulationMode1: "Ratio tap 1 changer regulation mode",
|
|
75
74
|
ratioRegulationMode2: "Ratio tap 2 changer regulation mode",
|
|
@@ -124,7 +123,6 @@ const filterExpertEn = {
|
|
|
124
123
|
"maxSusceptance.svar": "Susceptance max",
|
|
125
124
|
"minSusceptance.svar": "Susceptance min",
|
|
126
125
|
regulationMode: "Regulation mode",
|
|
127
|
-
"regulationMode.off": "Off",
|
|
128
126
|
"regulationMode.voltage": "Voltage regulation",
|
|
129
127
|
"regulationMode.reactivePower": "Reactive power regulation",
|
|
130
128
|
voltageSetPoint: "Voltage set point",
|
|
@@ -75,7 +75,6 @@ export declare const filterExpertFr: {
|
|
|
75
75
|
FixedRatio: string;
|
|
76
76
|
CurrentLimiter: string;
|
|
77
77
|
ActivePowerControl: string;
|
|
78
|
-
FixedTap: string;
|
|
79
78
|
ratioRegulationMode: string;
|
|
80
79
|
ratioRegulationMode1: string;
|
|
81
80
|
ratioRegulationMode2: string;
|
|
@@ -130,7 +129,6 @@ export declare const filterExpertFr: {
|
|
|
130
129
|
'maxSusceptance.svar': string;
|
|
131
130
|
'minSusceptance.svar': string;
|
|
132
131
|
regulationMode: string;
|
|
133
|
-
'regulationMode.off': string;
|
|
134
132
|
'regulationMode.voltage': string;
|
|
135
133
|
'regulationMode.reactivePower': string;
|
|
136
134
|
voltageSetPoint: string;
|
|
@@ -69,7 +69,6 @@ const filterExpertFr = {
|
|
|
69
69
|
FixedRatio: "Rapport fixe",
|
|
70
70
|
CurrentLimiter: "Limitation de courant",
|
|
71
71
|
ActivePowerControl: "Suivi de transit",
|
|
72
|
-
FixedTap: "Déphasage constant",
|
|
73
72
|
ratioRegulationMode: "Mode de réglage du régleur",
|
|
74
73
|
ratioRegulationMode1: "Mode de réglage du régleur 1",
|
|
75
74
|
ratioRegulationMode2: "Mode de réglage du régleur 2",
|
|
@@ -124,7 +123,6 @@ const filterExpertFr = {
|
|
|
124
123
|
"maxSusceptance.svar": "Susceptance max",
|
|
125
124
|
"minSusceptance.svar": "Susceptance min",
|
|
126
125
|
regulationMode: "Mode de réglage",
|
|
127
|
-
"regulationMode.off": "Arrêt",
|
|
128
126
|
"regulationMode.voltage": "Réglage de tension",
|
|
129
127
|
"regulationMode.reactivePower": "Réglage du réactif",
|
|
130
128
|
voltageSetPoint: "Tension",
|