@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, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -54,8 +54,8 @@ function ConnectivityForm({
|
|
|
54
54
|
return previousValues.terminalConnected ? intl.formatMessage({ id: "connected" }) : intl.formatMessage({ id: "disconnected" });
|
|
55
55
|
}, [intl, previousValues, isEquipmentModification]);
|
|
56
56
|
const previousConnectionDirectionLabel = isEquipmentModification ? getConnectionDirectionLabel(previousValues?.connectablePosition?.connectionDirection) ?? null : null;
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
58
|
-
/* @__PURE__ */ jsx(
|
|
57
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
58
|
+
/* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
|
|
59
59
|
VoltageLevelConnectivityForm,
|
|
60
60
|
{
|
|
61
61
|
id,
|
|
@@ -67,7 +67,7 @@ function ConnectivityForm({
|
|
|
67
67
|
fetchBusesOrBusbarSections
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
70
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
|
|
71
71
|
CheckboxNullableInput,
|
|
72
72
|
{
|
|
73
73
|
name: `${id}.${FieldConstants.CONNECTED}`,
|
|
@@ -75,7 +75,7 @@ function ConnectivityForm({
|
|
|
75
75
|
previousValue: previousConnectedField ?? void 0
|
|
76
76
|
}
|
|
77
77
|
) : /* @__PURE__ */ jsx(SwitchInput, { name: `${id}.${FieldConstants.CONNECTED}`, label: "connected" }) }),
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
79
79
|
TextInput,
|
|
80
80
|
{
|
|
81
81
|
name: `${id}.${FieldConstants.CONNECTION_NAME}`,
|
|
@@ -83,7 +83,7 @@ function ConnectivityForm({
|
|
|
83
83
|
previousValue: isEquipmentModification ? previousValues?.connectablePosition?.connectionName ?? void 0 : void 0
|
|
84
84
|
}
|
|
85
85
|
) }),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
86
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
87
87
|
SelectInput,
|
|
88
88
|
{
|
|
89
89
|
name: `${id}.${FieldConstants.CONNECTION_DIRECTION}`,
|
|
@@ -96,7 +96,7 @@ function ConnectivityForm({
|
|
|
96
96
|
size: "small"
|
|
97
97
|
}
|
|
98
98
|
) }),
|
|
99
|
-
/* @__PURE__ */ jsx(
|
|
99
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
100
100
|
PositionForm,
|
|
101
101
|
{
|
|
102
102
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, IconButton } from "@mui/material";
|
|
3
3
|
import { ExploreOutlined, ExploreOffOutlined } from "@mui/icons-material";
|
|
4
4
|
import { useState, useCallback, useMemo } from "react";
|
|
5
5
|
import { useWatch } from "react-hook-form";
|
|
@@ -64,8 +64,8 @@ function PositionForm({
|
|
|
64
64
|
}
|
|
65
65
|
return "NoVoltageLevelPositionMessage";
|
|
66
66
|
}, [isNodeBuilt, voltageLevelForPositionIcon]);
|
|
67
|
-
return /* @__PURE__ */ jsxs(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
69
69
|
IntegerInput,
|
|
70
70
|
{
|
|
71
71
|
name: `${id}.${FieldConstants.CONNECTION_POSITION}`,
|
|
@@ -75,7 +75,7 @@ function PositionForm({
|
|
|
75
75
|
}
|
|
76
76
|
) }),
|
|
77
77
|
PositionDiagramPane && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
79
79
|
IconButton,
|
|
80
80
|
{
|
|
81
81
|
...isNodeBuilt && voltageLevelForPositionIcon && { onClick: handleClickOpenDiagramPane },
|
package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { useState, useRef, useCallback, useMemo, useEffect } from "react";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -107,8 +107,8 @@ function VoltageLevelConnectivityForm({
|
|
|
107
107
|
setBusOrBusbarSectionOptions([]);
|
|
108
108
|
}
|
|
109
109
|
}, [fetchBusesOrBusbarSections, voltageLevelOptions, watchVoltageLevelId]);
|
|
110
|
-
return /* @__PURE__ */ jsxs(
|
|
111
|
-
/* @__PURE__ */ jsx(
|
|
110
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
111
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
112
112
|
AutocompleteInput,
|
|
113
113
|
{
|
|
114
114
|
isOptionEqualToValue: areIdsEqual,
|
|
@@ -131,7 +131,7 @@ function VoltageLevelConnectivityForm({
|
|
|
131
131
|
size: "small"
|
|
132
132
|
}
|
|
133
133
|
) }),
|
|
134
|
-
/* @__PURE__ */ jsx(
|
|
134
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
135
135
|
AutocompleteInput,
|
|
136
136
|
{
|
|
137
137
|
allowNewValue: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Box, IconButton } from "@mui/material";
|
|
3
3
|
import { useState, useMemo, useCallback } from "react";
|
|
4
4
|
import { useFormContext, useWatch, useFieldArray } from "react-hook-form";
|
|
5
5
|
import { ControlPoint } from "@mui/icons-material";
|
|
@@ -67,7 +67,7 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
|
|
|
67
67
|
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
68
68
|
const limitsStyles = {
|
|
69
69
|
parametersBox: (theme) => ({
|
|
70
|
-
backgroundColor: theme.palette.mode === "light" ? theme.palette.background.paper : lighten(theme.palette.background.paper, 0.2),
|
|
70
|
+
backgroundColor: theme.palette.mode === "light" ? theme.palette.background.paper : theme.lighten(theme.palette.background.paper, 0.2),
|
|
71
71
|
height: "100%",
|
|
72
72
|
position: "relative",
|
|
73
73
|
padding: 0
|
|
@@ -145,10 +145,10 @@ function LimitsPane({
|
|
|
145
145
|
setIndexSelectedLimitSet(0);
|
|
146
146
|
}, [watchedOperationalLimitsGroups, prependEmptyOperationalLimitsGroup]);
|
|
147
147
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
148
|
-
/* @__PURE__ */ jsxs(
|
|
149
|
-
/* @__PURE__ */ jsx(
|
|
148
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, columns: 6, spacing: 1, sx: { maxWidth: "600px" }, children: [
|
|
149
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(GridSection, { title: "SelectedOperationalLimitGroups" }) }),
|
|
150
150
|
/* @__PURE__ */ jsx(
|
|
151
|
-
|
|
151
|
+
Grid,
|
|
152
152
|
{
|
|
153
153
|
size: 3,
|
|
154
154
|
sx: {
|
|
@@ -169,7 +169,7 @@ function LimitsPane({
|
|
|
169
169
|
)
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
|
-
/* @__PURE__ */ jsx(
|
|
172
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
|
|
173
173
|
SelectedOperationalLimitGroup,
|
|
174
174
|
{
|
|
175
175
|
selectedFormName: `${id}.${FieldConstants.SELECTED_OPERATIONAL_LIMITS_GROUP_ID1}`,
|
|
@@ -180,7 +180,7 @@ function LimitsPane({
|
|
|
180
180
|
isABranchModif: !!equipmentToModify
|
|
181
181
|
}
|
|
182
182
|
) }),
|
|
183
|
-
/* @__PURE__ */ jsx(
|
|
183
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
|
|
184
184
|
SelectedOperationalLimitGroup,
|
|
185
185
|
{
|
|
186
186
|
selectedFormName: `${id}.${FieldConstants.SELECTED_OPERATIONAL_LIMITS_GROUP_ID2}`,
|
|
@@ -192,8 +192,8 @@ function LimitsPane({
|
|
|
192
192
|
}
|
|
193
193
|
) })
|
|
194
194
|
] }),
|
|
195
|
-
/* @__PURE__ */ jsxs(
|
|
196
|
-
/* @__PURE__ */ jsxs(
|
|
195
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, size: 12, columns: 10.25, children: [
|
|
196
|
+
/* @__PURE__ */ jsxs(Grid, { size: 4, children: [
|
|
197
197
|
/* @__PURE__ */ jsxs(
|
|
198
198
|
Box,
|
|
199
199
|
{
|
|
@@ -220,7 +220,7 @@ function LimitsPane({
|
|
|
220
220
|
}
|
|
221
221
|
)
|
|
222
222
|
] }),
|
|
223
|
-
/* @__PURE__ */ jsx(
|
|
223
|
+
/* @__PURE__ */ jsx(Grid, { size: 6, sx: limitsStyles.parametersBox, marginLeft: 2, children: indexSelectedLimitSet !== null && operationalLimitsGroups.map(
|
|
224
224
|
(operationalLimitsGroup, index) => index === indexSelectedLimitSet && /* @__PURE__ */ jsx(
|
|
225
225
|
LimitsEditor,
|
|
226
226
|
{
|
package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { useMemo, useCallback, useEffect } from "react";
|
|
5
5
|
import { useFormContext, useController } from "react-hook-form";
|
|
@@ -217,7 +217,7 @@ function LimitsEditor({
|
|
|
217
217
|
),
|
|
218
218
|
name && /* @__PURE__ */ jsxs(Box, { children: [
|
|
219
219
|
/* @__PURE__ */ jsxs(
|
|
220
|
-
|
|
220
|
+
Grid,
|
|
221
221
|
{
|
|
222
222
|
container: true,
|
|
223
223
|
justifyContent: "flex-start",
|
|
@@ -225,7 +225,7 @@ function LimitsEditor({
|
|
|
225
225
|
spacing: 2,
|
|
226
226
|
sx: { paddingBottom: 1, paddingTop: 3 },
|
|
227
227
|
children: [
|
|
228
|
-
/* @__PURE__ */ jsx(
|
|
228
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
229
229
|
TextInput,
|
|
230
230
|
{
|
|
231
231
|
name: `${name}.${FieldConstants.NAME}`,
|
|
@@ -234,7 +234,7 @@ function LimitsEditor({
|
|
|
234
234
|
disabled
|
|
235
235
|
}
|
|
236
236
|
) }),
|
|
237
|
-
/* @__PURE__ */ jsx(
|
|
237
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
238
238
|
SelectInput,
|
|
239
239
|
{
|
|
240
240
|
label: "Applicability",
|
|
@@ -248,7 +248,7 @@ function LimitsEditor({
|
|
|
248
248
|
formProps: { error: !!error?.message }
|
|
249
249
|
}
|
|
250
250
|
) }),
|
|
251
|
-
/* @__PURE__ */ jsx(
|
|
251
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
252
252
|
FloatInput,
|
|
253
253
|
{
|
|
254
254
|
name: `${limitsGroupFormName}.${FieldConstants.PERMANENT_LIMIT}`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, TableContainer, Table, TableHead, TableRow, TableCell, Box, IconButton, TableBody } from "@mui/material";
|
|
5
5
|
import { AddCircle, Delete } from "@mui/icons-material";
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "../../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -153,7 +153,7 @@ function TemporaryLimitsTable({
|
|
|
153
153
|
function renderTableBody() {
|
|
154
154
|
return /* @__PURE__ */ jsx(TableBody, { children: fields.map((value, index) => renderTableRow(value.id, index)) });
|
|
155
155
|
}
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
156
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, children: /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, children: [
|
|
157
157
|
/* @__PURE__ */ jsx(TableContainer, { children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", padding: "none", children: [
|
|
158
158
|
renderTableHead(),
|
|
159
159
|
renderTableBody()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { LimitsGroupsContextualMenu } from "./LimitsGroupsContextualMenu.js";
|
|
@@ -67,7 +67,7 @@ function OperationalLimitsGroups({
|
|
|
67
67
|
},
|
|
68
68
|
[setIndexSelectedLimitSet]
|
|
69
69
|
);
|
|
70
|
-
return /* @__PURE__ */ jsxs(
|
|
70
|
+
return /* @__PURE__ */ jsxs(Grid, { children: [
|
|
71
71
|
/* @__PURE__ */ jsx(
|
|
72
72
|
Tabs,
|
|
73
73
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFieldArray } from "react-hook-form";
|
|
3
|
-
import { Stack,
|
|
3
|
+
import { Stack, Grid } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { VoltageAdornment } from "../../../../utils/constants/adornments.js";
|
|
6
6
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -70,7 +70,7 @@ function BusbarSectionVoltageMeasurementsForm({
|
|
|
70
70
|
const intl = useIntl();
|
|
71
71
|
const sortedFields = fields.map((field, i) => ({ ...field, originalIndex: i })).sort((a, b) => a.busbarSectionId.localeCompare(b.busbarSectionId));
|
|
72
72
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 1, children: [
|
|
73
|
-
fields.length === 0 && /* @__PURE__ */ jsx(
|
|
73
|
+
fields.length === 0 && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "NoBusbarSectionFound" }) }),
|
|
74
74
|
sortedFields.map((field) => {
|
|
75
75
|
const { busbarSectionId: bbsId, originalIndex } = field;
|
|
76
76
|
const networkBbs = busbarSections.find((b) => b.id === bbsId);
|
|
@@ -80,9 +80,9 @@ function BusbarSectionVoltageMeasurementsForm({
|
|
|
80
80
|
if (validity != null) {
|
|
81
81
|
previousValidity = intl.formatMessage({ id: validity ? "ValidMeasurement" : "InvalidMeasurement" });
|
|
82
82
|
}
|
|
83
|
-
return /* @__PURE__ */ jsx(
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
83
|
+
return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, alignItems: "center", children: [
|
|
84
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: bbsId }),
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
86
86
|
FloatInput,
|
|
87
87
|
{
|
|
88
88
|
name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALUE}`,
|
|
@@ -92,7 +92,7 @@ function BusbarSectionVoltageMeasurementsForm({
|
|
|
92
92
|
clearable: true
|
|
93
93
|
}
|
|
94
94
|
) }),
|
|
95
|
-
/* @__PURE__ */ jsx(
|
|
95
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
|
|
96
96
|
CheckboxNullableInput,
|
|
97
97
|
{
|
|
98
98
|
name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALIDITY}`,
|
|
@@ -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 { PowerWithValidityForm } from "./PowerWithValidityForm.js";
|
|
4
4
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
5
5
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -32,7 +32,7 @@ function PowerMeasurementsForm({
|
|
|
32
32
|
reactivePowerId = `${idPrefix}.${reactivePowerId}`;
|
|
33
33
|
}
|
|
34
34
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
35
|
-
!reactivePowerOnly && /* @__PURE__ */ jsx(
|
|
35
|
+
!reactivePowerOnly && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
36
36
|
PowerWithValidityForm,
|
|
37
37
|
{
|
|
38
38
|
id: activePowerId,
|
|
@@ -40,7 +40,7 @@ function PowerMeasurementsForm({
|
|
|
40
40
|
measurement: activePowerMeasurement
|
|
41
41
|
}
|
|
42
42
|
) }),
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
44
44
|
PowerWithValidityForm,
|
|
45
45
|
{
|
|
46
46
|
id: reactivePowerId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { CheckboxNullableInput } from "../../../../components/ui/reactHookForm/CheckboxNullableInput.js";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
7
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -42,8 +42,8 @@ function PowerWithValidityForm({ id, field, measurement }) {
|
|
|
42
42
|
}
|
|
43
43
|
return measurement.validity ? intl.formatMessage({ id: "ValidMeasurement" }) : intl.formatMessage({ id: "InvalidMeasurement" });
|
|
44
44
|
}, [intl, measurement?.validity]);
|
|
45
|
-
return /* @__PURE__ */ jsxs(
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
46
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
47
47
|
FloatInput,
|
|
48
48
|
{
|
|
49
49
|
name: `${id}.${FieldConstants.VALUE}`,
|
|
@@ -53,7 +53,7 @@ function PowerWithValidityForm({ id, field, measurement }) {
|
|
|
53
53
|
clearable: true
|
|
54
54
|
}
|
|
55
55
|
) }),
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
56
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
57
57
|
CheckboxNullableInput,
|
|
58
58
|
{
|
|
59
59
|
name: `${id}.${FieldConstants.VALIDITY}`,
|
|
@@ -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 } from "@mui/material";
|
|
5
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
6
6
|
import "../../../../utils/conversionUtils.js";
|
|
7
7
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -53,14 +53,14 @@ function PropertyForm({ name, index, predefinedProperties }) {
|
|
|
53
53
|
return values.sort((a, b) => a.localeCompare(b));
|
|
54
54
|
}, [watchPropertyName, predefinedProperties]);
|
|
55
55
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
-
watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(
|
|
56
|
+
watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
57
57
|
TextInput,
|
|
58
58
|
{
|
|
59
59
|
name: `${name}.${index}.${FieldConstants.NAME}`,
|
|
60
60
|
label: "PropertyName",
|
|
61
61
|
formProps: { disabled: true, ...italicFontTextField }
|
|
62
62
|
}
|
|
63
|
-
) }) : /* @__PURE__ */ jsx(
|
|
63
|
+
) }) : /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
64
64
|
AutocompleteInput,
|
|
65
65
|
{
|
|
66
66
|
name: `${name}.${index}.${FieldConstants.NAME}`,
|
|
@@ -70,7 +70,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
|
|
|
70
70
|
allowNewValue: true
|
|
71
71
|
}
|
|
72
72
|
) }),
|
|
73
|
-
watchPropertyDeletionMark ? /* @__PURE__ */ jsx(
|
|
73
|
+
watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
74
74
|
TextInput,
|
|
75
75
|
{
|
|
76
76
|
name: `${name}.${index}.${FieldConstants.VALUE}`,
|
|
@@ -78,7 +78,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
|
|
|
78
78
|
previousValue: watchPropertyPreviousValue,
|
|
79
79
|
formProps: { disabled: true, ...italicFontTextField }
|
|
80
80
|
}
|
|
81
|
-
) }) : /* @__PURE__ */ jsx(
|
|
81
|
+
) }) : /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
82
82
|
AutocompleteInput,
|
|
83
83
|
{
|
|
84
84
|
name: `${name}.${index}.${FieldConstants.VALUE}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
4
|
import { ReactiveCapabilityCurveTableForm } from "./reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js";
|
|
5
5
|
import { ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
6
6
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -85,7 +85,7 @@ function ReactiveLimitsForm({
|
|
|
85
85
|
disabled: !isReactiveCapabilityCurveOn
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
|
-
return /* @__PURE__ */ jsxs(
|
|
88
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
89
89
|
/* @__PURE__ */ jsx(GridItem, { size: 12, children: reactiveCapabilityCurveChoiceRadioField }),
|
|
90
90
|
!isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumReactivePowerField }),
|
|
91
91
|
!isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumReactivePowerField }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFieldArray } from "react-hook-form";
|
|
3
3
|
import { useCallback, useEffect } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, IconButton } from "@mui/material";
|
|
5
5
|
import { Delete, ControlPoint } from "@mui/icons-material";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
7
|
import { INSERT, REMOVE } from "./reactiveCapability.utils.js";
|
|
@@ -72,9 +72,9 @@ function ReactiveCapabilityCurveTableForm({
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}, [insertRow, rows]);
|
|
75
|
-
return /* @__PURE__ */ jsxs(
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
-
tableHeadersIds.map((header) => /* @__PURE__ */ jsx(
|
|
75
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
76
|
+
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
|
|
77
|
+
tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(FormattedMessage, { id: header }) }, header)),
|
|
78
78
|
rows.map((value, index, displayedValues) => {
|
|
79
79
|
let labelSuffix;
|
|
80
80
|
if (index === 0) {
|
|
@@ -84,9 +84,9 @@ function ReactiveCapabilityCurveTableForm({
|
|
|
84
84
|
} else {
|
|
85
85
|
labelSuffix = index - 1;
|
|
86
86
|
}
|
|
87
|
-
return /* @__PURE__ */ jsxs(
|
|
87
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, width: "100%", children: [
|
|
88
88
|
/* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
89
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
90
90
|
IconButton,
|
|
91
91
|
{
|
|
92
92
|
onClick: () => handleRemoveRow(index),
|
|
@@ -95,7 +95,7 @@ function ReactiveCapabilityCurveTableForm({
|
|
|
95
95
|
},
|
|
96
96
|
value.id
|
|
97
97
|
) }),
|
|
98
|
-
index === displayedValues.length - 1 && /* @__PURE__ */ jsx(
|
|
98
|
+
index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
99
99
|
IconButton,
|
|
100
100
|
{
|
|
101
101
|
onClick: () => handleInsertRow(),
|
package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createFilterOptions,
|
|
2
|
+
import { createFilterOptions, Grid, Box, Popper } from "@mui/material";
|
|
3
3
|
import { useState, useMemo, useEffect, useCallback } from "react";
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -77,8 +77,8 @@ function RegulatingTerminalForm({
|
|
|
77
77
|
const resetEquipment = useCallback(() => {
|
|
78
78
|
setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
|
|
79
79
|
}, [id, setValue]);
|
|
80
|
-
return /* @__PURE__ */ jsxs(
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
80
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, direction: direction ?? "row", spacing: 1, children: [
|
|
81
|
+
/* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
|
|
82
82
|
AutocompleteInput,
|
|
83
83
|
{
|
|
84
84
|
name: `${id}.${FieldConstants.VOLTAGE_LEVEL}`,
|
|
@@ -110,7 +110,7 @@ function RegulatingTerminalForm({
|
|
|
110
110
|
allowNewValue: true
|
|
111
111
|
}
|
|
112
112
|
) }),
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
113
|
+
/* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
|
|
114
114
|
AutocompleteInput,
|
|
115
115
|
{
|
|
116
116
|
name: `${id}.${FieldConstants.EQUIPMENT}`,
|
|
@@ -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 { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
4
4
|
import { ActivePowerAdornment, ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
5
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -36,8 +36,8 @@ import "react-papaparse";
|
|
|
36
36
|
function SetPointsForm({ previousValues, isModification = false }) {
|
|
37
37
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38
38
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
39
|
-
/* @__PURE__ */ jsxs(
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
39
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
40
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
41
41
|
FloatInput,
|
|
42
42
|
{
|
|
43
43
|
name: FieldConstants.ACTIVE_POWER_SET_POINT,
|
|
@@ -47,7 +47,7 @@ function SetPointsForm({ previousValues, isModification = false }) {
|
|
|
47
47
|
clearable: isModification
|
|
48
48
|
}
|
|
49
49
|
) }),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
50
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
51
51
|
FloatInput,
|
|
52
52
|
{
|
|
53
53
|
name: FieldConstants.REACTIVE_POWER_SET_POINT,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import "@mui/icons-material";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -54,7 +54,7 @@ function ShortCircuitForm({ previousValues }) {
|
|
|
54
54
|
clearable: true
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
57
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
58
58
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: transientReactanceField }),
|
|
59
59
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: transformerReactanceField })
|
|
60
60
|
] });
|
package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js
CHANGED
|
@@ -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 { useWatch } from "react-hook-form";
|
|
5
5
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
@@ -83,7 +83,7 @@ function VoltageRegulationForm({
|
|
|
83
83
|
previousValue: translatedPreviousRegulationLabel ?? void 0
|
|
84
84
|
}
|
|
85
85
|
) }),
|
|
86
|
-
isDistantRegulation && /* @__PURE__ */ jsxs(
|
|
86
|
+
isDistantRegulation && /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, spacing: 2, children: [
|
|
87
87
|
/* @__PURE__ */ jsx(GridItem, { size: 4, sx: { alignSelf: "center", justifyContent: "end" }, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
|
|
88
88
|
/* @__PURE__ */ jsx(GridItem, { size: 8, children: /* @__PURE__ */ jsx(
|
|
89
89
|
RegulatingTerminalForm,
|
|
@@ -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 { useRef, useState, useMemo, useEffect, useCallback } from "react";
|
|
4
4
|
import { useWatch, useFormContext } from "react-hook-form";
|
|
5
5
|
import { useHvdcLccDeletion } from "./hvdcLccDeletion/useHvdcLccDeletion.js";
|
|
@@ -158,8 +158,8 @@ function EquipmentDeletionForm({
|
|
|
158
158
|
setValue(FieldConstants.EQUIPMENT_ID, null);
|
|
159
159
|
}, [setValue]);
|
|
160
160
|
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
161
|
-
/* @__PURE__ */ jsx(
|
|
162
|
-
/* @__PURE__ */ jsx(
|
|
161
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
162
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
163
163
|
AutocompleteInput,
|
|
164
164
|
{
|
|
165
165
|
isOptionEqualToValue: richTypeEquals,
|
|
@@ -173,7 +173,7 @@ function EquipmentDeletionForm({
|
|
|
173
173
|
formProps: filledTextField
|
|
174
174
|
}
|
|
175
175
|
) }),
|
|
176
|
-
/* @__PURE__ */ jsx(
|
|
176
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
177
177
|
AutocompleteInput,
|
|
178
178
|
{
|
|
179
179
|
isOptionEqualToValue: areIdsEqual,
|
|
@@ -190,7 +190,7 @@ function EquipmentDeletionForm({
|
|
|
190
190
|
}
|
|
191
191
|
) })
|
|
192
192
|
] }) }),
|
|
193
|
-
/* @__PURE__ */ jsx(
|
|
193
|
+
/* @__PURE__ */ jsx(Grid, { children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
|
|
194
194
|
] });
|
|
195
195
|
}
|
|
196
196
|
export {
|
|
@@ -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 { useFieldArray } from "react-hook-form";
|
|
4
4
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
5
5
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -16,8 +16,8 @@ function HvdcLccDeletionSpecificForm() {
|
|
|
16
16
|
});
|
|
17
17
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
18
|
/* @__PURE__ */ jsx(GridSection, { title: "LCCConverterStationShuntCompensators" }),
|
|
19
|
-
/* @__PURE__ */ jsxs(
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
19
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
21
21
|
ShuntCompensatorSelectionForm,
|
|
22
22
|
{
|
|
23
23
|
title: "Side1",
|
|
@@ -25,7 +25,7 @@ function HvdcLccDeletionSpecificForm() {
|
|
|
25
25
|
mcsRows: mcsRows1
|
|
26
26
|
}
|
|
27
27
|
) }),
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
28
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
29
29
|
ShuntCompensatorSelectionForm,
|
|
30
30
|
{
|
|
31
31
|
title: "Side2",
|
|
@@ -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 { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
4
4
|
import "../../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -40,14 +40,14 @@ function ShuntCompensatorSelectionForm({
|
|
|
40
40
|
}) {
|
|
41
41
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
42
|
/* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
|
|
43
|
-
mcsRows.map((field, index) => /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
45
45
|
CheckboxInput,
|
|
46
46
|
{
|
|
47
47
|
name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
|
|
48
48
|
}
|
|
49
49
|
) }),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
50
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
|
|
51
51
|
] }, field.id))
|
|
52
52
|
] });
|
|
53
53
|
}
|