@gridsuite/commons-ui 0.159.0 → 0.160.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 (94) hide show
  1. package/dist/components/checkBoxList/CheckBoxListItem.js +1 -1
  2. package/dist/components/checkBoxList/CheckBoxListItemContent.js +1 -1
  3. package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +1 -1
  4. package/dist/components/checkBoxList/DraggableCheckBoxListItemContent.js +1 -1
  5. package/dist/components/csvDownloader/use-csv-export.js +1 -1
  6. package/dist/components/customAGGrid/cell-renderers.js +1 -1
  7. package/dist/components/customAGGrid/separatorCellRenderer.js +1 -1
  8. package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -1
  9. package/dist/components/directoryItemSelector/utils.js +2 -2
  10. package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -1
  11. package/dist/components/filter/FilterForm.js +1 -1
  12. package/dist/components/filter/HeaderFilterForm.js +1 -1
  13. package/dist/components/filter/expert/ExpertFilterForm.js +1 -1
  14. package/dist/components/filter/expert/expertFilterConstants.js +1 -1
  15. package/dist/components/filter/utils/filterFormUtils.js +1 -1
  16. package/dist/components/index.js +2 -2
  17. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +1 -1
  18. package/dist/components/inputs/reactHookForm/OverflowableChipWithHelperText.js +1 -1
  19. package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +1 -1
  20. package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.js +1 -1
  21. package/dist/components/inputs/reactHookForm/chip-items-input.js +1 -1
  22. package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +1 -1
  23. package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +1 -1
  24. package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +1 -1
  25. package/dist/components/overflowableText/OverflowableText.js +1 -1
  26. package/dist/components/parameters/common/ProviderParam.js +1 -1
  27. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -1
  28. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -1
  29. package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +1 -1
  30. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -1
  31. package/dist/components/parameters/common/utils.js +2 -2
  32. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -1
  33. package/dist/components/parameters/common/widget/parameter-float.js +1 -1
  34. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
  35. package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -1
  36. package/dist/components/parameters/index.js +2 -2
  37. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -1
  38. package/dist/components/parameters/loadflow/load-flow-parameter-field.js +1 -1
  39. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
  40. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  41. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -1
  42. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -1
  43. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -1
  44. package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -1
  45. package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -1
  46. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -1
  47. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
  48. package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -1
  49. package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -1
  50. package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -1
  51. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
  52. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -1
  53. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -1
  54. package/dist/components/parameters/sensi/columns-definitions.js +2 -2
  55. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +1 -1
  56. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
  57. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -1
  58. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +1 -1
  59. package/dist/components/parameters/sensi/table-cell.js +1 -1
  60. package/dist/components/parameters/sensi/utils.js +2 -2
  61. package/dist/components/parameters/short-circuit/constants.d.ts +1 -1
  62. package/dist/components/parameters/short-circuit/constants.js +2 -2
  63. package/dist/components/parameters/short-circuit/index.js +2 -2
  64. package/dist/components/parameters/short-circuit/short-circuit-fields.js +29 -13
  65. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -1
  66. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -1
  67. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -1
  68. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -1
  69. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +2 -2
  70. package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -1
  71. package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
  72. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -1
  73. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -1
  74. package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -1
  75. package/dist/hooks/use-unique-name-validation.js +1 -1
  76. package/dist/hooks/useConfidentialityWarning.js +1 -1
  77. package/dist/hooks/useModificationLabelComputer.js +1 -1
  78. package/dist/hooks/useSnackMessage.d.ts +5 -2
  79. package/dist/index.js +3 -4
  80. package/dist/services/config.js +1 -1
  81. package/dist/services/directory.js +1 -1
  82. package/dist/translations/en/businessErrorsEn.d.ts +4 -0
  83. package/dist/translations/en/businessErrorsEn.js +4 -0
  84. package/dist/translations/fr/businessErrorsFr.d.ts +4 -0
  85. package/dist/translations/fr/businessErrorsFr.js +4 -0
  86. package/dist/utils/error.js +3 -2
  87. package/dist/utils/index.js +1 -2
  88. package/dist/utils/mapper/getFileIcon.js +3 -1
  89. package/dist/utils/types/ProblemDetailError.d.ts +1 -2
  90. package/dist/utils/types/ProblemDetailError.js +13 -11
  91. package/dist/utils/types/elementType.d.ts +2 -1
  92. package/dist/utils/types/elementType.js +1 -0
  93. package/dist/utils/types/index.js +1 -2
  94. package/package.json +1 -1
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-intl";
4
4
  import "../../../utils/conversionUtils.js";
5
- import "@mui/icons-material";
6
5
  import { ElementType } from "../../../utils/types/elementType.js";
7
6
  import "../../../utils/types/equipmentType.js";
7
+ import "@mui/icons-material";
8
8
  import "../../../utils/yupConfig.js";
9
9
  import { getSecurityAnalysisDefaultLimitReductions, updateSecurityAnalysisParameters, fetchSecurityAnalysisParameters, fetchDefaultSecurityAnalysisProvider, fetchSecurityAnalysisProviders } from "../../../services/security-analysis.js";
10
10
  import "@mui/material";
@@ -3,9 +3,9 @@ import { FormattedMessage } from "react-intl";
3
3
  import { Grid, Box, LinearProgress } from "@mui/material";
4
4
  import "../../overflowableText/OverflowableText.js";
5
5
  import "../../../utils/conversionUtils.js";
6
+ import "../../../utils/types/equipmentType.js";
6
7
  import "@mui/icons-material";
7
8
  import { mergeSx } from "../../../utils/styles.js";
8
- import "../../../utils/types/equipmentType.js";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "react";
11
11
  import "react-hook-form";
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
4
4
  import { Grid, Tabs, Tab } from "@mui/material";
5
5
  import { TabPanel } from "../common/parameters.js";
6
6
  import "../../../utils/conversionUtils.js";
7
- import "@mui/icons-material";
8
7
  import "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "localized-countries";
11
11
  import "localized-countries/data/fr";
@@ -1,9 +1,9 @@
1
1
  import { MONITORED_BRANCHES, INJECTIONS, DISTRIBUTION_TYPE, CONTINGENCIES, ACTIVATED, SENSITIVITY_TYPE, HVDC_LINES, PSTS, SUPERVISED_VOLTAGE_LEVELS, EQUIPMENTS_IN_VOLTAGE_REGULATION, PARAMETER_SENSI_INJECTIONS_SET, PARAMETER_SENSI_INJECTION, PARAMETER_SENSI_HVDC, PARAMETER_SENSI_PST, PARAMETER_SENSI_NODES } from "./constants.js";
2
2
  import "../../../utils/conversionUtils.js";
3
- import "react/jsx-runtime";
4
- import "@mui/icons-material";
5
3
  import { ElementType } from "../../../utils/types/elementType.js";
6
4
  import { EquipmentType } from "../../../utils/types/equipmentType.js";
5
+ import "react/jsx-runtime";
6
+ import "@mui/icons-material";
7
7
  import "../../../utils/yupConfig.js";
8
8
  const MONITORED_BRANCHES_EQUIPMENT_TYPES = [EquipmentType.LINE, EquipmentType.TWO_WINDINGS_TRANSFORMER];
9
9
  const INJECTION_DISTRIBUTION_TYPES = [
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
4
4
  import { FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD } from "./constants.js";
5
5
  import "../../overflowableText/OverflowableText.js";
6
6
  import "../../../utils/conversionUtils.js";
7
- import "@mui/icons-material";
8
7
  import "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "react";
11
11
  import "react-hook-form";
@@ -4,9 +4,9 @@ import "@mui/material";
4
4
  import "react-intl";
5
5
  import "react";
6
6
  import "../../../utils/conversionUtils.js";
7
- import "@mui/icons-material";
8
7
  import { ElementType } from "../../../utils/types/elementType.js";
9
8
  import "../../../utils/types/equipmentType.js";
9
+ import "@mui/icons-material";
10
10
  import "../../../utils/yupConfig.js";
11
11
  import "localized-countries";
12
12
  import "localized-countries/data/fr";
@@ -4,9 +4,9 @@ import { FormattedMessage } from "react-intl";
4
4
  import { parametersStyles } from "../parameters-style.js";
5
5
  import "../../overflowableText/OverflowableText.js";
6
6
  import "../../../utils/conversionUtils.js";
7
+ import "../../../utils/types/equipmentType.js";
7
8
  import "@mui/icons-material";
8
9
  import { mergeSx } from "../../../utils/styles.js";
9
- import "../../../utils/types/equipmentType.js";
10
10
  import "../../../utils/yupConfig.js";
11
11
  import "react";
12
12
  import "react-hook-form";
@@ -6,8 +6,8 @@ import { SensiTabValues, SensiBranchesTabValues, SensiInjectionsSet, SensiInject
6
6
  import { SensitivityTable } from "./sensitivity-table.js";
7
7
  import { TabPanel } from "../common/parameters.js";
8
8
  import "../../../utils/conversionUtils.js";
9
- import "@mui/icons-material";
10
9
  import "../../../utils/types/equipmentType.js";
10
+ import "@mui/icons-material";
11
11
  import "../../../utils/yupConfig.js";
12
12
  import "localized-countries";
13
13
  import "localized-countries/data/fr";
@@ -3,8 +3,8 @@ import { TableCell } from "@mui/material";
3
3
  import "react-intl";
4
4
  import "../../overflowableText/OverflowableText.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import "../../../utils/types/equipmentType.js";
7
+ import "@mui/icons-material";
8
8
  import "../../../utils/yupConfig.js";
9
9
  import "react";
10
10
  import "react-hook-form";
@@ -2,10 +2,10 @@ import "../../../utils/yupConfig.js";
2
2
  import { FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, PARAMETER_SENSI_NODES, EQUIPMENTS_IN_VOLTAGE_REGULATION, SUPERVISED_VOLTAGE_LEVELS, PARAMETER_SENSI_PST, PSTS, ACTIVATED, PARAMETER_SENSI_HVDC, HVDC_LINES, PARAMETER_SENSI_INJECTION, INJECTIONS, PARAMETER_SENSI_INJECTIONS_SET, DISTRIBUTION_TYPE, CONTINGENCIES, SENSITIVITY_TYPE, MONITORED_BRANCHES, CONTAINER_NAME, CONTAINER_ID } from "./constants.js";
3
3
  import { ID } from "../../../utils/constants/filterConstant.js";
4
4
  import "../../../utils/conversionUtils.js";
5
- import "react/jsx-runtime";
6
- import "@mui/icons-material";
7
5
  import "../../../utils/types/equipmentType.js";
8
6
  import { DistributionType, SensitivityType } from "../../../utils/types/sensitivity-analysis.type.js";
7
+ import "react/jsx-runtime";
8
+ import "@mui/icons-material";
9
9
  import { PROVIDER } from "../common/constant.js";
10
10
  import "@mui/material";
11
11
  import "react-intl";
@@ -22,7 +22,7 @@ export declare const SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS = "withShuntCompensat
22
22
  export declare const SHORT_CIRCUIT_WITH_NEUTRAL_POSITION = "withNeutralPosition";
23
23
  export declare const SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE = "initialVoltageProfileMode";
24
24
  export declare const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
25
- export declare const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS = "onlyStartedGenerators";
25
+ export declare const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
26
26
  export declare const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
27
27
  export declare const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
28
28
  export declare const intlPredefinedParametersOptions: () => {
@@ -18,7 +18,7 @@ const SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS = "withShuntCompensators";
18
18
  const SHORT_CIRCUIT_WITH_NEUTRAL_POSITION = "withNeutralPosition";
19
19
  const SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE = "initialVoltageProfileMode";
20
20
  const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
21
- const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS = "onlyStartedGenerators";
21
+ const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
22
22
  const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
23
23
  const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
24
24
  const intlPredefinedParametersOptions = () => [
@@ -62,7 +62,7 @@ export {
62
62
  PredefinedParameters,
63
63
  SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
64
64
  SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
65
- SHORT_CIRCUIT_ONLY_STARTED_GENERATORS,
65
+ SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
66
66
  SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
67
67
  SHORT_CIRCUIT_PREDEFINED_PARAMS,
68
68
  SHORT_CIRCUIT_VOLTAGE_RANGES,
@@ -1,4 +1,4 @@
1
- import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, 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 "./constants.js";
1
+ 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 "./constants.js";
2
2
  import { ShortCircuitParametersInLine } from "./short-circuit-parameters-inline.js";
3
3
  import { ShortCircuitParametersEditionDialog } from "./short-circuit-parameters-dialog.js";
4
4
  export {
@@ -6,7 +6,7 @@ export {
6
6
  PredefinedParameters,
7
7
  SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
8
8
  SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
9
- SHORT_CIRCUIT_ONLY_STARTED_GENERATORS,
9
+ SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
10
10
  SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
11
11
  SHORT_CIRCUIT_PREDEFINED_PARAMS,
12
12
  SHORT_CIRCUIT_VOLTAGE_RANGES,
@@ -5,7 +5,7 @@ import { green, red } from "@mui/material/colors";
5
5
  import { Lens } from "@mui/icons-material";
6
6
  import { useWatch, useFormContext } from "react-hook-form";
7
7
  import { FormattedMessage } from "react-intl";
8
- import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, onlyStartedGeneratorsOptions, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS } from "./constants.js";
8
+ import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, onlyStartedGeneratorsOptions, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS } from "./constants.js";
9
9
  import { VoltageTable } from "./short-circuit-voltage-table.js";
10
10
  import GridItem from "../../grid/grid-item.js";
11
11
  import GridSection from "../../grid/grid-section.js";
@@ -84,15 +84,27 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
84
84
  () => Object.keys(watchSpecificParameters).length > 0 && watchSpecificParameters.constructor === Object,
85
85
  [watchSpecificParameters]
86
86
  );
87
- const watchOnlyStartedGenerators = useWatch({
88
- name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS}`
87
+ const watchOnlyStartedGeneratorsInCalculationCluster = useWatch({
88
+ name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`
89
89
  });
90
90
  const isIccMinFeaturesDefaultConfiguration = useMemo(() => {
91
- return !watchLoads && !watchShuntCompensators && !watchVSC && !watchNeutralPosition && watchOnlyStartedGenerators;
92
- }, [watchLoads, watchShuntCompensators, watchVSC, watchNeutralPosition, watchOnlyStartedGenerators]);
91
+ return !watchLoads && !watchShuntCompensators && !watchVSC && !watchNeutralPosition && watchOnlyStartedGeneratorsInCalculationCluster;
92
+ }, [
93
+ watchLoads,
94
+ watchShuntCompensators,
95
+ watchVSC,
96
+ watchNeutralPosition,
97
+ watchOnlyStartedGeneratorsInCalculationCluster
98
+ ]);
93
99
  const isIccMaxFeaturesDefaultConfiguration = useMemo(() => {
94
- return !watchLoads && !watchShuntCompensators && watchVSC && !watchNeutralPosition && !watchOnlyStartedGenerators;
95
- }, [watchLoads, watchShuntCompensators, watchVSC, watchNeutralPosition, watchOnlyStartedGenerators]);
100
+ return !watchLoads && !watchShuntCompensators && watchVSC && !watchNeutralPosition && !watchOnlyStartedGeneratorsInCalculationCluster;
101
+ }, [
102
+ watchLoads,
103
+ watchShuntCompensators,
104
+ watchVSC,
105
+ watchNeutralPosition,
106
+ watchOnlyStartedGeneratorsInCalculationCluster
107
+ ]);
96
108
  const predefinedParamsOptions = useMemo(() => {
97
109
  return intlPredefinedParametersOptions();
98
110
  }, []);
@@ -152,16 +164,20 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
152
164
  label: "shortCircuitNeutralPosition"
153
165
  }
154
166
  );
155
- const onlyStartedGenerators = /* @__PURE__ */ jsx(
167
+ const onlyStartedGeneratorsInCalculationCluster = /* @__PURE__ */ jsx(
156
168
  RadioInput,
157
169
  {
158
- name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS}`,
170
+ name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
159
171
  options: Object.values(onlyStartedGeneratorsOptions),
160
172
  formProps: {
161
173
  onChange: (_event, value) => {
162
- setValue(`${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS}`, value === "true", {
163
- shouldDirty: true
164
- });
174
+ setValue(
175
+ `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
176
+ value === "true",
177
+ {
178
+ shouldDirty: true
179
+ }
180
+ );
165
181
  }
166
182
  }
167
183
  }
@@ -215,7 +231,7 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
215
231
  /* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode }),
216
232
  isThereSpecificParameters && /* @__PURE__ */ jsxs(Fragment, { children: [
217
233
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitStartedGeneratorsMode", heading: 4 }),
218
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: onlyStartedGenerators }) }),
234
+ /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: onlyStartedGeneratorsInCalculationCluster }) }),
219
235
  isDeveloperMode && /* @__PURE__ */ jsxs(Fragment, { children: [
220
236
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
221
237
  /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: modelPowerElectronics }) }),
@@ -3,8 +3,8 @@ import { TableCell } from "@mui/material";
3
3
  import "react-intl";
4
4
  import "../../overflowableText/OverflowableText.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import "../../../utils/types/equipmentType.js";
7
+ import "@mui/icons-material";
8
8
  import "../../../utils/yupConfig.js";
9
9
  import "react";
10
10
  import "react-hook-form";
@@ -3,9 +3,9 @@ import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.j
3
3
  import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
4
4
  import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import { ElementType } from "../../../utils/types/elementType.js";
8
7
  import "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import { getShortCircuitSpecificParametersDescription, updateShortCircuitParameters, fetchShortCircuitParameters } from "../../../services/short-circuit-analysis.js";
11
11
  import "react";
@@ -3,8 +3,8 @@ import { Box, Grid, LinearProgress } from "@mui/material";
3
3
  import "react-intl";
4
4
  import "../../overflowableText/OverflowableText.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import "../../../utils/types/equipmentType.js";
7
+ import "@mui/icons-material";
8
8
  import "../../../utils/yupConfig.js";
9
9
  import "react";
10
10
  import "react-hook-form";
@@ -6,8 +6,8 @@ import "@mui/material";
6
6
  import "react-intl";
7
7
  import "react";
8
8
  import "../../../utils/conversionUtils.js";
9
- import "@mui/icons-material";
10
9
  import "../../../utils/types/equipmentType.js";
10
+ import "@mui/icons-material";
11
11
  import "localized-countries";
12
12
  import "localized-countries/data/fr";
13
13
  import "localized-countries/data/en";
@@ -32,7 +32,7 @@ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
32
32
  import "uuid";
33
33
  import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
34
34
  import "react-querybuilder";
35
- import { SHORT_CIRCUIT_PREDEFINED_PARAMS, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, 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_ONLY_STARTED_GENERATORS, SHORT_CIRCUIT_VOLTAGE_RANGES } from "./constants.js";
35
+ import { SHORT_CIRCUIT_PREDEFINED_PARAMS, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, 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_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_VOLTAGE_RANGES } from "./constants.js";
36
36
  import "../../filter/HeaderFilterForm.js";
37
37
  import { getNameElementEditorSchema, getNameElementEditorEmptyFormData } from "../common/name-element-editor/name-element-editor-utils.js";
38
38
  import { SPECIFIC_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER, PROVIDER } from "../common/constant.js";
@@ -98,7 +98,7 @@ const useShortCircuitParametersForm = ({
98
98
  );
99
99
  setValue(SHORT_CIRCUIT_PREDEFINED_PARAMS, predefinedParameter, dirty);
100
100
  setValue(
101
- `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS}`,
101
+ `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
102
102
  predefinedParameter === PredefinedParameters.ICC_MIN_WITH_NOMINAL_VOLTAGE_MAP,
103
103
  dirty
104
104
  );
@@ -3,9 +3,9 @@ import { Grid, Alert } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "../../overflowableText/OverflowableText.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import { ElementType } from "../../../utils/types/elementType.js";
8
7
  import { EquipmentType } from "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "react";
11
11
  import "react-hook-form";
@@ -8,8 +8,8 @@ import { ReactivePowerAdornment } from "../common/constant.js";
8
8
  import { LineSeparator } from "../common/line-separator.js";
9
9
  import { parametersStyles } from "../parameters-style.js";
10
10
  import "../../../utils/conversionUtils.js";
11
- import "@mui/icons-material";
12
11
  import "../../../utils/types/equipmentType.js";
12
+ import "@mui/icons-material";
13
13
  import "../../../utils/yupConfig.js";
14
14
  import "localized-countries";
15
15
  import "localized-countries/data/fr";
@@ -6,8 +6,8 @@ import "@mui/material";
6
6
  import "../../overflowableText/OverflowableText.js";
7
7
  import { FILTER_NAME, FILTER_ID, ID, FILTERS } from "../../../utils/constants/filterConstant.js";
8
8
  import "../../../utils/conversionUtils.js";
9
- import "@mui/icons-material";
10
9
  import "../../../utils/types/equipmentType.js";
10
+ import "@mui/icons-material";
11
11
  import "../../../utils/yupConfig.js";
12
12
  import "react";
13
13
  import "react-hook-form";
@@ -3,9 +3,9 @@ import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.j
3
3
  import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
4
4
  import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
5
5
  import "../../../utils/conversionUtils.js";
6
- import "@mui/icons-material";
7
6
  import { ElementType } from "../../../utils/types/elementType.js";
8
7
  import "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "react";
11
11
  import "@mui/material";
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
4
4
  import { getTabIndicatorStyle, getTabStyle } from "../parameters-style.js";
5
5
  import "../../overflowableText/OverflowableText.js";
6
6
  import "../../../utils/conversionUtils.js";
7
- import "@mui/icons-material";
8
7
  import "../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import "react";
11
11
  import "react-hook-form";
@@ -2,9 +2,9 @@ import { useCallback, useEffect } from "react";
2
2
  import { useFormContext, useController } from "react-hook-form";
3
3
  import { FieldConstants } from "../utils/constants/fieldConstants.js";
4
4
  import "../utils/conversionUtils.js";
5
+ import "../utils/types/equipmentType.js";
5
6
  import "react/jsx-runtime";
6
7
  import "@mui/icons-material";
7
- import "../utils/types/equipmentType.js";
8
8
  import "../utils/yupConfig.js";
9
9
  import { useDebounce } from "./useDebounce.js";
10
10
  import { elementAlreadyExists } from "../services/directory.js";
@@ -1,9 +1,9 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { fetchEnv } from "../services/appsMetadata.js";
3
3
  import "../utils/conversionUtils.js";
4
+ import "../utils/types/equipmentType.js";
4
5
  import "react/jsx-runtime";
5
6
  import "@mui/icons-material";
6
- import "../utils/types/equipmentType.js";
7
7
  import "../utils/yupConfig.js";
8
8
  const useConfidentialityWarning = () => {
9
9
  const [confidentialityWarningKey, setConfidentialityWarningKey] = useState();
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useIntl } from "react-intl";
3
3
  import { useCallback } from "react";
4
4
  import "../utils/conversionUtils.js";
5
- import "@mui/icons-material";
6
5
  import { EquipmentType } from "../utils/types/equipmentType.js";
7
6
  import { MODIFICATION_TYPES } from "../utils/types/modificationType.js";
7
+ import "@mui/icons-material";
8
8
  import "../utils/yupConfig.js";
9
9
  const getOperatingStatusModificationValues = (modification, formatBold) => {
10
10
  return {
@@ -1,11 +1,13 @@
1
1
  import { closeSnackbar as closeSnackbarFromNotistack, OptionsObject } from 'notistack';
2
+ import { FormatXMLElementFn, PrimitiveType } from 'intl-messageformat';
3
+ type FormatValues = Record<string, PrimitiveType | FormatXMLElementFn<string, string>>;
2
4
  export interface SnackInputs extends Omit<OptionsObject, 'variant' | 'style'> {
3
5
  messageTxt?: string;
4
6
  messageId?: string;
5
- messageValues?: Record<string, string>;
7
+ messageValues?: FormatValues;
6
8
  headerTxt?: string;
7
9
  headerId?: string;
8
- headerValues?: Record<string, string>;
10
+ headerValues?: FormatValues;
9
11
  }
10
12
  export interface UseSnackMessageReturn {
11
13
  snackError: (snackInputs: SnackInputs) => void;
@@ -15,3 +17,4 @@ export interface UseSnackMessageReturn {
15
17
  closeSnackbar: typeof closeSnackbarFromNotistack;
16
18
  }
17
19
  export declare function useSnackMessage(): UseSnackMessageReturn;
20
+ export {};
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./components/param
159
159
  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";
160
160
  import { LoadFlowParametersInline } from "./components/parameters/loadflow/load-flow-parameters-inline.js";
161
161
  import { LoadFlowParametersEditionDialog } from "./components/parameters/loadflow/load-flow-parameters-dialog.js";
162
- import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, 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";
162
+ 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";
163
163
  import { ShortCircuitParametersInLine } from "./components/parameters/short-circuit/short-circuit-parameters-inline.js";
164
164
  import { ShortCircuitParametersEditionDialog } from "./components/parameters/short-circuit/short-circuit-parameters-dialog.js";
165
165
  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";
@@ -224,7 +224,7 @@ import { copyToClipboard } from "./utils/navigator-clipboard.js";
224
224
  import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./utils/constants/notificationsProvider.js";
225
225
  import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./utils/styles.js";
226
226
  import { CustomError } from "./utils/types/CustomError.js";
227
- import { ProblemDetailError, formatMessageValues } from "./utils/types/ProblemDetailError.js";
227
+ import { ProblemDetailError } from "./utils/types/ProblemDetailError.js";
228
228
  import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
229
229
  import { ElementType } from "./utils/types/elementType.js";
230
230
  import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/types/equipmentType.js";
@@ -602,7 +602,7 @@ export {
602
602
  SENSITIVITY_TYPES,
603
603
  SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
604
604
  SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
605
- SHORT_CIRCUIT_ONLY_STARTED_GENERATORS,
605
+ SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
606
606
  SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
607
607
  SHORT_CIRCUIT_PREDEFINED_PARAMS,
608
608
  SHORT_CIRCUIT_VOLTAGE_RANGES,
@@ -777,7 +777,6 @@ export {
777
777
  flatParametersEn,
778
778
  flatParametersFr,
779
779
  formatComputingTypeLabel,
780
- formatMessageValues,
781
780
  genHelperError,
782
781
  generateTreeViewFinderClass,
783
782
  getAppName,
@@ -1,9 +1,9 @@
1
1
  import { backendFetch, backendFetchJson } from "./utils.js";
2
2
  import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES } from "../utils/constants/configConstants.js";
3
3
  import "../utils/conversionUtils.js";
4
+ import "../utils/types/equipmentType.js";
4
5
  import "react/jsx-runtime";
5
6
  import "@mui/icons-material";
6
- import "../utils/types/equipmentType.js";
7
7
  import "../utils/yupConfig.js";
8
8
  const PREFIX_CONFIG_QUERIES = `${"api/gateway"}/config`;
9
9
  function getAppName(appName, name) {
@@ -47,7 +47,7 @@ var PermissionType = /* @__PURE__ */ ((PermissionType2) => {
47
47
  function hasElementPermission(elementUuid, permission) {
48
48
  const url = `${PREFIX_EXPLORE_SERVER_QUERIES}/v1/explore/elements/${elementUuid}?permission=${permission}`;
49
49
  console.debug(url);
50
- return backendFetch(url, { method: "head" }).then((response) => response.status === 200).catch(() => {
50
+ return backendFetch(url, { method: "get" }).then((response) => response.status === 200).catch(() => {
51
51
  console.info(`${permission} permission denied for element or directory ${elementUuid}`);
52
52
  return false;
53
53
  });
@@ -12,6 +12,9 @@ export declare const businessErrorsEn: {
12
12
  'directory.moveInDescendantNotAllowed': string;
13
13
  'directory.someElementsAreMissing': string;
14
14
  'directory.elementNotFound': string;
15
+ 'directory.parentPermissionDenied': string;
16
+ 'directory.childPermissionDenied': string;
17
+ 'directory.targetPermissionDenied': string;
15
18
  'explore.permissionDenied': string;
16
19
  'explore.maxElementsExceeded': string;
17
20
  'explore.incorrectCaseFile': string;
@@ -33,6 +36,7 @@ export declare const businessErrorsEn: {
33
36
  'study.networkExportFailed': string;
34
37
  'study.tooManyNadConfigs': string;
35
38
  'study.tooManyMapCards': string;
39
+ 'study.elementAlreadyExists': string;
36
40
  'useradmin.permissionDenied': string;
37
41
  'useradmin.userNotFound': string;
38
42
  'useradmin.userAlreadyExists': string;
@@ -6,6 +6,9 @@ const businessErrorsEn = {
6
6
  "directory.moveInDescendantNotAllowed": "Cannot move an element inside one of its descendants.",
7
7
  "directory.someElementsAreMissing": "Some of the requested directory elements are missing.",
8
8
  "directory.elementNotFound": "The requested directory element could not be found.",
9
+ "directory.parentPermissionDenied": "You don't have sufficient rights on parent folder",
10
+ "directory.childPermissionDenied": "The folder contains at least one subfolder for which you do not have sufficient rights",
11
+ "directory.targetPermissionDenied": "You don't have sufficient rights on target folder",
9
12
  "explore.permissionDenied": "You are not allowed to perform this action.",
10
13
  "explore.maxElementsExceeded": "You have reached your user quota for cases and studies ({limit} cases and studies).",
11
14
  "explore.incorrectCaseFile": "The provided case file is incorrect.",
@@ -27,6 +30,7 @@ const businessErrorsEn = {
27
30
  "study.networkExportFailed": "Failed to export network.",
28
31
  "study.tooManyNadConfigs": "Maximum number of NAD configuration exceeded.",
29
32
  "study.tooManyMapCards": "Maximum number of cards exceeded.",
33
+ "study.elementAlreadyExists": "An element with the same name already exists",
30
34
  "useradmin.permissionDenied": "You don't have permission to perform this action.",
31
35
  "useradmin.userNotFound": "User not found.",
32
36
  "useradmin.userAlreadyExists": "User already exists.",
@@ -12,6 +12,9 @@ export declare const businessErrorsFr: {
12
12
  'directory.moveInDescendantNotAllowed': string;
13
13
  'directory.someElementsAreMissing': string;
14
14
  'directory.elementNotFound': string;
15
+ 'directory.parentPermissionDenied': string;
16
+ 'directory.childPermissionDenied': string;
17
+ 'directory.targetPermissionDenied': string;
15
18
  'explore.permissionDenied': string;
16
19
  'explore.maxElementsExceeded': string;
17
20
  'explore.incorrectCaseFile': string;
@@ -33,6 +36,7 @@ export declare const businessErrorsFr: {
33
36
  'study.networkExportFailed': string;
34
37
  'study.tooManyNadConfigs': string;
35
38
  'study.tooManyMapCards': string;
39
+ 'study.elementAlreadyExists': string;
36
40
  'useradmin.permissionDenied': string;
37
41
  'useradmin.userNotFound': string;
38
42
  'useradmin.userAlreadyExists': string;
@@ -6,6 +6,9 @@ const businessErrorsFr = {
6
6
  "directory.moveInDescendantNotAllowed": "Impossible de déplacer un élément dans l’un de ses descendants.",
7
7
  "directory.someElementsAreMissing": "Certains des éléments demandés sont manquants.",
8
8
  "directory.elementNotFound": "L'élément du dossier demandé est introuvable.",
9
+ "directory.parentPermissionDenied": "Vous n'avez pas les droits d'accès suffisant sur le dossier parent",
10
+ "directory.childPermissionDenied": "Le dossier contient au moins un sous-dossier pour lequel vous n'avez pas les droits d'accès suffisant",
11
+ "directory.targetPermissionDenied": "Vous n'avez pas les droits d'accès suffisant sur le dossier cible",
9
12
  "explore.permissionDenied": "Vous n'êtes pas autorisé à effectuer cette action.",
10
13
  "explore.maxElementsExceeded": "Vous avez atteint votre quota utilisateur en termes de situations et d'études ({limit} situations et études).",
11
14
  "explore.incorrectCaseFile": "Le fichier réseau fourni est incorrect.",
@@ -27,6 +30,7 @@ const businessErrorsFr = {
27
30
  "study.networkExportFailed": "Échec de l'export de réseau.",
28
31
  "study.tooManyNadConfigs": "Nombre maximal de configurations d'image nodale de zone atteint.",
29
32
  "study.tooManyMapCards": "Nombre maximal de carte atteint.",
33
+ "study.elementAlreadyExists": "Un élément avec le même nom est déjà présent",
30
34
  "useradmin.permissionDenied": "Vous n'avez pas la permission d'effectuer cette action.",
31
35
  "useradmin.userNotFound": "Utilisateur introuvable.",
32
36
  "useradmin.userAlreadyExists": "L'utilisateur existe déjà.",
@@ -1,5 +1,6 @@
1
- import { ProblemDetailError, formatMessageValues } from "./types/ProblemDetailError.js";
1
+ import { ProblemDetailError } from "./types/ProblemDetailError.js";
2
2
  import { NetworkTimeoutError } from "./types/NetworkTimeoutError.js";
3
+ import "./types/equipmentType.js";
3
4
  function catchErrorHandler(error, callback) {
4
5
  if (error instanceof Object && "message" in error && typeof error.message === "string") {
5
6
  callback(error.message);
@@ -19,7 +20,7 @@ function snackWithFallback(snackError, error, headerInputs) {
19
20
  if (error.businessErrorCode) {
20
21
  snackError({
21
22
  messageId: error.businessErrorCode,
22
- messageValues: error.businessErrorValues ? formatMessageValues(error.businessErrorValues) : void 0,
23
+ messageValues: error.businessErrorValues,
23
24
  ...headerInputs
24
25
  });
25
26
  } else {
@@ -15,7 +15,7 @@ import { copyToClipboard } from "./navigator-clipboard.js";
15
15
  import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./constants/notificationsProvider.js";
16
16
  import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./styles.js";
17
17
  import { CustomError } from "./types/CustomError.js";
18
- import { ProblemDetailError, formatMessageValues } from "./types/ProblemDetailError.js";
18
+ import { ProblemDetailError } from "./types/ProblemDetailError.js";
19
19
  import { NetworkTimeoutError } from "./types/NetworkTimeoutError.js";
20
20
  import { ElementType } from "./types/elementType.js";
21
21
  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";
@@ -112,7 +112,6 @@ export {
112
112
  equalsArray,
113
113
  equipmentStyles,
114
114
  equipmentTypesForPredefinedPropertiesMapper,
115
- formatMessageValues,
116
115
  getEquipmentTypeShortLabel,
117
116
  getEquipmentTypeTagLabel,
118
117
  getEquipmentsInfosForSearchBar,