@gridsuite/commons-ui 0.181.0 → 0.183.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/index.js +28 -1
- package/dist/components/inputs/index.js +4 -0
- package/dist/components/inputs/reactHookForm/index.d.ts +1 -0
- package/dist/components/inputs/reactHookForm/index.js +4 -0
- package/dist/components/inputs/reactHookForm/readOnly/ButtonReadOnlyInput.d.ts +7 -0
- package/dist/components/inputs/reactHookForm/readOnly/ButtonReadOnlyInput.js +50 -0
- package/dist/components/inputs/reactHookForm/readOnly/ReadOnlyInput.d.ts +12 -0
- package/dist/components/inputs/reactHookForm/readOnly/ReadOnlyInput.js +35 -0
- package/dist/components/inputs/reactHookForm/readOnly/index.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/readOnly/index.js +6 -0
- package/dist/components/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
- package/dist/components/network-modifications/common/measurements/powerWithValidity.utils.js +2 -1
- package/dist/components/network-modifications/common/setpoints/setPoints.utils.js +3 -2
- package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.d.ts +9 -0
- package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +173 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.types.d.ts +17 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.types.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.d.ts +33 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +78 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.d.ts +7 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +43 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.d.ts +13 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +58 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.d.ts +21 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js +22 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/index.d.ts +10 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/index.js +10 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.d.ts +8 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js +85 -0
- package/dist/components/network-modifications/equipmentDeletion/index.d.ts +10 -0
- package/dist/components/network-modifications/equipmentDeletion/index.js +18 -0
- package/dist/components/network-modifications/index.d.ts +1 -0
- package/dist/components/network-modifications/index.js +24 -1
- package/dist/components/network-modifications/load/creation/loadCreation.utils.js +3 -3
- package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js +8 -8
- package/dist/components/network-modifications/voltage-level/index.d.ts +1 -0
- package/dist/components/network-modifications/voltage-level/index.js +8 -1
- package/dist/components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.d.ts +5 -0
- package/dist/components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.js +159 -0
- package/dist/components/network-modifications/voltage-level/modification/index.d.ts +9 -0
- package/dist/components/network-modifications/voltage-level/modification/index.js +9 -0
- package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.types.d.ts +35 -0
- package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.types.js +1 -0
- package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.utils.d.ts +36 -0
- package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.utils.js +75 -0
- package/dist/components/parameters/common/contingency-table/contingency-table.js +4 -1
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +11 -10
- package/dist/components/parameters/security-analysis/columns-definitions.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useGetLabelEquipmentTypes.d.ts +2 -0
- package/dist/hooks/useGetLabelEquipmentTypes.js +20 -0
- package/dist/hooks/useModificationLabelComputer.js +2 -0
- package/dist/index.js +39 -2
- package/dist/translations/en/equipmentTypesEn.d.ts +30 -0
- package/dist/translations/en/equipmentTypesEn.js +27 -0
- package/dist/translations/en/index.d.ts +1 -0
- package/dist/translations/en/index.js +2 -0
- package/dist/translations/en/networkModificationsEn.d.ts +9 -0
- package/dist/translations/en/networkModificationsEn.js +12 -3
- package/dist/translations/fr/equipmentTypesFr.d.ts +30 -0
- package/dist/translations/fr/equipmentTypesFr.js +27 -0
- package/dist/translations/fr/index.d.ts +1 -0
- package/dist/translations/fr/index.js +2 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +9 -0
- package/dist/translations/fr/networkModificationsFr.js +14 -5
- package/dist/utils/constants/fieldConstants.d.ts +7 -0
- package/dist/utils/constants/fieldConstants.js +7 -0
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/index.js +6 -2
- package/dist/utils/ts-utils.d.ts +3 -0
- package/dist/utils/ts-utils.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const equipmentTypesEn: {
|
|
8
|
+
Type: string;
|
|
9
|
+
SUBSTATION: string;
|
|
10
|
+
VOLTAGE_LEVEL: string;
|
|
11
|
+
BUS: string;
|
|
12
|
+
BUSBAR_SECTION: string;
|
|
13
|
+
SWITCH: string;
|
|
14
|
+
LINE: string;
|
|
15
|
+
TWO_WINDINGS_TRANSFORMER: string;
|
|
16
|
+
THREE_WINDINGS_TRANSFORMER: string;
|
|
17
|
+
GENERATOR: string;
|
|
18
|
+
BATTERY: string;
|
|
19
|
+
LOAD: string;
|
|
20
|
+
SHUNT_COMPENSATOR: string;
|
|
21
|
+
STATIC_VAR_COMPENSATOR: string;
|
|
22
|
+
HVDC_LINE: string;
|
|
23
|
+
HVDC_CONVERTER_STATION: string;
|
|
24
|
+
VSC_CONVERTER_STATION: string;
|
|
25
|
+
LCC_CONVERTER_STATION: string;
|
|
26
|
+
DANGLING_LINE: string;
|
|
27
|
+
TIE_LINE: string;
|
|
28
|
+
DISCONNECTOR: string;
|
|
29
|
+
BREAKER: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const equipmentTypesEn = {
|
|
2
|
+
Type: "Type",
|
|
3
|
+
SUBSTATION: "Substation",
|
|
4
|
+
VOLTAGE_LEVEL: "Voltage Level",
|
|
5
|
+
BUS: "Bus",
|
|
6
|
+
BUSBAR_SECTION: "Bus bar section",
|
|
7
|
+
SWITCH: "Switch",
|
|
8
|
+
LINE: "Line",
|
|
9
|
+
TWO_WINDINGS_TRANSFORMER: "Two Windings Transformer",
|
|
10
|
+
THREE_WINDINGS_TRANSFORMER: "Three Windings Transformer",
|
|
11
|
+
GENERATOR: "Generator",
|
|
12
|
+
BATTERY: "Battery",
|
|
13
|
+
LOAD: "Load",
|
|
14
|
+
SHUNT_COMPENSATOR: "Shunt Compensator",
|
|
15
|
+
STATIC_VAR_COMPENSATOR: "Static Var Compensator",
|
|
16
|
+
HVDC_LINE: "HVDC Line",
|
|
17
|
+
HVDC_CONVERTER_STATION: "HVDC Converter Station",
|
|
18
|
+
VSC_CONVERTER_STATION: "Vsc Converter Station",
|
|
19
|
+
LCC_CONVERTER_STATION: "Lcc Converter Station",
|
|
20
|
+
DANGLING_LINE: "Dangling Line",
|
|
21
|
+
TIE_LINE: "Tie line",
|
|
22
|
+
DISCONNECTOR: "Disconnector",
|
|
23
|
+
BREAKER: "Breaker"
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
equipmentTypesEn
|
|
27
|
+
};
|
|
@@ -16,6 +16,7 @@ export * from './equipmentSearchEn';
|
|
|
16
16
|
export * from './equipmentTagEn';
|
|
17
17
|
export * from './equipmentShortEn';
|
|
18
18
|
export * from './equipmentsEn';
|
|
19
|
+
export * from './equipmentTypesEn';
|
|
19
20
|
export * from './errorsEn';
|
|
20
21
|
export * from './filterEn';
|
|
21
22
|
export * from './filterExpertEn';
|
|
@@ -10,6 +10,7 @@ import { equipmentSearchEn } from "./equipmentSearchEn.js";
|
|
|
10
10
|
import { equipmentTagEn } from "./equipmentTagEn.js";
|
|
11
11
|
import { equipmentShortEn } from "./equipmentShortEn.js";
|
|
12
12
|
import { equipmentsEn } from "./equipmentsEn.js";
|
|
13
|
+
import { equipmentTypesEn } from "./equipmentTypesEn.js";
|
|
13
14
|
import { errorsEn } from "./errorsEn.js";
|
|
14
15
|
import { filterEn } from "./filterEn.js";
|
|
15
16
|
import { filterExpertEn } from "./filterExpertEn.js";
|
|
@@ -40,6 +41,7 @@ export {
|
|
|
40
41
|
equipmentSearchEn,
|
|
41
42
|
equipmentShortEn,
|
|
42
43
|
equipmentTagEn,
|
|
44
|
+
equipmentTypesEn,
|
|
43
45
|
equipmentsEn,
|
|
44
46
|
errorsEn,
|
|
45
47
|
exportParamsEn,
|
|
@@ -20,6 +20,7 @@ export declare const networkModificationsEn: {
|
|
|
20
20
|
'network_modifications.GENERATOR_MODIFICATION': string;
|
|
21
21
|
'network_modifications.LINE_CREATION': string;
|
|
22
22
|
'network_modifications.LINE_MODIFICATION': string;
|
|
23
|
+
'network_modifications.COMPOSITE_MODIFICATION': string;
|
|
23
24
|
'network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION': string;
|
|
24
25
|
'network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION': string;
|
|
25
26
|
'network_modifications.OPERATING_STATUS_MODIFICATION': string;
|
|
@@ -78,6 +79,8 @@ export declare const networkModificationsEn: {
|
|
|
78
79
|
Country: string;
|
|
79
80
|
CreateVoltageLevel: string;
|
|
80
81
|
VoltageLevelCreationError: string;
|
|
82
|
+
ModifyVoltageLevel: string;
|
|
83
|
+
VoltageLevelModificationError: string;
|
|
81
84
|
SUBSTATION: string;
|
|
82
85
|
VoltageText: string;
|
|
83
86
|
NominalVoltage: string;
|
|
@@ -113,6 +116,7 @@ export declare const networkModificationsEn: {
|
|
|
113
116
|
ShortCircuitCurrentLimitMinMaxError: string;
|
|
114
117
|
DuplicatedPropsError: string;
|
|
115
118
|
YupRequired: string;
|
|
119
|
+
YupNotTypeNumber: string;
|
|
116
120
|
CreateLoad: string;
|
|
117
121
|
loadType: string;
|
|
118
122
|
ConnectivityTab: string;
|
|
@@ -135,4 +139,9 @@ export declare const networkModificationsEn: {
|
|
|
135
139
|
MeasurementsSection: string;
|
|
136
140
|
ValidMeasurement: string;
|
|
137
141
|
InvalidMeasurement: string;
|
|
142
|
+
DeleteEquipment: string;
|
|
143
|
+
UnableToDeleteEquipment: string;
|
|
144
|
+
LCCConverterStationShuntCompensators: string;
|
|
145
|
+
Side1: string;
|
|
146
|
+
Side2: string;
|
|
138
147
|
};
|
|
@@ -26,6 +26,7 @@ const networkModificationsEn = {
|
|
|
26
26
|
"network_modifications.GENERATOR_MODIFICATION": "Modifying generator {computedLabel}",
|
|
27
27
|
"network_modifications.LINE_CREATION": "Creating line {computedLabel}",
|
|
28
28
|
"network_modifications.LINE_MODIFICATION": "Modifying line {computedLabel}",
|
|
29
|
+
"network_modifications.COMPOSITE_MODIFICATION": "{computedLabel}",
|
|
29
30
|
"network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION": "Creating 2 windings transformer {computedLabel}",
|
|
30
31
|
"network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "Modifying 2 windings transformer {computedLabel}",
|
|
31
32
|
"network_modifications.OPERATING_STATUS_MODIFICATION": "{action, select, TRIP {Trip {computedLabel}} LOCKOUT {Lock out {computedLabel}} ENERGISE_END_ONE {Energise {computedLabel} on {energizedEnd}} ENERGISE_END_TWO {Energise {computedLabel} on {energizedEnd}} SWITCH_ON {Switch on {computedLabel}} other {Equipment operating status modification {computedLabel}}}",
|
|
@@ -84,14 +85,16 @@ const networkModificationsEn = {
|
|
|
84
85
|
Country: "Country",
|
|
85
86
|
CreateVoltageLevel: "Create voltage level",
|
|
86
87
|
VoltageLevelCreationError: "Error while creating voltage level",
|
|
88
|
+
ModifyVoltageLevel: "Modify a voltage level",
|
|
89
|
+
VoltageLevelModificationError: "Error while modifying a voltage level",
|
|
87
90
|
SUBSTATION: "Substation",
|
|
88
91
|
VoltageText: "Voltage",
|
|
89
92
|
NominalVoltage: "Nominal voltage",
|
|
90
93
|
LowVoltageLimit: "Low voltage limit",
|
|
91
94
|
HighVoltageLimit: "High voltage limit",
|
|
92
95
|
ShortCircuit: "Short-circuit",
|
|
93
|
-
LowShortCircuitCurrentLimit: "
|
|
94
|
-
HighShortCircuitCurrentLimit: "
|
|
96
|
+
LowShortCircuitCurrentLimit: "Low short-circuit current limit",
|
|
97
|
+
HighShortCircuitCurrentLimit: "High short-circuit current limit",
|
|
95
98
|
BusBarSections: "Busbar section",
|
|
96
99
|
BusBarCount: "Busbar Count",
|
|
97
100
|
numberOfSections: "Section Count",
|
|
@@ -119,6 +122,7 @@ const networkModificationsEn = {
|
|
|
119
122
|
ShortCircuitCurrentLimitMinMaxError: "Low short-circuit current limit must be less than or equal to high limit",
|
|
120
123
|
[DUPLICATED_PROPS_ERROR]: "Duplicated properties: each property must be unique",
|
|
121
124
|
[YUP_REQUIRED]: "This field is required",
|
|
125
|
+
YupNotTypeNumber: "This field only accepts numeric values",
|
|
122
126
|
CreateLoad: "Create load",
|
|
123
127
|
loadType: "Type",
|
|
124
128
|
ConnectivityTab: "Connectivity",
|
|
@@ -140,7 +144,12 @@ const networkModificationsEn = {
|
|
|
140
144
|
StateEstimationTab: "State estimation",
|
|
141
145
|
MeasurementsSection: "Measurements",
|
|
142
146
|
ValidMeasurement: "Valid",
|
|
143
|
-
InvalidMeasurement: "Invalid"
|
|
147
|
+
InvalidMeasurement: "Invalid",
|
|
148
|
+
DeleteEquipment: "Delete equipment",
|
|
149
|
+
UnableToDeleteEquipment: "Unable to delete the equipment",
|
|
150
|
+
LCCConverterStationShuntCompensators: "Shunt compensators related to the LCC",
|
|
151
|
+
Side1: "Side 1",
|
|
152
|
+
Side2: "Side 2"
|
|
144
153
|
};
|
|
145
154
|
export {
|
|
146
155
|
networkModificationsEn
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const equipmentTypesFr: {
|
|
8
|
+
Type: string;
|
|
9
|
+
SUBSTATION: string;
|
|
10
|
+
VOLTAGE_LEVEL: string;
|
|
11
|
+
BUS: string;
|
|
12
|
+
BUSBAR_SECTION: string;
|
|
13
|
+
SWITCH: string;
|
|
14
|
+
LINE: string;
|
|
15
|
+
TWO_WINDINGS_TRANSFORMER: string;
|
|
16
|
+
THREE_WINDINGS_TRANSFORMER: string;
|
|
17
|
+
GENERATOR: string;
|
|
18
|
+
BATTERY: string;
|
|
19
|
+
LOAD: string;
|
|
20
|
+
SHUNT_COMPENSATOR: string;
|
|
21
|
+
STATIC_VAR_COMPENSATOR: string;
|
|
22
|
+
HVDC_LINE: string;
|
|
23
|
+
HVDC_CONVERTER_STATION: string;
|
|
24
|
+
VSC_CONVERTER_STATION: string;
|
|
25
|
+
LCC_CONVERTER_STATION: string;
|
|
26
|
+
DANGLING_LINE: string;
|
|
27
|
+
TIE_LINE: string;
|
|
28
|
+
DISCONNECTOR: string;
|
|
29
|
+
BREAKER: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const equipmentTypesFr = {
|
|
2
|
+
Type: "Type",
|
|
3
|
+
SUBSTATION: "Site",
|
|
4
|
+
VOLTAGE_LEVEL: "Poste",
|
|
5
|
+
BUS: "Noeud électrique",
|
|
6
|
+
BUSBAR_SECTION: "Section de jeux de barres",
|
|
7
|
+
SWITCH: "Disjoncteur",
|
|
8
|
+
LINE: "Ligne",
|
|
9
|
+
TWO_WINDINGS_TRANSFORMER: "Transformateur à 2 enroulements",
|
|
10
|
+
THREE_WINDINGS_TRANSFORMER: "Transformateur à 3 enroulements",
|
|
11
|
+
GENERATOR: "Groupe",
|
|
12
|
+
BATTERY: "Batterie",
|
|
13
|
+
LOAD: "Consommation",
|
|
14
|
+
SHUNT_COMPENSATOR: "MCS",
|
|
15
|
+
STATIC_VAR_COMPENSATOR: "CSPR",
|
|
16
|
+
HVDC_LINE: "Ligne HVDC",
|
|
17
|
+
HVDC_CONVERTER_STATION: "Station de conversion HVDC",
|
|
18
|
+
VSC_CONVERTER_STATION: "Station de conversion VSC",
|
|
19
|
+
LCC_CONVERTER_STATION: "Station de conversion LCC",
|
|
20
|
+
DANGLING_LINE: "Ligne frontière",
|
|
21
|
+
TIE_LINE: "Ligne d'interconnexion",
|
|
22
|
+
DISCONNECTOR: "Sectionneur",
|
|
23
|
+
BREAKER: "Disjoncteur"
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
equipmentTypesFr
|
|
27
|
+
};
|
|
@@ -16,6 +16,7 @@ export * from './equipmentSearchFr';
|
|
|
16
16
|
export * from './equipmentTagFr';
|
|
17
17
|
export * from './equipmentShortFr';
|
|
18
18
|
export * from './equipmentsFr';
|
|
19
|
+
export * from './equipmentTypesFr';
|
|
19
20
|
export * from './errorsFr';
|
|
20
21
|
export * from './filterExpertFr';
|
|
21
22
|
export * from './filterFr';
|
|
@@ -10,6 +10,7 @@ import { equipmentSearchFr } from "./equipmentSearchFr.js";
|
|
|
10
10
|
import { equipmentTagFr } from "./equipmentTagFr.js";
|
|
11
11
|
import { equipmentShortFr } from "./equipmentShortFr.js";
|
|
12
12
|
import { equipmentsFr } from "./equipmentsFr.js";
|
|
13
|
+
import { equipmentTypesFr } from "./equipmentTypesFr.js";
|
|
13
14
|
import { errorsFr } from "./errorsFr.js";
|
|
14
15
|
import { filterExpertFr } from "./filterExpertFr.js";
|
|
15
16
|
import { filterFr } from "./filterFr.js";
|
|
@@ -40,6 +41,7 @@ export {
|
|
|
40
41
|
equipmentSearchFr,
|
|
41
42
|
equipmentShortFr,
|
|
42
43
|
equipmentTagFr,
|
|
44
|
+
equipmentTypesFr,
|
|
43
45
|
equipmentsFr,
|
|
44
46
|
errorsFr,
|
|
45
47
|
exportParamsFr,
|
|
@@ -20,6 +20,7 @@ export declare const networkModificationsFr: {
|
|
|
20
20
|
'network_modifications.GENERATOR_MODIFICATION': string;
|
|
21
21
|
'network_modifications.LINE_CREATION': string;
|
|
22
22
|
'network_modifications.LINE_MODIFICATION': string;
|
|
23
|
+
'network_modifications.COMPOSITE_MODIFICATION': string;
|
|
23
24
|
'network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION': string;
|
|
24
25
|
'network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION': string;
|
|
25
26
|
'network_modifications.OPERATING_STATUS_MODIFICATION': string;
|
|
@@ -78,6 +79,8 @@ export declare const networkModificationsFr: {
|
|
|
78
79
|
Country: string;
|
|
79
80
|
CreateVoltageLevel: string;
|
|
80
81
|
VoltageLevelCreationError: string;
|
|
82
|
+
ModifyVoltageLevel: string;
|
|
83
|
+
VoltageLevelModificationError: string;
|
|
81
84
|
SUBSTATION: string;
|
|
82
85
|
VoltageText: string;
|
|
83
86
|
NominalVoltage: string;
|
|
@@ -113,6 +116,7 @@ export declare const networkModificationsFr: {
|
|
|
113
116
|
ShortCircuitCurrentLimitMinMaxError: string;
|
|
114
117
|
DuplicatedPropsError: string;
|
|
115
118
|
YupRequired: string;
|
|
119
|
+
YupNotTypeNumber: string;
|
|
116
120
|
CreateLoad: string;
|
|
117
121
|
loadType: string;
|
|
118
122
|
ConnectivityTab: string;
|
|
@@ -135,4 +139,9 @@ export declare const networkModificationsFr: {
|
|
|
135
139
|
MeasurementsSection: string;
|
|
136
140
|
ValidMeasurement: string;
|
|
137
141
|
InvalidMeasurement: string;
|
|
142
|
+
DeleteEquipment: string;
|
|
143
|
+
UnableToDeleteEquipment: string;
|
|
144
|
+
LCCConverterStationShuntCompensators: string;
|
|
145
|
+
Side1: string;
|
|
146
|
+
Side2: string;
|
|
138
147
|
};
|
|
@@ -26,6 +26,7 @@ const networkModificationsFr = {
|
|
|
26
26
|
"network_modifications.GENERATOR_MODIFICATION": "Modification du générateur {computedLabel}",
|
|
27
27
|
"network_modifications.LINE_CREATION": "Création de la ligne {computedLabel}",
|
|
28
28
|
"network_modifications.LINE_MODIFICATION": "Modification de la ligne {computedLabel}",
|
|
29
|
+
"network_modifications.COMPOSITE_MODIFICATION": "{computedLabel}",
|
|
29
30
|
"network_modifications.TWO_WINDINGS_TRANSFORMER_CREATION": "Création du transformateur à 2 enroulements {computedLabel}",
|
|
30
31
|
"network_modifications.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "Modification du transformateur à 2 enroulements {computedLabel}",
|
|
31
32
|
"network_modifications.OPERATING_STATUS_MODIFICATION": "{action, select, TRIP {Déclenchement de {computedLabel}} LOCKOUT {Consignation de {computedLabel}} ENERGISE_END_ONE {Mise sous tension à vide de {computedLabel} depuis {energizedEnd}} ENERGISE_END_TWO {Mise sous tension à vide de {computedLabel} depuis {energizedEnd}} SWITCH_ON {Mise en service de {computedLabel}} other {Modification du statut opérationnel de l'équipement {computedLabel}}}",
|
|
@@ -84,14 +85,16 @@ const networkModificationsFr = {
|
|
|
84
85
|
Country: "Pays",
|
|
85
86
|
CreateVoltageLevel: "Créer un poste",
|
|
86
87
|
VoltageLevelCreationError: "Erreur lors de la création d'un poste",
|
|
88
|
+
ModifyVoltageLevel: "Modifier un poste",
|
|
89
|
+
VoltageLevelModificationError: "Erreur lors de la modification d'un poste",
|
|
87
90
|
SUBSTATION: "Site",
|
|
88
91
|
VoltageText: "Tension",
|
|
89
92
|
NominalVoltage: "Tension nominale",
|
|
90
|
-
LowVoltageLimit: "Limite
|
|
91
|
-
HighVoltageLimit: "Limite
|
|
93
|
+
LowVoltageLimit: "Limite tension basse",
|
|
94
|
+
HighVoltageLimit: "Limite tension haute",
|
|
92
95
|
ShortCircuit: "Court-circuit",
|
|
93
|
-
LowShortCircuitCurrentLimit: "
|
|
94
|
-
HighShortCircuitCurrentLimit: "
|
|
96
|
+
LowShortCircuitCurrentLimit: "Limite ICC min",
|
|
97
|
+
HighShortCircuitCurrentLimit: "Limite ICC max",
|
|
95
98
|
BusBarSections: "Section de jeu de barres",
|
|
96
99
|
BusBarCount: "Nb de barres",
|
|
97
100
|
numberOfSections: "Nb de sections",
|
|
@@ -119,6 +122,7 @@ const networkModificationsFr = {
|
|
|
119
122
|
ShortCircuitCurrentLimitMinMaxError: "La limite ICC min doit être inférieure ou égale à la limite ICC max",
|
|
120
123
|
[DUPLICATED_PROPS_ERROR]: "Propriétés dupliquées : chaque propriété doit être unique",
|
|
121
124
|
[YUP_REQUIRED]: "Ce champ doit être renseigné",
|
|
125
|
+
YupNotTypeNumber: "Ce champ n'accepte que des valeurs numériques",
|
|
122
126
|
CreateLoad: "Créer une consommation",
|
|
123
127
|
loadType: "Type",
|
|
124
128
|
ConnectivityTab: "Connectivité",
|
|
@@ -140,7 +144,12 @@ const networkModificationsFr = {
|
|
|
140
144
|
StateEstimationTab: "Estimation d'état",
|
|
141
145
|
MeasurementsSection: "Télémesures",
|
|
142
146
|
ValidMeasurement: "Valide",
|
|
143
|
-
InvalidMeasurement: "Invalide"
|
|
147
|
+
InvalidMeasurement: "Invalide",
|
|
148
|
+
DeleteEquipment: "Supprimer un ouvrage",
|
|
149
|
+
UnableToDeleteEquipment: "Impossible de supprimer l'ouvrage",
|
|
150
|
+
LCCConverterStationShuntCompensators: "Moyens de compensation liés à la LCC",
|
|
151
|
+
Side1: "Côté 1",
|
|
152
|
+
Side2: "Côté 2"
|
|
144
153
|
};
|
|
145
154
|
export {
|
|
146
155
|
networkModificationsFr
|
|
@@ -30,6 +30,8 @@ export declare enum FieldConstants {
|
|
|
30
30
|
COUNTRY = "country",
|
|
31
31
|
CURRENT_PARAMETERS = "currentParameters",
|
|
32
32
|
DELETION_MARK = "deletionMark",
|
|
33
|
+
DELETION_SPECIFIC_DATA = "equipmentInfos",
|
|
34
|
+
DELETION_SPECIFIC_TYPE = "specificType",
|
|
33
35
|
DESCRIPTION = "description",
|
|
34
36
|
DIRECTORY = "directory",
|
|
35
37
|
ENERGY_SOURCE = "energySource",
|
|
@@ -43,6 +45,7 @@ export declare enum FieldConstants {
|
|
|
43
45
|
FOLDER_ID = "folderId",
|
|
44
46
|
FOLDER_NAME = "folderName",
|
|
45
47
|
FORMATTED_CASE_PARAMETERS = "formattedCaseParameters",
|
|
48
|
+
HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE = "HVDC_LINE_WITH_LCC",
|
|
46
49
|
ID = "id",
|
|
47
50
|
LOAD_TYPE = "loadType",
|
|
48
51
|
MAXIMUM_ACTIVE_POWER = "maximumActivePower",
|
|
@@ -66,6 +69,9 @@ export declare enum FieldConstants {
|
|
|
66
69
|
PROPERTY_VALUES = "propertyValues",
|
|
67
70
|
REACTIVE_POWER_SET_POINT = "reactivePowerSetpoint",
|
|
68
71
|
SCRIPT = "script",
|
|
72
|
+
SHUNT_COMPENSATOR_SIDE_1 = "mcsOnSide1",
|
|
73
|
+
SHUNT_COMPENSATOR_SIDE_2 = "mcsOnSide2",
|
|
74
|
+
SHUNT_COMPENSATOR_SELECTED = "connectedToHvdc",
|
|
69
75
|
STATE_ESTIMATION = "stateEstimation",
|
|
70
76
|
STUDY_NAME = "studyName",
|
|
71
77
|
TYPE = "type",
|
|
@@ -84,6 +90,7 @@ export declare enum FieldConstants {
|
|
|
84
90
|
COUPLING_OMNIBUS = "couplingOmnibus",
|
|
85
91
|
HIDE_BUS_BAR_SECTION = "hideBusBarSection",
|
|
86
92
|
HIDE_NOMINAL_VOLTAGE = "hideNominalVoltage",
|
|
93
|
+
HIDE_SUBSTATION_FIELD = "hideSubstationField",
|
|
87
94
|
HIGH_SHORT_CIRCUIT_CURRENT_LIMIT = "highShortCircuitCurrentLimit",
|
|
88
95
|
HIGH_VOLTAGE_LIMIT = "highVoltageLimit",
|
|
89
96
|
LOW_SHORT_CIRCUIT_CURRENT_LIMIT = "lowShortCircuitCurrentLimit",
|
|
@@ -24,6 +24,8 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
24
24
|
FieldConstants2["COUNTRY"] = "country";
|
|
25
25
|
FieldConstants2["CURRENT_PARAMETERS"] = "currentParameters";
|
|
26
26
|
FieldConstants2["DELETION_MARK"] = "deletionMark";
|
|
27
|
+
FieldConstants2["DELETION_SPECIFIC_DATA"] = "equipmentInfos";
|
|
28
|
+
FieldConstants2["DELETION_SPECIFIC_TYPE"] = "specificType";
|
|
27
29
|
FieldConstants2["DESCRIPTION"] = "description";
|
|
28
30
|
FieldConstants2["DIRECTORY"] = "directory";
|
|
29
31
|
FieldConstants2["ENERGY_SOURCE"] = "energySource";
|
|
@@ -37,6 +39,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
37
39
|
FieldConstants2["FOLDER_ID"] = "folderId";
|
|
38
40
|
FieldConstants2["FOLDER_NAME"] = "folderName";
|
|
39
41
|
FieldConstants2["FORMATTED_CASE_PARAMETERS"] = "formattedCaseParameters";
|
|
42
|
+
FieldConstants2["HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE"] = "HVDC_LINE_WITH_LCC";
|
|
40
43
|
FieldConstants2["ID"] = "id";
|
|
41
44
|
FieldConstants2["LOAD_TYPE"] = "loadType";
|
|
42
45
|
FieldConstants2["MAXIMUM_ACTIVE_POWER"] = "maximumActivePower";
|
|
@@ -60,6 +63,9 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
60
63
|
FieldConstants2["PROPERTY_VALUES"] = "propertyValues";
|
|
61
64
|
FieldConstants2["REACTIVE_POWER_SET_POINT"] = "reactivePowerSetpoint";
|
|
62
65
|
FieldConstants2["SCRIPT"] = "script";
|
|
66
|
+
FieldConstants2["SHUNT_COMPENSATOR_SIDE_1"] = "mcsOnSide1";
|
|
67
|
+
FieldConstants2["SHUNT_COMPENSATOR_SIDE_2"] = "mcsOnSide2";
|
|
68
|
+
FieldConstants2["SHUNT_COMPENSATOR_SELECTED"] = "connectedToHvdc";
|
|
63
69
|
FieldConstants2["STATE_ESTIMATION"] = "stateEstimation";
|
|
64
70
|
FieldConstants2["STUDY_NAME"] = "studyName";
|
|
65
71
|
FieldConstants2["TYPE"] = "type";
|
|
@@ -78,6 +84,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
78
84
|
FieldConstants2["COUPLING_OMNIBUS"] = "couplingOmnibus";
|
|
79
85
|
FieldConstants2["HIDE_BUS_BAR_SECTION"] = "hideBusBarSection";
|
|
80
86
|
FieldConstants2["HIDE_NOMINAL_VOLTAGE"] = "hideNominalVoltage";
|
|
87
|
+
FieldConstants2["HIDE_SUBSTATION_FIELD"] = "hideSubstationField";
|
|
81
88
|
FieldConstants2["HIGH_SHORT_CIRCUIT_CURRENT_LIMIT"] = "highShortCircuitCurrentLimit";
|
|
82
89
|
FieldConstants2["HIGH_VOLTAGE_LIMIT"] = "highVoltageLimit";
|
|
83
90
|
FieldConstants2["LOW_SHORT_CIRCUIT_CURRENT_LIMIT"] = "lowShortCircuitCurrentLimit";
|
|
@@ -5,7 +5,7 @@ import { MAX_CHAR_DESCRIPTION } from "./uiConstants.js";
|
|
|
5
5
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./unitsConstants.js";
|
|
6
6
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./configConstants.js";
|
|
7
7
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./filterConstant.js";
|
|
8
|
-
import { DUPLICATED_PROPS_ERROR, YUP_REQUIRED } from "./translationKeys.js";
|
|
8
|
+
import { DUPLICATED_PROPS_ERROR, YUP_NOT_TYPE_NUMBER, YUP_REQUIRED } from "./translationKeys.js";
|
|
9
9
|
export {
|
|
10
10
|
AMPERE,
|
|
11
11
|
ActivePowerAdornment,
|
|
@@ -44,5 +44,6 @@ export {
|
|
|
44
44
|
SIEMENS,
|
|
45
45
|
SusceptanceAdornment,
|
|
46
46
|
VoltageAdornment,
|
|
47
|
+
YUP_NOT_TYPE_NUMBER,
|
|
47
48
|
YUP_REQUIRED
|
|
48
49
|
};
|
package/dist/utils/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { MAX_CHAR_DESCRIPTION } from "./constants/uiConstants.js";
|
|
|
6
6
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./constants/unitsConstants.js";
|
|
7
7
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./constants/configConstants.js";
|
|
8
8
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./constants/filterConstant.js";
|
|
9
|
-
import { DUPLICATED_PROPS_ERROR, YUP_REQUIRED } from "./constants/translationKeys.js";
|
|
9
|
+
import { DUPLICATED_PROPS_ERROR, YUP_NOT_TYPE_NUMBER, YUP_REQUIRED } from "./constants/translationKeys.js";
|
|
10
10
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
|
|
11
11
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./error.js";
|
|
12
12
|
import { areArrayElementsUnique, arraysContainIdenticalStrings, isEmpty, isObjectEmpty, keyGenerator } from "./functions.js";
|
|
@@ -31,7 +31,7 @@ import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
|
|
|
31
31
|
import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
|
|
32
32
|
import { CalculationType, LoadModelsRule } from "./types/dynamic-margin-calculation.type.js";
|
|
33
33
|
import { OperationType } from "./types/network-modification-types.js";
|
|
34
|
-
import { areIdsEqual, getIdOrSelf, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, sanitizeString } from "./ts-utils.js";
|
|
34
|
+
import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, richTypeEquals, sanitizeString } from "./ts-utils.js";
|
|
35
35
|
import { toNumber, validateValueIsANumber } from "./validation-functions.js";
|
|
36
36
|
import "./yupConfig.js";
|
|
37
37
|
import * as yup from "yup";
|
|
@@ -127,6 +127,7 @@ export {
|
|
|
127
127
|
VSC,
|
|
128
128
|
VoltageAdornment,
|
|
129
129
|
VoltageLevel,
|
|
130
|
+
YUP_NOT_TYPE_NUMBER,
|
|
130
131
|
YUP_REQUIRED,
|
|
131
132
|
areArrayElementsUnique,
|
|
132
133
|
areIdsEqual,
|
|
@@ -144,6 +145,8 @@ export {
|
|
|
144
145
|
getEquipmentsInfosForSearchBar,
|
|
145
146
|
getFileIcon,
|
|
146
147
|
getIdOrSelf,
|
|
148
|
+
getIdOrValue,
|
|
149
|
+
getLabelOrValue,
|
|
147
150
|
getLoadTypeLabel,
|
|
148
151
|
getObjectId,
|
|
149
152
|
isBlankOrEmpty,
|
|
@@ -158,6 +161,7 @@ export {
|
|
|
158
161
|
notUndefined,
|
|
159
162
|
parseIntData,
|
|
160
163
|
removeNullFields,
|
|
164
|
+
richTypeEquals,
|
|
161
165
|
roundToDefaultPrecision,
|
|
162
166
|
roundToPrecision,
|
|
163
167
|
sanitizeString,
|
package/dist/utils/ts-utils.d.ts
CHANGED
|
@@ -15,3 +15,6 @@ export declare const areIdsEqual: (val1: Option, val2: Option) => boolean;
|
|
|
15
15
|
export declare const getObjectId: (object: string | {
|
|
16
16
|
id: string;
|
|
17
17
|
}) => string;
|
|
18
|
+
export declare const richTypeEquals: (a: unknown, b: unknown) => boolean;
|
|
19
|
+
export declare function getIdOrValue(value: any): any;
|
|
20
|
+
export declare function getLabelOrValue(value: any): any;
|
package/dist/utils/ts-utils.js
CHANGED
|
@@ -36,13 +36,23 @@ const areIdsEqual = (val1, val2) => {
|
|
|
36
36
|
const getObjectId = (object) => {
|
|
37
37
|
return typeof object === "string" ? object : object?.id ?? null;
|
|
38
38
|
};
|
|
39
|
+
const richTypeEquals = (a, b) => a === b;
|
|
40
|
+
function getIdOrValue(value) {
|
|
41
|
+
return typeof value !== "string" ? value?.id ?? null : value;
|
|
42
|
+
}
|
|
43
|
+
function getLabelOrValue(value) {
|
|
44
|
+
return typeof value !== "string" ? value?.label ?? null : value;
|
|
45
|
+
}
|
|
39
46
|
export {
|
|
40
47
|
areIdsEqual,
|
|
41
48
|
getIdOrSelf,
|
|
49
|
+
getIdOrValue,
|
|
50
|
+
getLabelOrValue,
|
|
42
51
|
getObjectId,
|
|
43
52
|
notNull,
|
|
44
53
|
notUndefined,
|
|
45
54
|
parseIntData,
|
|
46
55
|
removeNullFields,
|
|
56
|
+
richTypeEquals,
|
|
47
57
|
sanitizeString
|
|
48
58
|
};
|