@gridsuite/commons-ui 0.246.0 → 0.248.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/composite/filter/expert/ExpertFilterForm.js +2 -2
- package/dist/components/composite/filter/expert/expertFilterConstants.js +12 -0
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +4 -6
- package/dist/components/index.js +2 -0
- package/dist/components/ui/index.js +2 -0
- package/dist/components/ui/reactHookForm/index.js +2 -0
- package/dist/components/ui/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/InputWithPopupConfirmation.js +4 -3
- package/dist/components/ui/reactHookForm/utils/CancelButton.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/CancelButton.js +3 -4
- package/dist/components/ui/reactHookForm/utils/CloseButton.d.ts +2 -0
- package/dist/components/ui/reactHookForm/utils/CloseButton.js +9 -0
- package/dist/components/ui/reactHookForm/utils/index.d.ts +1 -0
- package/dist/components/ui/reactHookForm/utils/index.js +2 -0
- package/dist/features/index.js +2 -1
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +6 -5
- package/dist/features/parameters/common/constants.d.ts +1 -0
- package/dist/features/parameters/common/constants.js +2 -0
- package/dist/features/parameters/common/index.js +2 -1
- package/dist/features/parameters/common/parameter-field.d.ts +2 -1
- package/dist/features/parameters/common/parameter-field.js +25 -6
- package/dist/features/parameters/index.js +2 -1
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.d.ts +5 -0
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +111 -0
- package/dist/features/parameters/loadflow/load-flow-general-parameters.d.ts +7 -6
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +8 -93
- package/dist/features/parameters/loadflow/load-flow-parameters-content.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +6 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +2 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.d.ts +2 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +21 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-type.d.ts +2 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +22 -8
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +39 -5
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.d.ts +7 -0
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +47 -0
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +28 -6
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +1 -0
- package/dist/features/topBar/AboutDialog.js +3 -2
- package/dist/features/topBar/UserInformationDialog.js +2 -2
- package/dist/features/topBar/UserSettingsDialog.js +3 -2
- package/dist/index.js +4 -1
- package/dist/translations/en/commonButtonEn.d.ts +1 -0
- package/dist/translations/en/commonButtonEn.js +1 -0
- package/dist/translations/en/parameters.d.ts +3 -2
- package/dist/translations/en/parameters.js +4 -3
- package/dist/translations/en/topBarEn.d.ts +0 -1
- package/dist/translations/en/topBarEn.js +1 -2
- package/dist/translations/fr/commonButtonFr.d.ts +1 -0
- package/dist/translations/fr/commonButtonFr.js +1 -0
- package/dist/translations/fr/parameters.d.ts +3 -2
- package/dist/translations/fr/parameters.js +4 -3
- package/dist/translations/fr/topBarFr.d.ts +0 -1
- package/dist/translations/fr/topBarFr.js +1 -2
- package/dist/utils/types/equipmentType.js +7 -0
- package/dist/utils/types/parameters.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, createElement } from "react";
|
|
3
3
|
import ParameterField from "../common/parameter-field.js";
|
|
4
|
-
import { PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE, CONNECTED_MODE, HVDC_AC_EMULATION
|
|
5
|
-
import { useLoadFlowContext } from "./use-load-flow-context.js";
|
|
4
|
+
import { PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE, CONNECTED_MODE, HVDC_AC_EMULATION } from "./constants.js";
|
|
6
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
7
6
|
import "@mui/material";
|
|
8
|
-
import "react-intl";
|
|
9
7
|
import "@mui/icons-material";
|
|
8
|
+
import "react-intl";
|
|
10
9
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
11
10
|
import "../../../utils/conversionUtils.js";
|
|
12
11
|
import "../../../utils/types/equipmentType.js";
|
|
@@ -33,10 +32,9 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
33
32
|
import "mui-nested-menu";
|
|
34
33
|
import "react-resizable-panels";
|
|
35
34
|
import "react-papaparse";
|
|
36
|
-
import { ParameterGroup } from "../common/widget/parameter-group.js";
|
|
37
|
-
import "../common/widget/parameter-line-slider.js";
|
|
38
35
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
39
|
-
import { COMMON_PARAMETERS
|
|
36
|
+
import { COMMON_PARAMETERS } from "../common/constants.js";
|
|
37
|
+
import "../common/widget/parameter-line-slider.js";
|
|
40
38
|
import "../common/limitreductions/columns-definitions.js";
|
|
41
39
|
import "../common/contingency-table/contingency-table.js";
|
|
42
40
|
import "../common/contingency-table/columns-definitions.js";
|
|
@@ -67,6 +65,7 @@ const basicParams = [
|
|
|
67
65
|
{
|
|
68
66
|
name: COUNTRIES_TO_BALANCE,
|
|
69
67
|
type: ParameterType.COUNTRIES,
|
|
68
|
+
inputLabel: "inputLabelLfCountriesToBalance",
|
|
70
69
|
label: "descLfCountriesToBalance"
|
|
71
70
|
},
|
|
72
71
|
{
|
|
@@ -94,92 +93,8 @@ const basicParams = [
|
|
|
94
93
|
label: "descLfHvdcAcEmulation"
|
|
95
94
|
}
|
|
96
95
|
];
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
name: VOLTAGE_INIT_MODE,
|
|
100
|
-
type: ParameterType.STRING,
|
|
101
|
-
label: "descLfVoltageInitMode",
|
|
102
|
-
possibleValues: [
|
|
103
|
-
{
|
|
104
|
-
id: "UNIFORM_VALUES",
|
|
105
|
-
label: "descLfUniformValues"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "PREVIOUS_VALUES",
|
|
109
|
-
label: "descLfPreviousValues"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: "DC_VALUES",
|
|
113
|
-
label: "descLfDcValues"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: USE_REACTIVE_LIMITS,
|
|
119
|
-
type: ParameterType.BOOLEAN,
|
|
120
|
-
label: "descLfUseReactiveLimits"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
124
|
-
type: ParameterType.BOOLEAN,
|
|
125
|
-
label: "descLfTwtSplitShuntAdmittance"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: READ_SLACK_BUS,
|
|
129
|
-
type: ParameterType.BOOLEAN,
|
|
130
|
-
label: "descLfReadSlackBus"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: WRITE_SLACK_BUS,
|
|
134
|
-
type: ParameterType.BOOLEAN,
|
|
135
|
-
label: "descLfWriteSlackBus"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: DISTRIBUTED_SLACK,
|
|
139
|
-
type: ParameterType.BOOLEAN,
|
|
140
|
-
label: "descLfDistributedSlack"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
|
|
144
|
-
type: ParameterType.BOOLEAN,
|
|
145
|
-
label: "descLfShuntCompensatorVoltageControlOn"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: DC_USE_TRANSFORMER_RATIO,
|
|
149
|
-
type: ParameterType.BOOLEAN,
|
|
150
|
-
label: "descLfDcUseTransformerRatio"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: DC_POWER_FACTOR,
|
|
154
|
-
type: ParameterType.DOUBLE,
|
|
155
|
-
label: "descLfDcPowerFactor"
|
|
156
|
-
}
|
|
157
|
-
];
|
|
158
|
-
function LoadFlowGeneralParameters({ provider, specificParams }) {
|
|
159
|
-
const { showAdvancedLfParams, setShowAdvancedLfParams, showSpecificLfParams, setShowSpecificLfParams } = useLoadFlowContext();
|
|
160
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
161
|
-
basicParams.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: COMMON_PARAMETERS, ...item, key: item.name })),
|
|
162
|
-
/* @__PURE__ */ jsx(
|
|
163
|
-
ParameterGroup,
|
|
164
|
-
{
|
|
165
|
-
label: "showAdvancedParameters",
|
|
166
|
-
state: showAdvancedLfParams,
|
|
167
|
-
onClick: setShowAdvancedLfParams,
|
|
168
|
-
children: showAdvancedLfParams && advancedParams.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: COMMON_PARAMETERS, ...item, key: item.name }))
|
|
169
|
-
}
|
|
170
|
-
),
|
|
171
|
-
/* @__PURE__ */ jsx(
|
|
172
|
-
ParameterGroup,
|
|
173
|
-
{
|
|
174
|
-
label: "showSpecificParameters",
|
|
175
|
-
state: showSpecificLfParams,
|
|
176
|
-
onClick: setShowSpecificLfParams,
|
|
177
|
-
infoText: provider ?? "",
|
|
178
|
-
disabled: !provider || !specificParams,
|
|
179
|
-
children: showSpecificLfParams && specificParams?.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: SPECIFIC_PARAMETERS, ...item, key: item.name }))
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
] });
|
|
96
|
+
function LoadFlowGeneralParameters() {
|
|
97
|
+
return /* @__PURE__ */ jsx(Fragment, { children: basicParams.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: COMMON_PARAMETERS, ...item, key: item.name })) });
|
|
183
98
|
}
|
|
184
99
|
const LoadFlowGeneralParameters$1 = memo(LoadFlowGeneralParameters);
|
|
185
100
|
export {
|
|
@@ -5,7 +5,7 @@ import { LoadFlowParametersInfos } from '../../../utils/types/loadflow.type';
|
|
|
5
5
|
type LoadFlowParametersContentProps = {
|
|
6
6
|
selectedTab: TabValues;
|
|
7
7
|
currentProvider: string;
|
|
8
|
-
specificParameters
|
|
8
|
+
specificParameters?: SpecificParameterInfos[];
|
|
9
9
|
params: LoadFlowParametersInfos | null;
|
|
10
10
|
defaultLimitReductions: ILimitReductionsByVoltageLevel[];
|
|
11
11
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { TabValues } from "./load-flow-parameters-utils.js";
|
|
4
|
+
import LoadFlowAdvancedParameters from "./load-flow-advanced-parameters.js";
|
|
4
5
|
import LoadFlowGeneralParameters from "./load-flow-general-parameters.js";
|
|
6
|
+
import LoadFlowProviderSpecificParameters from "./load-flow-provider-specific-parameters.js";
|
|
5
7
|
import "@mui/icons-material";
|
|
6
8
|
import "react";
|
|
7
9
|
import "react-intl";
|
|
@@ -64,7 +66,7 @@ function LoadFlowParametersContent({
|
|
|
64
66
|
defaultLimitReductions
|
|
65
67
|
}) {
|
|
66
68
|
return /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid2, { sx: styles.maxWidth, children: [
|
|
67
|
-
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.GENERAL, children: /* @__PURE__ */ jsx(LoadFlowGeneralParameters, {
|
|
69
|
+
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.GENERAL, children: /* @__PURE__ */ jsx(LoadFlowGeneralParameters, {}) }),
|
|
68
70
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW ? /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) : /* @__PURE__ */ jsx(
|
|
69
71
|
ParameterLineSlider,
|
|
70
72
|
{
|
|
@@ -74,7 +76,9 @@ function LoadFlowParametersContent({
|
|
|
74
76
|
minValue: MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
75
77
|
maxValue: MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION
|
|
76
78
|
}
|
|
77
|
-
) }) })
|
|
79
|
+
) }) }),
|
|
80
|
+
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.ADVANCED, children: /* @__PURE__ */ jsx(LoadFlowAdvancedParameters, {}) }),
|
|
81
|
+
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.PROVIDER_SPECIFIC, children: /* @__PURE__ */ jsx(LoadFlowProviderSpecificParameters, { specificParameters }) })
|
|
78
82
|
] }) }) });
|
|
79
83
|
}
|
|
80
84
|
export {
|
|
@@ -21,7 +21,8 @@ function LoadFlowParametersForm({ loadflowMethods }) {
|
|
|
21
21
|
selectedTab,
|
|
22
22
|
handleTabChange,
|
|
23
23
|
tabIndexesWithError,
|
|
24
|
-
formattedProviders
|
|
24
|
+
formattedProviders,
|
|
25
|
+
disableSpecificProviderParams: !watchProvider || !specificParametersDescriptionForProvider
|
|
25
26
|
}
|
|
26
27
|
) }),
|
|
27
28
|
/* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TabValues } from './load-flow-parameters-utils';
|
|
3
|
-
declare function LoadFlowParametersHeader({ selectedTab, handleTabChange, tabIndexesWithError, formattedProviders, }: Readonly<{
|
|
3
|
+
declare function LoadFlowParametersHeader({ selectedTab, handleTabChange, tabIndexesWithError, formattedProviders, disableSpecificProviderParams, }: Readonly<{
|
|
4
4
|
selectedTab: string;
|
|
5
5
|
handleTabChange: (event: React.SyntheticEvent, newValue: TabValues) => void;
|
|
6
6
|
tabIndexesWithError: TabValues[];
|
|
@@ -8,5 +8,6 @@ declare function LoadFlowParametersHeader({ selectedTab, handleTabChange, tabInd
|
|
|
8
8
|
id: string;
|
|
9
9
|
label: string;
|
|
10
10
|
}[];
|
|
11
|
+
disableSpecificProviderParams: boolean;
|
|
11
12
|
}>): React.JSX.Element;
|
|
12
13
|
export default LoadFlowParametersHeader;
|
|
@@ -43,7 +43,8 @@ function LoadFlowParametersHeader({
|
|
|
43
43
|
selectedTab,
|
|
44
44
|
handleTabChange,
|
|
45
45
|
tabIndexesWithError,
|
|
46
|
-
formattedProviders
|
|
46
|
+
formattedProviders,
|
|
47
|
+
disableSpecificProviderParams
|
|
47
48
|
}) {
|
|
48
49
|
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
49
50
|
/* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders, id: "Lf" }),
|
|
@@ -65,6 +66,25 @@ function LoadFlowParametersHeader({
|
|
|
65
66
|
sx: getTabStyle(tabIndexesWithError, TabValues.LIMIT_REDUCTIONS),
|
|
66
67
|
"data-testid": "LfLimitReductionsTab"
|
|
67
68
|
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
71
|
+
Tab,
|
|
72
|
+
{
|
|
73
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: TabValues.ADVANCED }),
|
|
74
|
+
value: TabValues.ADVANCED,
|
|
75
|
+
sx: getTabStyle(tabIndexesWithError, TabValues.ADVANCED),
|
|
76
|
+
"data-testid": "LfAdvancedTab"
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
Tab,
|
|
81
|
+
{
|
|
82
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: TabValues.PROVIDER_SPECIFIC }),
|
|
83
|
+
value: TabValues.PROVIDER_SPECIFIC,
|
|
84
|
+
sx: getTabStyle(tabIndexesWithError, TabValues.PROVIDER_SPECIFIC),
|
|
85
|
+
"data-testid": "LfProviderSpecificTab",
|
|
86
|
+
disabled: disableSpecificProviderParams
|
|
87
|
+
}
|
|
68
88
|
)
|
|
69
89
|
] })
|
|
70
90
|
] });
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
2
|
import { ILimitReductionsByVoltageLevel } from '../common';
|
|
3
3
|
import { SpecificParametersPerProvider } from '../../../utils';
|
|
4
|
+
export type ParameterValue = boolean | string | string[] | number;
|
|
4
5
|
export interface LoadFlowParametersInfos {
|
|
5
6
|
uuid?: UUID;
|
|
6
7
|
provider: string;
|
|
7
8
|
limitReduction: number;
|
|
8
|
-
commonParameters: Record<string,
|
|
9
|
+
commonParameters: Record<string, ParameterValue>;
|
|
9
10
|
specificParametersPerProvider: SpecificParametersPerProvider;
|
|
10
11
|
limitReductions: ILimitReductionsByVoltageLevel[];
|
|
11
12
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { UseFormReturn } from 'react-hook-form';
|
|
2
2
|
import { ILimitReductionsByVoltageLevel } from '../common';
|
|
3
|
+
import { ParameterValue } from './load-flow-parameters-type';
|
|
3
4
|
import * as yup from 'yup';
|
|
4
5
|
export declare enum TabValues {
|
|
5
6
|
GENERAL = "General",
|
|
7
|
+
ADVANCED = "Advanced",
|
|
8
|
+
PROVIDER_SPECIFIC = "ProviderSpecific",
|
|
6
9
|
LIMIT_REDUCTIONS = "LimitReductions"
|
|
7
10
|
}
|
|
8
11
|
export declare const getBasicLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
@@ -20,7 +23,7 @@ export declare const getBasicLoadFlowParametersFormSchema: () => yup.ObjectSchem
|
|
|
20
23
|
componentMode: undefined;
|
|
21
24
|
hvdcAcEmulation: undefined;
|
|
22
25
|
}, "">;
|
|
23
|
-
export declare const
|
|
26
|
+
export declare const getAdvancedLoadFlowParametersFormSchemaFields: () => yup.ObjectSchema<{
|
|
24
27
|
voltageInitMode: string;
|
|
25
28
|
useReactiveLimits: NonNullable<boolean | undefined>;
|
|
26
29
|
twtSplitShuntAdmittance: NonNullable<boolean | undefined>;
|
|
@@ -49,6 +52,19 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
49
52
|
countriesToBalance?: unknown;
|
|
50
53
|
componentMode?: unknown;
|
|
51
54
|
hvdcAcEmulation?: unknown;
|
|
55
|
+
};
|
|
56
|
+
}, yup.AnyObject, {
|
|
57
|
+
commonParameters: {
|
|
58
|
+
phaseShifterRegulationOn: undefined;
|
|
59
|
+
dc: undefined;
|
|
60
|
+
balanceType: undefined;
|
|
61
|
+
countriesToBalance: undefined;
|
|
62
|
+
componentMode: undefined;
|
|
63
|
+
hvdcAcEmulation: undefined;
|
|
64
|
+
};
|
|
65
|
+
}, "">;
|
|
66
|
+
export declare const getAdvancedLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
67
|
+
advancedParameters: {
|
|
52
68
|
voltageInitMode?: unknown;
|
|
53
69
|
useReactiveLimits?: unknown;
|
|
54
70
|
twtSplitShuntAdmittance?: unknown;
|
|
@@ -60,7 +76,7 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
60
76
|
dcPowerFactor?: unknown;
|
|
61
77
|
};
|
|
62
78
|
}, yup.AnyObject, {
|
|
63
|
-
|
|
79
|
+
advancedParameters: {
|
|
64
80
|
voltageInitMode: undefined;
|
|
65
81
|
useReactiveLimits: undefined;
|
|
66
82
|
twtSplitShuntAdmittance: undefined;
|
|
@@ -70,13 +86,11 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
70
86
|
shuntCompensatorVoltageControlOn: undefined;
|
|
71
87
|
dcUseTransformerRatio: undefined;
|
|
72
88
|
dcPowerFactor: undefined;
|
|
73
|
-
phaseShifterRegulationOn: undefined;
|
|
74
|
-
dc: undefined;
|
|
75
|
-
balanceType: undefined;
|
|
76
|
-
countriesToBalance: undefined;
|
|
77
|
-
componentMode: undefined;
|
|
78
|
-
hvdcAcEmulation: undefined;
|
|
79
89
|
};
|
|
80
90
|
}, "">;
|
|
81
91
|
export declare const setLimitReductions: (provider: string, defaultLimitReductions: ILimitReductionsByVoltageLevel[], formMethods: UseFormReturn) => void;
|
|
82
92
|
export declare const mapLimitReductions: (vlLimits: ILimitReductionsByVoltageLevel, formLimits: Record<string, unknown>[], indexVl: number) => ILimitReductionsByVoltageLevel;
|
|
93
|
+
export declare function splitCommonParameters(commonParameters?: Record<string, ParameterValue>): {
|
|
94
|
+
advancedParameters: Record<string, ParameterValue>;
|
|
95
|
+
commonParameters: Record<string, ParameterValue>;
|
|
96
|
+
};
|
|
@@ -30,7 +30,7 @@ import "mui-nested-menu";
|
|
|
30
30
|
import "react-resizable-panels";
|
|
31
31
|
import "react-papaparse";
|
|
32
32
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
33
|
-
import { COMMON_PARAMETERS } from "../common/constants.js";
|
|
33
|
+
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS } from "../common/constants.js";
|
|
34
34
|
import "../common/widget/parameter-line-slider.js";
|
|
35
35
|
import { IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, toFormValuesLimitReductions } from "../common/limitreductions/columns-definitions.js";
|
|
36
36
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -38,8 +38,11 @@ import "../common/contingency-table/columns-definitions.js";
|
|
|
38
38
|
import "@hookform/resolvers/yup";
|
|
39
39
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
40
40
|
import { DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DISTRIBUTED_SLACK, WRITE_SLACK_BUS, READ_SLACK_BUS, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, HVDC_AC_EMULATION, CONNECTED_MODE, COUNTRIES_TO_BALANCE, BALANCE_TYPE, DC, PHASE_SHIFTER_REGULATION_ON, PARAM_PROVIDER_OPENLOADFLOW, PARAM_LIMIT_REDUCTION, DEFAULT_LIMIT_REDUCTION_VALUE } from "./constants.js";
|
|
41
|
+
import { advancedParams } from "./load-flow-advanced-parameters.js";
|
|
41
42
|
var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
42
43
|
TabValues2["GENERAL"] = "General";
|
|
44
|
+
TabValues2["ADVANCED"] = "Advanced";
|
|
45
|
+
TabValues2["PROVIDER_SPECIFIC"] = "ProviderSpecific";
|
|
43
46
|
TabValues2["LIMIT_REDUCTIONS"] = "LimitReductions";
|
|
44
47
|
return TabValues2;
|
|
45
48
|
})(TabValues || {});
|
|
@@ -53,7 +56,7 @@ const getBasicLoadFlowParametersFormSchema = () => {
|
|
|
53
56
|
[HVDC_AC_EMULATION]: yup.boolean().required()
|
|
54
57
|
});
|
|
55
58
|
};
|
|
56
|
-
const
|
|
59
|
+
const getAdvancedLoadFlowParametersFormSchemaFields = () => {
|
|
57
60
|
return yup.object().shape({
|
|
58
61
|
[VOLTAGE_INIT_MODE]: yup.string().required(),
|
|
59
62
|
[USE_REACTIVE_LIMITS]: yup.boolean().required(),
|
|
@@ -69,8 +72,14 @@ const getAdvancedLoadFlowParametersFormSchema = () => {
|
|
|
69
72
|
const getCommonLoadFlowParametersFormSchema = () => {
|
|
70
73
|
return yup.object().shape({
|
|
71
74
|
[COMMON_PARAMETERS]: yup.object().shape({
|
|
72
|
-
...getBasicLoadFlowParametersFormSchema().fields
|
|
73
|
-
|
|
75
|
+
...getBasicLoadFlowParametersFormSchema().fields
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
const getAdvancedLoadFlowParametersFormSchema = () => {
|
|
80
|
+
return yup.object().shape({
|
|
81
|
+
[ADVANCED_PARAMETERS]: yup.object().shape({
|
|
82
|
+
...getAdvancedLoadFlowParametersFormSchemaFields().fields
|
|
74
83
|
})
|
|
75
84
|
});
|
|
76
85
|
};
|
|
@@ -100,11 +109,36 @@ const mapLimitReductions = (vlLimits, formLimits, indexVl) => {
|
|
|
100
109
|
});
|
|
101
110
|
return vlLNewLimits;
|
|
102
111
|
};
|
|
112
|
+
function splitCommonParameters(commonParameters) {
|
|
113
|
+
if (!commonParameters) {
|
|
114
|
+
return {
|
|
115
|
+
advancedParameters: {},
|
|
116
|
+
commonParameters: {}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const advancedParamNames = new Set(advancedParams.map((param) => param.name));
|
|
120
|
+
return Object.entries(commonParameters).reduce(
|
|
121
|
+
(acc, [key, value]) => {
|
|
122
|
+
if (advancedParamNames.has(key)) {
|
|
123
|
+
acc.advancedParameters[key] = value;
|
|
124
|
+
} else {
|
|
125
|
+
acc.commonParameters[key] = value;
|
|
126
|
+
}
|
|
127
|
+
return acc;
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
advancedParameters: {},
|
|
131
|
+
commonParameters: {}
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}
|
|
103
135
|
export {
|
|
104
136
|
TabValues,
|
|
105
137
|
getAdvancedLoadFlowParametersFormSchema,
|
|
138
|
+
getAdvancedLoadFlowParametersFormSchemaFields,
|
|
106
139
|
getBasicLoadFlowParametersFormSchema,
|
|
107
140
|
getCommonLoadFlowParametersFormSchema,
|
|
108
141
|
mapLimitReductions,
|
|
109
|
-
setLimitReductions
|
|
142
|
+
setLimitReductions,
|
|
143
|
+
splitCommonParameters
|
|
110
144
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpecificParameterInfos } from '../../../utils';
|
|
2
|
+
interface LoadFlowProviderSpecificParametersProps {
|
|
3
|
+
specificParameters?: SpecificParameterInfos[];
|
|
4
|
+
}
|
|
5
|
+
declare function LoadFlowProviderSpecificParameters({ specificParameters }: Readonly<LoadFlowProviderSpecificParametersProps>): import("react").JSX.Element;
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<typeof LoadFlowProviderSpecificParameters>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { memo, createElement } from "react";
|
|
3
|
+
import ParameterField from "../common/parameter-field.js";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "@mui/icons-material";
|
|
6
|
+
import "react-intl";
|
|
7
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
8
|
+
import "../../../utils/conversionUtils.js";
|
|
9
|
+
import "../../../utils/types/equipmentType.js";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "localized-countries";
|
|
12
|
+
import "localized-countries/data/fr";
|
|
13
|
+
import "localized-countries/data/en";
|
|
14
|
+
import "notistack";
|
|
15
|
+
import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
+
import "yup";
|
|
17
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
18
|
+
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
19
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
20
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
21
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
24
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
25
|
+
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
26
|
+
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
27
|
+
import "@hello-pangea/dnd";
|
|
28
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
29
|
+
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
30
|
+
import "mui-nested-menu";
|
|
31
|
+
import "react-resizable-panels";
|
|
32
|
+
import "react-papaparse";
|
|
33
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
34
|
+
import { SPECIFIC_PARAMETERS } from "../common/constants.js";
|
|
35
|
+
import "../common/widget/parameter-line-slider.js";
|
|
36
|
+
import "../common/limitreductions/columns-definitions.js";
|
|
37
|
+
import "../common/contingency-table/contingency-table.js";
|
|
38
|
+
import "../common/contingency-table/columns-definitions.js";
|
|
39
|
+
import "@hookform/resolvers/yup";
|
|
40
|
+
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
41
|
+
function LoadFlowProviderSpecificParameters({ specificParameters }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Fragment, { children: specificParameters?.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: SPECIFIC_PARAMETERS, ...item, key: item.name })) });
|
|
43
|
+
}
|
|
44
|
+
const LoadFlowProviderSpecificParameters$1 = memo(LoadFlowProviderSpecificParameters);
|
|
45
|
+
export {
|
|
46
|
+
LoadFlowProviderSpecificParameters$1 as default
|
|
47
|
+
};
|
|
@@ -2,7 +2,7 @@ import { useForm } from "react-hook-form";
|
|
|
2
2
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
3
3
|
import { useState, useRef, useCallback, useMemo, useEffect, useEffectEvent } from "react";
|
|
4
4
|
import * as yup from "yup";
|
|
5
|
-
import { TabValues, getCommonLoadFlowParametersFormSchema, mapLimitReductions, setLimitReductions } from "./load-flow-parameters-utils.js";
|
|
5
|
+
import { TabValues, getAdvancedLoadFlowParametersFormSchema, getCommonLoadFlowParametersFormSchema, splitCommonParameters, mapLimitReductions, setLimitReductions } from "./load-flow-parameters-utils.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@mui/material";
|
|
8
8
|
import "@mui/icons-material";
|
|
@@ -36,7 +36,7 @@ import "mui-nested-menu";
|
|
|
36
36
|
import "react-resizable-panels";
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
39
|
-
import { PROVIDER, SPECIFIC_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER } from "../common/constants.js";
|
|
39
|
+
import { PROVIDER, SPECIFIC_PARAMETERS, ADVANCED_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER } from "../common/constants.js";
|
|
40
40
|
import "../common/widget/parameter-line-slider.js";
|
|
41
41
|
import { getLimitReductionsFormSchema, LIMIT_REDUCTIONS_FORM, toFormValuesLimitReductions } from "../common/limitreductions/columns-definitions.js";
|
|
42
42
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -66,17 +66,25 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
|
|
|
66
66
|
[PROVIDER]: yup.string().required(),
|
|
67
67
|
[PARAM_LIMIT_REDUCTION]: yup.number().nullable(),
|
|
68
68
|
...getCommonLoadFlowParametersFormSchema().fields,
|
|
69
|
+
...getAdvancedLoadFlowParametersFormSchema().fields,
|
|
69
70
|
...getLimitReductionsFormSchema(limitReductionNumber).fields,
|
|
70
71
|
...getSpecificParametersFormSchema(specificParametersDescriptionForProvider).fields
|
|
71
72
|
}).concat(getNameElementEditorSchema(name));
|
|
72
73
|
}, [name, limitReductionNumber, specificParametersDescriptionForProvider]);
|
|
74
|
+
const { advancedParameters, commonParameters } = useMemo(
|
|
75
|
+
() => splitCommonParameters(params?.commonParameters),
|
|
76
|
+
[params?.commonParameters]
|
|
77
|
+
);
|
|
73
78
|
const formMethods = useForm({
|
|
74
79
|
defaultValues: {
|
|
75
80
|
...getNameElementEditorEmptyFormData(name, description),
|
|
76
81
|
[PROVIDER]: params?.provider,
|
|
77
82
|
[PARAM_LIMIT_REDUCTION]: null,
|
|
78
83
|
[COMMON_PARAMETERS]: {
|
|
79
|
-
...
|
|
84
|
+
...commonParameters
|
|
85
|
+
},
|
|
86
|
+
[ADVANCED_PARAMETERS]: {
|
|
87
|
+
...advancedParameters
|
|
80
88
|
},
|
|
81
89
|
[SPECIFIC_PARAMETERS]: {
|
|
82
90
|
...specificParametersDefaultValues
|
|
@@ -122,7 +130,8 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
|
|
|
122
130
|
commonParameters: {
|
|
123
131
|
[VERSION_PARAMETER]: formData[COMMON_PARAMETERS][VERSION_PARAMETER],
|
|
124
132
|
// PowSyBl requires that "version" appears first
|
|
125
|
-
...formData[COMMON_PARAMETERS]
|
|
133
|
+
...formData[COMMON_PARAMETERS],
|
|
134
|
+
...formData[ADVANCED_PARAMETERS]
|
|
126
135
|
},
|
|
127
136
|
specificParametersPerProvider: specificParametersDefaultValues ? {
|
|
128
137
|
[formData.provider]: getAllSpecificParametersValues(
|
|
@@ -139,11 +148,17 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
|
|
|
139
148
|
(_params) => {
|
|
140
149
|
const specificParamsListForCurrentProvider = _params.specificParametersPerProvider[_params.provider];
|
|
141
150
|
const specificParametersForLoadedProvider = specificParamsDescription?.[_params.provider] ?? [];
|
|
151
|
+
const { advancedParameters: advancedParams, commonParameters: commonParams } = splitCommonParameters(
|
|
152
|
+
_params.commonParameters
|
|
153
|
+
);
|
|
142
154
|
return {
|
|
143
155
|
[PROVIDER]: _params.provider,
|
|
144
156
|
[PARAM_LIMIT_REDUCTION]: _params.limitReduction,
|
|
145
157
|
[COMMON_PARAMETERS]: {
|
|
146
|
-
...
|
|
158
|
+
...commonParams
|
|
159
|
+
},
|
|
160
|
+
[ADVANCED_PARAMETERS]: {
|
|
161
|
+
...advancedParams
|
|
147
162
|
},
|
|
148
163
|
[SPECIFIC_PARAMETERS]: {
|
|
149
164
|
...formatSpecificParameters(
|
|
@@ -166,12 +181,19 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
|
|
|
166
181
|
const onValidationError = useCallback(
|
|
167
182
|
(errors) => {
|
|
168
183
|
const tabsInError = [];
|
|
184
|
+
console.log("ERRORS", errors);
|
|
169
185
|
if (errors?.[LIMIT_REDUCTIONS_FORM] && TabValues.LIMIT_REDUCTIONS !== selectedTab) {
|
|
170
186
|
tabsInError.push(TabValues.LIMIT_REDUCTIONS);
|
|
171
187
|
}
|
|
172
|
-
if (
|
|
188
|
+
if (errors?.[COMMON_PARAMETERS] && TabValues.GENERAL !== selectedTab) {
|
|
173
189
|
tabsInError.push(TabValues.GENERAL);
|
|
174
190
|
}
|
|
191
|
+
if (errors?.[SPECIFIC_PARAMETERS] && TabValues.PROVIDER_SPECIFIC !== selectedTab) {
|
|
192
|
+
tabsInError.push(TabValues.PROVIDER_SPECIFIC);
|
|
193
|
+
}
|
|
194
|
+
if (errors?.[ADVANCED_PARAMETERS] && TabValues.ADVANCED !== selectedTab) {
|
|
195
|
+
tabsInError.push(TabValues.ADVANCED);
|
|
196
|
+
}
|
|
175
197
|
setTabIndexesWithError(tabsInError);
|
|
176
198
|
},
|
|
177
199
|
[selectedTab]
|
|
@@ -40,6 +40,7 @@ import "@hookform/resolvers/yup";
|
|
|
40
40
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
41
41
|
import { PARAM_PROVIDER_OPENLOADFLOW } from "../loadflow/constants.js";
|
|
42
42
|
import "../loadflow/load-flow-parameters-context.js";
|
|
43
|
+
import "../loadflow/load-flow-advanced-parameters.js";
|
|
43
44
|
import "../loadflow/load-flow-parameters-content.js";
|
|
44
45
|
import { ViolationsHidingParameters } from "./security-analysis-violations-hiding.js";
|
|
45
46
|
function SecurityAnalysisParametersSelector({
|
|
@@ -42,6 +42,7 @@ import "@hookform/resolvers/yup";
|
|
|
42
42
|
import { NameElementEditorForm } from "../../parameters/common/name-element-editor/name-element-editor-form.js";
|
|
43
43
|
import "../../parameters/network-visualizations/constants.js";
|
|
44
44
|
import "../../parameters/loadflow/load-flow-parameters-context.js";
|
|
45
|
+
import "../../parameters/loadflow/load-flow-advanced-parameters.js";
|
|
45
46
|
import "../../parameters/loadflow/load-flow-parameters-content.js";
|
|
46
47
|
import "../../parameters/short-circuit/short-circuit-parameters-content.js";
|
|
47
48
|
import "react-dom";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useCallback } from "react";
|
|
3
|
-
import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid2, DialogActions,
|
|
3
|
+
import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid2, DialogActions, useMediaQuery, 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
7
|
import { CustomTooltip } from "../../components/ui/tooltip/CustomTooltip.js";
|
|
8
8
|
import { LogoText } from "./GridLogo.js";
|
|
9
9
|
import { mergeSx } from "../../utils/styles.js";
|
|
10
|
+
import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
|
|
10
11
|
const styles = {
|
|
11
12
|
general: {
|
|
12
13
|
".MuiAccordion-root": {
|
|
@@ -336,7 +337,7 @@ function AboutDialog({
|
|
|
336
337
|
) }) })
|
|
337
338
|
] })
|
|
338
339
|
] }) }),
|
|
339
|
-
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(
|
|
340
|
+
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: handleClose, autoFocus: true }) })
|
|
340
341
|
]
|
|
341
342
|
}
|
|
342
343
|
);
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Dialog, DialogTitle, DialogContent, Grid2, Typography, Box, DialogActions } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useState, useEffect, Fragment } from "react";
|
|
5
|
-
import { CancelButton } from "../../components/ui/reactHookForm/utils/CancelButton.js";
|
|
6
5
|
import { fetchUserDetails } from "../../services/userAdmin.js";
|
|
6
|
+
import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
|
|
7
7
|
const styles = {
|
|
8
8
|
DialogTitle: { fontSize: "1.5rem" },
|
|
9
9
|
DialogContent: { marginTop: "10px" },
|
|
@@ -92,7 +92,7 @@ function UserInformationDialog({ openDialog, userProfile, onClose }) {
|
|
|
92
92
|
] })
|
|
93
93
|
] })
|
|
94
94
|
] }),
|
|
95
|
-
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(
|
|
95
|
+
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: onClose, autoFocus: true }) })
|
|
96
96
|
] });
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import { Dialog, DialogTitle, DialogContent, Box, Switch, Alert, DialogActions
|
|
4
|
+
import { Dialog, DialogTitle, DialogContent, Box, Switch, Alert, DialogActions } from "@mui/material";
|
|
5
|
+
import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
|
|
5
6
|
const styles = {
|
|
6
7
|
parameterName: (theme) => ({
|
|
7
8
|
fontWeight: "bold",
|
|
@@ -43,7 +44,7 @@ function UserSettingsDialog({ openDialog, onClose, developerMode, onDeveloperMod
|
|
|
43
44
|
] }),
|
|
44
45
|
developerMode && /* @__PURE__ */ jsx(Alert, { severity: "warning", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-settings-dialog/warning-developer-mode" }) })
|
|
45
46
|
] }),
|
|
46
|
-
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(
|
|
47
|
+
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: handleClose, autoFocus: true }) })
|
|
47
48
|
] });
|
|
48
49
|
}
|
|
49
50
|
export {
|