@gridsuite/commons-ui 0.295.0 → 0.297.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 +56 -44
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +32 -23
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +31 -23
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +67 -43
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.d.ts +3 -2
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +43 -28
- package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +4 -7
- package/dist/components/composite/reactQueryBuilder/FieldSelector.js +5 -3
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +63 -52
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +22 -9
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +59 -24
- package/dist/components/ui/csvPicker/csv-picker.js +24 -12
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +15 -7
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +82 -39
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +29 -9
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +24 -15
- package/dist/components/ui/inputs/ActivableChip.js +2 -2
- package/dist/components/ui/inputs/SelectClearable.js +4 -3
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +1 -1
- package/dist/components/ui/reactHookForm/OverflowableChip.js +24 -13
- package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +9 -4
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +11 -5
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +13 -3
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +11 -1
- package/dist/features/authentication/AuthenticationRouter.js +62 -53
- package/dist/features/authentication/Login.js +15 -7
- package/dist/features/authentication/Logout.js +9 -1
- package/dist/features/cardErrorBoundary/CardErrorBoundary.js +28 -10
- package/dist/features/global-filter/ui/global-filter-panel.js +4 -10
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +22 -12
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +21 -11
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +35 -25
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +28 -16
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +16 -4
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +81 -68
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +31 -21
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +32 -21
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +20 -9
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +22 -12
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +28 -18
- package/dist/features/network-modifications/hvdcLine/vsc/common/converterStation/VscConverterStationPane.js +15 -4
- package/dist/features/network-modifications/hvdcLine/vsc/creation/vscHvdcLineCreation.utils.js +2 -2
- package/dist/features/network-modifications/hvdcLine/vsc/modification/vscHvdcLineModification.utils.js +7 -4
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +70 -40
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +35 -6
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +16 -7
- package/dist/features/network-modifications/tabular/TabularForm.js +102 -72
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +20 -10
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +35 -17
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +9 -1
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +6 -4
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +17 -7
- package/dist/features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js +23 -13
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +25 -15
- package/dist/features/parameters/common/parameter-field.js +17 -4
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +23 -12
- package/dist/features/parameters/common/provider-param.js +1 -1
- package/dist/features/parameters/common/widget/parameter-float.js +16 -4
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
- package/dist/features/parameters/common/widget/parameter-switch.js +13 -1
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-select.js +6 -4
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +43 -32
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +47 -25
- package/dist/features/parameters/network-visualizations/map-parameters.js +7 -3
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +7 -3
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +7 -3
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +23 -13
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +12 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +36 -26
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +67 -26
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +15 -4
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +51 -15
- package/dist/features/parameters/voltage-init/general-parameters.js +9 -1
- package/dist/features/process-configs/common/FormSubSection.js +2 -2
- package/dist/features/process-configs/common/GeneralInformationSection.js +1 -1
- package/dist/features/process-configs/common/SpecificInformationSection.js +12 -4
- package/dist/features/process-configs/common/process-config-modifications-edition.js +3 -3
- package/dist/features/process-configs/form/components/ProcessTypeChangeDialog.js +5 -2
- package/dist/features/side-bar/AppSideBarHeader.js +36 -16
- package/dist/features/side-bar/footer/AppSideBarFooter.js +46 -38
- package/dist/features/side-bar/footer/applications/OtherAppRedirection.js +10 -8
- package/dist/features/side-bar/footer/common/SideBarMenuItem.js +9 -1
- package/dist/features/side-bar/footer/profile/ProfileInfos.js +15 -6
- package/dist/features/side-bar/footer/settings/DarkModeToggle.js +16 -4
- package/dist/features/side-bar/footer/settings/SettingsMenu.js +16 -6
- package/dist/features/topBar/AboutDialog.js +46 -17
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +198 -45
- package/package.json +16 -11
|
@@ -97,79 +97,92 @@ function LimitsPropertiesSideStack({ name, disabled }) {
|
|
|
97
97
|
setPropertyName(value);
|
|
98
98
|
setNameEditorError("");
|
|
99
99
|
}, []);
|
|
100
|
-
return /* @__PURE__ */ jsxs(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
] }),
|
|
114
|
-
isEditing && !disabled ? /* @__PURE__ */ jsxs(
|
|
115
|
-
Box,
|
|
116
|
-
{
|
|
117
|
-
display: "flex",
|
|
118
|
-
gap: 2,
|
|
119
|
-
width: "100%",
|
|
120
|
-
onMouseEnter: () => setHovered(true),
|
|
121
|
-
onMouseLeave: () => setHovered(false),
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsx(
|
|
124
|
-
Autocomplete,
|
|
100
|
+
return /* @__PURE__ */ jsxs(
|
|
101
|
+
Stack,
|
|
102
|
+
{
|
|
103
|
+
direction: "column",
|
|
104
|
+
spacing: 2,
|
|
105
|
+
sx: {
|
|
106
|
+
paddingTop: 2,
|
|
107
|
+
flexWrap: "wrap"
|
|
108
|
+
},
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", sx: { display: "flex", flexWrap: "wrap" }, children: [
|
|
111
|
+
limitsProperties?.map((property, index) => /* @__PURE__ */ jsx(
|
|
112
|
+
LimitsTagChip,
|
|
125
113
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
limitsProperty: property,
|
|
115
|
+
onDelete: () => remove(index),
|
|
116
|
+
disabled,
|
|
117
|
+
showTooltip: true
|
|
118
|
+
},
|
|
119
|
+
`${property.name}`
|
|
120
|
+
)),
|
|
121
|
+
!isEditing && /* @__PURE__ */ jsx(AddButton, { disabled, label: "AddProperty", onClick: () => setIsEditing(true) })
|
|
122
|
+
] }),
|
|
123
|
+
isEditing && !disabled ? /* @__PURE__ */ jsxs(
|
|
124
|
+
Box,
|
|
125
|
+
{
|
|
126
|
+
onMouseEnter: () => setHovered(true),
|
|
127
|
+
onMouseLeave: () => setHovered(false),
|
|
128
|
+
sx: {
|
|
129
|
+
display: "flex",
|
|
130
|
+
gap: 2,
|
|
131
|
+
width: "100%"
|
|
132
|
+
},
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
Autocomplete,
|
|
136
|
+
{
|
|
137
|
+
options: Object.values(predefinedPropertiesNames),
|
|
138
|
+
size: "small",
|
|
139
|
+
onChange: (event, value) => handleOnChange(value ?? ""),
|
|
140
|
+
renderInput: (params) => /* @__PURE__ */ jsx(
|
|
141
|
+
TextField,
|
|
142
|
+
{
|
|
143
|
+
label: intl.formatMessage({ id: "PropertyName" }),
|
|
144
|
+
variant: "outlined",
|
|
145
|
+
...params,
|
|
146
|
+
onChange: (event) => handleOnChange(event.target.value),
|
|
147
|
+
fullWidth: true,
|
|
148
|
+
error: nameEditorError !== "",
|
|
149
|
+
helperText: nameEditorError,
|
|
150
|
+
onKeyDown: handleKeyPress
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
sx: { flex: 1 },
|
|
154
|
+
freeSolo: true
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ jsx(
|
|
130
158
|
TextField,
|
|
131
159
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
error:
|
|
138
|
-
helperText:
|
|
139
|
-
onKeyDown: handleKeyPress
|
|
160
|
+
size: "small",
|
|
161
|
+
label: intl.formatMessage({ id: "PropertyValue" }),
|
|
162
|
+
sx: { flex: 1, verticalAlign: "center" },
|
|
163
|
+
onKeyDown: handleKeyPress,
|
|
164
|
+
onChange: (event) => setPropertyValue(event.target.value),
|
|
165
|
+
error: valueEditorError !== "",
|
|
166
|
+
helperText: valueEditorError
|
|
140
167
|
}
|
|
141
168
|
),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
IconButton,
|
|
160
|
-
{
|
|
161
|
-
sx: { verticalAlign: "center" },
|
|
162
|
-
onClick: () => {
|
|
163
|
-
setIsEditing(false);
|
|
164
|
-
setNameEditorError("");
|
|
165
|
-
},
|
|
166
|
-
children: /* @__PURE__ */ jsx(Delete, { visibility: hovered ? "visible" : "hidden" })
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
) : ""
|
|
172
|
-
] });
|
|
169
|
+
/* @__PURE__ */ jsx(
|
|
170
|
+
IconButton,
|
|
171
|
+
{
|
|
172
|
+
sx: { verticalAlign: "center" },
|
|
173
|
+
onClick: () => {
|
|
174
|
+
setIsEditing(false);
|
|
175
|
+
setNameEditorError("");
|
|
176
|
+
},
|
|
177
|
+
children: /* @__PURE__ */ jsx(Delete, { visibility: hovered ? "visible" : "hidden" })
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
) : ""
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
);
|
|
173
186
|
}
|
|
174
187
|
export {
|
|
175
188
|
LimitsPropertiesSideStack
|
|
@@ -72,27 +72,37 @@ function BusbarSectionVoltageMeasurementsForm({
|
|
|
72
72
|
if (validity != null) {
|
|
73
73
|
previousValidity = intl.formatMessage({ id: validity ? "ValidMeasurement" : "InvalidMeasurement" });
|
|
74
74
|
}
|
|
75
|
-
return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
75
|
+
return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
|
|
76
|
+
Grid,
|
|
77
|
+
{
|
|
78
|
+
container: true,
|
|
79
|
+
spacing: 2,
|
|
80
|
+
sx: {
|
|
81
|
+
alignItems: "center"
|
|
82
|
+
},
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: bbsId }),
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
86
|
+
FloatInput,
|
|
87
|
+
{
|
|
88
|
+
name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALUE}`,
|
|
89
|
+
label: "VoltageText",
|
|
90
|
+
adornment: VoltageAdornment,
|
|
91
|
+
previousValue,
|
|
92
|
+
clearable: true
|
|
93
|
+
}
|
|
94
|
+
) }),
|
|
95
|
+
/* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
|
|
96
|
+
CheckboxNullableInput,
|
|
97
|
+
{
|
|
98
|
+
name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALIDITY}`,
|
|
99
|
+
label: "ValidMeasurement",
|
|
100
|
+
previousValue: previousValidity
|
|
101
|
+
}
|
|
102
|
+
) })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) }, field.id);
|
|
96
106
|
})
|
|
97
107
|
] });
|
|
98
108
|
}
|
|
@@ -77,28 +77,39 @@ function ReactiveCapabilityCurveTableForm({
|
|
|
77
77
|
} else {
|
|
78
78
|
labelSuffix = index - 1;
|
|
79
79
|
}
|
|
80
|
-
return /* @__PURE__ */ jsxs(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
children: /* @__PURE__ */ jsx(Delete, {})
|
|
80
|
+
return /* @__PURE__ */ jsxs(
|
|
81
|
+
Grid,
|
|
82
|
+
{
|
|
83
|
+
container: true,
|
|
84
|
+
spacing: 3,
|
|
85
|
+
sx: {
|
|
86
|
+
width: "100%"
|
|
88
87
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
|
|
90
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
91
|
+
IconButton,
|
|
92
|
+
{
|
|
93
|
+
onClick: () => handleRemoveRow(index),
|
|
94
|
+
disabled: disabled || index === 0 || index === displayedValues.length - 1,
|
|
95
|
+
children: /* @__PURE__ */ jsx(Delete, {})
|
|
96
|
+
},
|
|
97
|
+
value.id
|
|
98
|
+
) }),
|
|
99
|
+
index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
100
|
+
IconButton,
|
|
101
|
+
{
|
|
102
|
+
onClick: () => handleInsertRow(),
|
|
103
|
+
disabled,
|
|
104
|
+
style: { top: "-1em" },
|
|
105
|
+
children: /* @__PURE__ */ jsx(ControlPoint, {})
|
|
106
|
+
},
|
|
107
|
+
value.id
|
|
108
|
+
) })
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
value.id
|
|
112
|
+
);
|
|
102
113
|
})
|
|
103
114
|
] });
|
|
104
115
|
}
|
package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EquipmentType, Identifiable } from '../../../../utils';
|
|
|
3
3
|
export interface RegulatingTerminalFormProps {
|
|
4
4
|
/** Parent path within the react-hook-form tree (e.g. 'setpointsLimits' or '') */
|
|
5
5
|
id: string;
|
|
6
|
-
direction?: GridDirection;
|
|
6
|
+
direction?: GridDirection | 'column' | 'column-reverse';
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
voltageLevelOptions: Identifiable[];
|
|
9
9
|
equipmentSectionTypeDefaultValue?: string;
|
package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js
CHANGED
|
@@ -70,7 +70,7 @@ function RegulatingTerminalForm({
|
|
|
70
70
|
const resetEquipment = useCallback(() => {
|
|
71
71
|
setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
|
|
72
72
|
}, [id, setValue]);
|
|
73
|
-
return /* @__PURE__ */ jsxs(Grid, { container: true,
|
|
73
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, sx: { flexDirection: direction ?? "row" }, children: [
|
|
74
74
|
/* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
|
|
75
75
|
AutocompleteInput,
|
|
76
76
|
{
|
|
@@ -33,15 +33,26 @@ function ShuntCompensatorSelectionForm({
|
|
|
33
33
|
}) {
|
|
34
34
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
35
35
|
/* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
|
|
36
|
-
mcsRows.map((field, index) => /* @__PURE__ */ jsxs(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
mcsRows.map((field, index) => /* @__PURE__ */ jsxs(
|
|
37
|
+
Grid,
|
|
38
|
+
{
|
|
39
|
+
container: true,
|
|
40
|
+
spacing: 1,
|
|
41
|
+
sx: {
|
|
42
|
+
alignItems: "center"
|
|
43
|
+
},
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
|
|
46
|
+
CheckboxInput,
|
|
47
|
+
{
|
|
48
|
+
name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
field.id
|
|
55
|
+
))
|
|
45
56
|
] });
|
|
46
57
|
}
|
|
47
58
|
export {
|
|
@@ -160,18 +160,28 @@ function GeneratorCreationForm({
|
|
|
160
160
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
161
161
|
/* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
|
|
162
162
|
/* @__PURE__ */ jsx(SetPointsForm, {}),
|
|
163
|
-
/* @__PURE__ */ jsxs(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
163
|
+
/* @__PURE__ */ jsxs(
|
|
164
|
+
Grid,
|
|
165
|
+
{
|
|
166
|
+
container: true,
|
|
167
|
+
spacing: 2,
|
|
168
|
+
sx: {
|
|
169
|
+
paddingTop: 2
|
|
170
|
+
},
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ jsx(
|
|
173
|
+
GridItem,
|
|
174
|
+
{
|
|
175
|
+
tooltip: watchVoltageRegulation !== null ? "" : /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }),
|
|
176
|
+
size: 4,
|
|
177
|
+
children: voltageRegulationField
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
voltageRegulationFields,
|
|
181
|
+
/* @__PURE__ */ jsx(ActivePowerControlForm, {})
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
175
185
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
176
186
|
/* @__PURE__ */ jsx(ShortCircuitForm, {}),
|
|
177
187
|
/* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
|
package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js
CHANGED
|
@@ -210,24 +210,34 @@ function GeneratorDialogTabsContent({
|
|
|
210
210
|
isModification: true
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
|
-
/* @__PURE__ */ jsxs(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
213
|
+
/* @__PURE__ */ jsxs(
|
|
214
|
+
Grid,
|
|
215
|
+
{
|
|
216
|
+
container: true,
|
|
217
|
+
spacing: 2,
|
|
218
|
+
sx: {
|
|
219
|
+
paddingTop: 2
|
|
220
|
+
},
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ jsx(
|
|
223
|
+
GridItem,
|
|
224
|
+
{
|
|
225
|
+
tooltip: watchVoltageRegulation === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }) : "",
|
|
226
|
+
size: 4,
|
|
227
|
+
children: voltageRegulationField
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
voltageRegulationFields,
|
|
231
|
+
/* @__PURE__ */ jsx(
|
|
232
|
+
ActivePowerControlForm,
|
|
233
|
+
{
|
|
234
|
+
isEquipmentModification: true,
|
|
235
|
+
previousValues: generatorToModify?.activePowerControl
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
),
|
|
231
241
|
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
|
|
232
242
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
233
243
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
@@ -179,10 +179,21 @@ function VscConverterStationPane({
|
|
|
179
179
|
),
|
|
180
180
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
181
181
|
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(GridItem, { size: 4, children: reactivePowerField }) }),
|
|
182
|
-
/* @__PURE__ */ jsxs(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
/* @__PURE__ */ jsxs(
|
|
183
|
+
Grid,
|
|
184
|
+
{
|
|
185
|
+
container: true,
|
|
186
|
+
spacing: 2,
|
|
187
|
+
sx: {
|
|
188
|
+
paddingTop: 2,
|
|
189
|
+
width: "100%"
|
|
190
|
+
},
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulation }),
|
|
193
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageField })
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
186
197
|
] });
|
|
187
198
|
}
|
|
188
199
|
export {
|
package/dist/features/network-modifications/hvdcLine/vsc/creation/vscHvdcLineCreation.utils.js
CHANGED
|
@@ -36,8 +36,8 @@ const vscHvdcLineCreationFormSchema = object().shape({
|
|
|
36
36
|
[FieldConstants.CONVERTER_STATION_2]: getVscConverterStationCreationSchema()
|
|
37
37
|
}).concat(creationPropertiesSchema).required();
|
|
38
38
|
const vscHvdcLineCreationEmptyFormData = {
|
|
39
|
-
[FieldConstants.EQUIPMENT_ID]:
|
|
40
|
-
[FieldConstants.EQUIPMENT_NAME]:
|
|
39
|
+
[FieldConstants.EQUIPMENT_ID]: "",
|
|
40
|
+
[FieldConstants.EQUIPMENT_NAME]: "",
|
|
41
41
|
[FieldConstants.HVDC_LINE]: getVscHvdcLineCharacteristicsEmptyFormData(false),
|
|
42
42
|
[FieldConstants.CONVERTER_STATION_1]: getVscConverterStationEmptyFormData(false),
|
|
43
43
|
[FieldConstants.CONVERTER_STATION_2]: getVscConverterStationEmptyFormData(false),
|
|
@@ -28,7 +28,7 @@ import "react-resizable-panels";
|
|
|
28
28
|
import "react-papaparse";
|
|
29
29
|
import { getVscHvdcLineCharacteristicsModificationSchema, getVscHvdcLineCharacteristicsEmptyFormData, getVscHvdcLineCharacteristicsModificationDtoToForm } from "../common/characteristics/vscHvdcLineCharacteristicsPane.utils.js";
|
|
30
30
|
import { getVscConverterStationModificationSchema, getVscConverterStationEmptyFormData, converterStationModificationDtoToForm, converterStationModificationFormToDto } from "../common/converterStation/vscConverterStationPane.utils.js";
|
|
31
|
-
import { getInjectionActiveReactivePowerValidationSchemaProperties, getInjectionActiveReactivePowerEditDataProperties } from "../../../common/measurements/injectionActiveReactivePowerForm.utils.js";
|
|
31
|
+
import { getInjectionActiveReactivePowerValidationSchemaProperties, getInjectionActiveReactivePowerEmptyFormDataProperties, getInjectionActiveReactivePowerEditDataProperties } from "../../../common/measurements/injectionActiveReactivePowerForm.utils.js";
|
|
32
32
|
import "react-dom";
|
|
33
33
|
import "../../../../../chunks/index.BJsVzTMz.js";
|
|
34
34
|
import "clsx";
|
|
@@ -72,13 +72,16 @@ const vscHvdcLineModificationFormSchema = object().shape({
|
|
|
72
72
|
[FieldConstants.STATE_ESTIMATION]: vscHvdcLineEstimationFormSchema
|
|
73
73
|
}).concat(modificationPropertiesSchema).required();
|
|
74
74
|
const vscHvdcLineModificationEmptyFormData = {
|
|
75
|
-
[FieldConstants.EQUIPMENT_ID]:
|
|
76
|
-
[FieldConstants.EQUIPMENT_NAME]:
|
|
75
|
+
[FieldConstants.EQUIPMENT_ID]: "",
|
|
76
|
+
[FieldConstants.EQUIPMENT_NAME]: "",
|
|
77
77
|
[FieldConstants.HVDC_LINE]: getVscHvdcLineCharacteristicsEmptyFormData(true),
|
|
78
78
|
[FieldConstants.CONVERTER_STATION_1]: getVscConverterStationEmptyFormData(true),
|
|
79
79
|
[FieldConstants.CONVERTER_STATION_2]: getVscConverterStationEmptyFormData(true),
|
|
80
80
|
[FieldConstants.ADDITIONAL_PROPERTIES]: [],
|
|
81
|
-
[FieldConstants.STATE_ESTIMATION]:
|
|
81
|
+
[FieldConstants.STATE_ESTIMATION]: {
|
|
82
|
+
[FieldConstants.CONVERTER_STATION_1]: getInjectionActiveReactivePowerEmptyFormDataProperties(),
|
|
83
|
+
[FieldConstants.CONVERTER_STATION_2]: getInjectionActiveReactivePowerEmptyFormDataProperties()
|
|
84
|
+
}
|
|
82
85
|
};
|
|
83
86
|
const vscHvdcLineModificationDtoToForm = (lineDto, includePreviousValues = true) => {
|
|
84
87
|
return {
|
package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js
CHANGED
|
@@ -144,47 +144,77 @@ function SetPointsLimitsForm({
|
|
|
144
144
|
);
|
|
145
145
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
146
146
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
147
|
-
/* @__PURE__ */ jsxs(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
147
|
+
/* @__PURE__ */ jsxs(
|
|
148
|
+
Grid,
|
|
149
|
+
{
|
|
150
|
+
container: true,
|
|
151
|
+
spacing: 2,
|
|
152
|
+
sx: {
|
|
153
|
+
padding: 1
|
|
154
|
+
},
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
157
|
+
SelectInput,
|
|
158
|
+
{
|
|
159
|
+
name: `${id}.${FieldConstants.CHARACTERISTICS_CHOICE}`,
|
|
160
|
+
options: Object.values(CHARACTERISTICS_CHOICES),
|
|
161
|
+
fullWidth: true,
|
|
162
|
+
disableClearable: true,
|
|
163
|
+
size: "small"
|
|
164
|
+
}
|
|
165
|
+
) }),
|
|
166
|
+
watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
167
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minQAtNominalVField }),
|
|
168
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maxQAtNominalVField })
|
|
169
|
+
] }),
|
|
170
|
+
watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
171
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minSusceptanceField }),
|
|
172
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maxSusceptanceField })
|
|
173
|
+
] })
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
),
|
|
167
177
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
168
|
-
/* @__PURE__ */ jsxs(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
size:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
178
|
+
/* @__PURE__ */ jsxs(
|
|
179
|
+
Grid,
|
|
180
|
+
{
|
|
181
|
+
container: true,
|
|
182
|
+
spacing: 2,
|
|
183
|
+
sx: {
|
|
184
|
+
padding: 1
|
|
185
|
+
},
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
188
|
+
SelectInput,
|
|
189
|
+
{
|
|
190
|
+
name: `${id}.${FieldConstants.VOLTAGE_REGULATION_MODE}`,
|
|
191
|
+
label: "ModeAutomaton",
|
|
192
|
+
options: Object.values(VOLTAGE_REGULATION_MODES),
|
|
193
|
+
fullWidth: true,
|
|
194
|
+
disableClearable: true,
|
|
195
|
+
size: "small"
|
|
196
|
+
}
|
|
197
|
+
) }),
|
|
198
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageSetPointField }),
|
|
199
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: reactivePowerSetPointField }),
|
|
200
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationTypeField })
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
),
|
|
204
|
+
watchRegulationType === REGULATION_TYPES.DISTANT.id && /* @__PURE__ */ jsxs(
|
|
205
|
+
Grid,
|
|
206
|
+
{
|
|
207
|
+
container: true,
|
|
208
|
+
spacing: 2,
|
|
209
|
+
sx: {
|
|
210
|
+
padding: 1
|
|
211
|
+
},
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, sx: { alignItems: "center" }, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
|
|
214
|
+
/* @__PURE__ */ jsx(GridItem, { size: 8, children: regulatingTerminalField })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
)
|
|
188
218
|
] });
|
|
189
219
|
}
|
|
190
220
|
export {
|