@gridsuite/commons-ui 0.52.1 → 0.53.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/dist/components/translations/top-bar-en.d.ts +0 -1
- package/dist/components/translations/top-bar-en.js +0 -1
- package/dist/components/translations/top-bar-fr.d.ts +0 -1
- package/dist/components/translations/top-bar-fr.js +0 -1
- package/dist/utils/EquipmentType.d.ts +3 -1
- package/dist/utils/EquipmentType.js +13 -7
- package/package.json +4 -4
|
@@ -16,7 +16,6 @@ declare const top_bar_en: {
|
|
|
16
16
|
'top-bar/id': string;
|
|
17
17
|
'top-bar/name': string;
|
|
18
18
|
'top-bar/language': string;
|
|
19
|
-
'top-bar/customTheme': string;
|
|
20
19
|
'about-dialog/title': string;
|
|
21
20
|
'about-dialog/version': string;
|
|
22
21
|
'about-dialog/alert-running-old-version-msg': string;
|
|
@@ -9,7 +9,6 @@ const top_bar_en = {
|
|
|
9
9
|
"top-bar/id": "Id",
|
|
10
10
|
"top-bar/name": "Name",
|
|
11
11
|
"top-bar/language": "Language",
|
|
12
|
-
"top-bar/customTheme": "Custom theme",
|
|
13
12
|
"about-dialog/title": "About",
|
|
14
13
|
"about-dialog/version": "Version {version}",
|
|
15
14
|
"about-dialog/alert-running-old-version-msg": "Running old version.\nSave your work and refresh the application to load the latest version.",
|
|
@@ -16,7 +16,6 @@ declare const top_bar_fr: {
|
|
|
16
16
|
'top-bar/id': string;
|
|
17
17
|
'top-bar/name': string;
|
|
18
18
|
'top-bar/language': string;
|
|
19
|
-
'top-bar/customTheme': string;
|
|
20
19
|
'about-dialog/title': string;
|
|
21
20
|
'about-dialog/version': string;
|
|
22
21
|
'about-dialog/alert-running-old-version-msg': string;
|
|
@@ -9,7 +9,6 @@ const top_bar_fr = {
|
|
|
9
9
|
"top-bar/id": "Id",
|
|
10
10
|
"top-bar/name": "Nom",
|
|
11
11
|
"top-bar/language": "Langue",
|
|
12
|
-
"top-bar/customTheme": "Choix de theme",
|
|
13
12
|
"about-dialog/title": "À propos",
|
|
14
13
|
"about-dialog/version": "Version {version}",
|
|
15
14
|
"about-dialog/alert-running-old-version-msg": "Ancienne version de l'application.\nVeuillez sauvegarder votre travail et rafraîchir l'application pour charger la dernière version",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
|
|
1
3
|
export declare const TYPE_TAG_MAX_SIZE = "90px";
|
|
2
4
|
export declare const VL_TAG_MAX_SIZE = "100px";
|
|
3
5
|
export declare const equipmentStyles: {
|
|
@@ -10,7 +12,7 @@ export declare const equipmentStyles: {
|
|
|
10
12
|
alignItems: string;
|
|
11
13
|
justifyContent: string;
|
|
12
14
|
};
|
|
13
|
-
equipmentTag: (theme: string) => {
|
|
15
|
+
equipmentTag: (theme: string | Theme) => {
|
|
14
16
|
borderRadius: string;
|
|
15
17
|
padding: string;
|
|
16
18
|
fontSize: string;
|
|
@@ -11,13 +11,19 @@ const equipmentStyles = {
|
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
justifyContent: "space-between"
|
|
13
13
|
},
|
|
14
|
-
equipmentTag: (theme) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
equipmentTag: (theme) => {
|
|
15
|
+
var _a;
|
|
16
|
+
return {
|
|
17
|
+
borderRadius: "10px",
|
|
18
|
+
padding: "4px",
|
|
19
|
+
fontSize: "x-small",
|
|
20
|
+
textAlign: "center",
|
|
21
|
+
color: (
|
|
22
|
+
//TODO remove first condition when gridstudy is updated
|
|
23
|
+
theme === LIGHT_THEME || typeof theme !== "string" && ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.mode) === "light" ? "inherit" : "black"
|
|
24
|
+
)
|
|
25
|
+
};
|
|
26
|
+
},
|
|
21
27
|
equipmentTypeTag: {
|
|
22
28
|
minWidth: TYPE_TAG_MAX_SIZE,
|
|
23
29
|
maxWidth: TYPE_TAG_MAX_SIZE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=9",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@babel/helper-builder-react-jsx": "^7.22.10",
|
|
59
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
59
60
|
"@babel/preset-env": "^7.24.3",
|
|
60
61
|
"@babel/preset-react": "^7.24.1",
|
|
61
62
|
"@babel/preset-typescript": "^7.24.1",
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
"@mui/icons-material": "^5.15.14",
|
|
66
67
|
"@mui/lab": "5.0.0-alpha.169",
|
|
67
68
|
"@mui/material": "^5.15.14",
|
|
68
|
-
"@mui/styles": "^5.15.14",
|
|
69
69
|
"@mui/x-tree-view": "^6.17.0",
|
|
70
70
|
"@react-hook/window-size": "^3.1.1",
|
|
71
71
|
"@types/react": "^18.2.73",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"@vitejs/plugin-react": "^4.2.1",
|
|
76
76
|
"babel-eslint": "^10.1.0",
|
|
77
77
|
"bufferutil": "^4.0.8",
|
|
78
|
-
"eslint": "^
|
|
78
|
+
"eslint": "^8.57.0",
|
|
79
79
|
"eslint-config-prettier": "^9.1.0",
|
|
80
|
-
"eslint-config-react-app": "^
|
|
80
|
+
"eslint-config-react-app": "^7.0.1",
|
|
81
81
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
82
82
|
"eslint-plugin-import": "^2.29.1",
|
|
83
83
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|