@gridsuite/commons-ui 0.136.1 → 0.137.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 (96) hide show
  1. package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +4 -4
  2. package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +4 -4
  3. package/dist/components/dnd-table/dnd-table.js +1 -0
  4. package/dist/components/elementSearch/elementItem/EquipmentItem.js +2 -2
  5. package/dist/components/elementSearch/tagRenderer/TagRenderer.js +2 -2
  6. package/dist/components/filter/HeaderFilterForm.js +4 -4
  7. package/dist/components/filter/expert/expertFilterConstants.d.ts +2 -51
  8. package/dist/components/filter/utils/filterFormUtils.d.ts +2 -5
  9. package/dist/components/filter/utils/filterFormUtils.js +2 -5
  10. package/dist/components/index.js +4 -0
  11. package/dist/components/inputs/index.js +4 -0
  12. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +7 -4
  13. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +28 -45
  14. package/dist/components/inputs/reactHookForm/OverflowableChip.d.ts +4 -0
  15. package/dist/components/inputs/reactHookForm/OverflowableChip.js +25 -0
  16. package/dist/components/inputs/reactHookForm/OverflowableChipWithHelperText.d.ts +5 -0
  17. package/dist/components/inputs/reactHookForm/OverflowableChipWithHelperText.js +15 -0
  18. package/dist/components/inputs/reactHookForm/index.d.ts +2 -0
  19. package/dist/components/inputs/reactHookForm/index.js +4 -0
  20. package/dist/components/menus/custom-nested-menu.js +25 -1
  21. package/dist/components/overflowableText/OverflowableText.d.ts +1 -1
  22. package/dist/components/overflowableText/OverflowableText.js +8 -10
  23. package/dist/components/parameters/common/ProviderParam.js +4 -4
  24. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +4 -4
  25. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +4 -4
  26. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +4 -4
  27. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +4 -4
  28. package/dist/components/parameters/common/widget/parameter-float.js +4 -4
  29. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
  30. package/dist/components/parameters/common/widget/parameter-line-slider.js +4 -4
  31. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +4 -4
  32. package/dist/components/parameters/loadflow/load-flow-parameter-field.js +4 -4
  33. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +4 -4
  34. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +4 -4
  35. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +4 -4
  36. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +4 -4
  37. package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +4 -4
  38. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +4 -4
  39. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +4 -4
  40. package/dist/components/parameters/network-visualizations/map-parameters.js +4 -4
  41. package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  42. package/dist/components/parameters/network-visualizations/network-visualizations-form.js +4 -4
  43. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +4 -4
  44. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +4 -4
  45. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +4 -4
  46. package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +4 -4
  47. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +4 -4
  48. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +4 -4
  49. package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +4 -4
  50. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +4 -4
  51. package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +4 -4
  52. package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +4 -4
  53. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +4 -4
  54. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +4 -4
  55. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +4 -4
  56. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +4 -4
  57. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +4 -4
  58. package/dist/components/parameters/sensi/sensitivity-table.js +4 -4
  59. package/dist/components/parameters/sensi/table-cell.js +1 -1
  60. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +4 -4
  61. package/dist/components/parameters/sensi/utils.js +4 -4
  62. package/dist/components/parameters/short-circuit/short-circuit-fields.js +4 -4
  63. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +4 -4
  64. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +4 -4
  65. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +4 -4
  66. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +4 -4
  67. package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  68. package/dist/components/parameters/voltage-init/general-parameters.js +4 -4
  69. package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +4 -4
  70. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +4 -4
  71. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +4 -4
  72. package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +4 -4
  73. package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +4 -4
  74. package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +4 -4
  75. package/dist/index.js +13 -2
  76. package/dist/translations/en/equipmentSearchEn.d.ts +0 -17
  77. package/dist/translations/en/equipmentSearchEn.js +1 -18
  78. package/dist/translations/en/equipmentShortEn.d.ts +28 -0
  79. package/dist/translations/en/equipmentShortEn.js +25 -0
  80. package/dist/translations/en/equipmentTagEn.d.ts +28 -0
  81. package/dist/translations/en/equipmentTagEn.js +25 -0
  82. package/dist/translations/en/index.d.ts +2 -0
  83. package/dist/translations/en/index.js +4 -0
  84. package/dist/translations/fr/equipmentSearchFr.d.ts +0 -17
  85. package/dist/translations/fr/equipmentSearchFr.js +1 -18
  86. package/dist/translations/fr/equipmentShortFr.d.ts +28 -0
  87. package/dist/translations/fr/equipmentShortFr.js +25 -0
  88. package/dist/translations/fr/equipmentTagFr.d.ts +28 -0
  89. package/dist/translations/fr/equipmentTagFr.js +25 -0
  90. package/dist/translations/fr/index.d.ts +2 -0
  91. package/dist/translations/fr/index.js +4 -0
  92. package/dist/utils/index.js +1 -2
  93. package/dist/utils/types/equipmentType.d.ts +7 -165
  94. package/dist/utils/types/equipmentType.js +90 -151
  95. package/dist/utils/types/index.js +1 -2
  96. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 equipmentTagFr: {
8
+ 'equipment_tag/substation': string;
9
+ 'equipment_tag/voltageLevel': string;
10
+ 'equipment_tag/line': string;
11
+ 'equipment_tag/2wt': string;
12
+ 'equipment_tag/3wt': string;
13
+ 'equipment_tag/generator': string;
14
+ 'equipment_tag/battery': string;
15
+ 'equipment_tag/load': string;
16
+ 'equipment_tag/shunt': string;
17
+ 'equipment_tag/svc': string;
18
+ 'equipment_tag/hvdcLine': string;
19
+ 'equipment_tag/hvdcLineVsc': string;
20
+ 'equipment_tag/hvdcLineLcc': string;
21
+ 'equipment_tag/hvdcStation': string;
22
+ 'equipment_tag/vscConverterStation': string;
23
+ 'equipment_tag/lccConverterStation': string;
24
+ 'equipment_tag/busbarSection': string;
25
+ 'equipment_tag/bus': string;
26
+ 'equipment_tag/switch': string;
27
+ 'equipment_tag/danglingLine': string;
28
+ };
@@ -0,0 +1,25 @@
1
+ const equipmentTagFr = {
2
+ "equipment_tag/substation": "SITE",
3
+ "equipment_tag/voltageLevel": "POSTE",
4
+ "equipment_tag/line": "LIGNE",
5
+ "equipment_tag/2wt": "TRANSFO 2E",
6
+ "equipment_tag/3wt": "TRANSFO 3E",
7
+ "equipment_tag/generator": "GROUPE",
8
+ "equipment_tag/battery": "BATTERIE",
9
+ "equipment_tag/load": "CONSO",
10
+ "equipment_tag/shunt": "MCS",
11
+ "equipment_tag/svc": "CSPR",
12
+ "equipment_tag/hvdcLine": "LIGNE HVDC",
13
+ "equipment_tag/hvdcLineVsc": "LIGNE HVDC (VSC)",
14
+ "equipment_tag/hvdcLineLcc": "LIGNE HVDC (LCC)",
15
+ "equipment_tag/hvdcStation": "STATION HVDC",
16
+ "equipment_tag/vscConverterStation": "STATION VSC",
17
+ "equipment_tag/lccConverterStation": "STATION LCC",
18
+ "equipment_tag/busbarSection": "SJB",
19
+ "equipment_tag/bus": "NOEUD",
20
+ "equipment_tag/switch": "SWITCH",
21
+ "equipment_tag/danglingLine": "FRONTIERE"
22
+ };
23
+ export {
24
+ equipmentTagFr
25
+ };
@@ -13,6 +13,8 @@ export * from './directoryItemsInputFr';
13
13
  export * from './dndTableFr';
14
14
  export * from './elementSearchFr';
15
15
  export * from './equipmentSearchFr';
16
+ export * from './equipmentTagFr';
17
+ export * from './equipmentShortFr';
16
18
  export * from './equipmentsFr';
17
19
  export * from './errorsFr';
18
20
  export * from './filterExpertFr';
@@ -7,6 +7,8 @@ import { directoryItemsInputFr } from "./directoryItemsInputFr.js";
7
7
  import { dndTableFr } from "./dndTableFr.js";
8
8
  import { elementSearchFr } from "./elementSearchFr.js";
9
9
  import { equipmentSearchFr } from "./equipmentSearchFr.js";
10
+ import { equipmentTagFr } from "./equipmentTagFr.js";
11
+ import { equipmentShortFr } from "./equipmentShortFr.js";
10
12
  import { equipmentsFr } from "./equipmentsFr.js";
11
13
  import { errorsFr } from "./errorsFr.js";
12
14
  import { filterExpertFr } from "./filterExpertFr.js";
@@ -36,6 +38,8 @@ export {
36
38
  dndTableFr,
37
39
  elementSearchFr,
38
40
  equipmentSearchFr,
41
+ equipmentShortFr,
42
+ equipmentTagFr,
39
43
  equipmentsFr,
40
44
  errorsFr,
41
45
  exportParamsFr,
@@ -12,7 +12,7 @@ import { equipmentTypesForPredefinedPropertiesMapper } from "./mapper/equipmentT
12
12
  import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./constants/notificationsProvider.js";
13
13
  import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./styles.js";
14
14
  import { ElementType } from "./types/elementType.js";
15
- import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EQUIPMENT_TYPE, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./types/equipmentType.js";
15
+ import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./types/equipmentType.js";
16
16
  import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel } from "./types/equipmentTypes.js";
17
17
  import { AnnouncementSeverity, ArrayAction } from "./types/types.js";
18
18
  import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
@@ -37,7 +37,6 @@ export {
37
37
  DEGREE,
38
38
  DanglingLine,
39
39
  DistributionType,
40
- EQUIPMENT_TYPE,
41
40
  ElementType,
42
41
  EquipmentType,
43
42
  ExtendedEquipmentType,
@@ -71,172 +71,14 @@ export declare enum ExtendedEquipmentType {
71
71
  HVDC_LINE_LCC = "HVDC_LINE_LCC",
72
72
  HVDC_LINE_VSC = "HVDC_LINE_VSC"
73
73
  }
74
- export declare const ALL_EQUIPMENTS: {
75
- SUBSTATION: {
76
- id: EquipmentType;
77
- label: string;
78
- };
79
- VOLTAGE_LEVEL: {
80
- id: EquipmentType;
81
- label: string;
82
- };
83
- LINE: {
84
- id: EquipmentType;
85
- label: string;
86
- };
87
- TWO_WINDINGS_TRANSFORMER: {
88
- id: EquipmentType;
89
- label: string;
90
- };
91
- THREE_WINDINGS_TRANSFORMER: {
92
- id: EquipmentType;
93
- label: string;
94
- };
95
- GENERATOR: {
96
- id: EquipmentType;
97
- label: string;
98
- };
99
- BATTERY: {
100
- id: EquipmentType;
101
- label: string;
102
- };
103
- LOAD: {
104
- id: EquipmentType;
105
- label: string;
106
- };
107
- SHUNT_COMPENSATOR: {
108
- id: EquipmentType;
109
- label: string;
110
- };
111
- STATIC_VAR_COMPENSATOR: {
112
- id: EquipmentType;
113
- label: string;
114
- };
115
- DANGLING_LINE: {
116
- id: EquipmentType;
117
- label: string;
118
- };
119
- BUSBAR_SECTION: {
120
- id: EquipmentType;
121
- label: string;
122
- };
123
- HVDC_LINE: {
124
- id: EquipmentType;
125
- label: string;
126
- };
127
- HVDC_LINE_LCC: {
128
- id: ExtendedEquipmentType;
129
- label: string;
130
- };
131
- HVDC_LINE_VSC: {
132
- id: ExtendedEquipmentType;
133
- label: string;
134
- };
135
- };
136
- export declare const BASE_EQUIPMENTS: {
137
- SUBSTATION: {
138
- id: EquipmentType;
139
- label: string;
140
- };
141
- VOLTAGE_LEVEL: {
142
- id: EquipmentType;
143
- label: string;
144
- };
145
- LINE: {
146
- id: EquipmentType;
147
- label: string;
148
- };
149
- TWO_WINDINGS_TRANSFORMER: {
150
- id: EquipmentType;
151
- label: string;
152
- };
153
- THREE_WINDINGS_TRANSFORMER: {
154
- id: EquipmentType;
155
- label: string;
156
- };
157
- GENERATOR: {
158
- id: EquipmentType;
159
- label: string;
160
- };
161
- BATTERY: {
162
- id: EquipmentType;
163
- label: string;
164
- };
165
- LOAD: {
166
- id: EquipmentType;
167
- label: string;
168
- };
169
- SHUNT_COMPENSATOR: {
170
- id: EquipmentType;
171
- label: string;
172
- };
173
- STATIC_VAR_COMPENSATOR: {
174
- id: EquipmentType;
175
- label: string;
176
- };
177
- DANGLING_LINE: {
178
- id: EquipmentType;
179
- label: string;
180
- };
181
- };
182
- export declare const EQUIPMENT_TYPE: Partial<Record<EquipmentType | ExtendedEquipmentType, {
183
- name: EquipmentType | ExtendedEquipmentType;
74
+ export declare const ALL_EQUIPMENTS: Partial<Record<EquipmentType | ExtendedEquipmentType, {
75
+ id: EquipmentType | ExtendedEquipmentType;
76
+ label: string;
184
77
  tagLabel: string;
185
- } | undefined>>;
186
- export declare const SEARCH_EQUIPMENTS: {
187
- HVDC_LINE_LCC: {
188
- id: ExtendedEquipmentType;
189
- label: string;
190
- };
191
- HVDC_LINE_VSC: {
192
- id: ExtendedEquipmentType;
193
- label: string;
194
- };
195
- SUBSTATION: {
196
- id: EquipmentType;
197
- label: string;
198
- };
199
- VOLTAGE_LEVEL: {
200
- id: EquipmentType;
201
- label: string;
202
- };
203
- LINE: {
204
- id: EquipmentType;
205
- label: string;
206
- };
207
- TWO_WINDINGS_TRANSFORMER: {
208
- id: EquipmentType;
209
- label: string;
210
- };
211
- THREE_WINDINGS_TRANSFORMER: {
212
- id: EquipmentType;
213
- label: string;
214
- };
215
- GENERATOR: {
216
- id: EquipmentType;
217
- label: string;
218
- };
219
- BATTERY: {
220
- id: EquipmentType;
221
- label: string;
222
- };
223
- LOAD: {
224
- id: EquipmentType;
225
- label: string;
226
- };
227
- SHUNT_COMPENSATOR: {
228
- id: EquipmentType;
229
- label: string;
230
- };
231
- STATIC_VAR_COMPENSATOR: {
232
- id: EquipmentType;
233
- label: string;
234
- };
235
- DANGLING_LINE: {
236
- id: EquipmentType;
237
- label: string;
238
- };
239
- };
78
+ shortLabel: string;
79
+ }>>;
80
+ export declare const BASE_EQUIPMENTS: typeof ALL_EQUIPMENTS;
81
+ export declare const SEARCH_EQUIPMENTS: typeof ALL_EQUIPMENTS;
240
82
  export interface Identifiable {
241
83
  id: string;
242
84
  name?: string;
@@ -74,105 +74,180 @@ const ALL_EQUIPMENTS = {
74
74
  /* SUBSTATION */
75
75
  ]: {
76
76
  id: "SUBSTATION",
77
- label: "Substations"
77
+ label: "Substations",
78
+ tagLabel: "equipment_tag/substation",
79
+ shortLabel: "equipment_short/substation"
78
80
  },
79
81
  [
80
82
  "VOLTAGE_LEVEL"
81
83
  /* VOLTAGE_LEVEL */
82
84
  ]: {
83
85
  id: "VOLTAGE_LEVEL",
84
- label: "VoltageLevels"
86
+ label: "VoltageLevels",
87
+ tagLabel: "equipment_tag/voltageLevel",
88
+ shortLabel: "equipment_short/voltageLevel"
85
89
  },
86
90
  [
87
91
  "LINE"
88
92
  /* LINE */
89
93
  ]: {
90
94
  id: "LINE",
91
- label: "Lines"
95
+ label: "Lines",
96
+ tagLabel: "equipment_tag/line",
97
+ shortLabel: "equipment_short/line"
92
98
  },
93
99
  [
94
100
  "TWO_WINDINGS_TRANSFORMER"
95
101
  /* TWO_WINDINGS_TRANSFORMER */
96
102
  ]: {
97
103
  id: "TWO_WINDINGS_TRANSFORMER",
98
- label: "TwoWindingsTransformers"
104
+ label: "TwoWindingsTransformers",
105
+ tagLabel: "equipment_tag/2wt",
106
+ shortLabel: "equipment_short/2wt"
99
107
  },
100
108
  [
101
109
  "THREE_WINDINGS_TRANSFORMER"
102
110
  /* THREE_WINDINGS_TRANSFORMER */
103
111
  ]: {
104
112
  id: "THREE_WINDINGS_TRANSFORMER",
105
- label: "ThreeWindingsTransformers"
113
+ label: "ThreeWindingsTransformers",
114
+ tagLabel: "equipment_tag/3wt",
115
+ shortLabel: "equipment_short/3wt"
106
116
  },
107
117
  [
108
118
  "GENERATOR"
109
119
  /* GENERATOR */
110
120
  ]: {
111
121
  id: "GENERATOR",
112
- label: "Generators"
122
+ label: "Generators",
123
+ tagLabel: "equipment_tag/generator",
124
+ shortLabel: "equipment_short/generator"
113
125
  },
114
126
  [
115
127
  "BATTERY"
116
128
  /* BATTERY */
117
129
  ]: {
118
130
  id: "BATTERY",
119
- label: "Batteries"
131
+ label: "Batteries",
132
+ tagLabel: "equipment_tag/battery",
133
+ shortLabel: "equipment_short/battery"
120
134
  },
121
135
  [
122
136
  "LOAD"
123
137
  /* LOAD */
124
138
  ]: {
125
139
  id: "LOAD",
126
- label: "Loads"
140
+ label: "Loads",
141
+ tagLabel: "equipment_tag/load",
142
+ shortLabel: "equipment_short/load"
127
143
  },
128
144
  [
129
145
  "SHUNT_COMPENSATOR"
130
146
  /* SHUNT_COMPENSATOR */
131
147
  ]: {
132
148
  id: "SHUNT_COMPENSATOR",
133
- label: "ShuntCompensators"
149
+ label: "ShuntCompensators",
150
+ tagLabel: "equipment_tag/shunt",
151
+ shortLabel: "equipment_short/shunt"
134
152
  },
135
153
  [
136
154
  "STATIC_VAR_COMPENSATOR"
137
155
  /* STATIC_VAR_COMPENSATOR */
138
156
  ]: {
139
157
  id: "STATIC_VAR_COMPENSATOR",
140
- label: "StaticVarCompensators"
158
+ label: "StaticVarCompensators",
159
+ tagLabel: "equipment_tag/svc",
160
+ shortLabel: "equipment_short/svc"
141
161
  },
142
162
  [
143
163
  "DANGLING_LINE"
144
164
  /* DANGLING_LINE */
145
165
  ]: {
146
166
  id: "DANGLING_LINE",
147
- label: "DanglingLines"
167
+ label: "DanglingLines",
168
+ tagLabel: "equipment_tag/danglingLine",
169
+ shortLabel: "equipment_short/danglingLine"
148
170
  },
149
171
  [
150
172
  "BUSBAR_SECTION"
151
173
  /* BUSBAR_SECTION */
152
174
  ]: {
153
175
  id: "BUSBAR_SECTION",
154
- label: "BusBarSections"
176
+ label: "BusBarSections",
177
+ tagLabel: "equipment_tag/busbarSection",
178
+ shortLabel: "equipment_short/busbarSection"
179
+ },
180
+ [
181
+ "BUS"
182
+ /* BUS */
183
+ ]: {
184
+ id: "BUS",
185
+ label: "Buses",
186
+ tagLabel: "equipment_tag/bus",
187
+ shortLabel: "equipment_short/bus"
188
+ },
189
+ [
190
+ "SWITCH"
191
+ /* SWITCH */
192
+ ]: {
193
+ id: "SWITCH",
194
+ label: "Switches",
195
+ tagLabel: "equipment_tag/switch",
196
+ shortLabel: "equipment_short/switch"
155
197
  },
156
198
  [
157
199
  "HVDC_LINE"
158
200
  /* HVDC_LINE */
159
201
  ]: {
160
202
  id: "HVDC_LINE",
161
- label: "Hvdc"
203
+ label: "Hvdc",
204
+ tagLabel: "equipment_tag/hvdcLine",
205
+ shortLabel: "equipment_short/hvdcLine"
206
+ },
207
+ [
208
+ "HVDC_CONVERTER_STATION"
209
+ /* HVDC_CONVERTER_STATION */
210
+ ]: {
211
+ id: "HVDC_CONVERTER_STATION",
212
+ label: "HvdcConverterStations",
213
+ tagLabel: "equipment_tag/hvdcStation",
214
+ shortLabel: "equipment_short/hvdcStation"
215
+ },
216
+ [
217
+ "VSC_CONVERTER_STATION"
218
+ /* VSC_CONVERTER_STATION */
219
+ ]: {
220
+ id: "VSC_CONVERTER_STATION",
221
+ label: "VscConverterStations",
222
+ tagLabel: "equipment_tag/vscConverterStation",
223
+ shortLabel: "equipment_short/vscConverterStation"
224
+ },
225
+ [
226
+ "LCC_CONVERTER_STATION"
227
+ /* LCC_CONVERTER_STATION */
228
+ ]: {
229
+ id: "LCC_CONVERTER_STATION",
230
+ label: "LccConverterStations",
231
+ tagLabel: "equipment_tag/lccConverterStation",
232
+ shortLabel: "equipment_short/lccConverterStation"
162
233
  },
163
234
  [
164
235
  "HVDC_LINE_LCC"
165
236
  /* HVDC_LINE_LCC */
166
237
  ]: {
167
238
  id: "HVDC_LINE_LCC",
168
- label: "LCC"
239
+ label: "LCC",
240
+ tagLabel: "equipment_tag/hvdcLineLcc",
241
+ shortLabel: "equipment_short/hvdcLineLcc"
169
242
  },
170
243
  [
171
244
  "HVDC_LINE_VSC"
172
245
  /* HVDC_LINE_VSC */
173
246
  ]: {
174
247
  id: "HVDC_LINE_VSC",
175
- label: "VSC"
248
+ label: "VSC",
249
+ tagLabel: "equipment_tag/hvdcLineVsc",
250
+ shortLabel: "equipment_short/hvdcLineVsc"
176
251
  }
177
252
  };
178
253
  const BASE_EQUIPMENTS = {
@@ -254,141 +329,6 @@ const BASE_EQUIPMENTS = {
254
329
  /* DANGLING_LINE */
255
330
  ]
256
331
  };
257
- const EQUIPMENT_TYPE = {
258
- [
259
- "SUBSTATION"
260
- /* SUBSTATION */
261
- ]: {
262
- name: "SUBSTATION",
263
- tagLabel: "equipment_search/substationTag"
264
- },
265
- [
266
- "VOLTAGE_LEVEL"
267
- /* VOLTAGE_LEVEL */
268
- ]: {
269
- name: "VOLTAGE_LEVEL",
270
- tagLabel: "equipment_search/voltageLevelTag"
271
- },
272
- [
273
- "LINE"
274
- /* LINE */
275
- ]: {
276
- name: "LINE",
277
- tagLabel: "equipment_search/lineTag"
278
- },
279
- [
280
- "TWO_WINDINGS_TRANSFORMER"
281
- /* TWO_WINDINGS_TRANSFORMER */
282
- ]: {
283
- name: "TWO_WINDINGS_TRANSFORMER",
284
- tagLabel: "equipment_search/2wtTag"
285
- },
286
- [
287
- "THREE_WINDINGS_TRANSFORMER"
288
- /* THREE_WINDINGS_TRANSFORMER */
289
- ]: {
290
- name: "THREE_WINDINGS_TRANSFORMER",
291
- tagLabel: "equipment_search/3wtTag"
292
- },
293
- [
294
- "HVDC_LINE_LCC"
295
- /* HVDC_LINE_LCC */
296
- ]: {
297
- name: "HVDC_LINE_LCC",
298
- tagLabel: "equipment_search/hvdcLineLccTag"
299
- },
300
- [
301
- "HVDC_LINE_VSC"
302
- /* HVDC_LINE_VSC */
303
- ]: {
304
- name: "HVDC_LINE_VSC",
305
- tagLabel: "equipment_search/hvdcLineVscTag"
306
- },
307
- [
308
- "GENERATOR"
309
- /* GENERATOR */
310
- ]: {
311
- name: "GENERATOR",
312
- tagLabel: "equipment_search/generatorTag"
313
- },
314
- [
315
- "BATTERY"
316
- /* BATTERY */
317
- ]: {
318
- name: "BATTERY",
319
- tagLabel: "equipment_search/batteryTag"
320
- },
321
- [
322
- "LOAD"
323
- /* LOAD */
324
- ]: {
325
- name: "LOAD",
326
- tagLabel: "equipment_search/loadTag"
327
- },
328
- [
329
- "SHUNT_COMPENSATOR"
330
- /* SHUNT_COMPENSATOR */
331
- ]: {
332
- name: "SHUNT_COMPENSATOR",
333
- tagLabel: "equipment_search/shuntTag"
334
- },
335
- [
336
- "DANGLING_LINE"
337
- /* DANGLING_LINE */
338
- ]: {
339
- name: "DANGLING_LINE",
340
- tagLabel: "equipment_search/lineTag"
341
- },
342
- [
343
- "STATIC_VAR_COMPENSATOR"
344
- /* STATIC_VAR_COMPENSATOR */
345
- ]: {
346
- name: "STATIC_VAR_COMPENSATOR",
347
- tagLabel: "equipment_search/svcTag"
348
- },
349
- [
350
- "HVDC_CONVERTER_STATION"
351
- /* HVDC_CONVERTER_STATION */
352
- ]: {
353
- name: "HVDC_CONVERTER_STATION",
354
- tagLabel: "equipment_search/hvdcStationTag"
355
- },
356
- [
357
- "BUSBAR_SECTION"
358
- /* BUSBAR_SECTION */
359
- ]: {
360
- name: "BUSBAR_SECTION",
361
- tagLabel: "equipment_search/busbarSectionTag"
362
- },
363
- [
364
- "BUS"
365
- /* BUS */
366
- ]: {
367
- name: "BUS",
368
- tagLabel: "equipment_search/busTag"
369
- },
370
- [
371
- "SWITCH"
372
- /* SWITCH */
373
- ]: {
374
- name: "SWITCH",
375
- tagLabel: "equipment_search/switchTag"
376
- },
377
- [
378
- "VSC_CONVERTER_STATION"
379
- /* VSC_CONVERTER_STATION */
380
- ]: {
381
- name: "VSC_CONVERTER_STATION",
382
- tagLabel: "equipment_search/vscConverterStationTag"
383
- },
384
- [
385
- "LCC_CONVERTER_STATION"
386
- /* LCC_CONVERTER_STATION */
387
- ]: {
388
- name: "LCC_CONVERTER_STATION",
389
- tagLabel: "equipment_search/lccConverterStationTag"
390
- }
391
- };
392
332
  const SEARCH_EQUIPMENTS = {
393
333
  ...BASE_EQUIPMENTS,
394
334
  [
@@ -435,7 +375,6 @@ function getEquipmentsInfosForSearchBar(equipmentsInfos, getNameOrId) {
435
375
  export {
436
376
  ALL_EQUIPMENTS,
437
377
  BASE_EQUIPMENTS,
438
- EQUIPMENT_TYPE,
439
378
  EquipmentType,
440
379
  ExtendedEquipmentType,
441
380
  HvdcType,
@@ -1,5 +1,5 @@
1
1
  import { ElementType } from "./elementType.js";
2
- import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EQUIPMENT_TYPE, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./equipmentType.js";
2
+ import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./equipmentType.js";
3
3
  import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel } from "./equipmentTypes.js";
4
4
  import { AnnouncementSeverity, ArrayAction } from "./types.js";
5
5
  import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
@@ -16,7 +16,6 @@ export {
16
16
  BusBar,
17
17
  DanglingLine,
18
18
  DistributionType,
19
- EQUIPMENT_TYPE,
20
19
  ElementType,
21
20
  EquipmentType,
22
21
  ExtendedEquipmentType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.136.1",
3
+ "version": "0.137.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",