@gridsuite/commons-ui 0.114.0 → 0.116.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.
@@ -82,11 +82,9 @@ const RATIO_REGULATION_MODE_OPTIONS = [
82
82
  ];
83
83
  const PHASE_REGULATION_MODE_OPTIONS = [
84
84
  { name: "CURRENT_LIMITER", label: "CurrentLimiter" },
85
- { name: "ACTIVE_POWER_CONTROL", label: "ActivePowerControl" },
86
- { name: "FIXED_TAP", label: "FixedTap" }
85
+ { name: "ACTIVE_POWER_CONTROL", label: "ActivePowerControl" }
87
86
  ];
88
87
  const SVAR_REGULATION_MODE_OPTIONS = [
89
- { name: "OFF", label: "regulationMode.off" },
90
88
  { name: "VOLTAGE", label: "regulationMode.voltage" },
91
89
  { name: "REACTIVE_POWER", label: "regulationMode.reactivePower" }
92
90
  ];
@@ -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
  };
@@ -75,7 +75,6 @@ export declare const filterExpertEn: {
75
75
  FixedRatio: string;
76
76
  CurrentLimiter: string;
77
77
  ActivePowerControl: string;
78
- FixedTap: string;
79
78
  ratioRegulationMode: string;
80
79
  ratioRegulationMode1: string;
81
80
  ratioRegulationMode2: string;
@@ -130,7 +129,6 @@ export declare const filterExpertEn: {
130
129
  'maxSusceptance.svar': string;
131
130
  'minSusceptance.svar': string;
132
131
  regulationMode: string;
133
- 'regulationMode.off': string;
134
132
  'regulationMode.voltage': string;
135
133
  'regulationMode.reactivePower': string;
136
134
  voltageSetPoint: string;
@@ -69,7 +69,6 @@ const filterExpertEn = {
69
69
  FixedRatio: "Fixed ratio",
70
70
  CurrentLimiter: "Current limiter",
71
71
  ActivePowerControl: "Active power control",
72
- FixedTap: "Fixed tap",
73
72
  ratioRegulationMode: "Ratio tap changer regulation mode",
74
73
  ratioRegulationMode1: "Ratio tap 1 changer regulation mode",
75
74
  ratioRegulationMode2: "Ratio tap 2 changer regulation mode",
@@ -124,7 +123,6 @@ const filterExpertEn = {
124
123
  "maxSusceptance.svar": "Susceptance max",
125
124
  "minSusceptance.svar": "Susceptance min",
126
125
  regulationMode: "Regulation mode",
127
- "regulationMode.off": "Off",
128
126
  "regulationMode.voltage": "Voltage regulation",
129
127
  "regulationMode.reactivePower": "Reactive power regulation",
130
128
  voltageSetPoint: "Voltage set point",
@@ -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
  };
@@ -75,7 +75,6 @@ export declare const filterExpertFr: {
75
75
  FixedRatio: string;
76
76
  CurrentLimiter: string;
77
77
  ActivePowerControl: string;
78
- FixedTap: string;
79
78
  ratioRegulationMode: string;
80
79
  ratioRegulationMode1: string;
81
80
  ratioRegulationMode2: string;
@@ -130,7 +129,6 @@ export declare const filterExpertFr: {
130
129
  'maxSusceptance.svar': string;
131
130
  'minSusceptance.svar': string;
132
131
  regulationMode: string;
133
- 'regulationMode.off': string;
134
132
  'regulationMode.voltage': string;
135
133
  'regulationMode.reactivePower': string;
136
134
  voltageSetPoint: string;
@@ -69,7 +69,6 @@ const filterExpertFr = {
69
69
  FixedRatio: "Rapport fixe",
70
70
  CurrentLimiter: "Limitation de courant",
71
71
  ActivePowerControl: "Suivi de transit",
72
- FixedTap: "Déphasage constant",
73
72
  ratioRegulationMode: "Mode de réglage du régleur",
74
73
  ratioRegulationMode1: "Mode de réglage du régleur 1",
75
74
  ratioRegulationMode2: "Mode de réglage du régleur 2",
@@ -124,7 +123,6 @@ const filterExpertFr = {
124
123
  "maxSusceptance.svar": "Susceptance max",
125
124
  "minSusceptance.svar": "Susceptance min",
126
125
  regulationMode: "Mode de réglage",
127
- "regulationMode.off": "Arrêt",
128
126
  "regulationMode.voltage": "Réglage de tension",
129
127
  "regulationMode.reactivePower": "Réglage du réactif",
130
128
  voltageSetPoint: "Tension",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.114.0",
3
+ "version": "0.116.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",