@gridsuite/commons-ui 0.116.4 → 0.117.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.
@@ -219,6 +219,34 @@ export declare const FIELDS_OPTIONS: {
219
219
  dataType: DataType;
220
220
  inputType: string;
221
221
  };
222
+ P: {
223
+ name: FieldType;
224
+ label: string;
225
+ unit: string;
226
+ dataType: DataType;
227
+ inputType: string;
228
+ };
229
+ Q: {
230
+ name: FieldType;
231
+ label: string;
232
+ unit: string;
233
+ dataType: DataType;
234
+ inputType: string;
235
+ };
236
+ P_ABSOLUTE: {
237
+ name: FieldType;
238
+ label: string;
239
+ unit: string;
240
+ dataType: DataType;
241
+ inputType: string;
242
+ };
243
+ Q_ABSOLUTE: {
244
+ name: FieldType;
245
+ label: string;
246
+ unit: string;
247
+ dataType: DataType;
248
+ inputType: string;
249
+ };
222
250
  TARGET_P: {
223
251
  name: FieldType;
224
252
  label: string;
@@ -208,6 +208,34 @@ const FIELDS_OPTIONS = {
208
208
  dataType: DataType.NUMBER,
209
209
  inputType: "number"
210
210
  },
211
+ P: {
212
+ name: FieldType.P,
213
+ label: "p",
214
+ unit: MEGA_WATT,
215
+ dataType: DataType.NUMBER,
216
+ inputType: "number"
217
+ },
218
+ Q: {
219
+ name: FieldType.Q,
220
+ label: "q",
221
+ unit: MEGA_WATT,
222
+ dataType: DataType.NUMBER,
223
+ inputType: "number"
224
+ },
225
+ P_ABSOLUTE: {
226
+ name: FieldType.P_ABSOLUTE,
227
+ label: "pAbsolute",
228
+ unit: MEGA_WATT,
229
+ dataType: DataType.NUMBER,
230
+ inputType: "number"
231
+ },
232
+ Q_ABSOLUTE: {
233
+ name: FieldType.Q_ABSOLUTE,
234
+ label: "qAbsolute",
235
+ unit: MEGA_WATT,
236
+ dataType: DataType.NUMBER,
237
+ inputType: "number"
238
+ },
211
239
  TARGET_P: {
212
240
  name: FieldType.TARGET_P,
213
241
  label: "targetP",
@@ -37,7 +37,7 @@ function AutocompleteInput({
37
37
  if ((currentValue == null ? void 0 : currentValue.id) === newValue) {
38
38
  return;
39
39
  }
40
- if (!(onCheckNewValue == null ? void 0 : onCheckNewValue(newValue))) {
40
+ if (onCheckNewValue && !onCheckNewValue(newValue)) {
41
41
  return;
42
42
  }
43
43
  onChangeCallback == null ? void 0 : onChangeCallback();
@@ -3,4 +3,4 @@ export interface SliderInputProps extends SliderProps {
3
3
  name: string;
4
4
  onValueChanged?: (value: number | number[]) => void;
5
5
  }
6
- export declare function SliderInput({ name, min, max, step, size, marks, valueLabelDisplay, valueLabelFormat, onValueChanged, }: SliderInputProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SliderInput({ name, min, max, step, size, marks, valueLabelDisplay, valueLabelFormat, onValueChanged, ...otherProps }: SliderInputProps): import("react/jsx-runtime").JSX.Element;
@@ -11,7 +11,8 @@ function SliderInput({
11
11
  marks,
12
12
  valueLabelDisplay,
13
13
  valueLabelFormat,
14
- onValueChanged = identity
14
+ onValueChanged = identity,
15
+ ...otherProps
15
16
  }) {
16
17
  const {
17
18
  field: { onChange, value }
@@ -31,7 +32,8 @@ function SliderInput({
31
32
  onChange: handleValueChange,
32
33
  marks,
33
34
  valueLabelDisplay,
34
- valueLabelFormat
35
+ valueLabelFormat,
36
+ ...otherProps
35
37
  }
36
38
  );
37
39
  }
@@ -13,6 +13,10 @@ export declare const filterExpertEn: {
13
13
  PlannedActivePowerSetPoint: string;
14
14
  minP: string;
15
15
  maxP: string;
16
+ p: string;
17
+ q: string;
18
+ pAbsolute: string;
19
+ qAbsolute: string;
16
20
  targetP: string;
17
21
  targetV: string;
18
22
  targetQ: string;
@@ -7,6 +7,10 @@ const filterExpertEn = {
7
7
  PlannedActivePowerSetPoint: "Planning active power set point",
8
8
  minP: "Minimum active power",
9
9
  maxP: "Maximum active power",
10
+ p: "Terminal active power",
11
+ q: "Terminal reactive power",
12
+ pAbsolute: "Terminal active power absolute value",
13
+ qAbsolute: "Terminal reactive power absolute value",
10
14
  targetP: "Active power target",
11
15
  targetV: "Voltage target",
12
16
  targetQ: "Reactive power target",
@@ -69,4 +69,5 @@ export declare const networkModificationsEn: {
69
69
  'network_modifications.CREATE_COUPLING_DEVICE': string;
70
70
  'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': string;
71
71
  'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': string;
72
+ 'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': string;
72
73
  };
@@ -62,7 +62,8 @@ const networkModificationsEn = {
62
62
  "network_modifications.VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION": "Modifying voltage level topology {computedLabel}",
63
63
  "network_modifications.CREATE_COUPLING_DEVICE": "Creating a coupling device in voltage level {computedLabel}",
64
64
  "network_modifications.BALANCES_ADJUSTMENT_MODIFICATION": "Balances adjustment modification",
65
- "network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Creating a bus bar in voltage level {computedLabel}"
65
+ "network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Creating a bus bar in voltage level {computedLabel}",
66
+ "network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Creating voltage level Busbar sections {computedLabel}"
66
67
  };
67
68
  export {
68
69
  networkModificationsEn
@@ -13,6 +13,10 @@ export declare const filterExpertFr: {
13
13
  PlannedActivePowerSetPoint: string;
14
14
  minP: string;
15
15
  maxP: string;
16
+ p: string;
17
+ q: string;
18
+ pAbsolute: string;
19
+ qAbsolute: string;
16
20
  targetP: string;
17
21
  targetV: string;
18
22
  targetQ: string;
@@ -7,6 +7,10 @@ const filterExpertFr = {
7
7
  PlannedActivePowerSetPoint: "Puissance imposée",
8
8
  minP: "Puissance active min",
9
9
  maxP: "Puissance active max",
10
+ p: "Puissance active du terminal",
11
+ q: "Puissance reactive du terminal",
12
+ pAbsolute: "Puissance active du terminal en valeur absolue",
13
+ qAbsolute: "Puissance reactive du terminal en valeur absolue",
10
14
  targetP: "Consigne puissance active",
11
15
  targetV: "Consigne tension",
12
16
  targetQ: "Consigne puissance réactive",
@@ -69,4 +69,5 @@ export declare const networkModificationsFr: {
69
69
  'network_modifications.CREATE_COUPLING_DEVICE': string;
70
70
  'network_modifications.BALANCES_ADJUSTMENT_MODIFICATION': string;
71
71
  'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': string;
72
+ 'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': string;
72
73
  };
@@ -62,7 +62,8 @@ const networkModificationsFr = {
62
62
  "network_modifications.VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION": "Modification de la topologie du poste {computedLabel}",
63
63
  "network_modifications.CREATE_COUPLING_DEVICE": "Création de couplage / omnibus dans le poste {computedLabel}",
64
64
  "network_modifications.BALANCES_ADJUSTMENT_MODIFICATION": "Modification d'équilibrage bilan",
65
- "network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Ajout d'un jeu de barre dans le poste {computedLabel}"
65
+ "network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Ajout d'un jeu de barre dans le poste {computedLabel}",
66
+ "network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Création des Busbar sections dans le poste {computedLabel}"
66
67
  };
67
68
  export {
68
69
  networkModificationsFr
@@ -11,6 +11,10 @@ export declare enum FieldType {
11
11
  NOMINAL_VOLTAGE = "NOMINAL_VOLTAGE",
12
12
  MIN_P = "MIN_P",
13
13
  MAX_P = "MAX_P",
14
+ P = "P",
15
+ Q = "Q",
16
+ P_ABSOLUTE = "P_ABSOLUTE",
17
+ Q_ABSOLUTE = "Q_ABSOLUTE",
14
18
  TARGET_V = "TARGET_V",
15
19
  TARGET_P = "TARGET_P",
16
20
  TARGET_Q = "TARGET_Q",
@@ -5,6 +5,10 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
5
5
  FieldType2["NOMINAL_VOLTAGE"] = "NOMINAL_VOLTAGE";
6
6
  FieldType2["MIN_P"] = "MIN_P";
7
7
  FieldType2["MAX_P"] = "MAX_P";
8
+ FieldType2["P"] = "P";
9
+ FieldType2["Q"] = "Q";
10
+ FieldType2["P_ABSOLUTE"] = "P_ABSOLUTE";
11
+ FieldType2["Q_ABSOLUTE"] = "Q_ABSOLUTE";
8
12
  FieldType2["TARGET_V"] = "TARGET_V";
9
13
  FieldType2["TARGET_P"] = "TARGET_P";
10
14
  FieldType2["TARGET_Q"] = "TARGET_Q";
@@ -53,7 +53,8 @@ export declare enum ModificationType {
53
53
  VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION = "VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION",
54
54
  CREATE_COUPLING_DEVICE = "CREATE_COUPLING_DEVICE",
55
55
  BALANCES_ADJUSTMENT = "BALANCES_ADJUSTMENT_MODIFICATION",
56
- CREATE_VOLTAGE_LEVEL_TOPOLOGY = "CREATE_VOLTAGE_LEVEL_TOPOLOGY"
56
+ CREATE_VOLTAGE_LEVEL_TOPOLOGY = "CREATE_VOLTAGE_LEVEL_TOPOLOGY",
57
+ CREATE_VOLTAGE_LEVEL_SECTION = "CREATE_VOLTAGE_LEVEL_SECTION"
57
58
  }
58
59
  export declare const MODIFICATION_TYPES: {
59
60
  GROOVY_SCRIPT: {
@@ -206,4 +207,7 @@ export declare const MODIFICATION_TYPES: {
206
207
  CREATE_VOLTAGE_LEVEL_TOPOLOGY: {
207
208
  type: ModificationType;
208
209
  };
210
+ CREATE_VOLTAGE_LEVEL_SECTION: {
211
+ type: ModificationType;
212
+ };
209
213
  };
@@ -48,6 +48,7 @@ var ModificationType = /* @__PURE__ */ ((ModificationType2) => {
48
48
  ModificationType2["CREATE_COUPLING_DEVICE"] = "CREATE_COUPLING_DEVICE";
49
49
  ModificationType2["BALANCES_ADJUSTMENT"] = "BALANCES_ADJUSTMENT_MODIFICATION";
50
50
  ModificationType2["CREATE_VOLTAGE_LEVEL_TOPOLOGY"] = "CREATE_VOLTAGE_LEVEL_TOPOLOGY";
51
+ ModificationType2["CREATE_VOLTAGE_LEVEL_SECTION"] = "CREATE_VOLTAGE_LEVEL_SECTION";
51
52
  return ModificationType2;
52
53
  })(ModificationType || {});
53
54
  const MODIFICATION_TYPES = {
@@ -248,6 +249,10 @@ const MODIFICATION_TYPES = {
248
249
  CREATE_VOLTAGE_LEVEL_TOPOLOGY: {
249
250
  type: "CREATE_VOLTAGE_LEVEL_TOPOLOGY"
250
251
  /* CREATE_VOLTAGE_LEVEL_TOPOLOGY */
252
+ },
253
+ CREATE_VOLTAGE_LEVEL_SECTION: {
254
+ type: "CREATE_VOLTAGE_LEVEL_SECTION"
255
+ /* CREATE_VOLTAGE_LEVEL_SECTION */
251
256
  }
252
257
  };
253
258
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.116.4",
3
+ "version": "0.117.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",