@gridsuite/commons-ui 0.279.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 (132) hide show
  1. package/dist/components/composite/customAGGrid/separatorCellRenderer.d.ts +7 -2
  2. package/dist/components/composite/customAGGrid/separatorCellRenderer.js +2 -2
  3. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
  4. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
  5. package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
  6. package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
  7. package/dist/features/index.js +93 -3
  8. package/dist/features/network-modifications/index.d.ts +1 -0
  9. package/dist/features/network-modifications/index.js +91 -3
  10. package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
  11. package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
  12. package/dist/features/network-modifications/tabular/index.d.ts +7 -0
  13. package/dist/features/network-modifications/tabular/index.js +65 -0
  14. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
  15. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
  16. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
  17. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
  18. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
  19. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
  20. package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
  21. package/dist/features/network-modifications/tabular/properties/index.js +13 -0
  22. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
  23. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
  24. package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
  25. package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
  26. package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
  27. package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
  28. package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
  29. package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
  30. package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
  31. package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
  32. package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
  33. package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
  34. package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.d.ts +8 -0
  35. package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +119 -0
  36. package/dist/features/network-modifications/voltageLevel/common/index.d.ts +1 -0
  37. package/dist/features/network-modifications/voltageLevel/common/index.js +4 -0
  38. package/dist/features/network-modifications/voltageLevel/index.d.ts +4 -1
  39. package/dist/features/network-modifications/voltageLevel/index.js +28 -3
  40. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.d.ts +8 -0
  41. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +387 -0
  42. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.d.ts +6 -0
  43. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js +64 -0
  44. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.d.ts +6 -0
  45. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +102 -0
  46. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.d.ts +2 -0
  47. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.js +6 -0
  48. package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.d.ts +4 -0
  49. package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.js +13 -0
  50. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.d.ts +36 -0
  51. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.d.ts +37 -0
  52. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js +86 -0
  53. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
  54. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
  55. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
  56. package/dist/features/network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.types.js +1 -0
  57. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
  58. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
  59. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
  60. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
  61. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
  62. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
  63. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
  64. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
  65. package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
  66. package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
  67. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
  68. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
  69. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
  70. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
  71. package/dist/features/parameters/common/index.d.ts +1 -0
  72. package/dist/features/parameters/common/index.js +2 -0
  73. package/dist/features/parameters/common/parameter-field.d.ts +2 -2
  74. package/dist/features/parameters/common/parameter-field.js +1 -1
  75. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
  76. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
  77. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
  78. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
  79. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
  80. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
  81. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
  82. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
  83. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
  84. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
  85. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
  86. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
  87. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
  88. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
  89. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
  90. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
  91. package/dist/features/parameters/index.js +2 -0
  92. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
  93. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
  94. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
  95. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
  96. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
  97. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
  98. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
  99. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
  100. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
  101. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
  102. package/dist/features/side-bar/AppSideBarHeader.js +20 -5
  103. package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
  104. package/dist/features/side-bar/EnvironmentChip.js +49 -0
  105. package/dist/index.js +97 -5
  106. package/dist/services/appsMetadata.d.ts +2 -0
  107. package/dist/services/directory.d.ts +1 -1
  108. package/dist/services/directory.js +6 -2
  109. package/dist/services/index.js +2 -1
  110. package/dist/services/userAdmin.d.ts +2 -1
  111. package/dist/services/userAdmin.js +9 -1
  112. package/dist/translations/en/businessErrorsEn.d.ts +1 -0
  113. package/dist/translations/en/businessErrorsEn.js +1 -0
  114. package/dist/translations/en/networkModificationsEn.d.ts +97 -0
  115. package/dist/translations/en/networkModificationsEn.js +103 -1
  116. package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
  117. package/dist/translations/fr/businessErrorsFr.js +1 -0
  118. package/dist/translations/fr/networkModificationsFr.d.ts +97 -0
  119. package/dist/translations/fr/networkModificationsFr.js +103 -1
  120. package/dist/utils/constants/fieldConstants.d.ts +7 -1
  121. package/dist/utils/constants/fieldConstants.js +6 -0
  122. package/dist/utils/constants/index.js +2 -1
  123. package/dist/utils/constants/notificationsProvider.d.ts +1 -0
  124. package/dist/utils/constants/notificationsProvider.js +1 -0
  125. package/dist/utils/constants/translationKeys.d.ts +1 -0
  126. package/dist/utils/constants/translationKeys.js +2 -0
  127. package/dist/utils/index.js +2 -1
  128. package/dist/utils/types/types.d.ts +4 -0
  129. package/package.json +1 -1
  130. /package/dist/features/network-modifications/voltageLevel/{topology/voltageLevelTopologyCreation.types.js → moveFeederBays/moveVoltageLevelFeederBays.type.js} +0 -0
  131. /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
  132. /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.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
+ };
@@ -0,0 +1,8 @@
1
+ type HeaderWithTooltipProps = {
2
+ displayName: string;
3
+ tooltipTitle: string;
4
+ isNodeBuilt: boolean;
5
+ disabledTooltip: boolean;
6
+ };
7
+ export declare function HeaderWithTooltip({ displayName, tooltipTitle, isNodeBuilt, disabledTooltip, }: Readonly<HeaderWithTooltipProps>): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,119 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Box, FormHelperText } from "@mui/material";
3
+ import { InfoOutlined, WarningAmberRounded } from "@mui/icons-material";
4
+ import "react-intl";
5
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
6
+ import "../../../../utils/conversionUtils.js";
7
+ import "../../../../utils/types/equipmentType.js";
8
+ import "react";
9
+ import "react-hook-form";
10
+ import "localized-countries";
11
+ import "localized-countries/data/fr";
12
+ import "localized-countries/data/en";
13
+ import "notistack";
14
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
15
+ import "yup";
16
+ import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.js";
17
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
19
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
20
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
22
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
23
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
24
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
25
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
26
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
27
+ import "@hello-pangea/dnd";
28
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
29
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
+ import "mui-nested-menu";
31
+ import "react-resizable-panels";
32
+ import "react-papaparse";
33
+ import "react-dom";
34
+ import "autosuggest-highlight/match";
35
+ import "autosuggest-highlight/parse";
36
+ import "clsx";
37
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
38
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
39
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
40
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
41
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
42
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
43
+ import "react-querybuilder";
44
+ import "uuid";
45
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
46
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
47
+ import "@react-querybuilder/material";
48
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
49
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
50
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
51
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
52
+ import "ag-grid-community";
53
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
54
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
55
+ import "mathjs";
56
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
57
+ import "react-window";
58
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
59
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
60
+ function HeaderWithTooltip({
61
+ displayName,
62
+ tooltipTitle,
63
+ isNodeBuilt,
64
+ disabledTooltip
65
+ }) {
66
+ return /* @__PURE__ */ jsxs(
67
+ Box,
68
+ {
69
+ sx: {
70
+ display: "flex",
71
+ alignItems: "center",
72
+ justifyContent: "center",
73
+ width: "100%",
74
+ height: "100%",
75
+ padding: "0 4px"
76
+ },
77
+ children: [
78
+ /* @__PURE__ */ jsx("span", { style: { marginRight: "8px" }, children: displayName }),
79
+ !disabledTooltip && /* @__PURE__ */ jsx(
80
+ FormHelperText,
81
+ {
82
+ error: false,
83
+ sx: {
84
+ m: 0,
85
+ p: 0,
86
+ minWidth: "auto",
87
+ lineHeight: 1,
88
+ display: "flex"
89
+ },
90
+ children: /* @__PURE__ */ jsx(
91
+ CustomTooltip,
92
+ {
93
+ title: tooltipTitle,
94
+ placement: "right",
95
+ arrow: true,
96
+ slotProps: {
97
+ popper: {
98
+ modifiers: [
99
+ {
100
+ name: "offset",
101
+ options: {
102
+ offset: [0, -10]
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ children: /* @__PURE__ */ jsx("span", { style: { display: "flex", alignItems: "center" }, children: isNodeBuilt ? /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "small" }) : /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "small" }) })
109
+ }
110
+ )
111
+ }
112
+ )
113
+ ]
114
+ }
115
+ );
116
+ }
117
+ export {
118
+ HeaderWithTooltip
119
+ };
@@ -0,0 +1 @@
1
+ export * from './HeaderWithTooltip';
@@ -0,0 +1,4 @@
1
+ import { HeaderWithTooltip } from "./HeaderWithTooltip.js";
2
+ export {
3
+ HeaderWithTooltip
4
+ };
@@ -8,5 +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';
14
+ export * from './moveFeederBays';
15
+ export * from './common';
@@ -70,21 +70,38 @@ 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";
80
+ import { FeederBayPositionCellRenderer } from "./moveFeederBays/feederBay/FeederBayPositionCellRender.js";
81
+ import { FeederBayDirectionCellRenderer } from "./moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
82
+ import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./moveFeederBays/moveVoltageLevelFeederBays.utils.js";
83
+ import { MoveVoltageLevelFeederBaysForm } from "./moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
84
+ import { HeaderWithTooltip } from "./common/HeaderWithTooltip.js";
77
85
  export {
86
+ CURRENT_CONNECTION_STATUS,
78
87
  CouplingDeviceCreationForm,
79
88
  CreateVoltageLevelTopologyForm,
89
+ FeederBayDirectionCellRenderer,
90
+ FeederBayPositionCellRenderer,
91
+ HeaderWithTooltip,
80
92
  MAX_SECTIONS_COUNT,
93
+ MoveVoltageLevelFeederBaysForm,
81
94
  POSITION_NEW_SECTION_SIDE,
95
+ PREV_CONNECTION_STATUS,
96
+ SWITCH_ID,
82
97
  SWITCH_TYPE,
83
98
  SwitchKind,
84
99
  SwitchesBetweenSections,
100
+ TOPOLOGY_MODIFICATION_TABLE,
85
101
  VoltageLevelCreationForm,
86
102
  VoltageLevelModificationForm,
87
103
  VoltageLevelSectionCreationForm,
104
+ VoltageLevelTopologyModificationForm,
88
105
  buildNewBusbarSections,
89
106
  couplingDeviceCreationDtoToForm,
90
107
  couplingDeviceCreationFormSchema,
@@ -94,8 +111,12 @@ export {
94
111
  createVoltageLevelTopologyFormSchema,
95
112
  createVoltageLevelTopologyFormToDto,
96
113
  emptyCouplingDeviceCreationFormData,
114
+ emptyMoveVoltageLevelFeederBaysFormData,
97
115
  getCreateSwitchesEmptyFormData,
98
116
  getCreateSwitchesValidationSchema,
117
+ moveVoltageLevelFeederBaysDtoToForm,
118
+ moveVoltageLevelFeederBaysFormSchema,
119
+ moveVoltageLevelFeederBaysFormToDto,
99
120
  translateSwitchKinds,
100
121
  voltageLevelCreationDtoToForm,
101
122
  voltageLevelCreationEmptyFormData,
@@ -111,5 +132,9 @@ export {
111
132
  voltageLevelSectionCreationDtoToForm,
112
133
  voltageLevelSectionCreationEmptyFormData,
113
134
  voltageLevelSectionCreationFormSchema,
114
- voltageLevelSectionCreationFormToDto
135
+ voltageLevelSectionCreationFormToDto,
136
+ voltageLevelTopologyModificationDtoToForm,
137
+ voltageLevelTopologyModificationEmptyFormData,
138
+ voltageLevelTopologyModificationFormSchema,
139
+ voltageLevelTopologyModificationFormToDto
115
140
  };