@gridsuite/commons-ui 0.260.0 → 0.262.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
- package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
- 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/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
- package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
- package/dist/components/composite/grid/grid-item.d.ts +4 -4
- package/dist/components/composite/grid/grid-item.js +2 -2
- package/dist/components/composite/grid/grid-section.js +2 -2
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/composite/report/QuickSearch.js +31 -29
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
- package/dist/components/ui/csvPicker/csv-picker.js +4 -4
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/components/ui/inputs/SelectClearable.js +3 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
- 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/readOnly/ButtonReadOnlyInput.js +26 -24
- package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
- package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
- package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
- package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
- package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
- package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
- package/dist/features/network-modifications/battery/creation/batteryCreation.types.d.ts +2 -2
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -3
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
- 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/currentLimits/LimitsPane.js +10 -10
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
- package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
- package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
- package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
- package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
- 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 +2 -2
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/parameter-field.js +6 -6
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +6 -4
- package/dist/features/parameters/common/provider-param.js +4 -4
- 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.d.ts +4 -3
- 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.js +4 -4
- 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-security-analysis/contingency-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
- 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/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
- package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
- package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/topBar/AboutDialog.js +40 -28
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +34 -34
- package/dist/features/topBar/UserSettingsDialog.js +3 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { INTL_SUBSTATION_LAYOUT_OPTIONS, SUBSTATION_LAYOUT, NetworkVisualizationTabValues, PARAM_SUBSTATION_LAYOUT, COMPONENT_LIBRARY, PARAM_COMPONENT_LIBRARY, DIAGONAL_LABEL, PARAM_DIAGONAL_LABEL, CENTER_LABEL, PARAM_CENTER_LABEL, CUSTOM_REAL_TIME_STATE_ESTIMATION, PARAM_STATE_ESTIMATION } from "./constants.js";
|
|
@@ -42,12 +42,12 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
42
42
|
return INTL_SUBSTATION_LAYOUT_OPTIONS;
|
|
43
43
|
}, []);
|
|
44
44
|
const labelPosition = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
|
|
47
47
|
] });
|
|
48
48
|
const substationLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
49
|
+
/* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
|
|
50
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
51
51
|
MuiSelectInput,
|
|
52
52
|
{
|
|
53
53
|
fullWidth: true,
|
|
@@ -58,8 +58,8 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
58
58
|
) })
|
|
59
59
|
] });
|
|
60
60
|
const componentLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
61
|
+
/* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
|
|
62
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
63
63
|
MuiSelectInput,
|
|
64
64
|
{
|
|
65
65
|
fullWidth: true,
|
|
@@ -72,7 +72,7 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
72
72
|
) })
|
|
73
73
|
] });
|
|
74
74
|
return /* @__PURE__ */ jsxs(
|
|
75
|
-
|
|
75
|
+
Grid,
|
|
76
76
|
{
|
|
77
77
|
container: true,
|
|
78
78
|
spacing: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
4
4
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
5
5
|
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
@@ -65,14 +65,16 @@ function PccMinParametersEditionDialog({
|
|
|
65
65
|
},
|
|
66
66
|
titleId,
|
|
67
67
|
disabledSave: isDisabledValidationButton(errors),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
slotProps: {
|
|
69
|
+
paper: {
|
|
70
|
+
sx: {
|
|
71
|
+
height: "90vh"
|
|
72
|
+
// we want the dialog height to be fixed even when switching tabs
|
|
73
|
+
}
|
|
72
74
|
}
|
|
73
75
|
},
|
|
74
76
|
children: [
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
/* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
76
78
|
NameElementEditorForm,
|
|
77
79
|
{
|
|
78
80
|
initialElementName: name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { ParameterLineDirectoryItemsInput } from "../common/widget/parameter-line-directory-items-input.js";
|
|
4
4
|
import { FILTERS } from "../../../utils/constants/filterConstant.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
@@ -8,7 +8,7 @@ import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
|
8
8
|
import "@mui/icons-material";
|
|
9
9
|
import { parametersStyles } from "../parameters-style.js";
|
|
10
10
|
function PccMinParametersForm() {
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
|
|
12
12
|
ParameterLineDirectoryItemsInput,
|
|
13
13
|
{
|
|
14
14
|
name: FILTERS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
@@ -76,14 +76,16 @@ function SecurityAnalysisParametersDialog({
|
|
|
76
76
|
},
|
|
77
77
|
titleId,
|
|
78
78
|
disabledSave: isDisabledValidationButton(errors),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
slotProps: {
|
|
80
|
+
paper: {
|
|
81
|
+
sx: {
|
|
82
|
+
height: "90vh"
|
|
83
|
+
// we want the dialog height to be fixed even when switching tabs
|
|
84
|
+
}
|
|
83
85
|
}
|
|
84
86
|
},
|
|
85
87
|
children: [
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
87
89
|
NameElementEditorForm,
|
|
88
90
|
{
|
|
89
91
|
initialElementName: name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Typography } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { Info } from "@mui/icons-material";
|
|
5
5
|
import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
|
|
@@ -41,10 +41,10 @@ function SecurityAnalysisFields({
|
|
|
41
41
|
isSingleField
|
|
42
42
|
}) {
|
|
43
43
|
const intl = useIntl();
|
|
44
|
-
return /* @__PURE__ */ jsxs(
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
44
|
+
return /* @__PURE__ */ jsxs(Grid, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
|
|
46
46
|
/* @__PURE__ */ jsx(
|
|
47
|
-
|
|
47
|
+
Grid,
|
|
48
48
|
{
|
|
49
49
|
container: true,
|
|
50
50
|
size: isSingleField ? 8 : 4,
|
|
@@ -61,7 +61,7 @@ function SecurityAnalysisFields({
|
|
|
61
61
|
)
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
!isSingleField && secondField && /* @__PURE__ */ jsx(
|
|
64
|
+
!isSingleField && secondField && /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
|
|
65
65
|
FloatInput,
|
|
66
66
|
{
|
|
67
67
|
name: secondField.name,
|
|
@@ -112,7 +112,7 @@ const fieldsToShow = [
|
|
|
112
112
|
function ViolationsHidingParameters() {
|
|
113
113
|
const intl = useIntl();
|
|
114
114
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
115
|
-
/* @__PURE__ */ jsx(
|
|
115
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid, { size: 8, sx: parametersStyles.text, children: [
|
|
116
116
|
/* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
|
|
117
117
|
id: "securityAnalysis.violationsHiding"
|
|
118
118
|
}) }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
@@ -88,7 +88,7 @@ function SensitivityAnalysisParametersDialog({
|
|
|
88
88
|
titleId,
|
|
89
89
|
disabledSave: isDisabledValidationButton(errors),
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
91
|
+
/* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
92
92
|
NameElementEditorForm,
|
|
93
93
|
{
|
|
94
94
|
initialElementName: name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Grid } from "@mui/material";
|
|
3
3
|
import { parametersStyles } from "../parameters-style.js";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "react";
|
|
@@ -56,7 +56,7 @@ function SensitivityAnalysisParametersForm({
|
|
|
56
56
|
),
|
|
57
57
|
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
58
58
|
/* @__PURE__ */ jsx(SensitivityAnalysisFields, {}),
|
|
59
|
-
/* @__PURE__ */ jsx(
|
|
59
|
+
/* @__PURE__ */ jsx(Grid, { container: true, size: 12, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
|
|
60
60
|
/* @__PURE__ */ jsx(
|
|
61
61
|
SensitivityParametersSelector,
|
|
62
62
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } 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";
|
|
@@ -33,24 +33,24 @@ import "react-resizable-panels";
|
|
|
33
33
|
import "react-papaparse";
|
|
34
34
|
import { parametersStyles } from "../parameters-style.js";
|
|
35
35
|
function SensitivityAnalysisFields() {
|
|
36
|
-
return /* @__PURE__ */ jsxs(
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
/* @__PURE__ */ jsxs(
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Grid, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
|
|
38
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
40
40
|
FloatInput,
|
|
41
41
|
{
|
|
42
42
|
name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
|
|
43
43
|
label: "flowFlowSensitivityValueThreshold"
|
|
44
44
|
}
|
|
45
45
|
) }),
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
46
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
47
47
|
FloatInput,
|
|
48
48
|
{
|
|
49
49
|
name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
|
|
50
50
|
label: "angleFlowSensitivityValueThreshold"
|
|
51
51
|
}
|
|
52
52
|
) }),
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
54
54
|
FloatInput,
|
|
55
55
|
{
|
|
56
56
|
name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { Grid, 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
7
|
import "@mui/icons-material";
|
|
@@ -140,7 +140,7 @@ function SensitivityParametersSelector({
|
|
|
140
140
|
setTabValue(SensiTabValues.SensitivityBranches);
|
|
141
141
|
}
|
|
142
142
|
}, [isDeveloperMode]);
|
|
143
|
-
return /* @__PURE__ */ jsxs(
|
|
143
|
+
return /* @__PURE__ */ jsxs(Grid, { sx: { width: "100%" }, children: [
|
|
144
144
|
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: "100%" }, children: [
|
|
145
145
|
/* @__PURE__ */ jsx(Tabs, { value: tabValue, onChange: handleTabChange, children: tabInfo.map((tab, index) => /* @__PURE__ */ jsx(
|
|
146
146
|
Tab,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useMemo, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid } 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";
|
|
@@ -121,9 +121,9 @@ const ShortCircuitGeneralTabPanel = forwardRef(
|
|
|
121
121
|
const newPredefinedParameters = event.target.value;
|
|
122
122
|
resetAll(newPredefinedParameters);
|
|
123
123
|
};
|
|
124
|
-
const feederResult = /* @__PURE__ */ jsxs(
|
|
125
|
-
/* @__PURE__ */ jsx(
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
124
|
+
const feederResult = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
|
|
125
|
+
/* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
|
|
126
|
+
/* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
|
|
127
127
|
] });
|
|
128
128
|
const predefinedParameters = /* @__PURE__ */ jsx(
|
|
129
129
|
MuiSelectInput,
|
|
@@ -182,26 +182,26 @@ const ShortCircuitGeneralTabPanel = forwardRef(
|
|
|
182
182
|
isIccMaxFeaturesDefaultConfiguration,
|
|
183
183
|
isIccMinFeaturesDefaultConfiguration
|
|
184
184
|
]);
|
|
185
|
-
return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(
|
|
186
|
-
/* @__PURE__ */ jsx(
|
|
185
|
+
return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid, { container: true, paddingLeft: 2, children: [
|
|
186
|
+
/* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
|
|
187
187
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
|
|
188
|
-
/* @__PURE__ */ jsxs(
|
|
188
|
+
/* @__PURE__ */ jsxs(Grid, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
|
|
189
189
|
/* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
|
|
190
190
|
/* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
|
|
191
191
|
] }),
|
|
192
192
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
|
|
193
|
-
/* @__PURE__ */ jsxs(
|
|
194
|
-
/* @__PURE__ */ jsxs(
|
|
193
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 5, size: 12, children: [
|
|
194
|
+
/* @__PURE__ */ jsxs(Grid, { children: [
|
|
195
195
|
/* @__PURE__ */ jsx(GridItem, { children: loads }),
|
|
196
196
|
/* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
|
|
197
197
|
] }),
|
|
198
|
-
/* @__PURE__ */ jsxs(
|
|
198
|
+
/* @__PURE__ */ jsxs(Grid, { size: 8, children: [
|
|
199
199
|
/* @__PURE__ */ jsx(GridItem, { children: vsc }),
|
|
200
200
|
/* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
|
|
201
201
|
] })
|
|
202
202
|
] }),
|
|
203
203
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
|
|
204
|
-
/* @__PURE__ */ jsx(
|
|
204
|
+
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
|
|
205
205
|
/* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
|
|
206
206
|
] }) });
|
|
207
207
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useWatch } from "react-hook-form";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, Tabs, Tab, Box } from "@mui/material";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { getTabStyle, parametersStyles } from "../parameters-style.js";
|
|
7
7
|
import { ShortCircuitParametersTabValues } from "./short-circuit-parameters-utils.js";
|
|
@@ -64,7 +64,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
|
|
|
64
64
|
[watchSpecificParameters]
|
|
65
65
|
);
|
|
66
66
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
/* @__PURE__ */ jsx(Grid, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
|
|
68
68
|
/* @__PURE__ */ jsx(
|
|
69
69
|
Tab,
|
|
70
70
|
{
|
|
@@ -90,7 +90,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
|
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
] }) }),
|
|
93
|
-
/* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(
|
|
93
|
+
/* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid, { sx: styles.maxWidth, children: [
|
|
94
94
|
/* @__PURE__ */ jsx(ShortCircuitGeneralTabPanel, { resetAll, value: selectedTab }),
|
|
95
95
|
isThereSpecificParameters && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
96
96
|
/* @__PURE__ */ jsx(ShortCircuitStudyAreaTabPanel, { value: selectedTab }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
4
4
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
5
5
|
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
@@ -82,7 +82,7 @@ function ShortCircuitParametersEditionDialog({
|
|
|
82
82
|
disabledSave: isDisabledValidationButton(errors),
|
|
83
83
|
maxWidth: "lg",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
86
86
|
NameElementEditorForm,
|
|
87
87
|
{
|
|
88
88
|
initialElementName: name,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import ShortCircuitParametersContent from "./short-circuit-parameters-content.js";
|
|
4
4
|
import { parametersStyles } from "../parameters-style.js";
|
|
5
5
|
function ShortCircuitParametersForm({ shortCircuitMethods }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(ShortCircuitParametersContent, { shortCircuitMethods }) });
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
ShortCircuitParametersForm
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { ShortCircuitIccMaterialTable } from "./short-circuit-icc-material-table.js";
|
|
6
6
|
import "@mui/icons-material";
|
|
@@ -64,13 +64,13 @@ function createRows() {
|
|
|
64
64
|
}
|
|
65
65
|
const ShortCircuitPowerElectronicsTabPanel = forwardRef(
|
|
66
66
|
({ ...othersTabPanelProps }, ref) => {
|
|
67
|
-
const modelPowerElectronics = /* @__PURE__ */ jsxs(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
|
|
70
70
|
] });
|
|
71
71
|
return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.POWER_ELECTRONICS, ref, ...othersTabPanelProps, children: [
|
|
72
72
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
73
|
+
/* @__PURE__ */ jsx(Grid, { container: true, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
|
|
74
74
|
/* @__PURE__ */ jsx(
|
|
75
75
|
ShortCircuitIccMaterialTable,
|
|
76
76
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid, Box } from "@mui/material";
|
|
4
4
|
import { useFormContext } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
6
|
import "react-intl";
|
|
@@ -110,7 +110,7 @@ const ShortCircuitStudyAreaTabPanel = forwardRef(
|
|
|
110
110
|
);
|
|
111
111
|
return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.STUDY_AREA, ref, ...othersTabPanelProps, children: [
|
|
112
112
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitInClusterFilter", heading: 4 }),
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
113
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", sx: { paddingBottom: 4 }, children: /* @__PURE__ */ jsx(
|
|
114
114
|
DirectoryItemsInput,
|
|
115
115
|
{
|
|
116
116
|
titleId: "FiltersListsSelection",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack, Alert,
|
|
2
|
+
import { Stack, Alert, Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -64,7 +64,7 @@ const initialEquipmentsSelectionType = {
|
|
|
64
64
|
function EquipmentSelectionParameters() {
|
|
65
65
|
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
66
66
|
/* @__PURE__ */ jsx(Alert, { sx: equipmentsSelectionStyles.alert, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersEquipmentsSelectionAlert" }) }),
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
/* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
68
68
|
RadioInput,
|
|
69
69
|
{
|
|
70
70
|
name: GENERATORS_SELECTION_TYPE,
|
|
@@ -81,7 +81,7 @@ function EquipmentSelectionParameters() {
|
|
|
81
81
|
hideErrorMessage: true
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
84
|
+
/* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
85
85
|
RadioInput,
|
|
86
86
|
{
|
|
87
87
|
name: TRANSFORMERS_SELECTION_TYPE,
|
|
@@ -98,7 +98,7 @@ function EquipmentSelectionParameters() {
|
|
|
98
98
|
hideErrorMessage: true
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
|
-
/* @__PURE__ */ jsx(
|
|
101
|
+
/* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
102
102
|
RadioInput,
|
|
103
103
|
{
|
|
104
104
|
name: SHUNT_COMPENSATORS_SELECTION_TYPE,
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import {
|
|
5
|
+
import { Grid, Alert, Box } from "@mui/material";
|
|
6
6
|
import { GENERAL, GENERAL_APPLY_MODIFICATIONS, UPDATE_BUS_VOLTAGE, REACTIVE_SLACKS_THRESHOLD, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD } from "./constants.js";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
8
|
import { parametersStyles } from "../parameters-style.js";
|
|
@@ -64,7 +64,7 @@ function GeneralParameters({ withApplyModifications }) {
|
|
|
64
64
|
},
|
|
65
65
|
[setValue]
|
|
66
66
|
);
|
|
67
|
-
return /* @__PURE__ */ jsxs(
|
|
67
|
+
return /* @__PURE__ */ jsxs(Grid, { children: [
|
|
68
68
|
withApplyModifications && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
69
69
|
/* @__PURE__ */ jsx(Alert, { sx: parametersStyles.adjustExistingLimitsInfo, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersGeneralSaveInfo" }) }),
|
|
70
70
|
/* @__PURE__ */ jsx(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
4
4
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
5
5
|
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
@@ -66,14 +66,16 @@ function VoltageInitParametersEditionDialog({
|
|
|
66
66
|
language
|
|
67
67
|
},
|
|
68
68
|
disabledSave: isDisabledValidationButton(errors),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
slotProps: {
|
|
70
|
+
paper: {
|
|
71
|
+
sx: {
|
|
72
|
+
height: "90vh"
|
|
73
|
+
// we want the dialog height to be fixed even when switching tabs
|
|
74
|
+
}
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
77
|
children: [
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
77
79
|
NameElementEditorForm,
|
|
78
80
|
{
|
|
79
81
|
initialElementName: name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack, Tabs, Tab,
|
|
2
|
+
import { Stack, Tabs, Tab, Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -72,7 +72,7 @@ function VoltageInitParametersForm({
|
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */ jsxs(
|
|
75
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
76
76
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.GENERAL, children: /* @__PURE__ */ jsx(GeneralParameters, { withApplyModifications: !!showActionsButtons }) }),
|
|
77
77
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.VOLTAGE_LIMITS, children: /* @__PURE__ */ jsx(VoltageLimitsParameters, {}) }),
|
|
78
78
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.EQUIPMENTS_SELECTION, children: /* @__PURE__ */ jsx(EquipmentSelectionParameters, {}) })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { Info } from "@mui/icons-material";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
|
|
7
7
|
import { LOW_VOLTAGE_LIMIT, HIGH_VOLTAGE_LIMIT, VOLTAGE_LIMITS_MODIFICATION, VOLTAGE_LIMITS_DEFAULT } from "./constants.js";
|
|
@@ -141,7 +141,7 @@ function VoltageLimitsParameters() {
|
|
|
141
141
|
return newRowData;
|
|
142
142
|
}, [VOLTAGE_LIMITS_DEFAULT_COLUMNS_DEFINITIONS]);
|
|
143
143
|
const createVoltageLimitDefaultRows = () => [newDefaultRowData];
|
|
144
|
-
return /* @__PURE__ */ jsxs(
|
|
144
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
145
145
|
/* @__PURE__ */ jsx(
|
|
146
146
|
ParameterTableField,
|
|
147
147
|
{
|