@gridsuite/commons-ui 0.241.1 → 0.243.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.
Files changed (151) hide show
  1. package/README.md +10 -2
  2. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -1
  3. package/dist/components/composite/grid/grid-item.d.ts +2 -1
  4. package/dist/components/composite/grid/grid-item.js +9 -2
  5. package/dist/components/ui/csvPicker/csv-picker.d.ts +7 -2
  6. package/dist/components/ui/csvPicker/csv-picker.js +7 -6
  7. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.d.ts +1 -2
  8. package/dist/features/index.js +87 -3
  9. package/dist/features/network-modification-table/index.js +2 -1
  10. package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +2 -1
  11. package/dist/features/network-modification-table/utils.d.ts +1 -0
  12. package/dist/features/network-modification-table/utils.js +5 -1
  13. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +3 -0
  14. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -0
  15. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +3 -0
  16. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +3 -0
  17. package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +3 -0
  18. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.d.ts +71 -2
  19. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +26 -8
  20. package/dist/features/network-modifications/common/connectivity/index.js +3 -1
  21. package/dist/features/network-modifications/common/currentLimits/LimitsPane.d.ts +7 -0
  22. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +243 -0
  23. package/dist/features/network-modifications/common/currentLimits/LimitsTagChip.d.ts +9 -0
  24. package/dist/features/network-modifications/common/currentLimits/LimitsTagChip.js +29 -0
  25. package/dist/features/network-modifications/common/currentLimits/SelectedOperationalLimitGroup.d.ts +9 -0
  26. package/dist/features/network-modifications/common/currentLimits/SelectedOperationalLimitGroup.js +100 -0
  27. package/dist/features/network-modifications/common/currentLimits/index.d.ts +12 -0
  28. package/dist/features/network-modifications/common/currentLimits/index.js +47 -0
  29. package/dist/features/network-modifications/common/currentLimits/limits.types.d.ts +52 -0
  30. package/dist/features/network-modifications/common/currentLimits/limits.types.js +17 -0
  31. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.d.ts +10 -0
  32. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +285 -0
  33. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.d.ts +5 -0
  34. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +184 -0
  35. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.d.ts +14 -0
  36. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +166 -0
  37. package/dist/features/network-modifications/common/currentLimits/limitsEditor/index.d.ts +10 -0
  38. package/dist/features/network-modifications/common/currentLimits/limitsEditor/index.js +10 -0
  39. package/dist/features/network-modifications/common/currentLimits/limitsEditor/limitsChart.d.ts +11 -0
  40. package/dist/features/network-modifications/common/currentLimits/limitsEditor/limitsChart.js +177 -0
  41. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +213 -0
  42. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +337 -0
  43. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/LimitsGroupsContextualMenu.d.ts +25 -0
  44. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/LimitsGroupsContextualMenu.js +92 -0
  45. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/LimitsPropertiesStack.d.ts +10 -0
  46. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/LimitsPropertiesStack.js +25 -0
  47. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroupTabLabel.d.ts +10 -0
  48. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroupTabLabel.js +73 -0
  49. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.d.ts +16 -0
  50. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +121 -0
  51. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/index.d.ts +11 -0
  52. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/index.js +12 -0
  53. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types.d.ts +71 -0
  54. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types.js +15 -0
  55. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/operationalLimitsGroupsStyles.d.ts +46 -0
  56. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/operationalLimitsGroupsStyles.js +45 -0
  57. package/dist/features/network-modifications/common/index.d.ts +1 -0
  58. package/dist/features/network-modifications/common/index.js +50 -2
  59. package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.d.ts +11 -0
  60. package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +6 -4
  61. package/dist/features/network-modifications/common/measurements/index.js +2 -1
  62. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -1
  63. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +3 -7
  64. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +3 -0
  65. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +9 -6
  66. package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +3 -0
  67. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +3 -0
  68. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +9 -6
  69. package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +3 -0
  70. package/dist/features/network-modifications/index.d.ts +1 -0
  71. package/dist/features/network-modifications/index.js +85 -2
  72. package/dist/features/network-modifications/line/catalog/index.d.ts +8 -0
  73. package/dist/features/network-modifications/line/catalog/index.js +14 -0
  74. package/dist/features/network-modifications/line/catalog/lineCatalog.type.d.ts +66 -0
  75. package/dist/features/network-modifications/line/catalog/lineCatalog.type.js +7 -0
  76. package/dist/features/network-modifications/line/catalog/segment.utils.d.ts +90 -0
  77. package/dist/features/network-modifications/line/catalog/segment.utils.js +100 -0
  78. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.d.ts +8 -0
  79. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +152 -0
  80. package/dist/features/network-modifications/line/characteristics/index.d.ts +9 -0
  81. package/dist/features/network-modifications/line/characteristics/index.js +9 -0
  82. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.types.d.ts +14 -0
  83. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.types.js +1 -0
  84. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.d.ts +52 -0
  85. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +53 -0
  86. package/dist/features/network-modifications/line/common/LineDialogHeader.d.ts +6 -0
  87. package/dist/features/network-modifications/line/common/LineDialogHeader.js +103 -0
  88. package/dist/features/network-modifications/line/common/LineDialogTabs.d.ts +9 -0
  89. package/dist/features/network-modifications/line/common/LineDialogTabs.js +61 -0
  90. package/dist/features/network-modifications/line/common/LineDialogTabsContent.d.ts +8 -0
  91. package/dist/features/network-modifications/line/common/LineDialogTabsContent.js +96 -0
  92. package/dist/features/network-modifications/line/common/LineForm.d.ts +6 -0
  93. package/dist/features/network-modifications/line/common/LineForm.js +50 -0
  94. package/dist/features/network-modifications/line/common/index.d.ts +12 -0
  95. package/dist/features/network-modifications/line/common/index.js +13 -0
  96. package/dist/features/network-modifications/line/common/line.types.d.ts +47 -0
  97. package/dist/features/network-modifications/line/common/line.types.js +1 -0
  98. package/dist/features/network-modifications/line/common/line.utils.d.ts +13 -0
  99. package/dist/features/network-modifications/line/common/line.utils.js +34 -0
  100. package/dist/features/network-modifications/line/creation/index.d.ts +8 -0
  101. package/dist/features/network-modifications/line/creation/index.js +7 -0
  102. package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +39 -0
  103. package/dist/features/network-modifications/line/creation/lineCreation.types.js +1 -0
  104. package/dist/features/network-modifications/line/creation/lineCreation.utils.d.ts +151 -0
  105. package/dist/features/network-modifications/line/creation/lineCreation.utils.js +172 -0
  106. package/dist/features/network-modifications/line/index.d.ts +10 -0
  107. package/dist/features/network-modifications/line/index.js +37 -0
  108. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +3 -0
  109. package/dist/features/network-modifications/load/modification/loadModification.utils.js +3 -0
  110. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +7 -6
  111. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +3 -0
  112. package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +3 -0
  113. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +3 -0
  114. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +3 -0
  115. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +3 -0
  116. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +3 -0
  117. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +3 -0
  118. package/dist/features/network-modifications/voltageLevel/creation/index.js +3 -0
  119. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +3 -0
  120. package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +3 -0
  121. package/dist/features/network-modifications/voltageLevel/index.js +3 -0
  122. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +4 -1
  123. package/dist/features/parameters/common/contingency-table/contingency-table.js +22 -10
  124. package/dist/features/parameters/common/contingency-table/types.d.ts +7 -8
  125. package/dist/features/parameters/common/contingency-table/utils.d.ts +13 -0
  126. package/dist/features/parameters/common/contingency-table/utils.js +31 -0
  127. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +5 -1
  128. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +19 -31
  129. package/dist/hooks/useModificationLabelComputer.js +1 -0
  130. package/dist/index.js +87 -7
  131. package/dist/translations/en/index.d.ts +0 -1
  132. package/dist/translations/en/index.js +0 -2
  133. package/dist/translations/en/networkModificationsEn.d.ts +28 -0
  134. package/dist/translations/en/networkModificationsEn.js +28 -0
  135. package/dist/translations/en/parameters.d.ts +3 -1
  136. package/dist/translations/en/parameters.js +3 -1
  137. package/dist/translations/fr/index.d.ts +0 -1
  138. package/dist/translations/fr/index.js +0 -2
  139. package/dist/translations/fr/networkModificationsFr.d.ts +28 -0
  140. package/dist/translations/fr/networkModificationsFr.js +28 -0
  141. package/dist/translations/fr/parameters.d.ts +3 -1
  142. package/dist/translations/fr/parameters.js +3 -1
  143. package/dist/utils/constants/fieldConstants.d.ts +47 -1
  144. package/dist/utils/constants/fieldConstants.js +46 -0
  145. package/dist/utils/types/modificationType.d.ts +4 -0
  146. package/dist/utils/types/modificationType.js +5 -0
  147. package/package.json +11 -4
  148. package/dist/translations/en/inputsEn.d.ts +0 -24
  149. package/dist/translations/en/inputsEn.js +0 -21
  150. package/dist/translations/fr/inputsFr.d.ts +0 -24
  151. package/dist/translations/fr/inputsFr.js +0 -21
@@ -10,12 +10,17 @@ export declare enum FieldConstants {
10
10
  ADDITIONAL_PROPERTIES = "AdditionalProperties",
11
11
  AG_GRID_ROW_UUID = "agGridRowUuid",
12
12
  API_CALL = "apiCall",
13
+ APPLY_SEGMENTS_LIMITS = "applySegmentsLimits",
14
+ APPLICABILITY_FIELD = "applicability",
13
15
  ASSIGNMENTS = "assignments",
16
+ B1 = "b1",
17
+ B2 = "b2",
14
18
  BUS_OR_BUSBAR_SECTION = "busOrBusbarSection",
15
19
  CASE_FILE = "caseFile",
16
20
  CASE_FORMAT = "caseFormat",
17
21
  CASE_NAME = "caseName",
18
22
  CASE_UUID = "caseUuid",
23
+ CHARACTERISTICS = "characteristics",
19
24
  CHARACTERISTICS_CHOICE = "characteristicsChoice",
20
25
  CONNECTED = "terminalConnected",
21
26
  CONNECTION_DIRECTION = "connectionDirection",
@@ -30,6 +35,7 @@ export declare enum FieldConstants {
30
35
  COUNTRIES_2 = "countries2",
31
36
  COUNTRIES = "countries",
32
37
  COUNTRY = "country",
38
+ CURRENT_LIMITS = "currentLimits",
33
39
  CURRENT_PARAMETERS = "currentParameters",
34
40
  DELETION_MARK = "deletionMark",
35
41
  DELETION_SPECIFIC_DATA = "equipmentInfos",
@@ -52,6 +58,8 @@ export declare enum FieldConstants {
52
58
  FORCED_OUTAGE_RATE = "forcedOutageRate",
53
59
  FORMATTED_CASE_PARAMETERS = "formattedCaseParameters",
54
60
  FREQUENCY_REGULATION = "frequencyRegulation",
61
+ G1 = "g1",
62
+ G2 = "g2",
55
63
  HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE = "HVDC_LINE_WITH_LCC",
56
64
  ID = "id",
57
65
  LOADFLOW_PARAMETERS = "loadflowParameters",
@@ -75,6 +83,7 @@ export declare enum FieldConstants {
75
83
  NOMINAL_VOLTAGE_3 = "nominalVoltage3",
76
84
  NOMINAL_VOLTAGE = "nominalVoltage",
77
85
  OPERATION_TYPE = "type",
86
+ PERMANENT_LIMIT = "permanentLimit",
78
87
  PLANNED_ACTIVE_POWER_SET_POINT = "plannedActivePowerSetPoint",
79
88
  PLANNED_OUTAGE_RATE = "plannedOutageRate",
80
89
  PREVIOUS_VALUE = "previousValue",
@@ -108,11 +117,18 @@ export declare enum FieldConstants {
108
117
  BUS_BAR_SECTION_ID1 = "busbarSectionId1",
109
118
  BUS_BAR_SECTION_ID2 = "busbarSectionId2",
110
119
  COUPLING_OMNIBUS = "couplingOmnibus",
120
+ ENABLE_OLG_MODIFICATION = "enableOLGModification",
111
121
  HIDE_BUS_BAR_SECTION = "hideBusBarSection",
112
122
  HIDE_NOMINAL_VOLTAGE = "hideNominalVoltage",
113
123
  HIDE_SUBSTATION_FIELD = "hideSubstationField",
114
124
  HIGH_SHORT_CIRCUIT_CURRENT_LIMIT = "highShortCircuitCurrentLimit",
115
125
  HIGH_VOLTAGE_LIMIT = "highVoltageLimit",
126
+ LIMITS = "limits",
127
+ LIMITS_PROPERTIES = "limitsProperties",
128
+ LIMIT_SET_NAME = "limitSetName",
129
+ LIMIT_VALUE = "limitValue",
130
+ CATALOG_DATA = "catalogData",
131
+ LINE_SEGMENTS = "lineSegments",
116
132
  LOW_SHORT_CIRCUIT_CURRENT_LIMIT = "lowShortCircuitCurrentLimit",
117
133
  LOW_VOLTAGE_LIMIT = "lowVoltageLimit",
118
134
  MINIMUM_REACTIVE_POWER = "minimumReactivePower",
@@ -120,20 +136,50 @@ export declare enum FieldConstants {
120
136
  MIN_Q = "minQ",
121
137
  MAX_Q = "maxQ",
122
138
  NOMINAL_V = "nominalV",
139
+ OPERATIONAL_LIMITS_GROUPS = "operationalLimitsGroups",
140
+ OLG_IS_DUPLICATE = "operationalLimitsGroupsIsDuplicate",
123
141
  P = "p",
124
142
  Q_PERCENT = "qPercent",
143
+ R = "r",
125
144
  REACTIVE_CAPABILITY_CURVE_CHOICE = "reactiveCapabilityCurveChoice",
126
145
  REACTIVE_CAPABILITY_CURVE_TABLE = "reactiveCapabilityCurveTable",
127
146
  REACTIVE_LIMITS = "reactiveLimits",
128
147
  SECTION_COUNT = "sectionCount",
148
+ SEGMENT_DISTANCE_VALUE = "segmentDistanceValue",
149
+ SEGMENT_TYPE_VALUE = "segmentTypeValue",
150
+ SEGMENT_TYPE_ID = "segmentTypeId",
151
+ SEGMENT_RESISTANCE = "segmentResistance",
152
+ SEGMENT_REACTANCE = "segmentReactance",
153
+ SEGMENT_SUSCEPTANCE = "segmentSusceptance",
154
+ SEGMENT_CURRENT_LIMITS = "segmentCurrentLimits",
155
+ TOTAL_RESISTANCE = "totalResistance",
156
+ TOTAL_REACTANCE = "totalReactance",
157
+ TOTAL_SUSCEPTANCE = "totalSusceptance",
158
+ SEGMENTS = "segments",
159
+ AERIAL_AREAS = "aerialAreas",
160
+ AERIAL_TEMPERATURES = "aerialTemperatures",
161
+ UNDERGROUND_AREAS = "undergroundAreas",
162
+ UNDERGROUND_SHAPE_FACTORS = "undergroundShapeFactors",
163
+ FINAL_CURRENT_LIMITS = "finalCurrentLimits",
164
+ SELECTED_CATEGORIES_TAB = "selectedCategoryTab",
165
+ AREA = "area",
166
+ TEMPERATURE = "temperature",
167
+ SHAPE_FACTOR = "shapeFactor",
168
+ SELECTED_OPERATIONAL_LIMITS_GROUP_ID1 = "selectedOperationalLimitsGroupId1",
169
+ SELECTED_OPERATIONAL_LIMITS_GROUP_ID2 = "selectedOperationalLimitsGroupId2",
129
170
  SUBSTATION_CREATION = "substationCreation",
130
171
  SUBSTATION_CREATION_ID = "substationCreationId",
131
172
  SUBSTATION_ID = "substationId",
132
173
  SUBSTATION_NAME = "substationName",
133
174
  SWITCHES_BETWEEN_SECTIONS = "switchesBetweenSections",
175
+ TEMPORARY_LIMITS = "temporaryLimits",
176
+ TEMPORARY_LIMIT_NAME = "name",
177
+ TEMPORARY_LIMIT_DURATION = "acceptableDuration",
178
+ TEMPORARY_LIMIT_VALUE = "value",
134
179
  TOPOLOGY_KIND = "topologyKind",
135
180
  TRANSFORMER_REACTANCE = "transformerReactance",
136
181
  TRANSIENT_REACTANCE = "directTransX",
137
182
  VOLTAGE_REGULATION_TYPE = "voltageRegulationType",
138
- VOLTAGE_SET_POINT = "voltageSetpoint"
183
+ VOLTAGE_SET_POINT = "voltageSetpoint",
184
+ X = "x"
139
185
  }
@@ -4,12 +4,17 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
4
4
  FieldConstants2["ADDITIONAL_PROPERTIES"] = "AdditionalProperties";
5
5
  FieldConstants2["AG_GRID_ROW_UUID"] = "agGridRowUuid";
6
6
  FieldConstants2["API_CALL"] = "apiCall";
7
+ FieldConstants2["APPLY_SEGMENTS_LIMITS"] = "applySegmentsLimits";
8
+ FieldConstants2["APPLICABILITY_FIELD"] = "applicability";
7
9
  FieldConstants2["ASSIGNMENTS"] = "assignments";
10
+ FieldConstants2["B1"] = "b1";
11
+ FieldConstants2["B2"] = "b2";
8
12
  FieldConstants2["BUS_OR_BUSBAR_SECTION"] = "busOrBusbarSection";
9
13
  FieldConstants2["CASE_FILE"] = "caseFile";
10
14
  FieldConstants2["CASE_FORMAT"] = "caseFormat";
11
15
  FieldConstants2["CASE_NAME"] = "caseName";
12
16
  FieldConstants2["CASE_UUID"] = "caseUuid";
17
+ FieldConstants2["CHARACTERISTICS"] = "characteristics";
13
18
  FieldConstants2["CHARACTERISTICS_CHOICE"] = "characteristicsChoice";
14
19
  FieldConstants2["CONNECTED"] = "terminalConnected";
15
20
  FieldConstants2["CONNECTION_DIRECTION"] = "connectionDirection";
@@ -24,6 +29,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
24
29
  FieldConstants2["COUNTRIES_2"] = "countries2";
25
30
  FieldConstants2["COUNTRIES"] = "countries";
26
31
  FieldConstants2["COUNTRY"] = "country";
32
+ FieldConstants2["CURRENT_LIMITS"] = "currentLimits";
27
33
  FieldConstants2["CURRENT_PARAMETERS"] = "currentParameters";
28
34
  FieldConstants2["DELETION_MARK"] = "deletionMark";
29
35
  FieldConstants2["DELETION_SPECIFIC_DATA"] = "equipmentInfos";
@@ -46,6 +52,8 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
46
52
  FieldConstants2["FORCED_OUTAGE_RATE"] = "forcedOutageRate";
47
53
  FieldConstants2["FORMATTED_CASE_PARAMETERS"] = "formattedCaseParameters";
48
54
  FieldConstants2["FREQUENCY_REGULATION"] = "frequencyRegulation";
55
+ FieldConstants2["G1"] = "g1";
56
+ FieldConstants2["G2"] = "g2";
49
57
  FieldConstants2["HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE"] = "HVDC_LINE_WITH_LCC";
50
58
  FieldConstants2["ID"] = "id";
51
59
  FieldConstants2["LOADFLOW_PARAMETERS"] = "loadflowParameters";
@@ -69,6 +77,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
69
77
  FieldConstants2["NOMINAL_VOLTAGE_3"] = "nominalVoltage3";
70
78
  FieldConstants2["NOMINAL_VOLTAGE"] = "nominalVoltage";
71
79
  FieldConstants2["OPERATION_TYPE"] = "type";
80
+ FieldConstants2["PERMANENT_LIMIT"] = "permanentLimit";
72
81
  FieldConstants2["PLANNED_ACTIVE_POWER_SET_POINT"] = "plannedActivePowerSetPoint";
73
82
  FieldConstants2["PLANNED_OUTAGE_RATE"] = "plannedOutageRate";
74
83
  FieldConstants2["PREVIOUS_VALUE"] = "previousValue";
@@ -102,11 +111,18 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
102
111
  FieldConstants2["BUS_BAR_SECTION_ID1"] = "busbarSectionId1";
103
112
  FieldConstants2["BUS_BAR_SECTION_ID2"] = "busbarSectionId2";
104
113
  FieldConstants2["COUPLING_OMNIBUS"] = "couplingOmnibus";
114
+ FieldConstants2["ENABLE_OLG_MODIFICATION"] = "enableOLGModification";
105
115
  FieldConstants2["HIDE_BUS_BAR_SECTION"] = "hideBusBarSection";
106
116
  FieldConstants2["HIDE_NOMINAL_VOLTAGE"] = "hideNominalVoltage";
107
117
  FieldConstants2["HIDE_SUBSTATION_FIELD"] = "hideSubstationField";
108
118
  FieldConstants2["HIGH_SHORT_CIRCUIT_CURRENT_LIMIT"] = "highShortCircuitCurrentLimit";
109
119
  FieldConstants2["HIGH_VOLTAGE_LIMIT"] = "highVoltageLimit";
120
+ FieldConstants2["LIMITS"] = "limits";
121
+ FieldConstants2["LIMITS_PROPERTIES"] = "limitsProperties";
122
+ FieldConstants2["LIMIT_SET_NAME"] = "limitSetName";
123
+ FieldConstants2["LIMIT_VALUE"] = "limitValue";
124
+ FieldConstants2["CATALOG_DATA"] = "catalogData";
125
+ FieldConstants2["LINE_SEGMENTS"] = "lineSegments";
110
126
  FieldConstants2["LOW_SHORT_CIRCUIT_CURRENT_LIMIT"] = "lowShortCircuitCurrentLimit";
111
127
  FieldConstants2["LOW_VOLTAGE_LIMIT"] = "lowVoltageLimit";
112
128
  FieldConstants2["MINIMUM_REACTIVE_POWER"] = "minimumReactivePower";
@@ -114,22 +130,52 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
114
130
  FieldConstants2["MIN_Q"] = "minQ";
115
131
  FieldConstants2["MAX_Q"] = "maxQ";
116
132
  FieldConstants2["NOMINAL_V"] = "nominalV";
133
+ FieldConstants2["OPERATIONAL_LIMITS_GROUPS"] = "operationalLimitsGroups";
134
+ FieldConstants2["OLG_IS_DUPLICATE"] = "operationalLimitsGroupsIsDuplicate";
117
135
  FieldConstants2["P"] = "p";
118
136
  FieldConstants2["Q_PERCENT"] = "qPercent";
137
+ FieldConstants2["R"] = "r";
119
138
  FieldConstants2["REACTIVE_CAPABILITY_CURVE_CHOICE"] = "reactiveCapabilityCurveChoice";
120
139
  FieldConstants2["REACTIVE_CAPABILITY_CURVE_TABLE"] = "reactiveCapabilityCurveTable";
121
140
  FieldConstants2["REACTIVE_LIMITS"] = "reactiveLimits";
122
141
  FieldConstants2["SECTION_COUNT"] = "sectionCount";
142
+ FieldConstants2["SEGMENT_DISTANCE_VALUE"] = "segmentDistanceValue";
143
+ FieldConstants2["SEGMENT_TYPE_VALUE"] = "segmentTypeValue";
144
+ FieldConstants2["SEGMENT_TYPE_ID"] = "segmentTypeId";
145
+ FieldConstants2["SEGMENT_RESISTANCE"] = "segmentResistance";
146
+ FieldConstants2["SEGMENT_REACTANCE"] = "segmentReactance";
147
+ FieldConstants2["SEGMENT_SUSCEPTANCE"] = "segmentSusceptance";
148
+ FieldConstants2["SEGMENT_CURRENT_LIMITS"] = "segmentCurrentLimits";
149
+ FieldConstants2["TOTAL_RESISTANCE"] = "totalResistance";
150
+ FieldConstants2["TOTAL_REACTANCE"] = "totalReactance";
151
+ FieldConstants2["TOTAL_SUSCEPTANCE"] = "totalSusceptance";
152
+ FieldConstants2["SEGMENTS"] = "segments";
153
+ FieldConstants2["AERIAL_AREAS"] = "aerialAreas";
154
+ FieldConstants2["AERIAL_TEMPERATURES"] = "aerialTemperatures";
155
+ FieldConstants2["UNDERGROUND_AREAS"] = "undergroundAreas";
156
+ FieldConstants2["UNDERGROUND_SHAPE_FACTORS"] = "undergroundShapeFactors";
157
+ FieldConstants2["FINAL_CURRENT_LIMITS"] = "finalCurrentLimits";
158
+ FieldConstants2["SELECTED_CATEGORIES_TAB"] = "selectedCategoryTab";
159
+ FieldConstants2["AREA"] = "area";
160
+ FieldConstants2["TEMPERATURE"] = "temperature";
161
+ FieldConstants2["SHAPE_FACTOR"] = "shapeFactor";
162
+ FieldConstants2["SELECTED_OPERATIONAL_LIMITS_GROUP_ID1"] = "selectedOperationalLimitsGroupId1";
163
+ FieldConstants2["SELECTED_OPERATIONAL_LIMITS_GROUP_ID2"] = "selectedOperationalLimitsGroupId2";
123
164
  FieldConstants2["SUBSTATION_CREATION"] = "substationCreation";
124
165
  FieldConstants2["SUBSTATION_CREATION_ID"] = "substationCreationId";
125
166
  FieldConstants2["SUBSTATION_ID"] = "substationId";
126
167
  FieldConstants2["SUBSTATION_NAME"] = "substationName";
127
168
  FieldConstants2["SWITCHES_BETWEEN_SECTIONS"] = "switchesBetweenSections";
169
+ FieldConstants2["TEMPORARY_LIMITS"] = "temporaryLimits";
170
+ FieldConstants2["TEMPORARY_LIMIT_NAME"] = "name";
171
+ FieldConstants2["TEMPORARY_LIMIT_DURATION"] = "acceptableDuration";
172
+ FieldConstants2["TEMPORARY_LIMIT_VALUE"] = "value";
128
173
  FieldConstants2["TOPOLOGY_KIND"] = "topologyKind";
129
174
  FieldConstants2["TRANSFORMER_REACTANCE"] = "transformerReactance";
130
175
  FieldConstants2["TRANSIENT_REACTANCE"] = "directTransX";
131
176
  FieldConstants2["VOLTAGE_REGULATION_TYPE"] = "voltageRegulationType";
132
177
  FieldConstants2["VOLTAGE_SET_POINT"] = "voltageSetpoint";
178
+ FieldConstants2["X"] = "x";
133
179
  return FieldConstants2;
134
180
  })(FieldConstants || {});
135
181
  export {
@@ -46,6 +46,7 @@ export declare enum ModificationType {
46
46
  VSC_MODIFICATION = "VSC_MODIFICATION",
47
47
  CONVERTER_STATION_MODIFICATION = "CONVERTER_STATION_MODIFICATION",
48
48
  COMPOSITE_MODIFICATION = "COMPOSITE_MODIFICATION",
49
+ MODIFICATION_REFERENCE = "MODIFICATION_REFERENCE",
49
50
  LCC_CONVERTER_STATION_CREATION = "LCC_CONVERTER_STATION_CREATION",
50
51
  LCC_CONVERTER_STATION_MODIFICATION = "LCC_CONVERTER_STATION_MODIFICATION",
51
52
  LCC_CREATION = "LCC_CREATION",
@@ -181,6 +182,9 @@ export declare const MODIFICATION_TYPES: {
181
182
  COMPOSITE_MODIFICATION: {
182
183
  type: ModificationType;
183
184
  };
185
+ MODIFICATION_REFERENCE: {
186
+ type: ModificationType;
187
+ };
184
188
  LCC_CONVERTER_STATION_CREATION: {
185
189
  type: ModificationType;
186
190
  };
@@ -40,6 +40,7 @@ var ModificationType = /* @__PURE__ */ ((ModificationType2) => {
40
40
  ModificationType2["VSC_MODIFICATION"] = "VSC_MODIFICATION";
41
41
  ModificationType2["CONVERTER_STATION_MODIFICATION"] = "CONVERTER_STATION_MODIFICATION";
42
42
  ModificationType2["COMPOSITE_MODIFICATION"] = "COMPOSITE_MODIFICATION";
43
+ ModificationType2["MODIFICATION_REFERENCE"] = "MODIFICATION_REFERENCE";
43
44
  ModificationType2["LCC_CONVERTER_STATION_CREATION"] = "LCC_CONVERTER_STATION_CREATION";
44
45
  ModificationType2["LCC_CONVERTER_STATION_MODIFICATION"] = "LCC_CONVERTER_STATION_MODIFICATION";
45
46
  ModificationType2["LCC_CREATION"] = "LCC_CREATION";
@@ -216,6 +217,10 @@ const MODIFICATION_TYPES = {
216
217
  type: "COMPOSITE_MODIFICATION"
217
218
  /* COMPOSITE_MODIFICATION */
218
219
  },
220
+ MODIFICATION_REFERENCE: {
221
+ type: "MODIFICATION_REFERENCE"
222
+ /* MODIFICATION_REFERENCE */
223
+ },
219
224
  LCC_CONVERTER_STATION_CREATION: {
220
225
  type: "LCC_CONVERTER_STATION_CREATION"
221
226
  /* LCC_CONVERTER_STATION_CREATION */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.241.1",
3
+ "version": "0.243.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -33,6 +33,8 @@
33
33
  "start": "vite demo/ --config vite.config.ts",
34
34
  "start:checks": "VITE_CHECKER_ENABLED=true vite demo/ --config vite.config.ts",
35
35
  "start:open": "vite demo/ --config vite.config.ts --open",
36
+ "storybook": "storybook dev -p 6006",
37
+ "build-storybook": "storybook build",
36
38
  "build": "vite build",
37
39
  "build:pack": "tsc && vite build && npm pack",
38
40
  "prepublishOnly": "npm run build",
@@ -53,6 +55,8 @@
53
55
  "@material-symbols/svg-400": "^0.31.9",
54
56
  "@react-querybuilder/dnd": "^8.11.0",
55
57
  "@react-querybuilder/material": "^8.11.0",
58
+ "@tanstack/react-table": "^8.21.3",
59
+ "@tanstack/react-virtual": "^3.13.18",
56
60
  "autosuggest-highlight": "^3.3.4",
57
61
  "clsx": "^2.1.1",
58
62
  "jwt-decode": "^4.0.0",
@@ -68,8 +72,6 @@
68
72
  "react-window": "^2.2.1",
69
73
  "reconnecting-websocket": "^4.4.0",
70
74
  "type-fest": "^4.41.0",
71
- "@tanstack/react-table": "^8.21.3",
72
- "@tanstack/react-virtual": "^3.13.18",
73
75
  "uuid": "^13.0.0"
74
76
  },
75
77
  "peerDependencies": {
@@ -79,13 +81,14 @@
79
81
  "@mui/icons-material": "^6.5.0",
80
82
  "@mui/lab": "6.0.1-beta.36",
81
83
  "@mui/material": "^6.5.0",
84
+ "@mui/x-charts": "^8.21.0",
82
85
  "@mui/x-tree-view": "^8.21.0",
83
86
  "ag-grid-community": "^35.3.1",
84
87
  "ag-grid-react": "^35.3.1",
85
88
  "notistack": "^3.0.2",
86
89
  "react": "^19.2.0",
87
90
  "react-dom": "^19.2.0",
88
- "react-hook-form": "^7.54.2",
91
+ "react-hook-form": "^7.62.0",
89
92
  "react-intl": "^7.1.6",
90
93
  "react-papaparse": "^4.4.0",
91
94
  "react-router": "^7.4.1",
@@ -105,7 +108,10 @@
105
108
  "@mui/icons-material": "^6.5.0",
106
109
  "@mui/lab": "6.0.1-beta.36",
107
110
  "@mui/material": "^6.5.0",
111
+ "@mui/x-charts": "^8.21.0",
108
112
  "@react-hook/window-size": "^3.1.1",
113
+ "@storybook/addon-docs": "^10.4.2",
114
+ "@storybook/react-vite": "^10.4.2",
109
115
  "@stylistic/eslint-plugin": "^3.1.0",
110
116
  "@testing-library/jest-dom": "^6.8.0",
111
117
  "@testing-library/react": "^16.3.0",
@@ -152,6 +158,7 @@
152
158
  "react-papaparse": "^4.4.0",
153
159
  "react-resizable": "^3.0.5",
154
160
  "react-router": "^7.8.2",
161
+ "storybook": "^10.4.2",
155
162
  "ts-node": "^10.9.2",
156
163
  "typescript": "~5.9.3",
157
164
  "typescript-eslint": "^8.46.2",
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2022, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- export declare const inputsEn: {
8
- 'inputs/kiki': string;
9
- 'inputs/ney': string;
10
- 'inputs/lapulga': string;
11
- 'inputs/ibra': string;
12
- 'inputs/float': string;
13
- 'inputs/integer': string;
14
- 'inputs/radio': string;
15
- 'inputs/select': string;
16
- 'inputs/slider': string;
17
- 'inputs/text': string;
18
- 'inputs/description': string;
19
- 'inputs/autocomplete': string;
20
- 'inputs/boolean': string;
21
- 'inputs/checkbox': string;
22
- 'inputs/switch': string;
23
- 'inputs/directory-items': string;
24
- };
@@ -1,21 +0,0 @@
1
- const inputsEn = {
2
- "inputs/kiki": "Kylian Mbappe",
3
- "inputs/ney": "Neymar",
4
- "inputs/lapulga": "Lionel Messi",
5
- "inputs/ibra": "Zlatan Ibrahimovic",
6
- "inputs/float": "Float",
7
- "inputs/integer": "Integer",
8
- "inputs/radio": "Radio",
9
- "inputs/select": "Select",
10
- "inputs/slider": "Slider",
11
- "inputs/text": "Text",
12
- "inputs/description": "Description",
13
- "inputs/autocomplete": "Autocomplete",
14
- "inputs/boolean": "Boolean",
15
- "inputs/checkbox": "Checkbox",
16
- "inputs/switch": "Switch",
17
- "inputs/directory-items": "Directory items"
18
- };
19
- export {
20
- inputsEn
21
- };
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2022, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- export declare const inputsFr: {
8
- 'inputs/kiki': string;
9
- 'inputs/ney': string;
10
- 'inputs/lapulga': string;
11
- 'inputs/ibra': string;
12
- 'inputs/float': string;
13
- 'inputs/integer': string;
14
- 'inputs/radio': string;
15
- 'inputs/select': string;
16
- 'inputs/slider': string;
17
- 'inputs/text': string;
18
- 'inputs/description': string;
19
- 'inputs/autocomplete': string;
20
- 'inputs/boolean': string;
21
- 'inputs/checkbox': string;
22
- 'inputs/switch': string;
23
- 'inputs/directory-items': string;
24
- };
@@ -1,21 +0,0 @@
1
- const inputsFr = {
2
- "inputs/kiki": "Kylian Mbappe",
3
- "inputs/ney": "Neymar",
4
- "inputs/lapulga": "Lionel Messi",
5
- "inputs/ibra": "Zlatan Ibrahimovic",
6
- "inputs/float": "Float",
7
- "inputs/integer": "Integer",
8
- "inputs/radio": "Radio",
9
- "inputs/select": "Select",
10
- "inputs/slider": "Slider",
11
- "inputs/text": "Text",
12
- "inputs/description": "Description",
13
- "inputs/autocomplete": "Autocomplete",
14
- "inputs/boolean": "Boolean",
15
- "inputs/checkbox": "Checkbox",
16
- "inputs/switch": "Switch",
17
- "inputs/directory-items": "Éléments du répertoire"
18
- };
19
- export {
20
- inputsFr
21
- };