@gridsuite/commons-ui 0.109.1 → 0.111.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/csvDownloader/csv-export.d.ts +2 -0
- package/dist/components/csvDownloader/csv-export.js +23 -0
- package/dist/components/csvDownloader/csv-export.type.d.ts +16 -0
- package/dist/components/csvDownloader/csv-export.type.js +1 -0
- package/dist/components/csvDownloader/export-csv-button.d.ts +7 -0
- package/dist/components/csvDownloader/export-csv-button.js +33 -0
- package/dist/components/csvDownloader/index.d.ts +10 -0
- package/dist/components/csvDownloader/index.js +8 -0
- package/dist/components/csvDownloader/use-csv-export.d.ts +4 -0
- package/dist/components/csvDownloader/use-csv-export.js +52 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +15 -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.js +1 -1
- 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 +26 -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/parameters.d.ts +8 -0
- package/dist/translations/en/parameters.js +9 -1
- package/dist/translations/en/tableEn.d.ts +1 -0
- package/dist/translations/en/tableEn.js +2 -1
- package/dist/translations/fr/parameters.d.ts +8 -0
- package/dist/translations/fr/parameters.js +9 -1
- package/dist/translations/fr/tableFr.d.ts +1 -0
- package/dist/translations/fr/tableFr.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,6 +15,9 @@ import { dispatchUser, getPreLoginPath, handleSigninCallback, handleSilentRenewC
|
|
|
15
15
|
import { UserManagerMock } from "./components/authentication/utils/userManagerMock.js";
|
|
16
16
|
import { CardErrorBoundary } from "./components/cardErrorBoundary/CardErrorBoundary.js";
|
|
17
17
|
import { CheckBoxList } from "./components/checkBoxList/CheckBoxList.js";
|
|
18
|
+
import { CsvExport } from "./components/csvDownloader/csv-export.js";
|
|
19
|
+
import { ExportCsvButton } from "./components/csvDownloader/export-csv-button.js";
|
|
20
|
+
import { useCsvExport } from "./components/csvDownloader/use-csv-export.js";
|
|
18
21
|
import { CUSTOM_AGGRID_THEME, styles } from "./components/customAGGrid/customAggrid.style.js";
|
|
19
22
|
import { CustomAGGrid } from "./components/customAGGrid/customAggrid.js";
|
|
20
23
|
import { CustomMuiDialog, unscrollableDialogStyles } from "./components/dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
@@ -54,7 +57,7 @@ import "@mui/material";
|
|
|
54
57
|
import "react-intl";
|
|
55
58
|
import { SelectClearable } from "./components/inputs/SelectClearable.js";
|
|
56
59
|
import { ChipItemsInput } from "./components/inputs/reactHookForm/chip-items-input.js";
|
|
57
|
-
import {
|
|
60
|
+
import { DirectoryItemsInput } from "./components/inputs/reactHookForm/DirectoryItemsInput.js";
|
|
58
61
|
import { RawReadOnlyInput } from "./components/inputs/reactHookForm/RawReadOnlyInput.js";
|
|
59
62
|
import { BottomRightButtons } from "./components/inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
60
63
|
import { CustomAgGridTable } from "./components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js";
|
|
@@ -92,6 +95,7 @@ import { SubmitButton } from "./components/inputs/reactHookForm/utils/SubmitButt
|
|
|
92
95
|
import { TextFieldWithAdornment } from "./components/inputs/reactHookForm/utils/TextFieldWithAdornment.js";
|
|
93
96
|
import { genHelperError, gridItem, identity, isFieldRequired, toFloatOrNullValue } from "./components/inputs/reactHookForm/utils/functions.js";
|
|
94
97
|
import { HelperPreviousValue } from "./components/inputs/reactHookForm/utils/HelperPreviousValue.js";
|
|
98
|
+
import { DESCRIPTION, NAME } from "./components/inputs/reactHookForm/constants.js";
|
|
95
99
|
import { AddButton } from "./components/inputs/reactQueryBuilder/AddButton.js";
|
|
96
100
|
import { AutocompleteWithFavorites } from "./components/inputs/reactQueryBuilder/AutocompleteWithFavorites.js";
|
|
97
101
|
import { CombinatorSelector } from "./components/inputs/reactQueryBuilder/CombinatorSelector.js";
|
|
@@ -126,6 +130,7 @@ import { LeftPanelCloseIcon } from "./components/icons/LeftPanelCloseIcon.js";
|
|
|
126
130
|
import { DeviceHubIcon } from "./components/icons/DeviceHubIcon.js";
|
|
127
131
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./components/parameters/common/computing-type.js";
|
|
128
132
|
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_PROVIDER, PROVIDER, ReactivePowerAdornment, VOLTAGE_LEVEL, VoltageAdornment } from "./components/parameters/common/constant.js";
|
|
133
|
+
import { getDialogParametersFormSchema } from "./components/parameters/common/parameters-edition-dialog-props.js";
|
|
129
134
|
import { LineSeparator } from "./components/parameters/common/line-separator.js";
|
|
130
135
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./components/parameters/common/parameters.js";
|
|
131
136
|
import { CreateParameterDialog } from "./components/parameters/common/parameters-creation-dialog.js";
|
|
@@ -158,6 +163,8 @@ import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD,
|
|
|
158
163
|
import { EquipmentsSelectionType } from "./components/parameters/voltage-init/voltage-init.type.js";
|
|
159
164
|
import { VoltageInitParametersEditionDialog } from "./components/parameters/voltage-init/voltage-init-parameters-dialog.js";
|
|
160
165
|
import { VoltageInitParametersInLine } from "./components/parameters/voltage-init/voltage-init-parameters-inline.js";
|
|
166
|
+
import { SecurityAnalysisParametersInline } from "./components/parameters/security-analysis/security-analysis-parameters-inline.js";
|
|
167
|
+
import { SecurityAnalysisParametersDialog } from "./components/parameters/security-analysis/security-analysis-parameters-dialog.js";
|
|
161
168
|
import { CustomMenuItem, CustomNestedMenuItem } from "./components/menus/custom-nested-menu.js";
|
|
162
169
|
import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
|
|
163
170
|
import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
|
|
@@ -183,6 +190,7 @@ import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizat
|
|
|
183
190
|
import { getNetworkVisualizationsParameters } from "./services/study-config.js";
|
|
184
191
|
import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin.js";
|
|
185
192
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
|
|
193
|
+
import { fetchDefaultSecurityAnalysisProvider, fetchSecurityAnalysisParameters, fetchSecurityAnalysisProviders, getSecurityAnalysisDefaultLimitReductions, getSecurityAnalysisParameters, getStudyUrl, safeEncodeURIComponent, setSecurityAnalysisParameters, updateSecurityAnalysisParameters, updateSecurityAnalysisProvider } from "./services/security-analysis.js";
|
|
186
194
|
import { equalsArray } from "./utils/algos.js";
|
|
187
195
|
import { FetchStatus } from "./utils/constants/fetchStatus.js";
|
|
188
196
|
import { FieldConstants } from "./utils/constants/fieldConstants.js";
|
|
@@ -296,6 +304,7 @@ export {
|
|
|
296
304
|
CountryValueEditor,
|
|
297
305
|
CreateParameterDialog,
|
|
298
306
|
CriteriaBasedForm,
|
|
307
|
+
CsvExport,
|
|
299
308
|
CsvUploader,
|
|
300
309
|
CustomAGGrid,
|
|
301
310
|
CustomAgGridTable,
|
|
@@ -319,7 +328,7 @@ export {
|
|
|
319
328
|
DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD,
|
|
320
329
|
DEFAULT_UPDATE_BUS_VOLTAGE,
|
|
321
330
|
DEGREE,
|
|
322
|
-
|
|
331
|
+
DESCRIPTION,
|
|
323
332
|
DIAGONAL_LABEL,
|
|
324
333
|
DISTRIBUTED_SLACK,
|
|
325
334
|
DISTRIBUTION_KEY,
|
|
@@ -359,6 +368,7 @@ export {
|
|
|
359
368
|
ExpertFilterForm,
|
|
360
369
|
ExplicitNamingFilterEditionDialog,
|
|
361
370
|
ExplicitNamingFilterForm,
|
|
371
|
+
ExportCsvButton,
|
|
362
372
|
ExtendedEquipmentType,
|
|
363
373
|
FIELDS_OPTIONS,
|
|
364
374
|
FILTERS,
|
|
@@ -536,6 +546,8 @@ export {
|
|
|
536
546
|
SUBSTATION_LAYOUT,
|
|
537
547
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
538
548
|
SVC,
|
|
549
|
+
SecurityAnalysisParametersDialog,
|
|
550
|
+
SecurityAnalysisParametersInline,
|
|
539
551
|
SelectClearable,
|
|
540
552
|
SelectInput,
|
|
541
553
|
SensitivityType,
|
|
@@ -641,6 +653,7 @@ export {
|
|
|
641
653
|
fetchAppsMetadata,
|
|
642
654
|
fetchCurrentAnnouncement,
|
|
643
655
|
fetchDefaultCountry,
|
|
656
|
+
fetchDefaultSecurityAnalysisProvider,
|
|
644
657
|
fetchDirectoryContent,
|
|
645
658
|
fetchDirectoryElementPath,
|
|
646
659
|
fetchElementsInfos,
|
|
@@ -648,6 +661,8 @@ export {
|
|
|
648
661
|
fetchFavoriteAndDefaultCountries,
|
|
649
662
|
fetchLoadFlowParameters,
|
|
650
663
|
fetchRootFolders,
|
|
664
|
+
fetchSecurityAnalysisParameters,
|
|
665
|
+
fetchSecurityAnalysisProviders,
|
|
651
666
|
fetchStudyMetadata,
|
|
652
667
|
fetchUserDetails,
|
|
653
668
|
filterEn,
|
|
@@ -664,6 +679,7 @@ export {
|
|
|
664
679
|
getCriteriaBasedFormData,
|
|
665
680
|
getCriteriaBasedSchema,
|
|
666
681
|
getDefaultLoadFlowProvider,
|
|
682
|
+
getDialogParametersFormSchema,
|
|
667
683
|
getEquipmentsInfosForSearchBar,
|
|
668
684
|
getExpertFilterEmptyFormData,
|
|
669
685
|
getExplicitNamingFilterEmptyFormData,
|
|
@@ -680,8 +696,11 @@ export {
|
|
|
680
696
|
getRangeInputSchema,
|
|
681
697
|
getRequestParamFromList,
|
|
682
698
|
getSAParametersFromSchema,
|
|
699
|
+
getSecurityAnalysisDefaultLimitReductions,
|
|
700
|
+
getSecurityAnalysisParameters,
|
|
683
701
|
getStudyNetworkVisualizationsParameters,
|
|
684
702
|
getStudyShortCircuitParameters,
|
|
703
|
+
getStudyUrl,
|
|
685
704
|
getSystemLanguage,
|
|
686
705
|
getTabIndicatorStyle,
|
|
687
706
|
getTabStyle,
|
|
@@ -733,6 +752,7 @@ export {
|
|
|
733
752
|
roundToDefaultPrecision,
|
|
734
753
|
roundToPrecision,
|
|
735
754
|
rqbQuerySchemaValidator,
|
|
755
|
+
safeEncodeURIComponent,
|
|
736
756
|
sanitizePercentageValue,
|
|
737
757
|
saveExpertFilter,
|
|
738
758
|
saveExplicitNamingFilter,
|
|
@@ -741,6 +761,7 @@ export {
|
|
|
741
761
|
setLoadFlowParameters,
|
|
742
762
|
setLoggedUser,
|
|
743
763
|
setLogoutError,
|
|
764
|
+
setSecurityAnalysisParameters,
|
|
744
765
|
setShowAuthenticationRouterLogin,
|
|
745
766
|
setSignInCallbackError,
|
|
746
767
|
setStudyNetworkVisualizationParameters,
|
|
@@ -765,9 +786,12 @@ export {
|
|
|
765
786
|
unitToMicroUnit,
|
|
766
787
|
unscrollableDialogStyles,
|
|
767
788
|
updateParameter,
|
|
789
|
+
updateSecurityAnalysisParameters,
|
|
790
|
+
updateSecurityAnalysisProvider,
|
|
768
791
|
updateVoltageInitParameters,
|
|
769
792
|
useConfidentialityWarning,
|
|
770
793
|
useConvertValue,
|
|
794
|
+
useCsvExport,
|
|
771
795
|
useCustomFormContext,
|
|
772
796
|
useDebounce,
|
|
773
797
|
useElementSearch,
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizat
|
|
|
7
7
|
import { getNetworkVisualizationsParameters } from "./study-config.js";
|
|
8
8
|
import { fetchCurrentAnnouncement, fetchUserDetails } from "./userAdmin.js";
|
|
9
9
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./voltage-init.js";
|
|
10
|
+
import { fetchDefaultSecurityAnalysisProvider, fetchSecurityAnalysisParameters, fetchSecurityAnalysisProviders, getSecurityAnalysisDefaultLimitReductions, getSecurityAnalysisParameters, getStudyUrl, safeEncodeURIComponent, setSecurityAnalysisParameters, updateSecurityAnalysisParameters, updateSecurityAnalysisProvider } from "./security-analysis.js";
|
|
10
11
|
export {
|
|
11
12
|
PREFIX_STUDY_QUERIES,
|
|
12
13
|
backendFetch,
|
|
@@ -20,6 +21,7 @@ export {
|
|
|
20
21
|
fetchAppsMetadata,
|
|
21
22
|
fetchCurrentAnnouncement,
|
|
22
23
|
fetchDefaultCountry,
|
|
24
|
+
fetchDefaultSecurityAnalysisProvider,
|
|
23
25
|
fetchDirectoryContent,
|
|
24
26
|
fetchDirectoryElementPath,
|
|
25
27
|
fetchElementsInfos,
|
|
@@ -27,6 +29,8 @@ export {
|
|
|
27
29
|
fetchFavoriteAndDefaultCountries,
|
|
28
30
|
fetchLoadFlowParameters,
|
|
29
31
|
fetchRootFolders,
|
|
32
|
+
fetchSecurityAnalysisParameters,
|
|
33
|
+
fetchSecurityAnalysisProviders,
|
|
30
34
|
fetchStudyMetadata,
|
|
31
35
|
fetchUserDetails,
|
|
32
36
|
getAvailableComponentLibraries,
|
|
@@ -37,16 +41,23 @@ export {
|
|
|
37
41
|
getLoadFlowUrl,
|
|
38
42
|
getNetworkVisualizationsParameters,
|
|
39
43
|
getRequestParamFromList,
|
|
44
|
+
getSecurityAnalysisDefaultLimitReductions,
|
|
45
|
+
getSecurityAnalysisParameters,
|
|
40
46
|
getStudyNetworkVisualizationsParameters,
|
|
41
47
|
getStudyShortCircuitParameters,
|
|
48
|
+
getStudyUrl,
|
|
42
49
|
getVoltageInitParameters,
|
|
43
50
|
getVoltageInitUrl,
|
|
44
51
|
invalidateStudyShortCircuitStatus,
|
|
45
52
|
isStudyMetadata,
|
|
53
|
+
safeEncodeURIComponent,
|
|
46
54
|
saveFilter,
|
|
47
55
|
setLoadFlowParameters,
|
|
56
|
+
setSecurityAnalysisParameters,
|
|
48
57
|
setStudyNetworkVisualizationParameters,
|
|
49
58
|
setStudyShortCircuitParameters,
|
|
50
59
|
updateParameter,
|
|
60
|
+
updateSecurityAnalysisParameters,
|
|
61
|
+
updateSecurityAnalysisProvider,
|
|
51
62
|
updateVoltageInitParameters
|
|
52
63
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UUID } from 'crypto';
|
|
2
|
+
export declare function safeEncodeURIComponent(value: string | null | undefined): string;
|
|
3
|
+
export declare const getStudyUrl: (studyUuid: UUID | null) => string;
|
|
4
|
+
export declare function fetchSecurityAnalysisProviders(): Promise<any>;
|
|
5
|
+
export declare function fetchSecurityAnalysisParameters(parameterUuid: string): Promise<any>;
|
|
6
|
+
export declare function getSecurityAnalysisDefaultLimitReductions(): Promise<any>;
|
|
7
|
+
export declare function updateSecurityAnalysisProvider(studyUuid: UUID, newProvider: string): Promise<Response>;
|
|
8
|
+
export declare function fetchDefaultSecurityAnalysisProvider(): Promise<string>;
|
|
9
|
+
export declare function getSecurityAnalysisParameters(studyUuid: UUID): Promise<any>;
|
|
10
|
+
export declare function setSecurityAnalysisParameters(studyUuid: UUID, newParams: any): Promise<Response>;
|
|
11
|
+
export declare function updateSecurityAnalysisParameters(parameterUuid: UUID, newParams: any): Promise<Response>;
|
|
@@ -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
|
+
};
|
|
@@ -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
|
|
@@ -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
|