@gridsuite/commons-ui 0.239.0 → 0.241.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/README.md +6 -2
- package/dist/components/composite/agGridTable/cellEditors/numericEditor.d.ts +9 -3
- package/dist/components/composite/agGridTable/cellEditors/numericEditor.js +24 -5
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +4 -4
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +26 -13
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
- package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
- package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
- package/dist/components/composite/dnd-table/dnd-table.js +4 -4
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +2 -4
- package/dist/components/composite/grid/grid-item.d.ts +4 -3
- package/dist/components/composite/grid/grid-item.js +8 -4
- package/dist/components/composite/grid/grid-section.d.ts +1 -1
- package/dist/components/composite/grid/grid-section.js +3 -3
- package/dist/components/composite/grid/index.js +6 -3
- package/dist/components/composite/index.js +4 -3
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/index.js +4 -3
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +9 -9
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +4 -4
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
- package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
- package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouter.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/index.js +6 -1
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +7 -7
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +4 -4
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +8 -8
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +5 -5
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +4 -4
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
- package/dist/features/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.js +4 -3
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +2 -2
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +4 -4
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +3 -3
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +2 -2
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +5 -5
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +3 -3
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +6 -6
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +5 -5
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +9 -9
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +5 -5
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +9 -9
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +5 -5
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +5 -5
- package/dist/features/network-modifications/load/common/LoadDialogTabsContent.js +1 -1
- package/dist/features/network-modifications/load/common/LoadForm.js +5 -5
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +12 -12
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts +8 -8
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +11 -11
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.d.ts +12 -12
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +3 -3
- package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.d.ts +12 -12
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +7 -7
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +9 -9
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +3 -3
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +1 -1
- package/dist/features/parameters/common/contingency-table/contingency-table.js +4 -4
- package/dist/features/parameters/common/hook/use-tabs.d.ts +3 -2
- package/dist/features/parameters/common/hook/use-tabs.js +2 -3
- package/dist/features/parameters/common/index.d.ts +2 -1
- package/dist/features/parameters/common/index.js +6 -1
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/features/parameters/common/parameter-field.js +5 -4
- package/dist/features/parameters/common/parameter-layout/index.d.ts +8 -0
- package/dist/features/parameters/common/parameter-layout/index.js +7 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.d.ts +10 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.js +15 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout.d.ts +23 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +167 -0
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +3 -3
- package/dist/features/parameters/common/provider-param.d.ts +10 -0
- package/dist/features/parameters/common/{ProviderParam.js → provider-param.js} +9 -11
- package/dist/features/parameters/common/widget/parameter-float.js +4 -4
- package/dist/features/parameters/common/widget/parameter-group.js +2 -2
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
- package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
- package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.d.ts +4 -5
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +39 -60
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +39 -101
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +8 -7
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +12 -11
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +38 -71
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +4 -5
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +39 -61
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +8 -7
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +7 -8
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +7 -7
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +10 -10
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +26 -50
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +20 -20
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +11 -10
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +42 -104
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +4 -5
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +75 -97
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +10 -9
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +7 -6
- package/dist/features/parameters/index.js +6 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +14 -13
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +12 -18
- package/dist/features/parameters/loadflow/load-flow-parameters-form.d.ts +1 -6
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +26 -91
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +29 -53
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +35 -128
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +11 -10
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +10 -9
- package/dist/features/parameters/network-visualizations/map-parameters.js +18 -17
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-form.d.ts +1 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +19 -48
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +13 -19
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +34 -65
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +18 -17
- package/dist/features/parameters/parameters-style.d.ts +0 -1
- package/dist/features/parameters/parameters-style.js +0 -2
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +13 -18
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.d.ts +7 -29
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +16 -109
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +27 -84
- package/dist/features/parameters/security-analysis/columns-definitions.js +11 -10
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +20 -20
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +2 -4
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +44 -115
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +40 -109
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +12 -11
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +9 -11
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +7 -6
- package/dist/features/parameters/sensi/columns-definitions.js +9 -8
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +21 -21
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +3 -5
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +33 -90
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +40 -99
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +8 -17
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +10 -9
- package/dist/features/parameters/sensi/utils.js +8 -7
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +15 -14
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +11 -10
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +13 -18
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -4
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +5 -63
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +33 -101
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +12 -11
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +17 -16
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +15 -14
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +6 -5
- package/dist/features/parameters/voltage-init/general-parameters.js +11 -10
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +13 -18
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.d.ts +2 -24
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +51 -108
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +34 -90
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +7 -6
- package/dist/features/topBar/AboutDialog.js +4 -7
- package/dist/index.js +13 -4
- package/dist/translations/en/commonButtonEn.d.ts +2 -0
- package/dist/translations/en/commonButtonEn.js +2 -0
- package/dist/translations/en/parameters.d.ts +1 -0
- package/dist/translations/en/parameters.js +3 -1
- package/dist/translations/fr/commonButtonFr.d.ts +2 -0
- package/dist/translations/fr/commonButtonFr.js +2 -0
- package/dist/translations/fr/parameters.d.ts +1 -0
- package/dist/translations/fr/parameters.js +3 -1
- package/dist/utils/types/elementType.d.ts +1 -0
- package/dist/utils/types/elementType.js +1 -0
- package/package.json +3 -2
- package/dist/features/parameters/common/ProviderParam.d.ts +0 -7
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { FormattedMessage } from "react-intl";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Stack, Grid2 } from "@mui/material";
|
|
4
3
|
import { parametersStyles } from "../parameters-style.js";
|
|
5
4
|
import "@mui/icons-material";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-intl";
|
|
6
7
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
7
8
|
import "../../../utils/conversionUtils.js";
|
|
8
9
|
import "../../../utils/types/equipmentType.js";
|
|
9
|
-
import { mergeSx } from "../../../utils/styles.js";
|
|
10
|
-
import "react";
|
|
11
10
|
import "react-hook-form";
|
|
12
11
|
import "localized-countries";
|
|
13
12
|
import "localized-countries/data/fr";
|
|
14
13
|
import "localized-countries/data/en";
|
|
15
14
|
import "notistack";
|
|
16
|
-
import
|
|
15
|
+
import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
17
16
|
import "yup";
|
|
18
17
|
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
19
18
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
20
|
-
import { MuiSelectInput } from "../../../components/ui/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
21
19
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
22
20
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
23
21
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
@@ -32,8 +30,9 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
32
30
|
import "mui-nested-menu";
|
|
33
31
|
import "react-resizable-panels";
|
|
34
32
|
import "react-papaparse";
|
|
35
|
-
import { PROVIDER } from "../common/constants.js";
|
|
36
33
|
import { LineSeparator } from "../common/line-separator.js";
|
|
34
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
35
|
+
import { ProviderParam } from "../common/provider-param.js";
|
|
37
36
|
import "../common/widget/parameter-line-slider.js";
|
|
38
37
|
import "../common/limitreductions/columns-definitions.js";
|
|
39
38
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -42,94 +41,38 @@ import "@hookform/resolvers/yup";
|
|
|
42
41
|
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
43
42
|
import { SensitivityAnalysisFields } from "./sensitivity-parameters-fields.js";
|
|
44
43
|
import SensitivityParametersSelector from "./sensitivity-parameters-selector.js";
|
|
45
|
-
const styles = {
|
|
46
|
-
sensibilityAnalysisParameters: {
|
|
47
|
-
flexGrow: 1,
|
|
48
|
-
paddingLeft: 1,
|
|
49
|
-
overflow: "auto",
|
|
50
|
-
display: "flex",
|
|
51
|
-
flexDirection: "column",
|
|
52
|
-
height: "100%"
|
|
53
|
-
},
|
|
54
|
-
actions: (theme) => ({
|
|
55
|
-
flexGrow: 0,
|
|
56
|
-
paddingBottom: theme.spacing(3)
|
|
57
|
-
})
|
|
58
|
-
};
|
|
59
44
|
function SensitivityAnalysisParametersForm({
|
|
60
45
|
sensitivityAnalysisMethods,
|
|
61
|
-
renderTitleFields,
|
|
62
|
-
renderActions,
|
|
63
46
|
isDeveloperMode,
|
|
64
47
|
isRootNode,
|
|
65
48
|
globalBuildStatus
|
|
66
49
|
}) {
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
options: Object.values(sensitivityAnalysisMethods.formattedProviders)
|
|
94
|
-
}
|
|
95
|
-
) })
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
/* @__PURE__ */ jsx(
|
|
100
|
-
Box,
|
|
101
|
-
{
|
|
102
|
-
sx: {
|
|
103
|
-
flexGrow: 1,
|
|
104
|
-
overflow: "auto",
|
|
105
|
-
paddingLeft: 1
|
|
106
|
-
},
|
|
107
|
-
children: /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
108
|
-
/* @__PURE__ */ jsxs(Grid, { xl: 6, children: [
|
|
109
|
-
/* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
|
|
110
|
-
/* @__PURE__ */ jsx(SensitivityAnalysisFields, {})
|
|
111
|
-
] }),
|
|
112
|
-
/* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
114
|
-
SensitivityParametersSelector,
|
|
115
|
-
{
|
|
116
|
-
onFormChanged: sensitivityAnalysisMethods.onFormChanged,
|
|
117
|
-
isLoading: sensitivityAnalysisMethods.isLoading,
|
|
118
|
-
factorsCount: sensitivityAnalysisMethods.factorsCount,
|
|
119
|
-
isDeveloperMode,
|
|
120
|
-
isStudyLinked: sensitivityAnalysisMethods.isStudyLinked,
|
|
121
|
-
isRootNode,
|
|
122
|
-
globalBuildStatus
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }, "sensitivityAnalysisParameters")
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
] }) : /* @__PURE__ */ jsx(LinearProgress, {}),
|
|
129
|
-
renderActions && /* @__PURE__ */ jsx(Box, { sx: styles.actions, children: renderActions() })
|
|
130
|
-
] })
|
|
131
|
-
}
|
|
132
|
-
);
|
|
50
|
+
return /* @__PURE__ */ jsxs(Stack, { sx: parametersStyles.scrollableGrid, children: [
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
ProviderParam,
|
|
53
|
+
{
|
|
54
|
+
options: sensitivityAnalysisMethods.formattedProviders,
|
|
55
|
+
id: "Sensi",
|
|
56
|
+
sx: { paddingBottom: 1 }
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
60
|
+
/* @__PURE__ */ jsx(SensitivityAnalysisFields, {}),
|
|
61
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, size: 12, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
SensitivityParametersSelector,
|
|
64
|
+
{
|
|
65
|
+
onFormChanged: sensitivityAnalysisMethods.onFormChanged,
|
|
66
|
+
isLoading: sensitivityAnalysisMethods.isLoading,
|
|
67
|
+
factorsCount: sensitivityAnalysisMethods.factorsCount,
|
|
68
|
+
isDeveloperMode,
|
|
69
|
+
isStudyLinked: sensitivityAnalysisMethods.isStudyLinked,
|
|
70
|
+
isRootNode,
|
|
71
|
+
globalBuildStatus
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })
|
|
75
|
+
] });
|
|
133
76
|
}
|
|
134
77
|
export {
|
|
135
78
|
SensitivityAnalysisParametersForm
|
|
@@ -1,44 +1,40 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import {
|
|
3
|
-
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import { useIntl, FormattedMessage } from "react-intl";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect } from "react";
|
|
5
3
|
import "../../../utils/conversionUtils.js";
|
|
6
4
|
import { snackWithFallback } from "../../../utils/error.js";
|
|
7
5
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
8
6
|
import "../../../utils/types/equipmentType.js";
|
|
9
7
|
import { mapSensitivityAnalysisParameters } from "../../../utils/types/sensitivity-analysis.type.js";
|
|
10
8
|
import "@mui/icons-material";
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import "
|
|
15
|
-
import "react-hook-form";
|
|
9
|
+
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
10
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
11
|
+
import "@mui/material";
|
|
12
|
+
import "react-intl";
|
|
16
13
|
import { fetchSensitivityAnalysisParameters, setSensitivityAnalysisParameters } from "../../../services/sensitivity-analysis.js";
|
|
17
14
|
import "localized-countries";
|
|
18
15
|
import "localized-countries/data/fr";
|
|
19
16
|
import "localized-countries/data/en";
|
|
20
17
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
21
|
-
import "
|
|
22
|
-
import {
|
|
18
|
+
import "react-hook-form";
|
|
19
|
+
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
+
import "@hello-pangea/dnd";
|
|
24
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
23
25
|
import "yup";
|
|
24
|
-
import { DirectoryItemSelector } from "../../../components/ui/directoryItemSelector/DirectoryItemSelector.js";
|
|
25
26
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
26
|
-
import { PopupConfirmationDialog } from "../../../components/ui/dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
32
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
34
33
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
35
|
-
import "@hello-pangea/dnd";
|
|
36
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
37
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
38
35
|
import "mui-nested-menu";
|
|
39
36
|
import "react-resizable-panels";
|
|
40
37
|
import "react-papaparse";
|
|
41
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
42
38
|
import "../common/widget/parameter-line-slider.js";
|
|
43
39
|
import "../common/limitreductions/columns-definitions.js";
|
|
44
40
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -57,7 +53,6 @@ function SensitivityAnalysisParametersInline({
|
|
|
57
53
|
isRootNode,
|
|
58
54
|
isDeveloperMode
|
|
59
55
|
}) {
|
|
60
|
-
const intl = useIntl();
|
|
61
56
|
const { snackError } = useSnackMessage();
|
|
62
57
|
const sensitivityAnalysisMethods = useSensitivityAnalysisParametersForm({
|
|
63
58
|
studyUuid,
|
|
@@ -70,14 +65,10 @@ function SensitivityAnalysisParametersInline({
|
|
|
70
65
|
globalBuildStatus,
|
|
71
66
|
isRootNode
|
|
72
67
|
});
|
|
73
|
-
const
|
|
74
|
-
const [openSelectParameterDialog, setOpenSelectParameterDialog] = useState(false);
|
|
75
|
-
const [openResetConfirmation, setOpenResetConfirmation] = useState(false);
|
|
76
|
-
const { reset, handleSubmit, formState, getValues } = sensitivityAnalysisMethods.formMethods;
|
|
68
|
+
const { reset, formState, getValues, handleSubmit } = sensitivityAnalysisMethods.formMethods;
|
|
77
69
|
const handleSensibilityParameter = useCallback(
|
|
78
70
|
(newParams) => {
|
|
79
71
|
if (newParams && newParams.length > 0) {
|
|
80
|
-
setOpenSelectParameterDialog(false);
|
|
81
72
|
fetchSensitivityAnalysisParameters(newParams[0].id).then((parameters) => {
|
|
82
73
|
console.info(`loading the following sensi parameters : ${parameters.uuid}`);
|
|
83
74
|
reset(sensitivityAnalysisMethods.fromSensitivityAnalysisParamsDataToFormValues(parameters), {
|
|
@@ -88,7 +79,6 @@ function SensitivityAnalysisParametersInline({
|
|
|
88
79
|
snackWithFallback(snackError, error, { headerId: "paramsRetrievingError" });
|
|
89
80
|
});
|
|
90
81
|
}
|
|
91
|
-
setOpenSelectParameterDialog(false);
|
|
92
82
|
},
|
|
93
83
|
[reset, sensitivityAnalysisMethods, snackError]
|
|
94
84
|
);
|
|
@@ -101,90 +91,41 @@ function SensitivityAnalysisParametersInline({
|
|
|
101
91
|
reset(sensitivityAnalysisMethods.emptyFormData);
|
|
102
92
|
resetSensitivityAnalysisParameters();
|
|
103
93
|
sensitivityAnalysisMethods.resetFactorsCount();
|
|
104
|
-
setOpenResetConfirmation(false);
|
|
105
94
|
}, [reset, sensitivityAnalysisMethods, resetSensitivityAnalysisParameters]);
|
|
106
|
-
const handleResetClick = useCallback(() => {
|
|
107
|
-
setOpenResetConfirmation(true);
|
|
108
|
-
}, []);
|
|
109
|
-
const handleCancelReset = useCallback(() => {
|
|
110
|
-
setOpenResetConfirmation(false);
|
|
111
|
-
}, []);
|
|
112
95
|
useEffect(() => {
|
|
113
96
|
setHaveDirtyFields(formState.isDirty);
|
|
114
97
|
}, [formState, setHaveDirtyFields]);
|
|
115
98
|
return /* @__PURE__ */ jsx(
|
|
116
|
-
|
|
99
|
+
CustomFormProvider,
|
|
117
100
|
{
|
|
118
|
-
sensitivityAnalysisMethods,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
101
|
+
validationSchema: sensitivityAnalysisMethods.formSchema,
|
|
102
|
+
...sensitivityAnalysisMethods.formMethods,
|
|
103
|
+
children: /* @__PURE__ */ jsx(
|
|
104
|
+
ParameterLayout,
|
|
105
|
+
{
|
|
106
|
+
title: "SensitivityAnalysis",
|
|
107
|
+
isLoading: !sensitivityAnalysisMethods.paramsFormInitialized,
|
|
108
|
+
parameterType: ElementType.SENSITIVITY_PARAMETERS,
|
|
109
|
+
createParameter: {
|
|
110
|
+
studyUuid,
|
|
111
|
+
getParameterValues: getValues,
|
|
112
|
+
parameterFormatter: (newParams) => mapSensitivityAnalysisParameters(sensitivityAnalysisMethods.formatNewParams(newParams))
|
|
113
|
+
},
|
|
114
|
+
selectParameterHandler: handleSensibilityParameter,
|
|
115
|
+
resetHandler: clear,
|
|
116
|
+
validateHandler: handleSubmit(sensitivityAnalysisMethods.onSaveInline),
|
|
117
|
+
validateDisabled: sensitivityAnalysisMethods.isLoading || sensitivityAnalysisMethods.isMaxResultsReached || sensitivityAnalysisMethods.isMaxVariablesReached,
|
|
118
|
+
children: /* @__PURE__ */ jsx(
|
|
119
|
+
SensitivityAnalysisParametersForm,
|
|
126
120
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => setOpenSelectParameterDialog(true), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "settings.button.chooseSettings" }) }),
|
|
133
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => setOpenCreateParameterDialog(true), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "save" }) }),
|
|
134
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleResetClick, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "resetToDefault" }) }),
|
|
135
|
-
/* @__PURE__ */ jsx(
|
|
136
|
-
SubmitButton,
|
|
137
|
-
{
|
|
138
|
-
onClick: handleSubmit(sensitivityAnalysisMethods.onSaveInline),
|
|
139
|
-
variant: "outlined",
|
|
140
|
-
disabled: sensitivityAnalysisMethods.isLoading || sensitivityAnalysisMethods.isMaxResultsReached || sensitivityAnalysisMethods.isMaxVariablesReached,
|
|
141
|
-
children: /* @__PURE__ */ jsx(FormattedMessage, { id: "validate" })
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
) }),
|
|
147
|
-
openCreateParameterDialog && /* @__PURE__ */ jsx(
|
|
148
|
-
CreateParameterDialog,
|
|
149
|
-
{
|
|
150
|
-
studyUuid,
|
|
151
|
-
open: openCreateParameterDialog,
|
|
152
|
-
onClose: () => setOpenCreateParameterDialog(false),
|
|
153
|
-
parameterValues: getValues,
|
|
154
|
-
parameterFormatter: (newParams) => mapSensitivityAnalysisParameters(
|
|
155
|
-
sensitivityAnalysisMethods.formatNewParams(newParams)
|
|
156
|
-
),
|
|
157
|
-
parameterType: ElementType.SENSITIVITY_PARAMETERS
|
|
158
|
-
}
|
|
159
|
-
),
|
|
160
|
-
openSelectParameterDialog && /* @__PURE__ */ jsx(
|
|
161
|
-
DirectoryItemSelector,
|
|
162
|
-
{
|
|
163
|
-
open: openSelectParameterDialog,
|
|
164
|
-
onClose: handleSensibilityParameter,
|
|
165
|
-
types: [ElementType.SENSITIVITY_PARAMETERS],
|
|
166
|
-
title: intl.formatMessage({
|
|
167
|
-
id: "showSelectParameterDialog"
|
|
168
|
-
}),
|
|
169
|
-
onlyLeaves: true,
|
|
170
|
-
multiSelect: false,
|
|
171
|
-
validationButtonText: intl.formatMessage({
|
|
172
|
-
id: "validate"
|
|
173
|
-
})
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
openResetConfirmation && /* @__PURE__ */ jsx(
|
|
177
|
-
PopupConfirmationDialog,
|
|
178
|
-
{
|
|
179
|
-
message: "resetParamsConfirmation",
|
|
180
|
-
validateButtonLabel: "validate",
|
|
181
|
-
openConfirmationPopup: openResetConfirmation,
|
|
182
|
-
setOpenConfirmationPopup: handleCancelReset,
|
|
183
|
-
handlePopupConfirmation: clear
|
|
121
|
+
sensitivityAnalysisMethods,
|
|
122
|
+
isDeveloperMode,
|
|
123
|
+
isRootNode,
|
|
124
|
+
globalBuildStatus
|
|
184
125
|
}
|
|
185
126
|
)
|
|
186
|
-
|
|
187
|
-
|
|
127
|
+
}
|
|
128
|
+
)
|
|
188
129
|
}
|
|
189
130
|
);
|
|
190
131
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD } from "./constants.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -31,35 +31,26 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
31
31
|
import "mui-nested-menu";
|
|
32
32
|
import "react-resizable-panels";
|
|
33
33
|
import "react-papaparse";
|
|
34
|
+
import { parametersStyles } from "../parameters-style.js";
|
|
34
35
|
function SensitivityAnalysisFields() {
|
|
35
|
-
return /* @__PURE__ */ jsxs(
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
item: true,
|
|
40
|
-
sx: {
|
|
41
|
-
fontWeight: "bold",
|
|
42
|
-
marginBottom: "10px"
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" })
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
48
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
36
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Grid2, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
|
|
38
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
49
40
|
FloatInput,
|
|
50
41
|
{
|
|
51
42
|
name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
|
|
52
43
|
label: "flowFlowSensitivityValueThreshold"
|
|
53
44
|
}
|
|
54
45
|
) }),
|
|
55
|
-
/* @__PURE__ */ jsx(
|
|
46
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
56
47
|
FloatInput,
|
|
57
48
|
{
|
|
58
49
|
name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
|
|
59
50
|
label: "angleFlowSensitivityValueThreshold"
|
|
60
51
|
}
|
|
61
52
|
) }),
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
63
54
|
FloatInput,
|
|
64
55
|
{
|
|
65
56
|
name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useMemo, useEffect } from "react";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2, Box, Tabs, Tab, Card, CardContent } from "@mui/material";
|
|
5
5
|
import { useFormContext } from "react-hook-form";
|
|
6
6
|
import { SensiTabValues, SensiBranchesTabValues, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_PSTS, COLUMNS_DEFINITIONS_NODES } from "./columns-definitions.js";
|
|
7
|
-
import "../../../utils/conversionUtils.js";
|
|
8
|
-
import "../../../utils/types/equipmentType.js";
|
|
9
7
|
import "@mui/icons-material";
|
|
10
8
|
import { TabPanel } from "../common/parameters.js";
|
|
9
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
10
|
+
import "../../../utils/conversionUtils.js";
|
|
11
|
+
import "../../../utils/types/equipmentType.js";
|
|
11
12
|
import "localized-countries";
|
|
12
13
|
import "localized-countries/data/fr";
|
|
13
14
|
import "localized-countries/data/en";
|
|
14
15
|
import "notistack";
|
|
15
16
|
import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
17
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
18
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
19
|
-
import "@hello-pangea/dnd";
|
|
20
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
21
17
|
import "yup";
|
|
18
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
22
19
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
23
20
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
24
21
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
25
22
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
26
23
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
25
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
28
26
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
29
27
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
28
|
+
import "@hello-pangea/dnd";
|
|
29
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
30
30
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
31
31
|
import "mui-nested-menu";
|
|
32
32
|
import "react-resizable-panels";
|
|
33
33
|
import "react-papaparse";
|
|
34
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
34
35
|
import "../common/widget/parameter-line-slider.js";
|
|
35
36
|
import "../common/limitreductions/columns-definitions.js";
|
|
36
37
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -139,7 +140,7 @@ function SensitivityParametersSelector({
|
|
|
139
140
|
setTabValue(SensiTabValues.SensitivityBranches);
|
|
140
141
|
}
|
|
141
142
|
}, [isDeveloperMode]);
|
|
142
|
-
return /* @__PURE__ */ jsxs(
|
|
143
|
+
return /* @__PURE__ */ jsxs(Grid2, { sx: { width: "100%" }, children: [
|
|
143
144
|
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: "100%" }, children: [
|
|
144
145
|
/* @__PURE__ */ jsx(Tabs, { value: tabValue, onChange: handleTabChange, children: tabInfo.map((tab, index) => /* @__PURE__ */ jsx(
|
|
145
146
|
Tab,
|
|
@@ -7,21 +7,17 @@ import "../../../utils/types/equipmentType.js";
|
|
|
7
7
|
import { DistributionType, SensitivityType } from "../../../utils/types/sensitivity-analysis.type.js";
|
|
8
8
|
import "react/jsx-runtime";
|
|
9
9
|
import "@mui/icons-material";
|
|
10
|
-
import { PROVIDER, CONTINGENCIES } from "../common/constants.js";
|
|
11
10
|
import "@mui/material";
|
|
12
|
-
import "react-intl";
|
|
13
11
|
import "react";
|
|
12
|
+
import "react-intl";
|
|
13
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "react-hook-form";
|
|
14
15
|
import "localized-countries";
|
|
15
16
|
import "localized-countries/data/fr";
|
|
16
17
|
import "localized-countries/data/en";
|
|
17
18
|
import "notistack";
|
|
18
|
-
import "react-hook-form";
|
|
19
19
|
import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
20
|
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import { NAME } from "../../../components/ui/reactHookForm/constants.js";
|
|
26
22
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
23
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
@@ -29,12 +25,17 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
29
25
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
26
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
27
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
29
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
30
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
31
|
+
import "@hello-pangea/dnd";
|
|
32
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
33
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
34
|
import "mui-nested-menu";
|
|
36
35
|
import "react-resizable-panels";
|
|
37
36
|
import "react-papaparse";
|
|
37
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
38
|
+
import { PROVIDER, CONTINGENCIES } from "../common/constants.js";
|
|
38
39
|
import "../common/widget/parameter-line-slider.js";
|
|
39
40
|
import "../common/limitreductions/columns-definitions.js";
|
|
40
41
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useMemo, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid2 } from "@mui/material";
|
|
4
4
|
import { green, red } from "@mui/material/colors";
|
|
5
5
|
import { Lens } from "@mui/icons-material";
|
|
6
6
|
import { useWatch } from "react-hook-form";
|
|
7
7
|
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_WITH_FEEDER_RESULT } from "./constants.js";
|
|
8
8
|
import { VoltageTable } from "./short-circuit-voltage-table.js";
|
|
9
|
-
import GridItem from "../../../components/composite/grid/grid-item.js";
|
|
10
|
-
import GridSection from "../../../components/composite/grid/grid-section.js";
|
|
9
|
+
import { GridItem } from "../../../components/composite/grid/grid-item.js";
|
|
10
|
+
import { GridSection } from "../../../components/composite/grid/grid-section.js";
|
|
11
11
|
import "react-intl";
|
|
12
12
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
13
13
|
import "../../../utils/conversionUtils.js";
|
|
@@ -39,8 +39,9 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
39
39
|
import "mui-nested-menu";
|
|
40
40
|
import "react-resizable-panels";
|
|
41
41
|
import "react-papaparse";
|
|
42
|
-
import { COMMON_PARAMETERS, SPECIFIC_PARAMETERS } from "../common/constants.js";
|
|
43
42
|
import { TabPanel } from "../common/parameters.js";
|
|
43
|
+
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
44
|
+
import { COMMON_PARAMETERS, SPECIFIC_PARAMETERS } from "../common/constants.js";
|
|
44
45
|
import "../common/widget/parameter-line-slider.js";
|
|
45
46
|
import "../common/limitreductions/columns-definitions.js";
|
|
46
47
|
import "../common/contingency-table/contingency-table.js";
|
|
@@ -122,9 +123,9 @@ const ShortCircuitGeneralTabPanel = forwardRef(
|
|
|
122
123
|
const newPredefinedParameters = event.target.value;
|
|
123
124
|
resetAll(newPredefinedParameters);
|
|
124
125
|
};
|
|
125
|
-
const feederResult = /* @__PURE__ */ jsxs(
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
127
|
-
/* @__PURE__ */ jsx(
|
|
126
|
+
const feederResult = /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
|
|
127
|
+
/* @__PURE__ */ jsx(Grid2, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
|
|
128
|
+
/* @__PURE__ */ jsx(Grid2, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
|
|
128
129
|
] });
|
|
129
130
|
const predefinedParameters = /* @__PURE__ */ jsx(
|
|
130
131
|
MuiSelectInput,
|
|
@@ -183,26 +184,26 @@ const ShortCircuitGeneralTabPanel = forwardRef(
|
|
|
183
184
|
isIccMaxFeaturesDefaultConfiguration,
|
|
184
185
|
isIccMinFeaturesDefaultConfiguration
|
|
185
186
|
]);
|
|
186
|
-
return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(
|
|
187
|
-
/* @__PURE__ */ jsx(
|
|
187
|
+
return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid2, { container: true, paddingLeft: 2, children: [
|
|
188
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
|
|
188
189
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
|
|
189
|
-
/* @__PURE__ */ jsxs(
|
|
190
|
+
/* @__PURE__ */ jsxs(Grid2, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
|
|
190
191
|
/* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
|
|
191
192
|
/* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
|
|
192
193
|
] }),
|
|
193
194
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
|
|
194
|
-
/* @__PURE__ */ jsxs(
|
|
195
|
-
/* @__PURE__ */ jsxs(
|
|
195
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 5, size: 12, children: [
|
|
196
|
+
/* @__PURE__ */ jsxs(Grid2, { children: [
|
|
196
197
|
/* @__PURE__ */ jsx(GridItem, { children: loads }),
|
|
197
198
|
/* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
|
|
198
199
|
] }),
|
|
199
|
-
/* @__PURE__ */ jsxs(
|
|
200
|
+
/* @__PURE__ */ jsxs(Grid2, { size: 8, children: [
|
|
200
201
|
/* @__PURE__ */ jsx(GridItem, { children: vsc }),
|
|
201
202
|
/* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
|
|
202
203
|
] })
|
|
203
204
|
] }),
|
|
204
205
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
|
|
205
|
-
/* @__PURE__ */ jsx(
|
|
206
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
|
|
206
207
|
/* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
|
|
207
208
|
] }) });
|
|
208
209
|
}
|