@gridsuite/commons-ui 0.116.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/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/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 © ",
|
|
@@ -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
|
)
|