@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.
Files changed (64) hide show
  1. package/dist/components/composite/filter/FilterCreationDialog.js +6 -2
  2. package/dist/components/composite/filter/HeaderFilterForm.js +3 -2
  3. package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
  4. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +2 -1
  5. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -2
  6. package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +2 -1
  7. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
  8. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +2 -2
  9. package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +5 -5
  10. package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -1
  11. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
  12. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +2 -1
  13. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +2 -1
  14. package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -2
  15. package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +3 -2
  16. package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +4 -3
  17. package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +5 -4
  18. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +7 -6
  19. package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +7 -6
  20. package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -9
  21. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +6 -5
  22. package/dist/features/parameters/common/limitreductions/columns-definitions.js +3 -2
  23. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  24. package/dist/features/parameters/security-analysis/columns-definitions.js +4 -3
  25. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
  26. package/dist/hooks/use-unique-name-validation.js +3 -2
  27. package/dist/index.js +27 -1
  28. package/dist/translations/en/descriptionEn.d.ts +0 -6
  29. package/dist/translations/en/descriptionEn.js +6 -1
  30. package/dist/translations/en/filterEn.d.ts +0 -2
  31. package/dist/translations/en/filterEn.js +0 -2
  32. package/dist/translations/en/generic-validationEn.d.ts +23 -0
  33. package/dist/translations/en/generic-validationEn.js +25 -0
  34. package/dist/translations/en/index.d.ts +2 -0
  35. package/dist/translations/en/index.js +4 -0
  36. package/dist/translations/en/network-modification-validationEn.d.ts +23 -0
  37. package/dist/translations/en/network-modification-validationEn.js +31 -0
  38. package/dist/translations/en/networkModificationsEn.d.ts +6 -33
  39. package/dist/translations/en/networkModificationsEn.js +0 -38
  40. package/dist/translations/en/parameters.d.ts +0 -2
  41. package/dist/translations/en/parameters.js +0 -2
  42. package/dist/translations/en/use-unique-name-validation-en.d.ts +0 -2
  43. package/dist/translations/en/use-unique-name-validation-en.js +1 -3
  44. package/dist/translations/fr/descriptionFr.d.ts +0 -6
  45. package/dist/translations/fr/descriptionFr.js +6 -1
  46. package/dist/translations/fr/filterFr.d.ts +0 -2
  47. package/dist/translations/fr/filterFr.js +0 -2
  48. package/dist/translations/fr/generic-validationFr.d.ts +17 -0
  49. package/dist/translations/fr/generic-validationFr.js +25 -0
  50. package/dist/translations/fr/index.d.ts +2 -0
  51. package/dist/translations/fr/index.js +4 -0
  52. package/dist/translations/fr/network-modification-validationFr.d.ts +23 -0
  53. package/dist/translations/fr/network-modification-validationFr.js +31 -0
  54. package/dist/translations/fr/networkModificationsFr.d.ts +6 -33
  55. package/dist/translations/fr/networkModificationsFr.js +0 -38
  56. package/dist/translations/fr/parameters.d.ts +0 -2
  57. package/dist/translations/fr/parameters.js +0 -2
  58. package/dist/translations/fr/use-unique-name-validation-fr.d.ts +0 -2
  59. package/dist/translations/fr/use-unique-name-validation-fr.js +1 -3
  60. package/dist/utils/constants/index.js +19 -1
  61. package/dist/utils/constants/translationKeys.d.ts +18 -0
  62. package/dist/utils/constants/translationKeys.js +36 -0
  63. package/dist/utils/index.js +19 -1
  64. package/package.json +1 -1
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.256.0",
3
+ "version": "0.257.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",