@gridsuite/commons-ui 0.176.0 → 0.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/index.js +25 -1
  2. package/dist/components/inputs/index.js +2 -0
  3. package/dist/components/inputs/reactHookForm/index.js +2 -0
  4. package/dist/components/inputs/reactHookForm/numbers/IntegerInput.js +1 -1
  5. package/dist/components/inputs/reactHookForm/selectInputs/EnumInput.d.ts +18 -0
  6. package/dist/components/inputs/reactHookForm/selectInputs/EnumInput.js +28 -0
  7. package/dist/components/inputs/reactHookForm/selectInputs/index.d.ts +1 -0
  8. package/dist/components/inputs/reactHookForm/selectInputs/index.js +2 -0
  9. package/dist/components/network-modifications/index.d.ts +1 -0
  10. package/dist/components/network-modifications/index.js +23 -1
  11. package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.d.ts +11 -0
  12. package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +174 -0
  13. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.d.ts +7 -0
  14. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.js +54 -0
  15. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.d.ts +7 -0
  16. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.js +73 -0
  17. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.d.ts +8 -0
  18. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +6 -0
  19. package/dist/components/network-modifications/voltage-level/creation/index.d.ts +11 -0
  20. package/dist/components/network-modifications/voltage-level/creation/index.js +24 -0
  21. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +5 -0
  22. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +76 -0
  23. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationCreationSection.d.ts +6 -0
  24. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationCreationSection.js +61 -0
  25. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.d.ts +7 -0
  26. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.js +119 -0
  27. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.d.ts +11 -0
  28. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.js +82 -0
  29. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialogSubmitButton.d.ts +6 -0
  30. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialogSubmitButton.js +11 -0
  31. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesForm.d.ts +11 -0
  32. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesForm.js +70 -0
  33. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/createSwitchesDialog.utils.d.ts +14 -0
  34. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/createSwitchesDialog.utils.js +27 -0
  35. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/index.d.ts +7 -0
  36. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/creation/index.js +4 -0
  37. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/index.d.ts +8 -0
  38. package/dist/components/network-modifications/voltage-level/creation/switches-between-sections/index.js +6 -0
  39. package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.types.d.ts +34 -0
  40. package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.types.js +9 -0
  41. package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.d.ts +155 -0
  42. package/dist/components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js +248 -0
  43. package/dist/components/network-modifications/voltage-level/index.d.ts +7 -0
  44. package/dist/components/network-modifications/voltage-level/index.js +24 -0
  45. package/dist/components/parameters/short-circuit/short-circuit-parameters-content.d.ts +1 -2
  46. package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +4 -7
  47. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.d.ts +1 -3
  48. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -3
  49. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -2
  50. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +2 -9
  51. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.d.ts +1 -2
  52. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +1 -3
  53. package/dist/index.js +26 -1
  54. package/dist/services/index.js +2 -1
  55. package/dist/services/networkModification.d.ts +1 -0
  56. package/dist/services/networkModification.js +15 -1
  57. package/dist/translations/en/networkModificationsEn.d.ts +35 -0
  58. package/dist/translations/en/networkModificationsEn.js +35 -0
  59. package/dist/translations/fr/networkModificationsFr.d.ts +35 -0
  60. package/dist/translations/fr/networkModificationsFr.js +35 -0
  61. package/dist/utils/constants/fieldConstants.d.ts +22 -1
  62. package/dist/utils/constants/fieldConstants.js +21 -0
  63. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -86,6 +86,7 @@ import { CountriesInput } from "./components/inputs/reactHookForm/selectInputs/C
86
86
  import { InputWithPopupConfirmation } from "./components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
87
87
  import { MuiSelectInput } from "./components/inputs/reactHookForm/selectInputs/MuiSelectInput.js";
88
88
  import { SelectInput } from "./components/inputs/reactHookForm/selectInputs/SelectInput.js";
89
+ import { EnumInput } from "./components/inputs/reactHookForm/selectInputs/EnumInput.js";
89
90
  import { TableNumericalInput } from "./components/inputs/reactHookForm/tableInputs/table-numerical-input.js";
90
91
  import { TableTextInput } from "./components/inputs/reactHookForm/tableInputs/table-text-input.js";
91
92
  import { DescriptionField } from "./components/inputs/reactHookForm/text/DescriptionField.js";
@@ -191,6 +192,13 @@ import { SubstationCreationForm } from "./components/network-modifications/subst
191
192
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./components/network-modifications/substation/creation/substationCreation.utils.js";
192
193
  import { SubstationModificationForm } from "./components/network-modifications/substation/modification/SubstationModificationForm.js";
193
194
  import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./components/network-modifications/substation/modification/substationModification.utils.js";
195
+ import { CreateSwitchesDialog } from "./components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.js";
196
+ import { SwitchesBetweenSections } from "./components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.js";
197
+ import { CouplingOmnibusForm } from "./components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.js";
198
+ import { CouplingOmnibusCreation } from "./components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.js";
199
+ import { VoltageLevelCreationForm } from "./components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js";
200
+ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js";
201
+ import { SwitchKind } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.types.js";
194
202
  import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
195
203
  import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
196
204
  import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
@@ -220,7 +228,7 @@ import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin
220
228
  import { backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./services/utils.js";
221
229
  import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
222
230
  import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
223
- import { fetchNetworkModification, updateModification } from "./services/networkModification.js";
231
+ import { fetchBusBarSectionsForNewCoupler, fetchNetworkModification, updateModification } from "./services/networkModification.js";
224
232
  import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./services/dynamic-margin-calculation.js";
225
233
  import { equalsArray } from "./utils/algos.js";
226
234
  import { ActivePowerAdornment, AmpereAdornment, KiloAmpereAdornment, KilometerAdornment, MVAPowerAdornment, MicroSusceptanceAdornment, OhmAdornment, PercentageAdornment, ReactivePowerAdornment, SusceptanceAdornment, VoltageAdornment } from "./utils/constants/adornments.js";
@@ -380,7 +388,10 @@ export {
380
388
  CountriesInput,
381
389
  CountrySelectionInput,
382
390
  CountryValueEditor,
391
+ CouplingOmnibusCreation,
392
+ CouplingOmnibusForm,
383
393
  CreateParameterDialog,
394
+ CreateSwitchesDialog,
384
395
  CsvExport,
385
396
  CsvUploader,
386
397
  CustomAGGrid,
@@ -438,6 +449,7 @@ export {
438
449
  ElementSearchInput,
439
450
  ElementType,
440
451
  ElementValueEditor,
452
+ EnumInput,
441
453
  EquipmentItem,
442
454
  EquipmentType,
443
455
  EquipmentsSelectionType,
@@ -683,6 +695,7 @@ export {
683
695
  SUBSTATION_LAYOUT,
684
696
  SVAR_REGULATION_MODE_OPTIONS,
685
697
  SVC,
698
+ SWITCH_TYPE,
686
699
  SecurityAnalysisParametersDialog,
687
700
  SecurityAnalysisParametersInline,
688
701
  SelectClearable,
@@ -713,7 +726,9 @@ export {
713
726
  SubstationModificationForm,
714
727
  SusceptanceAdornment,
715
728
  SwitchInput,
729
+ SwitchKind,
716
730
  SwitchWithLabel,
731
+ SwitchesBetweenSections,
717
732
  TAB_INFO,
718
733
  TRANSFORMERS_SELECTION_TYPE,
719
734
  TWT_SPLIT_SHUNT_ADMITTANCE,
@@ -758,6 +773,7 @@ export {
758
773
  VoltageInitParametersInLine,
759
774
  VoltageInitTabValues,
760
775
  VoltageLevel,
776
+ VoltageLevelCreationForm,
761
777
  WRITE_SLACK_BUS,
762
778
  YUP_REQUIRED,
763
779
  alertThresholdMarks,
@@ -767,6 +783,7 @@ export {
767
783
  backendFetchFile,
768
784
  backendFetchJson,
769
785
  backendFetchText,
786
+ buildNewBusbarSections,
770
787
  businessErrorsEn,
771
788
  businessErrorsFr,
772
789
  cardErrorBoundaryEn,
@@ -822,6 +839,7 @@ export {
822
839
  extractErrorMessageDescriptor,
823
840
  fetchAppsMetadata,
824
841
  fetchBaseVoltages,
842
+ fetchBusBarSectionsForNewCoupler,
825
843
  fetchConfigParameter,
826
844
  fetchConfigParameters,
827
845
  fetchCsvSeparator,
@@ -859,6 +877,8 @@ export {
859
877
  getComputedLanguage,
860
878
  getConcatenatedProperties,
861
879
  getContingencyListsInfosFormSchema,
880
+ getCreateSwitchesEmptyFormData,
881
+ getCreateSwitchesValidationSchema,
862
882
  getEquipmentTypeShortLabel,
863
883
  getEquipmentsInfosForSearchBar,
864
884
  getExpertFilterEmptyFormData,
@@ -987,6 +1007,7 @@ export {
987
1007
  toNumber,
988
1008
  topBarEn,
989
1009
  topBarFr,
1010
+ translateSwitchKinds,
990
1011
  treeviewFinderEn,
991
1012
  treeviewFinderFr,
992
1013
  unitToKiloUnit,
@@ -1025,5 +1046,9 @@ export {
1025
1046
  useUniqueNameValidationFr,
1026
1047
  useValid,
1027
1048
  validateValueIsANumber,
1049
+ voltageLevelCreationDtoToForm,
1050
+ voltageLevelCreationEmptyFormData,
1051
+ voltageLevelCreationFormSchema,
1052
+ voltageLevelCreationFormToDto,
1028
1053
  yup as yupConfig
1029
1054
  };
@@ -11,7 +11,7 @@ import { fetchCurrentAnnouncement, fetchUserDetails } from "./userAdmin.js";
11
11
  import { backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./utils.js";
12
12
  import { getVoltageInitParameters, getVoltageInitUrl } from "./voltage-init.js";
13
13
  import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./short-circuit-analysis.js";
14
- import { fetchNetworkModification, updateModification } from "./networkModification.js";
14
+ import { fetchBusBarSectionsForNewCoupler, fetchNetworkModification, updateModification } from "./networkModification.js";
15
15
  import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./dynamic-margin-calculation.js";
16
16
  export {
17
17
  PREFIX_STUDY_QUERIES,
@@ -26,6 +26,7 @@ export {
26
26
  exportFilter,
27
27
  fetchAppsMetadata,
28
28
  fetchBaseVoltages,
29
+ fetchBusBarSectionsForNewCoupler,
29
30
  fetchConfigParameter,
30
31
  fetchConfigParameters,
31
32
  fetchCurrentAnnouncement,
@@ -1,5 +1,6 @@
1
1
  import { UUID } from 'node:crypto';
2
2
  export declare function fetchNetworkModification(modificationUuid: UUID): Promise<Response>;
3
+ export declare function fetchBusBarSectionsForNewCoupler(voltageLevelId: string, busBarCount: number, sectionCount: number, switchKindList: string[]): Promise<string[]>;
3
4
  export declare function updateModification({ modificationUuid, body }: {
4
5
  modificationUuid: UUID;
5
6
  body: string;
@@ -1,4 +1,4 @@
1
- import { safeEncodeURIComponent, backendFetch, backendFetchText } from "./utils.js";
1
+ import { safeEncodeURIComponent, backendFetch, backendFetchJson, backendFetchText } from "./utils.js";
2
2
  const PREFIX_NETWORK_MODIFICATION_QUERIES = `${"api/gateway"}/network-modification`;
3
3
  function getUrl() {
4
4
  return `${PREFIX_NETWORK_MODIFICATION_QUERIES}/v1/network-modifications`;
@@ -8,6 +8,19 @@ function fetchNetworkModification(modificationUuid) {
8
8
  console.debug(modificationFetchUrl);
9
9
  return backendFetch(modificationFetchUrl);
10
10
  }
11
+ function fetchBusBarSectionsForNewCoupler(voltageLevelId, busBarCount, sectionCount, switchKindList) {
12
+ console.info("Fetching bus bar sections ids for voltage level : ", voltageLevelId);
13
+ const urlSearchParams = new URLSearchParams();
14
+ urlSearchParams.append("voltageLevelId", voltageLevelId);
15
+ urlSearchParams.append("busBarCount", String(busBarCount));
16
+ urlSearchParams.append("sectionCount", String(sectionCount));
17
+ switchKindList.forEach((kind) => {
18
+ urlSearchParams.append("switchKindList", kind);
19
+ });
20
+ const url = `${PREFIX_NETWORK_MODIFICATION_QUERIES}/v1/network-modifications/busbar-sections-for-new-coupler?${urlSearchParams.toString()}`;
21
+ console.debug(url);
22
+ return backendFetchJson(url);
23
+ }
11
24
  function updateModification({ modificationUuid, body }) {
12
25
  const url = `${getUrl()}/${safeEncodeURIComponent(modificationUuid)}`;
13
26
  console.info("Updating modification", { url });
@@ -21,6 +34,7 @@ function updateModification({ modificationUuid, body }) {
21
34
  });
22
35
  }
23
36
  export {
37
+ fetchBusBarSectionsForNewCoupler,
24
38
  fetchNetworkModification,
25
39
  updateModification
26
40
  };
@@ -76,6 +76,41 @@ export declare const networkModificationsEn: {
76
76
  PropertyValue: string;
77
77
  Name: string;
78
78
  Country: string;
79
+ CreateVoltageLevel: string;
80
+ VoltageLevelCreationError: string;
81
+ SUBSTATION: string;
82
+ VoltageText: string;
83
+ NominalVoltage: string;
84
+ LowVoltageLimit: string;
85
+ HighVoltageLimit: string;
86
+ ShortCircuit: string;
87
+ LowShortCircuitCurrentLimit: string;
88
+ HighShortCircuitCurrentLimit: string;
89
+ BusBarSections: string;
90
+ BusBarCount: string;
91
+ numberOfSections: string;
92
+ SwitchesBetweenSections: string;
93
+ Coupling_Omnibus: string;
94
+ AddCoupling_Omnibus: string;
95
+ SwitchBetweenSectionsLabel: string;
96
+ BusBarSectionID1: string;
97
+ BusBarSectionID2: string;
98
+ SubstationId: string;
99
+ substationName: string;
100
+ DeleteRows: string;
101
+ validate: string;
102
+ Breaker: string;
103
+ BREAKER: string;
104
+ DISCONNECTOR: string;
105
+ Disconnector: string;
106
+ BusBarCountMustBeGreaterThanOrEqualToOne: string;
107
+ SectionCountMustBeGreaterThanOrEqualToOne: string;
108
+ mustBeGreaterOrEqualToZero: string;
109
+ CreateCouplingDeviceIdenticalBusBar: string;
110
+ CreateSubstationInVoltageLevelIdenticalId: string;
111
+ voltageLevelNominalVoltageMaxValueError: string;
112
+ ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
113
+ ShortCircuitCurrentLimitMinMaxError: string;
79
114
  DuplicatedPropsError: string;
80
115
  YupRequired: string;
81
116
  };
@@ -82,6 +82,41 @@ const networkModificationsEn = {
82
82
  PropertyValue: "Property value",
83
83
  Name: "Name",
84
84
  Country: "Country",
85
+ CreateVoltageLevel: "Create voltage level",
86
+ VoltageLevelCreationError: "Error while creating voltage level",
87
+ SUBSTATION: "Substation",
88
+ VoltageText: "Voltage",
89
+ NominalVoltage: "Nominal voltage",
90
+ LowVoltageLimit: "Low voltage limit",
91
+ HighVoltageLimit: "High voltage limit",
92
+ ShortCircuit: "Short-circuit",
93
+ LowShortCircuitCurrentLimit: "Ip min",
94
+ HighShortCircuitCurrentLimit: "Ip max",
95
+ BusBarSections: "Busbar section",
96
+ BusBarCount: "Busbar Count",
97
+ numberOfSections: "Section Count",
98
+ SwitchesBetweenSections: "Switches between sections",
99
+ Coupling_Omnibus: "Coupler",
100
+ AddCoupling_Omnibus: "Add Coupler",
101
+ SwitchBetweenSectionsLabel: "section_{index1} / section_{index2}",
102
+ BusBarSectionID1: "Bus bar section / bus 1",
103
+ BusBarSectionID2: "Bus bar section / bus 2",
104
+ SubstationId: "Substation ID",
105
+ substationName: "Substation name",
106
+ DeleteRows: "Delete",
107
+ validate: "Validate",
108
+ Breaker: "Breaker",
109
+ BREAKER: "Breaker",
110
+ DISCONNECTOR: "Disconnector",
111
+ Disconnector: "Disconnector",
112
+ BusBarCountMustBeGreaterThanOrEqualToOne: "Number of busbars must be greater than or equal to 1",
113
+ SectionCountMustBeGreaterThanOrEqualToOne: "Number of sections must be greater than or equal to 1",
114
+ mustBeGreaterOrEqualToZero: "Must be greater than or equal to 0",
115
+ CreateCouplingDeviceIdenticalBusBar: "Bus bar section / bus 1 and 2 must be different",
116
+ CreateSubstationInVoltageLevelIdenticalId: "Voltage Level ID can not match Substation ID",
117
+ voltageLevelNominalVoltageMaxValueError: "Low voltage limit must be inferior to high voltage limit",
118
+ ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Short-circuit current limit must be greater than or equal to 0",
119
+ ShortCircuitCurrentLimitMinMaxError: "Low short-circuit current limit must be less than or equal to high limit",
85
120
  [DUPLICATED_PROPS_ERROR]: "Duplicated properties: each property must be unique",
86
121
  [YUP_REQUIRED]: "This field is required"
87
122
  };
@@ -76,6 +76,41 @@ export declare const networkModificationsFr: {
76
76
  PropertyValue: string;
77
77
  Name: string;
78
78
  Country: string;
79
+ CreateVoltageLevel: string;
80
+ VoltageLevelCreationError: string;
81
+ SUBSTATION: string;
82
+ VoltageText: string;
83
+ NominalVoltage: string;
84
+ LowVoltageLimit: string;
85
+ HighVoltageLimit: string;
86
+ ShortCircuit: string;
87
+ LowShortCircuitCurrentLimit: string;
88
+ HighShortCircuitCurrentLimit: string;
89
+ BusBarSections: string;
90
+ BusBarCount: string;
91
+ numberOfSections: string;
92
+ SwitchesBetweenSections: string;
93
+ Coupling_Omnibus: string;
94
+ AddCoupling_Omnibus: string;
95
+ SwitchBetweenSectionsLabel: string;
96
+ BusBarSectionID1: string;
97
+ BusBarSectionID2: string;
98
+ SubstationId: string;
99
+ substationName: string;
100
+ DeleteRows: string;
101
+ validate: string;
102
+ Breaker: string;
103
+ BREAKER: string;
104
+ DISCONNECTOR: string;
105
+ Disconnector: string;
106
+ BusBarCountMustBeGreaterThanOrEqualToOne: string;
107
+ SectionCountMustBeGreaterThanOrEqualToOne: string;
108
+ mustBeGreaterOrEqualToZero: string;
109
+ CreateCouplingDeviceIdenticalBusBar: string;
110
+ CreateSubstationInVoltageLevelIdenticalId: string;
111
+ voltageLevelNominalVoltageMaxValueError: string;
112
+ ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: string;
113
+ ShortCircuitCurrentLimitMinMaxError: string;
79
114
  DuplicatedPropsError: string;
80
115
  YupRequired: string;
81
116
  };
@@ -82,6 +82,41 @@ const networkModificationsFr = {
82
82
  PropertyValue: "Valeur de la propriété",
83
83
  Name: "Nom",
84
84
  Country: "Pays",
85
+ CreateVoltageLevel: "Créer un poste",
86
+ VoltageLevelCreationError: "Erreur lors de la création d'un poste",
87
+ SUBSTATION: "Site",
88
+ VoltageText: "Tension",
89
+ NominalVoltage: "Tension nominale",
90
+ LowVoltageLimit: "Limite de tension basse",
91
+ HighVoltageLimit: "Limite de tension haute",
92
+ ShortCircuit: "Court-circuit",
93
+ LowShortCircuitCurrentLimit: "Ip min",
94
+ HighShortCircuitCurrentLimit: "Ip max",
95
+ BusBarSections: "Section de jeu de barres",
96
+ BusBarCount: "Nb de barres",
97
+ numberOfSections: "Nb de sections",
98
+ SwitchesBetweenSections: "OCs entre sections",
99
+ Coupling_Omnibus: "Couplage / omnibus",
100
+ AddCoupling_Omnibus: "Ajouter couplage / omnibus",
101
+ SwitchBetweenSectionsLabel: "section_{index1} / section_{index2}",
102
+ BusBarSectionID1: "SJB / Nœud 1",
103
+ BusBarSectionID2: "SJB / Nœud 2",
104
+ SubstationId: "ID Site",
105
+ substationName: "Nom du site",
106
+ DeleteRows: "Supprimer",
107
+ validate: "Valider",
108
+ Breaker: "Disjoncteur",
109
+ BREAKER: "Disjoncteur",
110
+ DISCONNECTOR: "Sectionneur",
111
+ Disconnector: "Sectionneur",
112
+ BusBarCountMustBeGreaterThanOrEqualToOne: "Un nombre de barres doit être supérieur ou égal à 1",
113
+ SectionCountMustBeGreaterThanOrEqualToOne: "Un nombre de sections doit être supérieur ou égal à 1",
114
+ mustBeGreaterOrEqualToZero: "Cette valeur doit être supérieure ou égale à 0",
115
+ CreateCouplingDeviceIdenticalBusBar: "Les SJB / Nœuds 1 et 2 doivent être différents",
116
+ CreateSubstationInVoltageLevelIdenticalId: "L'ID du poste doit être différent de celui du site",
117
+ voltageLevelNominalVoltageMaxValueError: "La limite de tension basse doit être inférieure à celle de tension haute",
118
+ ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero: "Une limite d'ICC doit être supérieure ou égale à 0",
119
+ ShortCircuitCurrentLimitMinMaxError: "La limite ICC min doit être inférieure ou égale à la limite ICC max",
85
120
  [DUPLICATED_PROPS_ERROR]: "Propriétés dupliquées : chaque propriété doit être unique",
86
121
  [YUP_REQUIRED]: "Ce champ doit être renseigné"
87
122
  };
@@ -51,5 +51,26 @@ export declare enum FieldConstants {
51
51
  STUDY_NAME = "studyName",
52
52
  VALUE = "value",
53
53
  VALUE_1 = "value1",
54
- VALUE_2 = "value2"
54
+ VALUE_2 = "value2",
55
+ SWITCH_KINDS = "switchKinds",
56
+ SWITCH_KIND = "switchKind",
57
+ ADD_SUBSTATION_CREATION = "addSubstationCreationId",
58
+ BUS_BAR_COUNT = "busbarCount",
59
+ BUS_BAR_SECTION_ID1 = "busbarSectionId1",
60
+ BUS_BAR_SECTION_ID2 = "busbarSectionId2",
61
+ COUPLING_OMNIBUS = "couplingOmnibus",
62
+ HIDE_BUS_BAR_SECTION = "hideBusBarSection",
63
+ HIDE_NOMINAL_VOLTAGE = "hideNominalVoltage",
64
+ HIGH_SHORT_CIRCUIT_CURRENT_LIMIT = "highShortCircuitCurrentLimit",
65
+ HIGH_VOLTAGE_LIMIT = "highVoltageLimit",
66
+ LOW_SHORT_CIRCUIT_CURRENT_LIMIT = "lowShortCircuitCurrentLimit",
67
+ LOW_VOLTAGE_LIMIT = "lowVoltageLimit",
68
+ NOMINAL_V = "nominalV",
69
+ SUBSTATION_CREATION = "substationCreation",
70
+ SUBSTATION_CREATION_ID = "substationCreationId",
71
+ SUBSTATION_ID = "substationId",
72
+ SUBSTATION_NAME = "substationName",
73
+ SWITCHES_BETWEEN_SECTIONS = "switchesBetweenSections",
74
+ TOPOLOGY_KIND = "topologyKind",
75
+ SECTION_COUNT = "sectionCount"
55
76
  }
@@ -46,6 +46,27 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
46
46
  FieldConstants2["VALUE"] = "value";
47
47
  FieldConstants2["VALUE_1"] = "value1";
48
48
  FieldConstants2["VALUE_2"] = "value2";
49
+ FieldConstants2["SWITCH_KINDS"] = "switchKinds";
50
+ FieldConstants2["SWITCH_KIND"] = "switchKind";
51
+ FieldConstants2["ADD_SUBSTATION_CREATION"] = "addSubstationCreationId";
52
+ FieldConstants2["BUS_BAR_COUNT"] = "busbarCount";
53
+ FieldConstants2["BUS_BAR_SECTION_ID1"] = "busbarSectionId1";
54
+ FieldConstants2["BUS_BAR_SECTION_ID2"] = "busbarSectionId2";
55
+ FieldConstants2["COUPLING_OMNIBUS"] = "couplingOmnibus";
56
+ FieldConstants2["HIDE_BUS_BAR_SECTION"] = "hideBusBarSection";
57
+ FieldConstants2["HIDE_NOMINAL_VOLTAGE"] = "hideNominalVoltage";
58
+ FieldConstants2["HIGH_SHORT_CIRCUIT_CURRENT_LIMIT"] = "highShortCircuitCurrentLimit";
59
+ FieldConstants2["HIGH_VOLTAGE_LIMIT"] = "highVoltageLimit";
60
+ FieldConstants2["LOW_SHORT_CIRCUIT_CURRENT_LIMIT"] = "lowShortCircuitCurrentLimit";
61
+ FieldConstants2["LOW_VOLTAGE_LIMIT"] = "lowVoltageLimit";
62
+ FieldConstants2["NOMINAL_V"] = "nominalV";
63
+ FieldConstants2["SUBSTATION_CREATION"] = "substationCreation";
64
+ FieldConstants2["SUBSTATION_CREATION_ID"] = "substationCreationId";
65
+ FieldConstants2["SUBSTATION_ID"] = "substationId";
66
+ FieldConstants2["SUBSTATION_NAME"] = "substationName";
67
+ FieldConstants2["SWITCHES_BETWEEN_SECTIONS"] = "switchesBetweenSections";
68
+ FieldConstants2["TOPOLOGY_KIND"] = "topologyKind";
69
+ FieldConstants2["SECTION_COUNT"] = "sectionCount";
49
70
  return FieldConstants2;
50
71
  })(FieldConstants || {});
51
72
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.176.0",
3
+ "version": "0.178.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",