@gridsuite/commons-ui 0.280.0 → 0.281.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 (110) hide show
  1. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
  2. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
  3. package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
  4. package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
  5. package/dist/features/index.js +80 -3
  6. package/dist/features/network-modifications/index.d.ts +1 -0
  7. package/dist/features/network-modifications/index.js +78 -3
  8. package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
  9. package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
  10. package/dist/features/network-modifications/tabular/index.d.ts +7 -0
  11. package/dist/features/network-modifications/tabular/index.js +65 -0
  12. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
  13. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
  14. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
  15. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
  16. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
  17. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
  18. package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
  19. package/dist/features/network-modifications/tabular/properties/index.js +13 -0
  20. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
  21. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
  22. package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
  23. package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
  24. package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
  25. package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
  26. package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
  27. package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
  28. package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
  29. package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
  30. package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
  31. package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
  32. package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -1
  33. package/dist/features/network-modifications/voltageLevel/index.js +15 -3
  34. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
  35. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
  36. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
  37. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
  38. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
  39. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
  40. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
  41. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
  42. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
  43. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
  44. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
  45. package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
  46. package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
  47. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
  48. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
  49. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
  50. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
  51. package/dist/features/parameters/common/index.d.ts +1 -0
  52. package/dist/features/parameters/common/index.js +2 -0
  53. package/dist/features/parameters/common/parameter-field.d.ts +2 -2
  54. package/dist/features/parameters/common/parameter-field.js +1 -1
  55. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
  56. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
  57. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
  58. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
  59. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
  60. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
  61. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
  62. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
  63. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
  64. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
  65. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
  66. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
  67. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
  68. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
  69. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
  70. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
  71. package/dist/features/parameters/index.js +2 -0
  72. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
  73. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
  74. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
  75. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
  76. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
  77. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
  78. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
  79. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
  80. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
  81. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
  82. package/dist/features/side-bar/AppSideBarHeader.js +20 -5
  83. package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
  84. package/dist/features/side-bar/EnvironmentChip.js +49 -0
  85. package/dist/index.js +84 -5
  86. package/dist/services/appsMetadata.d.ts +2 -0
  87. package/dist/services/directory.d.ts +1 -1
  88. package/dist/services/directory.js +6 -2
  89. package/dist/services/index.js +2 -1
  90. package/dist/services/userAdmin.d.ts +2 -1
  91. package/dist/services/userAdmin.js +9 -1
  92. package/dist/translations/en/businessErrorsEn.d.ts +1 -0
  93. package/dist/translations/en/businessErrorsEn.js +1 -0
  94. package/dist/translations/en/networkModificationsEn.d.ts +85 -0
  95. package/dist/translations/en/networkModificationsEn.js +91 -1
  96. package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
  97. package/dist/translations/fr/businessErrorsFr.js +1 -0
  98. package/dist/translations/fr/networkModificationsFr.d.ts +85 -0
  99. package/dist/translations/fr/networkModificationsFr.js +91 -1
  100. package/dist/utils/constants/index.js +2 -1
  101. package/dist/utils/constants/notificationsProvider.d.ts +1 -0
  102. package/dist/utils/constants/notificationsProvider.js +1 -0
  103. package/dist/utils/constants/translationKeys.d.ts +1 -0
  104. package/dist/utils/constants/translationKeys.js +2 -0
  105. package/dist/utils/index.js +2 -1
  106. package/dist/utils/types/types.d.ts +4 -0
  107. package/package.json +1 -1
  108. /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
  109. /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
  110. /package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.js → creation/voltageLevelTopologyCreation.types.js} +0 -0
@@ -0,0 +1,43 @@
1
+ import { TabularFieldConstants } from './tabular.constants';
2
+ import { TabularFields, TabularFormDto, TabularModificationDto, TabularModificationRow } from './tabular.types';
3
+ import { TabularFormType } from './tabular.utils';
4
+ export declare const TABULAR_MODIFICATION_FIELDS: TabularFields;
5
+ export declare const TABULAR_MODIFICATION_TYPES: {
6
+ [key: string]: string;
7
+ };
8
+ export declare const getEquipmentTypeFromModificationType: (type: string) => string | undefined;
9
+ export declare const convertInputValues: (key: string, value: {
10
+ value: string | number;
11
+ }) => any;
12
+ export declare const convertOutputValues: (key: string, value: string | number) => string | number | import('../../..').AttributeModification<any> | null;
13
+ export declare const getTabularFieldType: (modificationType: string, key: string) => string;
14
+ export declare const convertGeneratorOrBatteryModificationFromBackToFront: (modification: TabularModificationRow) => TabularModificationRow;
15
+ export declare const convertGeneratorOrBatteryModificationFromFrontToBack: (modification: TabularModificationRow) => TabularModificationRow;
16
+ export declare const TWT_TAP_CHANGER_FIELDS: TabularFieldConstants[];
17
+ export declare const convertTWTTapChangerModificationFromFrontToBack: (modification: TabularModificationRow) => TabularModificationRow;
18
+ /**
19
+ * Type definition for modification transformation strategies
20
+ */
21
+ export type ModificationTransformationStrategy = {
22
+ [key: string]: (row: TabularModificationRow, modificationType: string) => TabularModificationRow;
23
+ };
24
+ /**
25
+ * Transformation strategies from front-end to back-end for different modification types
26
+ */
27
+ export declare const MODIFICATION_TRANSFORMATION_STRATEGIES: ModificationTransformationStrategy;
28
+ /**
29
+ * Transforms a single row of form data into a modification object for the back-end
30
+ * @param row - The form data row to transform
31
+ * @param modificationType - The type of modification being performed
32
+ * @returns The transformed modification object
33
+ */
34
+ export declare const transformRowToBackEndModification: (row: TabularModificationRow, modificationType: string) => TabularModificationRow;
35
+ /**
36
+ * Transforms form data modifications table into an array of back-end modification objects
37
+ * @param modificationsTable - Array of form data rows
38
+ * @param modificationType - The type of modification being performed
39
+ * @returns Array of transformed modification objects
40
+ */
41
+ export declare const transformModificationsTable: (modificationType: string, modificationsTable?: TabularModificationRow[]) => TabularModificationRow[];
42
+ export declare const tabularModificationDtoToForm: (dto: TabularModificationDto) => TabularFormType;
43
+ export declare const tabularModificationFormToDto: (form: TabularFormType) => TabularFormDto;
@@ -0,0 +1,406 @@
1
+ import { v4 } from "uuid";
2
+ import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
3
+ import { convertInputValue, toModificationOperation, convertOutputValue } from "../../../utils/conversionUtils.js";
4
+ import { CONNECTION_DIRECTIONS, ENERGY_SOURCES, REGULATION_SIDES } from "../../../utils/types/equipmentType.js";
5
+ import { MODIFICATION_TYPES, ModificationType } from "../../../utils/types/modificationType.js";
6
+ import { FieldType } from "../../../utils/types/fieldType.js";
7
+ import "react/jsx-runtime";
8
+ import "@mui/icons-material";
9
+ import { SHUNT_COMPENSATOR_TYPES } from "../shunt-compensator/common/shuntCompensator.utils.js";
10
+ import "@mui/material";
11
+ import "react-hook-form";
12
+ import "react";
13
+ import "react-intl";
14
+ import "../../../components/ui/overflowableText/OverflowableText.js";
15
+ import "localized-countries";
16
+ import "localized-countries/data/fr";
17
+ import "localized-countries/data/en";
18
+ import "notistack";
19
+ import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
20
+ import "yup";
21
+ import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
22
+ import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
23
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
24
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
25
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
26
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
27
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
28
+ import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
29
+ import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
30
+ import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
31
+ import "@hello-pangea/dnd";
32
+ import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
33
+ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
34
+ import "mui-nested-menu";
35
+ import "react-resizable-panels";
36
+ import "react-papaparse";
37
+ import "../common/properties/propertyUtils.js";
38
+ import "react-dom";
39
+ import "autosuggest-highlight/match";
40
+ import "autosuggest-highlight/parse";
41
+ import "clsx";
42
+ import "../../../components/composite/filter/FilterCreationDialog.js";
43
+ import "../../../components/composite/filter/HeaderFilterForm.js";
44
+ import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
45
+ import "../../../components/composite/filter/expert/ExpertFilterForm.js";
46
+ import "../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
47
+ import "../../../components/composite/filter/expert/expertFilterConstants.js";
48
+ import "react-querybuilder";
49
+ import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
50
+ import "../../../components/composite/filter/utils/filterFormUtils.js";
51
+ import "@react-querybuilder/material";
52
+ import "../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
53
+ import "../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
54
+ import "../../../components/composite/agGridTable/BottomTableButtons.js";
55
+ import "../../../components/composite/agGridTable/CustomAgGridTable.js";
56
+ import "ag-grid-community";
57
+ import "../../../components/composite/customAGGrid/customAggrid.js";
58
+ import "../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
59
+ import "mathjs";
60
+ import "../../../components/composite/report/report-viewer/log-table/log-table.js";
61
+ import "react-window";
62
+ import "../../../components/composite/report/report-treeview/treeview-item.js";
63
+ import "../../../components/composite/report/report-viewer/context/report-viewer-context.js";
64
+ import "../common/regulatingTerminal/RegulatingTerminalForm.js";
65
+ import "@mui/material/colors";
66
+ import "@mui/x-charts";
67
+ import "../common/currentLimits/limitsPane.utils.js";
68
+ import "../shunt-compensator/creation/shuntCompensatorCreation.utils.js";
69
+ import "../shunt-compensator/modification/shuntCompensatorModification.utils.js";
70
+ import { TABULAR_BOOLEAN, TabularFieldConstants, TABULAR_NUMBER, REGULATING_TERMINAL_TYPES, TABULAR_ENUM, LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION } from "./tabular.constants.js";
71
+ import { convertReactiveCapabilityCurvePointsFromBackToFront, convertReactiveCapabilityCurvePointsFromFrontToBack, formatModification, addPropertiesFromBack, transformProperties } from "./tabular.utils.js";
72
+ const REACTIVE_CAPABILITY_CURVE_FIELDS = [
73
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE, type: TABULAR_BOOLEAN },
74
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_P_MIN, type: TABULAR_NUMBER },
75
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MIN_P_MIN, type: TABULAR_NUMBER },
76
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MAX_P_MIN, type: TABULAR_NUMBER },
77
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_P_0, type: TABULAR_NUMBER },
78
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MIN_P_0, type: TABULAR_NUMBER },
79
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MAX_P_0, type: TABULAR_NUMBER },
80
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_P_MAX, type: TABULAR_NUMBER },
81
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MIN_P_MAX, type: TABULAR_NUMBER },
82
+ { id: TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_Q_MAX_P_MAX, type: TABULAR_NUMBER }
83
+ ];
84
+ const VOLTAGE_REGULATION_FIELDS = [
85
+ { id: TabularFieldConstants.VOLTAGE_REGULATION_ON, type: TABULAR_BOOLEAN },
86
+ { id: FieldConstants.TARGET_V, type: TABULAR_NUMBER },
87
+ { id: TabularFieldConstants.REGULATING_TERMINAL_ID },
88
+ { id: TabularFieldConstants.REGULATING_TERMINAL_TYPE, type: TABULAR_ENUM, options: REGULATING_TERMINAL_TYPES },
89
+ { id: FieldConstants.REGULATING_TERMINAL_VOLTAGE_LEVEL_ID }
90
+ ];
91
+ const CONNECTION_FIELDS = [
92
+ { id: FieldConstants.CONNECTED, type: TABULAR_BOOLEAN },
93
+ { id: FieldConstants.CONNECTION_NAME },
94
+ {
95
+ id: FieldConstants.CONNECTION_DIRECTION,
96
+ type: TABULAR_ENUM,
97
+ options: CONNECTION_DIRECTIONS.map((direction) => direction.id)
98
+ },
99
+ { id: FieldConstants.CONNECTION_POSITION, type: TABULAR_NUMBER }
100
+ ];
101
+ const TWO_SIDES_CONNECTION_FIELDS = [
102
+ { id: TabularFieldConstants.CONNECTED1, type: TABULAR_BOOLEAN },
103
+ { id: TabularFieldConstants.CONNECTION_NAME1 },
104
+ {
105
+ id: TabularFieldConstants.CONNECTION_DIRECTION1,
106
+ type: TABULAR_ENUM,
107
+ options: CONNECTION_DIRECTIONS.map((direction) => direction.id)
108
+ },
109
+ { id: TabularFieldConstants.CONNECTION_POSITION1, type: TABULAR_NUMBER },
110
+ { id: TabularFieldConstants.CONNECTED2, type: TABULAR_BOOLEAN },
111
+ { id: TabularFieldConstants.CONNECTION_NAME2 },
112
+ {
113
+ id: TabularFieldConstants.CONNECTION_DIRECTION2,
114
+ type: TABULAR_ENUM,
115
+ options: CONNECTION_DIRECTIONS.map((direction) => direction.id)
116
+ },
117
+ { id: TabularFieldConstants.CONNECTION_POSITION2, type: TABULAR_NUMBER }
118
+ ];
119
+ const TABULAR_MODIFICATION_FIELDS = {
120
+ SUBSTATION: [
121
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
122
+ { id: FieldConstants.EQUIPMENT_NAME },
123
+ { id: FieldConstants.COUNTRY }
124
+ ],
125
+ VOLTAGE_LEVEL: [
126
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
127
+ { id: FieldConstants.EQUIPMENT_NAME },
128
+ { id: FieldConstants.NOMINAL_V, type: TABULAR_NUMBER },
129
+ { id: FieldConstants.LOW_VOLTAGE_LIMIT, type: TABULAR_NUMBER },
130
+ { id: FieldConstants.HIGH_VOLTAGE_LIMIT, type: TABULAR_NUMBER },
131
+ { id: TabularFieldConstants.IP_MIN, type: TABULAR_NUMBER },
132
+ { id: TabularFieldConstants.IP_MAX, type: TABULAR_NUMBER }
133
+ ],
134
+ LINE: [
135
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
136
+ { id: FieldConstants.EQUIPMENT_NAME },
137
+ { id: FieldConstants.R, type: TABULAR_NUMBER },
138
+ { id: FieldConstants.X, type: TABULAR_NUMBER },
139
+ { id: FieldConstants.G1, type: TABULAR_NUMBER },
140
+ { id: FieldConstants.G2, type: TABULAR_NUMBER },
141
+ { id: FieldConstants.B1, type: TABULAR_NUMBER },
142
+ { id: FieldConstants.B2, type: TABULAR_NUMBER },
143
+ ...TWO_SIDES_CONNECTION_FIELDS
144
+ ],
145
+ TWO_WINDINGS_TRANSFORMER: [
146
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
147
+ { id: FieldConstants.EQUIPMENT_NAME },
148
+ { id: FieldConstants.R, type: TABULAR_NUMBER },
149
+ { id: FieldConstants.X, type: TABULAR_NUMBER },
150
+ { id: FieldConstants.G, type: TABULAR_NUMBER },
151
+ { id: FieldConstants.B, type: TABULAR_NUMBER },
152
+ { id: FieldConstants.RATED_U1, type: TABULAR_NUMBER },
153
+ { id: FieldConstants.RATED_U2, type: TABULAR_NUMBER },
154
+ { id: FieldConstants.RATED_S, type: TABULAR_NUMBER },
155
+ ...TWO_SIDES_CONNECTION_FIELDS,
156
+ { id: TabularFieldConstants.RATIO_TAP_CHANGER_LOAD_TAP_CHANGING_CAPABILITIES, type: TABULAR_BOOLEAN },
157
+ {
158
+ id: TabularFieldConstants.RATIO_TAP_CHANGER_REGULATION_SIDE,
159
+ type: TABULAR_ENUM,
160
+ options: Object.values(REGULATION_SIDES).map((side) => side.id)
161
+ }
162
+ ],
163
+ GENERATOR: [
164
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
165
+ { id: FieldConstants.EQUIPMENT_NAME },
166
+ { id: FieldConstants.ENERGY_SOURCE, type: TABULAR_ENUM, options: ENERGY_SOURCES.map((energy) => energy.id) },
167
+ ...CONNECTION_FIELDS,
168
+ { id: TabularFieldConstants.MIN_P, type: TABULAR_NUMBER },
169
+ { id: TabularFieldConstants.MAX_P, type: TABULAR_NUMBER },
170
+ { id: FieldConstants.RATED_S, type: TABULAR_NUMBER },
171
+ { id: FieldConstants.MIN_Q, type: TABULAR_NUMBER },
172
+ { id: FieldConstants.MAX_Q, type: TABULAR_NUMBER },
173
+ ...REACTIVE_CAPABILITY_CURVE_FIELDS,
174
+ { id: TabularFieldConstants.TARGET_P, type: TABULAR_NUMBER },
175
+ { id: TabularFieldConstants.TARGET_Q, type: TABULAR_NUMBER },
176
+ ...VOLTAGE_REGULATION_FIELDS,
177
+ { id: FieldConstants.Q_PERCENT, type: TABULAR_NUMBER },
178
+ { id: TabularFieldConstants.PARTICIPATE, type: TABULAR_BOOLEAN },
179
+ { id: FieldConstants.DROOP, type: TABULAR_NUMBER },
180
+ { id: FieldConstants.TRANSIENT_REACTANCE, type: TABULAR_NUMBER },
181
+ { id: TabularFieldConstants.STEP_UP_TRANSFORMER_REACTANCE, type: TABULAR_NUMBER },
182
+ { id: FieldConstants.PLANNED_ACTIVE_POWER_SET_POINT, type: TABULAR_NUMBER },
183
+ { id: FieldConstants.MARGINAL_COST, type: TABULAR_NUMBER },
184
+ { id: FieldConstants.PLANNED_OUTAGE_RATE, type: TABULAR_NUMBER },
185
+ { id: FieldConstants.FORCED_OUTAGE_RATE, type: TABULAR_NUMBER }
186
+ ],
187
+ LOAD: [
188
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
189
+ { id: FieldConstants.EQUIPMENT_NAME },
190
+ {
191
+ id: FieldConstants.LOAD_TYPE,
192
+ type: TABULAR_ENUM,
193
+ options: LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION.map((load) => load.id)
194
+ },
195
+ ...CONNECTION_FIELDS,
196
+ { id: TabularFieldConstants.P0, type: TABULAR_NUMBER },
197
+ { id: FieldConstants.Q0, type: TABULAR_NUMBER }
198
+ ],
199
+ BATTERY: [
200
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
201
+ { id: FieldConstants.EQUIPMENT_NAME },
202
+ ...CONNECTION_FIELDS,
203
+ { id: TabularFieldConstants.MIN_P, type: TABULAR_NUMBER },
204
+ { id: TabularFieldConstants.MAX_P, type: TABULAR_NUMBER },
205
+ { id: FieldConstants.MIN_Q, type: TABULAR_NUMBER },
206
+ { id: FieldConstants.MAX_Q, type: TABULAR_NUMBER },
207
+ ...REACTIVE_CAPABILITY_CURVE_FIELDS,
208
+ { id: TabularFieldConstants.TARGET_P, type: TABULAR_NUMBER },
209
+ { id: TabularFieldConstants.TARGET_Q, type: TABULAR_NUMBER },
210
+ { id: TabularFieldConstants.PARTICIPATE, type: TABULAR_BOOLEAN },
211
+ { id: FieldConstants.DROOP, type: TABULAR_NUMBER },
212
+ ...VOLTAGE_REGULATION_FIELDS
213
+ ],
214
+ SHUNT_COMPENSATOR: [
215
+ { id: TabularFieldConstants.EQUIPMENT_ID, required: true },
216
+ { id: FieldConstants.EQUIPMENT_NAME },
217
+ ...CONNECTION_FIELDS,
218
+ { id: FieldConstants.MAXIMUM_SECTION_COUNT, type: TABULAR_NUMBER },
219
+ { id: FieldConstants.SECTION_COUNT, type: TABULAR_NUMBER },
220
+ {
221
+ id: FieldConstants.SHUNT_COMPENSATOR_TYPE,
222
+ type: TABULAR_ENUM,
223
+ options: Object.keys(SHUNT_COMPENSATOR_TYPES)
224
+ },
225
+ { id: FieldConstants.MAX_Q_AT_NOMINAL_V, type: TABULAR_NUMBER },
226
+ { id: FieldConstants.MAX_SUSCEPTANCE, type: TABULAR_NUMBER }
227
+ ]
228
+ };
229
+ const TABULAR_MODIFICATION_TYPES = {
230
+ GENERATOR: MODIFICATION_TYPES.GENERATOR_MODIFICATION.type,
231
+ LOAD: MODIFICATION_TYPES.LOAD_MODIFICATION.type,
232
+ BATTERY: MODIFICATION_TYPES.BATTERY_MODIFICATION.type,
233
+ VOLTAGE_LEVEL: MODIFICATION_TYPES.VOLTAGE_LEVEL_MODIFICATION.type,
234
+ SHUNT_COMPENSATOR: MODIFICATION_TYPES.SHUNT_COMPENSATOR_MODIFICATION.type,
235
+ LINE: MODIFICATION_TYPES.LINE_MODIFICATION.type,
236
+ TWO_WINDINGS_TRANSFORMER: MODIFICATION_TYPES.TWO_WINDINGS_TRANSFORMER_MODIFICATION.type,
237
+ SUBSTATION: MODIFICATION_TYPES.SUBSTATION_MODIFICATION.type
238
+ };
239
+ const getEquipmentTypeFromModificationType = (type) => {
240
+ return Object.keys(TABULAR_MODIFICATION_TYPES).find((key) => TABULAR_MODIFICATION_TYPES[key] === type);
241
+ };
242
+ const convertCamelToSnake = (key) => FieldType[key.split(/\.?(?=[A-Z])/).join("_").toUpperCase()];
243
+ const convertInputValues = (key, value) => {
244
+ if (key === TabularFieldConstants.EQUIPMENT_ID) {
245
+ return value;
246
+ }
247
+ return convertInputValue(convertCamelToSnake(key), value?.value);
248
+ };
249
+ const convertOutputValues = (key, value) => {
250
+ if (key === TabularFieldConstants.EQUIPMENT_ID) {
251
+ return value;
252
+ }
253
+ return toModificationOperation(convertOutputValue(convertCamelToSnake(key), value));
254
+ };
255
+ const getTabularFieldType = (modificationType, key) => {
256
+ let fieldType = key;
257
+ if (modificationType === TABULAR_MODIFICATION_TYPES.VOLTAGE_LEVEL) {
258
+ if (key === TabularFieldConstants.IP_MIN) {
259
+ fieldType = FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT;
260
+ } else if (key === TabularFieldConstants.IP_MAX) {
261
+ fieldType = FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT;
262
+ }
263
+ }
264
+ return fieldType;
265
+ };
266
+ const convertGeneratorOrBatteryModificationFromBackToFront = (modification) => {
267
+ const formattedModification = {};
268
+ Object.keys(modification).forEach((key) => {
269
+ if (key === TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_POINTS) {
270
+ convertReactiveCapabilityCurvePointsFromBackToFront(
271
+ modification[key]
272
+ ).forEach((point) => {
273
+ formattedModification[point.key] = point.value;
274
+ });
275
+ } else {
276
+ formattedModification[key] = convertInputValues(key, modification[key]);
277
+ }
278
+ });
279
+ return formattedModification;
280
+ };
281
+ const convertGeneratorOrBatteryModificationFromFrontToBack = (modification) => {
282
+ const formattedModification = { ...modification };
283
+ convertReactiveCapabilityCurvePointsFromFrontToBack(formattedModification);
284
+ REACTIVE_CAPABILITY_CURVE_FIELDS.forEach((field) => {
285
+ if (field.id !== TabularFieldConstants.REACTIVE_CAPABILITY_CURVE) {
286
+ delete formattedModification[field.id];
287
+ }
288
+ });
289
+ Object.keys(formattedModification).forEach((key) => {
290
+ if (key !== TabularFieldConstants.REACTIVE_CAPABILITY_CURVE_POINTS) {
291
+ formattedModification[key] = convertOutputValues(key, formattedModification[key]);
292
+ }
293
+ });
294
+ return formattedModification;
295
+ };
296
+ const TWT_TAP_CHANGER_FIELDS = [
297
+ TabularFieldConstants.RATIO_TAP_CHANGER_LOAD_TAP_CHANGING_CAPABILITIES,
298
+ TabularFieldConstants.RATIO_TAP_CHANGER_REGULATION_SIDE
299
+ ];
300
+ const convertTWTTapChangerModificationFromFrontToBack = (modification) => {
301
+ if (!modification) {
302
+ return {};
303
+ }
304
+ const formattedModification = { ...modification };
305
+ if (TWT_TAP_CHANGER_FIELDS.some((field) => field in formattedModification)) {
306
+ formattedModification[FieldConstants.RATIO_TAP_CHANGER] = {
307
+ [FieldConstants.LOAD_TAP_CHANGING_CAPABILITIES]: formattedModification[TabularFieldConstants.RATIO_TAP_CHANGER_LOAD_TAP_CHANGING_CAPABILITIES],
308
+ [FieldConstants.REGULATION_SIDE]: formattedModification[TabularFieldConstants.RATIO_TAP_CHANGER_REGULATION_SIDE]
309
+ };
310
+ TWT_TAP_CHANGER_FIELDS.forEach((field) => {
311
+ delete formattedModification[field];
312
+ });
313
+ }
314
+ Object.keys(formattedModification).forEach((key) => {
315
+ if (key === FieldConstants.RATIO_TAP_CHANGER) {
316
+ Object.keys(formattedModification[FieldConstants.RATIO_TAP_CHANGER]).forEach((ratioKey) => {
317
+ formattedModification[FieldConstants.RATIO_TAP_CHANGER][ratioKey] = convertOutputValues(
318
+ ratioKey,
319
+ formattedModification[FieldConstants.RATIO_TAP_CHANGER][ratioKey]
320
+ );
321
+ });
322
+ } else {
323
+ formattedModification[key] = convertOutputValues(key, formattedModification[key]);
324
+ }
325
+ });
326
+ return formattedModification;
327
+ };
328
+ const MODIFICATION_TRANSFORMATION_STRATEGIES = {
329
+ [TABULAR_MODIFICATION_TYPES.GENERATOR]: (row) => convertGeneratorOrBatteryModificationFromFrontToBack(row),
330
+ [TABULAR_MODIFICATION_TYPES.BATTERY]: (row) => convertGeneratorOrBatteryModificationFromFrontToBack(row),
331
+ [TABULAR_MODIFICATION_TYPES.TWO_WINDINGS_TRANSFORMER]: (row) => convertTWTTapChangerModificationFromFrontToBack(row),
332
+ // Default strategy for other modification types
333
+ default: (row, modificationType) => {
334
+ const transformedRow = {};
335
+ Object.keys(row).forEach((key) => {
336
+ transformedRow[key] = convertOutputValues(getTabularFieldType(modificationType, key), row[key]);
337
+ });
338
+ return transformedRow;
339
+ }
340
+ };
341
+ const transformRowToBackEndModification = (row, modificationType) => {
342
+ const propertiesModifications = transformProperties(row);
343
+ const transformationStrategy = MODIFICATION_TRANSFORMATION_STRATEGIES[modificationType] ?? MODIFICATION_TRANSFORMATION_STRATEGIES.default;
344
+ const transformedData = transformationStrategy(row, modificationType);
345
+ if (propertiesModifications.length > 0) {
346
+ transformedData[TabularFieldConstants.TABULAR_PROPERTIES] = propertiesModifications;
347
+ }
348
+ return {
349
+ type: modificationType,
350
+ ...transformedData
351
+ };
352
+ };
353
+ const transformModificationsTable = (modificationType, modificationsTable = []) => {
354
+ if (!modificationsTable?.length) {
355
+ return [];
356
+ }
357
+ return modificationsTable.map((row) => transformRowToBackEndModification(row, modificationType));
358
+ };
359
+ const tabularModificationDtoToForm = (dto) => {
360
+ const { modificationType } = dto;
361
+ const modifications = (dto?.modifications ?? []).map((modif) => {
362
+ let modification = formatModification(modif);
363
+ if (modificationType === TABULAR_MODIFICATION_TYPES.GENERATOR || modificationType === TABULAR_MODIFICATION_TYPES.BATTERY) {
364
+ modification = convertGeneratorOrBatteryModificationFromBackToFront(modification);
365
+ } else {
366
+ Object.keys(modification).forEach((key) => {
367
+ modification[key] = convertInputValues(getTabularFieldType(modificationType, key), modif[key]);
368
+ });
369
+ }
370
+ modification = addPropertiesFromBack(modification, modif?.[TabularFieldConstants.TABULAR_PROPERTIES]);
371
+ return { [FieldConstants.AG_GRID_ROW_UUID]: v4(), ...modification };
372
+ });
373
+ return {
374
+ [FieldConstants.TYPE]: getEquipmentTypeFromModificationType(modificationType) ?? "",
375
+ [TabularFieldConstants.MODIFICATIONS_TABLE]: modifications,
376
+ [TabularFieldConstants.TABULAR_PROPERTIES]: dto?.properties,
377
+ [TabularFieldConstants.CSV_FILENAME]: dto?.csvFilename
378
+ };
379
+ };
380
+ const tabularModificationFormToDto = (form) => {
381
+ const modificationType = TABULAR_MODIFICATION_TYPES[form[FieldConstants.TYPE]];
382
+ return {
383
+ type: ModificationType.TABULAR_MODIFICATION,
384
+ modificationType,
385
+ modifications: transformModificationsTable(modificationType, form[TabularFieldConstants.MODIFICATIONS_TABLE]),
386
+ csvFilename: form[TabularFieldConstants.CSV_FILENAME],
387
+ properties: form[TabularFieldConstants.TABULAR_PROPERTIES]
388
+ };
389
+ };
390
+ export {
391
+ MODIFICATION_TRANSFORMATION_STRATEGIES,
392
+ TABULAR_MODIFICATION_FIELDS,
393
+ TABULAR_MODIFICATION_TYPES,
394
+ TWT_TAP_CHANGER_FIELDS,
395
+ convertGeneratorOrBatteryModificationFromBackToFront,
396
+ convertGeneratorOrBatteryModificationFromFrontToBack,
397
+ convertInputValues,
398
+ convertOutputValues,
399
+ convertTWTTapChangerModificationFromFrontToBack,
400
+ getEquipmentTypeFromModificationType,
401
+ getTabularFieldType,
402
+ tabularModificationDtoToForm,
403
+ tabularModificationFormToDto,
404
+ transformModificationsTable,
405
+ transformRowToBackEndModification
406
+ };
@@ -8,7 +8,8 @@ export * from './coupling-device';
8
8
  export * from './creation';
9
9
  export * from './voltage-level.type';
10
10
  export * from './modification';
11
- export * from './topology';
11
+ export * from './topology/creation';
12
+ export * from './topology/modification';
12
13
  export * from './section';
13
14
  export * from './moveFeederBays';
14
15
  export * from './common';
@@ -70,8 +70,11 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
70
70
  import { SwitchKind } from "./creation/voltageLevelCreation.types.js";
71
71
  import { VoltageLevelModificationForm } from "./modification/VoltageLevelModificationForm.js";
72
72
  import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./modification/voltageLevelModification.utils.js";
73
- import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./topology/voltageLevelTopologyCreation.utils.js";
74
- import { CreateVoltageLevelTopologyForm } from "./topology/CreateVoltageLevelTopologyForm.js";
73
+ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./topology/creation/voltageLevelTopologyCreation.utils.js";
74
+ import { CreateVoltageLevelTopologyForm } from "./topology/creation/CreateVoltageLevelTopologyForm.js";
75
+ import { voltageLevelTopologyModificationDtoToForm, voltageLevelTopologyModificationEmptyFormData, voltageLevelTopologyModificationFormSchema, voltageLevelTopologyModificationFormToDto } from "./topology/modification/voltageLevelTopologyModification.utils.js";
76
+ import { VoltageLevelTopologyModificationForm } from "./topology/modification/VoltageLevelTopologyModificationForm.js";
77
+ import { CURRENT_CONNECTION_STATUS, PREV_CONNECTION_STATUS, SWITCH_ID, TOPOLOGY_MODIFICATION_TABLE } from "./topology/modification/constants.js";
75
78
  import { VoltageLevelSectionCreationForm } from "./section/VoltageLevelSectionCreationForm.js";
76
79
  import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./section/voltageLevelSectionCreation.utils.js";
77
80
  import { FeederBayPositionCellRenderer } from "./moveFeederBays/feederBay/FeederBayPositionCellRender.js";
@@ -80,6 +83,7 @@ import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoT
80
83
  import { MoveVoltageLevelFeederBaysForm } from "./moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
81
84
  import { HeaderWithTooltip } from "./common/HeaderWithTooltip.js";
82
85
  export {
86
+ CURRENT_CONNECTION_STATUS,
83
87
  CouplingDeviceCreationForm,
84
88
  CreateVoltageLevelTopologyForm,
85
89
  FeederBayDirectionCellRenderer,
@@ -88,12 +92,16 @@ export {
88
92
  MAX_SECTIONS_COUNT,
89
93
  MoveVoltageLevelFeederBaysForm,
90
94
  POSITION_NEW_SECTION_SIDE,
95
+ PREV_CONNECTION_STATUS,
96
+ SWITCH_ID,
91
97
  SWITCH_TYPE,
92
98
  SwitchKind,
93
99
  SwitchesBetweenSections,
100
+ TOPOLOGY_MODIFICATION_TABLE,
94
101
  VoltageLevelCreationForm,
95
102
  VoltageLevelModificationForm,
96
103
  VoltageLevelSectionCreationForm,
104
+ VoltageLevelTopologyModificationForm,
97
105
  buildNewBusbarSections,
98
106
  couplingDeviceCreationDtoToForm,
99
107
  couplingDeviceCreationFormSchema,
@@ -124,5 +132,9 @@ export {
124
132
  voltageLevelSectionCreationDtoToForm,
125
133
  voltageLevelSectionCreationEmptyFormData,
126
134
  voltageLevelSectionCreationFormSchema,
127
- voltageLevelSectionCreationFormToDto
135
+ voltageLevelSectionCreationFormToDto,
136
+ voltageLevelTopologyModificationDtoToForm,
137
+ voltageLevelTopologyModificationEmptyFormData,
138
+ voltageLevelTopologyModificationFormSchema,
139
+ voltageLevelTopologyModificationFormToDto
128
140
  };
@@ -1,4 +1,4 @@
1
- import { PositionDiagramPaneType } from '../../common';
1
+ import { PositionDiagramPaneType } from '../../../common';
2
2
  export interface CreateVoltageLevelTopologyFormProps {
3
3
  voltageLevelId: string;
4
4
  PositionDiagramPane?: PositionDiagramPaneType;
@@ -4,70 +4,70 @@ import { TextField, Stack, Grid, Button, Tooltip, Box } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { InfoOutlined } from "@mui/icons-material";
6
6
  import { useFormContext, useWatch } from "react-hook-form";
7
- import "../../../../components/ui/overflowableText/OverflowableText.js";
8
- import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
9
- import "../../../../utils/conversionUtils.js";
10
- import "../../../../utils/types/equipmentType.js";
7
+ import "../../../../../components/ui/overflowableText/OverflowableText.js";
8
+ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
9
+ import "../../../../../utils/conversionUtils.js";
10
+ import "../../../../../utils/types/equipmentType.js";
11
11
  import "localized-countries";
12
12
  import "localized-countries/data/fr";
13
13
  import "localized-countries/data/en";
14
14
  import "notistack";
15
- import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
- import { useCustomFormContext } from "../../../../components/ui/reactHookForm/provider/useCustomFormContext.js";
15
+ import "../../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
+ import { useCustomFormContext } from "../../../../../components/ui/reactHookForm/provider/useCustomFormContext.js";
17
17
  import "yup";
18
- import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
19
- import { IntegerInput } from "../../../../components/ui/reactHookForm/numbers/IntegerInput.js";
20
- import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
18
+ import "../../../../../components/ui/treeViewFinder/TreeViewFinder.js";
19
+ import { IntegerInput } from "../../../../../components/ui/reactHookForm/numbers/IntegerInput.js";
20
+ import "../../../../../components/ui/reactHookForm/numbers/RangeInput.js";
21
21
  import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
22
22
  import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
23
23
  import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
24
24
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
25
25
  import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
26
- import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
27
- import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
28
- import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
26
+ import "../../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
27
+ import "../../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
28
+ import "../../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
29
29
  import "@hello-pangea/dnd";
30
- import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
31
- import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
+ import "../../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
31
+ import "../../../../../components/ui/snackbarProvider/SnackbarProvider.js";
32
32
  import "mui-nested-menu";
33
33
  import "react-resizable-panels";
34
34
  import "react-papaparse";
35
- import { SwitchesBetweenSections } from "../creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
36
- import { filledTextField } from "../../common/form.utils.js";
37
- import "../../common/properties/propertyUtils.js";
35
+ import { SwitchesBetweenSections } from "../../creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
36
+ import { filledTextField } from "../../../common/form.utils.js";
37
+ import "../../../common/properties/propertyUtils.js";
38
38
  import "react-dom";
39
39
  import "autosuggest-highlight/match";
40
40
  import "autosuggest-highlight/parse";
41
41
  import "clsx";
42
- import "../../../../components/composite/filter/FilterCreationDialog.js";
43
- import "../../../../components/composite/filter/HeaderFilterForm.js";
44
- import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
45
- import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
46
- import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
47
- import "../../../../components/composite/filter/expert/expertFilterConstants.js";
42
+ import "../../../../../components/composite/filter/FilterCreationDialog.js";
43
+ import "../../../../../components/composite/filter/HeaderFilterForm.js";
44
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
45
+ import "../../../../../components/composite/filter/expert/ExpertFilterForm.js";
46
+ import "../../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
47
+ import "../../../../../components/composite/filter/expert/expertFilterConstants.js";
48
48
  import "react-querybuilder";
49
49
  import "uuid";
50
- import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
51
- import "../../../../components/composite/filter/utils/filterFormUtils.js";
50
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
51
+ import "../../../../../components/composite/filter/utils/filterFormUtils.js";
52
52
  import "@react-querybuilder/material";
53
- import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
54
- import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
55
- import "../../../../components/composite/agGridTable/BottomTableButtons.js";
56
- import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
53
+ import "../../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
54
+ import "../../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
55
+ import "../../../../../components/composite/agGridTable/BottomTableButtons.js";
56
+ import "../../../../../components/composite/agGridTable/CustomAgGridTable.js";
57
57
  import "ag-grid-community";
58
- import "../../../../components/composite/customAGGrid/customAggrid.js";
59
- import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
58
+ import "../../../../../components/composite/customAGGrid/customAggrid.js";
59
+ import "../../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
60
60
  import "mathjs";
61
- import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
61
+ import "../../../../../components/composite/report/report-viewer/log-table/log-table.js";
62
62
  import "react-window";
63
- import "../../../../components/composite/report/report-treeview/treeview-item.js";
64
- import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
65
- import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
63
+ import "../../../../../components/composite/report/report-treeview/treeview-item.js";
64
+ import "../../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
65
+ import "../../../common/regulatingTerminal/RegulatingTerminalForm.js";
66
66
  import "@mui/material/colors";
67
67
  import "@mui/x-charts";
68
- import "../../common/currentLimits/limitsPane.utils.js";
69
- import "../creation/voltageLevel.constants.js";
70
- import "../creation/voltageLevelCreation.utils.js";
68
+ import "../../../common/currentLimits/limitsPane.utils.js";
69
+ import "../../creation/voltageLevel.constants.js";
70
+ import "../../creation/voltageLevelCreation.utils.js";
71
71
  function CreateVoltageLevelTopologyForm({
72
72
  voltageLevelId,
73
73
  PositionDiagramPane
@@ -1,4 +1,4 @@
1
- import { ModificationType } from '../../../../utils';
1
+ import { ModificationType } from '../../../../../utils';
2
2
  export interface CreateVoltageLevelTopologyDto {
3
3
  type: ModificationType;
4
4
  uuid?: string;
@@ -1,5 +1,5 @@
1
1
  import { IntlShape } from 'react-intl';
2
- import { DeepNullable } from '../../../../utils';
2
+ import { DeepNullable } from '../../../../../utils';
3
3
  import { CreateVoltageLevelTopologyDto } from './voltageLevelTopologyCreation.types';
4
4
  /**
5
5
  * Copyright (c) 2026, RTE (http://www.rte-france.com)