@gridsuite/commons-ui 0.149.0 → 0.151.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 (40) hide show
  1. package/dist/components/index.js +2 -0
  2. package/dist/components/parameters/sensi/constants.d.ts +6 -1
  3. package/dist/components/parameters/sensi/constants.js +6 -2
  4. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.d.ts +8 -0
  5. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +53 -0
  6. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -3
  7. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +3 -3
  8. package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +5 -11
  9. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +64 -99
  10. package/dist/components/parameters/sensi/sensitivity-table.d.ts +2 -3
  11. package/dist/components/parameters/sensi/sensitivity-table.js +27 -37
  12. package/dist/components/parameters/sensi/table-cell.d.ts +1 -1
  13. package/dist/components/parameters/sensi/table-cell.js +2 -8
  14. package/dist/components/parameters/sensi/table-row.d.ts +2 -2
  15. package/dist/components/parameters/sensi/table-row.js +4 -6
  16. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +7 -10
  17. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +67 -114
  18. package/dist/components/parameters/sensi/utils.d.ts +6 -15
  19. package/dist/components/parameters/sensi/utils.js +21 -4
  20. package/dist/components/treeViewFinder/TreeViewFinder.js +2 -1
  21. package/dist/components/treeViewFinder/TreeViewUtils.d.ts +2 -0
  22. package/dist/components/treeViewFinder/TreeViewUtils.js +6 -0
  23. package/dist/components/treeViewFinder/index.d.ts +1 -0
  24. package/dist/components/treeViewFinder/index.js +2 -0
  25. package/dist/hooks/use-create-row-data-sensi.js +1 -2
  26. package/dist/index.js +2 -0
  27. package/dist/services/sensitivity-analysis.d.ts +2 -2
  28. package/dist/services/sensitivity-analysis.js +8 -9
  29. package/dist/translations/en/businessErrorsEn.d.ts +1 -0
  30. package/dist/translations/en/businessErrorsEn.js +2 -1
  31. package/dist/translations/en/parameters.d.ts +3 -3
  32. package/dist/translations/en/parameters.js +4 -4
  33. package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
  34. package/dist/translations/fr/businessErrorsFr.js +2 -1
  35. package/dist/translations/fr/parameters.d.ts +3 -3
  36. package/dist/translations/fr/parameters.js +4 -4
  37. package/dist/utils/constants/unitsConstants.d.ts +1 -1
  38. package/dist/utils/constants/unitsConstants.js +1 -1
  39. package/dist/utils/types/sensitivity-analysis.type.d.ts +4 -7
  40. package/package.json +4 -4
@@ -218,9 +218,9 @@ export declare const parametersEn: {
218
218
  EquipmentsInVoltageRegulation: string;
219
219
  PSTS: string;
220
220
  Active: string;
221
- 'sensitivityAnalysis.simulatedComputations': string;
222
- 'sensitivityAnalysis.moreThanOneMillionComputations': string;
223
- 'sensitivityAnalysis.maximumSimulatedComputations': string;
221
+ 'sensitivityAnalysis.simulatedResults': string;
222
+ 'sensitivityAnalysis.simulatedVariables': string;
223
+ 'sensitivityAnalysis.maximumFactorsCount': string;
224
224
  'sensitivityAnalysis.separator': string;
225
225
  loadingComputing: string;
226
226
  AddRows: string;
@@ -157,7 +157,7 @@ const parametersEn = {
157
157
  ReactiveSlacksThresholdMustBeGreaterOrEqualToZero: "The threshold must be greater or equal to 0",
158
158
  ShuntCompensatorActivationThreshold: "Alert threshold on shunt compensator activation",
159
159
  ShuntCompensatorActivationThresholdMustBeGreaterOrEqualToZero: "The threshold must be greater or equal to 0",
160
- ShuntCompensatorActivationThresholdDescription: "Threshold (in MVar) above which the difference between discretized and optimal value for shunt compensator activation is considered significant (and will thus be recorded in the functional logs)",
160
+ ShuntCompensatorActivationThresholdDescription: "Threshold (in Mvar) above which the difference between discretized and optimal value for shunt compensator activation is considered significant (and will thus be recorded in the functional logs)",
161
161
  VoltageInitParametersError: "An error occurred while updating the voltage profile initialization parameters",
162
162
  AdjustExistingLimits: "Adjust existing limits",
163
163
  AdjustExistingLimitsInfo: "Please enter a positive number in order to increase an existing voltage limit and a negative number in order to decrease an existing voltage limit (new limit = existing limit + user input).",
@@ -212,9 +212,9 @@ const parametersEn = {
212
212
  EquipmentsInVoltageRegulation: "Equipments in voltage regulation",
213
213
  PSTS: "PSTs",
214
214
  Active: "Active",
215
- "sensitivityAnalysis.simulatedComputations": "{count, plural, =0 {0 computation} =1 {1 computation} other {# computations}}",
216
- "sensitivityAnalysis.moreThanOneMillionComputations": "999 999+ computations",
217
- "sensitivityAnalysis.maximumSimulatedComputations": "500 000 max",
215
+ "sensitivityAnalysis.simulatedResults": "{count, plural, =0 {0 result} =1 {1 result} other {#{suffix} results}}",
216
+ "sensitivityAnalysis.simulatedVariables": "{count, plural, =0 {0 variable} =1 {1 variable} other {#{suffix} variables}}",
217
+ "sensitivityAnalysis.maximumFactorsCount": "{maxFactorsCount} max",
218
218
  "sensitivityAnalysis.separator": " | ",
219
219
  loadingComputing: "Calculation in progress...",
220
220
  AddRows: "Add",
@@ -60,4 +60,5 @@ export declare const businessErrorsFr: {
60
60
  'dynamicSimulation.providerNotFound': string;
61
61
  'dynamicSimulation.mappingNotProvided': string;
62
62
  'dynamicSimulation.mappingNotLastRuleWithEmptyFilterError': string;
63
+ 'sensitivityAnalysis.tooManyFactors': string;
63
64
  };
@@ -53,7 +53,8 @@ const businessErrorsFr = {
53
53
  "dynamicSecurityAnalysis.contingencyListEmpty": "La liste d'aléas fournie ne doit pas être nulle ou vide.",
54
54
  "dynamicSimulation.providerNotFound": "Simulateur pour la simulation dynamique non trouvé.",
55
55
  "dynamicSimulation.mappingNotProvided": "Mapping pour la simulation dynamique non fourni.",
56
- "dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Seule la dernière règle peut avoir un filtre vide : type {equipmentType}, indice de la règle : {index}."
56
+ "dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Seule la dernière règle peut avoir un filtre vide : type {equipmentType}, indice de la règle : {index}.",
57
+ "sensitivityAnalysis.tooManyFactors": "Trop de facteurs pour exécuter l’analyse de sensibilité : {resultCount} résultats (limite : {resultCountLimit}) et {variableCount} variables (limite : {variableCountLimit})."
57
58
  };
58
59
  export {
59
60
  businessErrorsFr
@@ -219,9 +219,9 @@ export declare const parametersFr: {
219
219
  EquipmentsInVoltageRegulation: string;
220
220
  PSTS: string;
221
221
  Active: string;
222
- 'sensitivityAnalysis.simulatedComputations': string;
223
- 'sensitivityAnalysis.moreThanOneMillionComputations': string;
224
- 'sensitivityAnalysis.maximumSimulatedComputations': string;
222
+ 'sensitivityAnalysis.simulatedResults': string;
223
+ 'sensitivityAnalysis.simulatedVariables': string;
224
+ 'sensitivityAnalysis.maximumFactorsCount': string;
225
225
  'sensitivityAnalysis.separator': string;
226
226
  loadingComputing: string;
227
227
  AddRows: string;
@@ -157,7 +157,7 @@ const parametersFr = {
157
157
  ReactiveSlacksThresholdMustBeGreaterOrEqualToZero: "Le seuil doit être supérieur ou égal à 0",
158
158
  ShuntCompensatorActivationThreshold: "Seuil d'alerte sur l'enclenchement des MCS",
159
159
  ShuntCompensatorActivationThresholdMustBeGreaterOrEqualToZero: "Le seuil doit être supérieur ou égal à 0",
160
- ShuntCompensatorActivationThresholdDescription: "Seuil (en MVar) au-dessus duquel on considère qu'il y a un écart significatif (et donc tracé dans les logs fonctionnels) entre valeur arrondie et valeur théorique pour l'enclenchement d'un MCS",
160
+ ShuntCompensatorActivationThresholdDescription: "Seuil (en Mvar) au-dessus duquel on considère qu'il y a un écart significatif (et donc tracé dans les logs fonctionnels) entre valeur arrondie et valeur théorique pour l'enclenchement d'un MCS",
161
161
  VoltageInitParametersError: "Erreur lors de la mise à jour des paramètres d'initialisation du plan de tension",
162
162
  voltageInitCancelError: "L'initialisation du plan de tension n'a pas pu être annulée",
163
163
  AdjustExistingLimits: "Modifier les limites existantes",
@@ -213,9 +213,9 @@ const parametersFr = {
213
213
  EquipmentsInVoltageRegulation: "Ouvrages en réglage tension",
214
214
  PSTS: "TDs",
215
215
  Active: "Actif",
216
- "sensitivityAnalysis.simulatedComputations": "{count, plural, =0 {0 calcul} =1 {1 calcul} other {# calculs}}",
217
- "sensitivityAnalysis.moreThanOneMillionComputations": "999 999+ calculs",
218
- "sensitivityAnalysis.maximumSimulatedComputations": "500 000 max",
216
+ "sensitivityAnalysis.simulatedResults": "{count, plural, =0 {0 résultat} =1 {1 résultat} other {#{suffix} résultats}}",
217
+ "sensitivityAnalysis.simulatedVariables": "{count, plural, =0 {0 variable} =1 {1 variable} other {#{suffix} variables}}",
218
+ "sensitivityAnalysis.maximumFactorsCount": "{maxFactorsCount} max",
219
219
  "sensitivityAnalysis.separator": " | ",
220
220
  loadingComputing: "Evaluation en cours...",
221
221
  AddRows: "Ajouter",
@@ -8,7 +8,7 @@ export declare const MICRO_SIEMENS = "\u00B5S";
8
8
  export declare const SIEMENS = "S";
9
9
  export declare const AMPERE = "A";
10
10
  export declare const KILO_AMPERE = "kA";
11
- export declare const MEGA_VAR = "MVar";
11
+ export declare const MEGA_VAR = "Mvar";
12
12
  export declare const MEGA_VOLT_AMPERE = "MVA";
13
13
  export declare const OHM = "\u03A9";
14
14
  export declare const MEGA_WATT = "MW";
@@ -2,7 +2,7 @@ const MICRO_SIEMENS = "µS";
2
2
  const SIEMENS = "S";
3
3
  const AMPERE = "A";
4
4
  const KILO_AMPERE = "kA";
5
- const MEGA_VAR = "MVar";
5
+ const MEGA_VAR = "Mvar";
6
6
  const MEGA_VOLT_AMPERE = "MVA";
7
7
  const OHM = "Ω";
8
8
  const MEGA_WATT = "MW";
@@ -54,13 +54,10 @@ export interface SensitivityAnalysisParametersInfos {
54
54
  sensitivityPST?: SensitivityPST[];
55
55
  sensitivityNodes?: SensitivityNodes[];
56
56
  }
57
- export type SensitivityAnalysisFactorsCountParameters = {
58
- injections?: string[];
59
- monitoredBranches?: string[];
60
- contingencies?: string[];
61
- hvdcs?: string[];
62
- psts?: string[];
63
- };
57
+ export interface FactorsCount {
58
+ resultCount: number;
59
+ variableCount: number;
60
+ }
64
61
  export type SelectorFilterOptions = {
65
62
  tabSelection: string;
66
63
  functionType: string;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.149.0",
3
+ "version": "0.151.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
7
7
  "license": "MPL-2.0",
8
8
  "repository": "git://github.com/gridsuite/commons-ui.git",
9
9
  "engines": {
10
- "node": ">=22",
11
- "npm": "^10.9.2"
10
+ "node": ">=24",
11
+ "npm": "^11.6.2"
12
12
  },
13
13
  "type": "module",
14
14
  "exports": "./dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "@mui/icons-material": "^5.16.14",
66
66
  "@mui/lab": "5.0.0-alpha.175",
67
67
  "@mui/material": "^5.16.14",
68
- "@mui/x-tree-view": "^7.29.1",
68
+ "@mui/x-tree-view": "^8.21.0",
69
69
  "ag-grid-community": "^33.0.3",
70
70
  "ag-grid-react": "^33.0.4",
71
71
  "notistack": "^3.0.2",