@gridsuite/commons-ui 0.188.0 → 0.190.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 (65) hide show
  1. package/dist/components/customAGGrid/cell-renderers.js +28 -26
  2. package/dist/components/dnd-table/dnd-table.js +71 -34
  3. package/dist/components/index.js +16 -6
  4. package/dist/components/inputs/index.js +2 -0
  5. package/dist/components/inputs/reactHookForm/index.js +2 -0
  6. package/dist/components/inputs/reactHookForm/selectInputs/SelectWithConfirmationInput.d.ts +9 -0
  7. package/dist/components/inputs/reactHookForm/selectInputs/SelectWithConfirmationInput.js +64 -0
  8. package/dist/components/inputs/reactHookForm/selectInputs/index.d.ts +1 -0
  9. package/dist/components/inputs/reactHookForm/selectInputs/index.js +3 -1
  10. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-constants.d.ts +16 -0
  11. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-constants.js +402 -0
  12. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.d.ts +12 -0
  13. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +217 -0
  14. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-utils.d.ts +21 -0
  15. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-utils.js +89 -0
  16. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment.type.d.ts +28 -0
  17. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment.type.js +12 -0
  18. package/dist/components/network-modifications/by-filter/assignment/index.d.ts +10 -0
  19. package/dist/components/network-modifications/by-filter/assignment/index.js +11 -0
  20. package/dist/components/network-modifications/by-filter/assignment/modification-by-assignment-form.d.ts +7 -0
  21. package/dist/components/network-modifications/by-filter/assignment/modification-by-assignment-form.js +89 -0
  22. package/dist/components/network-modifications/by-filter/assignment/modificationByAssignment.types.d.ts +7 -0
  23. package/dist/components/network-modifications/by-filter/assignment/modificationByAssignment.types.js +1 -0
  24. package/dist/components/network-modifications/by-filter/assignment/modificationByAssignment.utils.d.ts +22 -0
  25. package/dist/components/network-modifications/by-filter/assignment/modificationByAssignment.utils.js +55 -0
  26. package/dist/components/network-modifications/by-filter/index.d.ts +1 -0
  27. package/dist/components/network-modifications/by-filter/index.js +10 -1
  28. package/dist/components/network-modifications/hooks/index.d.ts +7 -0
  29. package/dist/components/network-modifications/hooks/index.js +4 -0
  30. package/dist/components/network-modifications/hooks/useTabsWithError.d.ts +15 -0
  31. package/dist/components/network-modifications/hooks/useTabsWithError.js +28 -0
  32. package/dist/components/network-modifications/index.d.ts +1 -0
  33. package/dist/components/network-modifications/index.js +14 -6
  34. package/dist/components/network-modifications/load/common/LoadForm.d.ts +1 -1
  35. package/dist/components/network-modifications/load/common/LoadForm.js +7 -27
  36. package/dist/components/network-modifications/load/common/index.js +2 -1
  37. package/dist/components/network-modifications/load/common/load.utils.d.ts +7 -11
  38. package/dist/components/network-modifications/load/common/load.utils.js +30 -4
  39. package/dist/components/network-modifications/load/index.js +2 -1
  40. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -30
  41. package/dist/components/network-modifications/voltageLevel/creation/index.js +1 -5
  42. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.d.ts +8 -12
  43. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.js +53 -5
  44. package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.d.ts +0 -4
  45. package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +0 -16
  46. package/dist/components/network-modifications/voltageLevel/index.js +1 -5
  47. package/dist/components/parameters/common/contingency-table/contingency-table.d.ts +1 -1
  48. package/dist/components/parameters/common/contingency-table/contingency-table.js +54 -17
  49. package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
  50. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.d.ts +1 -1
  51. package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.d.ts +1 -1
  52. package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
  53. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -0
  54. package/dist/index.js +16 -6
  55. package/dist/translations/en/networkModificationsEn.d.ts +52 -0
  56. package/dist/translations/en/networkModificationsEn.js +52 -0
  57. package/dist/translations/en/parameters.d.ts +1 -0
  58. package/dist/translations/en/parameters.js +1 -0
  59. package/dist/translations/fr/networkModificationsFr.d.ts +52 -0
  60. package/dist/translations/fr/networkModificationsFr.js +52 -0
  61. package/dist/translations/fr/parameters.d.ts +1 -0
  62. package/dist/translations/fr/parameters.js +1 -0
  63. package/dist/utils/constants/fieldConstants.d.ts +2 -0
  64. package/dist/utils/constants/fieldConstants.js +2 -0
  65. package/package.json +1 -1
@@ -75,6 +75,7 @@ const networkModificationsEn = {
75
75
  ModificationReadError: "An error occurred while fetching the modification",
76
76
  CreateSubstation: "Create substation",
77
77
  DeleteEquipmentByFilter: "Delete equipment by filter",
78
+ ModifyByAssignment: "Modify by filter",
78
79
  SubstationCreationError: "Error while creating substation",
79
80
  ModifySubstation: "Modify substation",
80
81
  SubstationModificationError: "Error while modifying substation",
@@ -148,8 +149,59 @@ const networkModificationsEn = {
148
149
  LCCConverterStationShuntCompensators: "Shunt compensators related to the LCC",
149
150
  Side1: "Side 1",
150
151
  Side2: "Side 2",
152
+ EquipmentType: "Equipment type",
153
+ EditedField: "Edited field",
154
+ Property: "Property",
155
+ RatedNominalPowerText: "Rated nominal power",
156
+ MinimumActivePowerText: "Minimum active power",
157
+ MaximumActivePowerText: "Maximum active power",
158
+ ActivePowerSetPointText: "Active power setpoint",
159
+ ReactivePowerSetPointText: "Reactive power setpoint",
160
+ GeneratorTargetV: "Target V",
161
+ PlannedActivePowerSetPointForm: "Planning active power set point",
162
+ MarginalCost: "Generation dispatch cost",
163
+ plannedOutageRate: "Planning outage rate",
164
+ forcedOutageRate: "Forced outage rate",
165
+ ActivePowerRegulationDroop: "Active power regulation droop",
166
+ TransientReactanceForm: "Transient reactance",
167
+ TransformerReactanceForm: "Transformer reactance",
168
+ ReactivePercentageVoltageRegulation: "Reactive percentage",
169
+ voltageRegulationOn: "Voltage regulation",
170
+ maximumSectionCount: "Maximum number of sections",
171
+ sectionCount: "Current number of sections",
172
+ maxSusceptance: "Maximal susceptance available",
173
+ maxQAtNominalV: "Qmax available at nominal voltage",
174
+ SeriesResistanceText: "Series resistance",
175
+ SeriesReactanceText: "Series reactance",
176
+ ShuntConductanceText: "Shunt conductance",
177
+ ShuntConductanceText1: "Shunt conductance side 1",
178
+ ShuntConductanceText2: "Shunt conductance side 2",
179
+ ShuntSusceptanceText: "Shunt susceptance",
180
+ ShuntSusceptanceText1: "Shunt susceptance side 1",
181
+ ShuntSusceptanceText2: "Shunt susceptance side 2",
182
+ RatedU1: "Rated voltage 1",
183
+ RatedU2: "Rated voltage 2",
184
+ RatioTargetV: "Ratio voltage set point",
185
+ RatioLowTapPosition: "Ratio low tap position",
186
+ RatioTapPosition: "Ratio tap position",
187
+ RatioDeadBand: "Ratio deadband",
188
+ PhaseRegulatingValue: "Phase regulating value",
189
+ PhaseLowTapPosition: "Phase low tap position",
190
+ PhaseTapPosition: "Phase tap position",
191
+ PhaseDeadBand: "Phase deadband",
192
+ selectedOperationalLimitsGroup1: "Active limit set on side 1",
193
+ selectedOperationalLimitsGroup2: "Active limit set on side 2",
194
+ operationalLimitsGroup1WithProperties: "Active limit set on side 1 with property",
195
+ operationalLimitsGroup2WithProperties: "Active limit set on side 2 with property",
196
+ Value: "Value",
197
+ EmptyField: "Empty the field",
198
+ NumericValueOrEmptyField: "Numeric value or Empty the field",
199
+ ValueOrEmptyField: "Value or Empty the field",
200
+ addNewAssignment: "Modify another field",
201
+ changeTypeConfirmation: "The type will be changed. All fields values will be erased.",
151
202
  Or: "or",
152
203
  // Tabs
204
+ SubstationTab: "Substation",
153
205
  ConnectivityTab: "Connectivity",
154
206
  CharacteristicsTab: "Characteristics",
155
207
  StructureTab: "Structure",
@@ -248,6 +248,7 @@ export declare const parametersEn: {
248
248
  fetchSecurityAnalysisParametersError: string;
249
249
  fetchSecurityAnalysisProvidersError: string;
250
250
  updateSecurityAnalysisParametersError: string;
251
+ getSecurityAnalysisContingenciesCountError: string;
251
252
  fetchSensitivityAnalysisParametersError: string;
252
253
  fetchSensitivityAnalysisProvidersError: string;
253
254
  updateSensitivityAnalysisParametersError: string;
@@ -245,6 +245,7 @@ const parametersEn = {
245
245
  fetchSecurityAnalysisParametersError: "An error occured when fetching the security analysis parameters",
246
246
  fetchSecurityAnalysisProvidersError: "An error occured when fetching security analysis provider list",
247
247
  updateSecurityAnalysisParametersError: "An error occurred while updating the security analysis parameters",
248
+ getSecurityAnalysisContingenciesCountError: "An error occurred while estimating security analysis contingencies count",
248
249
  // SensitivityAnalysis
249
250
  fetchSensitivityAnalysisParametersError: "An error occured when fetching the sensitivity analysis parameters",
250
251
  fetchSensitivityAnalysisProvidersError: "An error occured when fetching sensitivity analysis provider list",
@@ -69,6 +69,7 @@ export declare const networkModificationsFr: {
69
69
  ModificationReadError: string;
70
70
  CreateSubstation: string;
71
71
  DeleteEquipmentByFilter: string;
72
+ ModifyByAssignment: string;
72
73
  SubstationCreationError: string;
73
74
  ModifySubstation: string;
74
75
  SubstationModificationError: string;
@@ -142,7 +143,58 @@ export declare const networkModificationsFr: {
142
143
  LCCConverterStationShuntCompensators: string;
143
144
  Side1: string;
144
145
  Side2: string;
146
+ EquipmentType: string;
147
+ EditedField: string;
148
+ Property: string;
149
+ RatedNominalPowerText: string;
150
+ MinimumActivePowerText: string;
151
+ MaximumActivePowerText: string;
152
+ ActivePowerSetPointText: string;
153
+ ReactivePowerSetPointText: string;
154
+ GeneratorTargetV: string;
155
+ PlannedActivePowerSetPointForm: string;
156
+ MarginalCost: string;
157
+ plannedOutageRate: string;
158
+ forcedOutageRate: string;
159
+ ActivePowerRegulationDroop: string;
160
+ TransientReactanceForm: string;
161
+ TransformerReactanceForm: string;
162
+ ReactivePercentageVoltageRegulation: string;
163
+ voltageRegulationOn: string;
164
+ maximumSectionCount: string;
165
+ sectionCount: string;
166
+ maxSusceptance: string;
167
+ maxQAtNominalV: string;
168
+ SeriesResistanceText: string;
169
+ SeriesReactanceText: string;
170
+ ShuntConductanceText: string;
171
+ ShuntConductanceText1: string;
172
+ ShuntConductanceText2: string;
173
+ ShuntSusceptanceText: string;
174
+ ShuntSusceptanceText1: string;
175
+ ShuntSusceptanceText2: string;
176
+ RatedU1: string;
177
+ RatedU2: string;
178
+ RatioTargetV: string;
179
+ RatioLowTapPosition: string;
180
+ RatioTapPosition: string;
181
+ RatioDeadBand: string;
182
+ PhaseRegulatingValue: string;
183
+ PhaseLowTapPosition: string;
184
+ PhaseTapPosition: string;
185
+ PhaseDeadBand: string;
186
+ selectedOperationalLimitsGroup1: string;
187
+ selectedOperationalLimitsGroup2: string;
188
+ operationalLimitsGroup1WithProperties: string;
189
+ operationalLimitsGroup2WithProperties: string;
190
+ Value: string;
191
+ EmptyField: string;
192
+ NumericValueOrEmptyField: string;
193
+ ValueOrEmptyField: string;
194
+ addNewAssignment: string;
195
+ changeTypeConfirmation: string;
145
196
  Or: string;
197
+ SubstationTab: string;
146
198
  ConnectivityTab: string;
147
199
  CharacteristicsTab: string;
148
200
  StructureTab: string;
@@ -75,6 +75,7 @@ const networkModificationsFr = {
75
75
  ModificationReadError: "Une erreur est survenue lors de la récupération de la modification",
76
76
  CreateSubstation: "Créer un site",
77
77
  DeleteEquipmentByFilter: "Supprimer des ouvrages par filtre",
78
+ ModifyByAssignment: "Modification par filtre",
78
79
  SubstationCreationError: "Erreur lors de la création d'un site'",
79
80
  ModifySubstation: "Modifier un site",
80
81
  SubstationModificationError: "Erreur lors de la modification d'un site",
@@ -148,8 +149,59 @@ const networkModificationsFr = {
148
149
  LCCConverterStationShuntCompensators: "Moyens de compensation liés à la LCC",
149
150
  Side1: "Côté 1",
150
151
  Side2: "Côté 2",
152
+ EquipmentType: "Type d'ouvrage",
153
+ EditedField: "Champ modifié",
154
+ Property: "Propriété",
155
+ RatedNominalPowerText: "Puissance nominale",
156
+ MinimumActivePowerText: "Puissance active min",
157
+ MaximumActivePowerText: "Puissance active max",
158
+ ActivePowerSetPointText: "Consigne de puissance active",
159
+ ReactivePowerSetPointText: "Consigne de puissance réactive",
160
+ GeneratorTargetV: "Consigne tension",
161
+ PlannedActivePowerSetPointForm: "Puissance imposée",
162
+ MarginalCost: "Coût de démarrage",
163
+ plannedOutageRate: "Indisponibilité programmée",
164
+ forcedOutageRate: "Indisponibilité fortuite",
165
+ ActivePowerRegulationDroop: "Cœfficient de participation à la compensation",
166
+ TransientReactanceForm: "Réactance transitoire",
167
+ TransformerReactanceForm: "Réactance du transformateur",
168
+ ReactivePercentageVoltageRegulation: "Cœfficient de participation au réglage de tension",
169
+ voltageRegulationOn: "Réglage de tension",
170
+ maximumSectionCount: "Nombre de gradins",
171
+ sectionCount: "Gradin courant",
172
+ maxSusceptance: "Susceptance installée",
173
+ maxQAtNominalV: "Q installée à tension nominale",
174
+ SeriesResistanceText: "Résistance série",
175
+ SeriesReactanceText: "Réactance série",
176
+ ShuntConductanceText: "Conductance parallèle",
177
+ ShuntConductanceText1: "Conductance parallèle côté 1",
178
+ ShuntConductanceText2: "Conductance parallèle côté 2",
179
+ ShuntSusceptanceText: "Susceptance parallèle",
180
+ ShuntSusceptanceText1: "Susceptance parallèle côté 1",
181
+ ShuntSusceptanceText2: "Susceptance parallèle côté 2",
182
+ RatedU1: "Tension d'enroulement 1",
183
+ RatedU2: "Tension d'enroulement 2",
184
+ RatioTargetV: "Tension de consigne du régleur",
185
+ RatioLowTapPosition: "Prise min régleur",
186
+ RatioTapPosition: "Prise courante du régleur",
187
+ RatioDeadBand: "Bande morte du régleur",
188
+ PhaseRegulatingValue: "Valeur de réglage de déphaseur",
189
+ PhaseLowTapPosition: "Prise min déphaseur",
190
+ PhaseTapPosition: "Prise courante du déphaseur",
191
+ PhaseDeadBand: "Bande morte du déphaseur",
192
+ selectedOperationalLimitsGroup1: "Jeu de limites actif côté 1",
193
+ selectedOperationalLimitsGroup2: "Jeu de limites actif côté 2",
194
+ operationalLimitsGroup1WithProperties: "Jeu de limites actif côté 1 ayant la propriété",
195
+ operationalLimitsGroup2WithProperties: "Jeu de limites actif côté 2 ayant la propriété",
196
+ Value: "Valeur",
197
+ EmptyField: "Vider le champ",
198
+ NumericValueOrEmptyField: "Valeur numérique ou Vider le champ",
199
+ ValueOrEmptyField: "Valeur ou Vider le champ",
200
+ addNewAssignment: "Modifier un autre champ",
201
+ changeTypeConfirmation: "Le type va être modifié. Toutes les valeurs des champs seront effacées.",
151
202
  Or: "ou",
152
203
  // Tabs
204
+ SubstationTab: "Site",
153
205
  ConnectivityTab: "Connectivité",
154
206
  CharacteristicsTab: "Caractéristiques",
155
207
  StructureTab: "Structure",
@@ -248,6 +248,7 @@ export declare const parametersFr: {
248
248
  fetchSecurityAnalysisParametersError: string;
249
249
  fetchSecurityAnalysisProvidersError: string;
250
250
  updateSecurityAnalysisParametersError: string;
251
+ getSecurityAnalysisContingenciesCountError: string;
251
252
  fetchSensitivityAnalysisParametersError: string;
252
253
  fetchSensitivityAnalysisProvidersError: string;
253
254
  updateSensitivityAnalysisParametersError: string;
@@ -245,6 +245,7 @@ const parametersFr = {
245
245
  fetchSecurityAnalysisParametersError: "Une erreur est survenue lors de la récupération des paramètres de l'analyse de sécurité",
246
246
  fetchSecurityAnalysisProvidersError: "Une erreur est survenue lors de la récupération des fournisseurs d'analyse de sécurité",
247
247
  updateSecurityAnalysisParametersError: "Une erreur est survenue lors de la mise a jour des paramètres de l'analyse de sécurité",
248
+ getSecurityAnalysisContingenciesCountError: "Une erreur est survenue lors de l'estimation du nombre d'aléas de l'analyse de sécurité",
248
249
  // SensitivityAnalysis
249
250
  fetchSensitivityAnalysisParametersError: "Une erreur est survenue lors de la récupération des paramètres de l'analyse de sensibilité",
250
251
  fetchSensitivityAnalysisProvidersError: "Une erreur est survenue lors de la récupération des fournisseurs d'analyse de sensibilité",
@@ -10,6 +10,7 @@ export declare enum FieldConstants {
10
10
  ADDITIONAL_PROPERTIES = "AdditionalProperties",
11
11
  AG_GRID_ROW_UUID = "agGridRowUuid",
12
12
  API_CALL = "apiCall",
13
+ ASSIGNMENTS = "assignments",
13
14
  BUS_OR_BUSBAR_SECTION = "busOrBusbarSection",
14
15
  CASE_FILE = "caseFile",
15
16
  CASE_FORMAT = "caseFormat",
@@ -34,6 +35,7 @@ export declare enum FieldConstants {
34
35
  DELETION_SPECIFIC_TYPE = "specificType",
35
36
  DESCRIPTION = "description",
36
37
  DIRECTORY = "directory",
38
+ EDITED_FIELD = "editedField",
37
39
  ENERGY_SOURCE = "energySource",
38
40
  EQUIPMENT_ID = "equipmentID",
39
41
  EQUIPMENT_NAME = "equipmentName",
@@ -4,6 +4,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
4
4
  FieldConstants2["ADDITIONAL_PROPERTIES"] = "AdditionalProperties";
5
5
  FieldConstants2["AG_GRID_ROW_UUID"] = "agGridRowUuid";
6
6
  FieldConstants2["API_CALL"] = "apiCall";
7
+ FieldConstants2["ASSIGNMENTS"] = "assignments";
7
8
  FieldConstants2["BUS_OR_BUSBAR_SECTION"] = "busOrBusbarSection";
8
9
  FieldConstants2["CASE_FILE"] = "caseFile";
9
10
  FieldConstants2["CASE_FORMAT"] = "caseFormat";
@@ -28,6 +29,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
28
29
  FieldConstants2["DELETION_SPECIFIC_TYPE"] = "specificType";
29
30
  FieldConstants2["DESCRIPTION"] = "description";
30
31
  FieldConstants2["DIRECTORY"] = "directory";
32
+ FieldConstants2["EDITED_FIELD"] = "editedField";
31
33
  FieldConstants2["ENERGY_SOURCE"] = "energySource";
32
34
  FieldConstants2["EQUIPMENT_ID"] = "equipmentID";
33
35
  FieldConstants2["EQUIPMENT_NAME"] = "equipmentName";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.188.0",
3
+ "version": "0.190.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",