@gridsuite/commons-ui 0.167.0 → 0.169.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 (53) hide show
  1. package/dist/components/csvDownloader/csv-export.type.d.ts +1 -0
  2. package/dist/components/csvDownloader/index.js +2 -1
  3. package/dist/components/csvDownloader/use-csv-export.d.ts +2 -1
  4. package/dist/components/csvDownloader/use-csv-export.js +9 -2
  5. package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +4 -9
  6. package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.js +39 -54
  7. package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +1 -3
  8. package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -2
  9. package/dist/components/filter/FilterCreationDialog.js +7 -5
  10. package/dist/components/filter/expert/ExpertFilterEditionDialog.js +7 -5
  11. package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +7 -5
  12. package/dist/components/index.js +4 -2
  13. package/dist/components/inputs/reactHookForm/text/TextInput.js +1 -1
  14. package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.js +1 -1
  15. package/dist/components/parameters/index.js +2 -1
  16. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +6 -4
  17. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +6 -4
  18. package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +6 -4
  19. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +6 -4
  20. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +6 -4
  21. package/dist/components/parameters/short-circuit/columns-definition.d.ts +30 -0
  22. package/dist/components/parameters/short-circuit/columns-definition.js +127 -0
  23. package/dist/components/parameters/short-circuit/constants.d.ts +1 -0
  24. package/dist/components/parameters/short-circuit/constants.js +2 -0
  25. package/dist/components/parameters/short-circuit/index.js +2 -1
  26. package/dist/components/parameters/short-circuit/short-circuit-fields.js +30 -13
  27. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.d.ts +7 -0
  28. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +75 -0
  29. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.d.ts +9 -0
  30. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.js +35 -0
  31. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.d.ts +8 -0
  32. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +59 -0
  33. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.d.ts +1 -1
  34. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +3 -3
  35. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-row.d.ts +1 -1
  36. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-row.js +1 -1
  37. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.d.ts +2 -3
  38. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +27 -31
  39. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +6 -4
  40. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.d.ts +3 -2
  41. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +100 -13
  42. package/dist/components/parameters/short-circuit/short-circuit-parameters.type.d.ts +20 -1
  43. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +5 -4
  44. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +6 -4
  45. package/dist/index.js +4 -2
  46. package/dist/translations/en/parameters.d.ts +18 -13
  47. package/dist/translations/en/parameters.js +18 -13
  48. package/dist/translations/fr/parameters.d.ts +18 -13
  49. package/dist/translations/fr/parameters.js +18 -13
  50. package/dist/utils/types/metadata.d.ts +2 -0
  51. package/package.json +1 -1
  52. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-columns-definition.d.ts +0 -18
  53. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-columns-definition.js +0 -47
@@ -1,11 +1,13 @@
1
- import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, InitialVoltage, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS } from "./constants.js";
1
+ import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, InitialVoltage, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS } from "./constants.js";
2
2
  import "../../../utils/yupConfig.js";
3
3
  import { COMMON_PARAMETERS, SPECIFIC_PARAMETERS } from "../common/constants.js";
4
4
  import "react/jsx-runtime";
5
5
  import "@mui/material";
6
6
  import "react-intl";
7
7
  import "react";
8
+ import { ID } from "../../../utils/constants/filterConstant.js";
8
9
  import "../../../utils/conversionUtils.js";
10
+ import { snackWithFallback } from "../../../utils/error.js";
9
11
  import "../../../utils/types/equipmentType.js";
10
12
  import "@mui/icons-material";
11
13
  import "localized-countries";
@@ -19,6 +21,7 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
19
21
  import "../../treeViewFinder/TreeViewFinder.js";
20
22
  import "../../overflowableText/OverflowableText.js";
21
23
  import * as yup from "yup";
24
+ import { NAME } from "../../inputs/reactHookForm/constants.js";
22
25
  import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
23
26
  import "../../customAGGrid/customAggrid.js";
24
27
  import "ag-grid-community";
@@ -65,26 +68,55 @@ const getSpecificShortCircuitParametersFormSchema = (specificParametersDescripti
65
68
  type: yup.string().oneOf(["WIND", "SOLAR", "HVDC"]).required()
66
69
  })
67
70
  ).required() : void 0;
71
+ const powerElectronicsClustersParam = specificParametersDescriptionForProvider?.find(
72
+ (specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
73
+ );
74
+ const powerElectronicsClustersSchema = powerElectronicsClustersParam ? yup.array().of(
75
+ yup.object().shape({
76
+ active: yup.boolean().required(),
77
+ alpha: yup.number().required(),
78
+ u0: yup.number().required(),
79
+ usMin: yup.number().required(),
80
+ usMax: yup.number().required(),
81
+ filters: yup.array().of(
82
+ yup.object().shape({
83
+ [ID]: yup.string().required(),
84
+ [NAME]: yup.string().required()
85
+ })
86
+ ),
87
+ type: yup.string().oneOf(["GENERATOR", "HVDC"]).required()
88
+ })
89
+ ).required() : void 0;
68
90
  const existingSpecificSchema = defaultSchema.fields?.[SPECIFIC_PARAMETERS];
69
91
  const existingSpecificFields = existingSpecificSchema ? existingSpecificSchema.fields || {} : {};
70
92
  const mergedSpecificShape = {
71
93
  ...existingSpecificFields,
72
- ...powerElectronicsMaterialsSchema ? { [SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS]: powerElectronicsMaterialsSchema } : {}
94
+ ...powerElectronicsMaterialsSchema ? { [SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS]: powerElectronicsMaterialsSchema } : {},
95
+ ...powerElectronicsClustersSchema ? { [SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS]: powerElectronicsClustersSchema } : {}
73
96
  };
74
97
  const overrideSchema = yup.object().shape({
75
98
  [SPECIFIC_PARAMETERS]: yup.object().shape(mergedSpecificShape)
76
99
  });
77
100
  return defaultSchema.concat(overrideSchema);
78
101
  };
79
- const parsepowerElectronicsMaterialsParamString = (paramString) => {
102
+ const parsePowerElectronicsMaterialsParamString = (paramString, snackError) => {
80
103
  try {
81
104
  return JSON.parse(paramString);
82
105
  } catch (error) {
83
106
  console.error("Error parsing power electronics materials parameter string:", error);
107
+ snackWithFallback(snackError, error, { headerId: "ShortCircuitPowerElectronicsMaterialsParamParsingError" });
108
+ return [];
109
+ }
110
+ };
111
+ const parsePowerElectronicsClustersParamString = (paramString, snackError) => {
112
+ try {
113
+ return JSON.parse(paramString);
114
+ } catch (error) {
115
+ snackWithFallback(snackError, error, { headerId: "ShortCircuitPowerElectronicsClustersParamParsingError" });
84
116
  return [];
85
117
  }
86
118
  };
87
- const getDefaultShortCircuitSpecificParamsValues = (specificParametersDescriptionForProvider) => {
119
+ const getDefaultShortCircuitSpecificParamsValues = (specificParametersDescriptionForProvider, snackError) => {
88
120
  const defaultValues = getDefaultSpecificParamsValues(
89
121
  specificParametersDescriptionForProvider
90
122
  );
@@ -92,19 +124,27 @@ const getDefaultShortCircuitSpecificParamsValues = (specificParametersDescriptio
92
124
  (specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS
93
125
  );
94
126
  if (powerElectronicsMaterialsParam) {
95
- const electronicsMaterialsArray = parsepowerElectronicsMaterialsParamString(
96
- powerElectronicsMaterialsParam.defaultValue
127
+ const electronicsMaterialsArray = parsePowerElectronicsMaterialsParamString(
128
+ powerElectronicsMaterialsParam.defaultValue,
129
+ snackError
97
130
  );
98
131
  defaultValues[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS] = electronicsMaterialsArray.map((material) => ({
99
132
  ...material,
100
133
  active: false
101
134
  }));
102
135
  }
136
+ const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
137
+ (specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
138
+ );
139
+ if (powerElectronicsClustersParam) {
140
+ defaultValues[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS] = [];
141
+ }
103
142
  return defaultValues;
104
143
  };
105
144
  const getShortCircuitSpecificParametersValues = (formData, _specificParametersValues) => {
106
145
  const powerElectronicsMaterialsParam = formData[SPECIFIC_PARAMETERS][SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS];
107
- if (powerElectronicsMaterialsParam) {
146
+ const powerElectronicsClustersParam = formData[SPECIFIC_PARAMETERS][SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS];
147
+ if (powerElectronicsMaterialsParam && powerElectronicsClustersParam) {
108
148
  return {
109
149
  ...getAllSpecificParametersValues(formData, _specificParametersValues),
110
150
  [SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS]: JSON.stringify(
@@ -112,21 +152,51 @@ const getShortCircuitSpecificParametersValues = (formData, _specificParametersVa
112
152
  const { active, ...rest } = sParam;
113
153
  return rest;
114
154
  })
155
+ ),
156
+ [SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS]: JSON.stringify(
157
+ powerElectronicsClustersParam.map((sParam) => {
158
+ const { filters, ...rest } = sParam;
159
+ const lightFilters = (
160
+ // keep only id and name in filters for backend
161
+ filters?.map((filter) => ({
162
+ filterId: filter[ID],
163
+ filterName: filter.name
164
+ })) ?? []
165
+ );
166
+ return { ...rest, filters: lightFilters };
167
+ })
115
168
  )
116
169
  };
117
170
  }
118
171
  return getAllSpecificParametersValues(formData, _specificParametersValues);
119
172
  };
120
- const formatElectronicsMaterialsParamString = (defaultValues, specificParamValue) => {
121
- const electronicsMaterialsArrayInParams = parsepowerElectronicsMaterialsParamString(specificParamValue);
173
+ const formatElectronicsMaterialsParamString = (defaultValues, specificParamValue, snackError) => {
174
+ const electronicsMaterialsArrayInParams = parsePowerElectronicsMaterialsParamString(
175
+ specificParamValue,
176
+ snackError
177
+ );
122
178
  return defaultValues.map((material) => {
123
179
  const foundInParams = electronicsMaterialsArrayInParams.find((m) => m.type === material.type);
124
180
  return foundInParams ? { ...foundInParams, active: true } : { ...material, active: false };
125
181
  });
126
182
  };
127
- const formatShortCircuitSpecificParameters = (specificParametersDescriptionForProvider, specificParamsList) => {
183
+ const formatElectronicsClustersParamString = (defaultValues, specificParamValue, snackError) => {
184
+ const electronicsClustersArrayInParams = parsePowerElectronicsClustersParamString(specificParamValue, snackError);
185
+ return electronicsClustersArrayInParams.map((cluster) => {
186
+ const { filters, ...rest } = cluster;
187
+ return {
188
+ ...rest,
189
+ filters: filters.map((filter) => ({
190
+ [ID]: filter.filterId,
191
+ [NAME]: filter.filterName
192
+ // from back to front -> {id: uuid, name: string}
193
+ }))
194
+ };
195
+ });
196
+ };
197
+ const formatShortCircuitSpecificParameters = (specificParametersDescriptionForProvider, specificParamsList, snackError) => {
128
198
  if (!specificParamsList) {
129
- return getDefaultShortCircuitSpecificParamsValues(specificParametersDescriptionForProvider);
199
+ return getDefaultShortCircuitSpecificParamsValues(specificParametersDescriptionForProvider, snackError);
130
200
  }
131
201
  const formatted = formatSpecificParameters(specificParametersDescriptionForProvider, specificParamsList);
132
202
  const powerParam = specificParametersDescriptionForProvider.find(
@@ -135,13 +205,30 @@ const formatShortCircuitSpecificParameters = (specificParametersDescriptionForPr
135
205
  if (powerParam) {
136
206
  if (Object.hasOwn(specificParamsList, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS)) {
137
207
  formatted[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS] = formatElectronicsMaterialsParamString(
138
- getDefaultShortCircuitSpecificParamsValues([powerParam])?.[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS],
139
- specificParamsList[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS]
208
+ getDefaultShortCircuitSpecificParamsValues([powerParam], snackError)?.[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS],
209
+ specificParamsList[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS],
210
+ snackError
140
211
  );
141
212
  } else {
142
213
  formatted[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS] = getDefaultSpecificParamsValues([powerParam])?.[SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS];
143
214
  }
144
215
  }
216
+ const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
217
+ (p) => p.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
218
+ );
219
+ if (powerElectronicsClustersParam) {
220
+ if (Object.hasOwn(specificParamsList, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS)) {
221
+ formatted[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS] = formatElectronicsClustersParamString(
222
+ getDefaultShortCircuitSpecificParamsValues([powerElectronicsClustersParam], snackError)?.[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS],
223
+ specificParamsList[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS],
224
+ snackError
225
+ );
226
+ } else {
227
+ formatted[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS] = getDefaultSpecificParamsValues([
228
+ powerElectronicsClustersParam
229
+ ])?.[SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS];
230
+ }
231
+ }
145
232
  return formatted;
146
233
  };
147
234
  export {
@@ -1,4 +1,5 @@
1
- import { SpecificParametersPerProvider } from '../../../utils';
1
+ import { UUID } from 'node:crypto';
2
+ import { FilterIdentifier, SpecificParametersPerProvider } from '../../../utils';
2
3
  import { InitialVoltage, PredefinedParameters } from './constants';
3
4
  export interface VoltageRange {
4
5
  minimumNominalVoltage: number;
@@ -13,6 +14,23 @@ export interface PowerElectronicsMaterial {
13
14
  usMax: number;
14
15
  type: 'WIND' | 'SOLAR' | 'HVDC';
15
16
  }
17
+ export type FilterPOJO = {
18
+ id: UUID;
19
+ name: string;
20
+ };
21
+ interface BasePowerElectronicsCluster {
22
+ alpha: number;
23
+ u0: number;
24
+ usMin: number;
25
+ usMax: number;
26
+ type: 'GENERATOR' | 'HVDC';
27
+ }
28
+ export interface FormPowerElectronicsCluster extends BasePowerElectronicsCluster {
29
+ filters: FilterPOJO[];
30
+ }
31
+ export interface PowerElectronicsCluster extends BasePowerElectronicsCluster {
32
+ filters: FilterIdentifier[];
33
+ }
16
34
  export interface ShortCircuitParametersDto {
17
35
  withFeederResult: boolean;
18
36
  withLoads: boolean;
@@ -29,3 +47,4 @@ export interface ShortCircuitParametersInfos {
29
47
  specificParametersPerProvider: SpecificParametersPerProvider;
30
48
  cei909VoltageRanges?: VoltageRange[];
31
49
  }
50
+ export {};
@@ -59,9 +59,9 @@ const useShortCircuitParametersForm = ({
59
59
  }, [provider, specificParamsDescriptions]);
60
60
  const specificParametersDefaultValues = useMemo(() => {
61
61
  return {
62
- ...getDefaultShortCircuitSpecificParamsValues(specificParametersDescriptionForProvider)
62
+ ...getDefaultShortCircuitSpecificParamsValues(specificParametersDescriptionForProvider, snackError)
63
63
  };
64
- }, [specificParametersDescriptionForProvider]);
64
+ }, [snackError, specificParametersDescriptionForProvider]);
65
65
  const formSchema = useMemo(() => {
66
66
  return yup.object({
67
67
  [SHORT_CIRCUIT_PREDEFINED_PARAMS]: yup.mixed().oneOf(Object.values(PredefinedParameters)).required(),
@@ -156,13 +156,14 @@ const useShortCircuitParametersForm = ({
156
156
  [SPECIFIC_PARAMETERS]: {
157
157
  ...formatShortCircuitSpecificParameters(
158
158
  specificParametersDescriptionForProvider,
159
- specificParamsListForCurrentProvider
159
+ specificParamsListForCurrentProvider,
160
+ snackError
160
161
  )
161
162
  }
162
163
  };
163
164
  return values;
164
165
  },
165
- [provider, specificParametersDescriptionForProvider]
166
+ [provider, snackError, specificParametersDescriptionForProvider]
166
167
  );
167
168
  const onValidationError = useCallback((_errors) => {
168
169
  console.error("onValidationError: ", _errors);
@@ -65,11 +65,13 @@ function VoltageInitParametersEditionDialog({
65
65
  open,
66
66
  onClose,
67
67
  onSave: voltageInitMethods.onSaveDialog,
68
- formSchema: voltageInitMethods.formSchema,
69
- formMethods: voltageInitMethods.formMethods,
70
68
  titleId,
71
- removeOptional: true,
72
- language,
69
+ formContext: {
70
+ ...voltageInitMethods.formMethods,
71
+ validationSchema: voltageInitMethods.formSchema,
72
+ removeOptional: true,
73
+ language
74
+ },
73
75
  disabledSave: disableSave,
74
76
  PaperProps: {
75
77
  sx: {
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { CardErrorBoundary } from "./components/cardErrorBoundary/CardErrorBound
17
17
  import { CheckBoxList } from "./components/checkBoxList/CheckBoxList.js";
18
18
  import { CsvExport } from "./components/csvDownloader/csv-export.js";
19
19
  import { ExportCsvButton } from "./components/csvDownloader/export-csv-button.js";
20
- import { useCsvExport } from "./components/csvDownloader/use-csv-export.js";
20
+ import { fetchCsvSeparator, useCsvExport } from "./components/csvDownloader/use-csv-export.js";
21
21
  import { CUSTOM_AGGRID_THEME, styles } from "./components/customAGGrid/customAggrid.style.js";
22
22
  import { CustomAGGrid } from "./components/customAGGrid/customAggrid.js";
23
23
  import { SeparatorCellRenderer } from "./components/customAGGrid/separatorCellRenderer.js";
@@ -161,7 +161,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./components/param
161
161
  import { BALANCE_TYPE, CONNECTED_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./components/parameters/loadflow/constants.js";
162
162
  import { LoadFlowParametersInline } from "./components/parameters/loadflow/load-flow-parameters-inline.js";
163
163
  import { LoadFlowParametersEditionDialog } from "./components/parameters/loadflow/load-flow-parameters-dialog.js";
164
- import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./components/parameters/short-circuit/constants.js";
164
+ import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./components/parameters/short-circuit/constants.js";
165
165
  import { ShortCircuitParametersInLine } from "./components/parameters/short-circuit/short-circuit-parameters-inline.js";
166
166
  import { ShortCircuitParametersEditionDialog } from "./components/parameters/short-circuit/short-circuit-parameters-dialog.js";
167
167
  import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./components/parameters/voltage-init/constants.js";
@@ -647,6 +647,7 @@ export {
647
647
  SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
648
648
  SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
649
649
  SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
650
+ SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS,
650
651
  SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
651
652
  SHORT_CIRCUIT_PREDEFINED_PARAMS,
652
653
  SHORT_CIRCUIT_VOLTAGE_RANGES,
@@ -808,6 +809,7 @@ export {
808
809
  fetchBaseVoltages,
809
810
  fetchConfigParameter,
810
811
  fetchConfigParameters,
812
+ fetchCsvSeparator,
811
813
  fetchCurrentAnnouncement,
812
814
  fetchDefaultCountry,
813
815
  fetchDefaultSecurityAnalysisProvider,
@@ -114,21 +114,26 @@ export declare const parametersEn: {
114
114
  ShortCircuitStartedGeneratorsMode: string;
115
115
  ShortCircuitPowerElectronicsSection: string;
116
116
  ShortCircuitModelPowerElectronics: string;
117
- ShortCircuitIccMaterialActivate: string;
118
- ShortCircuitIccMaterialActivateTooltip: string;
117
+ ShortCircuitIccActive: string;
118
+ ShortCircuitIccMaterialActiveTooltip: string;
119
119
  ShortCircuitIccMaterialType: string;
120
120
  ShortCircuitIccMaterialTypeTooltip: string;
121
- ShortCircuitIccMaterialAlpha: string;
122
- ShortCircuitIccMaterialAlphaTooltip: string;
123
- ShortCircuitIccMaterialUsmin: string;
124
- ShortCircuitIccMaterialUsminTooltip: string;
125
- ShortCircuitIccMaterialUsmax: string;
126
- ShortCircuitIccMaterialUsmaxTooltip: string;
127
- ShortCircuitIccMaterialU0: string;
128
- ShortCircuitIccMaterialU0Tooltip: string;
129
- ShortCircuitWindLabel: string;
130
- ShortCircuitSolarLabel: string;
131
- ShortCircuitHvdcLabel: string;
121
+ ShortCircuitPowerElectronicsMaterialsParamParsingError: string;
122
+ ShortCircuitIccClusterActiveTooltip: string;
123
+ ShortCircuitIccClusterFilters: string;
124
+ ShortCircuitIccClusterFiltersTooltip: string;
125
+ ShortCircuitIccClusterType: string;
126
+ ShortCircuitIccClusterTypeTooltip: string;
127
+ ShortCircuitIccClusterTypeListsSelection: string;
128
+ ShortCircuitPowerElectronicsClustersParamParsingError: string;
129
+ ShortCircuitIccAlpha: string;
130
+ ShortCircuitIccAlphaTooltip: string;
131
+ ShortCircuitIccUsmin: string;
132
+ ShortCircuitIccUsminTooltip: string;
133
+ ShortCircuitIccUsmax: string;
134
+ ShortCircuitIccUsmaxTooltip: string;
135
+ ShortCircuitIccU0: string;
136
+ ShortCircuitIccU0Tooltip: string;
132
137
  ShortCircuitStartedLabel: string;
133
138
  ShortCircuitAllLabel: string;
134
139
  shortCircuitLoads: string;
@@ -108,21 +108,26 @@ const parametersEn = {
108
108
  ShortCircuitStartedGeneratorsMode: "Generators started",
109
109
  ShortCircuitPowerElectronicsSection: "Modeling of power electronics connected equipment",
110
110
  ShortCircuitModelPowerElectronics: "Consider following Icc characteristics",
111
- ShortCircuitIccMaterialActivate: "Activate",
112
- ShortCircuitIccMaterialActivateTooltip: "Activate or deactivate this material characteristic",
111
+ ShortCircuitIccActive: "Activate",
112
+ ShortCircuitIccMaterialActiveTooltip: "Activate or deactivate this material characteristic",
113
113
  ShortCircuitIccMaterialType: "Material",
114
114
  ShortCircuitIccMaterialTypeTooltip: "Type of power electronics equipment",
115
- ShortCircuitIccMaterialAlpha: "Alpha",
116
- ShortCircuitIccMaterialAlphaTooltip: "Exponent of the voltage dependency of the Icc",
117
- ShortCircuitIccMaterialUsmin: "Usmin (%)",
118
- ShortCircuitIccMaterialUsminTooltip: "Minimum voltage for the Icc calculation",
119
- ShortCircuitIccMaterialUsmax: "Usmax (%)",
120
- ShortCircuitIccMaterialUsmaxTooltip: "Maximum voltage for the Icc calculation",
121
- ShortCircuitIccMaterialU0: "U0 (%)",
122
- ShortCircuitIccMaterialU0Tooltip: "Voltage level at which the Icc is nominal",
123
- ShortCircuitWindLabel: "Wind",
124
- ShortCircuitSolarLabel: "Solar",
125
- ShortCircuitHvdcLabel: "HVDC",
115
+ ShortCircuitPowerElectronicsMaterialsParamParsingError: "An error occurred while parsing the power electronics materials parameters",
116
+ ShortCircuitIccClusterActiveTooltip: "Activate or deactivate this cluster characteristic",
117
+ ShortCircuitIccClusterFilters: "Filters",
118
+ ShortCircuitIccClusterFiltersTooltip: "Select the filters to be included in this cluster",
119
+ ShortCircuitIccClusterType: "Cluster type",
120
+ ShortCircuitIccClusterTypeTooltip: "Select type of production in this cluster",
121
+ ShortCircuitIccClusterTypeListsSelection: "Type",
122
+ ShortCircuitPowerElectronicsClustersParamParsingError: "An error occurred while parsing the power electronics clusters parameters",
123
+ ShortCircuitIccAlpha: "Alpha",
124
+ ShortCircuitIccAlphaTooltip: "Exponent of the voltage dependency of the Icc",
125
+ ShortCircuitIccUsmin: "Usmin (%)",
126
+ ShortCircuitIccUsminTooltip: "Minimum voltage for the Icc calculation",
127
+ ShortCircuitIccUsmax: "Usmax (%)",
128
+ ShortCircuitIccUsmaxTooltip: "Maximum voltage for the Icc calculation",
129
+ ShortCircuitIccU0: "U0 (%)",
130
+ ShortCircuitIccU0Tooltip: "Voltage level at which the Icc is nominal",
126
131
  ShortCircuitStartedLabel: "Started",
127
132
  ShortCircuitAllLabel: "All",
128
133
  shortCircuitLoads: "Loads",
@@ -114,21 +114,26 @@ export declare const parametersFr: {
114
114
  ShortCircuitStartedGeneratorsMode: string;
115
115
  ShortCircuitPowerElectronicsSection: string;
116
116
  ShortCircuitModelPowerElectronics: string;
117
- ShortCircuitIccMaterialActivate: string;
118
- ShortCircuitIccMaterialActivateTooltip: string;
117
+ ShortCircuitIccActive: string;
118
+ ShortCircuitIccMaterialActiveTooltip: string;
119
119
  ShortCircuitIccMaterialType: string;
120
120
  ShortCircuitIccMaterialTypeTooltip: string;
121
- ShortCircuitIccMaterialAlpha: string;
122
- ShortCircuitIccMaterialAlphaTooltip: string;
123
- ShortCircuitIccMaterialUsmin: string;
124
- ShortCircuitIccMaterialUsminTooltip: string;
125
- ShortCircuitIccMaterialUsmax: string;
126
- ShortCircuitIccMaterialUsmaxTooltip: string;
127
- ShortCircuitIccMaterialU0: string;
128
- ShortCircuitIccMaterialU0Tooltip: string;
129
- ShortCircuitWindLabel: string;
130
- ShortCircuitSolarLabel: string;
131
- ShortCircuitHvdcLabel: string;
121
+ ShortCircuitPowerElectronicsMaterialsParamParsingError: string;
122
+ ShortCircuitIccClusterActiveTooltip: string;
123
+ ShortCircuitIccClusterFilters: string;
124
+ ShortCircuitIccClusterFiltersTooltip: string;
125
+ ShortCircuitIccClusterType: string;
126
+ ShortCircuitIccClusterTypeTooltip: string;
127
+ ShortCircuitIccClusterTypeListsSelection: string;
128
+ ShortCircuitPowerElectronicsClustersParamParsingError: string;
129
+ ShortCircuitIccAlpha: string;
130
+ ShortCircuitIccAlphaTooltip: string;
131
+ ShortCircuitIccUsmin: string;
132
+ ShortCircuitIccUsminTooltip: string;
133
+ ShortCircuitIccUsmax: string;
134
+ ShortCircuitIccUsmaxTooltip: string;
135
+ ShortCircuitIccU0: string;
136
+ ShortCircuitIccU0Tooltip: string;
132
137
  ShortCircuitStartedLabel: string;
133
138
  ShortCircuitAllLabel: string;
134
139
  shortCircuitLoads: string;
@@ -108,21 +108,26 @@ const parametersFr = {
108
108
  ShortCircuitStartedGeneratorsMode: "Démarrage des groupes",
109
109
  ShortCircuitPowerElectronicsSection: "Modélisation des équipements raccordés par de l'électronique de puissance",
110
110
  ShortCircuitModelPowerElectronics: "Prise en compte des caractéristiques d'Icc suivantes",
111
- ShortCircuitIccMaterialActivate: "Actif",
112
- ShortCircuitIccMaterialActivateTooltip: "Activer la modélisation des équipements raccordés par de l'électronique de puissance",
111
+ ShortCircuitIccActive: "Actif",
112
+ ShortCircuitIccMaterialActiveTooltip: "Activer la modélisation des équipements raccordés par de l'électronique de puissance",
113
113
  ShortCircuitIccMaterialType: "Matériel",
114
114
  ShortCircuitIccMaterialTypeTooltip: "Type d'équipement raccordé par de l'électronique de puissance",
115
- ShortCircuitIccMaterialAlpha: "Alpha",
116
- ShortCircuitIccMaterialAlphaTooltip: "Coefficient de pente de la caractéristique Icc",
117
- ShortCircuitIccMaterialUsmin: "Usmin (%)",
118
- ShortCircuitIccMaterialUsminTooltip: "Tension minimale pour le calcul de Icc",
119
- ShortCircuitIccMaterialUsmax: "Usmax (%)",
120
- ShortCircuitIccMaterialUsmaxTooltip: "Tension maximale pour le calcul de Icc",
121
- ShortCircuitIccMaterialU0: "U0 (%)",
122
- ShortCircuitIccMaterialU0Tooltip: "Tension de référence pour le calcul de Icc",
123
- ShortCircuitWindLabel: "Éolien",
124
- ShortCircuitSolarLabel: "Solaire",
125
- ShortCircuitHvdcLabel: "HVDC",
115
+ ShortCircuitPowerElectronicsMaterialsParamParsingError: "Une erreur est survenue lors de l'analyse des paramètres des matériaux d'électronique de puissance",
116
+ ShortCircuitIccClusterActiveTooltip: "Activer la modélisation des clusters d'électronique de puissance",
117
+ ShortCircuitIccClusterFilters: "Filtres",
118
+ ShortCircuitIccClusterFiltersTooltip: "Filtres de sélection des clusters",
119
+ ShortCircuitIccClusterType: "Type de cluster",
120
+ ShortCircuitIccClusterTypeTooltip: "Sélectionner le type de production dans ce cluster",
121
+ ShortCircuitIccClusterTypeListsSelection: "Type",
122
+ ShortCircuitPowerElectronicsClustersParamParsingError: "Une erreur est survenue lors de l'analyse des paramètres des clusters d'électronique de puissance",
123
+ ShortCircuitIccAlpha: "Alpha",
124
+ ShortCircuitIccAlphaTooltip: "Coefficient de pente de la caractéristique Icc",
125
+ ShortCircuitIccUsmin: "Usmin (%)",
126
+ ShortCircuitIccUsminTooltip: "Tension minimale pour le calcul de Icc",
127
+ ShortCircuitIccUsmax: "Usmax (%)",
128
+ ShortCircuitIccUsmaxTooltip: "Tension maximale pour le calcul de Icc",
129
+ ShortCircuitIccU0: "U0 (%)",
130
+ ShortCircuitIccU0Tooltip: "Tension de référence pour le calcul de Icc",
126
131
  ShortCircuitStartedLabel: "Démarrés",
127
132
  ShortCircuitAllLabel: "Tous",
128
133
  shortCircuitLoads: "Charges",
@@ -26,6 +26,8 @@ export type StudyMetadata = Metadata & {
26
26
  id: string;
27
27
  label: string;
28
28
  }[];
29
+ copyCsvSeparator?: string;
30
+ temporaryLimitsNamesForCatalog?: string[];
29
31
  };
30
32
  export type ExploreMetadata = Metadata & {
31
33
  name: 'Explore';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.167.0",
3
+ "version": "0.169.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -1,18 +0,0 @@
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 SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE = "active";
8
- export declare const SHORT_CIRCUIT_ICC_MATERIAL_TYPE = "type";
9
- export declare const SHORT_CIRCUIT_ICC_MATERIAL_ALPHA = "alpha";
10
- export declare const SHORT_CIRCUIT_ICC_MATERIAL_USMIN = "usMin";
11
- export declare const SHORT_CIRCUIT_ICC_MATERIAL_USMAX = "usMax";
12
- export declare const SHORT_CIRCUIT_ICC_MATERIAL_U0 = "u0";
13
- export interface IccMaterialIColumnsDef {
14
- label: React.ReactNode;
15
- dataKey: string;
16
- tooltip: React.ReactNode;
17
- }
18
- export declare const COLUMNS_DEFINITIONS_ICC_MATERIALS: IccMaterialIColumnsDef[];
@@ -1,47 +0,0 @@
1
- const SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE = "active";
2
- const SHORT_CIRCUIT_ICC_MATERIAL_TYPE = "type";
3
- const SHORT_CIRCUIT_ICC_MATERIAL_ALPHA = "alpha";
4
- const SHORT_CIRCUIT_ICC_MATERIAL_USMIN = "usMin";
5
- const SHORT_CIRCUIT_ICC_MATERIAL_USMAX = "usMax";
6
- const SHORT_CIRCUIT_ICC_MATERIAL_U0 = "u0";
7
- const COLUMNS_DEFINITIONS_ICC_MATERIALS = [
8
- {
9
- label: "ShortCircuitIccMaterialActivate",
10
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE,
11
- tooltip: "ShortCircuitIccMaterialActivateTooltip"
12
- },
13
- {
14
- label: "ShortCircuitIccMaterialType",
15
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_TYPE,
16
- tooltip: "ShortCircuitIccMaterialTypeTooltip"
17
- },
18
- {
19
- label: "ShortCircuitIccMaterialAlpha",
20
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_ALPHA,
21
- tooltip: "ShortCircuitIccMaterialAlphaTooltip"
22
- },
23
- {
24
- label: "ShortCircuitIccMaterialUsmin",
25
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_USMIN,
26
- tooltip: "ShortCircuitIccMaterialUsminTooltip"
27
- },
28
- {
29
- label: "ShortCircuitIccMaterialUsmax",
30
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_USMAX,
31
- tooltip: "ShortCircuitIccMaterialUsmaxTooltip"
32
- },
33
- {
34
- label: "ShortCircuitIccMaterialU0",
35
- dataKey: SHORT_CIRCUIT_ICC_MATERIAL_U0,
36
- tooltip: "ShortCircuitIccMaterialU0Tooltip"
37
- }
38
- ];
39
- export {
40
- COLUMNS_DEFINITIONS_ICC_MATERIALS,
41
- SHORT_CIRCUIT_ICC_MATERIAL_ACTIVE,
42
- SHORT_CIRCUIT_ICC_MATERIAL_ALPHA,
43
- SHORT_CIRCUIT_ICC_MATERIAL_TYPE,
44
- SHORT_CIRCUIT_ICC_MATERIAL_U0,
45
- SHORT_CIRCUIT_ICC_MATERIAL_USMAX,
46
- SHORT_CIRCUIT_ICC_MATERIAL_USMIN
47
- };