@gridsuite/commons-ui 0.205.0 → 0.207.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/announcement/AnnouncementBanner.d.ts +1 -1
- package/dist/components/announcement/AnnouncementBanner.js +3 -2
- package/dist/components/announcement/AnnouncementNotification.d.ts +1 -1
- package/dist/components/announcement/useGlobalAnnouncement.d.ts +1 -1
- package/dist/components/authentication/SignInCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/authenticationType.d.ts +1 -1
- package/dist/components/authentication/utils/authService.d.ts +1 -6
- package/dist/components/authentication/utils/authService.js +18 -9
- package/dist/components/authentication/utils/userManagerMock.d.ts +7 -9
- package/dist/components/authentication/utils/userManagerMock.js +23 -27
- package/dist/components/customAGGrid/cell-renderers.js +7 -6
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table/dnd-table.js +3 -3
- package/dist/components/dnd-table/index.d.ts +1 -5
- package/dist/components/dnd-table/index.js +8 -6
- package/dist/components/dnd-table-v2/deletable-table-row.js +3 -2
- package/dist/components/dnd-table-v2/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table-v2/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table-v2/dnd-table-row.js +3 -3
- package/dist/components/dnd-table-v2/dnd-table.js +4 -3
- package/dist/components/flatParameters/FlatParameters.js +3 -3
- package/dist/components/grid/grid-item.js +3 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +9 -5
- package/dist/components/inputs/ActivableChip.js +3 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +3 -2
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.js +3 -3
- package/dist/components/inputs/reactHookForm/expandableInput/DeletableRow.js +3 -2
- package/dist/components/inputs/reactHookForm/text/DescriptionInput.js +3 -2
- package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.js +3 -4
- package/dist/components/network-modification-table/renderers/name-cell.js +3 -2
- package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js +3 -2
- package/dist/components/network-modifications/common/connectivity/PositionForm.js +3 -2
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +3 -2
- package/dist/components/overflowableText/OverflowableText.js +3 -2
- package/dist/components/parameters/common/contingency-table/columns-definitions.d.ts +1 -1
- package/dist/components/parameters/common/contingency-table/types.d.ts +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +3 -2
- package/dist/components/parameters/common/parameter-field.js +3 -2
- package/dist/components/parameters/common/parameter-table/parameter-table.js +3 -2
- package/dist/components/parameters/common/parameter-table/table-row.js +3 -2
- package/dist/components/parameters/common/parameter-table-field/parameter-table-field.d.ts +1 -1
- package/dist/components/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +1 -1
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +3 -2
- package/dist/components/parameters/common/widget/parameter-float.js +3 -2
- package/dist/components/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -5
- package/dist/components/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +4 -5
- package/dist/components/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +4 -4
- package/dist/components/parameters/sensi/columns-definitions.d.ts +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +4 -3
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +3 -2
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +3 -3
- package/dist/components/tooltip/CustomTooltip.d.ts +2 -0
- package/dist/components/tooltip/CustomTooltip.js +9 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/topBar/AboutDialog.js +3 -5
- package/dist/components/topBar/TopBar.d.ts +1 -1
- package/dist/components/topBar/UserInformationDialog.d.ts +1 -1
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/index.js +9 -5
- package/dist/redux/actions/authActions.d.ts +1 -1
- package/dist/redux/commonStore.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid,
|
|
2
|
+
import { Grid, IconButton } from "@mui/material";
|
|
3
3
|
import { AddCircle, Delete } from "@mui/icons-material";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../../../../tooltip/CustomTooltip.js";
|
|
6
7
|
function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete }) {
|
|
7
8
|
const intl = useIntl();
|
|
8
9
|
const handleAddButton = useCallback(() => {
|
|
@@ -13,22 +14,20 @@ function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete
|
|
|
13
14
|
}, [onDeleteButton]);
|
|
14
15
|
return /* @__PURE__ */ jsxs(Grid, { container: true, item: true, xs: true, spacing: 1, sx: { justifyContent: "flex-end", alignItems: "flex-end" }, children: [
|
|
15
16
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
16
|
-
|
|
17
|
+
CustomTooltip,
|
|
17
18
|
{
|
|
18
19
|
title: intl.formatMessage({
|
|
19
20
|
id: "AddRows"
|
|
20
21
|
}),
|
|
21
|
-
placement: "top",
|
|
22
22
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => handleAddButton(), disabled: disabledAdd, children: /* @__PURE__ */ jsx(AddCircle, {}) }) })
|
|
23
23
|
}
|
|
24
24
|
) }),
|
|
25
25
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
26
|
-
|
|
26
|
+
CustomTooltip,
|
|
27
27
|
{
|
|
28
28
|
title: intl.formatMessage({
|
|
29
29
|
id: "DeleteRows"
|
|
30
30
|
}),
|
|
31
|
-
placement: "top",
|
|
32
31
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => handleDeleteButton(), disabled: disabledDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) })
|
|
33
32
|
}
|
|
34
33
|
) })
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid,
|
|
2
|
+
import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid, IconButton, DialogActions, Button } from "@mui/material";
|
|
3
3
|
import { useRef, useCallback } from "react";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { ArrowCircleRight, ArrowCircleLeft } from "@mui/icons-material";
|
|
6
|
+
import { CustomTooltip } from "../../../../tooltip/CustomTooltip.js";
|
|
6
7
|
import CurvePreview from "./curve-preview.js";
|
|
7
8
|
import CurveSelector from "./curve-selector.js";
|
|
8
9
|
import { mergeSx } from "../../../../../utils/styles.js";
|
|
@@ -75,12 +76,11 @@ function CurveSelectorDialog({
|
|
|
75
76
|
) }),
|
|
76
77
|
/* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", justifyContent: "center", alignItems: "center", xs: 0.5, children: [
|
|
77
78
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
78
|
-
|
|
79
|
+
CustomTooltip,
|
|
79
80
|
{
|
|
80
81
|
title: intl.formatMessage({
|
|
81
82
|
id: "AddRows"
|
|
82
83
|
}),
|
|
83
|
-
placement: "top",
|
|
84
84
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
85
85
|
IconButton,
|
|
86
86
|
{
|
|
@@ -93,12 +93,11 @@ function CurveSelectorDialog({
|
|
|
93
93
|
}
|
|
94
94
|
) }),
|
|
95
95
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
96
|
-
|
|
96
|
+
CustomTooltip,
|
|
97
97
|
{
|
|
98
98
|
title: intl.formatMessage({
|
|
99
99
|
id: "DeleteRows"
|
|
100
100
|
}),
|
|
101
|
-
placement: "top",
|
|
102
101
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
103
102
|
IconButton,
|
|
104
103
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { UseNetworkVisualizationParametersFormReturn } from './use-network-visualizations-parameters-form';
|
|
4
4
|
interface NetworkVisualizationParametersFormProps {
|
|
5
5
|
networkVisuMethods: UseNetworkVisualizationParametersFormReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { NetworkVisualizationParameters } from './network-visualizations.types';
|
|
4
4
|
export declare function NetworkVisualizationParametersInline({ studyUuid, setHaveDirtyFields, user, parameters, }: Readonly<{
|
|
5
5
|
studyUuid: UUID | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, Typography
|
|
2
|
+
import { Grid, Typography } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { Info } from "@mui/icons-material";
|
|
5
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
5
6
|
import { parametersStyles } from "../parameters-style.js";
|
|
6
7
|
import "../../overflowableText/OverflowableText.js";
|
|
7
8
|
import "../../../utils/conversionUtils.js";
|
|
@@ -84,7 +85,7 @@ function SecurityAnalysisFields({
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
) }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: tooltipInfoId }), children: /* @__PURE__ */ jsx(Info, {}) })
|
|
88
89
|
] });
|
|
89
90
|
}
|
|
90
91
|
const fieldsToShow = [
|
|
@@ -130,11 +131,10 @@ function ViolationsHidingParameters() {
|
|
|
130
131
|
id: "securityAnalysis.violationsHiding"
|
|
131
132
|
}) }),
|
|
132
133
|
/* @__PURE__ */ jsx(
|
|
133
|
-
|
|
134
|
+
CustomTooltip,
|
|
134
135
|
{
|
|
135
136
|
sx: parametersStyles.tooltip,
|
|
136
137
|
title: intl.formatMessage({ id: "securityAnalysis.toolTip.violationsHiding" }),
|
|
137
|
-
placement: "left-start",
|
|
138
138
|
children: /* @__PURE__ */ jsx(Info, {})
|
|
139
139
|
}
|
|
140
140
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EquipmentType } from '../../../utils';
|
|
2
|
-
import { DndColumn } from '../../dnd-table
|
|
2
|
+
import { DndColumn } from '../../dnd-table';
|
|
3
3
|
export declare const MONITORED_BRANCHES_EQUIPMENT_TYPES: EquipmentType[];
|
|
4
4
|
export declare const INJECTION_DISTRIBUTION_TYPES: {
|
|
5
5
|
id: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TableRow, TableCell,
|
|
2
|
+
import { TableRow, TableCell, IconButton } from "@mui/material";
|
|
3
3
|
import { Delete } from "@mui/icons-material";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { SHORT_CIRCUIT_ICC_CLUSTER_ACTIVE } from "./columns-definition.js";
|
|
8
9
|
import { ShortCircuitIccClusterTableCell } from "./short-circuit-icc-cluster-table-cell.js";
|
|
9
10
|
function ShortCircuitIccClusterTableRow({
|
|
@@ -27,7 +28,7 @@ function ShortCircuitIccClusterTableRow({
|
|
|
27
28
|
},
|
|
28
29
|
`${column.dataKey}`
|
|
29
30
|
)),
|
|
30
|
-
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(
|
|
31
|
+
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => onDeleteButton(index), children: /* @__PURE__ */ jsx(Delete, { fontSize: "small" }) }) }) })
|
|
31
32
|
] });
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, IconButton, TableBody } from "@mui/material";
|
|
3
3
|
import { AddCircle } from "@mui/icons-material";
|
|
4
4
|
import { useFieldArray } from "react-hook-form";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { useCallback } from "react";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { ShortCircuitIccClusterTableRow } from "./short-circuit-icc-cluster-table-row.js";
|
|
8
9
|
const styles = {
|
|
9
10
|
tableContainer: (theme) => ({
|
|
@@ -39,8 +40,8 @@ function ShortCircuitIccClusterTable({
|
|
|
39
40
|
);
|
|
40
41
|
return /* @__PURE__ */ jsx(TableContainer, { sx: styles.tableContainer, children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", sx: styles.table, children: [
|
|
41
42
|
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
42
|
-
columnsDefinition.map((column) => /* @__PURE__ */ jsx(
|
|
43
|
-
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: "5%" }, children: /* @__PURE__ */ jsx(
|
|
43
|
+
columnsDefinition.map((column) => /* @__PURE__ */ jsx(CustomTooltip, { title: column.tooltip, children: /* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: column.width }, children: column.label }) }, column.dataKey)),
|
|
44
|
+
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: "5%" }, children: /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddRows" }), children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", disabled: false, onClick: handleAddRowsButton, children: /* @__PURE__ */ jsx(AddCircle, { fontSize: "small" }) }) }) }) })
|
|
44
45
|
] }) }),
|
|
45
46
|
/* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => /* @__PURE__ */ jsx(
|
|
46
47
|
ShortCircuitIccClusterTableRow,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, TableBody } from "@mui/material";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
4
5
|
import { ShortCircuitIccMaterialTableRow } from "./short-circuit-icc-material-table-row.js";
|
|
5
6
|
const styles = {
|
|
6
7
|
tableContainer: (theme) => ({
|
|
@@ -23,7 +24,7 @@ function ShortCircuitIccMaterialTable({
|
|
|
23
24
|
});
|
|
24
25
|
return /* @__PURE__ */ jsx(TableContainer, { sx: styles.tableContainer, children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", sx: styles.table, children: [
|
|
25
26
|
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
26
|
-
columnsDefinition.map((column) => /* @__PURE__ */ jsx(
|
|
27
|
+
columnsDefinition.map((column) => /* @__PURE__ */ jsx(CustomTooltip, { title: column.tooltip, children: /* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: column.width }, children: column.label }) }, column.dataKey)),
|
|
27
28
|
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { visibility: "hidden", width: "5%" } })
|
|
28
29
|
] }) }),
|
|
29
30
|
/* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => /* @__PURE__ */ jsx(
|
|
@@ -48,7 +48,7 @@ import { getNameElementEditorSchema, getNameElementEditorEmptyFormData } from ".
|
|
|
48
48
|
import { fromVoltageInitParametersFormToParamValues, fromVoltageInitParamsDataToFormValues, fromStudyVoltageInitParamsDataToFormValues } from "./voltage-init-form-utils.js";
|
|
49
49
|
import "react-dom";
|
|
50
50
|
import "@hello-pangea/dnd";
|
|
51
|
-
import { SELECTED } from "../../dnd-table/dnd-table.type.js";
|
|
51
|
+
import { SELECTED } from "../../dnd-table-v2/dnd-table.type.js";
|
|
52
52
|
const useVoltageInitParametersForm = ({
|
|
53
53
|
parametersUuid,
|
|
54
54
|
name,
|
|
@@ -40,7 +40,7 @@ import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
|
40
40
|
import "react-querybuilder";
|
|
41
41
|
import "react-dom";
|
|
42
42
|
import "@hello-pangea/dnd";
|
|
43
|
-
import { SELECTED } from "../../dnd-table/dnd-table.type.js";
|
|
43
|
+
import { SELECTED } from "../../dnd-table-v2/dnd-table.type.js";
|
|
44
44
|
const fromVoltageInitParametersFormToParamValues = (newParams) => {
|
|
45
45
|
return {
|
|
46
46
|
applyModifications: newParams?.[VoltageInitTabValues.GENERAL]?.[GENERAL_APPLY_MODIFICATIONS] ?? DEFAULT_GENERAL_APPLY_MODIFICATIONS,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { Info } from "@mui/icons-material";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
6
7
|
import { LOW_VOLTAGE_LIMIT, HIGH_VOLTAGE_LIMIT, VOLTAGE_LIMITS_MODIFICATION, VOLTAGE_LIMITS_DEFAULT } from "./constants.js";
|
|
7
8
|
import { VoltageAdornment } from "../../../utils/constants/adornments.js";
|
|
8
9
|
import { FILTERS } from "../../../utils/constants/filterConstant.js";
|
|
@@ -46,12 +47,11 @@ function VoltageLimitsParameters() {
|
|
|
46
47
|
const intl = useIntl();
|
|
47
48
|
const VoltageLevelFilterTooltip = useMemo(() => {
|
|
48
49
|
return /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
50
|
+
CustomTooltip,
|
|
50
51
|
{
|
|
51
52
|
title: intl.formatMessage({
|
|
52
53
|
id: "VoltageLevelFilterTooltip"
|
|
53
54
|
}),
|
|
54
|
-
placement: "right-start",
|
|
55
55
|
sx: { marginLeft: 1 },
|
|
56
56
|
children: /* @__PURE__ */ jsx(Info, {})
|
|
57
57
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from "@mui/material";
|
|
3
|
+
function CustomTooltip(props) {
|
|
4
|
+
const { children, ...tooltipProps } = props;
|
|
5
|
+
return /* @__PURE__ */ jsx(Tooltip, { arrow: true, enterDelay: 250, ...tooltipProps, children });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
CustomTooltip
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomTooltip';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useCallback } from "react";
|
|
3
|
-
import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button,
|
|
3
|
+
import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button, Zoom, Stack, tooltipClasses } from "@mui/material";
|
|
4
4
|
import { LoadingButton } from "@mui/lab";
|
|
5
5
|
import { Refresh, Gavel, ExpandMore, Apps, QuestionMark, DnsOutlined, WidgetsOutlined } from "@mui/icons-material";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
7
8
|
import { LogoText } from "./GridLogo.js";
|
|
8
9
|
import { mergeSx } from "../../utils/styles.js";
|
|
9
10
|
const styles = {
|
|
@@ -133,14 +134,11 @@ function Module({ type, name, version, gitTag }) {
|
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
136
|
children: /* @__PURE__ */ jsx(
|
|
136
|
-
|
|
137
|
+
CustomTooltip,
|
|
137
138
|
{
|
|
138
139
|
TransitionComponent: Zoom,
|
|
139
|
-
enterDelay: 2500,
|
|
140
140
|
enterNextDelay: 350,
|
|
141
141
|
leaveDelay: 200,
|
|
142
|
-
placement: "bottom-start",
|
|
143
|
-
arrow: true,
|
|
144
142
|
sx: moduleStyles.tooltip,
|
|
145
143
|
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
146
144
|
/* @__PURE__ */ jsx(Typography, { variant: "body1", children: name || "<?>" }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { GridLogoProps } from './GridLogo';
|
|
4
4
|
import { AboutDialogProps } from './AboutDialog';
|
|
5
5
|
import { LogoutProps } from '../authentication/Logout';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { ComputingType } from '../components/parameters/common/computing-type';
|
|
4
4
|
import { BackendFunctions, UseParametersBackendReturnProps } from '../utils/types/parameters.type';
|
|
5
5
|
export declare enum OptionalServicesStatus {
|
package/dist/index.js
CHANGED
|
@@ -30,11 +30,12 @@ import { initializeDirectory } from "./components/dialogs/elementSaveDialog/util
|
|
|
30
30
|
import { ModifyElementSelection } from "./components/dialogs/modifyElementSelection/ModifyElementSelection.js";
|
|
31
31
|
import { PopupConfirmationDialog } from "./components/dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
32
32
|
import { DirectoryItemSelector } from "./components/directoryItemSelector/DirectoryItemSelector.js";
|
|
33
|
-
import { DndTable } from "./components/dnd-table/dnd-table.js";
|
|
34
|
-
import { DndColumnType, MAX_ROWS_NUMBER, SELECTED } from "./components/dnd-table/dnd-table.type.js";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
33
|
+
import { DndTable } from "./components/dnd-table-v2/dnd-table.js";
|
|
34
|
+
import { DndColumnType, MAX_ROWS_NUMBER, SELECTED } from "./components/dnd-table-v2/dnd-table.type.js";
|
|
35
|
+
import { getDefaultRowData } from "./components/dnd-table-v2/dnd-table-utils.js";
|
|
36
|
+
import { DndTableAddRowsDialog } from "./components/dnd-table-v2/dnd-table-add-rows-dialog.js";
|
|
37
|
+
import { DndTableBottomLeftButtons } from "./components/dnd-table-v2/dnd-table-bottom-left-buttons.js";
|
|
38
|
+
import { DndTableBottomRightButtons } from "./components/dnd-table-v2/dnd-table-bottom-right-buttons.js";
|
|
38
39
|
import { EquipmentItem } from "./components/elementSearch/elementItem/EquipmentItem.js";
|
|
39
40
|
import { ElementSearchDialog } from "./components/elementSearch/elementSearchDialog/ElementSearchDialog.js";
|
|
40
41
|
import { ElementSearchInput } from "./components/elementSearch/elementSearchInput/ElementSearchInput.js";
|
|
@@ -56,6 +57,7 @@ import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/fil
|
|
|
56
57
|
import { FlatParameters, extractDefault } from "./components/flatParameters/FlatParameters.js";
|
|
57
58
|
import "react/jsx-runtime";
|
|
58
59
|
import "@mui/material";
|
|
60
|
+
import { CustomTooltip } from "./components/tooltip/CustomTooltip.js";
|
|
59
61
|
import "react-intl";
|
|
60
62
|
import { SelectClearable } from "./components/inputs/SelectClearable.js";
|
|
61
63
|
import { OverflowableChip } from "./components/inputs/reactHookForm/OverflowableChip.js";
|
|
@@ -492,6 +494,7 @@ export {
|
|
|
492
494
|
CustomMuiDialog,
|
|
493
495
|
CustomNestedMenuItem,
|
|
494
496
|
CustomReactQueryBuilder,
|
|
497
|
+
CustomTooltip,
|
|
495
498
|
CustomVoltageLevelTable,
|
|
496
499
|
CustomVoltageLevelTableCell,
|
|
497
500
|
CustomVoltageLevelTableRow,
|
|
@@ -1079,6 +1082,7 @@ export {
|
|
|
1079
1082
|
getContingencyListsInfosFormSchema,
|
|
1080
1083
|
getCreateSwitchesEmptyFormData,
|
|
1081
1084
|
getCreateSwitchesValidationSchema,
|
|
1085
|
+
getDefaultRowData,
|
|
1082
1086
|
getDynamicMappings,
|
|
1083
1087
|
getEquipmentTypeShortLabel,
|
|
1084
1088
|
getEquipmentsInfosForSearchBar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.207.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"author": "gridsuite team",
|
|
6
6
|
"homepage": "https://github.com/gridsuite",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"jwt-decode": "^4.0.0",
|
|
48
48
|
"localized-countries": "^2.0.0",
|
|
49
49
|
"mui-nested-menu": "^4.0.1",
|
|
50
|
-
"oidc-client": "^
|
|
50
|
+
"oidc-client-ts": "^3.5.0",
|
|
51
51
|
"prop-types": "^15.8.1",
|
|
52
52
|
"react-csv-downloader": "^3.3.0",
|
|
53
53
|
"react-dnd": "^16.0.1",
|