@gridsuite/commons-ui 0.180.0 → 0.182.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 (78) hide show
  1. package/dist/components/index.js +33 -1
  2. package/dist/components/inputs/index.js +4 -0
  3. package/dist/components/inputs/reactHookForm/index.d.ts +1 -0
  4. package/dist/components/inputs/reactHookForm/index.js +4 -0
  5. package/dist/components/inputs/reactHookForm/readOnly/ButtonReadOnlyInput.d.ts +7 -0
  6. package/dist/components/inputs/reactHookForm/readOnly/ButtonReadOnlyInput.js +50 -0
  7. package/dist/components/inputs/reactHookForm/readOnly/ReadOnlyInput.d.ts +12 -0
  8. package/dist/components/inputs/reactHookForm/readOnly/ReadOnlyInput.js +35 -0
  9. package/dist/components/inputs/reactHookForm/readOnly/index.d.ts +8 -0
  10. package/dist/components/inputs/reactHookForm/readOnly/index.js +6 -0
  11. package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +2 -2
  12. package/dist/components/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js +1 -1
  13. package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.d.ts +9 -0
  14. package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +173 -0
  15. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.types.d.ts +17 -0
  16. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.types.js +1 -0
  17. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.d.ts +33 -0
  18. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +78 -0
  19. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.d.ts +7 -0
  20. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +43 -0
  21. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.d.ts +13 -0
  22. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +58 -0
  23. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.d.ts +21 -0
  24. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js +22 -0
  25. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/index.d.ts +10 -0
  26. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/index.js +10 -0
  27. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.d.ts +8 -0
  28. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js +85 -0
  29. package/dist/components/network-modifications/equipmentDeletion/index.d.ts +10 -0
  30. package/dist/components/network-modifications/equipmentDeletion/index.js +18 -0
  31. package/dist/components/network-modifications/index.d.ts +1 -0
  32. package/dist/components/network-modifications/index.js +29 -1
  33. package/dist/components/network-modifications/load/common/LoadDialogHeader.d.ts +1 -2
  34. package/dist/components/network-modifications/load/common/LoadDialogHeader.js +4 -7
  35. package/dist/components/network-modifications/load/common/LoadForm.d.ts +3 -2
  36. package/dist/components/network-modifications/load/common/LoadForm.js +1 -9
  37. package/dist/components/network-modifications/load/index.d.ts +1 -0
  38. package/dist/components/network-modifications/load/index.js +6 -1
  39. package/dist/components/network-modifications/load/modification/index.d.ts +8 -0
  40. package/dist/components/network-modifications/load/modification/index.js +7 -0
  41. package/dist/components/network-modifications/load/modification/loadModification.types.d.ts +21 -0
  42. package/dist/components/network-modifications/load/modification/loadModification.types.js +1 -0
  43. package/dist/components/network-modifications/load/modification/loadModification.utils.d.ts +69 -0
  44. package/dist/components/network-modifications/load/modification/loadModification.utils.js +106 -0
  45. package/dist/components/network-modifications/voltage-level/index.d.ts +1 -0
  46. package/dist/components/network-modifications/voltage-level/index.js +8 -1
  47. package/dist/components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.d.ts +5 -0
  48. package/dist/components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.js +159 -0
  49. package/dist/components/network-modifications/voltage-level/modification/index.d.ts +9 -0
  50. package/dist/components/network-modifications/voltage-level/modification/index.js +9 -0
  51. package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.types.d.ts +35 -0
  52. package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.types.js +1 -0
  53. package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.utils.d.ts +36 -0
  54. package/dist/components/network-modifications/voltage-level/modification/voltageLevelModification.utils.js +75 -0
  55. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +11 -10
  56. package/dist/hooks/index.d.ts +1 -0
  57. package/dist/hooks/index.js +2 -0
  58. package/dist/hooks/useGetLabelEquipmentTypes.d.ts +2 -0
  59. package/dist/hooks/useGetLabelEquipmentTypes.js +20 -0
  60. package/dist/index.js +42 -1
  61. package/dist/translations/en/equipmentTypesEn.d.ts +30 -0
  62. package/dist/translations/en/equipmentTypesEn.js +27 -0
  63. package/dist/translations/en/index.d.ts +1 -0
  64. package/dist/translations/en/index.js +2 -0
  65. package/dist/translations/en/networkModificationsEn.d.ts +12 -0
  66. package/dist/translations/en/networkModificationsEn.js +15 -3
  67. package/dist/translations/fr/equipmentTypesFr.d.ts +30 -0
  68. package/dist/translations/fr/equipmentTypesFr.js +27 -0
  69. package/dist/translations/fr/index.d.ts +1 -0
  70. package/dist/translations/fr/index.js +2 -0
  71. package/dist/translations/fr/networkModificationsFr.d.ts +12 -0
  72. package/dist/translations/fr/networkModificationsFr.js +17 -5
  73. package/dist/utils/constants/fieldConstants.d.ts +7 -0
  74. package/dist/utils/constants/fieldConstants.js +7 -0
  75. package/dist/utils/index.js +4 -1
  76. package/dist/utils/ts-utils.d.ts +3 -0
  77. package/dist/utils/ts-utils.js +10 -0
  78. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -82,6 +82,8 @@ import { SliderInput } from "./components/inputs/reactHookForm/numbers/SliderInp
82
82
  import { isFloatNumber, isIntegerNumber } from "./components/inputs/reactHookForm/numbers/utils.js";
83
83
  import { CustomFormContext, CustomFormProvider } from "./components/inputs/reactHookForm/provider/CustomFormProvider.js";
84
84
  import { useCustomFormContext } from "./components/inputs/reactHookForm/provider/useCustomFormContext.js";
85
+ import { ReadOnlyInput } from "./components/inputs/reactHookForm/readOnly/ReadOnlyInput.js";
86
+ import { ButtonReadOnlyInput } from "./components/inputs/reactHookForm/readOnly/ButtonReadOnlyInput.js";
85
87
  import { CountriesInput } from "./components/inputs/reactHookForm/selectInputs/CountriesInput.js";
86
88
  import { InputWithPopupConfirmation } from "./components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
87
89
  import { MuiSelectInput } from "./components/inputs/reactHookForm/selectInputs/MuiSelectInput.js";
@@ -202,6 +204,12 @@ import { SetPointsForm } from "./components/network-modifications/common/setpoin
202
204
  import { createConnectivityData, getCon1andCon2WithPositionValidationSchema, getConnectivityBusBarSectionData, getConnectivityData, getConnectivityFormData, getConnectivityFormDataProps, getConnectivityPropertiesData, getConnectivityPropertiesEmptyFormData, getConnectivityPropertiesValidationSchema, getConnectivityVoltageLevelData, getConnectivityWithPositionEmptyFormData, getConnectivityWithPositionEmptyFormDataProps, getConnectivityWithPositionSchema, getConnectivityWithPositionValidationSchema, getConnectivityWithoutPositionEmptyFormData, getConnectivityWithoutPositionValidationSchema, getCont1Cont2WithPositionEmptyFormData, getNewVoltageLevelData } from "./components/network-modifications/common/connectivity/connectivityForm.utils.js";
203
205
  import { ConnectivityForm } from "./components/network-modifications/common/connectivity/ConnectivityForm.js";
204
206
  import { BranchConnectivityForm } from "./components/network-modifications/common/connectivity/BranchConnectivityForm.js";
207
+ import { getHvdcLccDeletionSchema } from "./components/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js";
208
+ import { ShuntCompensatorSelectionForm } from "./components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js";
209
+ import { useHvdcLccDeletion } from "./components/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js";
210
+ import { HvdcLccDeletionSpecificForm } from "./components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js";
211
+ import { equipmentDeletionDtoToForm, equipmentDeletionEmptyFormData, equipmentDeletionFormSchema, equipmentDeletionFormToDto, newEquipmentDeletionDto } from "./components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js";
212
+ import { EquipmentDeletionForm } from "./components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js";
205
213
  import { SubstationCreationForm } from "./components/network-modifications/substation/creation/SubstationCreationForm.js";
206
214
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./components/network-modifications/substation/creation/substationCreation.utils.js";
207
215
  import { SubstationModificationForm } from "./components/network-modifications/substation/modification/SubstationModificationForm.js";
@@ -213,12 +221,15 @@ import { CouplingOmnibusCreation } from "./components/network-modifications/volt
213
221
  import { VoltageLevelCreationForm } from "./components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js";
214
222
  import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js";
215
223
  import { SwitchKind } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.types.js";
224
+ import { VoltageLevelModificationForm } from "./components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.js";
225
+ import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./components/network-modifications/voltage-level/modification/voltageLevelModification.utils.js";
216
226
  import { LoadDialogTab } from "./components/network-modifications/load/common/load.utils.js";
217
227
  import { LoadDialogTabs } from "./components/network-modifications/load/common/LoadDialogTabs.js";
218
228
  import { LoadDialogTabsContent } from "./components/network-modifications/load/common/LoadDialogTabsContent.js";
219
229
  import { LoadDialogHeader } from "./components/network-modifications/load/common/LoadDialogHeader.js";
220
230
  import { LoadForm } from "./components/network-modifications/load/common/LoadForm.js";
221
231
  import { loadCreationDtoToForm, loadCreationEmptyFormData, loadCreationFormSchema, loadCreationFormToDto } from "./components/network-modifications/load/creation/loadCreation.utils.js";
232
+ import { loadModificationDtoToForm, loadModificationEmptyFormData, loadModificationFormSchema, loadModificationFormToDto } from "./components/network-modifications/load/modification/loadModification.utils.js";
222
233
  import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
223
234
  import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
224
235
  import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
@@ -233,6 +244,7 @@ import { useFormatLabelWithUnit } from "./hooks/useFormatLabelWithUnit.js";
233
244
  import { useSelectAppearance } from "./hooks/useSelectAppearance.js";
234
245
  import { OptionalServicesStatus, useParametersBackend } from "./hooks/use-parameters-backend.js";
235
246
  import { useCreateRowData } from "./hooks/use-create-row-data.js";
247
+ import { useGetLabelEquipmentTypes } from "./hooks/useGetLabelEquipmentTypes.js";
236
248
  import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
237
249
  import { getUserToken, setCommonStore } from "./redux/commonStore.js";
238
250
  import { fetchAppsMetadata, fetchBaseVoltages, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isExploreMetadata, isStudyMetadata } from "./services/appsMetadata.js";
@@ -284,7 +296,7 @@ import { SolverTypeInfos } from "./utils/types/dynamic-simulation.type.js";
284
296
  import { DistributionType, SensitivityType } from "./utils/types/sensitivity-analysis.type.js";
285
297
  import { CalculationType, LoadModelsRule } from "./utils/types/dynamic-margin-calculation.type.js";
286
298
  import { OperationType } from "./utils/types/network-modification-types.js";
287
- import { areIdsEqual, getIdOrSelf, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, sanitizeString } from "./utils/ts-utils.js";
299
+ import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, richTypeEquals, sanitizeString } from "./utils/ts-utils.js";
288
300
  import { toNumber, validateValueIsANumber } from "./utils/validation-functions.js";
289
301
  import "./utils/yupConfig.js";
290
302
  import { cardErrorBoundaryEn } from "./translations/en/cardErrorBoundaryEn.js";
@@ -299,6 +311,7 @@ import { equipmentSearchEn } from "./translations/en/equipmentSearchEn.js";
299
311
  import { equipmentTagEn } from "./translations/en/equipmentTagEn.js";
300
312
  import { equipmentShortEn } from "./translations/en/equipmentShortEn.js";
301
313
  import { equipmentsEn } from "./translations/en/equipmentsEn.js";
314
+ import { equipmentTypesEn } from "./translations/en/equipmentTypesEn.js";
302
315
  import { errorsEn } from "./translations/en/errorsEn.js";
303
316
  import { filterEn } from "./translations/en/filterEn.js";
304
317
  import { filterExpertEn } from "./translations/en/filterExpertEn.js";
@@ -328,6 +341,7 @@ import { equipmentSearchFr } from "./translations/fr/equipmentSearchFr.js";
328
341
  import { equipmentTagFr } from "./translations/fr/equipmentTagFr.js";
329
342
  import { equipmentShortFr } from "./translations/fr/equipmentShortFr.js";
330
343
  import { equipmentsFr } from "./translations/fr/equipmentsFr.js";
344
+ import { equipmentTypesFr } from "./translations/fr/equipmentTypesFr.js";
331
345
  import { errorsFr } from "./translations/fr/errorsFr.js";
332
346
  import { filterExpertFr } from "./translations/fr/filterExpertFr.js";
333
347
  import { filterFr } from "./translations/fr/filterFr.js";
@@ -375,6 +389,7 @@ export {
375
389
  BranchActiveReactivePowerMeasurementsForm,
376
390
  BranchConnectivityForm,
377
391
  BusBar,
392
+ ButtonReadOnlyInput,
378
393
  CALCULATION_TYPE,
379
394
  CENTER_LABEL,
380
395
  COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS,
@@ -480,6 +495,7 @@ export {
480
495
  ElementType,
481
496
  ElementValueEditor,
482
497
  EnumInput,
498
+ EquipmentDeletionForm,
483
499
  EquipmentItem,
484
500
  EquipmentType,
485
501
  EquipmentsSelectionType,
@@ -523,6 +539,7 @@ export {
523
539
  HVDC_EQUIPMENT_TYPES,
524
540
  HelperPreviousValue,
525
541
  Hvdc,
542
+ HvdcLccDeletionSpecificForm,
526
543
  HvdcType,
527
544
  ID,
528
545
  IGNORE_SIGNAL,
@@ -699,6 +716,7 @@ export {
699
716
  RangeType,
700
717
  RawReadOnlyInput,
701
718
  ReactivePowerAdornment,
719
+ ReadOnlyInput,
702
720
  RemoveButton,
703
721
  ResizeHandle,
704
722
  RuleValueEditor,
@@ -755,6 +773,7 @@ export {
755
773
  ShortCircuitParametersEditionDialog,
756
774
  ShortCircuitParametersInLine,
757
775
  ShuntCompensator,
776
+ ShuntCompensatorSelectionForm,
758
777
  SignInCallbackHandler,
759
778
  SilentRenewCallbackHandler,
760
779
  SliderInput,
@@ -817,6 +836,7 @@ export {
817
836
  VoltageInitTabValues,
818
837
  VoltageLevel,
819
838
  VoltageLevelCreationForm,
839
+ VoltageLevelModificationForm,
820
840
  WRITE_SLACK_BUS,
821
841
  YUP_REQUIRED,
822
842
  alertThresholdMarks,
@@ -862,6 +882,10 @@ export {
862
882
  elementSearchFr,
863
883
  emptyProperties,
864
884
  equalsArray,
885
+ equipmentDeletionDtoToForm,
886
+ equipmentDeletionEmptyFormData,
887
+ equipmentDeletionFormSchema,
888
+ equipmentDeletionFormToDto,
865
889
  equipmentSearchEn,
866
890
  equipmentSearchFr,
867
891
  equipmentShortEn,
@@ -869,7 +893,9 @@ export {
869
893
  equipmentStyles,
870
894
  equipmentTagEn,
871
895
  equipmentTagFr,
896
+ equipmentTypesEn,
872
897
  equipmentTypesForPredefinedPropertiesMapper,
898
+ equipmentTypesFr,
873
899
  equipmentsEn,
874
900
  equipmentsFr,
875
901
  errorsEn,
@@ -956,13 +982,16 @@ export {
956
982
  getExplicitNamingFilterEmptyFormData,
957
983
  getFileIcon,
958
984
  getFilledPropertiesFromModification,
985
+ getHvdcLccDeletionSchema,
959
986
  getIdOrSelf,
987
+ getIdOrValue,
960
988
  getInjectionActiveReactivePowerEditData,
961
989
  getInjectionActiveReactivePowerEditDataProperties,
962
990
  getInjectionActiveReactivePowerEmptyFormData,
963
991
  getInjectionActiveReactivePowerEmptyFormDataProperties,
964
992
  getInjectionActiveReactivePowerValidationSchema,
965
993
  getInjectionActiveReactivePowerValidationSchemaProperties,
994
+ getLabelOrValue,
966
995
  getLimitReductionsFormSchema,
967
996
  getLoadFlowDefaultLimitReductions,
968
997
  getLoadFlowProviders,
@@ -1029,6 +1058,10 @@ export {
1029
1058
  loadCreationEmptyFormData,
1030
1059
  loadCreationFormSchema,
1031
1060
  loadCreationFormToDto,
1061
+ loadModificationDtoToForm,
1062
+ loadModificationEmptyFormData,
1063
+ loadModificationFormSchema,
1064
+ loadModificationFormToDto,
1032
1065
  login,
1033
1066
  loginEn,
1034
1067
  loginFr,
@@ -1042,6 +1075,7 @@ export {
1042
1075
  multipleSelectionDialogFr,
1043
1076
  networkModificationsEn,
1044
1077
  networkModificationsFr,
1078
+ newEquipmentDeletionDto,
1045
1079
  notNull,
1046
1080
  notUndefined,
1047
1081
  onlyStartedGeneratorsOptions,
@@ -1055,6 +1089,7 @@ export {
1055
1089
  reportViewerEn,
1056
1090
  reportViewerFr,
1057
1091
  resetAuthenticationRouterError,
1092
+ richTypeEquals,
1058
1093
  roundToDefaultPrecision,
1059
1094
  roundToPrecision,
1060
1095
  safeEncodeURIComponent,
@@ -1120,7 +1155,9 @@ export {
1120
1155
  useDebounce,
1121
1156
  useElementSearch,
1122
1157
  useFormatLabelWithUnit,
1158
+ useGetLabelEquipmentTypes,
1123
1159
  useGlobalAnnouncement,
1160
+ useHvdcLccDeletion,
1124
1161
  useIntlRef,
1125
1162
  useListenerManager,
1126
1163
  useLocalizedCountries,
@@ -1141,5 +1178,9 @@ export {
1141
1178
  voltageLevelCreationEmptyFormData,
1142
1179
  voltageLevelCreationFormSchema,
1143
1180
  voltageLevelCreationFormToDto,
1181
+ voltageLevelModificationDtoToForm,
1182
+ voltageLevelModificationEmptyFormData,
1183
+ voltageLevelModificationFormSchema,
1184
+ voltageLevelModificationFormToDto,
1144
1185
  yup as yupConfig
1145
1186
  };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export declare const equipmentTypesEn: {
8
+ Type: string;
9
+ SUBSTATION: string;
10
+ VOLTAGE_LEVEL: string;
11
+ BUS: string;
12
+ BUSBAR_SECTION: string;
13
+ SWITCH: string;
14
+ LINE: string;
15
+ TWO_WINDINGS_TRANSFORMER: string;
16
+ THREE_WINDINGS_TRANSFORMER: string;
17
+ GENERATOR: string;
18
+ BATTERY: string;
19
+ LOAD: string;
20
+ SHUNT_COMPENSATOR: string;
21
+ STATIC_VAR_COMPENSATOR: string;
22
+ HVDC_LINE: string;
23
+ HVDC_CONVERTER_STATION: string;
24
+ VSC_CONVERTER_STATION: string;
25
+ LCC_CONVERTER_STATION: string;
26
+ DANGLING_LINE: string;
27
+ TIE_LINE: string;
28
+ DISCONNECTOR: string;
29
+ BREAKER: string;
30
+ };
@@ -0,0 +1,27 @@
1
+ const equipmentTypesEn = {
2
+ Type: "Type",
3
+ SUBSTATION: "Substation",
4
+ VOLTAGE_LEVEL: "Voltage Level",
5
+ BUS: "Bus",
6
+ BUSBAR_SECTION: "Bus bar section",
7
+ SWITCH: "Switch",
8
+ LINE: "Line",
9
+ TWO_WINDINGS_TRANSFORMER: "Two Windings Transformer",
10
+ THREE_WINDINGS_TRANSFORMER: "Three Windings Transformer",
11
+ GENERATOR: "Generator",
12
+ BATTERY: "Battery",
13
+ LOAD: "Load",
14
+ SHUNT_COMPENSATOR: "Shunt Compensator",
15
+ STATIC_VAR_COMPENSATOR: "Static Var Compensator",
16
+ HVDC_LINE: "HVDC Line",
17
+ HVDC_CONVERTER_STATION: "HVDC Converter Station",
18
+ VSC_CONVERTER_STATION: "Vsc Converter Station",
19
+ LCC_CONVERTER_STATION: "Lcc Converter Station",
20
+ DANGLING_LINE: "Dangling Line",
21
+ TIE_LINE: "Tie line",
22
+ DISCONNECTOR: "Disconnector",
23
+ BREAKER: "Breaker"
24
+ };
25
+ export {
26
+ equipmentTypesEn
27
+ };
@@ -16,6 +16,7 @@ export * from './equipmentSearchEn';
16
16
  export * from './equipmentTagEn';
17
17
  export * from './equipmentShortEn';
18
18
  export * from './equipmentsEn';
19
+ export * from './equipmentTypesEn';
19
20
  export * from './errorsEn';
20
21
  export * from './filterEn';
21
22
  export * from './filterExpertEn';
@@ -10,6 +10,7 @@ import { equipmentSearchEn } from "./equipmentSearchEn.js";
10
10
  import { equipmentTagEn } from "./equipmentTagEn.js";
11
11
  import { equipmentShortEn } from "./equipmentShortEn.js";
12
12
  import { equipmentsEn } from "./equipmentsEn.js";
13
+ import { equipmentTypesEn } from "./equipmentTypesEn.js";
13
14
  import { errorsEn } from "./errorsEn.js";
14
15
  import { filterEn } from "./filterEn.js";
15
16
  import { filterExpertEn } from "./filterExpertEn.js";
@@ -40,6 +41,7 @@ export {
40
41
  equipmentSearchEn,
41
42
  equipmentShortEn,
42
43
  equipmentTagEn,
44
+ equipmentTypesEn,
43
45
  equipmentsEn,
44
46
  errorsEn,
45
47
  exportParamsEn,
@@ -78,6 +78,8 @@ export declare const networkModificationsEn: {
78
78
  Country: string;
79
79
  CreateVoltageLevel: string;
80
80
  VoltageLevelCreationError: string;
81
+ ModifyVoltageLevel: string;
82
+ VoltageLevelModificationError: string;
81
83
  SUBSTATION: string;
82
84
  VoltageText: string;
83
85
  NominalVoltage: string;
@@ -130,4 +132,14 @@ export declare const networkModificationsEn: {
130
132
  DisplayTakenPositions: string;
131
133
  NodeNotBuildPositionMessage: string;
132
134
  NoVoltageLevelPositionMessage: string;
135
+ ModifyLoad: string;
136
+ StateEstimationTab: string;
137
+ MeasurementsSection: string;
138
+ ValidMeasurement: string;
139
+ InvalidMeasurement: string;
140
+ DeleteEquipment: string;
141
+ UnableToDeleteEquipment: string;
142
+ LCCConverterStationShuntCompensators: string;
143
+ Side1: string;
144
+ Side2: string;
133
145
  };
@@ -84,14 +84,16 @@ const networkModificationsEn = {
84
84
  Country: "Country",
85
85
  CreateVoltageLevel: "Create voltage level",
86
86
  VoltageLevelCreationError: "Error while creating voltage level",
87
+ ModifyVoltageLevel: "Modify a voltage level",
88
+ VoltageLevelModificationError: "Error while modifying a voltage level",
87
89
  SUBSTATION: "Substation",
88
90
  VoltageText: "Voltage",
89
91
  NominalVoltage: "Nominal voltage",
90
92
  LowVoltageLimit: "Low voltage limit",
91
93
  HighVoltageLimit: "High voltage limit",
92
94
  ShortCircuit: "Short-circuit",
93
- LowShortCircuitCurrentLimit: "Ip min",
94
- HighShortCircuitCurrentLimit: "Ip max",
95
+ LowShortCircuitCurrentLimit: "Low short-circuit current limit",
96
+ HighShortCircuitCurrentLimit: "High short-circuit current limit",
95
97
  BusBarSections: "Busbar section",
96
98
  BusBarCount: "Busbar Count",
97
99
  numberOfSections: "Section Count",
@@ -135,7 +137,17 @@ const networkModificationsEn = {
135
137
  ReactivePowerText: "Reactive power",
136
138
  DisplayTakenPositions: "Display taken positions",
137
139
  NodeNotBuildPositionMessage: "Build the node to display taken positions",
138
- NoVoltageLevelPositionMessage: "Select a voltage level to display taken positions"
140
+ NoVoltageLevelPositionMessage: "Select a voltage level to display taken positions",
141
+ ModifyLoad: "Modify load",
142
+ StateEstimationTab: "State estimation",
143
+ MeasurementsSection: "Measurements",
144
+ ValidMeasurement: "Valid",
145
+ InvalidMeasurement: "Invalid",
146
+ DeleteEquipment: "Delete equipment",
147
+ UnableToDeleteEquipment: "Unable to delete the equipment",
148
+ LCCConverterStationShuntCompensators: "Shunt compensators related to the LCC",
149
+ Side1: "Side 1",
150
+ Side2: "Side 2"
139
151
  };
140
152
  export {
141
153
  networkModificationsEn
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export declare const equipmentTypesFr: {
8
+ Type: string;
9
+ SUBSTATION: string;
10
+ VOLTAGE_LEVEL: string;
11
+ BUS: string;
12
+ BUSBAR_SECTION: string;
13
+ SWITCH: string;
14
+ LINE: string;
15
+ TWO_WINDINGS_TRANSFORMER: string;
16
+ THREE_WINDINGS_TRANSFORMER: string;
17
+ GENERATOR: string;
18
+ BATTERY: string;
19
+ LOAD: string;
20
+ SHUNT_COMPENSATOR: string;
21
+ STATIC_VAR_COMPENSATOR: string;
22
+ HVDC_LINE: string;
23
+ HVDC_CONVERTER_STATION: string;
24
+ VSC_CONVERTER_STATION: string;
25
+ LCC_CONVERTER_STATION: string;
26
+ DANGLING_LINE: string;
27
+ TIE_LINE: string;
28
+ DISCONNECTOR: string;
29
+ BREAKER: string;
30
+ };
@@ -0,0 +1,27 @@
1
+ const equipmentTypesFr = {
2
+ Type: "Type",
3
+ SUBSTATION: "Site",
4
+ VOLTAGE_LEVEL: "Poste",
5
+ BUS: "Noeud électrique",
6
+ BUSBAR_SECTION: "Section de jeux de barres",
7
+ SWITCH: "Disjoncteur",
8
+ LINE: "Ligne",
9
+ TWO_WINDINGS_TRANSFORMER: "Transformateur à 2 enroulements",
10
+ THREE_WINDINGS_TRANSFORMER: "Transformateur à 3 enroulements",
11
+ GENERATOR: "Groupe",
12
+ BATTERY: "Batterie",
13
+ LOAD: "Consommation",
14
+ SHUNT_COMPENSATOR: "MCS",
15
+ STATIC_VAR_COMPENSATOR: "CSPR",
16
+ HVDC_LINE: "Ligne HVDC",
17
+ HVDC_CONVERTER_STATION: "Station de conversion HVDC",
18
+ VSC_CONVERTER_STATION: "Station de conversion VSC",
19
+ LCC_CONVERTER_STATION: "Station de conversion LCC",
20
+ DANGLING_LINE: "Ligne frontière",
21
+ TIE_LINE: "Ligne d'interconnexion",
22
+ DISCONNECTOR: "Sectionneur",
23
+ BREAKER: "Disjoncteur"
24
+ };
25
+ export {
26
+ equipmentTypesFr
27
+ };
@@ -16,6 +16,7 @@ export * from './equipmentSearchFr';
16
16
  export * from './equipmentTagFr';
17
17
  export * from './equipmentShortFr';
18
18
  export * from './equipmentsFr';
19
+ export * from './equipmentTypesFr';
19
20
  export * from './errorsFr';
20
21
  export * from './filterExpertFr';
21
22
  export * from './filterFr';
@@ -10,6 +10,7 @@ import { equipmentSearchFr } from "./equipmentSearchFr.js";
10
10
  import { equipmentTagFr } from "./equipmentTagFr.js";
11
11
  import { equipmentShortFr } from "./equipmentShortFr.js";
12
12
  import { equipmentsFr } from "./equipmentsFr.js";
13
+ import { equipmentTypesFr } from "./equipmentTypesFr.js";
13
14
  import { errorsFr } from "./errorsFr.js";
14
15
  import { filterExpertFr } from "./filterExpertFr.js";
15
16
  import { filterFr } from "./filterFr.js";
@@ -40,6 +41,7 @@ export {
40
41
  equipmentSearchFr,
41
42
  equipmentShortFr,
42
43
  equipmentTagFr,
44
+ equipmentTypesFr,
43
45
  equipmentsFr,
44
46
  errorsFr,
45
47
  exportParamsFr,
@@ -78,6 +78,8 @@ export declare const networkModificationsFr: {
78
78
  Country: string;
79
79
  CreateVoltageLevel: string;
80
80
  VoltageLevelCreationError: string;
81
+ ModifyVoltageLevel: string;
82
+ VoltageLevelModificationError: string;
81
83
  SUBSTATION: string;
82
84
  VoltageText: string;
83
85
  NominalVoltage: string;
@@ -130,4 +132,14 @@ export declare const networkModificationsFr: {
130
132
  DisplayTakenPositions: string;
131
133
  NodeNotBuildPositionMessage: string;
132
134
  NoVoltageLevelPositionMessage: string;
135
+ ModifyLoad: string;
136
+ StateEstimationTab: string;
137
+ MeasurementsSection: string;
138
+ ValidMeasurement: string;
139
+ InvalidMeasurement: string;
140
+ DeleteEquipment: string;
141
+ UnableToDeleteEquipment: string;
142
+ LCCConverterStationShuntCompensators: string;
143
+ Side1: string;
144
+ Side2: string;
133
145
  };
@@ -84,14 +84,16 @@ const networkModificationsFr = {
84
84
  Country: "Pays",
85
85
  CreateVoltageLevel: "Créer un poste",
86
86
  VoltageLevelCreationError: "Erreur lors de la création d'un poste",
87
+ ModifyVoltageLevel: "Modifier un poste",
88
+ VoltageLevelModificationError: "Erreur lors de la modification d'un poste",
87
89
  SUBSTATION: "Site",
88
90
  VoltageText: "Tension",
89
91
  NominalVoltage: "Tension nominale",
90
- LowVoltageLimit: "Limite de tension basse",
91
- HighVoltageLimit: "Limite de tension haute",
92
+ LowVoltageLimit: "Limite tension basse",
93
+ HighVoltageLimit: "Limite tension haute",
92
94
  ShortCircuit: "Court-circuit",
93
- LowShortCircuitCurrentLimit: "Ip min",
94
- HighShortCircuitCurrentLimit: "Ip max",
95
+ LowShortCircuitCurrentLimit: "Limite ICC min",
96
+ HighShortCircuitCurrentLimit: "Limite ICC max",
95
97
  BusBarSections: "Section de jeu de barres",
96
98
  BusBarCount: "Nb de barres",
97
99
  numberOfSections: "Nb de sections",
@@ -135,7 +137,17 @@ const networkModificationsFr = {
135
137
  ReactivePowerText: "Puissance réactive",
136
138
  DisplayTakenPositions: "Afficher les positions prises",
137
139
  NodeNotBuildPositionMessage: "Veuillez réaliser le nœud pour afficher les positions prises",
138
- NoVoltageLevelPositionMessage: "Veuillez choisir un poste pour afficher les positions prises"
140
+ NoVoltageLevelPositionMessage: "Veuillez choisir un poste pour afficher les positions prises",
141
+ ModifyLoad: "Modifier une consommation",
142
+ StateEstimationTab: "Estimation d'état",
143
+ MeasurementsSection: "Télémesures",
144
+ ValidMeasurement: "Valide",
145
+ InvalidMeasurement: "Invalide",
146
+ DeleteEquipment: "Supprimer un ouvrage",
147
+ UnableToDeleteEquipment: "Impossible de supprimer l'ouvrage",
148
+ LCCConverterStationShuntCompensators: "Moyens de compensation liés à la LCC",
149
+ Side1: "Côté 1",
150
+ Side2: "Côté 2"
139
151
  };
140
152
  export {
141
153
  networkModificationsFr
@@ -30,6 +30,8 @@ export declare enum FieldConstants {
30
30
  COUNTRY = "country",
31
31
  CURRENT_PARAMETERS = "currentParameters",
32
32
  DELETION_MARK = "deletionMark",
33
+ DELETION_SPECIFIC_DATA = "equipmentInfos",
34
+ DELETION_SPECIFIC_TYPE = "specificType",
33
35
  DESCRIPTION = "description",
34
36
  DIRECTORY = "directory",
35
37
  ENERGY_SOURCE = "energySource",
@@ -43,6 +45,7 @@ export declare enum FieldConstants {
43
45
  FOLDER_ID = "folderId",
44
46
  FOLDER_NAME = "folderName",
45
47
  FORMATTED_CASE_PARAMETERS = "formattedCaseParameters",
48
+ HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE = "HVDC_LINE_WITH_LCC",
46
49
  ID = "id",
47
50
  LOAD_TYPE = "loadType",
48
51
  MAXIMUM_ACTIVE_POWER = "maximumActivePower",
@@ -66,6 +69,9 @@ export declare enum FieldConstants {
66
69
  PROPERTY_VALUES = "propertyValues",
67
70
  REACTIVE_POWER_SET_POINT = "reactivePowerSetpoint",
68
71
  SCRIPT = "script",
72
+ SHUNT_COMPENSATOR_SIDE_1 = "mcsOnSide1",
73
+ SHUNT_COMPENSATOR_SIDE_2 = "mcsOnSide2",
74
+ SHUNT_COMPENSATOR_SELECTED = "connectedToHvdc",
69
75
  STATE_ESTIMATION = "stateEstimation",
70
76
  STUDY_NAME = "studyName",
71
77
  TYPE = "type",
@@ -84,6 +90,7 @@ export declare enum FieldConstants {
84
90
  COUPLING_OMNIBUS = "couplingOmnibus",
85
91
  HIDE_BUS_BAR_SECTION = "hideBusBarSection",
86
92
  HIDE_NOMINAL_VOLTAGE = "hideNominalVoltage",
93
+ HIDE_SUBSTATION_FIELD = "hideSubstationField",
87
94
  HIGH_SHORT_CIRCUIT_CURRENT_LIMIT = "highShortCircuitCurrentLimit",
88
95
  HIGH_VOLTAGE_LIMIT = "highVoltageLimit",
89
96
  LOW_SHORT_CIRCUIT_CURRENT_LIMIT = "lowShortCircuitCurrentLimit",
@@ -24,6 +24,8 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
24
24
  FieldConstants2["COUNTRY"] = "country";
25
25
  FieldConstants2["CURRENT_PARAMETERS"] = "currentParameters";
26
26
  FieldConstants2["DELETION_MARK"] = "deletionMark";
27
+ FieldConstants2["DELETION_SPECIFIC_DATA"] = "equipmentInfos";
28
+ FieldConstants2["DELETION_SPECIFIC_TYPE"] = "specificType";
27
29
  FieldConstants2["DESCRIPTION"] = "description";
28
30
  FieldConstants2["DIRECTORY"] = "directory";
29
31
  FieldConstants2["ENERGY_SOURCE"] = "energySource";
@@ -37,6 +39,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
37
39
  FieldConstants2["FOLDER_ID"] = "folderId";
38
40
  FieldConstants2["FOLDER_NAME"] = "folderName";
39
41
  FieldConstants2["FORMATTED_CASE_PARAMETERS"] = "formattedCaseParameters";
42
+ FieldConstants2["HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE"] = "HVDC_LINE_WITH_LCC";
40
43
  FieldConstants2["ID"] = "id";
41
44
  FieldConstants2["LOAD_TYPE"] = "loadType";
42
45
  FieldConstants2["MAXIMUM_ACTIVE_POWER"] = "maximumActivePower";
@@ -60,6 +63,9 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
60
63
  FieldConstants2["PROPERTY_VALUES"] = "propertyValues";
61
64
  FieldConstants2["REACTIVE_POWER_SET_POINT"] = "reactivePowerSetpoint";
62
65
  FieldConstants2["SCRIPT"] = "script";
66
+ FieldConstants2["SHUNT_COMPENSATOR_SIDE_1"] = "mcsOnSide1";
67
+ FieldConstants2["SHUNT_COMPENSATOR_SIDE_2"] = "mcsOnSide2";
68
+ FieldConstants2["SHUNT_COMPENSATOR_SELECTED"] = "connectedToHvdc";
63
69
  FieldConstants2["STATE_ESTIMATION"] = "stateEstimation";
64
70
  FieldConstants2["STUDY_NAME"] = "studyName";
65
71
  FieldConstants2["TYPE"] = "type";
@@ -78,6 +84,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
78
84
  FieldConstants2["COUPLING_OMNIBUS"] = "couplingOmnibus";
79
85
  FieldConstants2["HIDE_BUS_BAR_SECTION"] = "hideBusBarSection";
80
86
  FieldConstants2["HIDE_NOMINAL_VOLTAGE"] = "hideNominalVoltage";
87
+ FieldConstants2["HIDE_SUBSTATION_FIELD"] = "hideSubstationField";
81
88
  FieldConstants2["HIGH_SHORT_CIRCUIT_CURRENT_LIMIT"] = "highShortCircuitCurrentLimit";
82
89
  FieldConstants2["HIGH_VOLTAGE_LIMIT"] = "highVoltageLimit";
83
90
  FieldConstants2["LOW_SHORT_CIRCUIT_CURRENT_LIMIT"] = "lowShortCircuitCurrentLimit";
@@ -31,7 +31,7 @@ import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
31
31
  import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
32
32
  import { CalculationType, LoadModelsRule } from "./types/dynamic-margin-calculation.type.js";
33
33
  import { OperationType } from "./types/network-modification-types.js";
34
- import { areIdsEqual, getIdOrSelf, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, sanitizeString } from "./ts-utils.js";
34
+ import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, richTypeEquals, sanitizeString } from "./ts-utils.js";
35
35
  import { toNumber, validateValueIsANumber } from "./validation-functions.js";
36
36
  import "./yupConfig.js";
37
37
  import * as yup from "yup";
@@ -144,6 +144,8 @@ export {
144
144
  getEquipmentsInfosForSearchBar,
145
145
  getFileIcon,
146
146
  getIdOrSelf,
147
+ getIdOrValue,
148
+ getLabelOrValue,
147
149
  getLoadTypeLabel,
148
150
  getObjectId,
149
151
  isBlankOrEmpty,
@@ -158,6 +160,7 @@ export {
158
160
  notUndefined,
159
161
  parseIntData,
160
162
  removeNullFields,
163
+ richTypeEquals,
161
164
  roundToDefaultPrecision,
162
165
  roundToPrecision,
163
166
  sanitizeString,
@@ -15,3 +15,6 @@ export declare const areIdsEqual: (val1: Option, val2: Option) => boolean;
15
15
  export declare const getObjectId: (object: string | {
16
16
  id: string;
17
17
  }) => string;
18
+ export declare const richTypeEquals: (a: unknown, b: unknown) => boolean;
19
+ export declare function getIdOrValue(value: any): any;
20
+ export declare function getLabelOrValue(value: any): any;
@@ -36,13 +36,23 @@ const areIdsEqual = (val1, val2) => {
36
36
  const getObjectId = (object) => {
37
37
  return typeof object === "string" ? object : object?.id ?? null;
38
38
  };
39
+ const richTypeEquals = (a, b) => a === b;
40
+ function getIdOrValue(value) {
41
+ return typeof value !== "string" ? value?.id ?? null : value;
42
+ }
43
+ function getLabelOrValue(value) {
44
+ return typeof value !== "string" ? value?.label ?? null : value;
45
+ }
39
46
  export {
40
47
  areIdsEqual,
41
48
  getIdOrSelf,
49
+ getIdOrValue,
50
+ getLabelOrValue,
42
51
  getObjectId,
43
52
  notNull,
44
53
  notUndefined,
45
54
  parseIntData,
46
55
  removeNullFields,
56
+ richTypeEquals,
47
57
  sanitizeString
48
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.180.0",
3
+ "version": "0.182.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",