@gridsuite/commons-ui 0.177.0 → 0.178.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 +25 -1
- package/dist/components/inputs/index.js +2 -0
- package/dist/components/inputs/reactHookForm/index.js +2 -0
- package/dist/components/inputs/reactHookForm/numbers/IntegerInput.js +1 -1
- package/dist/components/inputs/reactHookForm/selectInputs/EnumInput.d.ts +18 -0
- package/dist/components/inputs/reactHookForm/selectInputs/EnumInput.js +28 -0
- package/dist/components/inputs/reactHookForm/selectInputs/index.d.ts +1 -0
- package/dist/components/inputs/reactHookForm/selectInputs/index.js +2 -0
- package/dist/components/network-modifications/index.d.ts +1 -0
- package/dist/components/network-modifications/index.js +23 -1
- package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.d.ts +11 -0
- package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +174 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.d.ts +7 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.js +54 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.d.ts +7 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.js +73 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.d.ts +8 -0
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +6 -0
- package/dist/components/network-modifications/voltage-level/creation/index.d.ts +11 -0
- package/dist/components/network-modifications/voltage-level/creation/index.js +24 -0
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +5 -0
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +76 -0
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationCreationSection.d.ts +6 -0
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationCreationSection.js +61 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.d.ts +7 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.js +119 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.d.ts +11 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.js +82 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialogSubmitButton.d.ts +6 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialogSubmitButton.js +11 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesForm.d.ts +11 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesForm.js +70 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/createSwitchesDialog.utils.d.ts +14 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/createSwitchesDialog.utils.js +27 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/index.d.ts +7 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/index.js +4 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/index.d.ts +8 -0
- package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/index.js +6 -0
- package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.types.d.ts +34 -0
- package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.types.js +9 -0
- package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.d.ts +155 -0
- package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js +248 -0
- package/dist/components/network-modifications/voltage-level/index.d.ts +7 -0
- package/dist/components/network-modifications/voltage-level/index.js +24 -0
- package/dist/index.js +26 -1
- package/dist/services/index.js +2 -1
- package/dist/services/networkModification.d.ts +1 -0
- package/dist/services/networkModification.js +15 -1
- package/dist/translations/en/networkModificationsEn.d.ts +35 -0
- package/dist/translations/en/networkModificationsEn.js +35 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +35 -0
- package/dist/translations/fr/networkModificationsFr.js +35 -0
- package/dist/utils/constants/fieldConstants.d.ts +22 -1
- package/dist/utils/constants/fieldConstants.js +21 -0
- package/package.json +1 -1
|
@@ -82,6 +82,41 @@ const networkModificationsEn = {
|
|
|
82
82
|
PropertyValue: "Property value",
|
|
83
83
|
Name: "Name",
|
|
84
84
|
Country: "Country",
|
|
85
|
+
CreateVoltageLevel: "Create voltage level",
|
|
86
|
+
VoltageLevelCreationError: "Error while creating voltage level",
|
|
87
|
+
SUBSTATION: "Substation",
|
|
88
|
+
VoltageText: "Voltage",
|
|
89
|
+
NominalVoltage: "Nominal voltage",
|
|
90
|
+
LowVoltageLimit: "Low voltage limit",
|
|
91
|
+
HighVoltageLimit: "High voltage limit",
|
|
92
|
+
ShortCircuit: "Short-circuit",
|
|
93
|
+
LowShortCircuitCurrentLimit: "Ip min",
|
|
94
|
+
HighShortCircuitCurrentLimit: "Ip max",
|
|
95
|
+
BusBarSections: "Busbar section",
|
|
96
|
+
BusBarCount: "Busbar Count",
|
|
97
|
+
numberOfSections: "Section Count",
|
|
98
|
+
SwitchesBetweenSections: "Switches between sections",
|
|
99
|
+
Coupling_Omnibus: "Coupler",
|
|
100
|
+
AddCoupling_Omnibus: "Add Coupler",
|
|
101
|
+
SwitchBetweenSectionsLabel: "section_{index1} / section_{index2}",
|
|
102
|
+
BusBarSectionID1: "Bus bar section / bus 1",
|
|
103
|
+
BusBarSectionID2: "Bus bar section / bus 2",
|
|
104
|
+
SubstationId: "Substation ID",
|
|
105
|
+
substationName: "Substation name",
|
|
106
|
+
DeleteRows: "Delete",
|
|
107
|
+
validate: "Validate",
|
|
108
|
+
Breaker: "Breaker",
|
|
109
|
+
BREAKER: "Breaker",
|
|
110
|
+
DISCONNECTOR: "Disconnector",
|
|
111
|
+
Disconnector: "Disconnector",
|
|
112
|
+
BusBarCountMustBeGreaterThanOrEqualToOne: "Number of busbars must be greater than or equal to 1",
|
|
113
|
+
SectionCountMustBeGreaterThanOrEqualToOne: "Number of sections must be greater than or equal to 1",
|
|
114
|
+
mustBeGreaterOrEqualToZero: "Must be greater than or equal to 0",
|
|
115
|
+
CreateCouplingDeviceIdenticalBusBar: "Bus bar section / bus 1 and 2 must be different",
|
|
116
|
+
CreateSubstationInVoltageLevelIdenticalId: "Voltage Level ID can not match Substation ID",
|
|
117
|
+
voltageLevelNominalVoltageMaxValueError: "Low voltage limit must be inferior to high voltage limit",
|
|
118
|
+
ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Short-circuit current limit must be greater than or equal to 0",
|
|
119
|
+
ShortCircuitCurrentLimitMinMaxError: "Low short-circuit current limit must be less than or equal to high limit",
|
|
85
120
|
[DUPLICATED_PROPS_ERROR]: "Duplicated properties: each property must be unique",
|
|
86
121
|
[YUP_REQUIRED]: "This field is required"
|
|
87
122
|
};
|
|
@@ -76,6 +76,41 @@ export declare const networkModificationsFr: {
|
|
|
76
76
|
PropertyValue: string;
|
|
77
77
|
Name: string;
|
|
78
78
|
Country: string;
|
|
79
|
+
CreateVoltageLevel: string;
|
|
80
|
+
VoltageLevelCreationError: string;
|
|
81
|
+
SUBSTATION: string;
|
|
82
|
+
VoltageText: string;
|
|
83
|
+
NominalVoltage: string;
|
|
84
|
+
LowVoltageLimit: string;
|
|
85
|
+
HighVoltageLimit: string;
|
|
86
|
+
ShortCircuit: string;
|
|
87
|
+
LowShortCircuitCurrentLimit: string;
|
|
88
|
+
HighShortCircuitCurrentLimit: string;
|
|
89
|
+
BusBarSections: string;
|
|
90
|
+
BusBarCount: string;
|
|
91
|
+
numberOfSections: string;
|
|
92
|
+
SwitchesBetweenSections: string;
|
|
93
|
+
Coupling_Omnibus: string;
|
|
94
|
+
AddCoupling_Omnibus: string;
|
|
95
|
+
SwitchBetweenSectionsLabel: string;
|
|
96
|
+
BusBarSectionID1: string;
|
|
97
|
+
BusBarSectionID2: string;
|
|
98
|
+
SubstationId: string;
|
|
99
|
+
substationName: string;
|
|
100
|
+
DeleteRows: string;
|
|
101
|
+
validate: string;
|
|
102
|
+
Breaker: string;
|
|
103
|
+
BREAKER: string;
|
|
104
|
+
DISCONNECTOR: string;
|
|
105
|
+
Disconnector: string;
|
|
106
|
+
BusBarCountMustBeGreaterThanOrEqualToOne: string;
|
|
107
|
+
SectionCountMustBeGreaterThanOrEqualToOne: string;
|
|
108
|
+
mustBeGreaterOrEqualToZero: string;
|
|
109
|
+
CreateCouplingDeviceIdenticalBusBar: string;
|
|
110
|
+
CreateSubstationInVoltageLevelIdenticalId: string;
|
|
111
|
+
voltageLevelNominalVoltageMaxValueError: string;
|
|
112
|
+
ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
|
|
113
|
+
ShortCircuitCurrentLimitMinMaxError: string;
|
|
79
114
|
DuplicatedPropsError: string;
|
|
80
115
|
YupRequired: string;
|
|
81
116
|
};
|
|
@@ -82,6 +82,41 @@ const networkModificationsFr = {
|
|
|
82
82
|
PropertyValue: "Valeur de la propriété",
|
|
83
83
|
Name: "Nom",
|
|
84
84
|
Country: "Pays",
|
|
85
|
+
CreateVoltageLevel: "Créer un poste",
|
|
86
|
+
VoltageLevelCreationError: "Erreur lors de la création d'un poste",
|
|
87
|
+
SUBSTATION: "Site",
|
|
88
|
+
VoltageText: "Tension",
|
|
89
|
+
NominalVoltage: "Tension nominale",
|
|
90
|
+
LowVoltageLimit: "Limite de tension basse",
|
|
91
|
+
HighVoltageLimit: "Limite de tension haute",
|
|
92
|
+
ShortCircuit: "Court-circuit",
|
|
93
|
+
LowShortCircuitCurrentLimit: "Ip min",
|
|
94
|
+
HighShortCircuitCurrentLimit: "Ip max",
|
|
95
|
+
BusBarSections: "Section de jeu de barres",
|
|
96
|
+
BusBarCount: "Nb de barres",
|
|
97
|
+
numberOfSections: "Nb de sections",
|
|
98
|
+
SwitchesBetweenSections: "OCs entre sections",
|
|
99
|
+
Coupling_Omnibus: "Couplage / omnibus",
|
|
100
|
+
AddCoupling_Omnibus: "Ajouter couplage / omnibus",
|
|
101
|
+
SwitchBetweenSectionsLabel: "section_{index1} / section_{index2}",
|
|
102
|
+
BusBarSectionID1: "SJB / Nœud 1",
|
|
103
|
+
BusBarSectionID2: "SJB / Nœud 2",
|
|
104
|
+
SubstationId: "ID Site",
|
|
105
|
+
substationName: "Nom du site",
|
|
106
|
+
DeleteRows: "Supprimer",
|
|
107
|
+
validate: "Valider",
|
|
108
|
+
Breaker: "Disjoncteur",
|
|
109
|
+
BREAKER: "Disjoncteur",
|
|
110
|
+
DISCONNECTOR: "Sectionneur",
|
|
111
|
+
Disconnector: "Sectionneur",
|
|
112
|
+
BusBarCountMustBeGreaterThanOrEqualToOne: "Un nombre de barres doit être supérieur ou égal à 1",
|
|
113
|
+
SectionCountMustBeGreaterThanOrEqualToOne: "Un nombre de sections doit être supérieur ou égal à 1",
|
|
114
|
+
mustBeGreaterOrEqualToZero: "Cette valeur doit être supérieure ou égale à 0",
|
|
115
|
+
CreateCouplingDeviceIdenticalBusBar: "Les SJB / Nœuds 1 et 2 doivent être différents",
|
|
116
|
+
CreateSubstationInVoltageLevelIdenticalId: "L'ID du poste doit être différent de celui du site",
|
|
117
|
+
voltageLevelNominalVoltageMaxValueError: "La limite de tension basse doit être inférieure à celle de tension haute",
|
|
118
|
+
ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Une limite d'ICC doit être supérieure ou égale à 0",
|
|
119
|
+
ShortCircuitCurrentLimitMinMaxError: "La limite ICC min doit être inférieure ou égale à la limite ICC max",
|
|
85
120
|
[DUPLICATED_PROPS_ERROR]: "Propriétés dupliquées : chaque propriété doit être unique",
|
|
86
121
|
[YUP_REQUIRED]: "Ce champ doit être renseigné"
|
|
87
122
|
};
|
|
@@ -51,5 +51,26 @@ export declare enum FieldConstants {
|
|
|
51
51
|
STUDY_NAME = "studyName",
|
|
52
52
|
VALUE = "value",
|
|
53
53
|
VALUE_1 = "value1",
|
|
54
|
-
VALUE_2 = "value2"
|
|
54
|
+
VALUE_2 = "value2",
|
|
55
|
+
SWITCH_KINDS = "switchKinds",
|
|
56
|
+
SWITCH_KIND = "switchKind",
|
|
57
|
+
ADD_SUBSTATION_CREATION = "addSubstationCreationId",
|
|
58
|
+
BUS_BAR_COUNT = "busbarCount",
|
|
59
|
+
BUS_BAR_SECTION_ID1 = "busbarSectionId1",
|
|
60
|
+
BUS_BAR_SECTION_ID2 = "busbarSectionId2",
|
|
61
|
+
COUPLING_OMNIBUS = "couplingOmnibus",
|
|
62
|
+
HIDE_BUS_BAR_SECTION = "hideBusBarSection",
|
|
63
|
+
HIDE_NOMINAL_VOLTAGE = "hideNominalVoltage",
|
|
64
|
+
HIGH_SHORT_CIRCUIT_CURRENT_LIMIT = "highShortCircuitCurrentLimit",
|
|
65
|
+
HIGH_VOLTAGE_LIMIT = "highVoltageLimit",
|
|
66
|
+
LOW_SHORT_CIRCUIT_CURRENT_LIMIT = "lowShortCircuitCurrentLimit",
|
|
67
|
+
LOW_VOLTAGE_LIMIT = "lowVoltageLimit",
|
|
68
|
+
NOMINAL_V = "nominalV",
|
|
69
|
+
SUBSTATION_CREATION = "substationCreation",
|
|
70
|
+
SUBSTATION_CREATION_ID = "substationCreationId",
|
|
71
|
+
SUBSTATION_ID = "substationId",
|
|
72
|
+
SUBSTATION_NAME = "substationName",
|
|
73
|
+
SWITCHES_BETWEEN_SECTIONS = "switchesBetweenSections",
|
|
74
|
+
TOPOLOGY_KIND = "topologyKind",
|
|
75
|
+
SECTION_COUNT = "sectionCount"
|
|
55
76
|
}
|
|
@@ -46,6 +46,27 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
46
46
|
FieldConstants2["VALUE"] = "value";
|
|
47
47
|
FieldConstants2["VALUE_1"] = "value1";
|
|
48
48
|
FieldConstants2["VALUE_2"] = "value2";
|
|
49
|
+
FieldConstants2["SWITCH_KINDS"] = "switchKinds";
|
|
50
|
+
FieldConstants2["SWITCH_KIND"] = "switchKind";
|
|
51
|
+
FieldConstants2["ADD_SUBSTATION_CREATION"] = "addSubstationCreationId";
|
|
52
|
+
FieldConstants2["BUS_BAR_COUNT"] = "busbarCount";
|
|
53
|
+
FieldConstants2["BUS_BAR_SECTION_ID1"] = "busbarSectionId1";
|
|
54
|
+
FieldConstants2["BUS_BAR_SECTION_ID2"] = "busbarSectionId2";
|
|
55
|
+
FieldConstants2["COUPLING_OMNIBUS"] = "couplingOmnibus";
|
|
56
|
+
FieldConstants2["HIDE_BUS_BAR_SECTION"] = "hideBusBarSection";
|
|
57
|
+
FieldConstants2["HIDE_NOMINAL_VOLTAGE"] = "hideNominalVoltage";
|
|
58
|
+
FieldConstants2["HIGH_SHORT_CIRCUIT_CURRENT_LIMIT"] = "highShortCircuitCurrentLimit";
|
|
59
|
+
FieldConstants2["HIGH_VOLTAGE_LIMIT"] = "highVoltageLimit";
|
|
60
|
+
FieldConstants2["LOW_SHORT_CIRCUIT_CURRENT_LIMIT"] = "lowShortCircuitCurrentLimit";
|
|
61
|
+
FieldConstants2["LOW_VOLTAGE_LIMIT"] = "lowVoltageLimit";
|
|
62
|
+
FieldConstants2["NOMINAL_V"] = "nominalV";
|
|
63
|
+
FieldConstants2["SUBSTATION_CREATION"] = "substationCreation";
|
|
64
|
+
FieldConstants2["SUBSTATION_CREATION_ID"] = "substationCreationId";
|
|
65
|
+
FieldConstants2["SUBSTATION_ID"] = "substationId";
|
|
66
|
+
FieldConstants2["SUBSTATION_NAME"] = "substationName";
|
|
67
|
+
FieldConstants2["SWITCHES_BETWEEN_SECTIONS"] = "switchesBetweenSections";
|
|
68
|
+
FieldConstants2["TOPOLOGY_KIND"] = "topologyKind";
|
|
69
|
+
FieldConstants2["SECTION_COUNT"] = "sectionCount";
|
|
49
70
|
return FieldConstants2;
|
|
50
71
|
})(FieldConstants || {});
|
|
51
72
|
export {
|