@centreon/ui 24.4.1-MON-21278-Delete-a-basic-token.25 → 24.4.1-MON-23368-containers.56
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/package.json +24 -26
- package/src/Dialog/Confirm/index.tsx +2 -10
- package/src/Dialog/index.tsx +1 -8
- package/src/Form/Inputs/CheckboxGroup.tsx +4 -1
- package/src/Graph/LineChart/BasicComponents/Lines/Threshold/index.tsx +4 -5
- package/src/Graph/LineChart/InteractiveComponents/Annotations/Annotation/index.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@centreon/ui",
|
|
3
|
-
"version": "24.4.1-MON-
|
|
3
|
+
"version": "24.4.1-MON-23368-containers.56",
|
|
4
4
|
"description": "Centreon UI Components",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"test/*"
|
|
48
48
|
],
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@cypress/react": "^
|
|
51
|
-
"@cypress/webpack-dev-server": "^3.
|
|
50
|
+
"@cypress/react": "^8.0.0",
|
|
51
|
+
"@cypress/webpack-dev-server": "^3.7.3",
|
|
52
52
|
"@faker-js/faker": "^8.0.2",
|
|
53
|
-
"@mdx-js/react": "^
|
|
54
|
-
"@simonsmith/cypress-image-snapshot": "^
|
|
53
|
+
"@mdx-js/react": "^3.0.0",
|
|
54
|
+
"@simonsmith/cypress-image-snapshot": "^9.0.1",
|
|
55
55
|
"@storybook/addon-a11y": "^7.0.9",
|
|
56
56
|
"@storybook/addon-docs": "^7.0.9",
|
|
57
57
|
"@storybook/addon-essentials": "^7.0.9",
|
|
@@ -72,16 +72,15 @@
|
|
|
72
72
|
"@testing-library/jest-dom": "^5.16.5",
|
|
73
73
|
"@testing-library/react": "^13.4.0",
|
|
74
74
|
"@testing-library/react-hooks": "^8.0.1",
|
|
75
|
-
"@types/
|
|
76
|
-
"@types/jest": "^27.5.0",
|
|
75
|
+
"@types/jest": "^29.5.11",
|
|
77
76
|
"@types/mocha": "^10.0.6",
|
|
78
|
-
"@types/ramda": "^0.29.
|
|
79
|
-
"@types/react": "^18.
|
|
80
|
-
"@types/testing-library__jest-dom": "^
|
|
77
|
+
"@types/ramda": "^0.29.9",
|
|
78
|
+
"@types/react": "^18.2.48",
|
|
79
|
+
"@types/testing-library__jest-dom": "^6.0.0",
|
|
81
80
|
"@vitejs/plugin-react": "^4.0.0",
|
|
82
81
|
"@vitejs/plugin-react-swc": "^3.3.0",
|
|
83
|
-
"axios-mock-adapter": "^1.
|
|
84
|
-
"cypress": "^13.
|
|
82
|
+
"axios-mock-adapter": "^1.22.0",
|
|
83
|
+
"cypress": "^13.6.2",
|
|
85
84
|
"identity-obj-proxy": "^3.0.0",
|
|
86
85
|
"jest-transform-stub": "^2.0.0",
|
|
87
86
|
"mochawesome": "^7.1.3",
|
|
@@ -92,27 +91,26 @@
|
|
|
92
91
|
"react-dom": "^18.2.0",
|
|
93
92
|
"react-test-renderer": "^18.2.0",
|
|
94
93
|
"remark-gfm": "^3.0.1",
|
|
95
|
-
"sass": "^1.62.1",
|
|
96
94
|
"speed-measure-vite-plugin": "^0.1.2",
|
|
97
|
-
"storybook": "^7.
|
|
95
|
+
"storybook": "^7.6.8",
|
|
98
96
|
"storybook-addon-mock": "^4.0.0",
|
|
99
|
-
"storybook-dark-mode": "^3.0.
|
|
97
|
+
"storybook-dark-mode": "^3.0.3",
|
|
100
98
|
"style-dictionary": "^3.8.0",
|
|
101
|
-
"ts-node": "^10.9.
|
|
99
|
+
"ts-node": "^10.9.2",
|
|
102
100
|
"use-resize-observer": "^9.1.0",
|
|
103
101
|
"vite": "^4.3.5",
|
|
104
102
|
"vite-plugin-istanbul": "^5.0.0",
|
|
105
103
|
"vite-plugin-svgr": "^3.2.0",
|
|
106
|
-
"vite-plugin-turbosnap": "^1.0.
|
|
104
|
+
"vite-plugin-turbosnap": "^1.0.3"
|
|
107
105
|
},
|
|
108
106
|
"dependencies": {
|
|
109
|
-
"@lexical/html": "^0.12.
|
|
110
|
-
"@lexical/link": "^0.12.
|
|
111
|
-
"@lexical/list": "^0.12.
|
|
112
|
-
"@lexical/react": "^0.12.
|
|
113
|
-
"@lexical/rich-text": "^0.12.
|
|
114
|
-
"@lexical/selection": "^0.12.
|
|
115
|
-
"@lexical/utils": "^0.12.
|
|
107
|
+
"@lexical/html": "^0.12.6",
|
|
108
|
+
"@lexical/link": "^0.12.6",
|
|
109
|
+
"@lexical/list": "^0.12.6",
|
|
110
|
+
"@lexical/react": "^0.12.6",
|
|
111
|
+
"@lexical/rich-text": "^0.12.6",
|
|
112
|
+
"@lexical/selection": "^0.12.6",
|
|
113
|
+
"@lexical/utils": "^0.12.6",
|
|
116
114
|
"@react-spring/web": "^9.7.3",
|
|
117
115
|
"@visx/curve": "^2.1.0",
|
|
118
116
|
"@visx/group": "^3.3.0",
|
|
@@ -122,9 +120,9 @@
|
|
|
122
120
|
"@visx/threshold": "^2.12.2",
|
|
123
121
|
"@visx/visx": "2.16.0",
|
|
124
122
|
"anylogger": "^1.0.11",
|
|
125
|
-
"d3-array": "3.2.
|
|
123
|
+
"d3-array": "3.2.4",
|
|
126
124
|
"humanize-duration": "^3.27.3",
|
|
127
|
-
"lexical": "^0.12.
|
|
125
|
+
"lexical": "^0.12.6",
|
|
128
126
|
"notistack": "^3.0.1",
|
|
129
127
|
"ramda": "0.29.1",
|
|
130
128
|
"react-grid-layout": "^1.3.4",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogContentText, Typography } from '@mui/material';
|
|
2
2
|
|
|
3
3
|
import Dialog, { Props as DialogProps } from '..';
|
|
4
4
|
|
|
@@ -6,23 +6,15 @@ type Props = DialogProps & {
|
|
|
6
6
|
children?: JSX.Element;
|
|
7
7
|
labelMessage?: string | null;
|
|
8
8
|
labelSecondMessage?: string | null;
|
|
9
|
-
restCancelButtonProps?: ButtonProps;
|
|
10
|
-
restConfirmButtonProps?: ButtonProps;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
const Confirm = ({
|
|
14
12
|
labelMessage,
|
|
15
13
|
labelSecondMessage,
|
|
16
14
|
children,
|
|
17
|
-
restCancelButtonProps,
|
|
18
|
-
restConfirmButtonProps,
|
|
19
15
|
...rest
|
|
20
16
|
}: Props): JSX.Element => (
|
|
21
|
-
<Dialog
|
|
22
|
-
restCancelButtonProps={restCancelButtonProps}
|
|
23
|
-
restConfirmButtonProps={restConfirmButtonProps}
|
|
24
|
-
{...rest}
|
|
25
|
-
>
|
|
17
|
+
<Dialog {...rest}>
|
|
26
18
|
<DialogContentText>
|
|
27
19
|
{labelMessage && <Typography>{labelMessage}</Typography>}
|
|
28
20
|
{labelSecondMessage && <Typography>{labelSecondMessage}</Typography>}
|
package/src/Dialog/index.tsx
CHANGED
|
@@ -9,8 +9,7 @@ import {
|
|
|
9
9
|
DialogContent,
|
|
10
10
|
DialogActions,
|
|
11
11
|
DialogProps,
|
|
12
|
-
CircularProgress
|
|
13
|
-
ButtonProps
|
|
12
|
+
CircularProgress
|
|
14
13
|
} from '@mui/material';
|
|
15
14
|
|
|
16
15
|
import { DataTestAttributes } from '../@types/data-attributes';
|
|
@@ -49,8 +48,6 @@ export type Props = {
|
|
|
49
48
|
onClose?: () => void;
|
|
50
49
|
onConfirm: (event, value?) => void;
|
|
51
50
|
open: boolean;
|
|
52
|
-
restCancelButtonProps?: ButtonProps;
|
|
53
|
-
restConfirmButtonProps?: ButtonProps;
|
|
54
51
|
submitting?: boolean;
|
|
55
52
|
} & DialogProps &
|
|
56
53
|
DataTestAttributes;
|
|
@@ -73,8 +70,6 @@ const Dialog = ({
|
|
|
73
70
|
dialogContentClassName,
|
|
74
71
|
dialogActionsClassName,
|
|
75
72
|
dialogConfirmButtonClassName,
|
|
76
|
-
restCancelButtonProps,
|
|
77
|
-
restConfirmButtonProps,
|
|
78
73
|
...rest
|
|
79
74
|
}: Props): JSX.Element => {
|
|
80
75
|
const { classes, cx } = useStyles({ contentWidth });
|
|
@@ -106,7 +101,6 @@ const Dialog = ({
|
|
|
106
101
|
data-testid="Cancel"
|
|
107
102
|
disabled={cancelDisabled}
|
|
108
103
|
onClick={onCancel}
|
|
109
|
-
{...restCancelButtonProps}
|
|
110
104
|
>
|
|
111
105
|
{labelCancel}
|
|
112
106
|
</Button>
|
|
@@ -119,7 +113,6 @@ const Dialog = ({
|
|
|
119
113
|
disabled={confirmDisabled}
|
|
120
114
|
endIcon={submitting && <CircularProgress size={15} />}
|
|
121
115
|
onClick={onConfirm}
|
|
122
|
-
{...restConfirmButtonProps}
|
|
123
116
|
>
|
|
124
117
|
{labelConfirm}
|
|
125
118
|
</Button>
|
|
@@ -130,11 +130,10 @@ const WrapperThresholdLines = ({
|
|
|
130
130
|
|
|
131
131
|
return (
|
|
132
132
|
<g>
|
|
133
|
-
{filteredThresholdLines.map(
|
|
134
|
-
(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
))
|
|
133
|
+
{filteredThresholdLines.map((element) =>
|
|
134
|
+
element?.map(({ Component, props, key }) => (
|
|
135
|
+
<Component {...props} id={key} key={key} />
|
|
136
|
+
))
|
|
138
137
|
)}
|
|
139
138
|
</g>
|
|
140
139
|
);
|
|
@@ -43,8 +43,9 @@ const Annotation = ({
|
|
|
43
43
|
|
|
44
44
|
const setAnnotationHovered = useSetAtom(annotationHoveredAtom);
|
|
45
45
|
|
|
46
|
-
const content = `${truncate(event.content)} (${t(labelBy)} ${
|
|
47
|
-
?.name
|
|
46
|
+
const content = `${truncate(event.content)} (${t(labelBy)} ${
|
|
47
|
+
event.contact?.name
|
|
48
|
+
})`;
|
|
48
49
|
|
|
49
50
|
return (
|
|
50
51
|
<g>
|