@gridsuite/commons-ui 0.260.0 → 0.261.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 (165) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
  2. package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
  4. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
  5. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
  6. package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
  7. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  8. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  9. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  10. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
  11. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  12. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  13. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  14. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  15. package/dist/components/composite/grid/grid-item.js +2 -2
  16. package/dist/components/composite/grid/grid-section.js +2 -2
  17. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  18. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  19. package/dist/components/composite/report/QuickSearch.js +31 -29
  20. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  21. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  22. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  23. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  24. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  25. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  26. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  27. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  28. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  30. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  32. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  33. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  34. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  35. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  36. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  37. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  38. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  39. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  40. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  41. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  42. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  43. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  44. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  45. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  46. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  47. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  48. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  49. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  50. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  51. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  52. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
  53. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  54. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  56. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  57. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  58. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  59. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  60. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  61. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  62. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  63. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  64. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  65. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  66. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  67. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  68. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  69. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  70. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  71. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  72. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  73. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  74. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  75. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  76. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  77. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  78. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  79. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  80. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  81. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  82. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  83. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  84. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  85. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  86. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  87. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  88. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  89. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  90. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  91. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  92. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  93. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  94. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  95. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  96. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  97. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  98. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  99. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  100. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  103. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  104. package/dist/features/parameters/common/line-separator.js +2 -2
  105. package/dist/features/parameters/common/parameter-field.js +6 -6
  106. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  107. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  108. package/dist/features/parameters/common/parameters.js +6 -4
  109. package/dist/features/parameters/common/provider-param.js +4 -4
  110. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  111. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  112. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  113. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  114. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  116. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  117. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  118. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  119. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  120. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  121. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  123. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  124. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  125. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  126. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  127. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  129. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  130. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  131. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  132. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  133. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  135. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  136. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  137. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  138. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  139. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  140. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  141. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  142. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  143. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  144. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  146. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  147. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  148. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  149. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  150. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  151. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  152. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  153. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  154. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  155. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  156. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  157. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  158. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  159. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  160. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  161. package/dist/features/topBar/AboutDialog.js +40 -28
  162. package/dist/features/topBar/TopBar.js +2 -2
  163. package/dist/features/topBar/UserInformationDialog.js +34 -34
  164. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  165. package/package.json +7 -7
@@ -14,8 +14,10 @@ function GeneratorDialogTabs({
14
14
  value: tabIndex,
15
15
  variant: "scrollable",
16
16
  onChange: (event, newValue) => setTabIndex(newValue),
17
- TabIndicatorProps: {
18
- sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
17
+ slotProps: {
18
+ indicator: {
19
+ sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
20
+ }
19
21
  },
20
22
  children: [
21
23
  /* @__PURE__ */ jsx(
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Box, Grid2, Stack } from "@mui/material";
2
+ import { Box, Grid, Stack } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { GeneratorDialogTab } from "./generatorTabs.utils.js";
@@ -218,7 +218,7 @@ function GeneratorDialogTabsContent({
218
218
  isModification: true
219
219
  }
220
220
  ),
221
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
221
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
222
222
  /* @__PURE__ */ jsx(
223
223
  GridItem,
224
224
  {
@@ -236,16 +236,16 @@ function GeneratorDialogTabsContent({
236
236
  }
237
237
  )
238
238
  ] }),
239
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
239
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
240
240
  /* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
241
241
  /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
242
242
  ] }) }),
243
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
243
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
244
244
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
245
245
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
246
246
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
247
247
  ] }),
248
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
248
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
249
249
  /* @__PURE__ */ jsx(
250
250
  ReactiveLimitsForm,
251
251
  {
@@ -260,11 +260,11 @@ function GeneratorDialogTabsContent({
260
260
  /* @__PURE__ */ jsx(ShortCircuitForm, { previousValues: generatorToModify?.generatorShortCircuit }),
261
261
  /* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
262
262
  /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
263
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
263
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
264
264
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
265
265
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField })
266
266
  ] }),
267
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
267
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
268
268
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
269
269
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
270
270
  ] })
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import { useWatch } from "react-hook-form";
4
4
  import { GeneratorDialogTab, GENERATOR_TAB_FIELDS } from "./generatorTabs.utils.js";
5
5
  import { GeneratorDialogHeader } from "./GeneratorDialogHeader.js";
@@ -24,8 +24,8 @@ function GeneratorModificationForm({
24
24
  );
25
25
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
26
26
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
27
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(GeneratorDialogHeader, { generatorToModify, equipmentId }) }),
28
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(GeneratorDialogHeader, { generatorToModify, equipmentId }) }),
28
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
29
29
  GeneratorDialogTabs,
30
30
  {
31
31
  tabIndex,
@@ -33,7 +33,7 @@ function GeneratorModificationForm({
33
33
  setTabIndex
34
34
  }
35
35
  ) }),
36
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
36
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
37
37
  GeneratorDialogTabsContent,
38
38
  {
39
39
  tabIndex,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { OhmAdornment, MicroSusceptanceAdornment } from "../../../../utils/constants/adornments.js";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "@mui/icons-material";
@@ -130,17 +130,17 @@ function LineCharacteristicsPane({
130
130
  );
131
131
  return /* @__PURE__ */ jsxs(Fragment, { children: [
132
132
  /* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
133
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
133
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
134
134
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: seriesResistanceField }),
135
135
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: seriesReactanceField })
136
136
  ] }),
137
137
  /* @__PURE__ */ jsx(GridSection, { title: "Side1", heading: 4 }),
138
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
138
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
139
139
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: shuntConductance1Field }),
140
140
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: shuntSusceptance1Field })
141
141
  ] }),
142
142
  /* @__PURE__ */ jsx(GridSection, { title: "Side2", heading: 4 }),
143
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
143
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
144
144
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: shuntConductance2Field }),
145
145
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: shuntSusceptance2Field })
146
146
  ] }),
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { TextField, Grid2 } from "@mui/material";
2
+ import { TextField, Grid } from "@mui/material";
3
3
  import { useWatch } from "react-hook-form";
4
4
  import { filledTextField } from "../../common/form.utils.js";
5
5
  import "react";
@@ -93,7 +93,7 @@ function LineDialogHeader({ lineToModify, isModification = false }) {
93
93
  clearable: true
94
94
  }
95
95
  );
96
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, sx: { width: "100%" }, children: [
96
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: [
97
97
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: lineIdField }),
98
98
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: lineNameField })
99
99
  ] });
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { TextField, Grid2 } from "@mui/material";
2
+ import { TextField, Grid } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { filledTextField } from "../../common/form.utils.js";
@@ -75,8 +75,10 @@ function LoadDialogHeader({ loadToModify, isModification = false }) {
75
75
  fullWidth: true,
76
76
  label: "ID",
77
77
  value: equipmentId ?? "",
78
- InputProps: {
79
- readOnly: true
78
+ slotProps: {
79
+ input: {
80
+ readOnly: true
81
+ }
80
82
  },
81
83
  disabled: true,
82
84
  ...filledTextField
@@ -106,10 +108,10 @@ function LoadDialogHeader({ loadToModify, isModification = false }) {
106
108
  }) : void 0
107
109
  }
108
110
  );
109
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
110
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadIdField }),
111
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadNameField }),
112
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadTypeField })
111
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
112
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: loadIdField }),
113
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: loadNameField }),
114
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: loadTypeField })
113
115
  ] });
114
116
  }
115
117
  export {
@@ -15,8 +15,10 @@ function LoadDialogTabs({
15
15
  value: tabIndex,
16
16
  variant: "scrollable",
17
17
  onChange: (event, newValue) => setTabIndex(newValue),
18
- TabIndicatorProps: {
19
- sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
18
+ slotProps: {
19
+ indicator: {
20
+ sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
21
+ }
20
22
  },
21
23
  children: [
22
24
  /* @__PURE__ */ jsx(
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import { LoadDialogTab, LOAD_TAB_FIELDS } from "./load.utils.js";
4
4
  import { LoadDialogHeader } from "./LoadDialogHeader.js";
5
5
  import { LoadDialogTabs } from "./LoadDialogTabs.js";
@@ -17,8 +17,8 @@ function LoadForm({
17
17
  LoadDialogTab.CONNECTIVITY_TAB
18
18
  );
19
19
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
20
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(LoadDialogHeader, { loadToModify, isModification }) }),
21
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
20
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(LoadDialogHeader, { loadToModify, isModification }) }),
21
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
22
22
  LoadDialogTabs,
23
23
  {
24
24
  tabIndex,
@@ -27,7 +27,7 @@ function LoadForm({
27
27
  isModification
28
28
  }
29
29
  ) }),
30
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
30
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
31
31
  LoadDialogTabsContent,
32
32
  {
33
33
  tabIndex,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useFormContext, useWatch } from "react-hook-form";
4
4
  import { useMemo, useCallback, useEffect } from "react";
5
5
  import { useIntl } from "react-intl";
@@ -173,19 +173,19 @@ function CharacteristicsForm({ previousValues, isModification = false }) {
173
173
  }
174
174
  );
175
175
  const characteristicsChoiceField = /* @__PURE__ */ jsx(RadioInput, { name: FieldConstants.CHARACTERISTICS_CHOICE, options: Object.values(CHARACTERISTICS_CHOICES) });
176
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
177
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: maximumSectionCountField }),
178
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: sectionCountField }),
179
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: characteristicsChoiceField }),
180
- characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, size: 12, children: [
181
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: maxSusceptanceField }),
182
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnSusceptanceField })
176
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
177
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: maximumSectionCountField }),
178
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: sectionCountField }),
179
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: characteristicsChoiceField }),
180
+ characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, size: 12, children: [
181
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: maxSusceptanceField }),
182
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: switchedOnSusceptanceField })
183
183
  ] }),
184
- characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, size: 12, children: [
185
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: shuntCompensatorTypeField }),
186
- /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, children: [
187
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: maxQAtNominalVField }),
188
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnMaxQAtNominalVField })
184
+ characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, size: 12, children: [
185
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: shuntCompensatorTypeField }),
186
+ /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, children: [
187
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: maxQAtNominalVField }),
188
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: switchedOnMaxQAtNominalVField })
189
189
  ] })
190
190
  ] })
191
191
  ] });
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -74,8 +74,8 @@ function ShuntCompensatorCreationForm({
74
74
  PositionDiagramPane
75
75
  }) {
76
76
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
77
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
78
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
77
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
78
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
79
79
  TextInput,
80
80
  {
81
81
  name: FieldConstants.EQUIPMENT_ID,
@@ -83,11 +83,11 @@ function ShuntCompensatorCreationForm({
83
83
  formProps: { autoFocus: true, ...filledTextField }
84
84
  }
85
85
  ) }),
86
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
86
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
87
87
  ] }) }),
88
- /* @__PURE__ */ jsxs(Grid2, { children: [
88
+ /* @__PURE__ */ jsxs(Grid, { children: [
89
89
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
90
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
90
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
91
91
  ConnectivityForm,
92
92
  {
93
93
  voltageLevelOptions,
@@ -96,11 +96,11 @@ function ShuntCompensatorCreationForm({
96
96
  }
97
97
  ) }) })
98
98
  ] }),
99
- /* @__PURE__ */ jsxs(Grid2, { children: [
99
+ /* @__PURE__ */ jsxs(Grid, { children: [
100
100
  /* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
101
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { isModification: false }) }) })
101
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { isModification: false }) }) })
102
102
  ] }),
103
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator" }) })
103
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator" }) })
104
104
  ] });
105
105
  }
106
106
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, TextField } from "@mui/material";
2
+ import { Stack, Grid, TextField } from "@mui/material";
3
3
  import { useWatch } from "react-hook-form";
4
4
  import "@mui/icons-material";
5
5
  import "react-intl";
@@ -77,8 +77,8 @@ function ShuntCompensatorModificationForm({
77
77
  }) {
78
78
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
79
79
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
80
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
81
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
80
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
81
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
82
82
  TextField,
83
83
  {
84
84
  size: "small",
@@ -90,7 +90,7 @@ function ShuntCompensatorModificationForm({
90
90
  ...filledTextField
91
91
  }
92
92
  ) }),
93
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
93
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
94
94
  TextInput,
95
95
  {
96
96
  name: FieldConstants.EQUIPMENT_NAME,
@@ -101,9 +101,9 @@ function ShuntCompensatorModificationForm({
101
101
  }
102
102
  ) })
103
103
  ] }) }),
104
- /* @__PURE__ */ jsxs(Grid2, { children: [
104
+ /* @__PURE__ */ jsxs(Grid, { children: [
105
105
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
106
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
106
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
107
107
  ConnectivityForm,
108
108
  {
109
109
  isEquipmentModification: true,
@@ -114,13 +114,13 @@ function ShuntCompensatorModificationForm({
114
114
  }
115
115
  ) }) })
116
116
  ] }),
117
- /* @__PURE__ */ jsxs(Grid2, { children: [
117
+ /* @__PURE__ */ jsxs(Grid, { children: [
118
118
  /* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
119
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { previousValues: shuntCompensatorToModify ?? void 0, isModification: true }) }) })
119
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { previousValues: shuntCompensatorToModify ?? void 0, isModification: true }) }) })
120
120
  ] }),
121
- /* @__PURE__ */ jsxs(Grid2, { children: [
121
+ /* @__PURE__ */ jsxs(Grid, { children: [
122
122
  /* @__PURE__ */ jsx(GridSection, { title: "MeasurementsSection" }),
123
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
123
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
124
124
  PowerMeasurementsForm,
125
125
  {
126
126
  reactivePowerMeasurement: shuntCompensatorToModify?.measurementQ,
@@ -128,7 +128,7 @@ function ShuntCompensatorModificationForm({
128
128
  }
129
129
  ) }) })
130
130
  ] }),
131
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator", isModification: true }) })
131
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator", isModification: true }) })
132
132
  ] });
133
133
  }
134
134
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -68,10 +68,10 @@ import "@mui/x-charts";
68
68
  import "../../common/currentLimits/limitsPane.utils.js";
69
69
  function SubstationCreationForm() {
70
70
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
71
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
72
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
73
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
74
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
71
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
72
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
73
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
74
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
75
75
  CountrySelectionInput,
76
76
  {
77
77
  name: FieldConstants.COUNTRY,
@@ -81,7 +81,7 @@ function SubstationCreationForm() {
81
81
  }
82
82
  ) })
83
83
  ] }) }),
84
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
84
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
85
85
  ] });
86
86
  }
87
87
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, TextField } from "@mui/material";
2
+ import { Stack, Grid, TextField } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -69,22 +69,24 @@ function SubstationModificationForm({ substationToModify }) {
69
69
  const { translate } = useLocalizedCountries(locale);
70
70
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
71
71
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
72
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
73
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
72
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
73
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
74
74
  TextField,
75
75
  {
76
76
  size: "small",
77
77
  fullWidth: true,
78
78
  label: "ID",
79
79
  value: equipmentId ?? "",
80
- InputProps: {
81
- readOnly: true
80
+ slotProps: {
81
+ input: {
82
+ readOnly: true
83
+ }
82
84
  },
83
85
  disabled: true,
84
86
  ...filledTextField
85
87
  }
86
88
  ) }),
87
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
89
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
88
90
  TextInput,
89
91
  {
90
92
  name: FieldConstants.EQUIPMENT_NAME,
@@ -94,7 +96,7 @@ function SubstationModificationForm({ substationToModify }) {
94
96
  clearable: true
95
97
  }
96
98
  ) }),
97
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
99
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
98
100
  CountrySelectionInput,
99
101
  {
100
102
  name: FieldConstants.COUNTRY,
@@ -105,7 +107,7 @@ function SubstationModificationForm({ substationToModify }) {
105
107
  }
106
108
  ) })
107
109
  ] }) }),
108
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
110
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
109
111
  ] });
110
112
  }
111
113
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, Tabs, Tab, Box } from "@mui/material";
2
+ import { Stack, Grid, Tabs, Tab, Box } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -82,8 +82,8 @@ function VoltageLevelCreationForm({
82
82
  );
83
83
  const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
84
84
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
85
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
86
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
85
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
86
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
87
87
  TextInput,
88
88
  {
89
89
  name: FieldConstants.EQUIPMENT_ID,
@@ -91,16 +91,18 @@ function VoltageLevelCreationForm({
91
91
  formProps: { autoFocus: true, ...filledTextField }
92
92
  }
93
93
  ) }),
94
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
94
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
95
95
  ] }) }),
96
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(
96
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
97
97
  Tabs,
98
98
  {
99
99
  value: tabIndex,
100
100
  variant: "scrollable",
101
101
  onChange: (_, newValue) => setTabIndex(newValue),
102
- TabIndicatorProps: {
103
- sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
102
+ slotProps: {
103
+ indicator: {
104
+ sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
105
+ }
104
106
  },
105
107
  children: [
106
108
  /* @__PURE__ */ jsx(
@@ -135,7 +137,7 @@ function VoltageLevelCreationForm({
135
137
  ]
136
138
  }
137
139
  ) }),
138
- /* @__PURE__ */ jsxs(Grid2, { children: [
140
+ /* @__PURE__ */ jsxs(Grid, { children: [
139
141
  /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(
140
142
  SubstationTab,
141
143
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
5
5
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
@@ -37,8 +37,8 @@ function CharacteristicsTab() {
37
37
  const watchHideNominalVoltage = useWatch({ name: FieldConstants.HIDE_NOMINAL_VOLTAGE });
38
38
  return /* @__PURE__ */ jsxs(Fragment, { children: [
39
39
  /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
40
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
41
- !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
40
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
41
+ !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
42
42
  FloatInput,
43
43
  {
44
44
  name: FieldConstants.NOMINAL_V,
@@ -46,7 +46,7 @@ function CharacteristicsTab() {
46
46
  adornment: VoltageAdornment
47
47
  }
48
48
  ) }),
49
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
49
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
50
50
  FloatInput,
51
51
  {
52
52
  name: FieldConstants.LOW_VOLTAGE_LIMIT,
@@ -54,7 +54,7 @@ function CharacteristicsTab() {
54
54
  adornment: VoltageAdornment
55
55
  }
56
56
  ) }),
57
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
57
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
58
58
  FloatInput,
59
59
  {
60
60
  name: FieldConstants.HIGH_VOLTAGE_LIMIT,
@@ -64,8 +64,8 @@ function CharacteristicsTab() {
64
64
  ) })
65
65
  ] }),
66
66
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
67
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
69
69
  FloatInput,
70
70
  {
71
71
  name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -73,7 +73,7 @@ function CharacteristicsTab() {
73
73
  adornment: KiloAmpereAdornment
74
74
  }
75
75
  ) }),
76
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
76
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
77
77
  FloatInput,
78
78
  {
79
79
  name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useEffect } from "react";
4
4
  import { useFormContext, useWatch } from "react-hook-form";
5
5
  import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
@@ -44,9 +44,9 @@ function StructureTab() {
44
44
  const displayOmnibus = watchBusBarCount > 1 || watchSectionCount > 1;
45
45
  return /* @__PURE__ */ jsxs(Fragment, { children: [
46
46
  /* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
47
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
48
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
47
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
48
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
50
50
  ] }),
51
51
  /* @__PURE__ */ jsx(SwitchesBetweenSections, {}),
52
52
  displayOmnibus && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { useFormContext } from "react-hook-form";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { AutocompleteInput } from "../../../../../../../components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js";
6
6
  import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
7
7
  import "../../../../../../../utils/conversionUtils.js";
@@ -24,7 +24,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
24
24
  return () => unsubscribe();
25
25
  }, [subscribe, trigger, getValues, index]);
26
26
  return /* @__PURE__ */ jsxs(Fragment, { children: [
27
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
28
28
  AutocompleteInput,
29
29
  {
30
30
  allowNewValue: true,
@@ -35,7 +35,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
35
35
  size: "small"
36
36
  }
37
37
  ) }),
38
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
38
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
39
39
  AutocompleteInput,
40
40
  {
41
41
  allowNewValue: true,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useCallback, useRef, useEffect } from "react";
4
4
  import { useFormContext, useFieldArray, useWatch } from "react-hook-form";
5
5
  import { useIntl } from "react-intl";
@@ -76,7 +76,7 @@ function SwitchesBetweenSections() {
76
76
  }
77
77
  return /* @__PURE__ */ jsxs(Fragment, { children: [
78
78
  /* @__PURE__ */ jsx(GridSection, { title: "SwitchesBetweenSections" }),
79
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
79
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
80
80
  EnumInput,
81
81
  {
82
82
  options: Object.values(SWITCH_TYPE),