@gridsuite/commons-ui 0.258.0 → 0.259.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/index.js CHANGED
@@ -316,7 +316,7 @@ import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
316
316
  import { ElementType } from "./utils/types/elementType.js";
317
317
  import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./utils/types/equipmentType.js";
318
318
  import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./utils/types/equipmentTypes.js";
319
- import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./utils/types/types.js";
319
+ import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./utils/types/types.js";
320
320
  import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
321
321
  import { FieldType } from "./utils/types/fieldType.js";
322
322
  import { ParameterType } from "./utils/types/parameters.type.js";
@@ -1035,6 +1035,7 @@ export {
1035
1035
  ReactiveLimitsForm,
1036
1036
  ReactivePowerAdornment,
1037
1037
  ReadOnlyInput,
1038
+ ReferenceType,
1038
1039
  RegulatingTerminalForm,
1039
1040
  RemoveButton,
1040
1041
  ReportFetcherContext,
@@ -24,7 +24,7 @@ import { NetworkTimeoutError } from "./types/NetworkTimeoutError.js";
24
24
  import { ElementType } from "./types/elementType.js";
25
25
  import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./types/equipmentType.js";
26
26
  import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./types/equipmentTypes.js";
27
- import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./types/types.js";
27
+ import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./types/types.js";
28
28
  import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
29
29
  import { FieldType } from "./types/fieldType.js";
30
30
  import { ParameterType } from "./types/parameters.type.js";
@@ -135,6 +135,7 @@ export {
135
135
  REACTIVE_LIMITS_MIN_MAX_INVALID,
136
136
  REAL_PERCENTAGE,
137
137
  ReactivePowerAdornment,
138
+ ReferenceType,
138
139
  SEARCH_EQUIPMENTS,
139
140
  SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
140
141
  SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
@@ -4,7 +4,7 @@ import { NetworkTimeoutError } from "./NetworkTimeoutError.js";
4
4
  import { ElementType } from "./elementType.js";
5
5
  import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./equipmentType.js";
6
6
  import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./equipmentTypes.js";
7
- import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./types.js";
7
+ import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./types.js";
8
8
  import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
9
9
  import { FieldType } from "./fieldType.js";
10
10
  import { ParameterType } from "./parameters.type.js";
@@ -54,6 +54,7 @@ export {
54
54
  OperationType,
55
55
  ParameterType,
56
56
  ProblemDetailError,
57
+ ReferenceType,
57
58
  SEARCH_EQUIPMENTS,
58
59
  SVC,
59
60
  SensitivityType,
@@ -6,6 +6,15 @@ export declare enum ElementStatus {
6
6
  CREATED = "CREATED",
7
7
  DELETING = "DELETING"
8
8
  }
9
+ export declare enum ReferenceType {
10
+ STUDY_NODE = "STUDY_NODE",
11
+ NETWORK_MODIFICATION = "NETWORK_MODIFICATION",
12
+ DIRECTORY_ELEMENT = "DIRECTORY_ELEMENT"
13
+ }
14
+ export type ReferenceAttributes = {
15
+ referenceId: UUID;
16
+ referenceType: ReferenceType;
17
+ };
9
18
  export type ElementAttributes = {
10
19
  elementUuid: UUID;
11
20
  elementName: string;
@@ -34,6 +43,7 @@ export type ElementAttributes = {
34
43
  hasMetadata?: boolean;
35
44
  subtype?: string;
36
45
  id?: string;
46
+ references?: ReferenceAttributes[];
37
47
  };
38
48
  export type Option = {
39
49
  id: string;
@@ -3,6 +3,12 @@ var ElementStatus = /* @__PURE__ */ ((ElementStatus2) => {
3
3
  ElementStatus2["DELETING"] = "DELETING";
4
4
  return ElementStatus2;
5
5
  })(ElementStatus || {});
6
+ var ReferenceType = /* @__PURE__ */ ((ReferenceType2) => {
7
+ ReferenceType2["STUDY_NODE"] = "STUDY_NODE";
8
+ ReferenceType2["NETWORK_MODIFICATION"] = "NETWORK_MODIFICATION";
9
+ ReferenceType2["DIRECTORY_ELEMENT"] = "DIRECTORY_ELEMENT";
10
+ return ReferenceType2;
11
+ })(ReferenceType || {});
6
12
  var AnnouncementSeverity = /* @__PURE__ */ ((AnnouncementSeverity2) => {
7
13
  AnnouncementSeverity2["INFO"] = "INFO";
8
14
  AnnouncementSeverity2["WARN"] = "WARN";
@@ -16,5 +22,6 @@ var ArrayAction = /* @__PURE__ */ ((ArrayAction2) => {
16
22
  export {
17
23
  AnnouncementSeverity,
18
24
  ArrayAction,
19
- ElementStatus
25
+ ElementStatus,
26
+ ReferenceType
20
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.258.0",
3
+ "version": "0.259.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",