@gridsuite/commons-ui 0.223.0 → 0.225.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/dnd-table/dnd-table.d.ts +8 -4
- package/dist/components/composite/dnd-table/dnd-table.js +100 -160
- package/dist/components/composite/dnd-table/dnd-table.type.d.ts +17 -3
- package/dist/components/composite/dnd-table/dnd-table.type.js +2 -0
- package/dist/components/composite/dnd-table/index.d.ts +6 -1
- package/dist/components/composite/dnd-table/index.js +6 -6
- package/dist/components/composite/index.js +6 -6
- package/dist/components/index.js +6 -6
- package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +1 -1
- package/dist/components/ui/directoryItemSelector/utils.js +1 -1
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +1 -1
- package/dist/features/index.js +16 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.d.ts +4 -3
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +7 -30
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.d.ts +2 -0
- package/dist/features/network-modifications/generator/generatorDialog.type.d.ts +0 -60
- package/dist/features/network-modifications/generator/index.js +17 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.d.ts +6 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +109 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.d.ts +13 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +55 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.d.ts +12 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +277 -0
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts +10 -0
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +52 -0
- package/dist/features/network-modifications/generator/modification/generatorModification.types.d.ts +3 -5
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.d.ts +140 -0
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +211 -0
- package/dist/features/network-modifications/generator/modification/generatorTabs.utils.d.ts +8 -0
- package/dist/features/network-modifications/generator/modification/generatorTabs.utils.js +56 -0
- package/dist/features/network-modifications/generator/modification/index.d.ts +6 -0
- package/dist/features/network-modifications/generator/modification/index.js +18 -1
- package/dist/features/network-modifications/index.js +16 -0
- package/dist/features/parameters/common/contingency-table/columns-definitions.d.ts +2 -2
- package/dist/features/parameters/common/contingency-table/columns-definitions.js +6 -6
- package/dist/features/parameters/common/contingency-table/contingency-table.js +1 -1
- package/dist/features/parameters/common/contingency-table/types.d.ts +6 -17
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +1 -1
- package/dist/features/parameters/security-analysis/columns-definitions.d.ts +3 -3
- package/dist/features/parameters/security-analysis/columns-definitions.js +8 -8
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.d.ts +1 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/sensi/columns-definitions.js +1 -1
- package/dist/features/parameters/sensi/constants.d.ts +0 -2
- package/dist/features/parameters/sensi/constants.js +0 -4
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +33 -32
- package/dist/features/parameters/sensi/utils.d.ts +31 -63
- package/dist/features/parameters/sensi/utils.js +49 -61
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +1 -1
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +1 -1
- package/dist/hooks/use-unique-name-validation.js +1 -1
- package/dist/index.js +30 -11
- package/dist/services/directory.d.ts +1 -1
- package/dist/services/index.js +6 -3
- package/dist/services/pcc-min.d.ts +2 -1
- package/dist/services/pcc-min.js +27 -1
- package/dist/services/security-analysis.d.ts +2 -1
- package/dist/services/security-analysis.js +32 -1
- package/dist/services/sensitivity-analysis.d.ts +2 -1
- package/dist/services/sensitivity-analysis.js +87 -1
- package/dist/translations/en/networkModificationsEn.d.ts +2 -0
- package/dist/translations/en/networkModificationsEn.js +2 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +2 -0
- package/dist/translations/fr/networkModificationsFr.js +2 -0
- package/dist/utils/constants/filterConstant.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/types/dynamic-security-analysis.type.d.ts +3 -5
- package/dist/utils/types/index.d.ts +1 -0
- package/dist/utils/types/index.js +4 -4
- package/dist/utils/types/parameters.type.d.ts +1 -1
- package/dist/utils/types/pcc-min.type.d.ts +0 -1
- package/dist/utils/types/pcc-min.type.js +0 -21
- package/dist/utils/types/security-analysis.type.d.ts +26 -0
- package/dist/utils/types/security-analysis.type.js +14 -0
- package/dist/utils/types/sensitivity-analysis.type.d.ts +3 -7
- package/dist/utils/types/sensitivity-analysis.type.js +17 -103
- package/dist/utils/types/types.d.ts +7 -0
- package/package.json +1 -1
- package/dist/components/composite/dnd-table-v2/dnd-table-add-rows-dialog.d.ts +0 -13
- package/dist/components/composite/dnd-table-v2/dnd-table-add-rows-dialog.js +0 -69
- package/dist/components/composite/dnd-table-v2/dnd-table-bottom-left-buttons.d.ts +0 -17
- package/dist/components/composite/dnd-table-v2/dnd-table-bottom-left-buttons.js +0 -47
- package/dist/components/composite/dnd-table-v2/dnd-table-bottom-right-buttons.d.ts +0 -17
- package/dist/components/composite/dnd-table-v2/dnd-table-bottom-right-buttons.js +0 -100
- package/dist/components/composite/dnd-table-v2/dnd-table.d.ts +0 -32
- package/dist/components/composite/dnd-table-v2/dnd-table.js +0 -375
- package/dist/components/composite/dnd-table-v2/dnd-table.type.d.ts +0 -70
- package/dist/components/composite/dnd-table-v2/dnd-table.type.js +0 -19
- package/dist/components/composite/dnd-table-v2/index.d.ts +0 -12
- package/dist/components/composite/dnd-table-v2/index.js +0 -16
- package/dist/features/parameters/common/parameter-table/constants.d.ts +0 -11
- package/dist/features/parameters/common/parameter-table/constants.js +0 -12
- package/dist/features/parameters/common/parameter-table/parameter-table.d.ts +0 -15
- package/dist/features/parameters/common/parameter-table/parameter-table.js +0 -98
- package/dist/features/parameters/common/parameter-table/table-cell.d.ts +0 -8
- package/dist/features/parameters/common/parameter-table/table-cell.js +0 -83
- package/dist/features/parameters/common/parameter-table/table-row.d.ts +0 -11
- package/dist/features/parameters/common/parameter-table/table-row.js +0 -41
- package/dist/features/parameters/common/parameter-table/types.d.ts +0 -26
- package/dist/features/parameters/common/parameter-table/types.js +0 -1
- package/dist/features/parameters/security-analysis/types.d.ts +0 -20
- package/dist/features/parameters/security-analysis/types.js +0 -42
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/deletable-table-row.d.ts +0 -0
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/deletable-table-row.js +0 -0
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/dnd-table-row.d.ts +0 -0
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/dnd-table-row.js +0 -0
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/dnd-table-utils.d.ts +0 -0
- /package/dist/components/composite/{dnd-table-v2 → dnd-table}/dnd-table-utils.js +0 -0
package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Grid } from "@mui/material";
|
|
3
|
+
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
|
+
import { useWatch } from "react-hook-form";
|
|
5
|
+
import { GeneratorDialogTab } from "./generatorTabs.utils.js";
|
|
6
|
+
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { ActivePowerAdornment, MVAPowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
9
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
10
|
+
import "../../../../utils/conversionUtils.js";
|
|
11
|
+
import "../../../../utils/types/equipmentType.js";
|
|
12
|
+
import "@mui/icons-material";
|
|
13
|
+
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "localized-countries";
|
|
15
|
+
import "localized-countries/data/fr";
|
|
16
|
+
import "localized-countries/data/en";
|
|
17
|
+
import "notistack";
|
|
18
|
+
import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
19
|
+
import "yup";
|
|
20
|
+
import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
21
|
+
import { FloatInput } from "../../../../components/ui/reactHookForm/numbers/FloatInput.js";
|
|
22
|
+
import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
26
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
27
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
|
+
import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
29
|
+
import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
30
|
+
import { CheckboxNullableInput } from "../../../../components/ui/reactHookForm/CheckboxNullableInput.js";
|
|
31
|
+
import "@hello-pangea/dnd";
|
|
32
|
+
import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
33
|
+
import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
34
|
+
import "mui-nested-menu";
|
|
35
|
+
import "react-resizable-panels";
|
|
36
|
+
import "../../common/properties/propertyUtils.js";
|
|
37
|
+
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
38
|
+
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
39
|
+
import "react-dom";
|
|
40
|
+
import "autosuggest-highlight/match";
|
|
41
|
+
import "autosuggest-highlight/parse";
|
|
42
|
+
import "clsx";
|
|
43
|
+
import "../../../../components/composite/filter/FilterCreationDialog.js";
|
|
44
|
+
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
45
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
46
|
+
import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
47
|
+
import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
48
|
+
import "../../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
49
|
+
import "react-querybuilder";
|
|
50
|
+
import "uuid";
|
|
51
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
52
|
+
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
53
|
+
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
54
|
+
import "@react-querybuilder/material";
|
|
55
|
+
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
56
|
+
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
57
|
+
import "../../../../components/composite/agGridTable/BottomRightButtons.js";
|
|
58
|
+
import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
59
|
+
import "ag-grid-community";
|
|
60
|
+
import "react-papaparse";
|
|
61
|
+
import "react-csv-downloader";
|
|
62
|
+
import "../../../../components/composite/customAGGrid/customAggrid.js";
|
|
63
|
+
import { SetPointsForm } from "../../common/setpoints/SetPointsForm.js";
|
|
64
|
+
import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
|
|
65
|
+
import { ActivePowerControlForm } from "../../common/activePowerControl/ActivePowerControlForm.js";
|
|
66
|
+
import { ShortCircuitForm } from "../../common/shortCircuit/ShortCircuitForm.js";
|
|
67
|
+
import { ReactiveLimitsForm } from "../../common/reactiveLimits/ReactiveLimitsForm.js";
|
|
68
|
+
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
69
|
+
import { VoltageRegulationForm } from "../../common/voltageRegulation/VoltageRegulationForm.js";
|
|
70
|
+
function GeneratorDialogTabsContent({
|
|
71
|
+
generatorToModify,
|
|
72
|
+
updatePreviousReactiveCapabilityCurveTable,
|
|
73
|
+
tabIndex,
|
|
74
|
+
voltageLevelOptions = [],
|
|
75
|
+
PositionDiagramPane,
|
|
76
|
+
fetchBusesOrBusbarSections,
|
|
77
|
+
fetchVoltageLevelEquipments
|
|
78
|
+
}) {
|
|
79
|
+
const intl = useIntl();
|
|
80
|
+
const watchVoltageRegulation = useWatch({
|
|
81
|
+
name: FieldConstants.VOLTAGE_REGULATION
|
|
82
|
+
});
|
|
83
|
+
const previousRegulation = () => {
|
|
84
|
+
if (generatorToModify?.voltageRegulatorOn) {
|
|
85
|
+
return intl.formatMessage({ id: "On" });
|
|
86
|
+
}
|
|
87
|
+
if (generatorToModify?.voltageRegulatorOn === false) {
|
|
88
|
+
return intl.formatMessage({ id: "Off" });
|
|
89
|
+
}
|
|
90
|
+
return null;
|
|
91
|
+
};
|
|
92
|
+
const voltageRegulationField = /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
93
|
+
CheckboxNullableInput,
|
|
94
|
+
{
|
|
95
|
+
name: FieldConstants.VOLTAGE_REGULATION,
|
|
96
|
+
label: "VoltageRegulationText",
|
|
97
|
+
previousValue: previousRegulation() ?? void 0
|
|
98
|
+
}
|
|
99
|
+
) });
|
|
100
|
+
const voltageRegulationFields = /* @__PURE__ */ jsx(
|
|
101
|
+
VoltageRegulationForm,
|
|
102
|
+
{
|
|
103
|
+
voltageLevelOptions,
|
|
104
|
+
fetchVoltageLevelEquipments,
|
|
105
|
+
previousValues: {
|
|
106
|
+
regulatingTerminalConnectableId: generatorToModify?.regulatingTerminalConnectableId,
|
|
107
|
+
regulatingTerminalVlId: generatorToModify?.regulatingTerminalVlId,
|
|
108
|
+
regulatingTerminalConnectableType: generatorToModify?.regulatingTerminalConnectableType,
|
|
109
|
+
voltageSetPoint: generatorToModify?.targetV,
|
|
110
|
+
qPercent: generatorToModify?.coordinatedReactiveControl?.qPercent
|
|
111
|
+
},
|
|
112
|
+
isEquipmentModification: true
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
const maximumActivePowerField = /* @__PURE__ */ jsx(
|
|
116
|
+
FloatInput,
|
|
117
|
+
{
|
|
118
|
+
name: FieldConstants.MAXIMUM_ACTIVE_POWER,
|
|
119
|
+
label: "MaximumActivePowerText",
|
|
120
|
+
adornment: ActivePowerAdornment,
|
|
121
|
+
previousValue: generatorToModify?.maxP,
|
|
122
|
+
clearable: true
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
const minimumActivePowerField = /* @__PURE__ */ jsx(
|
|
126
|
+
FloatInput,
|
|
127
|
+
{
|
|
128
|
+
name: FieldConstants.MINIMUM_ACTIVE_POWER,
|
|
129
|
+
label: "MinimumActivePowerText",
|
|
130
|
+
adornment: ActivePowerAdornment,
|
|
131
|
+
previousValue: generatorToModify?.minP,
|
|
132
|
+
clearable: true
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
const ratedNominalPowerField = /* @__PURE__ */ jsx(
|
|
136
|
+
FloatInput,
|
|
137
|
+
{
|
|
138
|
+
name: FieldConstants.RATED_NOMINAL_POWER,
|
|
139
|
+
label: "RatedNominalPowerText",
|
|
140
|
+
adornment: MVAPowerAdornment,
|
|
141
|
+
previousValue: generatorToModify?.ratedS,
|
|
142
|
+
clearable: true
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
const plannedActivePowerSetPointField = /* @__PURE__ */ jsx(
|
|
146
|
+
FloatInput,
|
|
147
|
+
{
|
|
148
|
+
name: FieldConstants.PLANNED_ACTIVE_POWER_SET_POINT,
|
|
149
|
+
label: "PlannedActivePowerSetPointForm",
|
|
150
|
+
adornment: ActivePowerAdornment,
|
|
151
|
+
previousValue: generatorToModify?.generatorStartup?.plannedActivePowerSetPoint ?? void 0,
|
|
152
|
+
clearable: true
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
const marginalCostField = /* @__PURE__ */ jsx(
|
|
156
|
+
FloatInput,
|
|
157
|
+
{
|
|
158
|
+
name: FieldConstants.MARGINAL_COST,
|
|
159
|
+
label: "MarginalCost",
|
|
160
|
+
previousValue: generatorToModify?.generatorStartup?.marginalCost ?? void 0,
|
|
161
|
+
clearable: true
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
const plannedOutageRateField = /* @__PURE__ */ jsx(
|
|
165
|
+
FloatInput,
|
|
166
|
+
{
|
|
167
|
+
name: FieldConstants.PLANNED_OUTAGE_RATE,
|
|
168
|
+
label: "plannedOutageRate",
|
|
169
|
+
previousValue: generatorToModify?.generatorStartup?.plannedOutageRate ?? void 0,
|
|
170
|
+
clearable: true
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
const forcedOutageRateField = /* @__PURE__ */ jsx(
|
|
174
|
+
FloatInput,
|
|
175
|
+
{
|
|
176
|
+
name: FieldConstants.FORCED_OUTAGE_RATE,
|
|
177
|
+
label: "forcedOutageRate",
|
|
178
|
+
previousValue: generatorToModify?.generatorStartup?.forcedOutageRate ?? void 0,
|
|
179
|
+
clearable: true
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
183
|
+
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== GeneratorDialogTab.CONNECTIVITY_TAB, children: [
|
|
184
|
+
/* @__PURE__ */ jsx(GridSection, { title: "ConnectivityTab" }),
|
|
185
|
+
/* @__PURE__ */ jsx(
|
|
186
|
+
ConnectivityForm,
|
|
187
|
+
{
|
|
188
|
+
isEquipmentModification: true,
|
|
189
|
+
previousValues: {
|
|
190
|
+
connectablePosition: generatorToModify?.connectablePosition,
|
|
191
|
+
voltageLevelId: generatorToModify?.voltageLevelId,
|
|
192
|
+
busOrBusbarSectionId: generatorToModify?.busOrBusbarSectionId,
|
|
193
|
+
terminalConnected: generatorToModify?.terminalConnected
|
|
194
|
+
},
|
|
195
|
+
voltageLevelOptions,
|
|
196
|
+
PositionDiagramPane,
|
|
197
|
+
fetchBusesOrBusbarSections
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== GeneratorDialogTab.SETPOINTS_AND_LIMITS_TAB, children: [
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
SetPointsForm,
|
|
204
|
+
{
|
|
205
|
+
previousValues: {
|
|
206
|
+
activePower: generatorToModify?.targetP,
|
|
207
|
+
reactivePower: generatorToModify?.targetQ
|
|
208
|
+
},
|
|
209
|
+
isModification: true
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
214
|
+
/* @__PURE__ */ jsx(
|
|
215
|
+
GridItem,
|
|
216
|
+
{
|
|
217
|
+
tooltip: watchVoltageRegulation === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }) : "",
|
|
218
|
+
size: 4,
|
|
219
|
+
children: voltageRegulationField
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
voltageRegulationFields,
|
|
223
|
+
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
224
|
+
/* @__PURE__ */ jsx(
|
|
225
|
+
ActivePowerControlForm,
|
|
226
|
+
{
|
|
227
|
+
isEquipmentModification: true,
|
|
228
|
+
previousValues: generatorToModify?.activePowerControl
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, children: [
|
|
233
|
+
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
234
|
+
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
235
|
+
] }) }),
|
|
236
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
237
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
238
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
|
|
239
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
|
|
240
|
+
] }),
|
|
241
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
|
|
242
|
+
/* @__PURE__ */ jsx(
|
|
243
|
+
ReactiveLimitsForm,
|
|
244
|
+
{
|
|
245
|
+
previousReactiveCapabilityCurvePoints: generatorToModify?.reactiveCapabilityCurvePoints,
|
|
246
|
+
previousMinMaxReactiveLimits: generatorToModify?.minMaxReactiveLimits,
|
|
247
|
+
updatePreviousReactiveCapabilityCurveTable
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== GeneratorDialogTab.SPECIFIC_TAB, children: [
|
|
252
|
+
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
253
|
+
/* @__PURE__ */ jsx(ShortCircuitForm, { previousValues: generatorToModify?.generatorShortCircuit }),
|
|
254
|
+
/* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
|
|
255
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
256
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
|
|
257
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField }),
|
|
258
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, item: true, spacing: 2, children: [
|
|
259
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
|
|
260
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
|
|
261
|
+
] })
|
|
262
|
+
] }),
|
|
263
|
+
/* @__PURE__ */ jsx(GridSection, { title: "MeasurementsSection" }),
|
|
264
|
+
/* @__PURE__ */ jsx(
|
|
265
|
+
PowerMeasurementsForm,
|
|
266
|
+
{
|
|
267
|
+
activePowerMeasurement: generatorToModify?.measurementP,
|
|
268
|
+
reactivePowerMeasurement: generatorToModify?.measurementQ
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
] }),
|
|
272
|
+
/* @__PURE__ */ jsx(Box, { hidden: tabIndex !== GeneratorDialogTab.ADDITIONAL_INFORMATION_TAB, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "generator", isModification: true }) })
|
|
273
|
+
] });
|
|
274
|
+
}
|
|
275
|
+
export {
|
|
276
|
+
GeneratorDialogTabsContent
|
|
277
|
+
};
|
package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GeneratorDialogHeaderProps } from './GeneratorDialogHeader';
|
|
2
|
+
import { GeneratorDialogTabsContentProps } from './GeneratorDialogTabsContent';
|
|
3
|
+
import { EquipmentType, Identifiable } from '../../../../utils';
|
|
4
|
+
interface GeneratorModificationFormProps extends GeneratorDialogHeaderProps, Omit<GeneratorDialogTabsContentProps, 'tabIndex'> {
|
|
5
|
+
fetchVoltageLevelEquipments: (voltageLevelId: string) => Promise<(Identifiable & {
|
|
6
|
+
type: EquipmentType;
|
|
7
|
+
})[]>;
|
|
8
|
+
}
|
|
9
|
+
export declare function GeneratorModificationForm({ generatorToModify, updatePreviousReactiveCapabilityCurveTable, voltageLevelOptions, fetchBusesOrBusbarSections, PositionDiagramPane, fetchVoltageLevelEquipments, }: Readonly<GeneratorModificationFormProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
|
+
import { useWatch } from "react-hook-form";
|
|
4
|
+
import { GeneratorDialogTab, GENERATOR_TAB_FIELDS } from "./generatorTabs.utils.js";
|
|
5
|
+
import { GeneratorDialogHeader } from "./GeneratorDialogHeader.js";
|
|
6
|
+
import { GeneratorDialogTabs } from "./GeneratorDialogTabs.js";
|
|
7
|
+
import { GeneratorDialogTabsContent } from "./GeneratorDialogTabsContent.js";
|
|
8
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../../utils/conversionUtils.js";
|
|
10
|
+
import "../../../../utils/types/equipmentType.js";
|
|
11
|
+
import "@mui/icons-material";
|
|
12
|
+
import { useTabsWithError } from "../../hooks/useTabsWithError.js";
|
|
13
|
+
function GeneratorModificationForm({
|
|
14
|
+
generatorToModify,
|
|
15
|
+
updatePreviousReactiveCapabilityCurveTable,
|
|
16
|
+
voltageLevelOptions,
|
|
17
|
+
fetchBusesOrBusbarSections,
|
|
18
|
+
PositionDiagramPane,
|
|
19
|
+
fetchVoltageLevelEquipments
|
|
20
|
+
}) {
|
|
21
|
+
const { tabIndex, setTabIndex, tabIndexesWithError } = useTabsWithError(
|
|
22
|
+
GENERATOR_TAB_FIELDS,
|
|
23
|
+
GeneratorDialogTab.CONNECTIVITY_TAB
|
|
24
|
+
);
|
|
25
|
+
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
26
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(GeneratorDialogHeader, { generatorToModify, equipmentId }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
29
|
+
GeneratorDialogTabs,
|
|
30
|
+
{
|
|
31
|
+
tabIndex,
|
|
32
|
+
tabIndexesWithError,
|
|
33
|
+
setTabIndex
|
|
34
|
+
}
|
|
35
|
+
) }),
|
|
36
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
37
|
+
GeneratorDialogTabsContent,
|
|
38
|
+
{
|
|
39
|
+
tabIndex,
|
|
40
|
+
generatorToModify,
|
|
41
|
+
voltageLevelOptions,
|
|
42
|
+
fetchBusesOrBusbarSections,
|
|
43
|
+
PositionDiagramPane,
|
|
44
|
+
updatePreviousReactiveCapabilityCurveTable,
|
|
45
|
+
fetchVoltageLevelEquipments
|
|
46
|
+
}
|
|
47
|
+
) })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
GeneratorModificationForm
|
|
52
|
+
};
|
package/dist/features/network-modifications/generator/modification/generatorModification.types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { AttributeModification } from '../../../../utils';
|
|
2
|
-
import { Property } from '../../common
|
|
3
|
-
import { ReactiveCapabilityCurvePoints } from '../../common/reactiveLimits/reactiveLimits.type';
|
|
1
|
+
import { AttributeModification, ModificationType } from '../../../../utils';
|
|
2
|
+
import { Property, ReactiveCapabilityCurvePoints } from '../../common';
|
|
4
3
|
export interface GeneratorModificationDto {
|
|
5
|
-
type:
|
|
6
|
-
uuid: string | null;
|
|
4
|
+
type: ModificationType;
|
|
7
5
|
equipmentId: string;
|
|
8
6
|
equipmentName: AttributeModification<string> | null;
|
|
9
7
|
energySource?: AttributeModification<string> | null;
|
package/dist/features/network-modifications/generator/modification/generatorModification.utils.d.ts
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { InferType } from 'yup';
|
|
2
|
+
import { DeepNullable } from '../../../../utils';
|
|
3
|
+
import { GeneratorModificationDto } from './generatorModification.types';
|
|
4
|
+
import { GeneratorFormInfos } from '../generatorDialog.type';
|
|
5
|
+
export declare const generatorModificationFormSchema: import('yup').ObjectSchema<NonNullable<{
|
|
6
|
+
stateEstimation: {
|
|
7
|
+
[x: string]: {
|
|
8
|
+
validity?: boolean | null | undefined;
|
|
9
|
+
value?: number | null | undefined;
|
|
10
|
+
};
|
|
11
|
+
[x: number]: {
|
|
12
|
+
validity?: boolean | null | undefined;
|
|
13
|
+
value?: number | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
frequencyRegulation: boolean | null | undefined;
|
|
17
|
+
droop: number | null | undefined;
|
|
18
|
+
voltageRegulation: boolean | null | undefined;
|
|
19
|
+
voltageRegulationType: string | null | undefined;
|
|
20
|
+
voltageSetpoint: number | null | undefined;
|
|
21
|
+
qPercent: number | null | undefined;
|
|
22
|
+
voltageLevel: {
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
nominalVoltage?: string | undefined;
|
|
26
|
+
substationId?: string | undefined;
|
|
27
|
+
topologyKind?: string | null | undefined;
|
|
28
|
+
} | null;
|
|
29
|
+
equipment: {
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
name?: string | null | undefined;
|
|
32
|
+
type?: string | undefined;
|
|
33
|
+
} | null;
|
|
34
|
+
reactivePowerSetpoint: number | null | undefined;
|
|
35
|
+
activePowerSetpoint: number | undefined;
|
|
36
|
+
plannedActivePowerSetPoint: number | null | undefined;
|
|
37
|
+
marginalCost: number | null | undefined;
|
|
38
|
+
plannedOutageRate: number | null | undefined;
|
|
39
|
+
forcedOutageRate: number | null | undefined;
|
|
40
|
+
connectivity: {
|
|
41
|
+
terminalConnected?: boolean | null | undefined;
|
|
42
|
+
connectionDirection?: string | null | undefined;
|
|
43
|
+
connectionName?: string | undefined;
|
|
44
|
+
connectionPosition?: number | null | undefined;
|
|
45
|
+
busOrBusbarSection: {
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
} | null;
|
|
48
|
+
voltageLevel: {
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
} | null;
|
|
51
|
+
};
|
|
52
|
+
reactiveLimits: {
|
|
53
|
+
minimumReactivePower?: number | null | undefined;
|
|
54
|
+
maximumReactivePower?: number | null | undefined;
|
|
55
|
+
reactiveCapabilityCurveTable?: {
|
|
56
|
+
minQ: number | null;
|
|
57
|
+
maxQ: number | null;
|
|
58
|
+
p: number | null;
|
|
59
|
+
}[] | null | undefined;
|
|
60
|
+
reactiveCapabilityCurveChoice: string;
|
|
61
|
+
};
|
|
62
|
+
transformerReactance: number | null | undefined;
|
|
63
|
+
directTransX: number | null | undefined;
|
|
64
|
+
equipmentID: string;
|
|
65
|
+
equipmentName: string | null | undefined;
|
|
66
|
+
energySource: string | null | undefined;
|
|
67
|
+
maximumActivePower: number | null | undefined;
|
|
68
|
+
minimumActivePower: number | null | undefined;
|
|
69
|
+
ratedNominalPower: number | null | undefined;
|
|
70
|
+
} & {
|
|
71
|
+
AdditionalProperties: {
|
|
72
|
+
previousValue?: string | null | undefined;
|
|
73
|
+
value?: string | null | undefined;
|
|
74
|
+
added: NonNullable<boolean | undefined>;
|
|
75
|
+
deletionMark: NonNullable<boolean | undefined>;
|
|
76
|
+
name: string;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
}>, import('yup').AnyObject, {
|
|
79
|
+
stateEstimation: {
|
|
80
|
+
[x: string]: {
|
|
81
|
+
value: undefined;
|
|
82
|
+
validity: undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
frequencyRegulation: undefined;
|
|
86
|
+
droop: undefined;
|
|
87
|
+
voltageRegulation: undefined;
|
|
88
|
+
voltageRegulationType: undefined;
|
|
89
|
+
voltageSetpoint: undefined;
|
|
90
|
+
qPercent: undefined;
|
|
91
|
+
voltageLevel: {
|
|
92
|
+
id: undefined;
|
|
93
|
+
name: undefined;
|
|
94
|
+
substationId: undefined;
|
|
95
|
+
nominalVoltage: undefined;
|
|
96
|
+
topologyKind: undefined;
|
|
97
|
+
};
|
|
98
|
+
equipment: {
|
|
99
|
+
id: undefined;
|
|
100
|
+
name: undefined;
|
|
101
|
+
type: undefined;
|
|
102
|
+
};
|
|
103
|
+
reactivePowerSetpoint: undefined;
|
|
104
|
+
activePowerSetpoint: undefined;
|
|
105
|
+
plannedActivePowerSetPoint: undefined;
|
|
106
|
+
marginalCost: undefined;
|
|
107
|
+
plannedOutageRate: undefined;
|
|
108
|
+
forcedOutageRate: undefined;
|
|
109
|
+
connectivity: {
|
|
110
|
+
voltageLevel: {
|
|
111
|
+
id: undefined;
|
|
112
|
+
};
|
|
113
|
+
busOrBusbarSection: {
|
|
114
|
+
id: undefined;
|
|
115
|
+
};
|
|
116
|
+
connectionDirection: undefined;
|
|
117
|
+
connectionName: undefined;
|
|
118
|
+
connectionPosition: undefined;
|
|
119
|
+
terminalConnected: undefined;
|
|
120
|
+
};
|
|
121
|
+
reactiveLimits: {
|
|
122
|
+
reactiveCapabilityCurveChoice: undefined;
|
|
123
|
+
minimumReactivePower: undefined;
|
|
124
|
+
maximumReactivePower: undefined;
|
|
125
|
+
reactiveCapabilityCurveTable: "";
|
|
126
|
+
};
|
|
127
|
+
transformerReactance: undefined;
|
|
128
|
+
directTransX: undefined;
|
|
129
|
+
equipmentID: undefined;
|
|
130
|
+
equipmentName: undefined;
|
|
131
|
+
energySource: undefined;
|
|
132
|
+
maximumActivePower: undefined;
|
|
133
|
+
minimumActivePower: undefined;
|
|
134
|
+
ratedNominalPower: undefined;
|
|
135
|
+
AdditionalProperties: "";
|
|
136
|
+
}, "">;
|
|
137
|
+
export type GeneratorModificationFormData = InferType<typeof generatorModificationFormSchema>;
|
|
138
|
+
export declare const generatorModificationEmptyFormData: DeepNullable<GeneratorModificationFormData>;
|
|
139
|
+
export declare const generatorModificationDtoToForm: (dto: GeneratorModificationDto, includePreviousValues?: boolean) => GeneratorModificationFormData;
|
|
140
|
+
export declare const generatorModificationFormToDto: (form: GeneratorModificationFormData, dto: GeneratorModificationDto | undefined, equipment?: GeneratorFormInfos) => GeneratorModificationDto;
|