@gridsuite/commons-ui 0.113.0 → 0.115.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.
@@ -138,7 +138,10 @@ function TreeViewFinderComponant(props) {
138
138
  return;
139
139
  }
140
140
  if (selectedProp.length > 0) {
141
- setSelected((oldSelectedNodes) => [...oldSelectedNodes ?? [], ...selectedProp]);
141
+ setSelected((oldSelectedNodes) => {
142
+ const prev = oldSelectedNodes ?? [];
143
+ return Array.from(/* @__PURE__ */ new Set([...prev, ...selectedProp]));
144
+ });
142
145
  }
143
146
  }, [selectedProp]);
144
147
  useEffect(() => {
@@ -1,9 +1,9 @@
1
1
  const csvEn = {
2
2
  ImportCSV: "Import CSV",
3
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",
4
+ wrongCsvHeadersError: "This CSV file has the wrong headers. Use Generate CSV template button to get supported CSV format",
5
5
  keepCSVDataMessage: "Do you want to replace or add the new data to the current list ?",
6
- GenerateCSV: "Generate CSV skeleton",
6
+ GenerateCSV: "Generate CSV template",
7
7
  UploadCSV: "Upload CSV",
8
8
  uploadMessage: " No file selected"
9
9
  };
@@ -1,9 +1,9 @@
1
1
  const csvFr = {
2
2
  ImportCSV: "Import CSV",
3
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",
4
+ wrongCsvHeadersError: "Les en-têtes du fichier CSV sont incorrects. Utilisez le bouton Générer le modèle CSV pour obtenir le format CSV pris en charge",
5
5
  keepCSVDataMessage: "Voulez-vous remplacer la liste existante ou y ajouter les nouvelles données ?",
6
- GenerateCSV: "Générer le squelette CSV",
6
+ GenerateCSV: "Générer le modèle CSV",
7
7
  UploadCSV: "Télécharger le CSV",
8
8
  uploadMessage: " Aucun fichier sélectionné"
9
9
  };
@@ -167,5 +167,7 @@ export declare enum FieldType {
167
167
  REGULATION_VALUE = "REGULATION_VALUE",
168
168
  PHASE_LOW_TAP_POSITION = "PHASE_LOW_TAP_POSITION",
169
169
  PHASE_TAP_POSITION = "PHASE_TAP_POSITION",
170
- PHASE_TARGET_DEADBAND = "PHASE_TARGET_DEADBAND"
170
+ PHASE_TARGET_DEADBAND = "PHASE_TARGET_DEADBAND",
171
+ SELECTED_OPERATIONAL_LIMITS_GROUP_1 = "SELECTED_OPERATIONAL_LIMITS_GROUP_1",
172
+ SELECTED_OPERATIONAL_LIMITS_GROUP_2 = "SELECTED_OPERATIONAL_LIMITS_GROUP_2"
171
173
  }
@@ -162,6 +162,8 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
162
162
  FieldType2["PHASE_LOW_TAP_POSITION"] = "PHASE_LOW_TAP_POSITION";
163
163
  FieldType2["PHASE_TAP_POSITION"] = "PHASE_TAP_POSITION";
164
164
  FieldType2["PHASE_TARGET_DEADBAND"] = "PHASE_TARGET_DEADBAND";
165
+ FieldType2["SELECTED_OPERATIONAL_LIMITS_GROUP_1"] = "SELECTED_OPERATIONAL_LIMITS_GROUP_1";
166
+ FieldType2["SELECTED_OPERATIONAL_LIMITS_GROUP_2"] = "SELECTED_OPERATIONAL_LIMITS_GROUP_2";
165
167
  return FieldType2;
166
168
  })(FieldType || {});
167
169
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.113.0",
3
+ "version": "0.115.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",