@gridsuite/commons-ui 0.221.1 → 0.223.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/agGridTable/CustomAgGridTable.js +9 -0
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +0 -1
- package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.d.ts +2 -1
- package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +2 -0
- package/dist/components/ui/treeViewFinder/TreeViewFinder.d.ts +2 -0
- package/dist/components/ui/treeViewFinder/TreeViewFinder.js +53 -45
- package/dist/features/index.js +9 -1
- package/dist/features/network-modification-table/index.js +2 -1
- package/dist/features/network-modification-table/network-modifications-table.d.ts +4 -2
- package/dist/features/network-modification-table/network-modifications-table.js +54 -6
- package/dist/features/network-modification-table/renderers/cell-renderers.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/cell-renderers.js +2 -2
- package/dist/features/network-modification-table/renderers/name-cell.d.ts +3 -2
- package/dist/features/network-modification-table/renderers/name-cell.js +24 -15
- package/dist/features/network-modification-table/utils.d.ts +1 -0
- package/dist/features/network-modification-table/utils.js +11 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.d.ts +3 -2
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +29 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts +4 -4
- package/dist/features/network-modifications/common/setpoints/setPoints.utils.js +1 -1
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.d.ts +8 -0
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +192 -0
- package/dist/features/network-modifications/generator/creation/generatorCreation.types.d.ts +2 -3
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.d.ts +123 -0
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +200 -0
- package/dist/features/network-modifications/generator/creation/index.d.ts +2 -0
- package/dist/features/network-modifications/generator/creation/index.js +9 -1
- package/dist/features/network-modifications/generator/generatorDialog.type.d.ts +0 -3
- package/dist/features/network-modifications/generator/index.js +9 -1
- package/dist/features/network-modifications/index.js +7 -0
- package/dist/features/parameters/short-circuit/columns-definition.js +1 -1
- package/dist/index.js +12 -2
- package/dist/translations/en/networkModificationsEn.d.ts +7 -0
- package/dist/translations/en/networkModificationsEn.js +7 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +7 -0
- package/dist/translations/fr/networkModificationsFr.js +7 -0
- package/dist/utils/index.js +3 -1
- package/dist/utils/types/equipmentType.d.ts +20 -0
- package/dist/utils/types/equipmentType.js +13 -0
- package/dist/utils/types/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260,7 +260,7 @@ import { CustomError } from "./utils/types/CustomError.js";
|
|
|
260
260
|
import { ProblemDetailError } from "./utils/types/ProblemDetailError.js";
|
|
261
261
|
import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
|
|
262
262
|
import { ElementType } from "./utils/types/elementType.js";
|
|
263
|
-
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, 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, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./utils/types/equipmentType.js";
|
|
263
|
+
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";
|
|
264
264
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./utils/types/equipmentTypes.js";
|
|
265
265
|
import { AnnouncementSeverity, ArrayAction } from "./utils/types/types.js";
|
|
266
266
|
import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
|
|
@@ -312,6 +312,8 @@ import { EQUIPMENT_TYPE_ORDER, byFilterDeletionDtoToForm, byFilterDeletionFormSc
|
|
|
312
312
|
import { ModificationByAssignmentForm } from "./features/network-modifications/by-filter/assignment/modification-by-assignment-form.js";
|
|
313
313
|
import { emptyModificationByAssignmentFormData, modificationByAssignmentDtoToForm, modificationByAssignmentFormSchema, modificationByAssignmentFormToDto } from "./features/network-modifications/by-filter/assignment/modificationByAssignment.utils.js";
|
|
314
314
|
import { DataType as DataType2 } from "./features/network-modifications/by-filter/assignment/assignment/assignment.type.js";
|
|
315
|
+
import { generatorCreationDtoToForm, generatorCreationEmptyFormData, generatorCreationFormSchema, generatorCreationFormToDto } from "./features/network-modifications/generator/creation/generatorCreation.utils.js";
|
|
316
|
+
import { GeneratorCreationForm } from "./features/network-modifications/generator/creation/GeneratorCreationForm.js";
|
|
315
317
|
import { batteryCreationDtoToForm, batteryCreationEmptyFormData, batteryCreationFormSchema, batteryCreationFormToDto } from "./features/network-modifications/battery/creation/batteryCreation.utils.js";
|
|
316
318
|
import { BatteryCreationForm } from "./features/network-modifications/battery/creation/BatteryCreationForm.js";
|
|
317
319
|
import { batteryModificationDtoToForm, batteryModificationEmptyFormData, batteryModificationFormSchema, batteryModificationFormToDto } from "./features/network-modifications/battery/modification/batteryModification.utils.js";
|
|
@@ -345,7 +347,7 @@ import { SelectHeaderCell } from "./features/network-modification-table/renderer
|
|
|
345
347
|
import { SwitchCell } from "./features/network-modification-table/renderers/switch-cell.js";
|
|
346
348
|
import { DragCloneRow } from "./features/network-modification-table/row/drag-row-clone.js";
|
|
347
349
|
import { ModificationRow } from "./features/network-modification-table/row/modification-row.js";
|
|
348
|
-
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findModificationInTree, formatToComposedModification, isCompositeModification, mergeSubModificationsIntoTree, moveSubModificationInTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./features/network-modification-table/utils.js";
|
|
350
|
+
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findDepth, findModificationInTree, formatToComposedModification, isCompositeModification, mergeSubModificationsIntoTree, moveSubModificationInTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./features/network-modification-table/utils.js";
|
|
349
351
|
import { AnnouncementBanner } from "./features/announcement/AnnouncementBanner.js";
|
|
350
352
|
import { AnnouncementNotification } from "./features/announcement/AnnouncementNotification.js";
|
|
351
353
|
import { useGlobalAnnouncement } from "./features/announcement/useGlobalAnnouncement.js";
|
|
@@ -578,6 +580,7 @@ export {
|
|
|
578
580
|
DynamicMarginCalculationInline,
|
|
579
581
|
DynamicSecurityAnalysisInline,
|
|
580
582
|
DynamicSimulationInline,
|
|
583
|
+
ENERGY_SOURCES,
|
|
581
584
|
ENERGY_SOURCE_OPTIONS,
|
|
582
585
|
EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
|
|
583
586
|
EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE,
|
|
@@ -633,6 +636,7 @@ export {
|
|
|
633
636
|
GENERATORS_SELECTION_TYPE,
|
|
634
637
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
635
638
|
Generator,
|
|
639
|
+
GeneratorCreationForm,
|
|
636
640
|
GridLogo,
|
|
637
641
|
GroupValueEditor,
|
|
638
642
|
HIGH_VOLTAGE_LIMIT,
|
|
@@ -1113,6 +1117,7 @@ export {
|
|
|
1113
1117
|
filterExpertFr,
|
|
1114
1118
|
filterFr,
|
|
1115
1119
|
findAllLoadedCompositeModifications,
|
|
1120
|
+
findDepth,
|
|
1116
1121
|
findModificationInTree,
|
|
1117
1122
|
flatParametersEn,
|
|
1118
1123
|
flatParametersFr,
|
|
@@ -1120,6 +1125,10 @@ export {
|
|
|
1120
1125
|
formatToComposedModification,
|
|
1121
1126
|
genHelperError,
|
|
1122
1127
|
generateTreeViewFinderClass,
|
|
1128
|
+
generatorCreationDtoToForm,
|
|
1129
|
+
generatorCreationEmptyFormData,
|
|
1130
|
+
generatorCreationFormSchema,
|
|
1131
|
+
generatorCreationFormToDto,
|
|
1123
1132
|
getActivePowerControlEmptyFormData,
|
|
1124
1133
|
getActivePowerControlSchema,
|
|
1125
1134
|
getActivePowerSetPointSchema,
|
|
@@ -1160,6 +1169,7 @@ export {
|
|
|
1160
1169
|
getCreateSwitchesValidationSchema,
|
|
1161
1170
|
getDefaultRowData,
|
|
1162
1171
|
getDynamicMappings,
|
|
1172
|
+
getEnergySourceLabel,
|
|
1163
1173
|
getEquipmentTypeShortLabel,
|
|
1164
1174
|
getEquipmentsInfosForSearchBar,
|
|
1165
1175
|
getExpertFilterEmptyFormData,
|
|
@@ -67,6 +67,7 @@ export declare const networkModificationsEn: {
|
|
|
67
67
|
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': string;
|
|
68
68
|
'network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS': string;
|
|
69
69
|
ModificationReadError: string;
|
|
70
|
+
CompositeModification: string;
|
|
70
71
|
CreateSubstation: string;
|
|
71
72
|
DeleteEquipmentByFilter: string;
|
|
72
73
|
ModifyByAssignment: string;
|
|
@@ -261,6 +262,12 @@ export declare const networkModificationsEn: {
|
|
|
261
262
|
QminPmin: string;
|
|
262
263
|
QmaxPmin: string;
|
|
263
264
|
Pmax: string;
|
|
265
|
+
CreateGenerator: string;
|
|
266
|
+
GeneratorCreationError: string;
|
|
267
|
+
VoltageRegulationText: string;
|
|
268
|
+
GenerationDispatch: string;
|
|
269
|
+
generatorMinimumActivePowerMaxValueError: string;
|
|
270
|
+
PlannedActivePowerSetPointMustBeBetweenMinAndMaxActivePower: string;
|
|
264
271
|
NoBusbarSectionFound: string;
|
|
265
272
|
SubstationTab: string;
|
|
266
273
|
ConnectivityTab: string;
|
|
@@ -72,6 +72,7 @@ const networkModificationsEn = {
|
|
|
72
72
|
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Adding busbar section to voltage level {computedLabel}",
|
|
73
73
|
"network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS": "Moving feeder bays in voltage level {computedLabel}",
|
|
74
74
|
ModificationReadError: "An error occurred while fetching the modification",
|
|
75
|
+
CompositeModification: "Composite modification",
|
|
75
76
|
CreateSubstation: "Create substation",
|
|
76
77
|
DeleteEquipmentByFilter: "Delete equipment by filter",
|
|
77
78
|
ModifyByAssignment: "Modify by filter",
|
|
@@ -266,6 +267,12 @@ const networkModificationsEn = {
|
|
|
266
267
|
QminPmin: "QminPmin",
|
|
267
268
|
QmaxPmin: "QmaxPmin",
|
|
268
269
|
Pmax: "Pmax",
|
|
270
|
+
CreateGenerator: "Create generator",
|
|
271
|
+
GeneratorCreationError: "Error while creating generator",
|
|
272
|
+
VoltageRegulationText: "Voltage regulation",
|
|
273
|
+
GenerationDispatch: "Generation dispatch",
|
|
274
|
+
generatorMinimumActivePowerMaxValueError: "Minimum active power must be inferior to maximum active power",
|
|
275
|
+
PlannedActivePowerSetPointMustBeBetweenMinAndMaxActivePower: "Planned active power set point must be between minimum and maximum active power values",
|
|
269
276
|
NoBusbarSectionFound: "No busbar section found for this voltage level",
|
|
270
277
|
// Tabs
|
|
271
278
|
SubstationTab: "Substation",
|
|
@@ -67,6 +67,7 @@ export declare const networkModificationsFr: {
|
|
|
67
67
|
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': string;
|
|
68
68
|
'network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS': string;
|
|
69
69
|
ModificationReadError: string;
|
|
70
|
+
CompositeModification: string;
|
|
70
71
|
CreateSubstation: string;
|
|
71
72
|
DeleteEquipmentByFilter: string;
|
|
72
73
|
ModifyByAssignment: string;
|
|
@@ -261,6 +262,12 @@ export declare const networkModificationsFr: {
|
|
|
261
262
|
QminPmin: string;
|
|
262
263
|
QmaxPmin: string;
|
|
263
264
|
Pmax: string;
|
|
265
|
+
CreateGenerator: string;
|
|
266
|
+
GeneratorCreationError: string;
|
|
267
|
+
VoltageRegulationText: string;
|
|
268
|
+
GenerationDispatch: string;
|
|
269
|
+
generatorMinimumActivePowerMaxValueError: string;
|
|
270
|
+
PlannedActivePowerSetPointMustBeBetweenMinAndMaxActivePower: string;
|
|
264
271
|
NoBusbarSectionFound: string;
|
|
265
272
|
SubstationTab: string;
|
|
266
273
|
ConnectivityTab: string;
|
|
@@ -72,6 +72,7 @@ const networkModificationsFr = {
|
|
|
72
72
|
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Ajout de section / tronçon dans le poste {computedLabel}",
|
|
73
73
|
"network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS": "Déplacements de départs dans le poste {computedLabel}",
|
|
74
74
|
ModificationReadError: "Une erreur est survenue lors de la récupération de la modification",
|
|
75
|
+
CompositeModification: "Modification composite",
|
|
75
76
|
CreateSubstation: "Créer un site",
|
|
76
77
|
DeleteEquipmentByFilter: "Supprimer des ouvrages par filtre",
|
|
77
78
|
ModifyByAssignment: "Modification par filtre",
|
|
@@ -266,6 +267,12 @@ const networkModificationsFr = {
|
|
|
266
267
|
QminPmin: "QminPmin",
|
|
267
268
|
QmaxPmin: "QmaxPmin",
|
|
268
269
|
Pmax: "Pmax",
|
|
270
|
+
CreateGenerator: "Créer un groupe",
|
|
271
|
+
GeneratorCreationError: "Erreur lors de la création d'un groupe",
|
|
272
|
+
VoltageRegulationText: "Réglage de tension",
|
|
273
|
+
GenerationDispatch: "Démarrage de groupes",
|
|
274
|
+
generatorMinimumActivePowerMaxValueError: "La puissance active min doit être inférieure à la puissance active max",
|
|
275
|
+
PlannedActivePowerSetPointMustBeBetweenMinAndMaxActivePower: "La valeur de la puissance imposée doit être comprise entre la valeur de la puissance active min et la valeur de la puissance active max",
|
|
269
276
|
NoBusbarSectionFound: "Aucun jeu de barres trouvé pour ce poste",
|
|
270
277
|
// Tabs
|
|
271
278
|
SubstationTab: "Site",
|
package/dist/utils/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { CustomError } from "./types/CustomError.js";
|
|
|
21
21
|
import { ProblemDetailError } from "./types/ProblemDetailError.js";
|
|
22
22
|
import { NetworkTimeoutError } from "./types/NetworkTimeoutError.js";
|
|
23
23
|
import { ElementType } from "./types/elementType.js";
|
|
24
|
-
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, 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, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./types/equipmentType.js";
|
|
24
|
+
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";
|
|
25
25
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./types/equipmentTypes.js";
|
|
26
26
|
import { AnnouncementSeverity, ArrayAction } from "./types/types.js";
|
|
27
27
|
import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
|
|
@@ -55,6 +55,7 @@ export {
|
|
|
55
55
|
DEGREE,
|
|
56
56
|
DUPLICATED_PROPS_ERROR,
|
|
57
57
|
DistributionType,
|
|
58
|
+
ENERGY_SOURCES,
|
|
58
59
|
EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE,
|
|
59
60
|
EQUIPMENTS_WITH_ONE_SUBSTATION,
|
|
60
61
|
EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES,
|
|
@@ -154,6 +155,7 @@ export {
|
|
|
154
155
|
equipmentTypesForPredefinedPropertiesMapper,
|
|
155
156
|
extractErrorMessageDescriptor,
|
|
156
157
|
getConnectionDirectionLabel,
|
|
158
|
+
getEnergySourceLabel,
|
|
157
159
|
getEquipmentTypeShortLabel,
|
|
158
160
|
getEquipmentsInfosForSearchBar,
|
|
159
161
|
getFileIcon,
|
|
@@ -72,6 +72,26 @@ export declare enum HvdcType {
|
|
|
72
72
|
LCC = "LCC",
|
|
73
73
|
VSC = "VSC"
|
|
74
74
|
}
|
|
75
|
+
export declare const ENERGY_SOURCES: readonly [{
|
|
76
|
+
readonly id: "HYDRO";
|
|
77
|
+
readonly label: "Hydro";
|
|
78
|
+
}, {
|
|
79
|
+
readonly id: "NUCLEAR";
|
|
80
|
+
readonly label: "Nuclear";
|
|
81
|
+
}, {
|
|
82
|
+
readonly id: "WIND";
|
|
83
|
+
readonly label: "Wind";
|
|
84
|
+
}, {
|
|
85
|
+
readonly id: "THERMAL";
|
|
86
|
+
readonly label: "Thermal";
|
|
87
|
+
}, {
|
|
88
|
+
readonly id: "SOLAR";
|
|
89
|
+
readonly label: "Solar";
|
|
90
|
+
}, {
|
|
91
|
+
readonly id: "OTHER";
|
|
92
|
+
readonly label: "Other";
|
|
93
|
+
}];
|
|
94
|
+
export declare function getEnergySourceLabel(energySourceId?: string): "Hydro" | "Nuclear" | "Wind" | "Thermal" | "Solar" | "Other" | undefined;
|
|
75
95
|
export declare const LOAD_TYPES: {
|
|
76
96
|
id: string;
|
|
77
97
|
label: string;
|
|
@@ -110,6 +110,17 @@ var HvdcType = /* @__PURE__ */ ((HvdcType2) => {
|
|
|
110
110
|
HvdcType2["VSC"] = "VSC";
|
|
111
111
|
return HvdcType2;
|
|
112
112
|
})(HvdcType || {});
|
|
113
|
+
const ENERGY_SOURCES = [
|
|
114
|
+
{ id: "HYDRO", label: "Hydro" },
|
|
115
|
+
{ id: "NUCLEAR", label: "Nuclear" },
|
|
116
|
+
{ id: "WIND", label: "Wind" },
|
|
117
|
+
{ id: "THERMAL", label: "Thermal" },
|
|
118
|
+
{ id: "SOLAR", label: "Solar" },
|
|
119
|
+
{ id: "OTHER", label: "Other" }
|
|
120
|
+
];
|
|
121
|
+
function getEnergySourceLabel(energySourceId) {
|
|
122
|
+
return ENERGY_SOURCES.find(({ id }) => id === energySourceId)?.label;
|
|
123
|
+
}
|
|
113
124
|
const LOAD_TYPES = [
|
|
114
125
|
{ id: "AUXILIARY", label: "Auxiliary" },
|
|
115
126
|
{ id: "FICTITIOUS", label: "Fictitious" }
|
|
@@ -443,6 +454,7 @@ export {
|
|
|
443
454
|
ALL_EQUIPMENTS,
|
|
444
455
|
BASE_EQUIPMENTS,
|
|
445
456
|
CONNECTION_DIRECTIONS,
|
|
457
|
+
ENERGY_SOURCES,
|
|
446
458
|
EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE,
|
|
447
459
|
EQUIPMENTS_WITH_ONE_SUBSTATION,
|
|
448
460
|
EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES,
|
|
@@ -460,6 +472,7 @@ export {
|
|
|
460
472
|
VL_TAG_MAX_SIZE,
|
|
461
473
|
equipmentStyles,
|
|
462
474
|
getConnectionDirectionLabel,
|
|
475
|
+
getEnergySourceLabel,
|
|
463
476
|
getEquipmentsInfosForSearchBar,
|
|
464
477
|
getLoadTypeLabel
|
|
465
478
|
};
|
|
@@ -2,7 +2,7 @@ import { CustomError } from "./CustomError.js";
|
|
|
2
2
|
import { ProblemDetailError } from "./ProblemDetailError.js";
|
|
3
3
|
import { NetworkTimeoutError } from "./NetworkTimeoutError.js";
|
|
4
4
|
import { ElementType } from "./elementType.js";
|
|
5
|
-
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, 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, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./equipmentType.js";
|
|
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
7
|
import { AnnouncementSeverity, ArrayAction } from "./types.js";
|
|
8
8
|
import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
|
|
@@ -25,6 +25,7 @@ export {
|
|
|
25
25
|
CalculationType,
|
|
26
26
|
CustomError,
|
|
27
27
|
DistributionType,
|
|
28
|
+
ENERGY_SOURCES,
|
|
28
29
|
EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE,
|
|
29
30
|
EQUIPMENTS_WITH_ONE_SUBSTATION,
|
|
30
31
|
EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES,
|
|
@@ -67,6 +68,7 @@ export {
|
|
|
67
68
|
enrichSensitivityAnalysisParameters,
|
|
68
69
|
equipmentStyles,
|
|
69
70
|
getConnectionDirectionLabel,
|
|
71
|
+
getEnergySourceLabel,
|
|
70
72
|
getEquipmentsInfosForSearchBar,
|
|
71
73
|
getLoadTypeLabel,
|
|
72
74
|
isInjection,
|