@gridsuite/commons-ui 0.248.0 → 0.250.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/composite/reactQueryBuilder/CustomReactQueryBuilder.js +23 -18
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +1 -1
- package/dist/features/index.js +14 -11
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +3 -3
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +1 -1
- package/dist/features/network-modifications/common/index.js +1 -2
- package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +1 -1
- package/dist/features/network-modifications/common/measurements/index.js +1 -2
- package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.d.ts +0 -8
- package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js +0 -8
- package/dist/features/network-modifications/index.js +6 -2
- package/dist/features/network-modifications/line/catalog/segment.utils.d.ts +1 -1
- package/dist/features/network-modifications/line/common/LineDialogTabsContent.js +2 -2
- package/dist/features/network-modifications/line/common/line.types.d.ts +7 -0
- package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +1 -7
- package/dist/features/network-modifications/line/creation/lineCreation.utils.d.ts +1 -1
- package/dist/features/network-modifications/line/index.d.ts +1 -0
- package/dist/features/network-modifications/line/index.js +6 -1
- package/dist/features/network-modifications/line/modification/index.d.ts +8 -0
- package/dist/features/network-modifications/line/modification/index.js +7 -0
- package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +43 -0
- package/dist/features/network-modifications/line/modification/lineModification.types.js +1 -0
- package/dist/features/network-modifications/line/modification/lineModification.utils.d.ts +154 -0
- package/dist/features/network-modifications/line/modification/lineModification.utils.js +193 -0
- package/dist/features/parameters/common/constants.d.ts +0 -6
- package/dist/features/parameters/common/constants.js +0 -12
- package/dist/features/parameters/common/index.js +2 -10
- package/dist/features/parameters/common/limitreductions/columns-definitions.d.ts +0 -8
- package/dist/features/parameters/common/limitreductions/columns-definitions.js +0 -17
- package/dist/features/parameters/common/limitreductions/index.js +1 -3
- package/dist/features/parameters/common/parameter-field.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +0 -1
- package/dist/features/parameters/index.js +8 -9
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +0 -1
- package/dist/features/parameters/network-visualizations/map-parameters.js +0 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +0 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +0 -1
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +0 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +0 -1
- package/dist/features/parameters/security-analysis/columns-definitions.js +14 -13
- package/dist/features/parameters/security-analysis/constants.d.ts +16 -0
- package/dist/features/parameters/security-analysis/constants.js +19 -0
- package/dist/features/parameters/security-analysis/index.d.ts +1 -0
- package/dist/features/parameters/security-analysis/index.js +8 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.d.ts +14 -0
- package/dist/features/parameters/security-analysis/{security-analysis-parameters-selector.js → security-analysis-parameters-content.js} +58 -28
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +2 -4
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +1 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +10 -22
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +2 -5
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -13
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +15 -14
- package/dist/features/parameters/sensi/columns-definitions.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +0 -1
- package/dist/features/parameters/sensi/utils.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +0 -1
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +0 -1
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +0 -1
- package/dist/index.js +14 -11
- package/dist/translations/en/networkModificationsEn.d.ts +2 -0
- package/dist/translations/en/networkModificationsEn.js +2 -0
- package/dist/translations/en/parameters.d.ts +2 -0
- package/dist/translations/en/parameters.js +2 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +2 -0
- package/dist/translations/fr/networkModificationsFr.js +2 -0
- package/dist/translations/fr/parameters.d.ts +2 -0
- package/dist/translations/fr/parameters.js +2 -0
- package/package.json +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.d.ts +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ParameterLayout } from "./common/parameter-layout/parameter-layout.js";
|
|
2
2
|
import { ParameterLayoutProvider, useParameterLayoutContext } from "./common/parameter-layout/parameter-layout-provider.js";
|
|
3
3
|
import { formatComputingTypeLabel, isValidComputingType } from "./common/computing-type.js";
|
|
4
|
-
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS,
|
|
4
|
+
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./common/constants.js";
|
|
5
5
|
import { LineSeparator } from "./common/line-separator.js";
|
|
6
6
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./common/parameters.js";
|
|
7
7
|
import { CreateParameterDialog } from "./common/parameters-creation-dialog.js";
|
|
@@ -14,7 +14,7 @@ import { ParameterSwitch } from "./common/widget/parameter-switch.js";
|
|
|
14
14
|
import { CustomVoltageLevelTable } from "./common/voltage-level-table/custom-voltage-level-table.js";
|
|
15
15
|
import { CustomVoltageLevelTableCell } from "./common/voltage-level-table/custom-voltage-level-table-cell.js";
|
|
16
16
|
import { CustomVoltageLevelTableRow } from "./common/voltage-level-table/custom-voltage-level-table-row.js";
|
|
17
|
-
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM,
|
|
17
|
+
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema, toFormValuesLimitReductions } from "./common/limitreductions/columns-definitions.js";
|
|
18
18
|
import { LimitReductionsTableForm } from "./common/limitreductions/limit-reductions-table-form.js";
|
|
19
19
|
import { LimitReductionTableRow } from "./common/limitreductions/limit-reduction-table-row.js";
|
|
20
20
|
import { LimitReductionTableCell } from "./common/limitreductions/limit-reduction-table-cell.js";
|
|
@@ -40,6 +40,7 @@ import { PccMinParametersInLine } from "./pcc-min/pcc-min-parameters-inline.js";
|
|
|
40
40
|
import { PccMinParametersEditionDialog } from "./pcc-min/pcc-min-parameters-dialog.js";
|
|
41
41
|
import { SecurityAnalysisParametersInline } from "./security-analysis/security-analysis-parameters-inline.js";
|
|
42
42
|
import { SecurityAnalysisParametersDialog } from "./security-analysis/security-analysis-parameters-dialog.js";
|
|
43
|
+
import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TabValues } from "./security-analysis/constants.js";
|
|
43
44
|
import { SensitivityAnalysisParametersInline } from "./sensi/sensitivity-analysis-parameters-inline.js";
|
|
44
45
|
import { SensitivityAnalysisParametersDialog } from "./sensi/sensitivity-analysis-parameters-dialog.js";
|
|
45
46
|
import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SensiBranchesTabValues, SensiTabValues } from "./sensi/columns-definitions.js";
|
|
@@ -92,10 +93,13 @@ export {
|
|
|
92
93
|
DynamicSimulationInline,
|
|
93
94
|
EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
|
|
94
95
|
EquipmentsSelectionType,
|
|
96
|
+
FLOW_PROPORTIONAL_THRESHOLD,
|
|
95
97
|
GENERAL,
|
|
96
98
|
GENERAL_APPLY_MODIFICATIONS,
|
|
97
99
|
GENERATORS_SELECTION_TYPE,
|
|
100
|
+
HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
98
101
|
HIGH_VOLTAGE_LIMIT,
|
|
102
|
+
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
99
103
|
HVDC_AC_EMULATION,
|
|
100
104
|
HVDC_EQUIPMENT_TYPES,
|
|
101
105
|
INJECTIONS_EQUIPMENT_TYPES,
|
|
@@ -113,7 +117,9 @@ export {
|
|
|
113
117
|
LOAD_INCREASE_START_TIME,
|
|
114
118
|
LOAD_INCREASE_STOP_TIME,
|
|
115
119
|
LOAD_MODELS_RULE,
|
|
120
|
+
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
116
121
|
LOW_VOLTAGE_LIMIT,
|
|
122
|
+
LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
117
123
|
LabelledButton,
|
|
118
124
|
LimitReductionTableCell,
|
|
119
125
|
LimitReductionTableRow,
|
|
@@ -152,12 +158,6 @@ export {
|
|
|
152
158
|
PARAM_MAP_MANUAL_REFRESH,
|
|
153
159
|
PARAM_NAD_POSITIONS_GENERATION_MODE,
|
|
154
160
|
PARAM_PROVIDER_OPENLOADFLOW,
|
|
155
|
-
PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD,
|
|
156
|
-
PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
157
|
-
PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
158
|
-
PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
159
|
-
PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
160
|
-
PARAM_SA_PROVIDER,
|
|
161
161
|
PARAM_STATE_ESTIMATION,
|
|
162
162
|
PARAM_SUBSTATION_LAYOUT,
|
|
163
163
|
PHASE_SHIFTER_REGULATION_ON,
|
|
@@ -214,7 +214,6 @@ export {
|
|
|
214
214
|
ShortCircuitParametersInLine,
|
|
215
215
|
SubstationLayout,
|
|
216
216
|
SwitchWithLabel,
|
|
217
|
-
TAB_INFO,
|
|
218
217
|
TRANSFORMERS_SELECTION_TYPE,
|
|
219
218
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
220
219
|
TabPanel,
|
|
@@ -35,7 +35,6 @@ import "react-papaparse";
|
|
|
35
35
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
36
36
|
import { ADVANCED_PARAMETERS } from "../common/constants.js";
|
|
37
37
|
import "../common/widget/parameter-line-slider.js";
|
|
38
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
39
38
|
import "../common/contingency-table/contingency-table.js";
|
|
40
39
|
import "../common/contingency-table/columns-definitions.js";
|
|
41
40
|
import "@hookform/resolvers/yup";
|
|
@@ -35,7 +35,6 @@ import "react-papaparse";
|
|
|
35
35
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
36
36
|
import { COMMON_PARAMETERS } from "../common/constants.js";
|
|
37
37
|
import "../common/widget/parameter-line-slider.js";
|
|
38
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
39
38
|
import "../common/contingency-table/contingency-table.js";
|
|
40
39
|
import "../common/contingency-table/columns-definitions.js";
|
|
41
40
|
import "@hookform/resolvers/yup";
|
|
@@ -37,7 +37,6 @@ import "react-papaparse";
|
|
|
37
37
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
38
38
|
import { parametersStyles } from "../parameters-style.js";
|
|
39
39
|
import { ParameterLineSlider } from "../common/widget/parameter-line-slider.js";
|
|
40
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
41
40
|
import { LimitReductionsTableForm } from "../common/limitreductions/limit-reductions-table-form.js";
|
|
42
41
|
import "../common/contingency-table/contingency-table.js";
|
|
43
42
|
import "../common/contingency-table/columns-definitions.js";
|
|
@@ -34,7 +34,6 @@ import "react-papaparse";
|
|
|
34
34
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
35
35
|
import { ProviderParam } from "../common/provider-param.js";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
38
37
|
import "../common/contingency-table/contingency-table.js";
|
|
39
38
|
import "../common/contingency-table/columns-definitions.js";
|
|
40
39
|
import "@hookform/resolvers/yup";
|
|
@@ -38,7 +38,6 @@ import "mui-nested-menu";
|
|
|
38
38
|
import "react-resizable-panels";
|
|
39
39
|
import "react-papaparse";
|
|
40
40
|
import "../common/widget/parameter-line-slider.js";
|
|
41
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
42
41
|
import "../common/contingency-table/contingency-table.js";
|
|
43
42
|
import "../common/contingency-table/columns-definitions.js";
|
|
44
43
|
import "@hookform/resolvers/yup";
|
|
@@ -33,7 +33,6 @@ import "react-papaparse";
|
|
|
33
33
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
34
34
|
import { SPECIFIC_PARAMETERS } from "../common/constants.js";
|
|
35
35
|
import "../common/widget/parameter-line-slider.js";
|
|
36
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
37
36
|
import "../common/contingency-table/contingency-table.js";
|
|
38
37
|
import "../common/contingency-table/columns-definitions.js";
|
|
39
38
|
import "@hookform/resolvers/yup";
|
|
@@ -38,7 +38,6 @@ import "react-papaparse";
|
|
|
38
38
|
import { LineSeparator } from "../common/line-separator.js";
|
|
39
39
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
40
40
|
import "../common/widget/parameter-line-slider.js";
|
|
41
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
42
41
|
import "../common/contingency-table/contingency-table.js";
|
|
43
42
|
import "../common/contingency-table/columns-definitions.js";
|
|
44
43
|
import "@hookform/resolvers/yup";
|
|
@@ -37,7 +37,6 @@ import "react-resizable-panels";
|
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
39
39
|
import "../common/widget/parameter-line-slider.js";
|
|
40
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
41
40
|
import "../common/contingency-table/contingency-table.js";
|
|
42
41
|
import "../common/contingency-table/columns-definitions.js";
|
|
43
42
|
import "@hookform/resolvers/yup";
|
package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js
CHANGED
|
@@ -37,7 +37,6 @@ import "mui-nested-menu";
|
|
|
37
37
|
import "react-resizable-panels";
|
|
38
38
|
import "react-papaparse";
|
|
39
39
|
import "../common/widget/parameter-line-slider.js";
|
|
40
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
41
40
|
import "../common/contingency-table/contingency-table.js";
|
|
42
41
|
import "../common/contingency-table/columns-definitions.js";
|
|
43
42
|
import "@hookform/resolvers/yup";
|
|
@@ -35,7 +35,6 @@ import "react-papaparse";
|
|
|
35
35
|
import { LineSeparator } from "../common/line-separator.js";
|
|
36
36
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
37
37
|
import "../common/widget/parameter-line-slider.js";
|
|
38
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
39
38
|
import "../common/contingency-table/contingency-table.js";
|
|
40
39
|
import "../common/contingency-table/columns-definitions.js";
|
|
41
40
|
import "@hookform/resolvers/yup";
|
|
@@ -36,7 +36,6 @@ import "mui-nested-menu";
|
|
|
36
36
|
import "react-resizable-panels";
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../common/widget/parameter-line-slider.js";
|
|
39
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
40
39
|
import "../common/contingency-table/contingency-table.js";
|
|
41
40
|
import "../common/contingency-table/columns-definitions.js";
|
|
42
41
|
import "@hookform/resolvers/yup";
|
|
@@ -30,7 +30,7 @@ import "mui-nested-menu";
|
|
|
30
30
|
import "react-resizable-panels";
|
|
31
31
|
import "react-papaparse";
|
|
32
32
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
33
|
-
import {
|
|
33
|
+
import { PROVIDER } from "../common/constants.js";
|
|
34
34
|
import "../common/widget/parameter-line-slider.js";
|
|
35
35
|
import { getLimitReductionsFormSchema, toFormValuesLimitReductions } from "../common/limitreductions/columns-definitions.js";
|
|
36
36
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -38,20 +38,21 @@ import { getContingencyListsInfosFormSchema, toFormValuesContingencyListsInfos }
|
|
|
38
38
|
import "@hookform/resolvers/yup";
|
|
39
39
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
40
40
|
import { getNameElementEditorSchema } from "../common/name-element-editor/name-element-editor-utils.js";
|
|
41
|
+
import { HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, FLOW_PROPORTIONAL_THRESHOLD } from "./constants.js";
|
|
41
42
|
const getSAParametersFormSchema = (name, limitReductions) => {
|
|
42
43
|
const providerSchema = yup.object().shape({
|
|
43
|
-
[
|
|
44
|
+
[PROVIDER]: yup.string().required()
|
|
44
45
|
});
|
|
45
46
|
const contingencyListsInfosSchema = getContingencyListsInfosFormSchema();
|
|
46
47
|
const limitReductionsSchema = getLimitReductionsFormSchema(
|
|
47
48
|
limitReductions?.length ? limitReductions[0].temporaryLimitReductions.length : 0
|
|
48
49
|
);
|
|
49
50
|
const thresholdsSchema = yup.object().shape({
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
51
|
+
[FLOW_PROPORTIONAL_THRESHOLD]: yup.number().min(0, "NormalizedPercentage").max(100, "NormalizedPercentage").required(),
|
|
52
|
+
[LOW_VOLTAGE_PROPORTIONAL_THRESHOLD]: yup.number().min(0, "NormalizedPercentage").max(100, "NormalizedPercentage").required(),
|
|
53
|
+
[LOW_VOLTAGE_ABSOLUTE_THRESHOLD]: yup.number().required(),
|
|
54
|
+
[HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD]: yup.number().min(0, "NormalizedPercentage").max(100, "NormalizedPercentage").required(),
|
|
55
|
+
[HIGH_VOLTAGE_ABSOLUTE_THRESHOLD]: yup.number().required()
|
|
55
56
|
});
|
|
56
57
|
return yup.object().shape({
|
|
57
58
|
...providerSchema.fields,
|
|
@@ -61,15 +62,15 @@ const getSAParametersFormSchema = (name, limitReductions) => {
|
|
|
61
62
|
}).concat(getNameElementEditorSchema(name));
|
|
62
63
|
};
|
|
63
64
|
const toFormValueSaParameters = (params) => ({
|
|
64
|
-
[
|
|
65
|
+
[PROVIDER]: params.provider,
|
|
65
66
|
...toFormValuesContingencyListsInfos(params?.contingencyListsInfos ?? []),
|
|
66
67
|
...toFormValuesLimitReductions(params?.limitReductions),
|
|
67
68
|
// SA specific form values
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
69
|
+
[FLOW_PROPORTIONAL_THRESHOLD]: params.flowProportionalThreshold * 100,
|
|
70
|
+
[LOW_VOLTAGE_PROPORTIONAL_THRESHOLD]: params.lowVoltageProportionalThreshold * 100,
|
|
71
|
+
[LOW_VOLTAGE_ABSOLUTE_THRESHOLD]: params.lowVoltageAbsoluteThreshold,
|
|
72
|
+
[HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD]: params.highVoltageProportionalThreshold * 100,
|
|
73
|
+
[HIGH_VOLTAGE_ABSOLUTE_THRESHOLD]: params.highVoltageAbsoluteThreshold
|
|
73
74
|
});
|
|
74
75
|
export {
|
|
75
76
|
getSAParametersFormSchema,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FLOW_PROPORTIONAL_THRESHOLD = "flowProportionalThreshold";
|
|
8
|
+
export declare const LOW_VOLTAGE_PROPORTIONAL_THRESHOLD = "lowVoltageProportionalThreshold";
|
|
9
|
+
export declare const LOW_VOLTAGE_ABSOLUTE_THRESHOLD = "lowVoltageAbsoluteThreshold";
|
|
10
|
+
export declare const HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD = "highVoltageProportionalThreshold";
|
|
11
|
+
export declare const HIGH_VOLTAGE_ABSOLUTE_THRESHOLD = "highVoltageAbsoluteThreshold";
|
|
12
|
+
export declare enum TabValues {
|
|
13
|
+
Contingencies = 0,
|
|
14
|
+
Aggravation = 1,
|
|
15
|
+
LimitReductions = 2
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const FLOW_PROPORTIONAL_THRESHOLD = "flowProportionalThreshold";
|
|
2
|
+
const LOW_VOLTAGE_PROPORTIONAL_THRESHOLD = "lowVoltageProportionalThreshold";
|
|
3
|
+
const LOW_VOLTAGE_ABSOLUTE_THRESHOLD = "lowVoltageAbsoluteThreshold";
|
|
4
|
+
const HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD = "highVoltageProportionalThreshold";
|
|
5
|
+
const HIGH_VOLTAGE_ABSOLUTE_THRESHOLD = "highVoltageAbsoluteThreshold";
|
|
6
|
+
var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
7
|
+
TabValues2[TabValues2["Contingencies"] = 0] = "Contingencies";
|
|
8
|
+
TabValues2[TabValues2["Aggravation"] = 1] = "Aggravation";
|
|
9
|
+
TabValues2[TabValues2["LimitReductions"] = 2] = "LimitReductions";
|
|
10
|
+
return TabValues2;
|
|
11
|
+
})(TabValues || {});
|
|
12
|
+
export {
|
|
13
|
+
FLOW_PROPORTIONAL_THRESHOLD,
|
|
14
|
+
HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
15
|
+
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
16
|
+
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
17
|
+
LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
18
|
+
TabValues
|
|
19
|
+
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { SecurityAnalysisParametersInline } from "./security-analysis-parameters-inline.js";
|
|
2
2
|
import { SecurityAnalysisParametersDialog } from "./security-analysis-parameters-dialog.js";
|
|
3
|
+
import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TabValues } from "./constants.js";
|
|
3
4
|
export {
|
|
5
|
+
FLOW_PROPORTIONAL_THRESHOLD,
|
|
6
|
+
HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
7
|
+
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
8
|
+
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
9
|
+
LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
4
10
|
SecurityAnalysisParametersDialog,
|
|
5
|
-
SecurityAnalysisParametersInline
|
|
11
|
+
SecurityAnalysisParametersInline,
|
|
12
|
+
TabValues
|
|
6
13
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ForwardedRef } from 'react';
|
|
2
|
+
import { UUID } from 'node:crypto';
|
|
3
|
+
import { ILimitReductionsByVoltageLevel, ContingencyTableApi } from '../common';
|
|
4
|
+
import { ContingencyCount } from '../common/contingency-table/types';
|
|
5
|
+
import { SAParametersEnriched } from '../../../utils/types';
|
|
6
|
+
export declare function SecurityAnalysisParametersContent({ params, currentProvider, defaultLimitReductions, showContingencyCount, fetchContingencyCount, contingencyTableApiRef, isBuiltCurrentNode, }: Readonly<{
|
|
7
|
+
params: SAParametersEnriched | null;
|
|
8
|
+
currentProvider?: string;
|
|
9
|
+
defaultLimitReductions: ILimitReductionsByVoltageLevel[];
|
|
10
|
+
showContingencyCount: boolean;
|
|
11
|
+
fetchContingencyCount?: (contingencyListIds: UUID[] | null, abortSignal: AbortSignal) => Promise<ContingencyCount>;
|
|
12
|
+
contingencyTableApiRef?: ForwardedRef<ContingencyTableApi>;
|
|
13
|
+
isBuiltCurrentNode?: boolean;
|
|
14
|
+
}>): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useMemo, useEffect } from "react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Tabs, Tab } from "@mui/material";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
6
|
import { TabPanel } from "../common/parameters.js";
|
|
7
7
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -31,10 +31,10 @@ import "mui-nested-menu";
|
|
|
31
31
|
import "react-resizable-panels";
|
|
32
32
|
import "react-papaparse";
|
|
33
33
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
34
|
+
import { CONTINGENCY_LISTS_INFOS } from "../common/constants.js";
|
|
34
35
|
import "../common/widget/parameter-line-slider.js";
|
|
35
|
-
import { TabValues, TAB_INFO } from "../common/limitreductions/columns-definitions.js";
|
|
36
36
|
import { LimitReductionsTableForm } from "../common/limitreductions/limit-reductions-table-form.js";
|
|
37
|
-
import "../common/contingency-table/contingency-table.js";
|
|
37
|
+
import { ContingencyTable } from "../common/contingency-table/contingency-table.js";
|
|
38
38
|
import "../common/contingency-table/columns-definitions.js";
|
|
39
39
|
import "@hookform/resolvers/yup";
|
|
40
40
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
@@ -43,45 +43,75 @@ import "../loadflow/load-flow-parameters-context.js";
|
|
|
43
43
|
import "../loadflow/load-flow-advanced-parameters.js";
|
|
44
44
|
import "../loadflow/load-flow-parameters-content.js";
|
|
45
45
|
import { ViolationsHidingParameters } from "./security-analysis-violations-hiding.js";
|
|
46
|
-
|
|
46
|
+
import { TabValues } from "./constants.js";
|
|
47
|
+
const styles = {
|
|
48
|
+
tab: {
|
|
49
|
+
fontSize: 17,
|
|
50
|
+
fontWeight: "bold"
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
function SecurityAnalysisParametersContent({
|
|
47
54
|
params,
|
|
48
55
|
currentProvider,
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
defaultLimitReductions,
|
|
57
|
+
showContingencyCount,
|
|
58
|
+
fetchContingencyCount,
|
|
59
|
+
contingencyTableApiRef,
|
|
60
|
+
isBuiltCurrentNode
|
|
51
61
|
}) {
|
|
52
|
-
const [tabSelected, setTabSelected] = useState(TabValues.
|
|
62
|
+
const [tabSelected, setTabSelected] = useState(TabValues.Contingencies);
|
|
53
63
|
const handleTabChange = useCallback((event, newValue) => {
|
|
54
64
|
setTabSelected(newValue);
|
|
55
65
|
}, []);
|
|
56
66
|
const tabValue = useMemo(() => {
|
|
57
|
-
return tabSelected === TabValues.LimitReductions && !params?.limitReductions ? TabValues.
|
|
67
|
+
return tabSelected === TabValues.LimitReductions && !params?.limitReductions ? TabValues.Contingencies : tabSelected;
|
|
58
68
|
}, [params, tabSelected]);
|
|
59
69
|
useEffect(() => {
|
|
60
|
-
if (currentProvider !== PARAM_PROVIDER_OPENLOADFLOW) {
|
|
61
|
-
setTabSelected(TabValues.
|
|
70
|
+
if (currentProvider !== PARAM_PROVIDER_OPENLOADFLOW && tabSelected === TabValues.LimitReductions) {
|
|
71
|
+
setTabSelected(TabValues.Contingencies);
|
|
62
72
|
}
|
|
63
|
-
}, [currentProvider]);
|
|
64
|
-
return /* @__PURE__ */ jsxs(
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
73
|
+
}, [currentProvider, tabSelected]);
|
|
74
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75
|
+
/* @__PURE__ */ jsxs(Tabs, { value: tabValue, onChange: handleTabChange, children: [
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
Tab,
|
|
78
|
+
{
|
|
79
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: TabValues[TabValues.Contingencies] }),
|
|
80
|
+
value: TabValues.Contingencies,
|
|
81
|
+
sx: styles.tab
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ jsx(
|
|
85
|
+
Tab,
|
|
86
|
+
{
|
|
87
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: TabValues[TabValues.Aggravation] }),
|
|
88
|
+
value: TabValues.Aggravation,
|
|
89
|
+
sx: styles.tab
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions && /* @__PURE__ */ jsx(
|
|
67
93
|
Tab,
|
|
68
94
|
{
|
|
69
|
-
label: /* @__PURE__ */ jsx(FormattedMessage, { id:
|
|
70
|
-
value:
|
|
71
|
-
sx:
|
|
72
|
-
|
|
73
|
-
fontWeight: "bold"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
tab.label
|
|
95
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: TabValues[TabValues.LimitReductions] }),
|
|
96
|
+
value: TabValues.LimitReductions,
|
|
97
|
+
sx: styles.tab
|
|
98
|
+
}
|
|
77
99
|
)
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ jsx(TabPanel, { value: tabValue, index: TabValues.Contingencies, keepState: true, children: /* @__PURE__ */ jsx(
|
|
102
|
+
ContingencyTable,
|
|
103
|
+
{
|
|
104
|
+
name: CONTINGENCY_LISTS_INFOS,
|
|
105
|
+
showContingencyCount,
|
|
106
|
+
fetchContingencyCount,
|
|
107
|
+
isBuiltCurrentNode,
|
|
108
|
+
ref: contingencyTableApiRef
|
|
109
|
+
}
|
|
78
110
|
) }),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
tabValue === TabValues.LimitReductions && currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions && /* @__PURE__ */ jsx(Grid2, { sx: { width: "100%" }, children: /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) })
|
|
82
|
-
] }, tab.label))
|
|
111
|
+
/* @__PURE__ */ jsx(TabPanel, { value: tabValue, index: TabValues.Aggravation, children: /* @__PURE__ */ jsx(ViolationsHidingParameters, {}) }),
|
|
112
|
+
/* @__PURE__ */ jsx(TabPanel, { value: tabValue, index: TabValues.LimitReductions, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions && /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params.limitReductions ?? defaultLimitReductions }) })
|
|
83
113
|
] });
|
|
84
114
|
}
|
|
85
115
|
export {
|
|
86
|
-
|
|
116
|
+
SecurityAnalysisParametersContent
|
|
87
117
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ParametersEditionDialogProps } from '../common';
|
|
2
|
-
export declare function SecurityAnalysisParametersDialog({ id, open, onClose, titleId, name, description, activeDirectory, language, userProfile,
|
|
2
|
+
export declare function SecurityAnalysisParametersDialog({ id, open, onClose, titleId, name, description, activeDirectory, language, userProfile, }: Readonly<ParametersEditionDialogProps>): import("react").JSX.Element;
|
|
@@ -46,8 +46,7 @@ function SecurityAnalysisParametersDialog({
|
|
|
46
46
|
description,
|
|
47
47
|
activeDirectory,
|
|
48
48
|
language,
|
|
49
|
-
userProfile
|
|
50
|
-
isDeveloperMode = false
|
|
49
|
+
userProfile
|
|
51
50
|
}) {
|
|
52
51
|
const parametersBackend = useParametersBackend(
|
|
53
52
|
userProfile,
|
|
@@ -99,8 +98,7 @@ function SecurityAnalysisParametersDialog({
|
|
|
99
98
|
SecurityAnalysisParametersForm,
|
|
100
99
|
{
|
|
101
100
|
securityAnalysisMethods,
|
|
102
|
-
showContingencyCount: false
|
|
103
|
-
isDeveloperMode
|
|
101
|
+
showContingencyCount: false
|
|
104
102
|
}
|
|
105
103
|
) : /* @__PURE__ */ jsx(LinearProgress, {})
|
|
106
104
|
]
|
|
@@ -9,6 +9,5 @@ export type SecurityAnalysisParametersFormProps = {
|
|
|
9
9
|
fetchContingencyCount?: (contingencyListIds: UUID[] | null, abortSignal: AbortSignal) => Promise<ContingencyCount>;
|
|
10
10
|
contingencyTableApiRef?: ForwardedRef<ContingencyTableApi>;
|
|
11
11
|
isBuiltCurrentNode?: boolean;
|
|
12
|
-
isDeveloperMode: boolean;
|
|
13
12
|
};
|
|
14
|
-
export declare function SecurityAnalysisParametersForm({ securityAnalysisMethods, showContingencyCount, fetchContingencyCount, contingencyTableApiRef, isBuiltCurrentNode,
|
|
13
|
+
export declare function SecurityAnalysisParametersForm({ securityAnalysisMethods, showContingencyCount, fetchContingencyCount, contingencyTableApiRef, isBuiltCurrentNode, }: Readonly<SecurityAnalysisParametersFormProps>): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack
|
|
2
|
+
import { Stack } from "@mui/material";
|
|
3
3
|
import { parametersStyles } from "../parameters-style.js";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "react";
|
|
@@ -30,45 +30,33 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
30
30
|
import "mui-nested-menu";
|
|
31
31
|
import "react-resizable-panels";
|
|
32
32
|
import "react-papaparse";
|
|
33
|
-
import { LineSeparator } from "../common/line-separator.js";
|
|
34
33
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
35
|
-
import { CONTINGENCY_LISTS_INFOS } from "../common/constants.js";
|
|
36
34
|
import { ProviderParam } from "../common/provider-param.js";
|
|
37
35
|
import "../common/widget/parameter-line-slider.js";
|
|
38
|
-
import "../common/
|
|
39
|
-
import { ContingencyTable } from "../common/contingency-table/contingency-table.js";
|
|
36
|
+
import "../common/contingency-table/contingency-table.js";
|
|
40
37
|
import "../common/contingency-table/columns-definitions.js";
|
|
41
38
|
import "@hookform/resolvers/yup";
|
|
42
39
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
43
|
-
import {
|
|
40
|
+
import { SecurityAnalysisParametersContent } from "./security-analysis-parameters-content.js";
|
|
44
41
|
function SecurityAnalysisParametersForm({
|
|
45
42
|
securityAnalysisMethods,
|
|
46
43
|
showContingencyCount,
|
|
47
44
|
fetchContingencyCount,
|
|
48
45
|
contingencyTableApiRef,
|
|
49
|
-
isBuiltCurrentNode
|
|
50
|
-
isDeveloperMode
|
|
46
|
+
isBuiltCurrentNode
|
|
51
47
|
}) {
|
|
52
48
|
return /* @__PURE__ */ jsxs(Stack, { sx: parametersStyles.scrollableGrid, children: [
|
|
53
49
|
/* @__PURE__ */ jsx(ProviderParam, { options: securityAnalysisMethods.formattedProviders, id: "Sa", sx: { paddingBottom: 1 } }),
|
|
54
50
|
/* @__PURE__ */ jsx(
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
name: CONTINGENCY_LISTS_INFOS,
|
|
58
|
-
showContingencyCount,
|
|
59
|
-
fetchContingencyCount,
|
|
60
|
-
isBuiltCurrentNode,
|
|
61
|
-
ref: contingencyTableApiRef
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx(Box, { paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
|
|
65
|
-
/* @__PURE__ */ jsx(
|
|
66
|
-
SecurityAnalysisParametersSelector,
|
|
51
|
+
SecurityAnalysisParametersContent,
|
|
67
52
|
{
|
|
68
53
|
params: securityAnalysisMethods.params,
|
|
69
54
|
currentProvider: securityAnalysisMethods.watchProvider?.trim(),
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
defaultLimitReductions: securityAnalysisMethods.defaultLimitReductions,
|
|
56
|
+
showContingencyCount,
|
|
57
|
+
fetchContingencyCount,
|
|
58
|
+
contingencyTableApiRef,
|
|
59
|
+
isBuiltCurrentNode
|
|
72
60
|
}
|
|
73
61
|
)
|
|
74
62
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
2
|
import { ComputingType, UseParametersBackendReturnProps } from '../../../utils';
|
|
3
3
|
import { ContingencyCount } from '../common/contingency-table/types';
|
|
4
|
-
export declare function SecurityAnalysisParametersInline({ studyUuid, parametersBackend, fetchContingencyCount, isBuiltCurrentNode, setHaveDirtyFields,
|
|
4
|
+
export declare function SecurityAnalysisParametersInline({ studyUuid, parametersBackend, fetchContingencyCount, isBuiltCurrentNode, setHaveDirtyFields, }: Readonly<{
|
|
5
5
|
studyUuid: UUID | null;
|
|
6
6
|
parametersBackend: UseParametersBackendReturnProps<ComputingType.SECURITY_ANALYSIS>;
|
|
7
7
|
fetchContingencyCount: (contingencyListIds: UUID[] | null, abortSignal: AbortSignal) => Promise<ContingencyCount>;
|
|
@@ -36,7 +36,6 @@ import "mui-nested-menu";
|
|
|
36
36
|
import "react-resizable-panels";
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../common/widget/parameter-line-slider.js";
|
|
39
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
40
39
|
import "../common/contingency-table/contingency-table.js";
|
|
41
40
|
import "../common/contingency-table/columns-definitions.js";
|
|
42
41
|
import "@hookform/resolvers/yup";
|
|
@@ -49,8 +48,7 @@ function SecurityAnalysisParametersInline({
|
|
|
49
48
|
parametersBackend,
|
|
50
49
|
fetchContingencyCount,
|
|
51
50
|
isBuiltCurrentNode,
|
|
52
|
-
setHaveDirtyFields
|
|
53
|
-
isDeveloperMode
|
|
51
|
+
setHaveDirtyFields
|
|
54
52
|
}) {
|
|
55
53
|
const securityAnalysisMethods = useSecurityAnalysisParametersForm(parametersBackend, null, null, null);
|
|
56
54
|
const { resetParameters } = parametersBackend;
|
|
@@ -106,8 +104,7 @@ function SecurityAnalysisParametersInline({
|
|
|
106
104
|
showContingencyCount: true,
|
|
107
105
|
fetchContingencyCount,
|
|
108
106
|
contingencyTableApiRef,
|
|
109
|
-
isBuiltCurrentNode
|
|
110
|
-
isDeveloperMode
|
|
107
|
+
isBuiltCurrentNode
|
|
111
108
|
}
|
|
112
109
|
)
|
|
113
110
|
}
|
|
@@ -32,14 +32,7 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
32
32
|
import "mui-nested-menu";
|
|
33
33
|
import "react-resizable-panels";
|
|
34
34
|
import "react-papaparse";
|
|
35
|
-
import "
|
|
36
|
-
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD } from "../common/constants.js";
|
|
37
|
-
import "../common/widget/parameter-line-slider.js";
|
|
38
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
39
|
-
import "../common/contingency-table/contingency-table.js";
|
|
40
|
-
import "../common/contingency-table/columns-definitions.js";
|
|
41
|
-
import "@hookform/resolvers/yup";
|
|
42
|
-
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
35
|
+
import { FLOW_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD } from "./constants.js";
|
|
43
36
|
function SecurityAnalysisFields({
|
|
44
37
|
label,
|
|
45
38
|
firstField,
|
|
@@ -85,7 +78,7 @@ const fieldsToShow = [
|
|
|
85
78
|
{
|
|
86
79
|
label: "securityAnalysis.current",
|
|
87
80
|
firstField: {
|
|
88
|
-
name:
|
|
81
|
+
name: FLOW_PROPORTIONAL_THRESHOLD,
|
|
89
82
|
label: "%"
|
|
90
83
|
},
|
|
91
84
|
tooltipInfoId: "securityAnalysis.toolTip.current",
|
|
@@ -94,24 +87,24 @@ const fieldsToShow = [
|
|
|
94
87
|
{
|
|
95
88
|
label: "securityAnalysis.lowVoltage",
|
|
96
89
|
firstField: {
|
|
97
|
-
name:
|
|
90
|
+
name: LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
98
91
|
label: "%"
|
|
99
92
|
},
|
|
100
93
|
secondField: {
|
|
101
94
|
label: "kV",
|
|
102
|
-
name:
|
|
95
|
+
name: LOW_VOLTAGE_ABSOLUTE_THRESHOLD
|
|
103
96
|
},
|
|
104
97
|
tooltipInfoId: "securityAnalysis.toolTip.lowVoltage"
|
|
105
98
|
},
|
|
106
99
|
{
|
|
107
100
|
label: "securityAnalysis.highVoltage",
|
|
108
101
|
firstField: {
|
|
109
|
-
name:
|
|
102
|
+
name: HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
110
103
|
label: "%"
|
|
111
104
|
},
|
|
112
105
|
secondField: {
|
|
113
106
|
label: "kV",
|
|
114
|
-
name:
|
|
107
|
+
name: HIGH_VOLTAGE_ABSOLUTE_THRESHOLD
|
|
115
108
|
},
|
|
116
109
|
tooltipInfoId: "securityAnalysis.toolTip.highVoltage"
|
|
117
110
|
}
|