@gridsuite/commons-ui 0.168.0 → 0.169.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/dialogs/customMuiDialog/CustomMuiDialog.d.ts +4 -9
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.js +39 -54
- package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +1 -3
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -2
- package/dist/components/filter/FilterCreationDialog.js +7 -5
- package/dist/components/filter/expert/ExpertFilterEditionDialog.js +7 -5
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +7 -5
- package/dist/components/index.js +1 -2
- package/dist/components/inputs/reactHookForm/text/TextInput.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.js +1 -1
- package/dist/components/parameters/index.js +1 -2
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +6 -4
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +6 -4
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +6 -4
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +6 -4
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +6 -4
- package/dist/components/parameters/short-circuit/columns-definition.js +22 -22
- package/dist/components/parameters/short-circuit/constants.d.ts +0 -1
- package/dist/components/parameters/short-circuit/constants.js +0 -2
- package/dist/components/parameters/short-circuit/index.js +1 -2
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +5 -8
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +2 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +6 -4
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +5 -5
- package/dist/components/parameters/short-circuit/short-circuit-parameters.type.d.ts +6 -6
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +6 -4
- package/dist/index.js +1 -2
- package/dist/translations/en/parameters.d.ts +0 -3
- package/dist/translations/en/parameters.js +0 -3
- package/dist/translations/fr/parameters.d.ts +0 -3
- package/dist/translations/fr/parameters.js +0 -3
- package/dist/utils/types/metadata.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { FieldErrors, FieldValues, SubmitHandler
|
|
2
|
+
import { FieldErrors, FieldValues, SubmitHandler } from 'react-hook-form';
|
|
3
3
|
import { DialogProps } from '@mui/material';
|
|
4
|
-
import {
|
|
5
|
-
import { GsLang } from '../../../utils';
|
|
4
|
+
import { MergedFormContextProps } from '../../inputs/reactHookForm/provider/CustomFormProvider';
|
|
6
5
|
export type CustomMuiDialogProps<T extends FieldValues = FieldValues> = DialogProps & {
|
|
7
6
|
open: boolean;
|
|
8
|
-
|
|
9
|
-
formMethods: UseFormReturn<T>;
|
|
7
|
+
formContext: MergedFormContextProps<T>;
|
|
10
8
|
onClose: (event?: MouseEvent) => void;
|
|
11
9
|
onSave: SubmitHandler<T>;
|
|
12
10
|
onValidationError?: (errors: FieldErrors) => void;
|
|
13
11
|
titleId: string;
|
|
14
12
|
disabledSave?: boolean;
|
|
15
|
-
removeOptional?: boolean;
|
|
16
13
|
onCancel?: () => void;
|
|
17
14
|
children: ReactNode;
|
|
18
15
|
isDataFetching?: boolean;
|
|
19
|
-
language?: GsLang;
|
|
20
16
|
confirmationMessageKey?: string;
|
|
21
17
|
unscrollableFullHeight?: boolean;
|
|
22
|
-
isDeveloperMode?: boolean;
|
|
23
18
|
};
|
|
24
19
|
/**
|
|
25
20
|
* all those styles are made to work with each other in order to control the scroll behavior:
|
|
@@ -53,4 +48,4 @@ export declare const unscrollableDialogStyles: {
|
|
|
53
48
|
readonly padding: 1;
|
|
54
49
|
};
|
|
55
50
|
};
|
|
56
|
-
export declare function CustomMuiDialog<T extends FieldValues = FieldValues>({ open,
|
|
51
|
+
export declare function CustomMuiDialog<T extends FieldValues = FieldValues>({ open, formContext, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, onCancel, children, confirmationMessageKey, unscrollableFullHeight, ...dialogProps }: Readonly<CustomMuiDialogProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -40,26 +40,21 @@ const unscrollableDialogStyles = {
|
|
|
40
40
|
};
|
|
41
41
|
function CustomMuiDialog({
|
|
42
42
|
open,
|
|
43
|
-
|
|
44
|
-
formMethods,
|
|
43
|
+
formContext,
|
|
45
44
|
onClose,
|
|
46
45
|
onSave,
|
|
47
46
|
isDataFetching = false,
|
|
48
47
|
onValidationError,
|
|
49
48
|
titleId,
|
|
50
49
|
disabledSave,
|
|
51
|
-
removeOptional = false,
|
|
52
50
|
onCancel,
|
|
53
51
|
children,
|
|
54
|
-
language,
|
|
55
|
-
isDeveloperMode,
|
|
56
52
|
confirmationMessageKey,
|
|
57
53
|
unscrollableFullHeight = false,
|
|
58
54
|
...dialogProps
|
|
59
55
|
}) {
|
|
60
56
|
const [openConfirmationPopup, setOpenConfirmationPopup] = useState(false);
|
|
61
57
|
const [validatedData, setValidatedData] = useState();
|
|
62
|
-
const { handleSubmit } = formMethods;
|
|
63
58
|
const handleCancel = useCallback(
|
|
64
59
|
(event) => {
|
|
65
60
|
onCancel?.();
|
|
@@ -103,54 +98,44 @@ function CustomMuiDialog({
|
|
|
103
98
|
},
|
|
104
99
|
[onValidationError]
|
|
105
100
|
);
|
|
106
|
-
return /* @__PURE__ */ jsxs(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
message: confirmationMessageKey,
|
|
146
|
-
openConfirmationPopup,
|
|
147
|
-
setOpenConfirmationPopup,
|
|
148
|
-
handlePopupConfirmation
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
);
|
|
101
|
+
return /* @__PURE__ */ jsxs(CustomFormProvider, { ...formContext, children: [
|
|
102
|
+
/* @__PURE__ */ jsxs(
|
|
103
|
+
Dialog,
|
|
104
|
+
{
|
|
105
|
+
sx: unscrollableFullHeight ? unscrollableDialogStyles.fullHeightDialog : styles.dialogPaper,
|
|
106
|
+
open,
|
|
107
|
+
onClose: handleClose,
|
|
108
|
+
fullWidth: true,
|
|
109
|
+
...dialogProps,
|
|
110
|
+
children: [
|
|
111
|
+
isDataFetching && /* @__PURE__ */ jsx(LinearProgress, {}),
|
|
112
|
+
/* @__PURE__ */ jsx(DialogTitle, { "data-testid": "DialogTitle", children: /* @__PURE__ */ jsx(FormattedMessage, { id: titleId }) }),
|
|
113
|
+
/* @__PURE__ */ jsx(DialogContent, { sx: unscrollableFullHeight ? unscrollableDialogStyles.unscrollableContainer : null, children }),
|
|
114
|
+
/* @__PURE__ */ jsxs(DialogActions, { children: [
|
|
115
|
+
/* @__PURE__ */ jsx(CancelButton, { onClick: handleCancel, "data-testid": "CancelButton" }),
|
|
116
|
+
/* @__PURE__ */ jsx(
|
|
117
|
+
SubmitButton,
|
|
118
|
+
{
|
|
119
|
+
variant: "outlined",
|
|
120
|
+
disabled: disabledSave,
|
|
121
|
+
onClick: formContext?.handleSubmit(handleValidate, handleValidationError),
|
|
122
|
+
"data-testid": "ValidateButton"
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] })
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
confirmationMessageKey && /* @__PURE__ */ jsx(
|
|
130
|
+
PopupConfirmationDialog,
|
|
131
|
+
{
|
|
132
|
+
message: confirmationMessageKey,
|
|
133
|
+
openConfirmationPopup,
|
|
134
|
+
setOpenConfirmationPopup,
|
|
135
|
+
handlePopupConfirmation
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
] });
|
|
154
139
|
}
|
|
155
140
|
export {
|
|
156
141
|
CustomMuiDialog,
|
package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js
CHANGED
|
@@ -55,10 +55,8 @@ function DescriptionModificationDialog({
|
|
|
55
55
|
open,
|
|
56
56
|
onClose: onCancel,
|
|
57
57
|
onSave: onSubmit,
|
|
58
|
-
|
|
59
|
-
formMethods: methods,
|
|
58
|
+
formContext: { ...methods, validationSchema: schema, removeOptional: true },
|
|
60
59
|
titleId: "description",
|
|
61
|
-
removeOptional: true,
|
|
62
60
|
children: /* @__PURE__ */ jsx(Box, { paddingTop: 1, children: /* @__PURE__ */ jsx(
|
|
63
61
|
ExpandingTextField,
|
|
64
62
|
{
|
|
@@ -221,8 +221,7 @@ function ElementSaveDialog({
|
|
|
221
221
|
titleId,
|
|
222
222
|
onSave: onSubmit,
|
|
223
223
|
disabledSave: disableSave,
|
|
224
|
-
|
|
225
|
-
formMethods,
|
|
224
|
+
formContext: { ...formMethods, validationSchema: schema },
|
|
226
225
|
children: [
|
|
227
226
|
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, marginTop: "auto", direction: "column", children: [
|
|
228
227
|
!createOnlyMode && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
@@ -99,13 +99,15 @@ function FilterCreationDialog({
|
|
|
99
99
|
open,
|
|
100
100
|
onClose,
|
|
101
101
|
onSave: onSubmit,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
formContext: {
|
|
103
|
+
...formMethods,
|
|
104
|
+
validationSchema: formSchema,
|
|
105
|
+
removeOptional: true,
|
|
106
|
+
language,
|
|
107
|
+
isDeveloperMode
|
|
108
|
+
},
|
|
104
109
|
titleId,
|
|
105
|
-
removeOptional: true,
|
|
106
110
|
disabledSave: !!nameError || !!isValidating,
|
|
107
|
-
language,
|
|
108
|
-
isDeveloperMode,
|
|
109
111
|
unscrollableFullHeight: true,
|
|
110
112
|
children: /* @__PURE__ */ jsx(
|
|
111
113
|
FilterForm,
|
|
@@ -92,14 +92,16 @@ function ExpertFilterEditionDialog({
|
|
|
92
92
|
open,
|
|
93
93
|
onClose,
|
|
94
94
|
onSave: onSubmit,
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
formContext: {
|
|
96
|
+
...formMethods,
|
|
97
|
+
validationSchema: formSchema,
|
|
98
|
+
removeOptional: true,
|
|
99
|
+
language,
|
|
100
|
+
isDeveloperMode
|
|
101
|
+
},
|
|
97
102
|
titleId,
|
|
98
|
-
removeOptional: true,
|
|
99
103
|
disabledSave: !!nameError || !!isValidating,
|
|
100
104
|
isDataFetching: dataFetchStatus === FetchStatus.FETCHING,
|
|
101
|
-
language,
|
|
102
|
-
isDeveloperMode,
|
|
103
105
|
unscrollableFullHeight: true,
|
|
104
106
|
children: isDataReady && /* @__PURE__ */ jsx(FilterForm, { activeDirectory, filterType: FilterType.EXPERT, isEditing: true })
|
|
105
107
|
}
|
|
@@ -95,14 +95,16 @@ function ExplicitNamingFilterEditionDialog({
|
|
|
95
95
|
open,
|
|
96
96
|
onClose,
|
|
97
97
|
onSave: onSubmit,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
formContext: {
|
|
99
|
+
...formMethods,
|
|
100
|
+
validationSchema: formSchema,
|
|
101
|
+
removeOptional: true,
|
|
102
|
+
language,
|
|
103
|
+
isDeveloperMode
|
|
104
|
+
},
|
|
100
105
|
titleId,
|
|
101
|
-
removeOptional: true,
|
|
102
106
|
disabledSave: !!nameError || !!isValidating,
|
|
103
107
|
isDataFetching: dataFetchStatus === FetchStatus.FETCHING,
|
|
104
|
-
language,
|
|
105
|
-
isDeveloperMode,
|
|
106
108
|
unscrollableFullHeight: true,
|
|
107
109
|
children: isDataReady && /* @__PURE__ */ jsx(FilterForm, { activeDirectory, filterType: FilterType.EXPLICIT_NAMING, isEditing: true })
|
|
108
110
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -160,7 +160,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./parameters/netwo
|
|
|
160
160
|
import { BALANCE_TYPE, CONNECTED_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./parameters/loadflow/constants.js";
|
|
161
161
|
import { LoadFlowParametersInline } from "./parameters/loadflow/load-flow-parameters-inline.js";
|
|
162
162
|
import { LoadFlowParametersEditionDialog } from "./parameters/loadflow/load-flow-parameters-dialog.js";
|
|
163
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
163
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./parameters/short-circuit/constants.js";
|
|
164
164
|
import { ShortCircuitParametersInLine } from "./parameters/short-circuit/short-circuit-parameters-inline.js";
|
|
165
165
|
import { ShortCircuitParametersEditionDialog } from "./parameters/short-circuit/short-circuit-parameters-dialog.js";
|
|
166
166
|
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./parameters/voltage-init/constants.js";
|
|
@@ -444,7 +444,6 @@ export {
|
|
|
444
444
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
445
445
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
446
446
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
447
|
-
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER,
|
|
448
447
|
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
|
|
449
448
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
450
449
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
@@ -69,7 +69,7 @@ function TextInput({
|
|
|
69
69
|
disabled,
|
|
70
70
|
InputProps: {
|
|
71
71
|
endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
|
|
72
|
-
clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, children: /* @__PURE__ */ jsx(Clear, {}) }),
|
|
72
|
+
clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }),
|
|
73
73
|
customAdornment && { ...customAdornment }
|
|
74
74
|
] })
|
|
75
75
|
},
|
|
@@ -21,7 +21,7 @@ function TextFieldWithAdornment(props) {
|
|
|
21
21
|
}, []);
|
|
22
22
|
const getClearAdornment = useCallback(
|
|
23
23
|
(position) => {
|
|
24
|
-
return /* @__PURE__ */ jsx(InputAdornment, { position, children: /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, children: /* @__PURE__ */ jsx(Clear, {}) }) });
|
|
24
|
+
return /* @__PURE__ */ jsx(InputAdornment, { position, children: /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }) });
|
|
25
25
|
},
|
|
26
26
|
[handleClearValue]
|
|
27
27
|
);
|
|
@@ -23,7 +23,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./network-visualiz
|
|
|
23
23
|
import { BALANCE_TYPE, CONNECTED_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./loadflow/constants.js";
|
|
24
24
|
import { LoadFlowParametersInline } from "./loadflow/load-flow-parameters-inline.js";
|
|
25
25
|
import { LoadFlowParametersEditionDialog } from "./loadflow/load-flow-parameters-dialog.js";
|
|
26
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
26
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./short-circuit/constants.js";
|
|
27
27
|
import { ShortCircuitParametersInLine } from "./short-circuit/short-circuit-parameters-inline.js";
|
|
28
28
|
import { ShortCircuitParametersEditionDialog } from "./short-circuit/short-circuit-parameters-dialog.js";
|
|
29
29
|
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./voltage-init/constants.js";
|
|
@@ -163,7 +163,6 @@ export {
|
|
|
163
163
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
164
164
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
165
165
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
166
|
-
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER,
|
|
167
166
|
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
|
|
168
167
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
169
168
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
@@ -83,11 +83,13 @@ function LoadFlowParametersEditionDialog({
|
|
|
83
83
|
onClose,
|
|
84
84
|
onSave: loadflowMethods.onSaveDialog,
|
|
85
85
|
onValidationError: loadflowMethods.onValidationError,
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
formContext: {
|
|
87
|
+
...loadflowMethods.formMethods,
|
|
88
|
+
validationSchema: loadflowMethods.formSchema,
|
|
89
|
+
removeOptional: true,
|
|
90
|
+
language
|
|
91
|
+
},
|
|
88
92
|
titleId,
|
|
89
|
-
removeOptional: true,
|
|
90
|
-
language,
|
|
91
93
|
disabledSave: disableSave,
|
|
92
94
|
children: /* @__PURE__ */ jsx(LoadFlowProvider, { children: /* @__PURE__ */ jsx(
|
|
93
95
|
LoadFlowParametersForm,
|
|
@@ -66,11 +66,13 @@ function NetworkVisualizationsParametersEditionDialog({
|
|
|
66
66
|
open,
|
|
67
67
|
onClose,
|
|
68
68
|
onSave: networkVisuMethods.onSaveDialog,
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
formContext: {
|
|
70
|
+
...networkVisuMethods.formMethods,
|
|
71
|
+
validationSchema: networkVisuMethods.formSchema,
|
|
72
|
+
removeOptional: true,
|
|
73
|
+
language
|
|
74
|
+
},
|
|
71
75
|
titleId,
|
|
72
|
-
removeOptional: true,
|
|
73
|
-
language,
|
|
74
76
|
disabledSave: disableSave,
|
|
75
77
|
PaperProps: {
|
|
76
78
|
sx: {
|
|
@@ -65,11 +65,13 @@ function PccMinParametersEditionDialog({
|
|
|
65
65
|
open,
|
|
66
66
|
onClose,
|
|
67
67
|
onSave: pccMinMethods.onSaveDialog,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
formContext: {
|
|
69
|
+
...pccMinMethods.formMethods,
|
|
70
|
+
validationSchema: pccMinMethods.formSchema,
|
|
71
|
+
removeOptional: true,
|
|
72
|
+
language
|
|
73
|
+
},
|
|
70
74
|
titleId,
|
|
71
|
-
removeOptional: true,
|
|
72
|
-
language,
|
|
73
75
|
disabledSave: disableSave,
|
|
74
76
|
PaperProps: {
|
|
75
77
|
sx: {
|
|
@@ -80,11 +80,13 @@ function SecurityAnalysisParametersDialog({
|
|
|
80
80
|
open,
|
|
81
81
|
onClose,
|
|
82
82
|
onSave: securityAnalysisMethods.onSaveDialog,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
formContext: {
|
|
84
|
+
...securityAnalysisMethods.formMethods,
|
|
85
|
+
validationSchema: securityAnalysisMethods.formSchema,
|
|
86
|
+
removeOptional: true,
|
|
87
|
+
language
|
|
88
|
+
},
|
|
85
89
|
titleId,
|
|
86
|
-
removeOptional: true,
|
|
87
|
-
language,
|
|
88
90
|
disabledSave: disableSave,
|
|
89
91
|
PaperProps: {
|
|
90
92
|
sx: {
|
|
@@ -86,11 +86,13 @@ function SensitivityAnalysisParametersDialog({
|
|
|
86
86
|
open,
|
|
87
87
|
onClose,
|
|
88
88
|
onSave: sensitivityAnalysisMethods.onSaveDialog,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
formContext: {
|
|
90
|
+
...sensitivityAnalysisMethods.formMethods,
|
|
91
|
+
validationSchema: sensitivityAnalysisMethods.formSchema,
|
|
92
|
+
removeOptional: true,
|
|
93
|
+
language
|
|
94
|
+
},
|
|
91
95
|
titleId,
|
|
92
|
-
removeOptional: true,
|
|
93
|
-
language,
|
|
94
96
|
disabledSave: disableSave,
|
|
95
97
|
children: /* @__PURE__ */ jsx(
|
|
96
98
|
SensitivityAnalysisParametersForm,
|
|
@@ -18,12 +18,6 @@ const SHORT_CIRCUIT_ICC_CLUSTER_USMIN = SHORT_CIRCUIT_ICC_MATERIAL_USMIN;
|
|
|
18
18
|
const SHORT_CIRCUIT_ICC_CLUSTER_USMAX = SHORT_CIRCUIT_ICC_MATERIAL_USMAX;
|
|
19
19
|
const SHORT_CIRCUIT_ICC_CLUSTER_U0 = SHORT_CIRCUIT_ICC_MATERIAL_U0;
|
|
20
20
|
const COLUMNS_DEFINITIONS_ICC_MATERIALS = [
|
|
21
|
-
{
|
|
22
|
-
label: "ShortCircuitIccActive",
|
|
23
|
-
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE,
|
|
24
|
-
tooltip: "ShortCircuitIccMaterialActiveTooltip",
|
|
25
|
-
width: "8%"
|
|
26
|
-
},
|
|
27
21
|
{
|
|
28
22
|
label: "ShortCircuitIccMaterialType",
|
|
29
23
|
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_TYPE,
|
|
@@ -33,35 +27,34 @@ const COLUMNS_DEFINITIONS_ICC_MATERIALS = [
|
|
|
33
27
|
label: "ShortCircuitIccAlpha",
|
|
34
28
|
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_ALPHA,
|
|
35
29
|
tooltip: "ShortCircuitIccAlphaTooltip",
|
|
36
|
-
width: "
|
|
30
|
+
width: "10%"
|
|
37
31
|
},
|
|
38
32
|
{
|
|
39
33
|
label: "ShortCircuitIccUsmin",
|
|
40
34
|
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_USMIN,
|
|
41
35
|
tooltip: "ShortCircuitIccUsminTooltip",
|
|
42
|
-
width: "
|
|
36
|
+
width: "10%"
|
|
43
37
|
},
|
|
44
38
|
{
|
|
45
39
|
label: "ShortCircuitIccUsmax",
|
|
46
40
|
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_USMAX,
|
|
47
41
|
tooltip: "ShortCircuitIccUsmaxTooltip",
|
|
48
|
-
width: "
|
|
42
|
+
width: "10%"
|
|
49
43
|
},
|
|
50
44
|
{
|
|
51
45
|
label: "ShortCircuitIccU0",
|
|
52
46
|
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_U0,
|
|
53
47
|
tooltip: "ShortCircuitIccU0Tooltip",
|
|
54
|
-
width: "
|
|
48
|
+
width: "10%"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "ShortCircuitIccActive",
|
|
52
|
+
dataKey: SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE,
|
|
53
|
+
tooltip: "ShortCircuitIccMaterialActiveTooltip",
|
|
54
|
+
width: "10%"
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
57
|
const COLUMNS_DEFINITIONS_ICC_CLUSTERS = [
|
|
58
|
-
{
|
|
59
|
-
label: "ShortCircuitIccActive",
|
|
60
|
-
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_ACTIVE,
|
|
61
|
-
tooltip: "ShortCircuitIccClusterActiveTooltip",
|
|
62
|
-
initialValue: false,
|
|
63
|
-
width: "8%"
|
|
64
|
-
},
|
|
65
58
|
{
|
|
66
59
|
label: "ShortCircuitIccClusterFilters",
|
|
67
60
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_FILTERS,
|
|
@@ -77,35 +70,42 @@ const COLUMNS_DEFINITIONS_ICC_CLUSTERS = [
|
|
|
77
70
|
tooltip: "ShortCircuitIccClusterTypeTooltip",
|
|
78
71
|
titleId: "ShortCircuitIccClusterTypeListsSelection",
|
|
79
72
|
initialValue: [],
|
|
80
|
-
width: "
|
|
73
|
+
width: "20%"
|
|
81
74
|
},
|
|
82
75
|
{
|
|
83
76
|
label: "ShortCircuitIccAlpha",
|
|
84
77
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_ALPHA,
|
|
85
78
|
tooltip: "ShortCircuitIccAlphaTooltip",
|
|
86
79
|
initialValue: 1,
|
|
87
|
-
width: "
|
|
80
|
+
width: "10%"
|
|
88
81
|
},
|
|
89
82
|
{
|
|
90
83
|
label: "ShortCircuitIccUsmin",
|
|
91
84
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_USMIN,
|
|
92
85
|
tooltip: "ShortCircuitIccUsminTooltip",
|
|
93
86
|
initialValue: 0,
|
|
94
|
-
width: "
|
|
87
|
+
width: "10%"
|
|
95
88
|
},
|
|
96
89
|
{
|
|
97
90
|
label: "ShortCircuitIccUsmax",
|
|
98
91
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_USMAX,
|
|
99
92
|
tooltip: "ShortCircuitIccUsmaxTooltip",
|
|
100
93
|
initialValue: 100,
|
|
101
|
-
width: "
|
|
94
|
+
width: "10%"
|
|
102
95
|
},
|
|
103
96
|
{
|
|
104
97
|
label: "ShortCircuitIccU0",
|
|
105
98
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_U0,
|
|
106
99
|
tooltip: "ShortCircuitIccU0Tooltip",
|
|
107
100
|
initialValue: 100,
|
|
108
|
-
width: "
|
|
101
|
+
width: "10%"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "ShortCircuitIccActive",
|
|
105
|
+
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_ACTIVE,
|
|
106
|
+
tooltip: "ShortCircuitIccClusterActiveTooltip",
|
|
107
|
+
initialValue: false,
|
|
108
|
+
width: "10%"
|
|
109
109
|
}
|
|
110
110
|
];
|
|
111
111
|
export {
|
|
@@ -25,7 +25,6 @@ export declare const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
|
|
|
25
25
|
export declare const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
|
|
26
26
|
export declare const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
|
|
27
27
|
export declare const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
|
|
28
|
-
export declare const SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER = "powerElectronicsCluster";
|
|
29
28
|
export declare const SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS = "powerElectronicsClusters";
|
|
30
29
|
export declare const intlPredefinedParametersOptions: () => {
|
|
31
30
|
id: string;
|
|
@@ -21,7 +21,6 @@ const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
|
|
|
21
21
|
const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
|
|
22
22
|
const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
|
|
23
23
|
const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
|
|
24
|
-
const SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER = "powerElectronicsCluster";
|
|
25
24
|
const SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS = "powerElectronicsClusters";
|
|
26
25
|
const intlPredefinedParametersOptions = () => [
|
|
27
26
|
{
|
|
@@ -65,7 +64,6 @@ export {
|
|
|
65
64
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
66
65
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
67
66
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
68
|
-
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER,
|
|
69
67
|
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
|
|
70
68
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
71
69
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
1
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./constants.js";
|
|
2
2
|
import { ShortCircuitParametersInLine } from "./short-circuit-parameters-inline.js";
|
|
3
3
|
import { ShortCircuitParametersEditionDialog } from "./short-circuit-parameters-dialog.js";
|
|
4
4
|
export {
|
|
@@ -7,7 +7,6 @@ export {
|
|
|
7
7
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
8
8
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
9
9
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
10
|
-
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER,
|
|
11
10
|
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
|
|
12
11
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
13
12
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
@@ -201,13 +201,10 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
|
-
const modelPowerElectronics = /* @__PURE__ */
|
|
205
|
-
|
|
206
|
-
{
|
|
207
|
-
|
|
208
|
-
label: "ShortCircuitModelPowerElectronics"
|
|
209
|
-
}
|
|
210
|
-
);
|
|
204
|
+
const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
|
|
205
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
|
|
206
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
|
|
207
|
+
] });
|
|
211
208
|
useEffect(() => {
|
|
212
209
|
const isIccMaxWithNominalVoltageMap = watchPredefinedParams === PredefinedParameters.ICC_MAX_WITH_NOMINAL_VOLTAGE_MAP;
|
|
213
210
|
const isIccMinWithNominal = watchPredefinedParams === PredefinedParameters.ICC_MIN_WITH_NOMINAL_VOLTAGE_MAP;
|
|
@@ -253,7 +250,7 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
|
|
|
253
250
|
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: onlyStartedGeneratorsInCalculationCluster }) }),
|
|
254
251
|
isDeveloperMode && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
255
252
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
|
|
256
|
-
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size:
|
|
253
|
+
/* @__PURE__ */ jsx(Grid, { container: true, xl: 6, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
|
|
257
254
|
/* @__PURE__ */ jsx(
|
|
258
255
|
ShortCircuitIccMaterialTable,
|
|
259
256
|
{
|
|
@@ -9,10 +9,10 @@ const styles = {
|
|
|
9
9
|
tableContainer: (theme) => ({
|
|
10
10
|
width: "100%",
|
|
11
11
|
border: "solid 0px rgba(0,0,0,0.1)",
|
|
12
|
-
marginBottom: theme.spacing(
|
|
12
|
+
marginBottom: theme.spacing(2)
|
|
13
13
|
}),
|
|
14
14
|
table: {
|
|
15
|
-
minWidth: "
|
|
15
|
+
minWidth: "65em",
|
|
16
16
|
tableLayout: "fixed"
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -6,10 +6,11 @@ const styles = {
|
|
|
6
6
|
tableContainer: (theme) => ({
|
|
7
7
|
width: "100%",
|
|
8
8
|
border: "solid 0px rgba(0,0,0,0.1)",
|
|
9
|
-
marginBottom: theme.spacing(4)
|
|
9
|
+
marginBottom: theme.spacing(4),
|
|
10
|
+
marginTop: theme.spacing(4)
|
|
10
11
|
}),
|
|
11
12
|
table: {
|
|
12
|
-
minWidth: "
|
|
13
|
+
minWidth: "65em",
|
|
13
14
|
tableLayout: "fixed"
|
|
14
15
|
}
|
|
15
16
|
};
|
|
@@ -85,11 +85,13 @@ function ShortCircuitParametersEditionDialog({
|
|
|
85
85
|
onClose,
|
|
86
86
|
onSave: shortCircuitMethods.onSaveDialog,
|
|
87
87
|
onValidationError: shortCircuitMethods.onValidationError,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
formContext: {
|
|
89
|
+
...shortCircuitMethods.formMethods,
|
|
90
|
+
validationSchema: shortCircuitMethods.formSchema,
|
|
91
|
+
removeOptional: true,
|
|
92
|
+
language
|
|
93
|
+
},
|
|
90
94
|
titleId,
|
|
91
|
-
removeOptional: true,
|
|
92
|
-
language,
|
|
93
95
|
disabledSave: disableSave,
|
|
94
96
|
children: /* @__PURE__ */ jsx(
|
|
95
97
|
ShortCircuitParametersForm,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, InitialVoltage, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
1
|
+
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, InitialVoltage, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS } from "./constants.js";
|
|
2
2
|
import "../../../utils/yupConfig.js";
|
|
3
3
|
import { COMMON_PARAMETERS, SPECIFIC_PARAMETERS } from "../common/constants.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -69,7 +69,7 @@ const getSpecificShortCircuitParametersFormSchema = (specificParametersDescripti
|
|
|
69
69
|
})
|
|
70
70
|
).required() : void 0;
|
|
71
71
|
const powerElectronicsClustersParam = specificParametersDescriptionForProvider?.find(
|
|
72
|
-
(specificParam) => specificParam.name ===
|
|
72
|
+
(specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
|
|
73
73
|
);
|
|
74
74
|
const powerElectronicsClustersSchema = powerElectronicsClustersParam ? yup.array().of(
|
|
75
75
|
yup.object().shape({
|
|
@@ -84,7 +84,7 @@ const getSpecificShortCircuitParametersFormSchema = (specificParametersDescripti
|
|
|
84
84
|
[NAME]: yup.string().required()
|
|
85
85
|
})
|
|
86
86
|
),
|
|
87
|
-
type: yup.string().oneOf(["
|
|
87
|
+
type: yup.string().oneOf(["GENERATOR", "HVDC"]).required()
|
|
88
88
|
})
|
|
89
89
|
).required() : void 0;
|
|
90
90
|
const existingSpecificSchema = defaultSchema.fields?.[SPECIFIC_PARAMETERS];
|
|
@@ -134,7 +134,7 @@ const getDefaultShortCircuitSpecificParamsValues = (specificParametersDescriptio
|
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
136
136
|
const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
|
|
137
|
-
(specificParam) => specificParam.name ===
|
|
137
|
+
(specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
|
|
138
138
|
);
|
|
139
139
|
if (powerElectronicsClustersParam) {
|
|
140
140
|
defaultValues[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS] = [];
|
|
@@ -214,7 +214,7 @@ const formatShortCircuitSpecificParameters = (specificParametersDescriptionForPr
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
|
|
217
|
-
(p) => p.name ===
|
|
217
|
+
(p) => p.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
|
|
218
218
|
);
|
|
219
219
|
if (powerElectronicsClustersParam) {
|
|
220
220
|
if (Object.hasOwn(specificParamsList, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS)) {
|
|
@@ -18,18 +18,17 @@ export type FilterPOJO = {
|
|
|
18
18
|
id: UUID;
|
|
19
19
|
name: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
interface BasePowerElectronicsCluster {
|
|
22
22
|
alpha: number;
|
|
23
23
|
u0: number;
|
|
24
24
|
usMin: number;
|
|
25
25
|
usMax: number;
|
|
26
|
+
type: 'GENERATOR' | 'HVDC';
|
|
27
|
+
}
|
|
28
|
+
export interface FormPowerElectronicsCluster extends BasePowerElectronicsCluster {
|
|
26
29
|
filters: FilterPOJO[];
|
|
27
30
|
}
|
|
28
|
-
export interface PowerElectronicsCluster {
|
|
29
|
-
alpha: number;
|
|
30
|
-
u0: number;
|
|
31
|
-
usMin: number;
|
|
32
|
-
usMax: number;
|
|
31
|
+
export interface PowerElectronicsCluster extends BasePowerElectronicsCluster {
|
|
33
32
|
filters: FilterIdentifier[];
|
|
34
33
|
}
|
|
35
34
|
export interface ShortCircuitParametersDto {
|
|
@@ -48,3 +47,4 @@ export interface ShortCircuitParametersInfos {
|
|
|
48
47
|
specificParametersPerProvider: SpecificParametersPerProvider;
|
|
49
48
|
cei909VoltageRanges?: VoltageRange[];
|
|
50
49
|
}
|
|
50
|
+
export {};
|
|
@@ -65,11 +65,13 @@ function VoltageInitParametersEditionDialog({
|
|
|
65
65
|
open,
|
|
66
66
|
onClose,
|
|
67
67
|
onSave: voltageInitMethods.onSaveDialog,
|
|
68
|
-
formSchema: voltageInitMethods.formSchema,
|
|
69
|
-
formMethods: voltageInitMethods.formMethods,
|
|
70
68
|
titleId,
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
formContext: {
|
|
70
|
+
...voltageInitMethods.formMethods,
|
|
71
|
+
validationSchema: voltageInitMethods.formSchema,
|
|
72
|
+
removeOptional: true,
|
|
73
|
+
language
|
|
74
|
+
},
|
|
73
75
|
disabledSave: disableSave,
|
|
74
76
|
PaperProps: {
|
|
75
77
|
sx: {
|
package/dist/index.js
CHANGED
|
@@ -161,7 +161,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./components/param
|
|
|
161
161
|
import { BALANCE_TYPE, CONNECTED_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./components/parameters/loadflow/constants.js";
|
|
162
162
|
import { LoadFlowParametersInline } from "./components/parameters/loadflow/load-flow-parameters-inline.js";
|
|
163
163
|
import { LoadFlowParametersEditionDialog } from "./components/parameters/loadflow/load-flow-parameters-dialog.js";
|
|
164
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
164
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./components/parameters/short-circuit/constants.js";
|
|
165
165
|
import { ShortCircuitParametersInLine } from "./components/parameters/short-circuit/short-circuit-parameters-inline.js";
|
|
166
166
|
import { ShortCircuitParametersEditionDialog } from "./components/parameters/short-circuit/short-circuit-parameters-dialog.js";
|
|
167
167
|
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./components/parameters/voltage-init/constants.js";
|
|
@@ -647,7 +647,6 @@ export {
|
|
|
647
647
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
648
648
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
649
649
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
650
|
-
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTER,
|
|
651
650
|
SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
|
|
652
651
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
653
652
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
@@ -134,9 +134,6 @@ export declare const parametersEn: {
|
|
|
134
134
|
ShortCircuitIccUsmaxTooltip: string;
|
|
135
135
|
ShortCircuitIccU0: string;
|
|
136
136
|
ShortCircuitIccU0Tooltip: string;
|
|
137
|
-
ShortCircuitWindLabel: string;
|
|
138
|
-
ShortCircuitSolarLabel: string;
|
|
139
|
-
ShortCircuitHvdcLabel: string;
|
|
140
137
|
ShortCircuitStartedLabel: string;
|
|
141
138
|
ShortCircuitAllLabel: string;
|
|
142
139
|
shortCircuitLoads: string;
|
|
@@ -128,9 +128,6 @@ const parametersEn = {
|
|
|
128
128
|
ShortCircuitIccUsmaxTooltip: "Maximum voltage for the Icc calculation",
|
|
129
129
|
ShortCircuitIccU0: "U0 (%)",
|
|
130
130
|
ShortCircuitIccU0Tooltip: "Voltage level at which the Icc is nominal",
|
|
131
|
-
ShortCircuitWindLabel: "Wind",
|
|
132
|
-
ShortCircuitSolarLabel: "Solar",
|
|
133
|
-
ShortCircuitHvdcLabel: "HVDC",
|
|
134
131
|
ShortCircuitStartedLabel: "Started",
|
|
135
132
|
ShortCircuitAllLabel: "All",
|
|
136
133
|
shortCircuitLoads: "Loads",
|
|
@@ -134,9 +134,6 @@ export declare const parametersFr: {
|
|
|
134
134
|
ShortCircuitIccUsmaxTooltip: string;
|
|
135
135
|
ShortCircuitIccU0: string;
|
|
136
136
|
ShortCircuitIccU0Tooltip: string;
|
|
137
|
-
ShortCircuitWindLabel: string;
|
|
138
|
-
ShortCircuitSolarLabel: string;
|
|
139
|
-
ShortCircuitHvdcLabel: string;
|
|
140
137
|
ShortCircuitStartedLabel: string;
|
|
141
138
|
ShortCircuitAllLabel: string;
|
|
142
139
|
shortCircuitLoads: string;
|
|
@@ -128,9 +128,6 @@ const parametersFr = {
|
|
|
128
128
|
ShortCircuitIccUsmaxTooltip: "Tension maximale pour le calcul de Icc",
|
|
129
129
|
ShortCircuitIccU0: "U0 (%)",
|
|
130
130
|
ShortCircuitIccU0Tooltip: "Tension de référence pour le calcul de Icc",
|
|
131
|
-
ShortCircuitWindLabel: "Éolien",
|
|
132
|
-
ShortCircuitSolarLabel: "Solaire",
|
|
133
|
-
ShortCircuitHvdcLabel: "HVDC",
|
|
134
131
|
ShortCircuitStartedLabel: "Démarrés",
|
|
135
132
|
ShortCircuitAllLabel: "Tous",
|
|
136
133
|
shortCircuitLoads: "Charges",
|