@gridsuite/commons-ui 0.64.4 → 0.64.6

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 (27) hide show
  1. package/dist/components/translations/common-button-en.d.ts +2 -0
  2. package/dist/components/translations/common-button-en.js +3 -1
  3. package/dist/components/translations/common-button-fr.d.ts +2 -0
  4. package/dist/components/translations/common-button-fr.js +3 -1
  5. package/dist/components/translations/csv-en.d.ts +16 -0
  6. package/dist/components/translations/csv-en.js +12 -0
  7. package/dist/components/translations/csv-fr.d.ts +16 -0
  8. package/dist/components/translations/csv-fr.js +12 -0
  9. package/dist/components/translations/description-en.d.ts +13 -0
  10. package/dist/components/translations/description-en.js +9 -0
  11. package/dist/components/translations/description-fr.d.ts +13 -0
  12. package/dist/components/translations/description-fr.js +9 -0
  13. package/dist/components/translations/equipments-en.d.ts +27 -0
  14. package/dist/components/translations/equipments-en.js +23 -0
  15. package/dist/components/translations/equipments-fr.d.ts +27 -0
  16. package/dist/components/translations/equipments-fr.js +23 -0
  17. package/dist/components/translations/filter-en.d.ts +29 -0
  18. package/dist/components/translations/filter-en.js +30 -1
  19. package/dist/components/translations/filter-expert-en.d.ts +10 -0
  20. package/dist/components/translations/filter-expert-en.js +11 -1
  21. package/dist/components/translations/filter-expert-fr.d.ts +10 -0
  22. package/dist/components/translations/filter-expert-fr.js +11 -1
  23. package/dist/components/translations/filter-fr.d.ts +29 -0
  24. package/dist/components/translations/filter-fr.js +30 -1
  25. package/dist/index.d.ts +7 -0
  26. package/dist/index.js +114 -100
  27. package/package.json +1 -1
@@ -7,5 +7,7 @@
7
7
  declare const commonButtonEn: {
8
8
  cancel: string;
9
9
  validate: string;
10
+ 'button.changeType': string;
11
+ 'button.changeOperator': string;
10
12
  };
11
13
  export default commonButtonEn;
@@ -1,6 +1,8 @@
1
1
  const commonButtonEn = {
2
2
  cancel: "Cancel",
3
- validate: "Validate"
3
+ validate: "Validate",
4
+ "button.changeType": "Change",
5
+ "button.changeOperator": "Change"
4
6
  };
5
7
  export {
6
8
  commonButtonEn as default
@@ -7,5 +7,7 @@
7
7
  declare const commonButtonFr: {
8
8
  cancel: string;
9
9
  validate: string;
10
+ 'button.changeType': string;
11
+ 'button.changeOperator': string;
10
12
  };
11
13
  export default commonButtonFr;
@@ -1,6 +1,8 @@
1
1
  const commonButtonFr = {
2
2
  cancel: "Annuler",
3
- validate: "Valider"
3
+ validate: "Valider",
4
+ "button.changeType": "Modifier",
5
+ "button.changeOperator": "Modifier"
4
6
  };
5
7
  export {
6
8
  commonButtonFr as default
@@ -0,0 +1,16 @@
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
+ declare const csvEn: {
8
+ ImportCSV: string;
9
+ noDataInCsvFile: string;
10
+ wrongCsvHeadersError: string;
11
+ keepCSVDataMessage: string;
12
+ GenerateCSV: string;
13
+ UploadCSV: string;
14
+ uploadMessage: string;
15
+ };
16
+ export default csvEn;
@@ -0,0 +1,12 @@
1
+ const csvEn = {
2
+ ImportCSV: "Import CSV",
3
+ noDataInCsvFile: "No data found in this file",
4
+ wrongCsvHeadersError: "This CSV file has the wrong headers. Use Generate CSV Skeleton button to get supported CSV format",
5
+ keepCSVDataMessage: "Do you want to replace or add the new data to the current list ?",
6
+ GenerateCSV: "Generate CSV skeleton",
7
+ UploadCSV: "Upload CSV",
8
+ uploadMessage: " No file selected"
9
+ };
10
+ export {
11
+ csvEn as default
12
+ };
@@ -0,0 +1,16 @@
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
+ declare const csvFr: {
8
+ ImportCSV: string;
9
+ noDataInCsvFile: string;
10
+ wrongCsvHeadersError: string;
11
+ keepCSVDataMessage: string;
12
+ GenerateCSV: string;
13
+ UploadCSV: string;
14
+ uploadMessage: string;
15
+ };
16
+ export default csvFr;
@@ -0,0 +1,12 @@
1
+ const csvFr = {
2
+ ImportCSV: "Import CSV",
3
+ noDataInCsvFile: "Aucune donnée trouvée dans ce fichier",
4
+ wrongCsvHeadersError: "Les en-têtes du fichier CSV sont incorrects. Utilisez le bouton Générer le squelette CSV pour obtenir le format CSV pris en charge",
5
+ keepCSVDataMessage: "Voulez-vous remplacer la liste existante ou y ajouter les nouvelles données ?",
6
+ GenerateCSV: "Générer le squelette CSV",
7
+ UploadCSV: "Télécharger le CSV",
8
+ uploadMessage: " Aucun fichier sélectionné"
9
+ };
10
+ export {
11
+ csvFr as default
12
+ };
@@ -0,0 +1,13 @@
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
+ declare const descriptionEn: {
8
+ description: string;
9
+ descriptionProperty: string;
10
+ descriptionModificationError: string;
11
+ descriptionLimitError: string;
12
+ };
13
+ export default descriptionEn;
@@ -0,0 +1,9 @@
1
+ const descriptionEn = {
2
+ description: "Description",
3
+ descriptionProperty: "Description (optional)",
4
+ descriptionModificationError: "An error occurred while editing the description",
5
+ descriptionLimitError: "Description exceeds character limit"
6
+ };
7
+ export {
8
+ descriptionEn as default
9
+ };
@@ -0,0 +1,13 @@
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
+ declare const descriptionFr: {
8
+ description: string;
9
+ descriptionProperty: string;
10
+ descriptionModificationError: string;
11
+ descriptionLimitError: string;
12
+ };
13
+ export default descriptionFr;
@@ -0,0 +1,9 @@
1
+ const descriptionFr = {
2
+ description: "Description",
3
+ descriptionProperty: "Description (optionnel)",
4
+ descriptionModificationError: "Erreur lors de la modification de la description",
5
+ descriptionLimitError: "La description dépasse la limite de caractères"
6
+ };
7
+ export {
8
+ descriptionFr as default
9
+ };
@@ -0,0 +1,27 @@
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
+ declare const equipmentsEn: {
8
+ Substations: string;
9
+ VoltageLevels: string;
10
+ Lines: string;
11
+ TwoWindingsTransformers: string;
12
+ ThreeWindingsTransformers: string;
13
+ Generators: string;
14
+ Loads: string;
15
+ Batteries: string;
16
+ ShuntCompensators: string;
17
+ Hydro: string;
18
+ Nuclear: string;
19
+ Wind: string;
20
+ Thermal: string;
21
+ Solar: string;
22
+ Other: string;
23
+ LccConverterStations: string;
24
+ VscConverterStations: string;
25
+ StaticVarCompensators: string;
26
+ };
27
+ export default equipmentsEn;
@@ -0,0 +1,23 @@
1
+ const equipmentsEn = {
2
+ Substations: "Substations",
3
+ VoltageLevels: "Voltage levels",
4
+ Lines: "Lines",
5
+ TwoWindingsTransformers: "Two windings transformers",
6
+ ThreeWindingsTransformers: "Three windings transformers",
7
+ Generators: "Generators",
8
+ Loads: "Loads",
9
+ Batteries: "Batteries",
10
+ ShuntCompensators: "Shunt compensators",
11
+ Hydro: "Hydro",
12
+ Nuclear: "Nuclear",
13
+ Wind: "Wind",
14
+ Thermal: "Thermal",
15
+ Solar: "Solar",
16
+ Other: "Other",
17
+ LccConverterStations: "LCC converter stations",
18
+ VscConverterStations: "VSC converter stations",
19
+ StaticVarCompensators: "Static var compensators"
20
+ };
21
+ export {
22
+ equipmentsEn as default
23
+ };
@@ -0,0 +1,27 @@
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
+ declare const equipmentsFr: {
8
+ Substations: string;
9
+ VoltageLevels: string;
10
+ Lines: string;
11
+ TwoWindingsTransformers: string;
12
+ ThreeWindingsTransformers: string;
13
+ Generators: string;
14
+ Loads: string;
15
+ Batteries: string;
16
+ ShuntCompensators: string;
17
+ Hydro: string;
18
+ Nuclear: string;
19
+ Wind: string;
20
+ Thermal: string;
21
+ Solar: string;
22
+ Other: string;
23
+ LccConverterStations: string;
24
+ VscConverterStations: string;
25
+ StaticVarCompensators: string;
26
+ };
27
+ export default equipmentsFr;
@@ -0,0 +1,23 @@
1
+ const equipmentsFr = {
2
+ Substations: "Sites",
3
+ VoltageLevels: "Postes",
4
+ Lines: "Lignes",
5
+ TwoWindingsTransformers: "Transfos à 2 enroulements",
6
+ ThreeWindingsTransformers: "Transfos à 3 enroulements",
7
+ Generators: "Groupes",
8
+ Loads: "Consommations",
9
+ Batteries: "Batteries",
10
+ ShuntCompensators: "Moyens de compensation",
11
+ Hydro: "Hydraulique",
12
+ Nuclear: "Nucléaire",
13
+ Wind: "Eolien",
14
+ Thermal: "Thermique",
15
+ Solar: "Solaire",
16
+ Other: "Autre",
17
+ LccConverterStations: "Stations de conversion LCC",
18
+ VscConverterStations: "Stations de conversion VSC",
19
+ StaticVarCompensators: "CSPR"
20
+ };
21
+ export {
22
+ equipmentsFr as default
23
+ };
@@ -25,5 +25,34 @@ declare const filterEn: {
25
25
  betweenRule: string;
26
26
  emptyGroup: string;
27
27
  Hvdc: string;
28
+ 'filter.criteriaBased': string;
29
+ 'filter.expert': string;
30
+ 'filter.explicitNaming': string;
31
+ nameEmpty: string;
32
+ equipmentType: string;
33
+ changeTypeMessage: string;
34
+ PropertyValues: string;
35
+ PropertyValues1: string;
36
+ PropertyValues2: string;
37
+ FreePropsCrit: string;
38
+ AddFreePropCrit: string;
39
+ FreeProps: string;
40
+ SubstationFreeProps: string;
41
+ YupRequired: string;
42
+ filterPropertiesNameUniquenessError: string;
43
+ emptyFilterError: string;
44
+ distributionKeyWithMissingIdError: string;
45
+ missingDistributionKeyError: string;
46
+ filterCsvFileName: string;
47
+ createNewFilter: string;
48
+ nameProperty: string;
49
+ Countries: string;
50
+ Countries1: string;
51
+ Countries2: string;
52
+ nominalVoltage: string;
53
+ EnergySourceText: string;
54
+ nameAlreadyUsed: string;
55
+ nameValidityCheckErrorMsg: string;
56
+ cantSubmitWhileValidating: string;
28
57
  };
29
58
  export default filterEn;
@@ -18,7 +18,36 @@ const filterEn = {
18
18
  obsoleteFilter: "This filter is no longer supported. Please remove it or change its equipment type.",
19
19
  betweenRule: "Left value of 'between' rule have to be lower than the right value",
20
20
  emptyGroup: "Filter contains an empty group. Consider removing it or adding rules to this group",
21
- Hvdc: "HVDC"
21
+ Hvdc: "HVDC",
22
+ "filter.criteriaBased": "Criteria based",
23
+ "filter.expert": "Expert",
24
+ "filter.explicitNaming": "Explicit naming",
25
+ nameEmpty: "The name is empty",
26
+ equipmentType: "Equipment type",
27
+ changeTypeMessage: "The equipment type will be changed and the current configuration will be erased.",
28
+ PropertyValues: "Property values",
29
+ PropertyValues1: "Property values 1",
30
+ PropertyValues2: "Property values 2",
31
+ FreePropsCrit: "By properties filtering",
32
+ AddFreePropCrit: "Add a filtering by property",
33
+ FreeProps: "Equipment properties",
34
+ SubstationFreeProps: "Equipment substation properties",
35
+ YupRequired: "This field is required",
36
+ filterPropertiesNameUniquenessError: "It is not possible to add multiple filters for the same property",
37
+ emptyFilterError: "Filter should contain at least one equipment",
38
+ distributionKeyWithMissingIdError: "Missing ID with defined distribution key",
39
+ missingDistributionKeyError: "Missing distribution key",
40
+ filterCsvFileName: "filterCreation",
41
+ createNewFilter: "Create a filter",
42
+ nameProperty: "Name",
43
+ Countries: "Countries",
44
+ Countries1: "Countries 1",
45
+ Countries2: "Countries 2",
46
+ nominalVoltage: "Nominal voltage",
47
+ EnergySourceText: "Energy source",
48
+ nameAlreadyUsed: "This name is already used",
49
+ nameValidityCheckErrorMsg: "Error while checking name validity",
50
+ cantSubmitWhileValidating: "Impossible to submit the form while validating a field"
22
51
  };
23
52
  export {
24
53
  filterEn as default
@@ -176,5 +176,15 @@ declare const filterExpertEn: {
176
176
  shuntSusceptance2: string;
177
177
  pairingKey: string;
178
178
  tieLineId: string;
179
+ cannotRetrieveFilter: string;
180
+ equality: string;
181
+ notEquality: string;
182
+ greaterThan: string;
183
+ greaterOrEqual: string;
184
+ lessThan: string;
185
+ lessOrEqual: string;
186
+ YupNotTypeNumber: string;
187
+ YupNotTypeDefault: string;
188
+ changeOperatorMessage: string;
179
189
  };
180
190
  export default filterExpertEn;
@@ -169,7 +169,17 @@ const filterExpertEn = {
169
169
  shuntConductance2: "Shunt conductance 2 (μS)",
170
170
  shuntSusceptance2: "Shunt susceptance 2 (μS)",
171
171
  pairingKey: "Xnode",
172
- tieLineId: "Tie line ID"
172
+ tieLineId: "Tie line ID",
173
+ cannotRetrieveFilter: "Could not retrieve filter: ",
174
+ equality: "=",
175
+ notEquality: "!=",
176
+ greaterThan: ">",
177
+ greaterOrEqual: ">=",
178
+ lessThan: "<",
179
+ lessOrEqual: "<=",
180
+ YupNotTypeNumber: "This field only accepts numeric values",
181
+ YupNotTypeDefault: "Field value format is incorrect",
182
+ changeOperatorMessage: "The operator will be changed and will be applied to all the rules already created in the group."
173
183
  };
174
184
  export {
175
185
  filterExpertEn as default
@@ -176,5 +176,15 @@ declare const filterExpertFr: {
176
176
  shuntSusceptance2: string;
177
177
  pairingKey: string;
178
178
  tieLineId: string;
179
+ cannotRetrieveFilter: string;
180
+ equality: string;
181
+ notEquality: string;
182
+ greaterThan: string;
183
+ greaterOrEqual: string;
184
+ lessThan: string;
185
+ lessOrEqual: string;
186
+ YupNotTypeNumber: string;
187
+ YupNotTypeDefault: string;
188
+ changeOperatorMessage: string;
179
189
  };
180
190
  export default filterExpertFr;
@@ -169,7 +169,17 @@ const filterExpertFr = {
169
169
  shuntConductance2: "Conductance parallèle 2 (μS)",
170
170
  shuntSusceptance2: "Susceptance parallèle 2 (μS)",
171
171
  pairingKey: "Xnode",
172
- tieLineId: "ID de l'interconnexion"
172
+ tieLineId: "ID de l'interconnexion",
173
+ cannotRetrieveFilter: "Erreur d'accès au filtre : ",
174
+ equality: "=",
175
+ notEquality: "!=",
176
+ greaterThan: ">",
177
+ greaterOrEqual: ">=",
178
+ lessThan: "<",
179
+ lessOrEqual: "<=",
180
+ YupNotTypeNumber: "Ce champ n'accepte que des valeurs numériques",
181
+ YupNotTypeDefault: "La valeur du champ n'est pas au bon format",
182
+ changeOperatorMessage: "L'opérateur sera modifié et s'appliquera sur toutes les règles déjà créées dans le groupe."
173
183
  };
174
184
  export {
175
185
  filterExpertFr as default
@@ -25,5 +25,34 @@ declare const filterFr: {
25
25
  betweenRule: string;
26
26
  emptyGroup: string;
27
27
  Hvdc: string;
28
+ 'filter.criteriaBased': string;
29
+ 'filter.expert': string;
30
+ 'filter.explicitNaming': string;
31
+ nameEmpty: string;
32
+ equipmentType: string;
33
+ changeTypeMessage: string;
34
+ PropertyValues: string;
35
+ PropertyValues1: string;
36
+ PropertyValues2: string;
37
+ FreePropsCrit: string;
38
+ AddFreePropCrit: string;
39
+ FreeProps: string;
40
+ SubstationFreeProps: string;
41
+ YupRequired: string;
42
+ filterPropertiesNameUniquenessError: string;
43
+ emptyFilterError: string;
44
+ distributionKeyWithMissingIdError: string;
45
+ missingDistributionKeyError: string;
46
+ filterCsvFileName: string;
47
+ createNewFilter: string;
48
+ nameProperty: string;
49
+ Countries: string;
50
+ Countries1: string;
51
+ Countries2: string;
52
+ nominalVoltage: string;
53
+ EnergySourceText: string;
54
+ nameAlreadyUsed: string;
55
+ nameValidityCheckErrorMsg: string;
56
+ cantSubmitWhileValidating: string;
28
57
  };
29
58
  export default filterFr;
@@ -18,7 +18,36 @@ const filterFr = {
18
18
  obsoleteFilter: "Ce filtre n'est plus supporté. Veuillez le supprimer ou changer son type d'équipement.",
19
19
  betweenRule: "La valeur de gauche d'une règle 'entre' doit être inférieure à la valeur de droite",
20
20
  emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe",
21
- Hvdc: "HVDC"
21
+ Hvdc: "HVDC",
22
+ "filter.criteriaBased": "Par critères",
23
+ "filter.expert": "Expert",
24
+ "filter.explicitNaming": "Par nommage",
25
+ nameEmpty: "Le nom est vide",
26
+ equipmentType: "Type d'ouvrage",
27
+ changeTypeMessage: "Le type d'ouvrage sera modifié et la configuration actuelle sera perdue.",
28
+ PropertyValues: "Valeurs de la propriété",
29
+ PropertyValues1: "Valeurs de la propriété 1",
30
+ PropertyValues2: "Valeurs de la propriété 2",
31
+ FreePropsCrit: "Filtrage par propriétés",
32
+ AddFreePropCrit: "Ajouter un filtrage par propriété",
33
+ FreeProps: "Propriétés de l'ouvrage",
34
+ SubstationFreeProps: "Propriétés du site de l'ouvrage",
35
+ YupRequired: "Ce champ doit être renseigné",
36
+ filterPropertiesNameUniquenessError: "Il n'est pas possible d'ajouter plusieurs filtres pour la même propriété",
37
+ emptyFilterError: "Le filtre doit contenir au moins un ouvrage",
38
+ distributionKeyWithMissingIdError: "ID manquant avec une clé de répartition définie",
39
+ missingDistributionKeyError: "Clé de répartition manquante",
40
+ filterCsvFileName: "creationFiltre",
41
+ createNewFilter: "Créer un filtre",
42
+ nameProperty: "Nom",
43
+ Countries: "Pays",
44
+ Countries1: "Pays 1",
45
+ Countries2: "Pays 2",
46
+ nominalVoltage: "Tension nominale",
47
+ EnergySourceText: "Source d'énergie",
48
+ nameAlreadyUsed: "Ce nom est déjà utilisé",
49
+ nameValidityCheckErrorMsg: "Erreur lors de la vérification de la validité du nom",
50
+ cantSubmitWhileValidating: "Impossible de soumettre le formulaire durant la validation d'un champ"
22
51
  };
23
52
  export {
24
53
  filterFr as default
package/dist/index.d.ts CHANGED
@@ -84,6 +84,12 @@ export { default as filter_en } from './components/translations/filter-en';
84
84
  export { default as filter_fr } from './components/translations/filter-fr';
85
85
  export { default as filter_expert_en } from './components/translations/filter-expert-en';
86
86
  export { default as filter_expert_fr } from './components/translations/filter-expert-fr';
87
+ export { default as description_fr } from './components/translations/description-fr';
88
+ export { default as description_en } from './components/translations/description-en';
89
+ export { default as equipments_fr } from './components/translations/equipments-fr';
90
+ export { default as equipments_en } from './components/translations/equipments-en';
91
+ export { default as csv_fr } from './components/translations/csv-fr';
92
+ export { default as csv_en } from './components/translations/csv-en';
87
93
  export { default as card_error_boundary_en } from './components/translations/card-error-boundary-en';
88
94
  export { default as card_error_boundary_fr } from './components/translations/card-error-boundary-fr';
89
95
  export { default as flat_parameters_en } from './components/translations/flat-parameters-en';
@@ -104,6 +110,7 @@ export { useSnackMessage } from './hooks/useSnackMessage';
104
110
  export { default as useDebounce } from './hooks/useDebounce';
105
111
  export { default as usePrevious } from './hooks/usePrevious';
106
112
  export { default as useConfidentialityWarning } from './hooks/useConfidentialityWarning';
113
+ export { default as usePredefinedProperties } from './hooks/predefined-properties-hook';
107
114
  export { default as SelectClearable } from './components/inputs/select-clearable';
108
115
  export type { SelectClearableProps } from './components/inputs/select-clearable';
109
116
  export { default as useCustomFormContext } from './components/inputs/react-hook-form/provider/use-custom-form-context';
package/dist/index.js CHANGED
@@ -60,63 +60,70 @@ import { default as default39 } from "./components/translations/filter-en.js";
60
60
  import { default as default40 } from "./components/translations/filter-fr.js";
61
61
  import { default as default41 } from "./components/translations/filter-expert-en.js";
62
62
  import { default as default42 } from "./components/translations/filter-expert-fr.js";
63
- import { default as default43 } from "./components/translations/card-error-boundary-en.js";
64
- import { default as default44 } from "./components/translations/card-error-boundary-fr.js";
65
- import { default as default45 } from "./components/translations/flat-parameters-en.js";
66
- import { default as default46 } from "./components/translations/flat-parameters-fr.js";
67
- import { default as default47 } from "./components/translations/multiple-selection-dialog-en.js";
68
- import { default as default48 } from "./components/translations/multiple-selection-dialog-fr.js";
69
- import { default as default49 } from "./components/translations/common-button-en.js";
70
- import { default as default50 } from "./components/translations/common-button-fr.js";
71
- import { default as default51 } from "./components/translations/directory-items-input-en.js";
72
- import { default as default52 } from "./components/translations/directory-items-input-fr.js";
63
+ import { default as default43 } from "./components/translations/description-fr.js";
64
+ import { default as default44 } from "./components/translations/description-en.js";
65
+ import { default as default45 } from "./components/translations/equipments-fr.js";
66
+ import { default as default46 } from "./components/translations/equipments-en.js";
67
+ import { default as default47 } from "./components/translations/csv-fr.js";
68
+ import { default as default48 } from "./components/translations/csv-en.js";
69
+ import { default as default49 } from "./components/translations/card-error-boundary-en.js";
70
+ import { default as default50 } from "./components/translations/card-error-boundary-fr.js";
71
+ import { default as default51 } from "./components/translations/flat-parameters-en.js";
72
+ import { default as default52 } from "./components/translations/flat-parameters-fr.js";
73
+ import { default as default53 } from "./components/translations/multiple-selection-dialog-en.js";
74
+ import { default as default54 } from "./components/translations/multiple-selection-dialog-fr.js";
75
+ import { default as default55 } from "./components/translations/common-button-en.js";
76
+ import { default as default56 } from "./components/translations/common-button-fr.js";
77
+ import { default as default57 } from "./components/translations/directory-items-input-en.js";
78
+ import { default as default58 } from "./components/translations/directory-items-input-fr.js";
73
79
  import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
74
- import { default as default53 } from "./components/CardErrorBoundary/card-error-boundary.js";
75
- import { default as default54 } from "./hooks/useIntlRef.js";
80
+ import { default as default59 } from "./components/CardErrorBoundary/card-error-boundary.js";
81
+ import { default as default60 } from "./hooks/useIntlRef.js";
76
82
  import { useSnackMessage } from "./hooks/useSnackMessage.js";
77
- import { default as default55 } from "./hooks/useDebounce.js";
83
+ import { default as default61 } from "./hooks/useDebounce.js";
78
84
  import { usePrevious } from "./hooks/usePrevious.js";
79
- import { default as default56 } from "./hooks/useConfidentialityWarning.js";
80
- import { default as default57 } from "./components/inputs/select-clearable.js";
81
- import { default as default58 } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
82
- import { default as default59 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
83
- import { default as default60 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
84
- import { default as default61 } from "./components/inputs/react-hook-form/text-input.js";
85
- import { default as default62 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
86
- import { default as default63 } from "./components/inputs/react-hook-form/radio-input.js";
87
- import { default as default64 } from "./components/inputs/react-hook-form/slider-input.js";
88
- import { default as default65 } from "./components/inputs/react-hook-form/numbers/float-input.js";
89
- import { default as default66 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
90
- import { default as default67 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
91
- import { default as default68 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
92
- import { default as default69 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
93
- import { default as default70 } from "./components/inputs/react-hook-form/error-management/error-input.js";
94
- import { default as default71 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
95
- import { default as default72 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
96
- import { default as default73 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
97
- import { default as default74 } from "./components/inputs/react-hook-form/utils/field-label.js";
98
- import { default as default75 } from "./components/inputs/react-hook-form/utils/submit-button.js";
99
- import { default as default76 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
85
+ import { default as default62 } from "./hooks/useConfidentialityWarning.js";
86
+ import { default as default63 } from "./hooks/predefined-properties-hook.js";
87
+ import { default as default64 } from "./components/inputs/select-clearable.js";
88
+ import { default as default65 } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
89
+ import { default as default66 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
90
+ import { default as default67 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
91
+ import { default as default68 } from "./components/inputs/react-hook-form/text-input.js";
92
+ import { default as default69 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
93
+ import { default as default70 } from "./components/inputs/react-hook-form/radio-input.js";
94
+ import { default as default71 } from "./components/inputs/react-hook-form/slider-input.js";
95
+ import { default as default72 } from "./components/inputs/react-hook-form/numbers/float-input.js";
96
+ import { default as default73 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
97
+ import { default as default74 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
98
+ import { default as default75 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
99
+ import { default as default76 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
100
+ import { default as default77 } from "./components/inputs/react-hook-form/error-management/error-input.js";
101
+ import { default as default78 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
102
+ import { default as default79 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
103
+ import { default as default80 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
104
+ import { default as default81 } from "./components/inputs/react-hook-form/utils/field-label.js";
105
+ import { default as default82 } from "./components/inputs/react-hook-form/utils/submit-button.js";
106
+ import { default as default83 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
100
107
  import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/inputs/react-hook-form/utils/functions.js";
101
108
  import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
102
- import { default as default77 } from "./components/inputs/react-hook-form/directory-items-input.js";
103
- import { default as default78 } from "./components/DirectoryItemSelector/directory-item-selector.js";
104
- import { default as default79 } from "./components/CustomAGGrid/custom-aggrid.js";
105
- import { default as default80 } from "./components/inputs/react-hook-form/raw-read-only-input.js";
106
- import { default as default81 } from "./components/filter/filter-creation-dialog.js";
107
- import { default as default82 } from "./components/filter/expert/expert-filter-edition-dialog.js";
108
- import { default as default83 } from "./components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js";
109
- import { default as default84 } from "./components/filter/criteria-based/criteria-based-filter-edition-dialog.js";
109
+ import { default as default84 } from "./components/inputs/react-hook-form/directory-items-input.js";
110
+ import { default as default85 } from "./components/DirectoryItemSelector/directory-item-selector.js";
111
+ import { default as default86 } from "./components/CustomAGGrid/custom-aggrid.js";
112
+ import { default as default87 } from "./components/inputs/react-hook-form/raw-read-only-input.js";
113
+ import { default as default88 } from "./components/filter/filter-creation-dialog.js";
114
+ import { default as default89 } from "./components/filter/expert/expert-filter-edition-dialog.js";
115
+ import { default as default90 } from "./components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js";
116
+ import { default as default91 } from "./components/filter/criteria-based/criteria-based-filter-edition-dialog.js";
110
117
  import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filter-api.js";
111
- import { DEFAULT_RANGE_VALUE, default as default85, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
112
- import { default as default86 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
113
- import { default as default87 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
114
- import { default as default88 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
118
+ import { DEFAULT_RANGE_VALUE, default as default92, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
119
+ import { default as default93 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
120
+ import { default as default94 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
121
+ import { default as default95 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
115
122
  import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/localized-countries-hook.js";
116
- import { default as default89 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
117
- import { default as default90 } from "./components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js";
118
- import { default as default91 } from "./components/inputs/react-hook-form/unique-name-input.js";
119
- import { default as default92 } from "./utils/UserManagerMock.js";
123
+ import { default as default96 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
124
+ import { default as default97 } from "./components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js";
125
+ import { default as default98 } from "./components/inputs/react-hook-form/unique-name-input.js";
126
+ import { default as default99 } from "./utils/UserManagerMock.js";
120
127
  import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/filter/utils/filter-form-utils.js";
121
128
  import { getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/criteria-based/criteria-based-filter-utils.js";
122
129
  import { setCommonStore } from "./redux/commonStore.js";
@@ -129,23 +136,23 @@ import * as yup from "yup";
129
136
  export {
130
137
  default4 as AboutDialog,
131
138
  default6 as AuthenticationRouter,
132
- default60 as AutocompleteInput,
139
+ default67 as AutocompleteInput,
133
140
  Battery,
134
141
  default20 as BottomRightButtons,
135
142
  BusBar,
136
143
  CONTINGENCY_LIST_EQUIPMENTS,
137
- default76 as CancelButton,
138
- default53 as CardErrorBoundary,
144
+ default83 as CancelButton,
145
+ default59 as CardErrorBoundary,
139
146
  ChangeWays,
140
- default68 as CheckboxInput,
147
+ default75 as CheckboxInput,
141
148
  CheckboxList,
142
- default88 as CountriesInput,
143
- default84 as CriteriaBasedFilterEditionDialog,
149
+ default95 as CountriesInput,
150
+ default91 as CriteriaBasedFilterEditionDialog,
144
151
  default18 as CriteriaBasedForm,
145
- default90 as CsvUploader,
146
- default79 as CustomAGGrid,
152
+ default97 as CsvUploader,
153
+ default86 as CustomAGGrid,
147
154
  default21 as CustomAgGridTable,
148
- default59 as CustomFormProvider,
155
+ default66 as CustomFormProvider,
149
156
  default14 as CustomMuiDialog,
150
157
  default23 as CustomReactQueryBuilder,
151
158
  DARK_THEME,
@@ -156,8 +163,8 @@ export {
156
163
  DanglingLine,
157
164
  default16 as DescriptionField,
158
165
  default15 as DescriptionModificationDialog,
159
- default78 as DirectoryItemSelector,
160
- default77 as DirectoryItemsInput,
166
+ default85 as DirectoryItemSelector,
167
+ default84 as DirectoryItemsInput,
161
168
  EQUIPMENT_TYPE,
162
169
  fields as EXPERT_FILTER_FIELDS,
163
170
  EXPERT_FILTER_QUERY,
@@ -166,23 +173,23 @@ export {
166
173
  ElementType,
167
174
  EquipmentItem,
168
175
  EquipmentType,
169
- default70 as ErrorInput,
176
+ default77 as ErrorInput,
170
177
  default12 as ExpandableGroup,
171
- default62 as ExpandingTextField,
172
- default82 as ExpertFilterEditionDialog,
173
- default83 as ExplicitNamingFilterEditionDialog,
178
+ default69 as ExpandingTextField,
179
+ default89 as ExpertFilterEditionDialog,
180
+ default90 as ExplicitNamingFilterEditionDialog,
174
181
  FILTER_EQUIPMENTS,
175
182
  default22 as FieldConstants,
176
- default71 as FieldErrorAlert,
177
- default74 as FieldLabel,
178
- default81 as FilterCreationDialog,
183
+ default78 as FieldErrorAlert,
184
+ default81 as FieldLabel,
185
+ default88 as FilterCreationDialog,
179
186
  FlatParameters,
180
- default65 as FloatInput,
187
+ default72 as FloatInput,
181
188
  GRIDSUITE_DEFAULT_PRECISION,
182
189
  Generator,
183
190
  Hvdc,
184
- default86 as InputWithPopupConfirmation,
185
- default66 as IntegerInput,
191
+ default93 as InputWithPopupConfirmation,
192
+ default73 as IntegerInput,
186
193
  KeyedColumnsRowIndexer,
187
194
  LANG_ENGLISH,
188
195
  LANG_FRENCH,
@@ -192,35 +199,35 @@ export {
192
199
  LOGOUT_ERROR,
193
200
  Line,
194
201
  Load,
195
- default72 as MidFormError,
202
+ default79 as MidFormError,
196
203
  default17 as ModifyElementSelection,
197
- default87 as MuiSelectInput,
204
+ default94 as MuiSelectInput,
198
205
  default7 as MuiVirtualizedTable,
199
- default89 as MultipleAutocompleteInput,
206
+ default96 as MultipleAutocompleteInput,
200
207
  default13 as MultipleSelectionDialog,
201
208
  OverflowableText,
202
209
  default19 as PopupConfirmationDialog,
203
210
  RESET_AUTHENTICATION_ROUTER_ERROR,
204
211
  ROW_DRAGGING_SELECTION_COLUMN_DEF,
205
- default63 as RadioInput,
206
- default85 as RangeInput,
207
- default80 as RawReadOnlyInput,
212
+ default70 as RadioInput,
213
+ default92 as RangeInput,
214
+ default87 as RawReadOnlyInput,
208
215
  default8 as ReportViewer,
209
216
  default9 as ReportViewerDialog,
210
217
  SHOW_AUTH_INFO_LOGIN,
211
218
  SIGNIN_CALLBACK_ERROR,
212
219
  SVC,
213
- default57 as SelectClearable,
214
- default67 as SelectInput,
220
+ default64 as SelectClearable,
221
+ default74 as SelectInput,
215
222
  ShuntCompensator,
216
- default64 as SliderInput,
223
+ default71 as SliderInput,
217
224
  default5 as SnackbarProvider,
218
- default75 as SubmitButton,
225
+ default82 as SubmitButton,
219
226
  Substation,
220
- default69 as SwitchInput,
227
+ default76 as SwitchInput,
221
228
  default10 as TagRenderer,
222
- default73 as TextFieldWithAdornment,
223
- default61 as TextInput,
229
+ default80 as TextFieldWithAdornment,
230
+ default68 as TextInput,
224
231
  ThreeWindingTransfo,
225
232
  default3 as TopBar,
226
233
  default2 as TreeViewFinder,
@@ -228,26 +235,32 @@ export {
228
235
  UNAUTHORIZED_USER_INFO,
229
236
  USER,
230
237
  USER_VALIDATION_ERROR,
231
- default91 as UniqueNameInput,
232
- default92 as UserManagerMock,
238
+ default98 as UniqueNameInput,
239
+ default99 as UserManagerMock,
233
240
  VSC,
234
241
  VoltageLevel,
235
242
  areArrayElementsUnique,
236
243
  backendFetch,
237
244
  backendFetchJson,
238
- default43 as card_error_boundary_en,
239
- default44 as card_error_boundary_fr,
240
- default49 as common_button_en,
241
- default50 as common_button_fr,
245
+ default49 as card_error_boundary_en,
246
+ default50 as card_error_boundary_fr,
247
+ default55 as common_button_en,
248
+ default56 as common_button_fr,
242
249
  createFilter,
243
- default51 as directory_items_input_en,
244
- default52 as directory_items_input_fr,
250
+ default48 as csv_en,
251
+ default47 as csv_fr,
252
+ default44 as description_en,
253
+ default43 as description_fr,
254
+ default57 as directory_items_input_en,
255
+ default58 as directory_items_input_fr,
245
256
  dispatchUser,
246
257
  default35 as element_search_en,
247
258
  default36 as element_search_fr,
248
259
  equipmentStyles,
249
260
  default37 as equipment_search_en,
250
261
  default38 as equipment_search_fr,
262
+ default46 as equipments_en,
263
+ default45 as equipments_fr,
251
264
  exportExpertRules,
252
265
  exportFilter,
253
266
  fetchAppsMetadata,
@@ -263,8 +276,8 @@ export {
263
276
  default41 as filter_expert_en,
264
277
  default42 as filter_expert_fr,
265
278
  default40 as filter_fr,
266
- default45 as flat_parameters_en,
267
- default46 as flat_parameters_fr,
279
+ default51 as flat_parameters_en,
280
+ default52 as flat_parameters_fr,
268
281
  formatQuery,
269
282
  genHelperError,
270
283
  genHelperPreviousValue,
@@ -294,8 +307,8 @@ export {
294
307
  logout,
295
308
  mergeSx,
296
309
  microUnitToUnit,
297
- default47 as multiple_selection_dialog_en,
298
- default48 as multiple_selection_dialog_fr,
310
+ default53 as multiple_selection_dialog_en,
311
+ default54 as multiple_selection_dialog_fr,
299
312
  noSelectionForCopy,
300
313
  default25 as report_viewer_en,
301
314
  default26 as report_viewer_fr,
@@ -317,12 +330,13 @@ export {
317
330
  default33 as treeview_finder_en,
318
331
  default34 as treeview_finder_fr,
319
332
  unitToMicroUnit,
320
- default56 as useConfidentialityWarning,
321
- default58 as useCustomFormContext,
322
- default55 as useDebounce,
333
+ default62 as useConfidentialityWarning,
334
+ default65 as useCustomFormContext,
335
+ default61 as useDebounce,
323
336
  default11 as useElementSearch,
324
- default54 as useIntlRef,
337
+ default60 as useIntlRef,
325
338
  useLocalizedCountries,
339
+ default63 as usePredefinedProperties,
326
340
  usePrevious,
327
341
  useSnackMessage,
328
342
  yup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.64.4",
3
+ "version": "0.64.6",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",