@gridsuite/commons-ui 0.248.0 → 0.249.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/features/index.js +8 -9
- 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 +8 -9
- package/dist/translations/en/parameters.d.ts +2 -0
- package/dist/translations/en/parameters.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
package/dist/features/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { TopBar } from "./topBar/TopBar.js";
|
|
|
21
21
|
import { ParameterLayout } from "./parameters/common/parameter-layout/parameter-layout.js";
|
|
22
22
|
import { ParameterLayoutProvider, useParameterLayoutContext } from "./parameters/common/parameter-layout/parameter-layout-provider.js";
|
|
23
23
|
import { formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
24
|
-
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS,
|
|
24
|
+
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./parameters/common/constants.js";
|
|
25
25
|
import { LineSeparator } from "./parameters/common/line-separator.js";
|
|
26
26
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters/common/parameters.js";
|
|
27
27
|
import { CreateParameterDialog } from "./parameters/common/parameters-creation-dialog.js";
|
|
@@ -34,7 +34,7 @@ import { ParameterSwitch } from "./parameters/common/widget/parameter-switch.js"
|
|
|
34
34
|
import { CustomVoltageLevelTable } from "./parameters/common/voltage-level-table/custom-voltage-level-table.js";
|
|
35
35
|
import { CustomVoltageLevelTableCell } from "./parameters/common/voltage-level-table/custom-voltage-level-table-cell.js";
|
|
36
36
|
import { CustomVoltageLevelTableRow } from "./parameters/common/voltage-level-table/custom-voltage-level-table-row.js";
|
|
37
|
-
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM,
|
|
37
|
+
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema, toFormValuesLimitReductions } from "./parameters/common/limitreductions/columns-definitions.js";
|
|
38
38
|
import { LimitReductionsTableForm } from "./parameters/common/limitreductions/limit-reductions-table-form.js";
|
|
39
39
|
import { LimitReductionTableRow } from "./parameters/common/limitreductions/limit-reduction-table-row.js";
|
|
40
40
|
import { LimitReductionTableCell } from "./parameters/common/limitreductions/limit-reduction-table-cell.js";
|
|
@@ -60,6 +60,7 @@ import { PccMinParametersInLine } from "./parameters/pcc-min/pcc-min-parameters-
|
|
|
60
60
|
import { PccMinParametersEditionDialog } from "./parameters/pcc-min/pcc-min-parameters-dialog.js";
|
|
61
61
|
import { SecurityAnalysisParametersInline } from "./parameters/security-analysis/security-analysis-parameters-inline.js";
|
|
62
62
|
import { SecurityAnalysisParametersDialog } from "./parameters/security-analysis/security-analysis-parameters-dialog.js";
|
|
63
|
+
import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TabValues } from "./parameters/security-analysis/constants.js";
|
|
63
64
|
import { SensitivityAnalysisParametersInline } from "./parameters/sensi/sensitivity-analysis-parameters-inline.js";
|
|
64
65
|
import { SensitivityAnalysisParametersDialog } from "./parameters/sensi/sensitivity-analysis-parameters-dialog.js";
|
|
65
66
|
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 "./parameters/sensi/columns-definitions.js";
|
|
@@ -323,6 +324,7 @@ export {
|
|
|
323
324
|
EquipmentsSelectionType,
|
|
324
325
|
ErrorInLogoutAlert,
|
|
325
326
|
ErrorInUserValidationAlert,
|
|
327
|
+
FLOW_PROPORTIONAL_THRESHOLD,
|
|
326
328
|
GENERAL,
|
|
327
329
|
GENERAL_APPLY_MODIFICATIONS,
|
|
328
330
|
GENERATORS_SELECTION_TYPE,
|
|
@@ -334,7 +336,9 @@ export {
|
|
|
334
336
|
GeneratorDialogTabsContent,
|
|
335
337
|
GeneratorModificationForm,
|
|
336
338
|
GridLogo,
|
|
339
|
+
HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
337
340
|
HIGH_VOLTAGE_LIMIT,
|
|
341
|
+
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
338
342
|
HVDC_AC_EMULATION,
|
|
339
343
|
HVDC_EQUIPMENT_TYPES,
|
|
340
344
|
HvdcLccDeletionSpecificForm,
|
|
@@ -356,7 +360,9 @@ export {
|
|
|
356
360
|
LOAD_INCREASE_STOP_TIME,
|
|
357
361
|
LOAD_MODELS_RULE,
|
|
358
362
|
LOAD_TAB_FIELDS,
|
|
363
|
+
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
359
364
|
LOW_VOLTAGE_LIMIT,
|
|
365
|
+
LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
360
366
|
LabelledButton,
|
|
361
367
|
LimitReductionTableCell,
|
|
362
368
|
LimitReductionTableRow,
|
|
@@ -434,12 +440,6 @@ export {
|
|
|
434
440
|
PARAM_MAP_MANUAL_REFRESH,
|
|
435
441
|
PARAM_NAD_POSITIONS_GENERATION_MODE,
|
|
436
442
|
PARAM_PROVIDER_OPENLOADFLOW,
|
|
437
|
-
PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD,
|
|
438
|
-
PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
439
|
-
PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
440
|
-
PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
441
|
-
PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
442
|
-
PARAM_SA_PROVIDER,
|
|
443
443
|
PARAM_STATE_ESTIMATION,
|
|
444
444
|
PARAM_SUBSTATION_LAYOUT,
|
|
445
445
|
PHASE_SHIFTER_REGULATION_ON,
|
|
@@ -536,7 +536,6 @@ export {
|
|
|
536
536
|
SwitchKind,
|
|
537
537
|
SwitchWithLabel,
|
|
538
538
|
SwitchesBetweenSections,
|
|
539
|
-
TAB_INFO,
|
|
540
539
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
541
540
|
TRANSFORMERS_SELECTION_TYPE,
|
|
542
541
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export declare const PROVIDER = "provider";
|
|
2
2
|
export declare const VOLTAGE_LEVEL = "voltageLevel";
|
|
3
|
-
export declare const PARAM_SA_PROVIDER = "provider";
|
|
4
|
-
export declare const PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD = "flowProportionalThreshold";
|
|
5
|
-
export declare const PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD = "lowVoltageProportionalThreshold";
|
|
6
|
-
export declare const PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD = "lowVoltageAbsoluteThreshold";
|
|
7
|
-
export declare const PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD = "highVoltageProportionalThreshold";
|
|
8
|
-
export declare const PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD = "highVoltageAbsoluteThreshold";
|
|
9
3
|
export declare const VERSION_PARAMETER = "version";
|
|
10
4
|
export declare const COMMON_PARAMETERS = "commonParameters";
|
|
11
5
|
export declare const ADVANCED_PARAMETERS = "advancedParameters";
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
const PROVIDER = "provider";
|
|
2
2
|
const VOLTAGE_LEVEL = "voltageLevel";
|
|
3
|
-
const PARAM_SA_PROVIDER = "provider";
|
|
4
|
-
const PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD = "flowProportionalThreshold";
|
|
5
|
-
const PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD = "lowVoltageProportionalThreshold";
|
|
6
|
-
const PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD = "lowVoltageAbsoluteThreshold";
|
|
7
|
-
const PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD = "highVoltageProportionalThreshold";
|
|
8
|
-
const PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD = "highVoltageAbsoluteThreshold";
|
|
9
3
|
const VERSION_PARAMETER = "version";
|
|
10
4
|
const COMMON_PARAMETERS = "commonParameters";
|
|
11
5
|
const ADVANCED_PARAMETERS = "advancedParameters";
|
|
@@ -19,12 +13,6 @@ export {
|
|
|
19
13
|
CONTINGENCIES,
|
|
20
14
|
CONTINGENCY_LISTS,
|
|
21
15
|
CONTINGENCY_LISTS_INFOS,
|
|
22
|
-
PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD,
|
|
23
|
-
PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
24
|
-
PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
25
|
-
PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
26
|
-
PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
27
|
-
PARAM_SA_PROVIDER,
|
|
28
16
|
PROVIDER,
|
|
29
17
|
SPECIFIC_PARAMETERS,
|
|
30
18
|
VERSION_PARAMETER,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ParameterLayout } from "./parameter-layout/parameter-layout.js";
|
|
2
2
|
import { ParameterLayoutProvider, useParameterLayoutContext } from "./parameter-layout/parameter-layout-provider.js";
|
|
3
3
|
import { formatComputingTypeLabel, isValidComputingType } from "./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 "./constants.js";
|
|
5
5
|
import { LineSeparator } from "./line-separator.js";
|
|
6
6
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters.js";
|
|
7
7
|
import { CreateParameterDialog } from "./parameters-creation-dialog.js";
|
|
@@ -14,7 +14,7 @@ import { ParameterSwitch } from "./widget/parameter-switch.js";
|
|
|
14
14
|
import { CustomVoltageLevelTable } from "./voltage-level-table/custom-voltage-level-table.js";
|
|
15
15
|
import { CustomVoltageLevelTableCell } from "./voltage-level-table/custom-voltage-level-table-cell.js";
|
|
16
16
|
import { CustomVoltageLevelTableRow } from "./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 "./limitreductions/columns-definitions.js";
|
|
18
18
|
import { LimitReductionsTableForm } from "./limitreductions/limit-reductions-table-form.js";
|
|
19
19
|
import { LimitReductionTableRow } from "./limitreductions/limit-reduction-table-row.js";
|
|
20
20
|
import { LimitReductionTableCell } from "./limitreductions/limit-reduction-table-cell.js";
|
|
@@ -43,12 +43,6 @@ export {
|
|
|
43
43
|
LimitReductionTableRow,
|
|
44
44
|
LimitReductionsTableForm,
|
|
45
45
|
LineSeparator,
|
|
46
|
-
PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD,
|
|
47
|
-
PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
48
|
-
PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
49
|
-
PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
50
|
-
PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
51
|
-
PARAM_SA_PROVIDER,
|
|
52
46
|
PROVIDER,
|
|
53
47
|
ParameterFloat,
|
|
54
48
|
ParameterGroup,
|
|
@@ -60,9 +54,7 @@ export {
|
|
|
60
54
|
ProviderParam,
|
|
61
55
|
SPECIFIC_PARAMETERS,
|
|
62
56
|
SwitchWithLabel,
|
|
63
|
-
TAB_INFO,
|
|
64
57
|
TabPanel,
|
|
65
|
-
TabValues,
|
|
66
58
|
VERSION_PARAMETER,
|
|
67
59
|
VOLTAGE_LEVEL,
|
|
68
60
|
VOLTAGE_LEVELS_FORM,
|
|
@@ -29,14 +29,6 @@ export interface ILimitReductionsByVoltageLevel {
|
|
|
29
29
|
permanentLimitReduction: number;
|
|
30
30
|
temporaryLimitReductions: ITemporaryLimitReduction[];
|
|
31
31
|
}
|
|
32
|
-
export declare enum TabValues {
|
|
33
|
-
General = 0,
|
|
34
|
-
LimitReductions = 1
|
|
35
|
-
}
|
|
36
|
-
export declare const TAB_INFO: {
|
|
37
|
-
label: string;
|
|
38
|
-
developerModeOnly: boolean;
|
|
39
|
-
}[];
|
|
40
32
|
export interface LimitReductionIColumnsDef {
|
|
41
33
|
label: React.ReactNode;
|
|
42
34
|
dataKey: string;
|
|
@@ -3,21 +3,6 @@ const LIMIT_REDUCTIONS_FORM = "limitReductionsForm";
|
|
|
3
3
|
const VOLTAGE_LEVELS_FORM = "voltageLevelsForm";
|
|
4
4
|
const IST_FORM = "istForm";
|
|
5
5
|
const LIMIT_DURATION_FORM = "limitReductionForm";
|
|
6
|
-
var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
7
|
-
TabValues2[TabValues2["General"] = 0] = "General";
|
|
8
|
-
TabValues2[TabValues2["LimitReductions"] = 1] = "LimitReductions";
|
|
9
|
-
return TabValues2;
|
|
10
|
-
})(TabValues || {});
|
|
11
|
-
const TAB_INFO = [
|
|
12
|
-
{ label: TabValues[
|
|
13
|
-
0
|
|
14
|
-
/* General */
|
|
15
|
-
], developerModeOnly: false },
|
|
16
|
-
{ label: TabValues[
|
|
17
|
-
1
|
|
18
|
-
/* LimitReductions */
|
|
19
|
-
], developerModeOnly: false }
|
|
20
|
-
];
|
|
21
6
|
const COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS = [
|
|
22
7
|
{
|
|
23
8
|
label: "voltageRange",
|
|
@@ -64,8 +49,6 @@ export {
|
|
|
64
49
|
IST_FORM,
|
|
65
50
|
LIMIT_DURATION_FORM,
|
|
66
51
|
LIMIT_REDUCTIONS_FORM,
|
|
67
|
-
TAB_INFO,
|
|
68
|
-
TabValues,
|
|
69
52
|
VOLTAGE_LEVELS_FORM,
|
|
70
53
|
getLimitReductionsFormSchema,
|
|
71
54
|
toFormValuesLimitReductions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM,
|
|
1
|
+
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema, toFormValuesLimitReductions } from "./columns-definitions.js";
|
|
2
2
|
import { LimitReductionsTableForm } from "./limit-reductions-table-form.js";
|
|
3
3
|
import { LimitReductionTableRow } from "./limit-reduction-table-row.js";
|
|
4
4
|
import { LimitReductionTableCell } from "./limit-reduction-table-cell.js";
|
|
@@ -10,8 +10,6 @@ export {
|
|
|
10
10
|
LimitReductionTableCell,
|
|
11
11
|
LimitReductionTableRow,
|
|
12
12
|
LimitReductionsTableForm,
|
|
13
|
-
TAB_INFO,
|
|
14
|
-
TabValues,
|
|
15
13
|
VOLTAGE_LEVELS_FORM,
|
|
16
14
|
getLimitReductionsFormSchema,
|
|
17
15
|
toFormValuesLimitReductions
|
|
@@ -44,7 +44,6 @@ import "react-papaparse";
|
|
|
44
44
|
import { LineSeparator } from "./line-separator.js";
|
|
45
45
|
import "./parameter-layout/parameter-layout-provider.js";
|
|
46
46
|
import "./widget/parameter-line-slider.js";
|
|
47
|
-
import "./limitreductions/columns-definitions.js";
|
|
48
47
|
import "./contingency-table/contingency-table.js";
|
|
49
48
|
import "./contingency-table/columns-definitions.js";
|
|
50
49
|
import "@hookform/resolvers/yup";
|
package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js
CHANGED
|
@@ -34,7 +34,6 @@ import "../common/parameter-layout/parameter-layout-provider.js";
|
|
|
34
34
|
import { ProviderParam } from "../common/provider-param.js";
|
|
35
35
|
import { parametersStyles, getTabStyle } from "../parameters-style.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";
|
package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-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 { useTabs } from "../common/hook/use-tabs.js";
|
|
@@ -35,7 +35,6 @@ import "react-papaparse";
|
|
|
35
35
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
36
36
|
import { PROVIDER } 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 { useParametersForm } from "../common/hook/use-parameters-form.js";
|
|
@@ -34,7 +34,6 @@ import "react-papaparse";
|
|
|
34
34
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
35
35
|
import { ParameterLineDirectoryItemsInput } from "../common/widget/parameter-line-directory-items-input.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";
|
package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js
CHANGED
|
@@ -34,7 +34,6 @@ import "mui-nested-menu";
|
|
|
34
34
|
import "react-resizable-panels";
|
|
35
35
|
import "react-papaparse";
|
|
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 { useTabs } from "../common/hook/use-tabs.js";
|
|
@@ -36,7 +36,6 @@ import "../common/parameter-layout/parameter-layout-provider.js";
|
|
|
36
36
|
import { ProviderParam } from "../common/provider-param.js";
|
|
37
37
|
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
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";
|
|
@@ -34,7 +34,6 @@ import "react-papaparse";
|
|
|
34
34
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
35
35
|
import { PROVIDER } from "../common/constants.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 { useParametersForm } from "../common/hook/use-parameters-form.js";
|
|
@@ -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 { useTabs } from "../common/hook/use-tabs.js";
|
|
@@ -34,7 +34,6 @@ import "../common/parameter-layout/parameter-layout-provider.js";
|
|
|
34
34
|
import { ProviderParam } from "../common/provider-param.js";
|
|
35
35
|
import { parametersStyles, getTabStyle } from "../parameters-style.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";
|
|
@@ -34,7 +34,6 @@ import "react-papaparse";
|
|
|
34
34
|
import "../../common/parameter-layout/parameter-layout-provider.js";
|
|
35
35
|
import { ParameterLineDirectoryItemsInput } from "../../common/widget/parameter-line-directory-items-input.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";
|
package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js
CHANGED
|
@@ -44,7 +44,6 @@ import "react-resizable-panels";
|
|
|
44
44
|
import "react-papaparse";
|
|
45
45
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
46
46
|
import "../common/widget/parameter-line-slider.js";
|
|
47
|
-
import "../common/limitreductions/columns-definitions.js";
|
|
48
47
|
import "../common/contingency-table/contingency-table.js";
|
|
49
48
|
import "../common/contingency-table/columns-definitions.js";
|
|
50
49
|
import { useParametersForm } from "../common/hook/use-parameters-form.js";
|
|
@@ -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
|
+
};
|