@gridsuite/commons-ui 0.261.0 → 0.262.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,8 +7,8 @@ export interface BatteryCreationDto {
7
7
  minP: number;
8
8
  maxP: number;
9
9
  reactiveCapabilityCurve?: boolean | null;
10
- targetP: number;
11
- targetQ: number;
10
+ targetP: number | null;
11
+ targetQ: number | null;
12
12
  targetV: number | null;
13
13
  voltageRegulationOn: boolean | null;
14
14
  regulatingTerminalId: string | null;
@@ -115,7 +115,7 @@ const batteryCreationDtoToForm = (dto) => {
115
115
  equipmentName: dto.equipmentName ?? "",
116
116
  maximumActivePower: dto.maxP,
117
117
  minimumActivePower: dto.minP,
118
- activePowerSetpoint: dto.targetP,
118
+ activePowerSetpoint: dto.targetP ?? void 0,
119
119
  reactivePowerSetpoint: dto.targetQ,
120
120
  frequencyRegulation: dto.participate,
121
121
  droop: dto.droop,
@@ -170,8 +170,8 @@ const batteryCreationFormToDto = (form) => {
170
170
  minQ: isReactiveCapabilityCurveOn ? null : form.reactiveLimits.minimumReactivePower ?? null,
171
171
  maxQ: isReactiveCapabilityCurveOn ? null : form.reactiveLimits.maximumReactivePower ?? null,
172
172
  reactiveCapabilityCurvePoints: isReactiveCapabilityCurveOn ? form.reactiveLimits.reactiveCapabilityCurveTable ?? null : null,
173
- targetP: form.activePowerSetpoint ?? 0,
174
- targetQ: form.reactivePowerSetpoint ?? 0,
173
+ targetP: form.activePowerSetpoint ?? null,
174
+ targetQ: form.reactivePowerSetpoint ?? null,
175
175
  targetV: form.voltageSetpoint ?? null,
176
176
  voltageRegulationOn: form.voltageRegulation ?? null,
177
177
  participate: form.frequencyRegulation ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.261.0",
3
+ "version": "0.262.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",