@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,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, Typography, Select, MenuItem, Stack, Box } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { forwardRef, useState, useRef, useCallback, useEffect, useMemo, useImperativeHandle } from "react";
|
|
5
5
|
import { buildExpertFilter, CURVE_EQUIPMENT_TYPES, NOMINAL_VOLTAGE_UNIT } from "./curve-selector-utils.js";
|
|
@@ -17,7 +17,7 @@ import "mathjs";
|
|
|
17
17
|
const styles = {
|
|
18
18
|
grid: {
|
|
19
19
|
width: "100%",
|
|
20
|
-
|
|
20
|
+
flex: 1
|
|
21
21
|
},
|
|
22
22
|
criteria: {
|
|
23
23
|
width: "100%",
|
|
@@ -25,7 +25,7 @@ const styles = {
|
|
|
25
25
|
},
|
|
26
26
|
equipment: {
|
|
27
27
|
width: "100%",
|
|
28
|
-
|
|
28
|
+
flex: 1
|
|
29
29
|
},
|
|
30
30
|
equipmentTitle: (theme) => ({
|
|
31
31
|
marginBottom: theme.spacing(1)
|
|
@@ -156,9 +156,9 @@ const EquipmentFilter = forwardRef(
|
|
|
156
156
|
[]
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
159
|
-
/* @__PURE__ */ jsxs(
|
|
160
|
-
/* @__PURE__ */ jsx(
|
|
161
|
-
/* @__PURE__ */ jsx(
|
|
159
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
|
|
160
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentType" }) }) }),
|
|
161
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
|
|
162
162
|
Select,
|
|
163
163
|
{
|
|
164
164
|
labelId: "DynamicSimulationCurveEquipmentType",
|
|
@@ -170,9 +170,9 @@ const EquipmentFilter = forwardRef(
|
|
|
170
170
|
}
|
|
171
171
|
) })
|
|
172
172
|
] }),
|
|
173
|
-
/* @__PURE__ */ jsxs(
|
|
174
|
-
/* @__PURE__ */ jsx(
|
|
175
|
-
/* @__PURE__ */ jsx(
|
|
173
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
|
|
174
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurvePost" }) }) }),
|
|
175
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
|
|
176
176
|
CheckboxAutocomplete,
|
|
177
177
|
{
|
|
178
178
|
id: "voltage-level",
|
|
@@ -185,9 +185,9 @@ const EquipmentFilter = forwardRef(
|
|
|
185
185
|
}
|
|
186
186
|
) })
|
|
187
187
|
] }),
|
|
188
|
-
/* @__PURE__ */ jsxs(
|
|
189
|
-
/* @__PURE__ */ jsx(
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
188
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
|
|
189
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCountry" }) }) }),
|
|
190
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
|
|
191
191
|
CheckboxAutocomplete,
|
|
192
192
|
{
|
|
193
193
|
id: "country",
|
|
@@ -198,9 +198,9 @@ const EquipmentFilter = forwardRef(
|
|
|
198
198
|
}
|
|
199
199
|
) })
|
|
200
200
|
] }),
|
|
201
|
-
/* @__PURE__ */ jsxs(
|
|
202
|
-
/* @__PURE__ */ jsx(
|
|
203
|
-
/* @__PURE__ */ jsx(
|
|
201
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveTension" }) }) }),
|
|
203
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
|
|
204
204
|
CheckboxAutocomplete,
|
|
205
205
|
{
|
|
206
206
|
id: "nominal-voltage",
|
|
@@ -211,12 +211,12 @@ const EquipmentFilter = forwardRef(
|
|
|
211
211
|
}
|
|
212
212
|
) })
|
|
213
213
|
] }),
|
|
214
|
-
/* @__PURE__ */ jsxs(
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ jsxs(Stack, { sx: styles.equipment, children: [
|
|
215
|
+
/* @__PURE__ */ jsxs(Typography, { sx: styles.equipmentTitle, variant: "subtitle1", children: [
|
|
216
216
|
/* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipment" }),
|
|
217
217
|
` (${selectedRowsLength} / ${equipmentRowData?.length ?? 0})`
|
|
218
|
-
] })
|
|
219
|
-
/* @__PURE__ */ jsx(
|
|
218
|
+
] }),
|
|
219
|
+
/* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
|
|
220
220
|
CustomAGGrid,
|
|
221
221
|
{
|
|
222
222
|
ref: equipmentsRef,
|
|
@@ -230,7 +230,7 @@ const EquipmentFilter = forwardRef(
|
|
|
230
230
|
overlayLoadingTemplate: intl.formatMessage({ id: "LoadingRemoteData" }),
|
|
231
231
|
overrideLocales: AGGRID_LOCALES
|
|
232
232
|
}
|
|
233
|
-
) })
|
|
233
|
+
) })
|
|
234
234
|
] })
|
|
235
235
|
] });
|
|
236
236
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
3
3
|
import { forwardRef, useState, useRef, useMemo, useCallback, useEffect, useImperativeHandle } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2, Typography, Stack, Box } from "@mui/material";
|
|
5
5
|
import CheckboxSelect from "../common/checkbox-select.js";
|
|
6
6
|
import CheckboxTreeview from "../common/checkbox-treeview.js";
|
|
7
7
|
import { EquipmentType } from "../../../../../utils/types/equipmentType.js";
|
|
@@ -31,7 +31,8 @@ const styles = {
|
|
|
31
31
|
border: "solid",
|
|
32
32
|
borderWidth: ".5px",
|
|
33
33
|
borderColor: theme.palette.divider,
|
|
34
|
-
overflow: "auto"
|
|
34
|
+
overflow: "auto",
|
|
35
|
+
flex: 1
|
|
35
36
|
}),
|
|
36
37
|
model: {
|
|
37
38
|
width: "100%"
|
|
@@ -41,7 +42,7 @@ const styles = {
|
|
|
41
42
|
}),
|
|
42
43
|
variable: {
|
|
43
44
|
width: "100%",
|
|
44
|
-
|
|
45
|
+
flex: 1
|
|
45
46
|
},
|
|
46
47
|
variableTree: {
|
|
47
48
|
maxHeight: "440px"
|
|
@@ -114,9 +115,9 @@ const ModelFilter = forwardRef(
|
|
|
114
115
|
return makeGetVariableLabel(intl);
|
|
115
116
|
}, [intl]);
|
|
116
117
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
-
/* @__PURE__ */ jsxs(
|
|
118
|
-
/* @__PURE__ */ jsx(
|
|
119
|
-
/* @__PURE__ */ jsx(
|
|
118
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.model, children: [
|
|
119
|
+
/* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveModel" }) }) }),
|
|
120
|
+
/* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(
|
|
120
121
|
CheckboxSelect,
|
|
121
122
|
{
|
|
122
123
|
options: initialSelectedModels,
|
|
@@ -127,9 +128,9 @@ const ModelFilter = forwardRef(
|
|
|
127
128
|
}
|
|
128
129
|
) })
|
|
129
130
|
] }),
|
|
130
|
-
/* @__PURE__ */ jsxs(
|
|
131
|
-
/* @__PURE__ */ jsx(
|
|
132
|
-
/* @__PURE__ */ jsx(
|
|
131
|
+
/* @__PURE__ */ jsxs(Stack, { sx: styles.variable, children: [
|
|
132
|
+
/* @__PURE__ */ jsx(Typography, { sx: styles.modelTitle, variant: "subtitle1", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveVariable" }) }),
|
|
133
|
+
/* @__PURE__ */ jsx(Box, { sx: styles.tree, children: /* @__PURE__ */ jsx(
|
|
133
134
|
CheckboxTreeview,
|
|
134
135
|
{
|
|
135
136
|
ref: variablesRef,
|
|
@@ -138,7 +139,7 @@ const ModelFilter = forwardRef(
|
|
|
138
139
|
checkAll: true,
|
|
139
140
|
sx: styles.variableTree
|
|
140
141
|
}
|
|
141
|
-
) })
|
|
142
|
+
) })
|
|
142
143
|
] })
|
|
143
144
|
] });
|
|
144
145
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2 } from "@mui/material";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
6
|
import { snackWithFallback } from "../../../utils/error.js";
|
|
7
7
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
@@ -111,8 +111,8 @@ function DynamicSimulationInline({
|
|
|
111
111
|
}, [formState, setHaveDirtyFields]);
|
|
112
112
|
const renderActions = (onSubmitError) => {
|
|
113
113
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
114
|
-
/* @__PURE__ */ jsx(
|
|
115
|
-
|
|
114
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsxs(
|
|
115
|
+
Grid2,
|
|
116
116
|
{
|
|
117
117
|
sx: mergeSx(parametersStyles.controlParametersItem, {
|
|
118
118
|
paddingTop: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, Grid2, Tabs, Tab, LinearProgress } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import "../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../utils/types/equipmentType.js";
|
|
@@ -67,9 +67,9 @@ function DynamicSimulationForm({
|
|
|
67
67
|
});
|
|
68
68
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
69
69
|
renderTitleFields?.(),
|
|
70
|
-
paramsLoaded ? /* @__PURE__ */ jsxs(
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
70
|
+
paramsLoaded ? /* @__PURE__ */ jsxs(Stack, { sx: { height: "100%" }, children: [
|
|
71
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders }) }),
|
|
72
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
|
|
73
73
|
/* @__PURE__ */ jsx(
|
|
74
74
|
Tab,
|
|
75
75
|
{
|
|
@@ -112,11 +112,10 @@ function DynamicSimulationForm({
|
|
|
112
112
|
)
|
|
113
113
|
] }) }),
|
|
114
114
|
/* @__PURE__ */ jsxs(
|
|
115
|
-
|
|
115
|
+
Grid2,
|
|
116
116
|
{
|
|
117
117
|
container: true,
|
|
118
|
-
|
|
119
|
-
xs: true,
|
|
118
|
+
size: "grow",
|
|
120
119
|
sx: mergeSx(parametersStyles.scrollableGrid, {
|
|
121
120
|
paddingTop: 0,
|
|
122
121
|
width: "100%"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { MAPPING } from "./mapping-parameters-constants.js";
|
|
4
4
|
import "../../../../utils/conversionUtils.js";
|
|
5
5
|
import { ElementType } from "../../../../utils/types/elementType.js";
|
|
@@ -39,7 +39,7 @@ import "../../common/contingency-table/columns-definitions.js";
|
|
|
39
39
|
import "@hookform/resolvers/yup";
|
|
40
40
|
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
41
41
|
function MappingParameters({ path }) {
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
42
|
+
return /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(
|
|
43
43
|
ParameterLineDirectoryItemsInput,
|
|
44
44
|
{
|
|
45
45
|
name: `${path}.${MAPPING}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { Network } from "./network-parameters-constants.js";
|
|
4
4
|
import "../../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -109,7 +109,7 @@ const params = [
|
|
|
109
109
|
}
|
|
110
110
|
];
|
|
111
111
|
function NetworkParameters({ path }) {
|
|
112
|
-
return /* @__PURE__ */ jsx(
|
|
112
|
+
return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
|
|
113
113
|
const { name, type, ...otherParams } = param;
|
|
114
114
|
return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
|
|
115
115
|
}) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import { SolverType } from "../../../../utils/types/dynamic-simulation.type.js";
|
|
@@ -38,7 +38,7 @@ function SolverParameters({ path }) {
|
|
|
38
38
|
sx: { width: "100%" }
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
|
-
return /* @__PURE__ */ jsxs(
|
|
41
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
42
42
|
params.map((param) => {
|
|
43
43
|
const { name, type, ...otherParams } = param;
|
|
44
44
|
return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import "../../../../utils/conversionUtils.js";
|
|
4
4
|
import "../../../../utils/types/equipmentType.js";
|
|
5
5
|
import { ParameterType } from "../../../../utils/types/parameters.type.js";
|
|
@@ -19,7 +19,7 @@ const params = [
|
|
|
19
19
|
}
|
|
20
20
|
];
|
|
21
21
|
function TimeDelayParameters({ path }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
+
return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
|
|
23
23
|
const { name, type, ...otherParams } = param;
|
|
24
24
|
return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
|
|
25
25
|
}) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { TabValues } from "./load-flow-parameters-utils.js";
|
|
4
4
|
import LoadFlowGeneralParameters from "./load-flow-general-parameters.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
@@ -62,9 +62,9 @@ function LoadFlowParametersContent({
|
|
|
62
62
|
params,
|
|
63
63
|
defaultLimitReductions
|
|
64
64
|
}) {
|
|
65
|
-
return /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(
|
|
65
|
+
return /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid2, { sx: styles.maxWidth, children: [
|
|
66
66
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.GENERAL, children: /* @__PURE__ */ jsx(LoadFlowGeneralParameters, { provider: currentProvider, specificParams: specificParameters }) }),
|
|
67
|
-
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(
|
|
67
|
+
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW ? /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) : /* @__PURE__ */ jsx(
|
|
68
68
|
ParameterLineSlider,
|
|
69
69
|
{
|
|
70
70
|
name: PARAM_LIMIT_REDUCTION,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2, LinearProgress } from "@mui/material";
|
|
3
3
|
import LoadFlowParametersHeader from "./load-flow-parameters-header.js";
|
|
4
4
|
import LoadFlowParametersContent from "./load-flow-parameters-content.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -87,7 +87,7 @@ function LoadFlowParametersForm({
|
|
|
87
87
|
formattedProviders
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
/* @__PURE__ */ jsx(
|
|
90
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.content, children: /* @__PURE__ */ jsx(
|
|
91
91
|
LoadFlowParametersContent,
|
|
92
92
|
{
|
|
93
93
|
selectedTab,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2, Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { TabValues } from "./load-flow-parameters-utils.js";
|
|
5
5
|
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
@@ -47,7 +47,7 @@ function LoadFlowParametersHeader({
|
|
|
47
47
|
formattedProviders
|
|
48
48
|
}) {
|
|
49
49
|
return /* @__PURE__ */ jsx(Box, { sx: { flexGrow: 0, paddingLeft: 1, paddingTop: 1 }, children: /* @__PURE__ */ jsxs(
|
|
50
|
-
|
|
50
|
+
Grid2,
|
|
51
51
|
{
|
|
52
52
|
container: true,
|
|
53
53
|
spacing: 1,
|
|
@@ -58,8 +58,8 @@ function LoadFlowParametersHeader({
|
|
|
58
58
|
},
|
|
59
59
|
justifyContent: "space-between",
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
61
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
|
|
62
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, size: "auto", sx: { justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx(
|
|
63
63
|
MuiSelectInput,
|
|
64
64
|
{
|
|
65
65
|
"data-testid": "LfProvider",
|
|
@@ -69,7 +69,7 @@ function LoadFlowParametersHeader({
|
|
|
69
69
|
}
|
|
70
70
|
) }),
|
|
71
71
|
/* @__PURE__ */ jsx(LineSeparator, {}),
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
72
|
+
/* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
|
|
73
73
|
/* @__PURE__ */ jsx(
|
|
74
74
|
Tab,
|
|
75
75
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
|
-
import { Box,
|
|
3
|
+
import { Box, Grid2 } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { LoadFlowProvider } from "./load-flow-parameters-provider.js";
|
|
6
6
|
import { parametersStyles } from "../parameters-style.js";
|
|
@@ -103,10 +103,9 @@ function LoadFlowParametersInline({
|
|
|
103
103
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
104
104
|
/* @__PURE__ */ jsx(LineSeparator, {}),
|
|
105
105
|
/* @__PURE__ */ jsxs(
|
|
106
|
-
|
|
106
|
+
Grid2,
|
|
107
107
|
{
|
|
108
108
|
container: true,
|
|
109
|
-
item: true,
|
|
110
109
|
sx: mergeSx(parametersStyles.controlParametersItem, parametersStyles.marginTopButton, {
|
|
111
110
|
paddingBottom: 0
|
|
112
111
|
}),
|
|
@@ -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 { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
5
|
import { MAP_BASE_MAP, NetworkVisualizationTabValues, PARAM_MAP_BASEMAP, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, INTL_LINE_FLOW_MODE_OPTIONS, LINE_FLOW_MODE, PARAM_LINE_FLOW_MODE, MAP_MANUAL_REFRESH, PARAM_MAP_MANUAL_REFRESH } from "./constants.js";
|
|
@@ -59,12 +59,12 @@ function MapParameters() {
|
|
|
59
59
|
});
|
|
60
60
|
}, [setBaseMapOptions, snackError]);
|
|
61
61
|
const lineSwitch = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
62
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
63
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.MAP}.${name}` }) })
|
|
64
64
|
] });
|
|
65
65
|
const lineFlow = (name, label, options) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
66
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
67
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
68
68
|
MuiSelectInput,
|
|
69
69
|
{
|
|
70
70
|
fullWidth: true,
|
|
@@ -75,8 +75,8 @@ function MapParameters() {
|
|
|
75
75
|
) })
|
|
76
76
|
] });
|
|
77
77
|
const mapBaseMap = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: MAP_BASE_MAP }) }),
|
|
79
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
80
80
|
MuiSelectInput,
|
|
81
81
|
{
|
|
82
82
|
fullWidth: true,
|
|
@@ -87,7 +87,7 @@ function MapParameters() {
|
|
|
87
87
|
) })
|
|
88
88
|
] });
|
|
89
89
|
return /* @__PURE__ */ jsxs(
|
|
90
|
-
|
|
90
|
+
Grid2,
|
|
91
91
|
{
|
|
92
92
|
container: true,
|
|
93
93
|
spacing: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { NAD_POSITIONS_GENERATION_MODE_LABEL, NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE } from "./constants.js";
|
|
5
5
|
import { parametersStyles } from "../parameters-style.js";
|
|
@@ -34,7 +34,7 @@ import "react-resizable-panels";
|
|
|
34
34
|
import "react-papaparse";
|
|
35
35
|
function NetworkAreaDiagramParameters() {
|
|
36
36
|
return /* @__PURE__ */ jsxs(
|
|
37
|
-
|
|
37
|
+
Grid2,
|
|
38
38
|
{
|
|
39
39
|
container: true,
|
|
40
40
|
spacing: 1,
|
|
@@ -42,8 +42,8 @@ function NetworkAreaDiagramParameters() {
|
|
|
42
42
|
marginTop: -3,
|
|
43
43
|
justifyContent: "space-between",
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
47
47
|
MuiSelectInput,
|
|
48
48
|
{
|
|
49
49
|
fullWidth: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, LinearProgress, Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -62,9 +62,9 @@ function NetworkVisualizationParametersForm({
|
|
|
62
62
|
}) {
|
|
63
63
|
const componentLibraries = useGetAvailableComponentLibraries(userProfile);
|
|
64
64
|
const { formMethods, formSchema, selectedTab, handleTabChange, paramsLoading } = networkVisuMethods;
|
|
65
|
-
return /* @__PURE__ */ jsx(CustomFormProvider, { validationSchema: formSchema, ...formMethods, removeOptional: true, children: /* @__PURE__ */ jsxs(
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
67
|
-
paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsxs(
|
|
65
|
+
return /* @__PURE__ */ jsx(CustomFormProvider, { validationSchema: formSchema, ...formMethods, removeOptional: true, children: /* @__PURE__ */ jsxs(Stack, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Stack, { children: renderTitleFields?.() }),
|
|
67
|
+
paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsxs(Stack, { children: [
|
|
68
68
|
/* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: handleTabChange, children: [
|
|
69
69
|
/* @__PURE__ */ jsx(Tab, { label: /* @__PURE__ */ jsx(FormattedMessage, { id: "Map" }), value: NetworkVisualizationTabValues.MAP }),
|
|
70
70
|
/* @__PURE__ */ jsx(
|
|
@@ -87,11 +87,8 @@ function NetworkVisualizationParametersForm({
|
|
|
87
87
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: NetworkVisualizationTabValues.NETWORK_AREA_DIAGRAM, children: /* @__PURE__ */ jsx(NetworkAreaDiagramParameters, {}) })
|
|
88
88
|
] }),
|
|
89
89
|
/* @__PURE__ */ jsx(
|
|
90
|
-
|
|
90
|
+
Stack,
|
|
91
91
|
{
|
|
92
|
-
item: true,
|
|
93
|
-
container: true,
|
|
94
|
-
direction: "column",
|
|
95
92
|
sx: {
|
|
96
93
|
position: "absolute",
|
|
97
94
|
bottom: "30px"
|
package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
|
-
import { Box,
|
|
3
|
+
import { Box, Grid2 } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
6
|
import { snackWithFallback } from "../../../utils/error.js";
|
|
@@ -88,7 +88,7 @@ function NetworkVisualizationParametersInline({
|
|
|
88
88
|
networkVisuMethods,
|
|
89
89
|
renderActions: () => {
|
|
90
90
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
91
|
-
/* @__PURE__ */ jsxs(
|
|
91
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
92
92
|
/* @__PURE__ */ jsx(
|
|
93
93
|
LabelledButton,
|
|
94
94
|
{
|
|
@@ -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 { useMemo } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
@@ -49,12 +49,12 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
49
49
|
return INTL_SUBSTATION_LAYOUT_OPTIONS;
|
|
50
50
|
}, []);
|
|
51
51
|
const labelPosition = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
52
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
53
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
|
|
54
54
|
] });
|
|
55
55
|
const substationLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
56
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
58
58
|
MuiSelectInput,
|
|
59
59
|
{
|
|
60
60
|
fullWidth: true,
|
|
@@ -65,8 +65,8 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
65
65
|
) })
|
|
66
66
|
] });
|
|
67
67
|
const componentLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
68
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
70
70
|
MuiSelectInput,
|
|
71
71
|
{
|
|
72
72
|
fullWidth: true,
|
|
@@ -79,7 +79,7 @@ function SingleLineDiagramParameters({ componentLibraries }) {
|
|
|
79
79
|
) })
|
|
80
80
|
] });
|
|
81
81
|
return /* @__PURE__ */ jsxs(
|
|
82
|
-
|
|
82
|
+
Grid2,
|
|
83
83
|
{
|
|
84
84
|
container: true,
|
|
85
85
|
spacing: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2, Stack, LinearProgress } from "@mui/material";
|
|
3
3
|
import "@mui/icons-material";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -72,8 +72,8 @@ function PccMinParametersForm({
|
|
|
72
72
|
position: "relative"
|
|
73
73
|
},
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ jsxs(
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
75
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, sx: renderActions ? styles.gridWithActions : styles.gridWithoutActions, children: [
|
|
76
|
+
/* @__PURE__ */ jsx(Stack, { children: renderTitleFields?.() }),
|
|
77
77
|
paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsx(
|
|
78
78
|
Box,
|
|
79
79
|
{
|
|
@@ -81,7 +81,7 @@ function PccMinParametersForm({
|
|
|
81
81
|
height: "100%",
|
|
82
82
|
width: "100%"
|
|
83
83
|
},
|
|
84
|
-
children: /* @__PURE__ */ jsx(
|
|
84
|
+
children: /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(
|
|
85
85
|
ParameterLineDirectoryItemsInput,
|
|
86
86
|
{
|
|
87
87
|
name: FILTERS,
|
|
@@ -96,11 +96,8 @@ function PccMinParametersForm({
|
|
|
96
96
|
)
|
|
97
97
|
] }),
|
|
98
98
|
renderActions && /* @__PURE__ */ jsx(
|
|
99
|
-
|
|
99
|
+
Stack,
|
|
100
100
|
{
|
|
101
|
-
item: true,
|
|
102
|
-
container: true,
|
|
103
|
-
direction: "column",
|
|
104
101
|
sx: {
|
|
105
102
|
position: "fixed",
|
|
106
103
|
bottom: "15px"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
|
-
import { Box,
|
|
3
|
+
import { Box, Grid2 } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
6
|
import { snackWithFallback } from "../../../utils/error.js";
|
|
@@ -106,7 +106,7 @@ function PccMinParametersInLine({
|
|
|
106
106
|
pccMinMethods,
|
|
107
107
|
renderActions: () => {
|
|
108
108
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
109
|
-
/* @__PURE__ */ jsxs(
|
|
109
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
110
110
|
/* @__PURE__ */ jsx(
|
|
111
111
|
LabelledButton,
|
|
112
112
|
{
|