@gridsuite/commons-ui 0.239.0 → 0.240.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/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/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 +1 -1
- 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/ProviderParam.js +5 -5
- package/dist/features/parameters/common/contingency-table/contingency-table.js +4 -4
- 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 +4 -4
- 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/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.js +6 -6
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +3 -3
- 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-inline.js +3 -3
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +6 -7
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- 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 +3 -3
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +6 -7
- 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-form.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +5 -5
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +2 -3
- 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-form.js +5 -8
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +2 -2
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +5 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +7 -7
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +2 -3
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +3 -3
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +8 -11
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +8 -8
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -8
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +13 -13
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +4 -7
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +7 -7
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +4 -4
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +5 -5
- package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +5 -8
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/topBar/AboutDialog.js +4 -7
- package/dist/index.js +7 -3
- package/package.json +3 -2
|
@@ -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 { Grid2, 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(Grid2, { container: true, spacing: 2, children: [
|
|
76
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
|
|
77
|
+
tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid2, { 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(Grid2, { container: true, spacing: 3, children: [
|
|
88
88
|
/* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
89
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
|
|
99
99
|
IconButton,
|
|
100
100
|
{
|
|
101
101
|
onClick: () => handleInsertRow(),
|
package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js
CHANGED
|
@@ -78,7 +78,7 @@ function RegulatingTerminalForm({
|
|
|
78
78
|
setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
|
|
79
79
|
}, [id, setValue]);
|
|
80
80
|
return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: direction ?? "row", spacing: 1, children: [
|
|
81
|
-
/* @__PURE__ */ jsx(Grid2, { size: itemSize,
|
|
81
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { size: itemSize,
|
|
113
|
+
/* @__PURE__ */ jsx(Grid2, { size: itemSize, children: /* @__PURE__ */ jsx(
|
|
114
114
|
AutocompleteInput,
|
|
115
115
|
{
|
|
116
116
|
name: `${id}.${FieldConstants.EQUIPMENT}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
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";
|
|
6
6
|
import "../../../../utils/conversionUtils.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(Grid2, { container: true, spacing: 2, children: [
|
|
40
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { 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 { Grid2 } from "@mui/material";
|
|
3
3
|
import "@mui/icons-material";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -32,7 +32,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
32
32
|
import "mui-nested-menu";
|
|
33
33
|
import "react-resizable-panels";
|
|
34
34
|
import "react-papaparse";
|
|
35
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
35
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
36
36
|
function ShortCircuitForm({ previousValues }) {
|
|
37
37
|
const transientReactanceField = /* @__PURE__ */ jsx(
|
|
38
38
|
FloatInput,
|
|
@@ -54,7 +54,7 @@ function ShortCircuitForm({ previousValues }) {
|
|
|
54
54
|
clearable: true
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
57
|
+
return /* @__PURE__ */ jsxs(Grid2, { 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 { Box,
|
|
2
|
+
import { Box, Grid2 } 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";
|
|
@@ -33,7 +33,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
33
33
|
import "mui-nested-menu";
|
|
34
34
|
import "react-resizable-panels";
|
|
35
35
|
import "react-papaparse";
|
|
36
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
36
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
37
37
|
import { RegulatingTerminalForm } from "../regulatingTerminal/RegulatingTerminalForm.js";
|
|
38
38
|
import { REGULATION_TYPES } from "./voltageRegulation.utils.js";
|
|
39
39
|
function VoltageRegulationForm({
|
|
@@ -83,10 +83,10 @@ function VoltageRegulationForm({
|
|
|
83
83
|
}
|
|
84
84
|
) }),
|
|
85
85
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
86
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end" }),
|
|
87
87
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
88
88
|
isDistantRegulation && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
89
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
|
|
90
90
|
/* @__PURE__ */ jsx(GridItem, { size: 8, children: /* @__PURE__ */ jsx(
|
|
91
91
|
RegulatingTerminalForm,
|
|
92
92
|
{
|
|
@@ -98,7 +98,7 @@ function VoltageRegulationForm({
|
|
|
98
98
|
equipmentSectionType: previousEquipmentSectionType
|
|
99
99
|
}
|
|
100
100
|
) }),
|
|
101
|
-
/* @__PURE__ */ jsx(
|
|
101
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end" }),
|
|
102
102
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
103
103
|
FloatInput,
|
|
104
104
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, Grid2 } 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";
|
|
@@ -154,9 +154,9 @@ function EquipmentDeletionForm({
|
|
|
154
154
|
const handleTypeChange = useCallback(() => {
|
|
155
155
|
setValue(FieldConstants.EQUIPMENT_ID, null);
|
|
156
156
|
}, [setValue]);
|
|
157
|
-
return /* @__PURE__ */ jsxs(
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
159
|
-
/* @__PURE__ */ jsx(
|
|
157
|
+
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
158
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
159
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
160
160
|
AutocompleteInput,
|
|
161
161
|
{
|
|
162
162
|
isOptionEqualToValue: richTypeEquals,
|
|
@@ -170,7 +170,7 @@ function EquipmentDeletionForm({
|
|
|
170
170
|
formProps: filledTextField
|
|
171
171
|
}
|
|
172
172
|
) }),
|
|
173
|
-
/* @__PURE__ */ jsx(
|
|
173
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
174
174
|
AutocompleteInput,
|
|
175
175
|
{
|
|
176
176
|
isOptionEqualToValue: areIdsEqual,
|
|
@@ -187,7 +187,7 @@ function EquipmentDeletionForm({
|
|
|
187
187
|
}
|
|
188
188
|
) })
|
|
189
189
|
] }) }),
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
190
|
+
/* @__PURE__ */ jsx(Grid2, { children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
|
|
191
191
|
] });
|
|
192
192
|
}
|
|
193
193
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } 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";
|
|
6
6
|
import "../../../../utils/types/equipmentType.js";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
8
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
9
9
|
import { ShuntCompensatorSelectionForm } from "./ShuntCompensatorSelectionForm.js";
|
|
10
10
|
function HvdcLccDeletionSpecificForm() {
|
|
11
11
|
const { fields: mcsRows1 } = useFieldArray({
|
|
@@ -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(Grid2, { container: true, spacing: 2, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { 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 { Grid2 } 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";
|
|
@@ -32,7 +32,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
32
32
|
import "mui-nested-menu";
|
|
33
33
|
import "react-resizable-panels";
|
|
34
34
|
import "react-papaparse";
|
|
35
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
35
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
36
36
|
function ShuntCompensatorSelectionForm({
|
|
37
37
|
title,
|
|
38
38
|
arrayFormName,
|
|
@@ -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(Grid2, { container: true, spacing: 1, alignItems: "center", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
|
|
51
51
|
] }, field.id))
|
|
52
52
|
] });
|
|
53
53
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { filledTextField, italicFontTextField } from "../../common/form.utils.js";
|
|
@@ -38,7 +38,7 @@ import "mui-nested-menu";
|
|
|
38
38
|
import "react-resizable-panels";
|
|
39
39
|
import "react-papaparse";
|
|
40
40
|
import "../../common/properties/propertyUtils.js";
|
|
41
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
41
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
42
42
|
import "react-dom";
|
|
43
43
|
import "autosuggest-highlight/match";
|
|
44
44
|
import "autosuggest-highlight/parse";
|
|
@@ -53,7 +53,7 @@ import "react-querybuilder";
|
|
|
53
53
|
import "uuid";
|
|
54
54
|
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
55
55
|
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
56
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
56
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
57
57
|
import "@react-querybuilder/material";
|
|
58
58
|
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
59
59
|
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
@@ -149,15 +149,15 @@ function GeneratorCreationForm({
|
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
152
|
-
/* @__PURE__ */ jsxs(
|
|
152
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
153
153
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorIdField }),
|
|
154
154
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorNameField }),
|
|
155
155
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: energySourceField })
|
|
156
156
|
] }),
|
|
157
157
|
/* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
158
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
|
|
159
159
|
/* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
|
|
160
|
-
/* @__PURE__ */ jsxs(
|
|
160
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
161
161
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
162
162
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
|
|
163
163
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
|
|
@@ -165,7 +165,7 @@ function GeneratorCreationForm({
|
|
|
165
165
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
166
166
|
/* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
|
|
167
167
|
/* @__PURE__ */ jsx(SetPointsForm, {}),
|
|
168
|
-
/* @__PURE__ */ jsxs(
|
|
168
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
169
169
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
170
170
|
/* @__PURE__ */ jsx(
|
|
171
171
|
GridItem,
|
|
@@ -182,10 +182,10 @@ function GeneratorCreationForm({
|
|
|
182
182
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
183
183
|
/* @__PURE__ */ jsx(ShortCircuitForm, {}),
|
|
184
184
|
/* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
|
|
185
|
-
/* @__PURE__ */ jsxs(
|
|
185
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
186
186
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
|
|
187
187
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField }),
|
|
188
|
-
/* @__PURE__ */ jsxs(
|
|
188
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
189
189
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
|
|
190
190
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
|
|
191
191
|
] })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TextField,
|
|
2
|
+
import { TextField, Grid2 } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
5
5
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -104,10 +104,10 @@ function GeneratorDialogHeader({ generatorToModify, equipmentId }) {
|
|
|
104
104
|
previousValue: previousEnergySourceLabel
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
return /* @__PURE__ */ jsxs(
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
109
|
-
/* @__PURE__ */ jsx(
|
|
110
|
-
/* @__PURE__ */ jsx(
|
|
107
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorIdField }),
|
|
109
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorNameField }),
|
|
110
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: energySourceField })
|
|
111
111
|
] });
|
|
112
112
|
}
|
|
113
113
|
export {
|
package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { GeneratorDialogTab } from "./generatorTabs.utils.js";
|
|
@@ -37,7 +37,7 @@ import "react-resizable-panels";
|
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../../common/properties/propertyUtils.js";
|
|
39
39
|
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
40
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
40
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
41
41
|
import "react-dom";
|
|
42
42
|
import "autosuggest-highlight/match";
|
|
43
43
|
import "autosuggest-highlight/parse";
|
|
@@ -52,7 +52,7 @@ import "react-querybuilder";
|
|
|
52
52
|
import "uuid";
|
|
53
53
|
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
54
54
|
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
55
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
55
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
56
56
|
import "@react-querybuilder/material";
|
|
57
57
|
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
58
58
|
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
@@ -215,7 +215,7 @@ function GeneratorDialogTabsContent({
|
|
|
215
215
|
isModification: true
|
|
216
216
|
}
|
|
217
217
|
),
|
|
218
|
-
/* @__PURE__ */ jsxs(
|
|
218
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
219
219
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
220
220
|
/* @__PURE__ */ jsx(
|
|
221
221
|
GridItem,
|
|
@@ -235,16 +235,16 @@ function GeneratorDialogTabsContent({
|
|
|
235
235
|
}
|
|
236
236
|
)
|
|
237
237
|
] }),
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
|
|
239
239
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
240
240
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
241
241
|
] }) }),
|
|
242
|
-
/* @__PURE__ */ jsxs(
|
|
242
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
243
243
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
244
244
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
|
|
245
245
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
|
|
246
246
|
] }),
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
247
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
|
|
248
248
|
/* @__PURE__ */ jsx(
|
|
249
249
|
ReactiveLimitsForm,
|
|
250
250
|
{
|
|
@@ -258,10 +258,10 @@ function GeneratorDialogTabsContent({
|
|
|
258
258
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
259
259
|
/* @__PURE__ */ jsx(ShortCircuitForm, { previousValues: generatorToModify?.generatorShortCircuit }),
|
|
260
260
|
/* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
|
|
261
|
-
/* @__PURE__ */ jsxs(
|
|
261
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
262
262
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
|
|
263
263
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField }),
|
|
264
|
-
/* @__PURE__ */ jsxs(
|
|
264
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
265
265
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
|
|
266
266
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
|
|
267
267
|
] })
|
package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, Grid2 } from "@mui/material";
|
|
3
3
|
import { useWatch } from "react-hook-form";
|
|
4
4
|
import { GeneratorDialogTab, GENERATOR_TAB_FIELDS } from "./generatorTabs.utils.js";
|
|
5
5
|
import { GeneratorDialogHeader } from "./GeneratorDialogHeader.js";
|
|
@@ -23,9 +23,9 @@ function GeneratorModificationForm({
|
|
|
23
23
|
GeneratorDialogTab.CONNECTIVITY_TAB
|
|
24
24
|
);
|
|
25
25
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
26
|
-
return /* @__PURE__ */ jsxs(
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
26
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(GeneratorDialogHeader, { generatorToModify, equipmentId }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
29
29
|
GeneratorDialogTabs,
|
|
30
30
|
{
|
|
31
31
|
tabIndex,
|
|
@@ -33,7 +33,7 @@ function GeneratorModificationForm({
|
|
|
33
33
|
setTabIndex
|
|
34
34
|
}
|
|
35
35
|
) }),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
37
37
|
GeneratorDialogTabsContent,
|
|
38
38
|
{
|
|
39
39
|
tabIndex,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TextField,
|
|
2
|
+
import { TextField, Grid2 } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { filledTextField } from "../../common/form.utils.js";
|
|
@@ -103,10 +103,10 @@ function LoadDialogHeader({ loadToModify, isModification = false }) {
|
|
|
103
103
|
}) : void 0
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
-
return /* @__PURE__ */ jsxs(
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
109
|
-
/* @__PURE__ */ jsx(
|
|
106
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
107
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadIdField }),
|
|
108
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadNameField }),
|
|
109
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadTypeField })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from "@mui/material";
|
|
3
3
|
import { LoadDialogTab } from "./load.utils.js";
|
|
4
4
|
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
5
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
5
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
6
6
|
import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
|
|
7
7
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
8
8
|
import { SetPointsForm } from "../../common/setpoints/SetPointsForm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, Grid2 } from "@mui/material";
|
|
3
3
|
import { LoadDialogTab, LOAD_TAB_FIELDS } from "./load.utils.js";
|
|
4
4
|
import { LoadDialogHeader } from "./LoadDialogHeader.js";
|
|
5
5
|
import { LoadDialogTabs } from "./LoadDialogTabs.js";
|
|
@@ -16,9 +16,9 @@ function LoadForm({
|
|
|
16
16
|
LOAD_TAB_FIELDS,
|
|
17
17
|
LoadDialogTab.CONNECTIVITY_TAB
|
|
18
18
|
);
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
19
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(LoadDialogHeader, { loadToModify, isModification }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
22
22
|
LoadDialogTabs,
|
|
23
23
|
{
|
|
24
24
|
tabIndex,
|
|
@@ -27,7 +27,7 @@ function LoadForm({
|
|
|
27
27
|
isModification
|
|
28
28
|
}
|
|
29
29
|
) }),
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
30
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
31
31
|
LoadDialogTabsContent,
|
|
32
32
|
{
|
|
33
33
|
tabIndex,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, Box } from "@mui/material";
|
|
3
3
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
4
|
import { useMemo, useCallback, useEffect } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
@@ -173,19 +173,19 @@ function CharacteristicsForm({ previousValues, isModification = false }) {
|
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
const characteristicsChoiceField = /* @__PURE__ */ jsx(RadioInput, { name: FieldConstants.CHARACTERISTICS_CHOICE, options: Object.values(CHARACTERISTICS_CHOICES) });
|
|
176
|
-
return /* @__PURE__ */ jsxs(
|
|
177
|
-
/* @__PURE__ */ jsx(
|
|
178
|
-
/* @__PURE__ */ jsx(
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(
|
|
181
|
-
/* @__PURE__ */ jsx(
|
|
182
|
-
/* @__PURE__ */ jsx(
|
|
176
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
177
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maximumSectionCountField }),
|
|
178
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: sectionCountField }),
|
|
179
|
+
/* @__PURE__ */ jsx(Grid2, { size: 12, children: characteristicsChoiceField }),
|
|
180
|
+
characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
181
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maxSusceptanceField }),
|
|
182
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnSusceptanceField })
|
|
183
183
|
] }),
|
|
184
|
-
characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(
|
|
185
|
-
/* @__PURE__ */ jsx(
|
|
184
|
+
characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
185
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: shuntCompensatorTypeField }),
|
|
186
186
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
187
|
-
/* @__PURE__ */ jsx(
|
|
188
|
-
/* @__PURE__ */ jsx(
|
|
187
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maxQAtNominalVField }),
|
|
188
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnMaxQAtNominalVField })
|
|
189
189
|
] })
|
|
190
190
|
] });
|
|
191
191
|
}
|
package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
export declare const getCharacteristicsFormValidationSchema: (isModification: boolean) => {
|
|
8
8
|
maxQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
9
9
|
maxSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
10
|
-
maximumSectionCount: import('yup').NumberSchema<number
|
|
11
|
-
sectionCount: import('yup').NumberSchema<number
|
|
12
|
-
switchedOnQAtNominalV: import('yup').NumberSchema<number |
|
|
13
|
-
switchedOnSusceptance: import('yup').NumberSchema<number |
|
|
10
|
+
maximumSectionCount: import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
11
|
+
sectionCount: import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
12
|
+
switchedOnQAtNominalV: import('yup').NumberSchema<import('yup').Maybe<number | undefined>, import('yup').AnyObject, undefined, "">;
|
|
13
|
+
switchedOnSusceptance: import('yup').NumberSchema<import('yup').Maybe<number | undefined>, import('yup').AnyObject, undefined, "">;
|
|
14
14
|
characteristicsChoice: import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
15
15
|
shuntCompensatorType: import('yup').StringSchema<string | null | undefined, import('yup').AnyObject, null, "d">;
|
|
16
16
|
} | {
|
|
17
17
|
maxQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
18
18
|
maxSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
19
|
-
maximumSectionCount: import('yup').NumberSchema<number, import('yup').AnyObject,
|
|
20
|
-
sectionCount: import('yup').NumberSchema<number, import('yup').AnyObject,
|
|
21
|
-
switchedOnQAtNominalV: import('yup').NumberSchema<
|
|
22
|
-
switchedOnSusceptance: import('yup').NumberSchema<
|
|
19
|
+
maximumSectionCount: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
20
|
+
sectionCount: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
21
|
+
switchedOnQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, undefined, "">;
|
|
22
|
+
switchedOnSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, undefined, "">;
|
|
23
23
|
characteristicsChoice: import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
24
24
|
shuntCompensatorType: import('yup').StringSchema<string | null | undefined, import('yup').AnyObject, null, "d">;
|
|
25
25
|
};
|