@gridsuite/commons-ui 0.77.0 → 0.77.2

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
@@ -114,6 +114,7 @@ import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from ".
114
114
  import { usePredefinedProperties } from "./hooks/usePredefinedProperties.js";
115
115
  import { usePrevious } from "./hooks/usePrevious.js";
116
116
  import { useSnackMessage } from "./hooks/useSnackMessage.js";
117
+ import { useFormatLabelWithUnit } from "./hooks/useFormatLabelWithUnit.js";
117
118
  import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
118
119
  import { getUserToken, setCommonStore } from "./redux/commonStore.js";
119
120
  import { backendFetch, backendFetchJson, catchErrorHandler, getRequestParamFromList } from "./services/utils.js";
@@ -126,6 +127,7 @@ import { DARK_THEME, LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, LIGHT_THEME } from
126
127
  import { FetchStatus } from "./utils/constants/fetchStatus.js";
127
128
  import { FieldConstants } from "./utils/constants/fieldConstants.js";
128
129
  import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
130
+ import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./utils/constants/unitsConstants.js";
129
131
  import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
130
132
  import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
131
133
  import { getFileIcon } from "./utils/mapper/getFileIcon.js";
@@ -181,6 +183,7 @@ import { exportParamsFr } from "./translations/fr/external/exportParamsFr.js";
181
183
  import { importParamsFr } from "./translations/fr/external/importParamsFr.js";
182
184
  import * as yup from "yup";
183
185
  export {
186
+ AMPERE,
184
187
  AboutDialog,
185
188
  AddButton,
186
189
  AuthenticationRouter,
@@ -217,6 +220,7 @@ export {
217
220
  DEFAULT_HEADER_HEIGHT,
218
221
  DEFAULT_RANGE_VALUE,
219
222
  DEFAULT_ROW_HEIGHT,
223
+ DEGREE,
220
224
  DISTRIBUTION_KEY,
221
225
  DanglingLine,
222
226
  DataType,
@@ -263,6 +267,9 @@ export {
263
267
  Hvdc,
264
268
  InputWithPopupConfirmation,
265
269
  IntegerInput,
270
+ KILO_AMPERE,
271
+ KILO_METER,
272
+ KILO_VOLT,
266
273
  KeyedColumnsRowIndexer,
267
274
  LANG_ENGLISH,
268
275
  LANG_FRENCH,
@@ -277,6 +284,10 @@ export {
277
284
  LogoText,
278
285
  Logout,
279
286
  MAX_CHAR_DESCRIPTION,
287
+ MEGA_VAR,
288
+ MEGA_VOLT_AMPERE,
289
+ MEGA_WATT,
290
+ MICRO_SIEMENS,
280
291
  MODIFICATION_TYPES,
281
292
  MidFormError,
282
293
  ModificationType,
@@ -290,10 +301,12 @@ export {
290
301
  NotificationsContext,
291
302
  NotificationsProvider,
292
303
  NumericEditor,
304
+ OHM,
293
305
  OPERATOR_OPTIONS,
294
306
  OperatingStatus,
295
307
  OperatorType,
296
308
  OverflowableText,
309
+ PERCENTAGE,
297
310
  PHASE_REGULATION_MODE_OPTIONS,
298
311
  PopupConfirmationDialog,
299
312
  PropertyValueEditor,
@@ -310,6 +323,7 @@ export {
310
323
  RuleValueEditor,
311
324
  SHOW_AUTH_INFO_LOGIN,
312
325
  SHUNT_COMPENSATOR_TYPE_OPTIONS,
326
+ SIEMENS,
313
327
  SIGNIN_CALLBACK_ERROR,
314
328
  SVAR_REGULATION_MODE_OPTIONS,
315
329
  SVC,
@@ -483,6 +497,7 @@ export {
483
497
  useCustomFormContext,
484
498
  useDebounce,
485
499
  useElementSearch,
500
+ useFormatLabelWithUnit,
486
501
  useIntlRef,
487
502
  useListenerManager,
488
503
  useLocalizedCountries,
@@ -4,51 +4,51 @@ const filterExpertEn = {
4
4
  energySource: "Energy source",
5
5
  country: "Country",
6
6
  voltageRegulatorOn: "Voltage regulation",
7
- PlannedActivePowerSetPoint: "Planning active power set point (MW)",
8
- minP: "Minimum active power (MW)",
9
- maxP: "Maximum active power (MW)",
10
- targetP: "Active power target (MW)",
11
- targetV: "Voltage target (kV)",
12
- targetQ: "Reactive power target (MVar)",
7
+ PlannedActivePowerSetPoint: "Planning active power set point",
8
+ minP: "Minimum active power",
9
+ maxP: "Maximum active power",
10
+ targetP: "Active power target",
11
+ targetV: "Voltage target",
12
+ targetQ: "Reactive power target",
13
13
  connected: "Connected",
14
14
  maximumSectionCount: "Maximum number of sections",
15
15
  sectionCount: "Current number of sections",
16
16
  shuntCompensatorType: "Type",
17
17
  Capacitor: "Capacitor",
18
18
  Reactor: "Reactor",
19
- maxQAtNominalV: "Available Qmax at nominal voltage (MVar)",
20
- SwitchedOnMaxQAtNominalV: "Switch-on Q at nominal voltage (MVar)",
21
- maxSusceptance: "Maximum available susceptance (S)",
22
- SwitchedOnMaxSusceptance: "Switch-on susceptance (S)",
23
- ratedS: "Rated nominal power (MVA)",
24
- ratedS1: "Rated nominal power side 1 (MVA)",
25
- ratedS2: "Rated nominal power side 2 (MVA)",
26
- ratedS3: "Rated nominal power side 3 (MVA)",
19
+ maxQAtNominalV: "Available Qmax at nominal voltage",
20
+ SwitchedOnMaxQAtNominalV: "Switch-on Q at nominal voltage",
21
+ maxSusceptance: "Maximum available susceptance",
22
+ SwitchedOnMaxSusceptance: "Switch-on susceptance",
23
+ ratedS: "Rated nominal power",
24
+ ratedS1: "Rated nominal power side 1",
25
+ ratedS2: "Rated nominal power side 2",
26
+ ratedS3: "Rated nominal power side 3",
27
27
  marginalCost: "Cost",
28
28
  plannedOutageRate: "Planning outage rate",
29
29
  forcedOutageRate: "Forced outage rate",
30
30
  vlId: "Voltage level ID",
31
- p0: "Constant P (MW)",
32
- q0: "Constant Q (MVar)",
31
+ p0: "Constant P",
32
+ q0: "Constant Q",
33
33
  loadTapChangingCapabilities: "Ratio tap changer on-load",
34
34
  loadTapChangingCapabilities1: "Ratio tap changer 1 on-load",
35
35
  loadTapChangingCapabilities2: "Ratio tap changer 2 on-load",
36
36
  loadTapChangingCapabilities3: "Ratio tap changer 3 on-load",
37
- ratioTargetV: "Ratio tap changer voltage set point (kV)",
38
- ratioTargetV1: "Ratio tap changer 1 voltage set point (kV)",
39
- ratioTargetV2: "Ratio tap changer 2 voltage set point (kV)",
40
- ratioTargetV3: "Ratio tap changer 3 voltage set point (kV)",
41
- magnetizingConductance: "Magnetizing conductance (μS)",
42
- magnetizingConductance1: "Magnetizing conductance side 1 (μS)",
43
- magnetizingConductance2: "Magnetizing conductance side 2 (μS)",
44
- magnetizingConductance3: "Magnetizing conductance side 3 (μS)",
45
- magnetizingSusceptance: "Magnetizing susceptance (μS)",
46
- magnetizingSusceptance1: "Magnetizing susceptance side 1 (μS)",
47
- magnetizingSusceptance2: "Magnetizing susceptance side 2 (μS)",
48
- magnetizingSusceptance3: "Magnetizing susceptance side 3 (μS)",
49
- vlNominalVoltage: "Voltage level nominal voltage (kV)",
50
- lowVoltageLimit: "Low voltage limit (kV)",
51
- highVoltageLimit: "High voltage limit (kV)",
37
+ ratioTargetV: "Ratio tap changer voltage set point",
38
+ ratioTargetV1: "Ratio tap changer 1 voltage set point",
39
+ ratioTargetV2: "Ratio tap changer 2 voltage set point",
40
+ ratioTargetV3: "Ratio tap changer 3 voltage set point",
41
+ magnetizingConductance: "Magnetizing conductance",
42
+ magnetizingConductance1: "Magnetizing conductance side 1",
43
+ magnetizingConductance2: "Magnetizing conductance side 2",
44
+ magnetizingConductance3: "Magnetizing conductance side 3",
45
+ magnetizingSusceptance: "Magnetizing susceptance",
46
+ magnetizingSusceptance1: "Magnetizing susceptance side 1",
47
+ magnetizingSusceptance2: "Magnetizing susceptance side 2",
48
+ magnetizingSusceptance3: "Magnetizing susceptance side 3",
49
+ vlNominalVoltage: "Voltage level nominal voltage",
50
+ lowVoltageLimit: "Low voltage limit",
51
+ highVoltageLimit: "High voltage limit",
52
52
  selectFilterDialogTitle: "Choose a filter",
53
53
  filter: "Filter",
54
54
  loadType: "Type",
@@ -88,20 +88,20 @@ const filterExpertEn = {
88
88
  substationProperty2: "Substation property 2",
89
89
  substationProperty1Twt: "Substation property 1",
90
90
  substationProperty2Twt: "Substation property 2",
91
- ratedVoltage1KV: "Rated Voltage 1 (kV)",
92
- ratedVoltage2KV: "Rated Voltage 2 (kV)",
93
- ratedVoltage0KVTwt: "Rated Voltage 0 (kV)",
94
- ratedVoltage1KVTwt: "Rated Voltage 1 (kV)",
95
- ratedVoltage2KVTwt: "Rated Voltage 2 (kV)",
96
- ratedVoltage3KVTwt: "Rated Voltage 3 (kV)",
91
+ ratedVoltage1KV: "Rated Voltage 1",
92
+ ratedVoltage2KV: "Rated Voltage 2",
93
+ ratedVoltage0KVTwt: "Rated Voltage 0",
94
+ ratedVoltage1KVTwt: "Rated Voltage 1",
95
+ ratedVoltage2KVTwt: "Rated Voltage 2",
96
+ ratedVoltage3KVTwt: "Rated Voltage 3",
97
97
  nominalVoltage1: "Nominal Voltage 1",
98
98
  nominalVoltage2: "Nominal Voltage 2",
99
99
  nominalVoltage3: "Nominal Voltage 3",
100
- nominalVoltage1KV: "Nominal Voltage 1 (kV)",
101
- nominalVoltage2KV: "Nominal Voltage 2 (kV)",
102
- nominalVoltage1KVTwt: "Nominal Voltage 1 (kV)",
103
- nominalVoltage2KVTwt: "Nominal Voltage 2 (kV)",
104
- nominalVoltage3KVTwt: "Nominal Voltage 3 (kV)",
100
+ nominalVoltage1KV: "Nominal Voltage 1",
101
+ nominalVoltage2KV: "Nominal Voltage 2",
102
+ nominalVoltage1KVTwt: "Nominal Voltage 1",
103
+ nominalVoltage2KVTwt: "Nominal Voltage 2",
104
+ nominalVoltage3KVTwt: "Nominal Voltage 3",
105
105
  voltageLevelId1: "Voltage level ID 1",
106
106
  voltageLevelId2: "Voltage level ID 2",
107
107
  voltageLevelId1Twt: "Voltage level ID 1",
@@ -118,18 +118,18 @@ const filterExpertEn = {
118
118
  voltageLevelProperty1Twt: "Voltage level property 1",
119
119
  voltageLevelProperty2Twt: "Voltage level property 2",
120
120
  voltageLevelProperty3Twt: "Voltage level property 3",
121
- "maxQAtNominalV.svar": "Q max at nominal voltage (MVar)",
122
- "minQAtNominalV.svar": "Q min at nominal voltage (MVar)",
123
- "fixQAtNominalV.svar": "Fixed part of Q at nominal voltage (MVar)",
124
- "maxSusceptance.svar": "Susceptance max (S)",
125
- "minSusceptance.svar": "Susceptance min (S)",
121
+ "maxQAtNominalV.svar": "Q max at nominal voltage",
122
+ "minQAtNominalV.svar": "Q min at nominal voltage",
123
+ "fixQAtNominalV.svar": "Fixed part of Q at nominal voltage",
124
+ "maxSusceptance.svar": "Susceptance max",
125
+ "minSusceptance.svar": "Susceptance min",
126
126
  regulationMode: "Regulation mode",
127
127
  "regulationMode.off": "Off",
128
128
  "regulationMode.voltage": "Voltage regulation",
129
129
  "regulationMode.reactivePower": "Reactive power regulation",
130
130
  voltageSetPoint: "Voltage set point",
131
- activePowerSetPoint: "Active power set point (MW)",
132
- reactivePowerSetPoint: "Reactive power set point (MVar)",
131
+ activePowerSetPoint: "Active power set point",
132
+ reactivePowerSetPoint: "Reactive power set point",
133
133
  remoteRegulatedTerminal: "Remote regulated terminal",
134
134
  regulatingTerminalVLId: "Voltage Level ID",
135
135
  regulatingTerminalConnectableId: "Equipment ID",
@@ -137,36 +137,36 @@ const filterExpertEn = {
137
137
  "regulationType.distant": "Remote regulation",
138
138
  "regulationType.local": "Local regulation",
139
139
  automate: "Automaton",
140
- lowVoltageSetPoint: "Low voltage set point ",
140
+ lowVoltageSetPoint: "Low voltage set point",
141
141
  highVoltageSetPoint: "High voltage set point",
142
142
  lowVoltageThreshold: "Low voltage threshold",
143
143
  highVoltageThreshold: "High voltage threshold",
144
- susceptanceFix: "Fixed part of susceptance ",
144
+ susceptanceFix: "Fixed part of susceptance",
145
145
  paired: "Paired",
146
146
  converterStationId1: "Converter station 1 ID",
147
147
  converterStationId2: "Converter station 2 ID",
148
148
  convertersMode: "Converters mode",
149
149
  side1RectifierSide2Inverter: "Flow (Side1->Side2)",
150
150
  side1InverterSide2Rectifier: "Flow (Side2->Side1)",
151
- dcNominalVoltage: "DC nominal voltage (kV)",
152
- converterStationNominalVoltage1: "Converter station 1 nominal voltage (kV)",
153
- converterStationNominalVoltage2: "Converter station 2 nominal voltage (kV)",
151
+ dcNominalVoltage: "DC nominal voltage",
152
+ converterStationNominalVoltage1: "Converter station 1 nominal voltage",
153
+ converterStationNominalVoltage2: "Converter station 2 nominal voltage",
154
154
  country1: "Country 1",
155
155
  country2: "Country 2",
156
- seriesResistance: "Series resistance (Ω)",
157
- seriesResistance1: "Series resistance 1 (Ω)",
158
- seriesResistance2: "Series resistance 2 (Ω)",
159
- seriesResistance3: "Series resistance 3 (Ω)",
160
- seriesReactance: "Series reactance (Ω)",
161
- seriesReactance1: "Series reactance 1 (Ω)",
162
- seriesReactance2: "Series reactance 2 (Ω)",
163
- seriesReactance3: "Series reactance 3 (Ω)",
164
- shuntConductance: "Shunt conductance (μS)",
165
- shuntSusceptance: "Shunt susceptance (μS)",
166
- shuntConductance1: "Shunt conductance 1 (μS)",
167
- shuntSusceptance1: "Shunt susceptance 1 (μS)",
168
- shuntConductance2: "Shunt conductance 2 (μS)",
169
- shuntSusceptance2: "Shunt susceptance 2 (μS)",
156
+ seriesResistance: "Series resistance",
157
+ seriesResistance1: "Series resistance 1",
158
+ seriesResistance2: "Series resistance 2",
159
+ seriesResistance3: "Series resistance 3",
160
+ seriesReactance: "Series reactance",
161
+ seriesReactance1: "Series reactance 1",
162
+ seriesReactance2: "Series reactance 2",
163
+ seriesReactance3: "Series reactance 3",
164
+ shuntConductance: "Shunt conductance",
165
+ shuntSusceptance: "Shunt susceptance",
166
+ shuntConductance1: "Shunt conductance 1",
167
+ shuntSusceptance1: "Shunt susceptance 1",
168
+ shuntConductance2: "Shunt conductance 2",
169
+ shuntSusceptance2: "Shunt susceptance 2",
170
170
  pairingKey: "Xnode",
171
171
  tieLineId: "Tie line ID",
172
172
  cannotRetrieveFilter: "Could not retrieve filter: ",
@@ -179,8 +179,8 @@ const filterExpertEn = {
179
179
  YupNotTypeNumber: "This field only accepts numeric values",
180
180
  YupNotTypeDefault: "Field value format is incorrect",
181
181
  changeOperatorMessage: "The operator will be changed and will be applied to all the rules already created in the group.",
182
- lowShortCircuitCurrentLimit: "Low short-circuit current limit (kA)",
183
- highShortCircuitCurrentLimit: "High short-circuit current limit (kA)"
182
+ lowShortCircuitCurrentLimit: "Low short-circuit current limit",
183
+ highShortCircuitCurrentLimit: "High short-circuit current limit"
184
184
  };
185
185
  export {
186
186
  filterExpertEn
@@ -4,51 +4,51 @@ const filterExpertFr = {
4
4
  energySource: "Source d'énergie",
5
5
  country: "Pays",
6
6
  voltageRegulatorOn: "Réglage de tension",
7
- PlannedActivePowerSetPoint: "Puissance imposée (MW)",
8
- minP: "Puissance active min (MW)",
9
- maxP: "Puissance active max (MW)",
10
- targetP: "Consigne puissance active (MW)",
11
- targetV: "Consigne tension (kV)",
12
- targetQ: "Consigne puissance réactive (MVar)",
7
+ PlannedActivePowerSetPoint: "Puissance imposée",
8
+ minP: "Puissance active min",
9
+ maxP: "Puissance active max",
10
+ targetP: "Consigne puissance active",
11
+ targetV: "Consigne tension",
12
+ targetQ: "Consigne puissance réactive",
13
13
  connected: "Connecté",
14
14
  maximumSectionCount: "Nombre de gradins",
15
15
  sectionCount: "Gradin courant",
16
16
  shuntCompensatorType: "Type",
17
17
  Capacitor: "Condensateur",
18
18
  Reactor: "Réactance",
19
- maxQAtNominalV: "Q installée à tension nominale (MVar)",
20
- SwitchedOnMaxQAtNominalV: "Q enclenchée à tension nominale (MVar)",
21
- maxSusceptance: "Susceptance installée (S)",
22
- SwitchedOnMaxSusceptance: "Susceptance enclenchée (S)",
23
- ratedS: "Puissance nominale (MVA)",
24
- ratedS1: "Puissance nominale côté 1 (MVA)",
25
- ratedS2: "Puissance nominale côté 2 (MVA)",
26
- ratedS3: "Puissance nominale côté 3 (MVA)",
19
+ maxQAtNominalV: "Q installée à tension nominale",
20
+ SwitchedOnMaxQAtNominalV: "Q enclenchée à tension nominale",
21
+ maxSusceptance: "Susceptance installée",
22
+ SwitchedOnMaxSusceptance: "Susceptance enclenchée",
23
+ ratedS: "Puissance nominale",
24
+ ratedS1: "Puissance nominale côté 1",
25
+ ratedS2: "Puissance nominale côté 2",
26
+ ratedS3: "Puissance nominale côté 3",
27
27
  marginalCost: "Coût",
28
28
  plannedOutageRate: "Indisponibilité programmée",
29
29
  forcedOutageRate: "Indisponibilité fortuite",
30
30
  vlId: "ID de poste",
31
- p0: "P constant (MW)",
32
- q0: "Q constant (MVar)",
31
+ p0: "P constant",
32
+ q0: "Q constant",
33
33
  loadTapChangingCapabilities: "Régleur en charge",
34
34
  loadTapChangingCapabilities1: "Régleur 1 en charge",
35
35
  loadTapChangingCapabilities2: "Régleur 2 en charge",
36
36
  loadTapChangingCapabilities3: "Régleur 3 en charge",
37
- ratioTargetV: "Tension de consigne du régleur (kV)",
38
- ratioTargetV1: "Tension de consigne du régleur 1 (kV)",
39
- ratioTargetV2: "Tension de consigne du régleur 2 (kV)",
40
- ratioTargetV3: "Tension de consigne du régleur 3 (kV)",
41
- magnetizingConductance: "Conductance magnétisante (μS)",
42
- magnetizingConductance1: "Conductance magnétisante côté 1 (μS)",
43
- magnetizingConductance2: "Conductance magnétisante côté 2 (μS)",
44
- magnetizingConductance3: "Conductance magnétisante côté 3 (μS)",
45
- magnetizingSusceptance: "Susceptance magnétisante (μS)",
46
- magnetizingSusceptance1: "Susceptance magnétisante côté 1 (μS)",
47
- magnetizingSusceptance2: "Susceptance magnétisante côté 2 (μS)",
48
- magnetizingSusceptance3: "Susceptance magnétisante côté 3 (μS)",
49
- vlNominalVoltage: "Tension nominale poste (kV)",
50
- lowVoltageLimit: "Limite tension basse (kV)",
51
- highVoltageLimit: "Limite tension haute (kV)",
37
+ ratioTargetV: "Tension de consigne du régleur",
38
+ ratioTargetV1: "Tension de consigne du régleur 1",
39
+ ratioTargetV2: "Tension de consigne du régleur 2",
40
+ ratioTargetV3: "Tension de consigne du régleur 3",
41
+ magnetizingConductance: "Conductance magnétisante",
42
+ magnetizingConductance1: "Conductance magnétisante côté 1",
43
+ magnetizingConductance2: "Conductance magnétisante côté 2",
44
+ magnetizingConductance3: "Conductance magnétisante côté 3",
45
+ magnetizingSusceptance: "Susceptance magnétisante",
46
+ magnetizingSusceptance1: "Susceptance magnétisante côté 1",
47
+ magnetizingSusceptance2: "Susceptance magnétisante côté 2",
48
+ magnetizingSusceptance3: "Susceptance magnétisante côté 3",
49
+ vlNominalVoltage: "Tension nominale poste",
50
+ lowVoltageLimit: "Limite tension basse",
51
+ highVoltageLimit: "Limite tension haute",
52
52
  selectFilterDialogTitle: "Choisir un filtre",
53
53
  filter: "Filtre",
54
54
  loadType: "Type",
@@ -88,12 +88,12 @@ const filterExpertFr = {
88
88
  substationProperty2: "Propriété site 2",
89
89
  substationProperty1Twt: "Propriété site 1",
90
90
  substationProperty2Twt: "Propriété site 2",
91
- ratedVoltage1KV: "Tension d'enroulement 1 (kV)",
92
- ratedVoltage2KV: "Tension d'enroulement 2 (kV)",
93
- ratedVoltage0KVTwt: "Tension d'enroulement 0 (kV)",
94
- ratedVoltage1KVTwt: "Tension d'enroulement 1 (kV)",
95
- ratedVoltage2KVTwt: "Tension d'enroulement 2 (kV)",
96
- ratedVoltage3KVTwt: "Tension d'enroulement 3 (kV)",
91
+ ratedVoltage1KV: "Tension d'enroulement 1",
92
+ ratedVoltage2KV: "Tension d'enroulement 2",
93
+ ratedVoltage0KVTwt: "Tension d'enroulement 0",
94
+ ratedVoltage1KVTwt: "Tension d'enroulement 1",
95
+ ratedVoltage2KVTwt: "Tension d'enroulement 2",
96
+ ratedVoltage3KVTwt: "Tension d'enroulement 3",
97
97
  nominalVoltage1: "Tension nominale 1",
98
98
  nominalVoltage2: "Tension nominale 2",
99
99
  nominalVoltage3: "Tension nominale 3",
@@ -107,29 +107,29 @@ const filterExpertFr = {
107
107
  terminal1ConnectedTwt: "Connecté 1",
108
108
  terminal2ConnectedTwt: "Connecté 2",
109
109
  terminal3ConnectedTwt: "Connecté 3",
110
- nominalVoltage1KV: "Tension nominale 1 (kV)",
111
- nominalVoltage2KV: "Tension nominale 2 (kV)",
112
- nominalVoltage1KVTwt: "Tension nominale 1 (kV)",
113
- nominalVoltage2KVTwt: "Tension nominale 2 (kV)",
114
- nominalVoltage3KVTwt: "Tension nominale 3 (kV)",
110
+ nominalVoltage1KV: "Tension nominale 1",
111
+ nominalVoltage2KV: "Tension nominale 2",
112
+ nominalVoltage1KVTwt: "Tension nominale 1",
113
+ nominalVoltage2KVTwt: "Tension nominale 2",
114
+ nominalVoltage3KVTwt: "Tension nominale 3",
115
115
  voltageLevelProperty: "Propriété poste",
116
116
  voltageLevelProperty1: "Propriété poste 1",
117
117
  voltageLevelProperty2: "Propriété poste 2",
118
118
  voltageLevelProperty1Twt: "Propriété poste 1",
119
119
  voltageLevelProperty2Twt: "Propriété poste 2",
120
120
  voltageLevelProperty3Twt: "Propriété poste 3",
121
- "maxQAtNominalV.svar": "Q max à tension nominale (MVar)",
122
- "minQAtNominalV.svar": "Q min à tension nominale (MVar)",
123
- "fixQAtNominalV.svar": "Q fixe à tension nominale (MVar)",
124
- "maxSusceptance.svar": "Susceptance max (S)",
125
- "minSusceptance.svar": "Susceptance min (S)",
121
+ "maxQAtNominalV.svar": "Q max à tension nominale",
122
+ "minQAtNominalV.svar": "Q min à tension nominale",
123
+ "fixQAtNominalV.svar": "Q fixe à tension nominale",
124
+ "maxSusceptance.svar": "Susceptance max",
125
+ "minSusceptance.svar": "Susceptance min",
126
126
  regulationMode: "Mode de réglage",
127
127
  "regulationMode.off": "Arrêt",
128
128
  "regulationMode.voltage": "Réglage de tension",
129
129
  "regulationMode.reactivePower": "Réglage du réactif",
130
130
  voltageSetPoint: "Tension",
131
- activePowerSetPoint: "Consigne de puissance active (MW)",
132
- reactivePowerSetPoint: "Consigne de puissance réactive (MVar)",
131
+ activePowerSetPoint: "Consigne de puissance active",
132
+ reactivePowerSetPoint: "Consigne de puissance réactive",
133
133
  remoteRegulatedTerminal: "Terminal distant réglé",
134
134
  regulatingTerminalVLId: "ID de poste",
135
135
  regulatingTerminalConnectableId: "ID d'ouvrage",
@@ -148,25 +148,25 @@ const filterExpertFr = {
148
148
  convertersMode: "Mode de conversion",
149
149
  side1RectifierSide2Inverter: "Flux (1->2)",
150
150
  side1InverterSide2Rectifier: "Flux (2->1)",
151
- dcNominalVoltage: "Tension nominale DC (kV)",
152
- converterStationNominalVoltage1: "Tension nominale de la station de conversion 1 (kV)",
153
- converterStationNominalVoltage2: "Tension nominale de la station de conversion 2 (kV)",
151
+ dcNominalVoltage: "Tension nominale DC",
152
+ converterStationNominalVoltage1: "Tension nominale de la station de conversion 1",
153
+ converterStationNominalVoltage2: "Tension nominale de la station de conversion 2",
154
154
  country1: "Pays 1",
155
155
  country2: "Pays 2",
156
- seriesResistance: "Résistance série (Ω)",
157
- seriesResistance1: "Résistance série 1 (Ω)",
158
- seriesResistance2: "Résistance série 2 (Ω)",
159
- seriesResistance3: "Résistance série 3 (Ω)",
160
- seriesReactance: "Réactance série (Ω)",
161
- seriesReactance1: "Réactance série 1 (Ω)",
162
- seriesReactance2: "Réactance série 2 (Ω)",
163
- seriesReactance3: "Réactance série 3 (Ω)",
164
- shuntConductance: "Conductance parallèle (μS)",
165
- shuntSusceptance: "Susceptance parallèle (μS)",
166
- shuntConductance1: "Conductance parallèle 1 (μS)",
167
- shuntSusceptance1: "Susceptance parallèle 1 (μS)",
168
- shuntConductance2: "Conductance parallèle 2 (μS)",
169
- shuntSusceptance2: "Susceptance parallèle 2 (μS)",
156
+ seriesResistance: "Résistance série",
157
+ seriesResistance1: "Résistance série 1",
158
+ seriesResistance2: "Résistance série 2",
159
+ seriesResistance3: "Résistance série 3",
160
+ seriesReactance: "Réactance série",
161
+ seriesReactance1: "Réactance série 1",
162
+ seriesReactance2: "Réactance série 2",
163
+ seriesReactance3: "Réactance série 3",
164
+ shuntConductance: "Conductance parallèle",
165
+ shuntSusceptance: "Susceptance parallèle",
166
+ shuntConductance1: "Conductance parallèle 1",
167
+ shuntSusceptance1: "Susceptance parallèle 1",
168
+ shuntConductance2: "Conductance parallèle 2",
169
+ shuntSusceptance2: "Susceptance parallèle 2",
170
170
  pairingKey: "Xnode",
171
171
  tieLineId: "ID de l'interconnexion",
172
172
  cannotRetrieveFilter: "Erreur d'accès au filtre : ",
@@ -179,8 +179,8 @@ const filterExpertFr = {
179
179
  YupNotTypeNumber: "Ce champ n'accepte que des valeurs numériques",
180
180
  YupNotTypeDefault: "La valeur du champ n'est pas au bon format",
181
181
  changeOperatorMessage: "L'opérateur sera modifié et s'appliquera sur toutes les règles déjà créées dans le groupe.",
182
- lowShortCircuitCurrentLimit: "Limite ICC min (kA)",
183
- highShortCircuitCurrentLimit: "Limite ICC max (kA)"
182
+ lowShortCircuitCurrentLimit: "Limite ICC min",
183
+ highShortCircuitCurrentLimit: "Limite ICC max"
184
184
  };
185
185
  export {
186
186
  filterExpertFr
@@ -8,3 +8,4 @@ export * from './browserConstants';
8
8
  export * from './fetchStatus';
9
9
  export * from './fieldConstants';
10
10
  export * from './uiConstants';
11
+ export * from './unitsConstants';
@@ -2,13 +2,26 @@ import { DARK_THEME, LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, LIGHT_THEME } from
2
2
  import { FetchStatus } from "./fetchStatus.js";
3
3
  import { FieldConstants } from "./fieldConstants.js";
4
4
  import { MAX_CHAR_DESCRIPTION } from "./uiConstants.js";
5
+ import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./unitsConstants.js";
5
6
  export {
7
+ AMPERE,
6
8
  DARK_THEME,
9
+ DEGREE,
7
10
  FetchStatus,
8
11
  FieldConstants,
12
+ KILO_AMPERE,
13
+ KILO_METER,
14
+ KILO_VOLT,
9
15
  LANG_ENGLISH,
10
16
  LANG_FRENCH,
11
17
  LANG_SYSTEM,
12
18
  LIGHT_THEME,
13
- MAX_CHAR_DESCRIPTION
19
+ MAX_CHAR_DESCRIPTION,
20
+ MEGA_VAR,
21
+ MEGA_VOLT_AMPERE,
22
+ MEGA_WATT,
23
+ MICRO_SIEMENS,
24
+ OHM,
25
+ PERCENTAGE,
26
+ SIEMENS
14
27
  };
@@ -0,0 +1,18 @@
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 MICRO_SIEMENS = "\u00B5S";
8
+ export declare const SIEMENS = "S";
9
+ export declare const AMPERE = "A";
10
+ export declare const KILO_AMPERE = "kA";
11
+ export declare const MEGA_VAR = "MVar";
12
+ export declare const MEGA_VOLT_AMPERE = "MVA";
13
+ export declare const OHM = "\u03A9";
14
+ export declare const MEGA_WATT = "MW";
15
+ export declare const KILO_VOLT = "kV";
16
+ export declare const KILO_METER = "km";
17
+ export declare const PERCENTAGE = "%";
18
+ export declare const DEGREE = "\u00B0";
@@ -0,0 +1,26 @@
1
+ const MICRO_SIEMENS = "µS";
2
+ const SIEMENS = "S";
3
+ const AMPERE = "A";
4
+ const KILO_AMPERE = "kA";
5
+ const MEGA_VAR = "MVar";
6
+ const MEGA_VOLT_AMPERE = "MVA";
7
+ const OHM = "Ω";
8
+ const MEGA_WATT = "MW";
9
+ const KILO_VOLT = "kV";
10
+ const KILO_METER = "km";
11
+ const PERCENTAGE = "%";
12
+ const DEGREE = "°";
13
+ export {
14
+ AMPERE,
15
+ DEGREE,
16
+ KILO_AMPERE,
17
+ KILO_METER,
18
+ KILO_VOLT,
19
+ MEGA_VAR,
20
+ MEGA_VOLT_AMPERE,
21
+ MEGA_WATT,
22
+ MICRO_SIEMENS,
23
+ OHM,
24
+ PERCENTAGE,
25
+ SIEMENS
26
+ };
@@ -3,6 +3,7 @@ import { DARK_THEME, LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, LIGHT_THEME } from
3
3
  import { FetchStatus } from "./constants/fetchStatus.js";
4
4
  import { FieldConstants } from "./constants/fieldConstants.js";
5
5
  import { MAX_CHAR_DESCRIPTION } from "./constants/uiConstants.js";
6
+ import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./constants/unitsConstants.js";
6
7
  import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
7
8
  import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./functions.js";
8
9
  import { getFileIcon } from "./mapper/getFileIcon.js";
@@ -16,9 +17,11 @@ import { FieldType } from "./types/fieldType.js";
16
17
  import "./yupConfig.js";
17
18
  import * as yup from "yup";
18
19
  export {
20
+ AMPERE,
19
21
  Battery,
20
22
  BusBar,
21
23
  DARK_THEME,
24
+ DEGREE,
22
25
  DanglingLine,
23
26
  EQUIPMENT_TYPE,
24
27
  ElementType,
@@ -29,6 +32,9 @@ export {
29
32
  GRIDSUITE_DEFAULT_PRECISION,
30
33
  Generator,
31
34
  Hvdc,
35
+ KILO_AMPERE,
36
+ KILO_METER,
37
+ KILO_VOLT,
32
38
  LANG_ENGLISH,
33
39
  LANG_FRENCH,
34
40
  LANG_SYSTEM,
@@ -37,9 +43,16 @@ export {
37
43
  Line,
38
44
  Load,
39
45
  MAX_CHAR_DESCRIPTION,
46
+ MEGA_VAR,
47
+ MEGA_VOLT_AMPERE,
48
+ MEGA_WATT,
49
+ MICRO_SIEMENS,
40
50
  MODIFICATION_TYPES,
41
51
  ModificationType,
52
+ OHM,
42
53
  OperatingStatus,
54
+ PERCENTAGE,
55
+ SIEMENS,
43
56
  SVC,
44
57
  ShuntCompensator,
45
58
  Substation,
@@ -7,7 +7,7 @@
7
7
  export declare enum FieldType {
8
8
  ID = "ID",
9
9
  NAME = "NAME",
10
- PROPERTY = "PROPERTY",
10
+ FREE_PROPERTIES = "FREE_PROPERTIES",
11
11
  NOMINAL_VOLTAGE = "NOMINAL_VOLTAGE",
12
12
  MIN_P = "MIN_P",
13
13
  MAX_P = "MAX_P",
@@ -107,14 +107,13 @@ export declare enum FieldType {
107
107
  PHASE_REGULATION_VALUE_1 = "PHASE_REGULATION_VALUE_1",
108
108
  PHASE_REGULATION_VALUE_2 = "PHASE_REGULATION_VALUE_2",
109
109
  PHASE_REGULATION_VALUE_3 = "PHASE_REGULATION_VALUE_3",
110
- FREE_PROPERTIES = "FREE_PROPERTIES",
111
- SUBSTATION_PROPERTY = "SUBSTATION_PROPERTY",
112
- SUBSTATION_PROPERTY_1 = "SUBSTATION_PROPERTY_1",
113
- SUBSTATION_PROPERTY_2 = "SUBSTATION_PROPERTY_2",
114
- VOLTAGE_LEVEL_PROPERTY = "VOLTAGE_LEVEL_PROPERTY",
115
- VOLTAGE_LEVEL_PROPERTY_1 = "VOLTAGE_LEVEL_PROPERTY_1",
116
- VOLTAGE_LEVEL_PROPERTY_2 = "VOLTAGE_LEVEL_PROPERTY_2",
117
- VOLTAGE_LEVEL_PROPERTY_3 = "VOLTAGE_LEVEL_PROPERTY_3",
110
+ SUBSTATION_PROPERTIES = "SUBSTATION_PROPERTIES",
111
+ SUBSTATION_PROPERTIES_1 = "SUBSTATION_PROPERTIES_1",
112
+ SUBSTATION_PROPERTIES_2 = "SUBSTATION_PROPERTIES_2",
113
+ VOLTAGE_LEVEL_PROPERTIES = "VOLTAGE_LEVEL_PROPERTIES",
114
+ VOLTAGE_LEVEL_PROPERTIES_1 = "VOLTAGE_LEVEL_PROPERTIES_1",
115
+ VOLTAGE_LEVEL_PROPERTIES_2 = "VOLTAGE_LEVEL_PROPERTIES_2",
116
+ VOLTAGE_LEVEL_PROPERTIES_3 = "VOLTAGE_LEVEL_PROPERTIES_3",
118
117
  SVAR_REGULATION_MODE = "SVAR_REGULATION_MODE",
119
118
  VOLTAGE_SET_POINT = "VOLTAGE_SET_POINT",
120
119
  ACTIVE_POWER_SET_POINT = "ACTIVE_POWER_SET_POINT",