@gridsuite/commons-ui 0.98.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/components/announcement/AnnouncementBanner.d.ts +15 -0
  2. package/dist/components/announcement/AnnouncementBanner.js +87 -0
  3. package/dist/components/announcement/AnnouncementNotification.d.ts +7 -0
  4. package/dist/components/announcement/AnnouncementNotification.js +10 -0
  5. package/dist/components/announcement/index.d.ts +3 -0
  6. package/dist/components/announcement/index.js +8 -0
  7. package/dist/components/announcement/useGlobalAnnouncement.d.ts +10 -0
  8. package/dist/components/announcement/useGlobalAnnouncement.js +48 -0
  9. package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.js +1 -1
  10. package/dist/components/index.d.ts +2 -0
  11. package/dist/components/index.js +104 -3
  12. package/dist/components/inputs/index.js +2 -1
  13. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +1 -0
  14. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +2 -0
  15. package/dist/components/inputs/reactHookForm/index.js +2 -1
  16. package/dist/components/inputs/reactHookForm/text/TextInput.d.ts +3 -1
  17. package/dist/components/inputs/reactHookForm/text/TextInput.js +4 -2
  18. package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.js +1 -1
  19. package/dist/components/parameters/common/ProviderParam.d.ts +7 -0
  20. package/dist/components/parameters/common/ProviderParam.js +51 -0
  21. package/dist/components/parameters/common/computing-type.d.ts +20 -0
  22. package/dist/components/parameters/common/computing-type.js +46 -0
  23. package/dist/components/parameters/common/constant.d.ts +8 -0
  24. package/dist/components/parameters/common/constant.js +18 -0
  25. package/dist/components/parameters/common/index.d.ts +15 -0
  26. package/dist/components/parameters/common/index.js +61 -0
  27. package/dist/components/parameters/common/limitreductions/columns-definitions.d.ts +77 -0
  28. package/dist/components/parameters/common/limitreductions/columns-definitions.js +83 -0
  29. package/dist/components/parameters/common/limitreductions/index.d.ts +11 -0
  30. package/dist/components/parameters/common/limitreductions/index.js +21 -0
  31. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.d.ts +5 -0
  32. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +38 -0
  33. package/dist/components/parameters/common/limitreductions/limit-reduction-table-row.d.ts +7 -0
  34. package/dist/components/parameters/common/limitreductions/limit-reduction-table-row.js +9 -0
  35. package/dist/components/parameters/common/limitreductions/limit-reductions-form-util.d.ts +29 -0
  36. package/dist/components/parameters/common/limitreductions/limit-reductions-form-util.js +27 -0
  37. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.d.ts +4 -0
  38. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +87 -0
  39. package/dist/components/parameters/common/line-separator.d.ts +1 -0
  40. package/dist/components/parameters/common/line-separator.js +8 -0
  41. package/dist/components/parameters/common/parameters-creation-dialog.d.ts +13 -0
  42. package/dist/components/parameters/common/parameters-creation-dialog.js +88 -0
  43. package/dist/components/parameters/common/parameters.d.ts +20 -0
  44. package/dist/components/parameters/common/parameters.js +42 -0
  45. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.d.ts +6 -0
  46. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +42 -0
  47. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-row.d.ts +8 -0
  48. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-row.js +17 -0
  49. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.d.ts +8 -0
  50. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +55 -0
  51. package/dist/components/parameters/common/voltage-level-table/index.d.ts +9 -0
  52. package/dist/components/parameters/common/voltage-level-table/index.js +8 -0
  53. package/dist/components/parameters/common/widget/index.d.ts +11 -0
  54. package/dist/components/parameters/common/widget/index.js +13 -0
  55. package/dist/components/parameters/common/widget/parameter-float.d.ts +10 -0
  56. package/dist/components/parameters/common/widget/parameter-float.js +51 -0
  57. package/dist/components/parameters/common/widget/parameter-group.d.ts +11 -0
  58. package/dist/components/parameters/common/widget/parameter-group.js +54 -0
  59. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.d.ts +15 -0
  60. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +55 -0
  61. package/dist/components/parameters/common/widget/parameter-line-slider.d.ts +12 -0
  62. package/dist/components/parameters/common/widget/parameter-line-slider.js +70 -0
  63. package/dist/components/parameters/common/widget/parameter-switch.d.ts +7 -0
  64. package/dist/components/parameters/common/widget/parameter-switch.js +9 -0
  65. package/dist/components/parameters/index.d.ts +9 -0
  66. package/dist/components/parameters/index.js +94 -0
  67. package/dist/components/parameters/loadflow/constants.d.ts +33 -0
  68. package/dist/components/parameters/loadflow/constants.js +59 -0
  69. package/dist/components/parameters/loadflow/index.d.ts +9 -0
  70. package/dist/components/parameters/loadflow/index.js +31 -0
  71. package/dist/components/parameters/loadflow/load-flow-general-parameters.d.ts +8 -0
  72. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +179 -0
  73. package/dist/components/parameters/loadflow/load-flow-parameter-field.d.ts +19 -0
  74. package/dist/components/parameters/loadflow/load-flow-parameter-field.js +90 -0
  75. package/dist/components/parameters/loadflow/load-flow-parameters-content.d.ts +13 -0
  76. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +82 -0
  77. package/dist/components/parameters/loadflow/load-flow-parameters-context.d.ts +13 -0
  78. package/dist/components/parameters/loadflow/load-flow-parameters-context.js +5 -0
  79. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.d.ts +15 -0
  80. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +112 -0
  81. package/dist/components/parameters/loadflow/load-flow-parameters-form.d.ts +9 -0
  82. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +102 -0
  83. package/dist/components/parameters/loadflow/load-flow-parameters-header.d.ts +12 -0
  84. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +84 -0
  85. package/dist/components/parameters/loadflow/load-flow-parameters-inline.d.ts +10 -0
  86. package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +162 -0
  87. package/dist/components/parameters/loadflow/load-flow-parameters-provider.d.ts +4 -0
  88. package/dist/components/parameters/loadflow/load-flow-parameters-provider.js +20 -0
  89. package/dist/components/parameters/loadflow/load-flow-parameters-utils.d.ts +100 -0
  90. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +158 -0
  91. package/dist/components/parameters/loadflow/use-load-flow-context.d.ts +7 -0
  92. package/dist/components/parameters/loadflow/use-load-flow-context.js +12 -0
  93. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.d.ts +32 -0
  94. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +263 -0
  95. package/dist/components/parameters/parameters-style.d.ts +150 -0
  96. package/dist/components/parameters/parameters-style.js +146 -0
  97. package/dist/components/topBar/DevModeBanner.d.ts +1 -0
  98. package/dist/components/topBar/DevModeBanner.js +42 -0
  99. package/dist/components/topBar/TopBar.js +302 -305
  100. package/dist/components/topBar/UserInformationDialog.js +1 -1
  101. package/dist/components/topBar/index.d.ts +3 -2
  102. package/dist/components/topBar/index.js +4 -2
  103. package/dist/hooks/index.d.ts +1 -0
  104. package/dist/hooks/index.js +3 -0
  105. package/dist/hooks/use-parameters-backend.d.ts +11 -0
  106. package/dist/hooks/use-parameters-backend.js +217 -0
  107. package/dist/index.js +135 -5
  108. package/dist/services/explore.d.ts +3 -0
  109. package/dist/services/explore.js +26 -1
  110. package/dist/services/index.d.ts +1 -0
  111. package/dist/services/index.js +9 -3
  112. package/dist/services/loadflow.d.ts +9 -0
  113. package/dist/services/loadflow.js +59 -0
  114. package/dist/services/userAdmin.d.ts +3 -3
  115. package/dist/services/userAdmin.js +9 -1
  116. package/dist/services/utils.d.ts +3 -8
  117. package/dist/services/utils.js +5 -0
  118. package/dist/translations/en/index.d.ts +1 -0
  119. package/dist/translations/en/index.js +2 -0
  120. package/dist/translations/en/parameters.d.ts +67 -0
  121. package/dist/translations/en/parameters.js +64 -0
  122. package/dist/translations/fr/index.d.ts +1 -0
  123. package/dist/translations/fr/index.js +2 -0
  124. package/dist/translations/fr/parameters.d.ts +67 -0
  125. package/dist/translations/fr/parameters.js +64 -0
  126. package/dist/utils/constants/notificationsProvider.d.ts +10 -0
  127. package/dist/utils/constants/notificationsProvider.js +17 -0
  128. package/dist/utils/index.d.ts +1 -0
  129. package/dist/utils/index.js +16 -0
  130. package/dist/utils/types/dynamic-security-analysis.type.d.ts +13 -0
  131. package/dist/utils/types/dynamic-security-analysis.type.js +1 -0
  132. package/dist/utils/types/dynamic-simulation.type.d.ts +111 -0
  133. package/dist/utils/types/dynamic-simulation.type.js +8 -0
  134. package/dist/utils/types/index.d.ts +6 -0
  135. package/dist/utils/types/index.js +11 -0
  136. package/dist/utils/types/loadflow.type.d.ts +11 -0
  137. package/dist/utils/types/loadflow.type.js +1 -0
  138. package/dist/utils/types/metadata.d.ts +1 -0
  139. package/dist/utils/types/non-evacuated-energy.type.d.ts +60 -0
  140. package/dist/utils/types/non-evacuated-energy.type.js +12 -0
  141. package/dist/utils/types/parameters.type.d.ts +41 -0
  142. package/dist/utils/types/parameters.type.js +12 -0
  143. package/dist/utils/types/sensitivity-analysis.type.d.ts +101 -0
  144. package/dist/utils/types/sensitivity-analysis.type.js +16 -0
  145. package/dist/utils/types/types.d.ts +12 -0
  146. package/dist/utils/types/types.js +8 -1
  147. package/package.json +2 -1
  148. package/dist/components/topBar/MessageBanner.d.ts +0 -6
  149. package/dist/components/topBar/MessageBanner.js +0 -54
@@ -0,0 +1,9 @@
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 https://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './common';
8
+ export * from './parameters-style';
9
+ export * from './loadflow';
@@ -0,0 +1,94 @@
1
+ import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./common/computing-type.js";
2
+ 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, VOLTAGE_LEVEL } from "./common/constant.js";
3
+ import { LineSeparator } from "./common/line-separator.js";
4
+ import { LabelledButton, SwitchWithLabel, TabPanel } from "./common/parameters.js";
5
+ import { CreateParameterDialog } from "./common/parameters-creation-dialog.js";
6
+ import { ProviderParam } from "./common/ProviderParam.js";
7
+ import { ParameterFloat } from "./common/widget/parameter-float.js";
8
+ import { ParameterGroup } from "./common/widget/parameter-group.js";
9
+ import { ParameterLineDirectoryItemsInput } from "./common/widget/parameter-line-directory-items-input.js";
10
+ import { ParameterLineSlider, sanitizePercentageValue } from "./common/widget/parameter-line-slider.js";
11
+ import { ParameterSwitch } from "./common/widget/parameter-switch.js";
12
+ import { CustomVoltageLevelTable } from "./common/voltage-level-table/custom-voltage-level-table.js";
13
+ import { CustomVoltageLevelTableCell } from "./common/voltage-level-table/custom-voltage-level-table-cell.js";
14
+ import { CustomVoltageLevelTableRow } from "./common/voltage-level-table/custom-voltage-level-table-row.js";
15
+ import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, TAB_INFO, TabValues, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema, getSAParametersFromSchema } from "./common/limitreductions/columns-definitions.js";
16
+ import { toFormValueSaParameters, toFormValuesLimitReductions } from "./common/limitreductions/limit-reductions-form-util.js";
17
+ import { LimitReductionsTableForm } from "./common/limitreductions/limit-reductions-table-form.js";
18
+ import { LimitReductionTableRow } from "./common/limitreductions/limit-reduction-table-row.js";
19
+ import { LimitReductionTableCell } from "./common/limitreductions/limit-reduction-table-cell.js";
20
+ import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./parameters-style.js";
21
+ import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TRANSFORMER_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./loadflow/constants.js";
22
+ import { LoadFlowParametersInline } from "./loadflow/load-flow-parameters-inline.js";
23
+ import { LoadFlowParametersEditionDialog } from "./loadflow/load-flow-parameters-dialog.js";
24
+ export {
25
+ BALANCE_TYPE,
26
+ COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS,
27
+ COMMON_PARAMETERS,
28
+ CONNECTED_COMPONENT_MODE,
29
+ COUNTRIES_TO_BALANCE,
30
+ ComputingType,
31
+ CreateParameterDialog,
32
+ CustomVoltageLevelTable,
33
+ CustomVoltageLevelTableCell,
34
+ CustomVoltageLevelTableRow,
35
+ DC,
36
+ DC_POWER_FACTOR,
37
+ DC_USE_TRANSFORMER_RATIO,
38
+ DEFAULT_LIMIT_REDUCTION_VALUE,
39
+ DISTRIBUTED_SLACK,
40
+ HVDC_AC_EMULATION,
41
+ IST_FORM,
42
+ LIMIT_DURATION_FORM,
43
+ LIMIT_REDUCTIONS_FORM,
44
+ LabelledButton,
45
+ LimitReductionTableCell,
46
+ LimitReductionTableRow,
47
+ LimitReductionsTableForm,
48
+ LineSeparator,
49
+ LoadFlowParametersEditionDialog,
50
+ LoadFlowParametersInline,
51
+ MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
52
+ MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
53
+ PARAM_LIMIT_REDUCTION,
54
+ PARAM_PROVIDER_OPENLOADFLOW,
55
+ PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD,
56
+ PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD,
57
+ PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
58
+ PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
59
+ PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
60
+ PARAM_SA_PROVIDER,
61
+ PHASE_SHIFTER_REGULATION_ON,
62
+ PROVIDER,
63
+ ParameterFloat,
64
+ ParameterGroup,
65
+ ParameterLineDirectoryItemsInput,
66
+ ParameterLineSlider,
67
+ ParameterSwitch,
68
+ ProviderParam,
69
+ READ_SLACK_BUS,
70
+ SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
71
+ SPECIFIC_PARAMETERS,
72
+ SwitchWithLabel,
73
+ TAB_INFO,
74
+ TRANSFORMER_VOLTAGE_CONTROL_ON,
75
+ TWT_SPLIT_SHUNT_ADMITTANCE,
76
+ TabPanel,
77
+ TabValues,
78
+ USE_REACTIVE_LIMITS,
79
+ VOLTAGE_INIT_MODE,
80
+ VOLTAGE_LEVEL,
81
+ VOLTAGE_LEVELS_FORM,
82
+ WRITE_SLACK_BUS,
83
+ alertThresholdMarks,
84
+ formatComputingTypeLabel,
85
+ getLimitReductionsFormSchema,
86
+ getSAParametersFromSchema,
87
+ getTabIndicatorStyle,
88
+ getTabStyle,
89
+ isValidComputingType,
90
+ parametersStyles,
91
+ sanitizePercentageValue,
92
+ toFormValueSaParameters,
93
+ toFormValuesLimitReductions
94
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2024, 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 PARAM_LIMIT_REDUCTION = "limitReduction";
8
+ export declare const PARAM_PROVIDER_OPENLOADFLOW = "OpenLoadFlow";
9
+ export declare const COMMON_PARAMETERS = "commonParameters";
10
+ export declare const SPECIFIC_PARAMETERS = "specificParametersPerProvider";
11
+ export declare const TRANSFORMER_VOLTAGE_CONTROL_ON = "transformerVoltageControlOn";
12
+ export declare const PHASE_SHIFTER_REGULATION_ON = "phaseShifterRegulationOn";
13
+ export declare const DC = "dc";
14
+ export declare const BALANCE_TYPE = "balanceType";
15
+ export declare const COUNTRIES_TO_BALANCE = "countriesToBalance";
16
+ export declare const CONNECTED_COMPONENT_MODE = "connectedComponentMode";
17
+ export declare const HVDC_AC_EMULATION = "hvdcAcEmulation";
18
+ export declare const VOLTAGE_INIT_MODE = "voltageInitMode";
19
+ export declare const USE_REACTIVE_LIMITS = "useReactiveLimits";
20
+ export declare const TWT_SPLIT_SHUNT_ADMITTANCE = "twtSplitShuntAdmittance";
21
+ export declare const READ_SLACK_BUS = "readSlackBus";
22
+ export declare const WRITE_SLACK_BUS = "writeSlackBus";
23
+ export declare const DISTRIBUTED_SLACK = "distributedSlack";
24
+ export declare const SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON = "shuntCompensatorVoltageControlOn";
25
+ export declare const DC_USE_TRANSFORMER_RATIO = "dcUseTransformerRatio";
26
+ export declare const DC_POWER_FACTOR = "dcPowerFactor";
27
+ export declare const MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION = 0.5;
28
+ export declare const MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION = 1;
29
+ export declare const DEFAULT_LIMIT_REDUCTION_VALUE = 0.8;
30
+ export declare const alertThresholdMarks: {
31
+ value: number;
32
+ label: string;
33
+ }[];
@@ -0,0 +1,59 @@
1
+ const PARAM_LIMIT_REDUCTION = "limitReduction";
2
+ const PARAM_PROVIDER_OPENLOADFLOW = "OpenLoadFlow";
3
+ const COMMON_PARAMETERS = "commonParameters";
4
+ const SPECIFIC_PARAMETERS = "specificParametersPerProvider";
5
+ const TRANSFORMER_VOLTAGE_CONTROL_ON = "transformerVoltageControlOn";
6
+ const PHASE_SHIFTER_REGULATION_ON = "phaseShifterRegulationOn";
7
+ const DC = "dc";
8
+ const BALANCE_TYPE = "balanceType";
9
+ const COUNTRIES_TO_BALANCE = "countriesToBalance";
10
+ const CONNECTED_COMPONENT_MODE = "connectedComponentMode";
11
+ const HVDC_AC_EMULATION = "hvdcAcEmulation";
12
+ const VOLTAGE_INIT_MODE = "voltageInitMode";
13
+ const USE_REACTIVE_LIMITS = "useReactiveLimits";
14
+ const TWT_SPLIT_SHUNT_ADMITTANCE = "twtSplitShuntAdmittance";
15
+ const READ_SLACK_BUS = "readSlackBus";
16
+ const WRITE_SLACK_BUS = "writeSlackBus";
17
+ const DISTRIBUTED_SLACK = "distributedSlack";
18
+ const SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON = "shuntCompensatorVoltageControlOn";
19
+ const DC_USE_TRANSFORMER_RATIO = "dcUseTransformerRatio";
20
+ const DC_POWER_FACTOR = "dcPowerFactor";
21
+ const MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION = 0.5;
22
+ const MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION = 1;
23
+ const DEFAULT_LIMIT_REDUCTION_VALUE = 0.8;
24
+ const alertThresholdMarks = [
25
+ {
26
+ value: MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
27
+ label: "50"
28
+ },
29
+ {
30
+ value: MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
31
+ label: "100"
32
+ }
33
+ ];
34
+ export {
35
+ BALANCE_TYPE,
36
+ COMMON_PARAMETERS,
37
+ CONNECTED_COMPONENT_MODE,
38
+ COUNTRIES_TO_BALANCE,
39
+ DC,
40
+ DC_POWER_FACTOR,
41
+ DC_USE_TRANSFORMER_RATIO,
42
+ DEFAULT_LIMIT_REDUCTION_VALUE,
43
+ DISTRIBUTED_SLACK,
44
+ HVDC_AC_EMULATION,
45
+ MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
46
+ MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
47
+ PARAM_LIMIT_REDUCTION,
48
+ PARAM_PROVIDER_OPENLOADFLOW,
49
+ PHASE_SHIFTER_REGULATION_ON,
50
+ READ_SLACK_BUS,
51
+ SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
52
+ SPECIFIC_PARAMETERS,
53
+ TRANSFORMER_VOLTAGE_CONTROL_ON,
54
+ TWT_SPLIT_SHUNT_ADMITTANCE,
55
+ USE_REACTIVE_LIMITS,
56
+ VOLTAGE_INIT_MODE,
57
+ WRITE_SLACK_BUS,
58
+ alertThresholdMarks
59
+ };
@@ -0,0 +1,9 @@
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 https://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './constants';
8
+ export * from './load-flow-parameters-inline';
9
+ export * from './load-flow-parameters-dialog';
@@ -0,0 +1,31 @@
1
+ import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TRANSFORMER_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./constants.js";
2
+ import { LoadFlowParametersInline } from "./load-flow-parameters-inline.js";
3
+ import { LoadFlowParametersEditionDialog } from "./load-flow-parameters-dialog.js";
4
+ export {
5
+ BALANCE_TYPE,
6
+ COMMON_PARAMETERS,
7
+ CONNECTED_COMPONENT_MODE,
8
+ COUNTRIES_TO_BALANCE,
9
+ DC,
10
+ DC_POWER_FACTOR,
11
+ DC_USE_TRANSFORMER_RATIO,
12
+ DEFAULT_LIMIT_REDUCTION_VALUE,
13
+ DISTRIBUTED_SLACK,
14
+ HVDC_AC_EMULATION,
15
+ LoadFlowParametersEditionDialog,
16
+ LoadFlowParametersInline,
17
+ MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
18
+ MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
19
+ PARAM_LIMIT_REDUCTION,
20
+ PARAM_PROVIDER_OPENLOADFLOW,
21
+ PHASE_SHIFTER_REGULATION_ON,
22
+ READ_SLACK_BUS,
23
+ SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
24
+ SPECIFIC_PARAMETERS,
25
+ TRANSFORMER_VOLTAGE_CONTROL_ON,
26
+ TWT_SPLIT_SHUNT_ADMITTANCE,
27
+ USE_REACTIVE_LIMITS,
28
+ VOLTAGE_INIT_MODE,
29
+ WRITE_SLACK_BUS,
30
+ alertThresholdMarks
31
+ };
@@ -0,0 +1,8 @@
1
+ import { SpecificParameterInfos } from '../../../utils/types/parameters.type';
2
+ interface LoadFlowGeneralParametersProps {
3
+ provider: string;
4
+ specificParams: SpecificParameterInfos[];
5
+ }
6
+ declare function LoadFlowGeneralParameters({ provider, specificParams }: Readonly<LoadFlowGeneralParametersProps>): import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: import('react').MemoExoticComponent<typeof LoadFlowGeneralParameters>;
8
+ export default _default;
@@ -0,0 +1,179 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { memo, createElement } from "react";
3
+ import LoadFlowParameterField from "./load-flow-parameter-field.js";
4
+ import { TRANSFORMER_VOLTAGE_CONTROL_ON, PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE, CONNECTED_COMPONENT_MODE, HVDC_AC_EMULATION, VOLTAGE_INIT_MODE, USE_REACTIVE_LIMITS, TWT_SPLIT_SHUNT_ADMITTANCE, READ_SLACK_BUS, WRITE_SLACK_BUS, DISTRIBUTED_SLACK, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DC_USE_TRANSFORMER_RATIO, DC_POWER_FACTOR, COMMON_PARAMETERS, SPECIFIC_PARAMETERS } from "./constants.js";
5
+ import { useLoadFlowContext } from "./use-load-flow-context.js";
6
+ import { ParameterType } from "../../../utils/types/parameters.type.js";
7
+ import "@mui/material";
8
+ import "react-intl";
9
+ import "@mui/icons-material";
10
+ import "react-hook-form";
11
+ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
12
+ import "yup";
13
+ import "notistack";
14
+ import "../../overflowableText/OverflowableText.js";
15
+ import "../../treeViewFinder/TreeViewFinder.js";
16
+ import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
17
+ import "../../customAGGrid/customAggrid.js";
18
+ import "ag-grid-community";
19
+ import "react-papaparse";
20
+ import "react-csv-downloader";
21
+ import "../../inputs/reactHookForm/numbers/RangeInput.js";
22
+ import "localized-countries";
23
+ import "localized-countries/data/fr";
24
+ import "localized-countries/data/en";
25
+ import "../../../utils/conversionUtils.js";
26
+ import "../../../utils/types/equipmentType.js";
27
+ import "../../../utils/yupConfig.js";
28
+ import "@react-querybuilder/material";
29
+ import "../../filter/expert/expertFilterConstants.js";
30
+ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
31
+ import "uuid";
32
+ import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
33
+ import "react-querybuilder";
34
+ import { ParameterGroup } from "../common/widget/parameter-group.js";
35
+ import "../common/widget/parameter-line-slider.js";
36
+ const basicParams = [
37
+ {
38
+ name: TRANSFORMER_VOLTAGE_CONTROL_ON,
39
+ type: ParameterType.BOOLEAN,
40
+ label: "descLfTransformerVoltageControlOn"
41
+ },
42
+ {
43
+ name: PHASE_SHIFTER_REGULATION_ON,
44
+ type: ParameterType.BOOLEAN,
45
+ label: "descLfPhaseShifterRegulationOn"
46
+ },
47
+ {
48
+ name: DC,
49
+ type: ParameterType.BOOLEAN,
50
+ label: "descLfDC"
51
+ },
52
+ {
53
+ name: BALANCE_TYPE,
54
+ type: ParameterType.STRING,
55
+ label: "descLfBalanceType",
56
+ possibleValues: [
57
+ { id: "PROPORTIONAL_TO_GENERATION_P", label: "descLfBalanceTypeGenP" },
58
+ { id: "PROPORTIONAL_TO_GENERATION_P_MAX", label: "descLfBalanceTypeGenPMax" },
59
+ { id: "PROPORTIONAL_TO_LOAD", label: "descLfBalanceTypeLoad" },
60
+ { id: "PROPORTIONAL_TO_CONFORM_LOAD", label: "descLfBalanceTypeConformLoad" }
61
+ ]
62
+ },
63
+ {
64
+ name: COUNTRIES_TO_BALANCE,
65
+ type: ParameterType.COUNTRIES,
66
+ label: "descLfCountriesToBalance"
67
+ },
68
+ {
69
+ name: CONNECTED_COMPONENT_MODE,
70
+ type: ParameterType.STRING,
71
+ label: "descLfConnectedComponentMode",
72
+ possibleValues: [
73
+ {
74
+ id: "MAIN",
75
+ label: "descLfConnectedComponentModeMain"
76
+ },
77
+ {
78
+ id: "ALL",
79
+ label: "descLfConnectedComponentModeAll"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ name: HVDC_AC_EMULATION,
85
+ type: ParameterType.BOOLEAN,
86
+ label: "descLfHvdcAcEmulation"
87
+ }
88
+ ];
89
+ const advancedParams = [
90
+ {
91
+ name: VOLTAGE_INIT_MODE,
92
+ type: ParameterType.STRING,
93
+ label: "descLfVoltageInitMode",
94
+ possibleValues: [
95
+ {
96
+ id: "UNIFORM_VALUES",
97
+ label: "descLfUniformValues"
98
+ },
99
+ {
100
+ id: "PREVIOUS_VALUES",
101
+ label: "descLfPreviousValues"
102
+ },
103
+ {
104
+ id: "DC_VALUES",
105
+ label: "descLfDcValues"
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ name: USE_REACTIVE_LIMITS,
111
+ type: ParameterType.BOOLEAN,
112
+ label: "descLfUseReactiveLimits"
113
+ },
114
+ {
115
+ name: TWT_SPLIT_SHUNT_ADMITTANCE,
116
+ type: ParameterType.BOOLEAN,
117
+ label: "descLfTwtSplitShuntAdmittance"
118
+ },
119
+ {
120
+ name: READ_SLACK_BUS,
121
+ type: ParameterType.BOOLEAN,
122
+ label: "descLfReadSlackBus"
123
+ },
124
+ {
125
+ name: WRITE_SLACK_BUS,
126
+ type: ParameterType.BOOLEAN,
127
+ label: "descLfWriteSlackBus"
128
+ },
129
+ {
130
+ name: DISTRIBUTED_SLACK,
131
+ type: ParameterType.BOOLEAN,
132
+ label: "descLfDistributedSlack"
133
+ },
134
+ {
135
+ name: SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
136
+ type: ParameterType.BOOLEAN,
137
+ label: "descLfShuntCompensatorVoltageControlOn"
138
+ },
139
+ {
140
+ name: DC_USE_TRANSFORMER_RATIO,
141
+ type: ParameterType.BOOLEAN,
142
+ label: "descLfDcUseTransformerRatio"
143
+ },
144
+ {
145
+ name: DC_POWER_FACTOR,
146
+ type: ParameterType.DOUBLE,
147
+ label: "descLfDcPowerFactor"
148
+ }
149
+ ];
150
+ function LoadFlowGeneralParameters({ provider, specificParams }) {
151
+ const { showAdvancedLfParams, setShowAdvancedLfParams, showSpecificLfParams, setShowSpecificLfParams } = useLoadFlowContext();
152
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
153
+ basicParams.map((item) => /* @__PURE__ */ createElement(LoadFlowParameterField, { id: COMMON_PARAMETERS, ...item, key: item.name })),
154
+ /* @__PURE__ */ jsx(
155
+ ParameterGroup,
156
+ {
157
+ label: "showAdvancedParameters",
158
+ state: showAdvancedLfParams,
159
+ onClick: setShowAdvancedLfParams,
160
+ children: showAdvancedLfParams && advancedParams.map((item) => /* @__PURE__ */ createElement(LoadFlowParameterField, { id: COMMON_PARAMETERS, ...item, key: item.name }))
161
+ }
162
+ ),
163
+ /* @__PURE__ */ jsx(
164
+ ParameterGroup,
165
+ {
166
+ label: "showSpecificParameters",
167
+ state: showSpecificLfParams,
168
+ onClick: setShowSpecificLfParams,
169
+ infoText: provider ?? "",
170
+ disabled: !provider || !specificParams,
171
+ children: showSpecificLfParams && (specificParams == null ? void 0 : specificParams.map((item) => /* @__PURE__ */ createElement(LoadFlowParameterField, { id: SPECIFIC_PARAMETERS, ...item, key: item.name })))
172
+ }
173
+ )
174
+ ] });
175
+ }
176
+ const LoadFlowGeneralParameters$1 = memo(LoadFlowGeneralParameters);
177
+ export {
178
+ LoadFlowGeneralParameters$1 as default
179
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2024, 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
+ interface LoadFlowParameterFieldProps {
8
+ id: string;
9
+ name: string;
10
+ type: string;
11
+ label?: string;
12
+ description?: string;
13
+ possibleValues?: {
14
+ id: string;
15
+ label: string;
16
+ }[] | string[];
17
+ }
18
+ declare function LoadFlowParameterField({ id, name, type, label, description, possibleValues, }: Readonly<LoadFlowParameterFieldProps>): import("react/jsx-runtime").JSX.Element;
19
+ export default LoadFlowParameterField;
@@ -0,0 +1,90 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Grid, Tooltip, Typography, Chip } from "@mui/material";
3
+ import { FormattedMessage } from "react-intl";
4
+ import { parametersStyles } from "../parameters-style.js";
5
+ import { ParameterType } from "../../../utils/types/parameters.type.js";
6
+ import "@mui/icons-material";
7
+ import "react";
8
+ import "react-hook-form";
9
+ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
10
+ import "yup";
11
+ import "notistack";
12
+ import "../../overflowableText/OverflowableText.js";
13
+ import "../../treeViewFinder/TreeViewFinder.js";
14
+ import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
15
+ import "../../customAGGrid/customAggrid.js";
16
+ import "ag-grid-community";
17
+ import "react-papaparse";
18
+ import "react-csv-downloader";
19
+ import { AutocompleteInput } from "../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
20
+ import { MultipleAutocompleteInput } from "../../inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js";
21
+ import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js";
22
+ import { FloatInput } from "../../inputs/reactHookForm/numbers/FloatInput.js";
23
+ import { IntegerInput } from "../../inputs/reactHookForm/numbers/IntegerInput.js";
24
+ import "../../inputs/reactHookForm/numbers/RangeInput.js";
25
+ import { CountriesInput } from "../../inputs/reactHookForm/selectInputs/CountriesInput.js";
26
+ import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
27
+ import "../../../utils/conversionUtils.js";
28
+ import "../../../utils/types/equipmentType.js";
29
+ import "../../../utils/yupConfig.js";
30
+ import { TextInput } from "../../inputs/reactHookForm/text/TextInput.js";
31
+ import "localized-countries";
32
+ import "localized-countries/data/fr";
33
+ import "localized-countries/data/en";
34
+ import "@react-querybuilder/material";
35
+ import "../../filter/expert/expertFilterConstants.js";
36
+ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
37
+ import "uuid";
38
+ import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
39
+ import "react-querybuilder";
40
+ import { LineSeparator } from "../common/line-separator.js";
41
+ import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
42
+ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
43
+ import "../common/widget/parameter-line-slider.js";
44
+ import "../common/limitreductions/columns-definitions.js";
45
+ function LoadFlowParameterField({
46
+ id,
47
+ name,
48
+ type,
49
+ label,
50
+ description,
51
+ possibleValues
52
+ }) {
53
+ const renderField = () => {
54
+ switch (type) {
55
+ case ParameterType.STRING:
56
+ return possibleValues ? /* @__PURE__ */ jsx(MuiSelectInput, { name: `${id}.${name}`, options: possibleValues, size: "small" }) : /* @__PURE__ */ jsx(TextInput, { name: `${id}.${name}` });
57
+ case ParameterType.BOOLEAN:
58
+ return /* @__PURE__ */ jsx(SwitchInput, { name: `${id}.${name}` });
59
+ case ParameterType.COUNTRIES:
60
+ return /* @__PURE__ */ jsx(CountriesInput, { name: `${id}.${name}`, label: "descLfCountries" });
61
+ case ParameterType.DOUBLE:
62
+ return /* @__PURE__ */ jsx(FloatInput, { name: `${id}.${name}` });
63
+ case ParameterType.STRING_LIST:
64
+ return possibleValues ? /* @__PURE__ */ jsx(
65
+ AutocompleteInput,
66
+ {
67
+ name: `${id}.${name}`,
68
+ label,
69
+ options: possibleValues,
70
+ fullWidth: true,
71
+ multiple: true,
72
+ size: "small",
73
+ renderTags: (val, getTagsProps) => val.map((code, index) => /* @__PURE__ */ jsx(Chip, { size: "small", label: code, ...getTagsProps({ index }) }, code))
74
+ }
75
+ ) : /* @__PURE__ */ jsx(MultipleAutocompleteInput, { name: `${id}.${name}`, size: "small" });
76
+ case ParameterType.INTEGER:
77
+ return /* @__PURE__ */ jsx(IntegerInput, { name: `${id}.${name}` });
78
+ default:
79
+ return null;
80
+ }
81
+ };
82
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: [
83
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(Tooltip, { title: description, enterDelay: 1200, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
84
+ /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 4, sx: parametersStyles.controlItem, children: renderField() }),
85
+ /* @__PURE__ */ jsx(LineSeparator, {})
86
+ ] }, name);
87
+ }
88
+ export {
89
+ LoadFlowParameterField as default
90
+ };
@@ -0,0 +1,13 @@
1
+ import { TabValues } from './load-flow-parameters-utils';
2
+ import { ILimitReductionsByVoltageLevel } from '../common/limitreductions/columns-definitions';
3
+ import { SpecificParameterInfos } from '../../../utils/types/parameters.type';
4
+ import { LoadFlowParametersInfos } from '../../../utils/types/loadflow.type';
5
+ type LoadFlowParametersContentProps = {
6
+ selectedTab: TabValues;
7
+ currentProvider: string;
8
+ specificParameters: SpecificParameterInfos[];
9
+ params: LoadFlowParametersInfos | null;
10
+ defaultLimitReductions: ILimitReductionsByVoltageLevel[];
11
+ };
12
+ declare function LoadFlowParametersContent({ selectedTab, currentProvider, specificParameters, params, defaultLimitReductions, }: Readonly<LoadFlowParametersContentProps>): import("react/jsx-runtime").JSX.Element;
13
+ export default LoadFlowParametersContent;
@@ -0,0 +1,82 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Box, Grid } from "@mui/material";
3
+ import { TabValues } from "./load-flow-parameters-utils.js";
4
+ import LoadFlowGeneralParameters from "./load-flow-general-parameters.js";
5
+ import { TabPanel } from "../common/parameters.js";
6
+ import "react";
7
+ import "react-intl";
8
+ import "../../../utils/types/equipmentType.js";
9
+ import "localized-countries";
10
+ import "localized-countries/data/fr";
11
+ import "localized-countries/data/en";
12
+ import "notistack";
13
+ import "react-hook-form";
14
+ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
15
+ import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
16
+ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
17
+ import "@mui/icons-material";
18
+ import "../../treeViewFinder/TreeViewFinder.js";
19
+ import { parametersStyles } from "../parameters-style.js";
20
+ import "yup";
21
+ import "../../overflowableText/OverflowableText.js";
22
+ import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
23
+ import "../../customAGGrid/customAggrid.js";
24
+ import "ag-grid-community";
25
+ import "react-papaparse";
26
+ import "react-csv-downloader";
27
+ import "../../inputs/reactHookForm/numbers/RangeInput.js";
28
+ import "../../../utils/conversionUtils.js";
29
+ import "../../../utils/yupConfig.js";
30
+ import "@react-querybuilder/material";
31
+ import "../../filter/expert/expertFilterConstants.js";
32
+ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
33
+ import "uuid";
34
+ import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
35
+ import "react-querybuilder";
36
+ import { ParameterLineSlider } from "../common/widget/parameter-line-slider.js";
37
+ import "../common/limitreductions/columns-definitions.js";
38
+ import { LimitReductionsTableForm } from "../common/limitreductions/limit-reductions-table-form.js";
39
+ import { PARAM_PROVIDER_OPENLOADFLOW, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, alertThresholdMarks, PARAM_LIMIT_REDUCTION } from "./constants.js";
40
+ const styles = {
41
+ container: {
42
+ ...parametersStyles.scrollableGrid,
43
+ maxHeight: "100%"
44
+ },
45
+ maxWidth: {
46
+ width: "100%"
47
+ }
48
+ };
49
+ function LoadFlowParametersContent({
50
+ selectedTab,
51
+ currentProvider,
52
+ specificParameters,
53
+ params,
54
+ defaultLimitReductions
55
+ }) {
56
+ return /* @__PURE__ */ jsx(
57
+ Box,
58
+ {
59
+ sx: {
60
+ flexGrow: 1,
61
+ overflow: "auto",
62
+ paddingLeft: 1
63
+ },
64
+ children: /* @__PURE__ */ jsx(Grid, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid, { item: true, sx: styles.maxWidth, children: [
65
+ /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.GENERAL, children: /* @__PURE__ */ jsx(LoadFlowGeneralParameters, { provider: currentProvider, specificParams: specificParameters }) }),
66
+ /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW ? /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: (params == null ? void 0 : params.limitReductions) ?? defaultLimitReductions }) : /* @__PURE__ */ jsx(
67
+ ParameterLineSlider,
68
+ {
69
+ name: PARAM_LIMIT_REDUCTION,
70
+ label: "LimitReduction",
71
+ marks: alertThresholdMarks,
72
+ minValue: MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
73
+ maxValue: MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION
74
+ }
75
+ ) }) })
76
+ ] }) })
77
+ }
78
+ );
79
+ }
80
+ export {
81
+ LoadFlowParametersContent as default
82
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) 2024, 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 interface LoadFlowContextProps {
8
+ showAdvancedLfParams: boolean;
9
+ setShowAdvancedLfParams: (state: boolean) => void;
10
+ showSpecificLfParams: boolean;
11
+ setShowSpecificLfParams: (state: boolean) => void;
12
+ }
13
+ export declare const LoadFlowContext: import('react').Context<LoadFlowContextProps | undefined>;
@@ -0,0 +1,5 @@
1
+ import { createContext } from "react";
2
+ const LoadFlowContext = createContext(void 0);
3
+ export {
4
+ LoadFlowContext
5
+ };