@gridsuite/commons-ui 0.109.0 → 0.110.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.
- package/dist/components/index.js +9 -2
- package/dist/components/inputs/index.js +3 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +0 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +2 -5
- package/dist/components/inputs/reactHookForm/constants.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/constants.js +6 -0
- package/dist/components/inputs/reactHookForm/index.d.ts +1 -0
- package/dist/components/inputs/reactHookForm/index.js +3 -2
- package/dist/components/parameters/common/index.js +2 -0
- package/dist/components/parameters/common/limitreductions/columns-definitions.d.ts +1 -1
- package/dist/components/parameters/common/limitreductions/columns-definitions.js +3 -1
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +4 -3
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +4 -0
- package/dist/components/parameters/common/parameters-edition-dialog-props.js +14 -1
- package/dist/components/parameters/index.d.ts +1 -0
- package/dist/components/parameters/index.js +6 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.d.ts +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +4 -2
- package/dist/components/parameters/loadflow/load-flow-parameters-form.d.ts +2 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +2 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.d.ts +2 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +2 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.d.ts +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +34 -4
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +4 -2
- package/dist/components/parameters/network-visualizations/map-parameters.js +1 -1
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +4 -3
- package/dist/components/parameters/security-analysis/index.d.ts +8 -0
- package/dist/components/parameters/security-analysis/index.js +6 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.d.ts +2 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +107 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.d.ts +8 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +139 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.d.ts +10 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +197 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.d.ts +7 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +84 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.d.ts +7 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +138 -0
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +24 -0
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +162 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +5 -4
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +4 -3
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +2 -1
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/index.js +20 -2
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +11 -0
- package/dist/services/security-analysis.d.ts +11 -0
- package/dist/services/security-analysis.js +91 -0
- package/dist/translations/en/networkModificationsEn.js +14 -14
- package/dist/translations/en/parameters.d.ts +8 -0
- package/dist/translations/en/parameters.js +9 -1
- package/dist/translations/fr/networkModificationsFr.js +14 -14
- package/dist/translations/fr/parameters.d.ts +8 -0
- package/dist/translations/fr/parameters.js +9 -1
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { backendFetchJson, backendFetch, backendFetchText } from "./utils.js";
|
|
2
|
+
import { PREFIX_STUDY_QUERIES } from "./loadflow.js";
|
|
3
|
+
function safeEncodeURIComponent(value) {
|
|
4
|
+
return value != null ? encodeURIComponent(value) : "";
|
|
5
|
+
}
|
|
6
|
+
const PREFIX_SECURITY_ANALYSIS_SERVER_QUERIES = `${"api/gateway"}/security-analysis`;
|
|
7
|
+
const getStudyUrl = (studyUuid) => `${PREFIX_STUDY_QUERIES}/v1/studies/${safeEncodeURIComponent(studyUuid)}`;
|
|
8
|
+
function getSecurityAnalysisUrl() {
|
|
9
|
+
return `${PREFIX_SECURITY_ANALYSIS_SERVER_QUERIES}/v1/`;
|
|
10
|
+
}
|
|
11
|
+
function fetchSecurityAnalysisProviders() {
|
|
12
|
+
console.info("fetch security analysis providers");
|
|
13
|
+
const url = `${getSecurityAnalysisUrl()}providers`;
|
|
14
|
+
console.debug(url);
|
|
15
|
+
return backendFetchJson(url);
|
|
16
|
+
}
|
|
17
|
+
function fetchSecurityAnalysisParameters(parameterUuid) {
|
|
18
|
+
console.info("fetch security analysis parameters");
|
|
19
|
+
const url = `${getSecurityAnalysisUrl()}parameters/${encodeURIComponent(parameterUuid)}`;
|
|
20
|
+
console.debug(url);
|
|
21
|
+
return backendFetchJson(url);
|
|
22
|
+
}
|
|
23
|
+
function getSecurityAnalysisDefaultLimitReductions() {
|
|
24
|
+
console.info("get security analysis default limit reductions");
|
|
25
|
+
const url = `${getSecurityAnalysisUrl()}parameters/default-limit-reductions`;
|
|
26
|
+
console.debug(url);
|
|
27
|
+
return backendFetchJson(url);
|
|
28
|
+
}
|
|
29
|
+
function updateSecurityAnalysisProvider(studyUuid, newProvider) {
|
|
30
|
+
console.info("update security analysis provider");
|
|
31
|
+
const url = `${getStudyUrl(studyUuid)}/security-analysis/provider`;
|
|
32
|
+
console.debug(url);
|
|
33
|
+
return backendFetch(url, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
headers: {
|
|
36
|
+
Accept: "application/json",
|
|
37
|
+
"Content-Type": "application/json"
|
|
38
|
+
},
|
|
39
|
+
body: newProvider
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function fetchDefaultSecurityAnalysisProvider() {
|
|
43
|
+
console.info("fetch default security analysis provider");
|
|
44
|
+
const url = `${PREFIX_STUDY_QUERIES}/v1/security-analysis-default-provider`;
|
|
45
|
+
console.debug(url);
|
|
46
|
+
return backendFetchText(url);
|
|
47
|
+
}
|
|
48
|
+
function getSecurityAnalysisParameters(studyUuid) {
|
|
49
|
+
console.info("get security analysis parameters");
|
|
50
|
+
const url = `${getStudyUrl(studyUuid)}/security-analysis/parameters`;
|
|
51
|
+
console.debug(url);
|
|
52
|
+
return backendFetchJson(url);
|
|
53
|
+
}
|
|
54
|
+
function setSecurityAnalysisParameters(studyUuid, newParams) {
|
|
55
|
+
console.info("set security analysis parameters");
|
|
56
|
+
const url = `${getStudyUrl(studyUuid)}/security-analysis/parameters`;
|
|
57
|
+
console.debug(url);
|
|
58
|
+
return backendFetch(url, {
|
|
59
|
+
method: "POST",
|
|
60
|
+
headers: {
|
|
61
|
+
Accept: "application/json",
|
|
62
|
+
"Content-Type": "application/json"
|
|
63
|
+
},
|
|
64
|
+
body: newParams ? JSON.stringify(newParams) : null
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function updateSecurityAnalysisParameters(parameterUuid, newParams) {
|
|
68
|
+
console.info("set security analysis parameters");
|
|
69
|
+
const setSecurityAnalysisParametersUrl = `${getSecurityAnalysisUrl()}parameters/${parameterUuid}`;
|
|
70
|
+
console.debug(setSecurityAnalysisParametersUrl);
|
|
71
|
+
return backendFetch(setSecurityAnalysisParametersUrl, {
|
|
72
|
+
method: "PUT",
|
|
73
|
+
headers: {
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
"Content-Type": "application/json"
|
|
76
|
+
},
|
|
77
|
+
body: newParams ? JSON.stringify(newParams) : null
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
fetchDefaultSecurityAnalysisProvider,
|
|
82
|
+
fetchSecurityAnalysisParameters,
|
|
83
|
+
fetchSecurityAnalysisProviders,
|
|
84
|
+
getSecurityAnalysisDefaultLimitReductions,
|
|
85
|
+
getSecurityAnalysisParameters,
|
|
86
|
+
getStudyUrl,
|
|
87
|
+
safeEncodeURIComponent,
|
|
88
|
+
setSecurityAnalysisParameters,
|
|
89
|
+
updateSecurityAnalysisParameters,
|
|
90
|
+
updateSecurityAnalysisProvider
|
|
91
|
+
};
|
|
@@ -38,22 +38,22 @@ const networkModificationsEn = {
|
|
|
38
38
|
"network_modifications.modifications": "Updating modification list ...",
|
|
39
39
|
"network_modifications.GENERATION_DISPATCH": "Generation dispatch {computedLabel}",
|
|
40
40
|
"network_modifications.VOLTAGE_INIT_MODIFICATION": "Voltage profile initialization {computedLabel}",
|
|
41
|
-
"network_modifications.TABULAR_MODIFICATION": "Tabular modification
|
|
42
|
-
"network_modifications.tabular.GENERATOR_MODIFICATION": "
|
|
43
|
-
"network_modifications.tabular.LOAD_MODIFICATION": "
|
|
41
|
+
"network_modifications.TABULAR_MODIFICATION": "Tabular modification ({computedLabel})",
|
|
42
|
+
"network_modifications.tabular.GENERATOR_MODIFICATION": "generators",
|
|
43
|
+
"network_modifications.tabular.LOAD_MODIFICATION": "loads",
|
|
44
44
|
"network_modifications.BY_FORMULA_MODIFICATION": "Modification by formula {computedLabel}",
|
|
45
45
|
"network_modifications.MODIFICATION_BY_ASSIGNMENT": "Modification by filter {computedLabel}",
|
|
46
|
-
"network_modifications.tabular.LINE_MODIFICATION": "
|
|
47
|
-
"network_modifications.tabular.BATTERY_MODIFICATION": "
|
|
48
|
-
"network_modifications.tabular.VOLTAGE_LEVEL_MODIFICATION": "
|
|
49
|
-
"network_modifications.tabular.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "
|
|
50
|
-
"network_modifications.tabular.SHUNT_COMPENSATOR_MODIFICATION": "
|
|
51
|
-
"network_modifications.tabular.SUBSTATION_MODIFICATION": "
|
|
52
|
-
"network_modifications.TABULAR_CREATION": "Tabular creation
|
|
53
|
-
"network_modifications.tabular.GENERATOR_CREATION": "
|
|
54
|
-
"network_modifications.tabular.BATTERY_CREATION": "
|
|
55
|
-
"network_modifications.tabular.LOAD_CREATION": "
|
|
56
|
-
"network_modifications.tabular.SHUNT_COMPENSATOR_CREATION": "
|
|
46
|
+
"network_modifications.tabular.LINE_MODIFICATION": "lines",
|
|
47
|
+
"network_modifications.tabular.BATTERY_MODIFICATION": "batteries",
|
|
48
|
+
"network_modifications.tabular.VOLTAGE_LEVEL_MODIFICATION": "voltage levels",
|
|
49
|
+
"network_modifications.tabular.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "two windings transformers",
|
|
50
|
+
"network_modifications.tabular.SHUNT_COMPENSATOR_MODIFICATION": "linear shunt compensators",
|
|
51
|
+
"network_modifications.tabular.SUBSTATION_MODIFICATION": "substations",
|
|
52
|
+
"network_modifications.TABULAR_CREATION": "Tabular creation ({computedLabel})",
|
|
53
|
+
"network_modifications.tabular.GENERATOR_CREATION": "generators",
|
|
54
|
+
"network_modifications.tabular.BATTERY_CREATION": "batteries",
|
|
55
|
+
"network_modifications.tabular.LOAD_CREATION": "loads",
|
|
56
|
+
"network_modifications.tabular.SHUNT_COMPENSATOR_CREATION": "linear shunt compensators",
|
|
57
57
|
"network_modifications.LCC_CREATION": "Creating HVDC (LCC) {computedLabel}",
|
|
58
58
|
"network_modifications.LCC_MODIFICATION": "Modifying HVDC (LCC) {computedLabel}",
|
|
59
59
|
"network_modifications.STATIC_VAR_COMPENSATOR_CREATION": "Creating static var compensator {computedLabel}",
|
|
@@ -147,4 +147,12 @@ export declare const parametersEn: {
|
|
|
147
147
|
VariableGenerators: string;
|
|
148
148
|
VariableTransformers: string;
|
|
149
149
|
VariableShuntCompensators: string;
|
|
150
|
+
'securityAnalysis.violationsHiding': string;
|
|
151
|
+
'securityAnalysis.current': string;
|
|
152
|
+
'securityAnalysis.lowVoltage': string;
|
|
153
|
+
'securityAnalysis.highVoltage': string;
|
|
154
|
+
'securityAnalysis.toolTip.violationsHiding': string;
|
|
155
|
+
'securityAnalysis.toolTip.current': string;
|
|
156
|
+
'securityAnalysis.toolTip.lowVoltage': string;
|
|
157
|
+
'securityAnalysis.toolTip.highVoltage': string;
|
|
150
158
|
};
|
|
@@ -140,7 +140,15 @@ const parametersEn = {
|
|
|
140
140
|
FiltersListsSelection: "Filters lists selection",
|
|
141
141
|
VariableGenerators: "Generators with variable reactive power",
|
|
142
142
|
VariableTransformers: "Variable transformers",
|
|
143
|
-
VariableShuntCompensators: "Variable shunt compensators"
|
|
143
|
+
VariableShuntCompensators: "Variable shunt compensators",
|
|
144
|
+
"securityAnalysis.violationsHiding": "Post-contingency violations hiding",
|
|
145
|
+
"securityAnalysis.current": "Current",
|
|
146
|
+
"securityAnalysis.lowVoltage": "Low voltage",
|
|
147
|
+
"securityAnalysis.highVoltage": "High voltage",
|
|
148
|
+
"securityAnalysis.toolTip.violationsHiding": "This section configures thresholds to determine which violations that already exist in the pre-contingency state are redisplayed in the post-contingency state as aggravated violations.",
|
|
149
|
+
"securityAnalysis.toolTip.current": "For current violations, the value can only be proportional. For example, if the proportional value corresponds to 10 A, a 1000 A current preexisting violation will be displayed in the post-contingency state only if the new value is above 1010 A.",
|
|
150
|
+
"securityAnalysis.toolTip.lowVoltage": "For low voltage violations, the value of the threshold can be either proportional or absolute. If both values are defined, the smallest value is used. For example, if the proportional value corresponds to 1 kV and the absolute value is 2 kV, a 200 kV low voltage preexisting violation will be displayed in the post-contingency state only if the new value is below 199 kV.",
|
|
151
|
+
"securityAnalysis.toolTip.highVoltage": "For high voltage violations, the value of the threshold can be either proportional or absolute. If both values are defined, the smallest value is used. For example, if the proportional value corresponds to 1 kV and the absolute value is 2 kV, a 250 kV high voltage preexisting violation will be displayed in the post-contingency state only if the new value is above 251 kV."
|
|
144
152
|
};
|
|
145
153
|
export {
|
|
146
154
|
parametersEn
|
|
@@ -38,22 +38,22 @@ const networkModificationsFr = {
|
|
|
38
38
|
"network_modifications.modifications": "Mise à jour de la liste des modifications en cours ...",
|
|
39
39
|
"network_modifications.GENERATION_DISPATCH": "Démarrage de groupes {computedLabel}",
|
|
40
40
|
"network_modifications.VOLTAGE_INIT_MODIFICATION": "Initialisation du plan de tension {computedLabel}",
|
|
41
|
-
"network_modifications.TABULAR_MODIFICATION": "Modification tabulaire
|
|
42
|
-
"network_modifications.tabular.GENERATOR_MODIFICATION": "
|
|
43
|
-
"network_modifications.tabular.LOAD_MODIFICATION": "
|
|
41
|
+
"network_modifications.TABULAR_MODIFICATION": "Modification tabulaire ({computedLabel})",
|
|
42
|
+
"network_modifications.tabular.GENERATOR_MODIFICATION": "générateurs",
|
|
43
|
+
"network_modifications.tabular.LOAD_MODIFICATION": "consommations",
|
|
44
44
|
"network_modifications.BY_FORMULA_MODIFICATION": "Modification par formule {computedLabel}",
|
|
45
45
|
"network_modifications.MODIFICATION_BY_ASSIGNMENT": "Modification par filtre {computedLabel}",
|
|
46
|
-
"network_modifications.tabular.LINE_MODIFICATION": "
|
|
47
|
-
"network_modifications.tabular.BATTERY_MODIFICATION": "
|
|
48
|
-
"network_modifications.tabular.VOLTAGE_LEVEL_MODIFICATION": "
|
|
49
|
-
"network_modifications.tabular.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "
|
|
50
|
-
"network_modifications.tabular.SHUNT_COMPENSATOR_MODIFICATION": "
|
|
51
|
-
"network_modifications.tabular.SUBSTATION_MODIFICATION": "
|
|
52
|
-
"network_modifications.TABULAR_CREATION": "Création tabulaire
|
|
53
|
-
"network_modifications.tabular.GENERATOR_CREATION": "
|
|
54
|
-
"network_modifications.tabular.BATTERY_CREATION": "
|
|
55
|
-
"network_modifications.tabular.LOAD_CREATION": "
|
|
56
|
-
"network_modifications.tabular.SHUNT_COMPENSATOR_CREATION": "
|
|
46
|
+
"network_modifications.tabular.LINE_MODIFICATION": "lignes",
|
|
47
|
+
"network_modifications.tabular.BATTERY_MODIFICATION": "batteries",
|
|
48
|
+
"network_modifications.tabular.VOLTAGE_LEVEL_MODIFICATION": "postes",
|
|
49
|
+
"network_modifications.tabular.TWO_WINDINGS_TRANSFORMER_MODIFICATION": "transformateurs à 2 enroulements",
|
|
50
|
+
"network_modifications.tabular.SHUNT_COMPENSATOR_MODIFICATION": "MCS linéaires",
|
|
51
|
+
"network_modifications.tabular.SUBSTATION_MODIFICATION": "sites",
|
|
52
|
+
"network_modifications.TABULAR_CREATION": "Création tabulaire ({computedLabel})",
|
|
53
|
+
"network_modifications.tabular.GENERATOR_CREATION": "générateurs",
|
|
54
|
+
"network_modifications.tabular.BATTERY_CREATION": "batteries",
|
|
55
|
+
"network_modifications.tabular.LOAD_CREATION": "consommations",
|
|
56
|
+
"network_modifications.tabular.SHUNT_COMPENSATOR_CREATION": "MCS linéaires",
|
|
57
57
|
"network_modifications.LCC_CREATION": "Création de la HVDC (LCC) {computedLabel}",
|
|
58
58
|
"network_modifications.LCC_MODIFICATION": "Modification de la HVDC (LCC) {computedLabel}",
|
|
59
59
|
"network_modifications.STATIC_VAR_COMPENSATOR_CREATION": "Création de CSPR {computedLabel}",
|
|
@@ -148,4 +148,12 @@ export declare const parametersFr: {
|
|
|
148
148
|
VariableGenerators: string;
|
|
149
149
|
VariableTransformers: string;
|
|
150
150
|
VariableShuntCompensators: string;
|
|
151
|
+
'securityAnalysis.violationsHiding': string;
|
|
152
|
+
'securityAnalysis.current': string;
|
|
153
|
+
'securityAnalysis.lowVoltage': string;
|
|
154
|
+
'securityAnalysis.highVoltage': string;
|
|
155
|
+
'securityAnalysis.toolTip.violationsHiding': string;
|
|
156
|
+
'securityAnalysis.toolTip.current': string;
|
|
157
|
+
'securityAnalysis.toolTip.lowVoltage': string;
|
|
158
|
+
'securityAnalysis.toolTip.highVoltage': string;
|
|
151
159
|
};
|
|
@@ -141,7 +141,15 @@ const parametersFr = {
|
|
|
141
141
|
FiltersListsSelection: "Sélection des listes de filtres",
|
|
142
142
|
VariableGenerators: "Groupes à puissance réactive variable",
|
|
143
143
|
VariableTransformers: "Transformateurs variables",
|
|
144
|
-
VariableShuntCompensators: "MCS variables"
|
|
144
|
+
VariableShuntCompensators: "MCS variables",
|
|
145
|
+
"securityAnalysis.violationsHiding": "Masquage des contraintes en N-k",
|
|
146
|
+
"securityAnalysis.current": "Intensité",
|
|
147
|
+
"securityAnalysis.lowVoltage": "Tension basse",
|
|
148
|
+
"securityAnalysis.highVoltage": "Tension haute",
|
|
149
|
+
"securityAnalysis.toolTip.violationsHiding": "Cette section permet de paramétrer le niveau d'aggravation à partir duquel les contraintes calculées en N réapparaissent en N-k.",
|
|
150
|
+
"securityAnalysis.toolTip.current": "L'aggravation de contrainte en intensité est déterminée uniquement en pourcentage de la valeur calculée en N pour les ouvrages en contrainte. Par exemple, si l'aggravation en pourcentage correspond à 10 A alors la contrainte en N réapparaitra en N-k pour une augmentation d'intensité de plus de 10 A par rapport à la valeur calculée en N.",
|
|
151
|
+
"securityAnalysis.toolTip.lowVoltage": "L'aggravation de contrainte en tension basse peut être calculée en pourcentage ou en définie en valeur absolue par rapport à la valeur calculée en N. La valeur prise en compte sera la plus conservative des deux. Par exemple, si l'aggravation en pourcentage correspond à 1 kV et celle renseignée en absolu est de 2 kV, alors la contrainte en tension basse réapparaitra en N-k pour une chute de tension de plus de 1 kV par rapport à la valeur calculée en N.",
|
|
152
|
+
"securityAnalysis.toolTip.highVoltage": "L'aggravation de contrainte en tension haute peut être calculée en pourcentage ou en définie en valeur absolue par rapport à la valeur calculée en N. La valeur prise en compte sera la plus conservative des deux. Par exemple, si l'aggravation en pourcentage correspond à 1 kV et celle renseignée en absolu est de 2 kV, alors la contrainte en tension haute réapparaitra en N-k pour une élévation de tension de plus de 1 kV par rapport à la valeur calculée en N."
|
|
145
153
|
};
|
|
146
154
|
export {
|
|
147
155
|
parametersFr
|