@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.
Files changed (93) hide show
  1. package/dist/components/composite/filter/FilterCreationDialog.js +6 -2
  2. package/dist/components/composite/filter/HeaderFilterForm.js +3 -2
  3. package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +7 -4
  4. package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
  5. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +2 -1
  6. package/dist/features/index.js +16 -0
  7. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -2
  8. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.d.ts +5 -1
  9. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +50 -10
  10. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +5 -1
  11. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -2
  12. package/dist/features/network-modifications/battery/modification/batteryModification.types.d.ts +6 -0
  13. package/dist/features/network-modifications/battery/modification/batteryModification.utils.d.ts +32 -0
  14. package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +23 -2
  15. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
  16. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +2 -2
  17. package/dist/features/network-modifications/by-filter/formula/formula/formula-constants.d.ts +10 -0
  18. package/dist/features/network-modifications/by-filter/formula/formula/formula-constants.js +10 -0
  19. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.d.ts +12 -0
  20. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +139 -0
  21. package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.d.ts +40 -0
  22. package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +164 -0
  23. package/dist/features/network-modifications/by-filter/formula/formula/formula.type.d.ts +27 -0
  24. package/dist/features/network-modifications/by-filter/formula/formula/formula.type.js +1 -0
  25. package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.d.ts +15 -0
  26. package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.js +123 -0
  27. package/dist/features/network-modifications/by-filter/formula/index.d.ts +11 -0
  28. package/dist/features/network-modifications/by-filter/formula/index.js +18 -0
  29. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.d.ts +1 -0
  30. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +110 -0
  31. package/dist/features/network-modifications/by-filter/formula/modificationByFormula.utils.d.ts +32 -0
  32. package/dist/features/network-modifications/by-filter/formula/modificationByFormula.utils.js +126 -0
  33. package/dist/features/network-modifications/by-filter/index.d.ts +1 -0
  34. package/dist/features/network-modifications/by-filter/index.js +17 -1
  35. package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -1
  36. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
  37. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +2 -1
  38. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +2 -1
  39. package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -2
  40. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +1 -1
  41. package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +3 -2
  42. package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +4 -3
  43. package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +5 -4
  44. package/dist/features/network-modifications/index.js +16 -0
  45. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +7 -6
  46. package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +7 -6
  47. package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -9
  48. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +6 -5
  49. package/dist/features/parameters/common/limitreductions/columns-definitions.js +3 -2
  50. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  51. package/dist/features/parameters/security-analysis/columns-definitions.js +4 -3
  52. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
  53. package/dist/hooks/use-unique-name-validation.js +3 -2
  54. package/dist/index.js +43 -1
  55. package/dist/translations/en/descriptionEn.d.ts +0 -6
  56. package/dist/translations/en/descriptionEn.js +6 -1
  57. package/dist/translations/en/filterEn.d.ts +0 -2
  58. package/dist/translations/en/filterEn.js +0 -2
  59. package/dist/translations/en/generic-validationEn.d.ts +23 -0
  60. package/dist/translations/en/generic-validationEn.js +25 -0
  61. package/dist/translations/en/index.d.ts +2 -0
  62. package/dist/translations/en/index.js +4 -0
  63. package/dist/translations/en/network-modification-validationEn.d.ts +23 -0
  64. package/dist/translations/en/network-modification-validationEn.js +31 -0
  65. package/dist/translations/en/networkModificationsEn.d.ts +16 -30
  66. package/dist/translations/en/networkModificationsEn.js +10 -35
  67. package/dist/translations/en/parameters.d.ts +0 -2
  68. package/dist/translations/en/parameters.js +0 -2
  69. package/dist/translations/en/use-unique-name-validation-en.d.ts +0 -2
  70. package/dist/translations/en/use-unique-name-validation-en.js +1 -3
  71. package/dist/translations/fr/descriptionFr.d.ts +0 -6
  72. package/dist/translations/fr/descriptionFr.js +6 -1
  73. package/dist/translations/fr/filterFr.d.ts +0 -2
  74. package/dist/translations/fr/filterFr.js +0 -2
  75. package/dist/translations/fr/generic-validationFr.d.ts +17 -0
  76. package/dist/translations/fr/generic-validationFr.js +25 -0
  77. package/dist/translations/fr/index.d.ts +2 -0
  78. package/dist/translations/fr/index.js +4 -0
  79. package/dist/translations/fr/network-modification-validationFr.d.ts +23 -0
  80. package/dist/translations/fr/network-modification-validationFr.js +31 -0
  81. package/dist/translations/fr/networkModificationsFr.d.ts +16 -30
  82. package/dist/translations/fr/networkModificationsFr.js +10 -35
  83. package/dist/translations/fr/parameters.d.ts +0 -2
  84. package/dist/translations/fr/parameters.js +0 -2
  85. package/dist/translations/fr/use-unique-name-validation-fr.d.ts +0 -2
  86. package/dist/translations/fr/use-unique-name-validation-fr.js +1 -3
  87. package/dist/utils/constants/fieldConstants.d.ts +1 -0
  88. package/dist/utils/constants/fieldConstants.js +1 -0
  89. package/dist/utils/constants/index.js +19 -1
  90. package/dist/utils/constants/translationKeys.d.ts +18 -0
  91. package/dist/utils/constants/translationKeys.js +36 -0
  92. package/dist/utils/index.js +19 -1
  93. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, REACTIVE_LIMITS_MIN_MAX_INVALID, ACTIVE_LIMITS_MIN_MAX_INVALID, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID } 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
+ const networkModificationValidationEn = {
7
+ BusBarCountMustBeGreaterThanOrEqualToOne: "Number of busbars must be greater than or equal to 1",
8
+ SectionCountMustBeGreaterThanOrEqualToOne: "Number of sections must be greater than or equal to 1",
9
+ SectionCountMustBeLessThanOrEqualToTwenty: "Number of sections must be less than or equal to 20",
10
+ CreateCouplingDeviceIdenticalBusBar: "Bus bar section / bus 1 and 2 must be different",
11
+ [CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID]: "Voltage Level ID can not match Substation ID",
12
+ voltageLevelNominalVoltageMaxValueError: "Low voltage limit must be inferior to high voltage limit",
13
+ [SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO]: "Short-circuit current limit must be greater than or equal to 0",
14
+ ShortCircuitCurrentLimitMinMaxError: "Low short-circuit current limit must be less than or equal to high limit",
15
+ [SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO]: "Q at nominal voltage value should be greater than or equal to 0",
16
+ [MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE]: "Maximum section count must be greater than or equal to 1",
17
+ [SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT]: "Section count must be between 0 and Maximum section count",
18
+ [MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER]: "Minimum active power value must be less than or equal to maximum active power value",
19
+ [ACTIVE_LIMITS_MIN_MAX_INVALID]: "Maximum active power must be greater than minimum active power",
20
+ [REACTIVE_LIMITS_MIN_MAX_INVALID]: "Maximum reactive power must be greater than minimum reactive power",
21
+ [WRONG_REF_OR_VALUE_ERROR]: "Please enter a valid numeric value or a valid field reference. Use # to select a field",
22
+ [VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR]: "When using %, this field must be a valid positive numeric value",
23
+ [VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR]: "When using %, this field must be a valid field reference",
24
+ TemporaryLimitNameUnicityError: "Temporary limit names must be unique in the table",
25
+ TemporaryLimitDurationUnicityError: "Temporary limit acceptable durations must be unique in the table",
26
+ LimitSetApplicabilityError: "2 limit sets with the same name must have different application sides.",
27
+ permanentCurrentLimitMustBeGreaterThanZero: "The permanent current limit value must be greater than 0"
28
+ };
29
+ export {
30
+ networkModificationValidationEn
31
+ };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2024, 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
+ */
1
7
  export declare const networkModificationsEn: {
2
8
  'network_modifications.modificationsCount': string;
3
9
  'network_modifications.EQUIPMENT_DELETION': string;
@@ -72,6 +78,8 @@ export declare const networkModificationsEn: {
72
78
  CreateSubstation: string;
73
79
  DeleteEquipmentByFilter: string;
74
80
  ModifyByAssignment: string;
81
+ addNewFormula: string;
82
+ ModifyByFormula: string;
75
83
  SubstationCreationError: string;
76
84
  ModifySubstation: string;
77
85
  SubstationModificationError: string;
@@ -112,22 +120,6 @@ export declare const networkModificationsEn: {
112
120
  BREAKER: string;
113
121
  DISCONNECTOR: string;
114
122
  Disconnector: string;
115
- BusBarCountMustBeGreaterThanOrEqualToOne: string;
116
- SectionCountMustBeGreaterThanOrEqualToOne: string;
117
- SectionCountMustBeLessThanOrEqualToTwenty: string;
118
- mustBeGreaterOrEqualToZero: string;
119
- CreateCouplingDeviceIdenticalBusBar: string;
120
- CreateSubstationInVoltageLevelIdenticalId: string;
121
- voltageLevelNominalVoltageMaxValueError: string;
122
- ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
123
- ShortCircuitCurrentLimitMinMaxError: string;
124
- DuplicatedPropsError: string;
125
- YupRequired: string;
126
- YupNotNull: string;
127
- YupDefault: string;
128
- YupPositive: string;
129
- YupNotTypeNumber: string;
130
- YupNotTypeDefault: string;
131
123
  CreateLoad: string;
132
124
  loadType: string;
133
125
  CreateShuntCompensator: string;
@@ -141,9 +133,6 @@ export declare const networkModificationsEn: {
141
133
  SusceptanceLabel: string;
142
134
  SwitchedOnMaxQAtNominalV: string;
143
135
  SwitchedOnMaxSusceptance: string;
144
- ShuntCompensatorErrorQAtNominalVoltageLessThanZero: string;
145
- MaximumSectionCountMustBeGreaterOrEqualToOne: string;
146
- SectionCountMustBeBetweenZeroAndMaximumSectionCount: string;
147
136
  VOLTAGE_LEVEL: string;
148
137
  BusBarBus: string;
149
138
  ConnectionName: string;
@@ -208,10 +197,12 @@ export declare const networkModificationsEn: {
208
197
  RatedU2: string;
209
198
  RatioTargetV: string;
210
199
  RatioLowTapPosition: string;
200
+ RatioHighTapPosition: string;
211
201
  RatioTapPosition: string;
212
202
  RatioDeadBand: string;
213
203
  PhaseRegulatingValue: string;
214
204
  PhaseLowTapPosition: string;
205
+ PhaseHighTapPosition: string;
215
206
  PhaseTapPosition: string;
216
207
  PhaseDeadBand: string;
217
208
  selectedOperationalLimitsGroup1: string;
@@ -220,7 +211,6 @@ export declare const networkModificationsEn: {
220
211
  operationalLimitsGroup2WithProperties: string;
221
212
  Value: string;
222
213
  EmptyField: string;
223
- NumericValueOrEmptyField: string;
224
214
  ValueOrEmptyField: string;
225
215
  addNewAssignment: string;
226
216
  changeTypeConfirmation: string;
@@ -232,21 +222,17 @@ export declare const networkModificationsEn: {
232
222
  Connectivity: string;
233
223
  ActiveLimits: string;
234
224
  ReactiveLimits: string;
235
- NormalizedPercentage: string;
236
225
  On: string;
237
226
  Off: string;
238
227
  FrequencyRegulation: string;
239
228
  Droop: string;
240
229
  Limits: string;
241
- MinActivePowerMustBeLessOrEqualToMaxActivePower: string;
242
230
  activePowerControlTooltip: string;
243
231
  NoModification: string;
244
232
  ReactiveLimitsKindMinMax: string;
245
233
  ReactiveLimitsKindCurve: string;
246
234
  MinimumReactivePower: string;
247
235
  MaximumReactivePower: string;
248
- ActiveLimitsMinMaxInvalid: string;
249
- ReactiveLimitsMinMaxInvalid: string;
250
236
  MinReactivePowerRequired: string;
251
237
  MaxReactivePowerRequired: string;
252
238
  ReactiveCapabilityCurveCreationErrorMissingPoints: string;
@@ -294,14 +280,14 @@ export declare const networkModificationsEn: {
294
280
  disableOLGedition: string;
295
281
  Edit: string;
296
282
  View: string;
297
- TemporaryLimitNameUnicityError: string;
298
- TemporaryLimitDurationUnicityError: string;
299
- LimitSetApplicabilityError: string;
300
- permanentCurrentLimitMustBeGreaterThanZero: string;
301
- UniqueName: string;
302
- FieldNotEmpty: string;
303
283
  TemporaryCurrentLimitsText: string;
304
284
  SelectedOperationalLimitGroup: string;
285
+ ReferenceFieldOrValue: string;
286
+ Operator: string;
287
+ UseDashToSelectField: string;
288
+ filter: string;
289
+ G: string;
290
+ B: string;
305
291
  SubstationTab: string;
306
292
  ConnectivityTab: string;
307
293
  CharacteristicsTab: string;
@@ -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 networkModificationsEn = {
7
2
  "network_modifications.modificationsCount": "{hide, select, false {{count, plural, =0 {no modification} =1 {{count} modification} other {{count} modifications}}} other {...}}",
8
3
  "network_modifications.EQUIPMENT_DELETION": "Deletion of {computedLabel}",
@@ -77,6 +72,8 @@ const networkModificationsEn = {
77
72
  CreateSubstation: "Create substation",
78
73
  DeleteEquipmentByFilter: "Delete equipment by filter",
79
74
  ModifyByAssignment: "Modify by filter",
75
+ addNewFormula: "Add new formula",
76
+ ModifyByFormula: "Modify by formula",
80
77
  SubstationCreationError: "Error while creating substation",
81
78
  ModifySubstation: "Modify substation",
82
79
  SubstationModificationError: "Error while modifying substation",
@@ -117,22 +114,6 @@ const networkModificationsEn = {
117
114
  BREAKER: "Breaker",
118
115
  DISCONNECTOR: "Disconnector",
119
116
  Disconnector: "Disconnector",
120
- BusBarCountMustBeGreaterThanOrEqualToOne: "Number of busbars must be greater than or equal to 1",
121
- SectionCountMustBeGreaterThanOrEqualToOne: "Number of sections must be greater than or equal to 1",
122
- SectionCountMustBeLessThanOrEqualToTwenty: "Number of sections must be less than or equal to 20",
123
- mustBeGreaterOrEqualToZero: "Must be greater than or equal to 0",
124
- CreateCouplingDeviceIdenticalBusBar: "Bus bar section / bus 1 and 2 must be different",
125
- CreateSubstationInVoltageLevelIdenticalId: "Voltage Level ID can not match Substation ID",
126
- voltageLevelNominalVoltageMaxValueError: "Low voltage limit must be inferior to high voltage limit",
127
- ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Short-circuit current limit must be greater than or equal to 0",
128
- ShortCircuitCurrentLimitMinMaxError: "Low short-circuit current limit must be less than or equal to high limit",
129
- [DUPLICATED_PROPS_ERROR]: "Duplicated properties: each property must be unique",
130
- [YUP_REQUIRED]: "Required",
131
- [YUP_NOT_NULL]: "Cannot be empty",
132
- [YUP_DEFAULT]: "This field is invalid",
133
- [YUP_POSITIVE]: "Must be a positive number",
134
- [YUP_NOT_TYPE_NUMBER]: "This field only accepts numeric values",
135
- [YUP_NOT_TYPE_DEFAULT]: "Field value format is incorrect",
136
117
  CreateLoad: "Create load",
137
118
  loadType: "Type",
138
119
  CreateShuntCompensator: "Create shunt compensator (Linear)",
@@ -146,9 +127,6 @@ const networkModificationsEn = {
146
127
  SusceptanceLabel: "Susceptance (S)",
147
128
  SwitchedOnMaxQAtNominalV: "Switch-on Q at nominal voltage",
148
129
  SwitchedOnMaxSusceptance: "Switch-on susceptance",
149
- ShuntCompensatorErrorQAtNominalVoltageLessThanZero: "Q at nominal voltage value should be greater than or equal to 0",
150
- MaximumSectionCountMustBeGreaterOrEqualToOne: "Maximum section count must be greater than or equal to 1",
151
- SectionCountMustBeBetweenZeroAndMaximumSectionCount: "Section count must be between 0 and Maximum section count",
152
130
  VOLTAGE_LEVEL: "Voltage Level",
153
131
  BusBarBus: "Bus bar section / bus",
154
132
  ConnectionName: "Connection name",
@@ -213,10 +191,12 @@ const networkModificationsEn = {
213
191
  RatedU2: "Rated voltage 2",
214
192
  RatioTargetV: "Ratio voltage set point",
215
193
  RatioLowTapPosition: "Ratio low tap position",
194
+ RatioHighTapPosition: "Ratio high tap position",
216
195
  RatioTapPosition: "Ratio tap position",
217
196
  RatioDeadBand: "Ratio deadband",
218
197
  PhaseRegulatingValue: "Phase regulating value",
219
198
  PhaseLowTapPosition: "Phase low tap position",
199
+ PhaseHighTapPosition: "Phase high tap position",
220
200
  PhaseTapPosition: "Phase tap position",
221
201
  PhaseDeadBand: "Phase deadband",
222
202
  selectedOperationalLimitsGroup1: "Active limit set on side 1",
@@ -225,7 +205,6 @@ const networkModificationsEn = {
225
205
  operationalLimitsGroup2WithProperties: "Active limit set on side 2 with property",
226
206
  Value: "Value",
227
207
  EmptyField: "Empty the field",
228
- NumericValueOrEmptyField: "Numeric value or Empty the field",
229
208
  ValueOrEmptyField: "Value or Empty the field",
230
209
  addNewAssignment: "Modify another field",
231
210
  changeTypeConfirmation: "The type will be changed. All fields values will be erased.",
@@ -237,21 +216,17 @@ const networkModificationsEn = {
237
216
  Connectivity: "Connectivity",
238
217
  ActiveLimits: "Active limits",
239
218
  ReactiveLimits: "Reactive limits",
240
- NormalizedPercentage: "This percentage must be between 0 and 100",
241
219
  On: "On",
242
220
  Off: "Off",
243
221
  FrequencyRegulation: "Active power regulation",
244
222
  Droop: "Droop",
245
223
  Limits: "Limits",
246
- MinActivePowerMustBeLessOrEqualToMaxActivePower: "Minimum active power value must be less than or equal to maximum active power value",
247
224
  activePowerControlTooltip: "Slack bus active power repartition key: maxP/droop, default droop = 4 (used if balanceType is PROPORTIONAL_TO_GENERATION_P_MAX)",
248
225
  NoModification: "No modification",
249
226
  ReactiveLimitsKindMinMax: "By range",
250
227
  ReactiveLimitsKindCurve: "By diagram",
251
228
  MinimumReactivePower: "Minimum reactive power",
252
229
  MaximumReactivePower: "Maximum reactive power",
253
- ActiveLimitsMinMaxInvalid: "Maximum active power must be greater than minimum active power",
254
- ReactiveLimitsMinMaxInvalid: "Maximum reactive power must be greater than minimum reactive power",
255
230
  MinReactivePowerRequired: "Minimum reactive power is required if maximum is defined",
256
231
  MaxReactivePowerRequired: "Maximum reactive power is required if minimum is defined",
257
232
  ReactiveCapabilityCurveCreationErrorMissingPoints: "The table of reactive capability curve must have at least four points.",
@@ -299,14 +274,14 @@ const networkModificationsEn = {
299
274
  disableOLGedition: "Entered limit sets data will be lost. Do you wish to continue?",
300
275
  Edit: "Edit",
301
276
  View: "View",
302
- TemporaryLimitNameUnicityError: "Temporary limit names must be unique in the table",
303
- TemporaryLimitDurationUnicityError: "Temporary limit acceptable durations must be unique in the table",
304
- LimitSetApplicabilityError: "2 limit sets with the same name must have different application sides.",
305
- permanentCurrentLimitMustBeGreaterThanZero: "The permanent current limit value must be greater than 0",
306
- UniqueName: "Name should be unique",
307
- FieldNotEmpty: "Field should not be empty",
308
277
  TemporaryCurrentLimitsText: "Temporary current limits",
309
278
  SelectedOperationalLimitGroup: "Active limit set",
279
+ ReferenceFieldOrValue: "Reference field or value",
280
+ Operator: "Operator",
281
+ UseDashToSelectField: "Use # to select a field",
282
+ filter: "Filter",
283
+ G: "Magnetizing conductance",
284
+ B: "Magnetizing susceptance",
310
285
  // Tabs
311
286
  SubstationTab: "Substation",
312
287
  ConnectivityTab: "Connectivity",
@@ -24,7 +24,6 @@ export declare const parametersEn: {
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 parametersEn: {
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 parametersEn = {
18
18
  showSelectParameterDialog: "Choose parameters",
19
19
  createParameterLabel: "Create new parameters",
20
20
  updateParameterLabel: "Replace existing parameters",
21
- nameAlreadyUsed: "This name is already used",
22
21
  tagAlreadyUsed: "This tag is already used",
23
22
  studyDirectoryFetchingError: "An error occurred while fetching study directory",
24
23
  AddDescription: "Add a description (optional)",
@@ -45,7 +44,6 @@ const parametersEn = {
45
44
  descLfCountriesToBalance: "Balancing countries",
46
45
  inputLabelLfCountriesToBalance: "Countries participating in balancing",
47
46
  editParameters: "Edit parameters",
48
- RealPercentage: "This value must be between 0 and 1",
49
47
  General: "General",
50
48
  LimitReductions: "Limit reductions",
51
49
  StudyArea: "Study area",
@@ -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 useUniqueNameValidationEn: {
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 useUniqueNameValidationEn = {
2
- "use-unique-name-validation/nameAlreadyUsed": "This name is already used",
3
2
  "use-unique-name-validation/nameValidityCheckErrorMsg": "Error while checking name validity",
4
- "use-unique-name-validation/cantSubmitWhileValidating": "Impossible to submit the form while validating a field",
5
- "use-unique-name-validation/nameEmpty": "The name is empty"
3
+ "use-unique-name-validation/cantSubmitWhileValidating": "Impossible to submit the form while validating a field"
6
4
  };
7
5
  export {
8
6
  useUniqueNameValidationEn
@@ -1,9 +1,3 @@
1
- /**
2
- * Copyright (c) 2024, 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
1
  export declare const descriptionFr: {
8
2
  description: string;
9
3
  descriptionProperty: string;
@@ -1,8 +1,13 @@
1
+ import { DESCRIPTION_LIMIT_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";
1
6
  const descriptionFr = {
2
7
  description: "Description",
3
8
  descriptionProperty: "Description",
4
9
  descriptionModificationError: "Erreur lors de la modification de la description",
5
- descriptionLimitError: "La description dépasse la limite de caractères",
10
+ [DESCRIPTION_LIMIT_ERROR]: "La description dépasse la limite de caractères",
6
11
  AddDescription: "Ajouter une description"
7
12
  };
8
13
  export {
@@ -28,7 +28,6 @@ export declare const filterFr: {
28
28
  Hvdc: string;
29
29
  'filter.expert': string;
30
30
  'filter.explicitNaming': string;
31
- nameEmpty: string;
32
31
  equipmentType: string;
33
32
  changeTypeMessage: string;
34
33
  PropertyValues: string;
@@ -52,7 +51,6 @@ export declare const filterFr: {
52
51
  Countries2: string;
53
52
  nominalVoltage: string;
54
53
  EnergySourceText: string;
55
- nameAlreadyUsed: string;
56
54
  nameValidityCheckErrorMsg: string;
57
55
  cantSubmitWhileValidating: string;
58
56
  elementNotFound: string;
@@ -22,7 +22,6 @@ const filterFr = {
22
22
  Hvdc: "HVDC",
23
23
  "filter.expert": "Par critères",
24
24
  "filter.explicitNaming": "Par nommage",
25
- nameEmpty: "Le nom est vide",
26
25
  equipmentType: "Type d'ouvrage",
27
26
  changeTypeMessage: "Le type d'ouvrage sera modifié et la configuration actuelle sera perdue.",
28
27
  PropertyValues: "Valeurs de la propriété",
@@ -46,7 +45,6 @@ const filterFr = {
46
45
  Countries2: "Pays 2",
47
46
  nominalVoltage: "Tension nominale",
48
47
  EnergySourceText: "Source d'énergie",
49
- nameAlreadyUsed: "Ce nom est déjà utilisé",
50
48
  nameValidityCheckErrorMsg: "Erreur lors de la vérification de la validité du nom",
51
49
  cantSubmitWhileValidating: "Impossible de soumettre le formulaire durant la validation d'un champ",
52
50
  elementNotFound: "Élément inexistant"
@@ -0,0 +1,17 @@
1
+ export declare const genericValidationFr: {
2
+ YupRequired: string;
3
+ YupNotNull: string;
4
+ YupDefault: string;
5
+ YupPositive: string;
6
+ YupNotTypeNumber: string;
7
+ YupNotTypeDefault: string;
8
+ DuplicatedPropsError: string;
9
+ mustBeGreaterOrEqualToZero: string;
10
+ NormalizedPercentage: string;
11
+ RealPercentage: string;
12
+ nameEmpty: string;
13
+ nameAlreadyUsed: string;
14
+ NumericValueOrEmptyField: string;
15
+ UniqueName: string;
16
+ FieldNotEmpty: string;
17
+ };
@@ -0,0 +1,25 @@
1
+ import { NUMERIC_VALUE_OR_EMPTY_FIELD, NAME_ALREADY_USED, NAME_EMPTY, REAL_PERCENTAGE, NORMALIZED_PERCENTAGE, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, DUPLICATED_PROPS_ERROR, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_DEFAULT, YUP_NOT_NULL, YUP_REQUIRED } 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
+ const genericValidationFr = {
7
+ [YUP_REQUIRED]: "Obligatoire",
8
+ [YUP_NOT_NULL]: "Ne peut pas être vide",
9
+ [YUP_DEFAULT]: "Ce champ est invalide",
10
+ [YUP_POSITIVE]: "Doit être un nombre positif",
11
+ [YUP_NOT_TYPE_NUMBER]: "Ce champ n'accepte que des valeurs numériques",
12
+ [YUP_NOT_TYPE_DEFAULT]: "La valeur du champ n'est pas au bon format",
13
+ [DUPLICATED_PROPS_ERROR]: "Propriétés dupliquées : chaque propriété doit être unique",
14
+ [MUST_BE_GREATER_OR_EQUAL_TO_ZERO]: "Cette valeur doit être supérieure ou égale à 0",
15
+ [NORMALIZED_PERCENTAGE]: "Ce pourcentage doit être compris entre 0 et 100",
16
+ [REAL_PERCENTAGE]: "Cette valeur doit être comprise entre 0 et 1",
17
+ [NAME_EMPTY]: "Le nom est vide",
18
+ [NAME_ALREADY_USED]: "Ce nom est déjà utilisé",
19
+ [NUMERIC_VALUE_OR_EMPTY_FIELD]: "Valeur numérique ou Vider le champ",
20
+ UniqueName: "Le nom doit être unique",
21
+ FieldNotEmpty: "le champs ne doit pas être vide"
22
+ };
23
+ export {
24
+ genericValidationFr
25
+ };
@@ -28,9 +28,11 @@ export * from './tableFr';
28
28
  export * from './topBarFr';
29
29
  export * from './treeviewFinderFr';
30
30
  export * from './networkModificationsFr';
31
+ export * from './network-modification-validationFr';
31
32
  export * from './external/exportParamsFr';
32
33
  export * from './external/importParamsFr';
33
34
  export * from './componentsFr';
34
35
  export * from './parameters';
35
36
  export * from './use-unique-name-validation-fr';
36
37
  export * from './processConfigFr';
38
+ export * from './generic-validationFr';
@@ -22,12 +22,14 @@ import { tableFr } from "./tableFr.js";
22
22
  import { topBarFr } from "./topBarFr.js";
23
23
  import { treeviewFinderFr } from "./treeviewFinderFr.js";
24
24
  import { networkModificationsFr } from "./networkModificationsFr.js";
25
+ import { networkModificationValidationFr } from "./network-modification-validationFr.js";
25
26
  import { exportParamsFr } from "./external/exportParamsFr.js";
26
27
  import { importParamsFr } from "./external/importParamsFr.js";
27
28
  import { componentsFr } from "./componentsFr.js";
28
29
  import { parametersFr } from "./parameters.js";
29
30
  import { useUniqueNameValidationFr } from "./use-unique-name-validation-fr.js";
30
31
  import { processConfigFr } from "./processConfigFr.js";
32
+ import { genericValidationFr } from "./generic-validationFr.js";
31
33
  export {
32
34
  businessErrorsFr,
33
35
  cardErrorBoundaryFr,
@@ -48,9 +50,11 @@ export {
48
50
  filterExpertFr,
49
51
  filterFr,
50
52
  flatParametersFr,
53
+ genericValidationFr,
51
54
  importParamsFr,
52
55
  loginFr,
53
56
  multipleSelectionDialogFr,
57
+ networkModificationValidationFr,
54
58
  networkModificationsFr,
55
59
  parametersFr,
56
60
  processConfigFr,
@@ -0,0 +1,23 @@
1
+ export declare const networkModificationValidationFr: {
2
+ BusBarCountMustBeGreaterThanOrEqualToOne: string;
3
+ SectionCountMustBeGreaterThanOrEqualToOne: string;
4
+ SectionCountMustBeLessThanOrEqualToTwenty: string;
5
+ CreateCouplingDeviceIdenticalBusBar: string;
6
+ CreateSubstationInVoltageLevelIdenticalId: string;
7
+ voltageLevelNominalVoltageMaxValueError: string;
8
+ ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
9
+ ShortCircuitCurrentLimitMinMaxError: string;
10
+ ShuntCompensatorErrorQAtNominalVoltageLessThanZero: string;
11
+ MaximumSectionCountMustBeGreaterOrEqualToOne: string;
12
+ SectionCountMustBeBetweenZeroAndMaximumSectionCount: string;
13
+ MinActivePowerMustBeLessOrEqualToMaxActivePower: string;
14
+ ActiveLimitsMinMaxInvalid: string;
15
+ ReactiveLimitsMinMaxInvalid: string;
16
+ WrongRefOrValueError: string;
17
+ ValueMustBeNumericWhenPercentageError: string;
18
+ ValueMustBeRefWhenPercentageError: string;
19
+ TemporaryLimitNameUnicityError: string;
20
+ TemporaryLimitDurationUnicityError: string;
21
+ LimitSetApplicabilityError: string;
22
+ permanentCurrentLimitMustBeGreaterThanZero: string;
23
+ };
@@ -0,0 +1,31 @@
1
+ import { VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, REACTIVE_LIMITS_MIN_MAX_INVALID, ACTIVE_LIMITS_MIN_MAX_INVALID, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID } 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
+ const networkModificationValidationFr = {
7
+ BusBarCountMustBeGreaterThanOrEqualToOne: "Un nombre de barres doit être supérieur ou égal à 1",
8
+ SectionCountMustBeGreaterThanOrEqualToOne: "Un nombre de sections doit être supérieur ou égal à 1",
9
+ SectionCountMustBeLessThanOrEqualToTwenty: "Un nombre de sections doit être inférieur ou égal à 20",
10
+ CreateCouplingDeviceIdenticalBusBar: "Les SJB / Nœuds 1 et 2 doivent être différents",
11
+ [CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID]: "L'ID du poste doit être différent de celui du site",
12
+ voltageLevelNominalVoltageMaxValueError: "La limite de tension basse doit être inférieure à celle de tension haute",
13
+ [SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO]: "Une limite d'ICC doit être supérieure ou égale à 0",
14
+ ShortCircuitCurrentLimitMinMaxError: "La limite ICC min doit être inférieure ou égale à la limite ICC max",
15
+ [SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO]: "La valeur de Q à Unom doit être supérieure ou égale à 0",
16
+ [MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE]: "Le nombre de gradins doit être supérieur ou égal à 1",
17
+ [SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT]: "La valeur de la prise courante doit être comprise entre 0 et le nombre de gradins",
18
+ [MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER]: "La valeur de la puissance active min doit être inférieure ou égale à la valeur de la puissance active max",
19
+ [ACTIVE_LIMITS_MIN_MAX_INVALID]: "La puissance active maximale doit être supérieure à la puissance active minimale",
20
+ [REACTIVE_LIMITS_MIN_MAX_INVALID]: "La puissance réactive maximale doit être supérieure à la puissance réactive minimale",
21
+ [WRONG_REF_OR_VALUE_ERROR]: "Veuillez saisir une valeur numérique valide ou une référence de champ valide. Utiliser # pour sélectionner un champ",
22
+ [VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR]: "Lors de l'utilisation de %, ce champ doit être une valeur numérique positive valide",
23
+ [VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR]: "Lors de l'utilisation de %, ce champ doit être une référence de champ valide",
24
+ TemporaryLimitNameUnicityError: "Les noms des limites temporaires doivent être uniques dans la table",
25
+ TemporaryLimitDurationUnicityError: "Les tempos des limites temporaires doivent être uniques dans la table",
26
+ LimitSetApplicabilityError: "2 jeux de limites de même nom doivent s'appliquer sur des côtés différents.",
27
+ permanentCurrentLimitMustBeGreaterThanZero: "La valeur IST doit être supérieure à 0"
28
+ };
29
+ export {
30
+ networkModificationValidationFr
31
+ };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2024, 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
+ */
1
7
  export declare const networkModificationsFr: {
2
8
  'network_modifications.modificationsCount': string;
3
9
  'network_modifications.EQUIPMENT_DELETION': string;
@@ -72,6 +78,8 @@ export declare const networkModificationsFr: {
72
78
  CreateSubstation: string;
73
79
  DeleteEquipmentByFilter: string;
74
80
  ModifyByAssignment: string;
81
+ addNewFormula: string;
82
+ ModifyByFormula: string;
75
83
  SubstationCreationError: string;
76
84
  ModifySubstation: string;
77
85
  SubstationModificationError: string;
@@ -112,22 +120,6 @@ export declare const networkModificationsFr: {
112
120
  BREAKER: string;
113
121
  DISCONNECTOR: string;
114
122
  Disconnector: string;
115
- BusBarCountMustBeGreaterThanOrEqualToOne: string;
116
- SectionCountMustBeGreaterThanOrEqualToOne: string;
117
- SectionCountMustBeLessThanOrEqualToTwenty: string;
118
- mustBeGreaterOrEqualToZero: string;
119
- CreateCouplingDeviceIdenticalBusBar: string;
120
- CreateSubstationInVoltageLevelIdenticalId: string;
121
- voltageLevelNominalVoltageMaxValueError: string;
122
- ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
123
- ShortCircuitCurrentLimitMinMaxError: string;
124
- DuplicatedPropsError: string;
125
- YupRequired: string;
126
- YupNotNull: string;
127
- YupDefault: string;
128
- YupPositive: string;
129
- YupNotTypeNumber: string;
130
- YupNotTypeDefault: string;
131
123
  CreateLoad: string;
132
124
  loadType: string;
133
125
  CreateShuntCompensator: string;
@@ -141,9 +133,6 @@ export declare const networkModificationsFr: {
141
133
  SusceptanceLabel: string;
142
134
  SwitchedOnMaxQAtNominalV: string;
143
135
  SwitchedOnMaxSusceptance: string;
144
- ShuntCompensatorErrorQAtNominalVoltageLessThanZero: string;
145
- MaximumSectionCountMustBeGreaterOrEqualToOne: string;
146
- SectionCountMustBeBetweenZeroAndMaximumSectionCount: string;
147
136
  VOLTAGE_LEVEL: string;
148
137
  BusBarBus: string;
149
138
  ConnectionName: string;
@@ -208,10 +197,12 @@ export declare const networkModificationsFr: {
208
197
  RatedU2: string;
209
198
  RatioTargetV: string;
210
199
  RatioLowTapPosition: string;
200
+ RatioHighTapPosition: string;
211
201
  RatioTapPosition: string;
212
202
  RatioDeadBand: string;
213
203
  PhaseRegulatingValue: string;
214
204
  PhaseLowTapPosition: string;
205
+ PhaseHighTapPosition: string;
215
206
  PhaseTapPosition: string;
216
207
  PhaseDeadBand: string;
217
208
  selectedOperationalLimitsGroup1: string;
@@ -220,7 +211,6 @@ export declare const networkModificationsFr: {
220
211
  operationalLimitsGroup2WithProperties: string;
221
212
  Value: string;
222
213
  EmptyField: string;
223
- NumericValueOrEmptyField: string;
224
214
  ValueOrEmptyField: string;
225
215
  addNewAssignment: string;
226
216
  changeTypeConfirmation: string;
@@ -232,21 +222,17 @@ export declare const networkModificationsFr: {
232
222
  Connectivity: string;
233
223
  ActiveLimits: string;
234
224
  ReactiveLimits: string;
235
- NormalizedPercentage: string;
236
225
  On: string;
237
226
  Off: string;
238
227
  FrequencyRegulation: string;
239
228
  Droop: string;
240
229
  Limits: string;
241
- MinActivePowerMustBeLessOrEqualToMaxActivePower: string;
242
230
  activePowerControlTooltip: string;
243
231
  NoModification: string;
244
232
  ReactiveLimitsKindMinMax: string;
245
233
  ReactiveLimitsKindCurve: string;
246
234
  MinimumReactivePower: string;
247
235
  MaximumReactivePower: string;
248
- ActiveLimitsMinMaxInvalid: string;
249
- ReactiveLimitsMinMaxInvalid: string;
250
236
  MinReactivePowerRequired: string;
251
237
  MaxReactivePowerRequired: string;
252
238
  ReactiveCapabilityCurveCreationErrorMissingPoints: string;
@@ -294,14 +280,14 @@ export declare const networkModificationsFr: {
294
280
  disableOLGedition: string;
295
281
  Edit: string;
296
282
  View: string;
297
- TemporaryLimitNameUnicityError: string;
298
- TemporaryLimitDurationUnicityError: string;
299
- LimitSetApplicabilityError: string;
300
- permanentCurrentLimitMustBeGreaterThanZero: string;
301
- UniqueName: string;
302
- FieldNotEmpty: string;
303
283
  TemporaryCurrentLimitsText: string;
304
284
  SelectedOperationalLimitGroup: string;
285
+ ReferenceFieldOrValue: string;
286
+ Operator: string;
287
+ UseDashToSelectField: string;
288
+ filter: string;
289
+ G: string;
290
+ B: string;
305
291
  SubstationTab: string;
306
292
  ConnectivityTab: string;
307
293
  CharacteristicsTab: string;