@gridsuite/commons-ui 0.255.0 → 0.257.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/FilterCreationDialog.js +6 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +3 -2
- package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +7 -4
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +2 -1
- package/dist/features/index.js +16 -0
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -2
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.d.ts +5 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +50 -10
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +5 -1
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -2
- package/dist/features/network-modifications/battery/modification/batteryModification.types.d.ts +6 -0
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.d.ts +32 -0
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +23 -2
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/formula/formula-constants.d.ts +10 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula-constants.js +10 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.d.ts +12 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +139 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.d.ts +40 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +164 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula.type.d.ts +27 -0
- package/dist/features/network-modifications/by-filter/formula/formula/formula.type.js +1 -0
- package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.d.ts +15 -0
- package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.js +123 -0
- package/dist/features/network-modifications/by-filter/formula/index.d.ts +11 -0
- package/dist/features/network-modifications/by-filter/formula/index.js +18 -0
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.d.ts +1 -0
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +110 -0
- package/dist/features/network-modifications/by-filter/formula/modificationByFormula.utils.d.ts +32 -0
- package/dist/features/network-modifications/by-filter/formula/modificationByFormula.utils.js +126 -0
- package/dist/features/network-modifications/by-filter/index.d.ts +1 -0
- package/dist/features/network-modifications/by-filter/index.js +17 -1
- package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -1
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -2
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +1 -1
- package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +3 -2
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +4 -3
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +5 -4
- package/dist/features/network-modifications/index.js +16 -0
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +7 -6
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +7 -6
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -9
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +6 -5
- package/dist/features/parameters/common/limitreductions/columns-definitions.js +3 -2
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/security-analysis/columns-definitions.js +4 -3
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
- package/dist/hooks/use-unique-name-validation.js +3 -2
- package/dist/index.js +43 -1
- package/dist/translations/en/descriptionEn.d.ts +0 -6
- package/dist/translations/en/descriptionEn.js +6 -1
- package/dist/translations/en/filterEn.d.ts +0 -2
- package/dist/translations/en/filterEn.js +0 -2
- package/dist/translations/en/generic-validationEn.d.ts +23 -0
- package/dist/translations/en/generic-validationEn.js +25 -0
- package/dist/translations/en/index.d.ts +2 -0
- package/dist/translations/en/index.js +4 -0
- package/dist/translations/en/network-modification-validationEn.d.ts +23 -0
- package/dist/translations/en/network-modification-validationEn.js +31 -0
- package/dist/translations/en/networkModificationsEn.d.ts +16 -30
- package/dist/translations/en/networkModificationsEn.js +10 -35
- package/dist/translations/en/parameters.d.ts +0 -2
- package/dist/translations/en/parameters.js +0 -2
- package/dist/translations/en/use-unique-name-validation-en.d.ts +0 -2
- package/dist/translations/en/use-unique-name-validation-en.js +1 -3
- package/dist/translations/fr/descriptionFr.d.ts +0 -6
- package/dist/translations/fr/descriptionFr.js +6 -1
- package/dist/translations/fr/filterFr.d.ts +0 -2
- package/dist/translations/fr/filterFr.js +0 -2
- package/dist/translations/fr/generic-validationFr.d.ts +17 -0
- package/dist/translations/fr/generic-validationFr.js +25 -0
- package/dist/translations/fr/index.d.ts +2 -0
- package/dist/translations/fr/index.js +4 -0
- package/dist/translations/fr/network-modification-validationFr.d.ts +23 -0
- package/dist/translations/fr/network-modification-validationFr.js +31 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +16 -30
- package/dist/translations/fr/networkModificationsFr.js +10 -35
- package/dist/translations/fr/parameters.d.ts +0 -2
- package/dist/translations/fr/parameters.js +0 -2
- package/dist/translations/fr/use-unique-name-validation-fr.d.ts +0 -2
- package/dist/translations/fr/use-unique-name-validation-fr.js +1 -3
- package/dist/utils/constants/fieldConstants.d.ts +1 -0
- package/dist/utils/constants/fieldConstants.js +1 -0
- package/dist/utils/constants/index.js +19 -1
- package/dist/utils/constants/translationKeys.d.ts +18 -0
- package/dist/utils/constants/translationKeys.js +36 -0
- package/dist/utils/index.js +19 -1
- package/package.json +1 -1
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_DEFAULT, YUP_NOT_NULL, YUP_REQUIRED, DUPLICATED_PROPS_ERROR } from "../../utils/constants/translationKeys.js";
|
|
2
|
-
import "../../utils/conversionUtils.js";
|
|
3
|
-
import "../../utils/types/equipmentType.js";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "@mui/icons-material";
|
|
6
1
|
const networkModificationsFr = {
|
|
7
2
|
"network_modifications.modificationsCount": "{hide, select, false {{count, plural, =0 {aucune modification} =1 {# modification} other {# modifications}}} other {...}}",
|
|
8
3
|
"network_modifications.EQUIPMENT_DELETION": "Suppression de {computedLabel}",
|
|
@@ -77,6 +72,8 @@ const networkModificationsFr = {
|
|
|
77
72
|
CreateSubstation: "Créer un site",
|
|
78
73
|
DeleteEquipmentByFilter: "Supprimer des ouvrages par filtre",
|
|
79
74
|
ModifyByAssignment: "Modification par filtre",
|
|
75
|
+
addNewFormula: "Ajouter une nouvelle formule",
|
|
76
|
+
ModifyByFormula: "Modification par formule",
|
|
80
77
|
SubstationCreationError: "Erreur lors de la création d'un site'",
|
|
81
78
|
ModifySubstation: "Modifier un site",
|
|
82
79
|
SubstationModificationError: "Erreur lors de la modification d'un site",
|
|
@@ -117,22 +114,6 @@ const networkModificationsFr = {
|
|
|
117
114
|
BREAKER: "Disjoncteur",
|
|
118
115
|
DISCONNECTOR: "Sectionneur",
|
|
119
116
|
Disconnector: "Sectionneur",
|
|
120
|
-
BusBarCountMustBeGreaterThanOrEqualToOne: "Un nombre de barres doit être supérieur ou égal à 1",
|
|
121
|
-
SectionCountMustBeGreaterThanOrEqualToOne: "Un nombre de sections doit être supérieur ou égal à 1",
|
|
122
|
-
SectionCountMustBeLessThanOrEqualToTwenty: "Un nombre de sections doit être inférieur ou égal à 20",
|
|
123
|
-
mustBeGreaterOrEqualToZero: "Cette valeur doit être supérieure ou égale à 0",
|
|
124
|
-
CreateCouplingDeviceIdenticalBusBar: "Les SJB / Nœuds 1 et 2 doivent être différents",
|
|
125
|
-
CreateSubstationInVoltageLevelIdenticalId: "L'ID du poste doit être différent de celui du site",
|
|
126
|
-
voltageLevelNominalVoltageMaxValueError: "La limite de tension basse doit être inférieure à celle de tension haute",
|
|
127
|
-
ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Une limite d'ICC doit être supérieure ou égale à 0",
|
|
128
|
-
ShortCircuitCurrentLimitMinMaxError: "La limite ICC min doit être inférieure ou égale à la limite ICC max",
|
|
129
|
-
[DUPLICATED_PROPS_ERROR]: "Propriétés dupliquées : chaque propriété doit être unique",
|
|
130
|
-
[YUP_REQUIRED]: "Obligatoire",
|
|
131
|
-
[YUP_NOT_NULL]: "Ne peut pas être vide",
|
|
132
|
-
[YUP_DEFAULT]: "Ce champ est invalide",
|
|
133
|
-
[YUP_POSITIVE]: "Doit être un nombre positif",
|
|
134
|
-
[YUP_NOT_TYPE_NUMBER]: "Ce champ n'accepte que des valeurs numériques",
|
|
135
|
-
[YUP_NOT_TYPE_DEFAULT]: "La valeur du champ n'est pas au bon format",
|
|
136
117
|
CreateLoad: "Créer une consommation",
|
|
137
118
|
loadType: "Type",
|
|
138
119
|
CreateShuntCompensator: "Créer un moyen de compensation statique (Linéaire)",
|
|
@@ -146,9 +127,6 @@ const networkModificationsFr = {
|
|
|
146
127
|
SusceptanceLabel: "Susceptance (S)",
|
|
147
128
|
SwitchedOnMaxQAtNominalV: "Q enclenchée à tension nominale",
|
|
148
129
|
SwitchedOnMaxSusceptance: "Susceptance enclenchée",
|
|
149
|
-
ShuntCompensatorErrorQAtNominalVoltageLessThanZero: "La valeur de Q à Unom doit être supérieure ou égale à 0",
|
|
150
|
-
MaximumSectionCountMustBeGreaterOrEqualToOne: "Le nombre de gradins doit être supérieur ou égal à 1",
|
|
151
|
-
SectionCountMustBeBetweenZeroAndMaximumSectionCount: "La valeur de la prise courante doit être comprise entre 0 et le nombre de gradins",
|
|
152
130
|
VOLTAGE_LEVEL: "Poste",
|
|
153
131
|
BusBarBus: "SJB / nœud",
|
|
154
132
|
ConnectionName: "Nom départ",
|
|
@@ -213,10 +191,12 @@ const networkModificationsFr = {
|
|
|
213
191
|
RatedU2: "Tension d'enroulement 2",
|
|
214
192
|
RatioTargetV: "Tension de consigne du régleur",
|
|
215
193
|
RatioLowTapPosition: "Prise min régleur",
|
|
194
|
+
RatioHighTapPosition: "Prise max régleur",
|
|
216
195
|
RatioTapPosition: "Prise courante du régleur",
|
|
217
196
|
RatioDeadBand: "Bande morte du régleur",
|
|
218
197
|
PhaseRegulatingValue: "Valeur de réglage de déphaseur",
|
|
219
198
|
PhaseLowTapPosition: "Prise min déphaseur",
|
|
199
|
+
PhaseHighTapPosition: "Prise max déphaseur",
|
|
220
200
|
PhaseTapPosition: "Prise courante du déphaseur",
|
|
221
201
|
PhaseDeadBand: "Bande morte du déphaseur",
|
|
222
202
|
selectedOperationalLimitsGroup1: "Jeu de limites actif côté 1",
|
|
@@ -225,7 +205,6 @@ const networkModificationsFr = {
|
|
|
225
205
|
operationalLimitsGroup2WithProperties: "Jeu de limites actif côté 2 ayant la propriété",
|
|
226
206
|
Value: "Valeur",
|
|
227
207
|
EmptyField: "Vider le champ",
|
|
228
|
-
NumericValueOrEmptyField: "Valeur numérique ou Vider le champ",
|
|
229
208
|
ValueOrEmptyField: "Valeur ou Vider le champ",
|
|
230
209
|
addNewAssignment: "Modifier un autre champ",
|
|
231
210
|
changeTypeConfirmation: "Le type va être modifié. Toutes les valeurs des champs seront effacées.",
|
|
@@ -237,21 +216,17 @@ const networkModificationsFr = {
|
|
|
237
216
|
Connectivity: "Connectivité",
|
|
238
217
|
ActiveLimits: "Limites en actif",
|
|
239
218
|
ReactiveLimits: "Limites en réactif",
|
|
240
|
-
NormalizedPercentage: "Ce pourcentage doit être compris entre 0 et 100",
|
|
241
219
|
On: "Activé",
|
|
242
220
|
Off: "Désactivé",
|
|
243
221
|
FrequencyRegulation: "Compensation",
|
|
244
222
|
Droop: "Statisme",
|
|
245
223
|
Limits: "Limites",
|
|
246
|
-
MinActivePowerMustBeLessOrEqualToMaxActivePower: "La valeur de la puissance active min doit être inférieure ou égale à la valeur de la puissance active max",
|
|
247
224
|
activePowerControlTooltip: "Clé de distribution de la puissance au nœud bilan : maxP/Statisme, statisme par défaut = 4 (valable pour le mode compensation proportionnel à la puissance maximale des groupes)",
|
|
248
225
|
NoModification: "Pas de modification",
|
|
249
226
|
ReactiveLimitsKindMinMax: "Par plage",
|
|
250
227
|
ReactiveLimitsKindCurve: "Par diagramme",
|
|
251
228
|
MinimumReactivePower: "Puissance réactive minimale",
|
|
252
229
|
MaximumReactivePower: "Puissance réactive maximale",
|
|
253
|
-
ActiveLimitsMinMaxInvalid: "La puissance active maximale doit être supérieure à la puissance active minimale",
|
|
254
|
-
ReactiveLimitsMinMaxInvalid: "La puissance réactive maximale doit être supérieure à la puissance réactive minimale",
|
|
255
230
|
MinReactivePowerRequired: "La puissance réactive minimale est requise si la maximale est définie",
|
|
256
231
|
MaxReactivePowerRequired: "La puissance réactive maximale est requise si la minimale est définie",
|
|
257
232
|
ReactiveCapabilityCurveCreationErrorMissingPoints: "Le tableau des limites de réactifs par diagramme doit comporter au moins quatre points.",
|
|
@@ -299,14 +274,14 @@ const networkModificationsFr = {
|
|
|
299
274
|
disableOLGedition: "Les données saisies pour les jeux de limites ne seront pas conservées. Voulez-vous continuer ?",
|
|
300
275
|
Edit: "Édition",
|
|
301
276
|
View: "Visualisation",
|
|
302
|
-
TemporaryLimitNameUnicityError: "Les noms des limites temporaires doivent être uniques dans la table",
|
|
303
|
-
TemporaryLimitDurationUnicityError: "Les tempos des limites temporaires doivent être uniques dans la table",
|
|
304
|
-
LimitSetApplicabilityError: "2 jeux de limites de même nom doivent s'appliquer sur des côtés différents.",
|
|
305
|
-
permanentCurrentLimitMustBeGreaterThanZero: "La valeur IST doit être supérieure à 0",
|
|
306
|
-
UniqueName: "Le nom doit être unique",
|
|
307
|
-
FieldNotEmpty: "le champs ne doit pas être vide",
|
|
308
277
|
TemporaryCurrentLimitsText: "Limites d'intensité temporaires",
|
|
309
278
|
SelectedOperationalLimitGroup: "Jeu de limites actif",
|
|
279
|
+
ReferenceFieldOrValue: "Champ de référence ou valeur",
|
|
280
|
+
Operator: "Opérateur",
|
|
281
|
+
UseDashToSelectField: "Utiliser # pour sélectionner un champ",
|
|
282
|
+
filter: "Filtre",
|
|
283
|
+
G: "Conductance magnétisante",
|
|
284
|
+
B: "Susceptance magnétisante",
|
|
310
285
|
// Tabs
|
|
311
286
|
SubstationTab: "Site",
|
|
312
287
|
ConnectivityTab: "Connectivité",
|
|
@@ -24,7 +24,6 @@ export declare const parametersFr: {
|
|
|
24
24
|
showSelectParameterDialog: string;
|
|
25
25
|
createParameterLabel: string;
|
|
26
26
|
updateParameterLabel: string;
|
|
27
|
-
nameAlreadyUsed: string;
|
|
28
27
|
tagAlreadyUsed: string;
|
|
29
28
|
studyDirectoryFetchingError: string;
|
|
30
29
|
AddDescription: string;
|
|
@@ -51,7 +50,6 @@ export declare const parametersFr: {
|
|
|
51
50
|
descLfCountriesToBalance: string;
|
|
52
51
|
inputLabelLfCountriesToBalance: string;
|
|
53
52
|
editParameters: string;
|
|
54
|
-
RealPercentage: string;
|
|
55
53
|
General: string;
|
|
56
54
|
LimitReductions: string;
|
|
57
55
|
StudyArea: string;
|
|
@@ -18,7 +18,6 @@ const parametersFr = {
|
|
|
18
18
|
showSelectParameterDialog: "Choisir paramètres",
|
|
19
19
|
createParameterLabel: "Créer des nouveaux paramètres",
|
|
20
20
|
updateParameterLabel: "Remplacer des paramètres existants",
|
|
21
|
-
nameAlreadyUsed: "Ce nom est déjà utilisé",
|
|
22
21
|
tagAlreadyUsed: "Cette balise est déjà utilisée",
|
|
23
22
|
studyDirectoryFetchingError: "Une erreur est survenue lors de la lecture du dossier de l'étude",
|
|
24
23
|
AddDescription: "Ajouter une description (optionnel)",
|
|
@@ -45,7 +44,6 @@ const parametersFr = {
|
|
|
45
44
|
descLfCountriesToBalance: "Pays réglant",
|
|
46
45
|
inputLabelLfCountriesToBalance: "Pays participant à la compensation",
|
|
47
46
|
editParameters: "Éditer les paramètres",
|
|
48
|
-
RealPercentage: "Cette valeur doit être comprise entre 0 et 1",
|
|
49
47
|
General: "Général",
|
|
50
48
|
LimitReductions: "Abattements",
|
|
51
49
|
StudyArea: "Zone d'étude",
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
export declare const useUniqueNameValidationFr: {
|
|
8
|
-
'use-unique-name-validation/nameAlreadyUsed': string;
|
|
9
8
|
'use-unique-name-validation/nameValidityCheckErrorMsg': string;
|
|
10
9
|
'use-unique-name-validation/cantSubmitWhileValidating': string;
|
|
11
|
-
'use-unique-name-validation/nameEmpty': string;
|
|
12
10
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
const useUniqueNameValidationFr = {
|
|
2
|
-
"use-unique-name-validation/nameAlreadyUsed": "Ce nom est déjà utilisé",
|
|
3
2
|
"use-unique-name-validation/nameValidityCheckErrorMsg": "Erreur lors de la vérification de la validité du nom",
|
|
4
|
-
"use-unique-name-validation/cantSubmitWhileValidating": "Impossible de soumettre le formulaire durant la validation d'un champ"
|
|
5
|
-
"use-unique-name-validation/nameEmpty": "Le nom est vide"
|
|
3
|
+
"use-unique-name-validation/cantSubmitWhileValidating": "Impossible de soumettre le formulaire durant la validation d'un champ"
|
|
6
4
|
};
|
|
7
5
|
export {
|
|
8
6
|
useUniqueNameValidationFr
|
|
@@ -152,6 +152,7 @@ export declare enum FieldConstants {
|
|
|
152
152
|
SEGMENT_REACTANCE = "segmentReactance",
|
|
153
153
|
SEGMENT_SUSCEPTANCE = "segmentSusceptance",
|
|
154
154
|
SEGMENT_CURRENT_LIMITS = "segmentCurrentLimits",
|
|
155
|
+
SPECIFIC_METADATA = "specificMetadata",
|
|
155
156
|
TOTAL_RESISTANCE = "totalResistance",
|
|
156
157
|
TOTAL_REACTANCE = "totalReactance",
|
|
157
158
|
TOTAL_SUSCEPTANCE = "totalSusceptance",
|
|
@@ -146,6 +146,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
|
|
|
146
146
|
FieldConstants2["SEGMENT_REACTANCE"] = "segmentReactance";
|
|
147
147
|
FieldConstants2["SEGMENT_SUSCEPTANCE"] = "segmentSusceptance";
|
|
148
148
|
FieldConstants2["SEGMENT_CURRENT_LIMITS"] = "segmentCurrentLimits";
|
|
149
|
+
FieldConstants2["SPECIFIC_METADATA"] = "specificMetadata";
|
|
149
150
|
FieldConstants2["TOTAL_RESISTANCE"] = "totalResistance";
|
|
150
151
|
FieldConstants2["TOTAL_REACTANCE"] = "totalReactance";
|
|
151
152
|
FieldConstants2["TOTAL_SUSCEPTANCE"] = "totalSusceptance";
|
|
@@ -5,14 +5,17 @@ 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_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./translationKeys.js";
|
|
8
|
+
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./translationKeys.js";
|
|
9
9
|
export {
|
|
10
|
+
ACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
10
11
|
AMPERE,
|
|
11
12
|
ActivePowerAdornment,
|
|
12
13
|
AmpereAdornment,
|
|
13
14
|
COMMON_APP_NAME,
|
|
14
15
|
COMMON_CONFIG_PARAMS_NAMES,
|
|
16
|
+
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
15
17
|
DEGREE,
|
|
18
|
+
DESCRIPTION_LIMIT_ERROR,
|
|
16
19
|
DUPLICATED_PROPS_ERROR,
|
|
17
20
|
FILTERS,
|
|
18
21
|
FILTER_ID,
|
|
@@ -26,13 +29,20 @@ export {
|
|
|
26
29
|
KiloAmpereAdornment,
|
|
27
30
|
KilometerAdornment,
|
|
28
31
|
LAST_SELECTED_DIRECTORY,
|
|
32
|
+
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
29
33
|
MAX_CHAR_DESCRIPTION,
|
|
30
34
|
MEGA_VAR,
|
|
31
35
|
MEGA_VOLT_AMPERE,
|
|
32
36
|
MEGA_WATT,
|
|
33
37
|
MICRO_SIEMENS,
|
|
38
|
+
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
39
|
+
MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
34
40
|
MVAPowerAdornment,
|
|
35
41
|
MicroSusceptanceAdornment,
|
|
42
|
+
NAME_ALREADY_USED,
|
|
43
|
+
NAME_EMPTY,
|
|
44
|
+
NORMALIZED_PERCENTAGE,
|
|
45
|
+
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
36
46
|
OHM,
|
|
37
47
|
OhmAdornment,
|
|
38
48
|
PARAM_DEVELOPER_MODE,
|
|
@@ -40,10 +50,18 @@ export {
|
|
|
40
50
|
PARAM_THEME,
|
|
41
51
|
PERCENTAGE,
|
|
42
52
|
PercentageAdornment,
|
|
53
|
+
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
54
|
+
REAL_PERCENTAGE,
|
|
43
55
|
ReactivePowerAdornment,
|
|
56
|
+
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
57
|
+
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
58
|
+
SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO,
|
|
44
59
|
SIEMENS,
|
|
45
60
|
SusceptanceAdornment,
|
|
61
|
+
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
62
|
+
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
46
63
|
VoltageAdornment,
|
|
64
|
+
WRONG_REF_OR_VALUE_ERROR,
|
|
47
65
|
YUP_DEFAULT,
|
|
48
66
|
YUP_NOT_NULL,
|
|
49
67
|
YUP_NOT_TYPE_DEFAULT,
|
|
@@ -5,3 +5,21 @@ export declare const YUP_POSITIVE = "YupPositive";
|
|
|
5
5
|
export declare const YUP_NOT_TYPE_NUMBER = "YupNotTypeNumber";
|
|
6
6
|
export declare const YUP_NOT_TYPE_DEFAULT = "YupNotTypeDefault";
|
|
7
7
|
export declare const DUPLICATED_PROPS_ERROR = "DuplicatedPropsError";
|
|
8
|
+
export declare const REAL_PERCENTAGE = "RealPercentage";
|
|
9
|
+
export declare const MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "mustBeGreaterOrEqualToZero";
|
|
10
|
+
export declare const NORMALIZED_PERCENTAGE = "NormalizedPercentage";
|
|
11
|
+
export declare const DESCRIPTION_LIMIT_ERROR = "descriptionLimitError";
|
|
12
|
+
export declare const SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero";
|
|
13
|
+
export declare const NAME_EMPTY = "nameEmpty";
|
|
14
|
+
export declare const ACTIVE_LIMITS_MIN_MAX_INVALID = "ActiveLimitsMinMaxInvalid";
|
|
15
|
+
export declare const REACTIVE_LIMITS_MIN_MAX_INVALID = "ReactiveLimitsMinMaxInvalid";
|
|
16
|
+
export declare const SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO = "ShuntCompensatorErrorQAtNominalVoltageLessThanZero";
|
|
17
|
+
export declare const MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE = "MaximumSectionCountMustBeGreaterOrEqualToOne";
|
|
18
|
+
export declare const SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT = "SectionCountMustBeBetweenZeroAndMaximumSectionCount";
|
|
19
|
+
export declare const CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID = "CreateSubstationInVoltageLevelIdenticalId";
|
|
20
|
+
export declare const MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER = "MinActivePowerMustBeLessOrEqualToMaxActivePower";
|
|
21
|
+
export declare const NAME_ALREADY_USED = "nameAlreadyUsed";
|
|
22
|
+
export declare const NUMERIC_VALUE_OR_EMPTY_FIELD = "NumericValueOrEmptyField";
|
|
23
|
+
export declare const WRONG_REF_OR_VALUE_ERROR = "WrongRefOrValueError";
|
|
24
|
+
export declare const VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR = "ValueMustBeNumericWhenPercentageError";
|
|
25
|
+
export declare const VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR = "ValueMustBeRefWhenPercentageError";
|
|
@@ -5,8 +5,44 @@ const YUP_POSITIVE = "YupPositive";
|
|
|
5
5
|
const YUP_NOT_TYPE_NUMBER = "YupNotTypeNumber";
|
|
6
6
|
const YUP_NOT_TYPE_DEFAULT = "YupNotTypeDefault";
|
|
7
7
|
const DUPLICATED_PROPS_ERROR = "DuplicatedPropsError";
|
|
8
|
+
const REAL_PERCENTAGE = "RealPercentage";
|
|
9
|
+
const MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "mustBeGreaterOrEqualToZero";
|
|
10
|
+
const NORMALIZED_PERCENTAGE = "NormalizedPercentage";
|
|
11
|
+
const DESCRIPTION_LIMIT_ERROR = "descriptionLimitError";
|
|
12
|
+
const SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero";
|
|
13
|
+
const NAME_EMPTY = "nameEmpty";
|
|
14
|
+
const ACTIVE_LIMITS_MIN_MAX_INVALID = "ActiveLimitsMinMaxInvalid";
|
|
15
|
+
const REACTIVE_LIMITS_MIN_MAX_INVALID = "ReactiveLimitsMinMaxInvalid";
|
|
16
|
+
const SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO = "ShuntCompensatorErrorQAtNominalVoltageLessThanZero";
|
|
17
|
+
const MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE = "MaximumSectionCountMustBeGreaterOrEqualToOne";
|
|
18
|
+
const SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT = "SectionCountMustBeBetweenZeroAndMaximumSectionCount";
|
|
19
|
+
const CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID = "CreateSubstationInVoltageLevelIdenticalId";
|
|
20
|
+
const MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER = "MinActivePowerMustBeLessOrEqualToMaxActivePower";
|
|
21
|
+
const NAME_ALREADY_USED = "nameAlreadyUsed";
|
|
22
|
+
const NUMERIC_VALUE_OR_EMPTY_FIELD = "NumericValueOrEmptyField";
|
|
23
|
+
const WRONG_REF_OR_VALUE_ERROR = "WrongRefOrValueError";
|
|
24
|
+
const VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR = "ValueMustBeNumericWhenPercentageError";
|
|
25
|
+
const VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR = "ValueMustBeRefWhenPercentageError";
|
|
8
26
|
export {
|
|
27
|
+
ACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
28
|
+
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
29
|
+
DESCRIPTION_LIMIT_ERROR,
|
|
9
30
|
DUPLICATED_PROPS_ERROR,
|
|
31
|
+
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
32
|
+
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
33
|
+
MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
34
|
+
NAME_ALREADY_USED,
|
|
35
|
+
NAME_EMPTY,
|
|
36
|
+
NORMALIZED_PERCENTAGE,
|
|
37
|
+
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
38
|
+
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
39
|
+
REAL_PERCENTAGE,
|
|
40
|
+
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
41
|
+
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
42
|
+
SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO,
|
|
43
|
+
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
44
|
+
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
45
|
+
WRONG_REF_OR_VALUE_ERROR,
|
|
10
46
|
YUP_DEFAULT,
|
|
11
47
|
YUP_NOT_NULL,
|
|
12
48
|
YUP_NOT_TYPE_DEFAULT,
|
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_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./constants/translationKeys.js";
|
|
9
|
+
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, 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 { isDisabledValidationButton } from "./form-utils.js";
|
|
@@ -39,6 +39,7 @@ import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, i
|
|
|
39
39
|
import { toNumber, validateValueIsANumber } from "./validation-functions.js";
|
|
40
40
|
import { NO_ITEM_SELECTION_FOR_COPY } from "./directory-utils.js";
|
|
41
41
|
export {
|
|
42
|
+
ACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
42
43
|
ALL_EQUIPMENTS,
|
|
43
44
|
AMPERE,
|
|
44
45
|
ActivePowerAdornment,
|
|
@@ -52,11 +53,13 @@ export {
|
|
|
52
53
|
COMMON_APP_NAME,
|
|
53
54
|
COMMON_CONFIG_PARAMS_NAMES,
|
|
54
55
|
CONNECTION_DIRECTIONS,
|
|
56
|
+
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
55
57
|
CalculationType,
|
|
56
58
|
ComputingType,
|
|
57
59
|
CustomError,
|
|
58
60
|
DARK_THEME,
|
|
59
61
|
DEGREE,
|
|
62
|
+
DESCRIPTION_LIMIT_ERROR,
|
|
60
63
|
DUPLICATED_PROPS_ERROR,
|
|
61
64
|
DistributionType,
|
|
62
65
|
ENERGY_SOURCES,
|
|
@@ -95,16 +98,23 @@ export {
|
|
|
95
98
|
Line,
|
|
96
99
|
Load,
|
|
97
100
|
LoadModelsRule,
|
|
101
|
+
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
98
102
|
MAX_CHAR_DESCRIPTION,
|
|
99
103
|
MEGA_VAR,
|
|
100
104
|
MEGA_VOLT_AMPERE,
|
|
101
105
|
MEGA_WATT,
|
|
102
106
|
MICRO_SIEMENS,
|
|
107
|
+
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
103
108
|
MODIFICATION_TYPES,
|
|
109
|
+
MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
104
110
|
MVAPowerAdornment,
|
|
105
111
|
MicroSusceptanceAdornment,
|
|
106
112
|
ModificationType,
|
|
113
|
+
NAME_ALREADY_USED,
|
|
114
|
+
NAME_EMPTY,
|
|
115
|
+
NORMALIZED_PERCENTAGE,
|
|
107
116
|
NO_ITEM_SELECTION_FOR_COPY,
|
|
117
|
+
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
108
118
|
NetworkTimeoutError,
|
|
109
119
|
NotificationsUrlKeys,
|
|
110
120
|
OHM,
|
|
@@ -122,8 +132,13 @@ export {
|
|
|
122
132
|
ParameterType,
|
|
123
133
|
PercentageAdornment,
|
|
124
134
|
ProblemDetailError,
|
|
135
|
+
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
136
|
+
REAL_PERCENTAGE,
|
|
125
137
|
ReactivePowerAdornment,
|
|
126
138
|
SEARCH_EQUIPMENTS,
|
|
139
|
+
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
140
|
+
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
141
|
+
SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO,
|
|
127
142
|
SIEMENS,
|
|
128
143
|
SVC,
|
|
129
144
|
SensitivityType,
|
|
@@ -136,10 +151,13 @@ export {
|
|
|
136
151
|
TwoWindingTransfo,
|
|
137
152
|
UNDEFINED_CONNECTION_DIRECTION,
|
|
138
153
|
UNDEFINED_LOAD_TYPE,
|
|
154
|
+
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
155
|
+
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
139
156
|
VL_TAG_MAX_SIZE,
|
|
140
157
|
VSC,
|
|
141
158
|
VoltageAdornment,
|
|
142
159
|
VoltageLevel,
|
|
160
|
+
WRONG_REF_OR_VALUE_ERROR,
|
|
143
161
|
YUP_DEFAULT,
|
|
144
162
|
YUP_NOT_NULL,
|
|
145
163
|
YUP_NOT_TYPE_DEFAULT,
|