@gridsuite/commons-ui 0.256.0 → 0.257.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/filter/FilterCreationDialog.js +6 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +3 -2
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +2 -1
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -2
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +5 -5
- package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -1
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -2
- package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +3 -2
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +4 -3
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +5 -4
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +7 -6
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +7 -6
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -9
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +6 -5
- package/dist/features/parameters/common/limitreductions/columns-definitions.js +3 -2
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/security-analysis/columns-definitions.js +4 -3
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
- package/dist/hooks/use-unique-name-validation.js +3 -2
- package/dist/index.js +27 -1
- package/dist/translations/en/descriptionEn.d.ts +0 -6
- package/dist/translations/en/descriptionEn.js +6 -1
- package/dist/translations/en/filterEn.d.ts +0 -2
- package/dist/translations/en/filterEn.js +0 -2
- package/dist/translations/en/generic-validationEn.d.ts +23 -0
- package/dist/translations/en/generic-validationEn.js +25 -0
- package/dist/translations/en/index.d.ts +2 -0
- package/dist/translations/en/index.js +4 -0
- package/dist/translations/en/network-modification-validationEn.d.ts +23 -0
- package/dist/translations/en/network-modification-validationEn.js +31 -0
- package/dist/translations/en/networkModificationsEn.d.ts +6 -33
- package/dist/translations/en/networkModificationsEn.js +0 -38
- package/dist/translations/en/parameters.d.ts +0 -2
- package/dist/translations/en/parameters.js +0 -2
- package/dist/translations/en/use-unique-name-validation-en.d.ts +0 -2
- package/dist/translations/en/use-unique-name-validation-en.js +1 -3
- package/dist/translations/fr/descriptionFr.d.ts +0 -6
- package/dist/translations/fr/descriptionFr.js +6 -1
- package/dist/translations/fr/filterFr.d.ts +0 -2
- package/dist/translations/fr/filterFr.js +0 -2
- package/dist/translations/fr/generic-validationFr.d.ts +17 -0
- package/dist/translations/fr/generic-validationFr.js +25 -0
- package/dist/translations/fr/index.d.ts +2 -0
- package/dist/translations/fr/index.js +4 -0
- package/dist/translations/fr/network-modification-validationFr.d.ts +23 -0
- package/dist/translations/fr/network-modification-validationFr.js +31 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +6 -33
- package/dist/translations/fr/networkModificationsFr.js +0 -38
- package/dist/translations/fr/parameters.d.ts +0 -2
- package/dist/translations/fr/parameters.js +0 -2
- package/dist/translations/fr/use-unique-name-validation-fr.d.ts +0 -2
- package/dist/translations/fr/use-unique-name-validation-fr.js +1 -3
- package/dist/utils/constants/index.js +19 -1
- package/dist/utils/constants/translationKeys.d.ts +18 -0
- package/dist/utils/constants/translationKeys.js +36 -0
- package/dist/utils/index.js +19 -1
- package/package.json +1 -1
package/dist/utils/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { MAX_CHAR_DESCRIPTION } from "./constants/uiConstants.js";
|
|
|
6
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";
|
|
7
7
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./constants/configConstants.js";
|
|
8
8
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./constants/filterConstant.js";
|
|
9
|
-
import { DUPLICATED_PROPS_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./constants/translationKeys.js";
|
|
9
|
+
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./constants/translationKeys.js";
|
|
10
10
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
|
|
11
11
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./error.js";
|
|
12
12
|
import { isDisabledValidationButton } from "./form-utils.js";
|
|
@@ -39,6 +39,7 @@ import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, i
|
|
|
39
39
|
import { toNumber, validateValueIsANumber } from "./validation-functions.js";
|
|
40
40
|
import { NO_ITEM_SELECTION_FOR_COPY } from "./directory-utils.js";
|
|
41
41
|
export {
|
|
42
|
+
ACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
42
43
|
ALL_EQUIPMENTS,
|
|
43
44
|
AMPERE,
|
|
44
45
|
ActivePowerAdornment,
|
|
@@ -52,11 +53,13 @@ export {
|
|
|
52
53
|
COMMON_APP_NAME,
|
|
53
54
|
COMMON_CONFIG_PARAMS_NAMES,
|
|
54
55
|
CONNECTION_DIRECTIONS,
|
|
56
|
+
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
55
57
|
CalculationType,
|
|
56
58
|
ComputingType,
|
|
57
59
|
CustomError,
|
|
58
60
|
DARK_THEME,
|
|
59
61
|
DEGREE,
|
|
62
|
+
DESCRIPTION_LIMIT_ERROR,
|
|
60
63
|
DUPLICATED_PROPS_ERROR,
|
|
61
64
|
DistributionType,
|
|
62
65
|
ENERGY_SOURCES,
|
|
@@ -95,16 +98,23 @@ export {
|
|
|
95
98
|
Line,
|
|
96
99
|
Load,
|
|
97
100
|
LoadModelsRule,
|
|
101
|
+
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
98
102
|
MAX_CHAR_DESCRIPTION,
|
|
99
103
|
MEGA_VAR,
|
|
100
104
|
MEGA_VOLT_AMPERE,
|
|
101
105
|
MEGA_WATT,
|
|
102
106
|
MICRO_SIEMENS,
|
|
107
|
+
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
103
108
|
MODIFICATION_TYPES,
|
|
109
|
+
MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
104
110
|
MVAPowerAdornment,
|
|
105
111
|
MicroSusceptanceAdornment,
|
|
106
112
|
ModificationType,
|
|
113
|
+
NAME_ALREADY_USED,
|
|
114
|
+
NAME_EMPTY,
|
|
115
|
+
NORMALIZED_PERCENTAGE,
|
|
107
116
|
NO_ITEM_SELECTION_FOR_COPY,
|
|
117
|
+
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
108
118
|
NetworkTimeoutError,
|
|
109
119
|
NotificationsUrlKeys,
|
|
110
120
|
OHM,
|
|
@@ -122,8 +132,13 @@ export {
|
|
|
122
132
|
ParameterType,
|
|
123
133
|
PercentageAdornment,
|
|
124
134
|
ProblemDetailError,
|
|
135
|
+
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
136
|
+
REAL_PERCENTAGE,
|
|
125
137
|
ReactivePowerAdornment,
|
|
126
138
|
SEARCH_EQUIPMENTS,
|
|
139
|
+
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
140
|
+
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
141
|
+
SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO,
|
|
127
142
|
SIEMENS,
|
|
128
143
|
SVC,
|
|
129
144
|
SensitivityType,
|
|
@@ -136,10 +151,13 @@ export {
|
|
|
136
151
|
TwoWindingTransfo,
|
|
137
152
|
UNDEFINED_CONNECTION_DIRECTION,
|
|
138
153
|
UNDEFINED_LOAD_TYPE,
|
|
154
|
+
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
155
|
+
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
139
156
|
VL_TAG_MAX_SIZE,
|
|
140
157
|
VSC,
|
|
141
158
|
VoltageAdornment,
|
|
142
159
|
VoltageLevel,
|
|
160
|
+
WRONG_REF_OR_VALUE_ERROR,
|
|
143
161
|
YUP_DEFAULT,
|
|
144
162
|
YUP_NOT_NULL,
|
|
145
163
|
YUP_NOT_TYPE_DEFAULT,
|