@gridsuite/commons-ui 0.239.0 → 0.240.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 (146) hide show
  1. package/README.md +6 -2
  2. package/dist/components/composite/agGridTable/cellEditors/numericEditor.d.ts +9 -3
  3. package/dist/components/composite/agGridTable/cellEditors/numericEditor.js +24 -5
  4. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  5. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  6. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  7. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  8. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
  9. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +2 -4
  10. package/dist/components/composite/grid/grid-item.d.ts +4 -3
  11. package/dist/components/composite/grid/grid-item.js +8 -4
  12. package/dist/components/composite/grid/grid-section.d.ts +1 -1
  13. package/dist/components/composite/grid/grid-section.js +3 -3
  14. package/dist/components/composite/grid/index.js +6 -3
  15. package/dist/components/composite/index.js +4 -3
  16. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  17. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
  18. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  19. package/dist/components/index.js +4 -3
  20. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +9 -9
  21. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  22. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  23. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +4 -4
  24. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  25. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  26. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  27. package/dist/features/authentication/AuthenticationRouter.js +2 -2
  28. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  29. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +7 -7
  30. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +4 -4
  31. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +8 -8
  32. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +5 -5
  33. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -1
  34. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +4 -4
  35. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  36. package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -1
  37. package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +1 -1
  38. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  39. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  40. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  41. package/dist/features/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.js +1 -1
  42. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +2 -2
  43. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +4 -4
  44. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  45. package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -1
  46. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  47. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +3 -3
  48. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -1
  49. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  50. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +2 -2
  51. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +5 -5
  52. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +3 -3
  53. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +5 -5
  54. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +6 -6
  55. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -5
  56. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +5 -5
  57. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +9 -9
  58. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +5 -5
  59. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +9 -9
  60. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +5 -5
  61. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +5 -5
  62. package/dist/features/network-modifications/load/common/LoadDialogTabsContent.js +1 -1
  63. package/dist/features/network-modifications/load/common/LoadForm.js +5 -5
  64. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +12 -12
  65. package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts +8 -8
  66. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +11 -11
  67. package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.d.ts +12 -12
  68. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +3 -3
  69. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.d.ts +12 -12
  70. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +7 -7
  71. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +7 -7
  72. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +7 -7
  73. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +9 -9
  74. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +5 -5
  75. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  76. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -1
  77. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +7 -7
  78. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  79. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +3 -3
  80. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +1 -1
  81. package/dist/features/parameters/common/ProviderParam.js +5 -5
  82. package/dist/features/parameters/common/contingency-table/contingency-table.js +4 -4
  83. package/dist/features/parameters/common/line-separator.js +2 -2
  84. package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +4 -4
  85. package/dist/features/parameters/common/parameter-field.js +4 -4
  86. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  87. package/dist/features/parameters/common/parameters.js +3 -3
  88. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  89. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  90. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  91. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  92. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  93. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +6 -6
  94. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +3 -3
  95. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  96. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  97. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  98. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +3 -3
  99. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +6 -7
  100. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  101. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  102. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +7 -8
  103. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +7 -7
  104. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +10 -10
  105. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +26 -50
  106. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +20 -20
  107. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +11 -10
  108. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +3 -3
  109. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +6 -7
  110. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  111. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  112. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  113. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  114. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  115. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +2 -2
  116. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +5 -5
  117. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +2 -3
  118. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  119. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  120. package/dist/features/parameters/network-visualizations/network-visualizations-form.js +5 -8
  121. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +2 -2
  122. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  123. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +5 -8
  124. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +2 -2
  125. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +7 -7
  126. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +2 -3
  127. package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +3 -3
  128. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +8 -11
  129. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +8 -8
  130. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +2 -2
  131. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -8
  132. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  133. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +13 -13
  134. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  135. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +4 -7
  136. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +2 -2
  137. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +7 -7
  138. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +4 -4
  139. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +5 -5
  140. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  141. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +5 -8
  142. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +2 -2
  143. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  144. package/dist/features/topBar/AboutDialog.js +4 -7
  145. package/dist/index.js +7 -3
  146. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Stack, Grid2 } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -31,7 +31,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
31
31
  import "mui-nested-menu";
32
32
  import "react-resizable-panels";
33
33
  import "react-papaparse";
34
- import GridSection from "../../../../components/composite/grid/grid-section.js";
34
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
35
35
  import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
36
36
  import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
37
37
  import { filledTextField } from "../../common/form.utils.js";
@@ -70,9 +70,9 @@ function ShuntCompensatorCreationForm({
70
70
  fetchBusesOrBusbarSections,
71
71
  PositionDiagramPane
72
72
  }) {
73
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
74
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
75
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
73
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
74
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
75
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
76
76
  TextInput,
77
77
  {
78
78
  name: FieldConstants.EQUIPMENT_ID,
@@ -80,11 +80,11 @@ function ShuntCompensatorCreationForm({
80
80
  formProps: { autoFocus: true, ...filledTextField }
81
81
  }
82
82
  ) }),
83
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
83
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
84
84
  ] }) }),
85
- /* @__PURE__ */ jsxs(Grid, { item: true, children: [
85
+ /* @__PURE__ */ jsxs(Grid2, { children: [
86
86
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
87
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(
87
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
88
88
  ConnectivityForm,
89
89
  {
90
90
  voltageLevelOptions,
@@ -93,11 +93,11 @@ function ShuntCompensatorCreationForm({
93
93
  }
94
94
  ) }) })
95
95
  ] }),
96
- /* @__PURE__ */ jsxs(Grid, { item: true, children: [
96
+ /* @__PURE__ */ jsxs(Grid2, { children: [
97
97
  /* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
98
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { isModification: false }) }) })
98
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { isModification: false }) }) })
99
99
  ] }),
100
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator" }) })
100
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator" }) })
101
101
  ] });
102
102
  }
103
103
  export {
@@ -4,10 +4,10 @@ import { ShuntCompensatorCreationDto } from './shuntCompensatorCreation.types';
4
4
  export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSchema<NonNullable<({
5
5
  maxQAtNominalV: number | null;
6
6
  maxSusceptance: number | null;
7
- maximumSectionCount: number | null;
8
- sectionCount: number | null;
9
- switchedOnQAtNominalV: number | null | undefined;
10
- switchedOnSusceptance: number | null | undefined;
7
+ maximumSectionCount: number;
8
+ sectionCount: number;
9
+ switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
10
+ switchedOnSusceptance: import('yup').Maybe<number | undefined>;
11
11
  characteristicsChoice: string;
12
12
  shuntCompensatorType: string | null;
13
13
  equipmentID: string;
@@ -27,10 +27,10 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
27
27
  } | {
28
28
  maxQAtNominalV: number | null;
29
29
  maxSusceptance: number | null;
30
- maximumSectionCount: number;
31
- sectionCount: number;
32
- switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
33
- switchedOnSusceptance: import('yup').Maybe<number | undefined>;
30
+ maximumSectionCount: number | null;
31
+ sectionCount: number | null;
32
+ switchedOnQAtNominalV: number | null | undefined;
33
+ switchedOnSusceptance: number | null | undefined;
34
34
  characteristicsChoice: string;
35
35
  shuntCompensatorType: string | null;
36
36
  equipmentID: string;
@@ -58,8 +58,8 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
58
58
  }>, import('yup').AnyObject, {
59
59
  maxQAtNominalV: null;
60
60
  maxSusceptance: null;
61
- maximumSectionCount: null;
62
- sectionCount: null;
61
+ maximumSectionCount: undefined;
62
+ sectionCount: undefined;
63
63
  switchedOnQAtNominalV: undefined;
64
64
  switchedOnSusceptance: undefined;
65
65
  characteristicsChoice: undefined;
@@ -82,8 +82,8 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
82
82
  } | {
83
83
  maxQAtNominalV: null;
84
84
  maxSusceptance: null;
85
- maximumSectionCount: undefined;
86
- sectionCount: undefined;
85
+ maximumSectionCount: null;
86
+ sectionCount: null;
87
87
  switchedOnQAtNominalV: undefined;
88
88
  switchedOnSusceptance: undefined;
89
89
  characteristicsChoice: undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, TextField } from "@mui/material";
2
+ import { Stack, Grid2, TextField } from "@mui/material";
3
3
  import { useWatch } from "react-hook-form";
4
4
  import "@mui/icons-material";
5
5
  import "react-intl";
@@ -31,7 +31,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
31
31
  import "mui-nested-menu";
32
32
  import "react-resizable-panels";
33
33
  import "react-papaparse";
34
- import GridSection from "../../../../components/composite/grid/grid-section.js";
34
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
35
35
  import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
36
36
  import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
37
37
  import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
@@ -73,7 +73,7 @@ function ShuntCompensatorModificationForm({
73
73
  PositionDiagramPane
74
74
  }) {
75
75
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
76
- return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: "column", spacing: 2, children: [
76
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
77
77
  /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
78
78
  /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
79
79
  TextField,
@@ -4,10 +4,10 @@ import { ShuntCompensatorModificationDto } from './shuntCompensatorModification.
4
4
  export declare const shuntCompensatorModificationFormSchema: import('yup').ObjectSchema<NonNullable<({
5
5
  maxQAtNominalV: number | null;
6
6
  maxSusceptance: number | null;
7
- maximumSectionCount: number | null;
8
- sectionCount: number | null;
9
- switchedOnQAtNominalV: number | null | undefined;
10
- switchedOnSusceptance: number | null | undefined;
7
+ maximumSectionCount: number;
8
+ sectionCount: number;
9
+ switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
10
+ switchedOnSusceptance: import('yup').Maybe<number | undefined>;
11
11
  characteristicsChoice: string;
12
12
  shuntCompensatorType: string | null;
13
13
  equipmentID: string;
@@ -37,10 +37,10 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
37
37
  } | {
38
38
  maxQAtNominalV: number | null;
39
39
  maxSusceptance: number | null;
40
- maximumSectionCount: number;
41
- sectionCount: number;
42
- switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
43
- switchedOnSusceptance: import('yup').Maybe<number | undefined>;
40
+ maximumSectionCount: number | null;
41
+ sectionCount: number | null;
42
+ switchedOnQAtNominalV: number | null | undefined;
43
+ switchedOnSusceptance: number | null | undefined;
44
44
  characteristicsChoice: string;
45
45
  shuntCompensatorType: string | null;
46
46
  equipmentID: string;
@@ -78,8 +78,8 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
78
78
  }>, import('yup').AnyObject, {
79
79
  maxQAtNominalV: null;
80
80
  maxSusceptance: null;
81
- maximumSectionCount: null;
82
- sectionCount: null;
81
+ maximumSectionCount: undefined;
82
+ sectionCount: undefined;
83
83
  switchedOnQAtNominalV: undefined;
84
84
  switchedOnSusceptance: undefined;
85
85
  characteristicsChoice: undefined;
@@ -108,8 +108,8 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
108
108
  } | {
109
109
  maxQAtNominalV: null;
110
110
  maxSusceptance: null;
111
- maximumSectionCount: undefined;
112
- sectionCount: undefined;
111
+ maximumSectionCount: null;
112
+ sectionCount: null;
113
113
  switchedOnQAtNominalV: undefined;
114
114
  switchedOnSusceptance: undefined;
115
115
  characteristicsChoice: undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Stack, Grid2 } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -64,11 +64,11 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
64
64
  import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
65
65
  import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
66
66
  function SubstationCreationForm() {
67
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
69
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
70
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
71
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
67
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
69
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
70
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
71
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
72
72
  CountrySelectionInput,
73
73
  {
74
74
  name: FieldConstants.COUNTRY,
@@ -78,7 +78,7 @@ function SubstationCreationForm() {
78
78
  }
79
79
  ) })
80
80
  ] }) }),
81
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
81
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
82
82
  ] });
83
83
  }
84
84
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, TextField } from "@mui/material";
2
+ import { Stack, Grid2, 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";
@@ -65,9 +65,9 @@ function SubstationModificationForm({ substationToModify }) {
65
65
  const { locale } = useIntl();
66
66
  const { translate } = useLocalizedCountries(locale);
67
67
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
68
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
69
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
70
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
68
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
69
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
70
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
71
71
  TextField,
72
72
  {
73
73
  size: "small",
@@ -81,7 +81,7 @@ function SubstationModificationForm({ substationToModify }) {
81
81
  ...filledTextField
82
82
  }
83
83
  ) }),
84
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
84
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
85
85
  TextInput,
86
86
  {
87
87
  name: FieldConstants.EQUIPMENT_NAME,
@@ -91,7 +91,7 @@ function SubstationModificationForm({ substationToModify }) {
91
91
  clearable: true
92
92
  }
93
93
  ) }),
94
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
94
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
95
95
  CountrySelectionInput,
96
96
  {
97
97
  name: FieldConstants.COUNTRY,
@@ -102,7 +102,7 @@ function SubstationModificationForm({ substationToModify }) {
102
102
  }
103
103
  ) })
104
104
  ] }) }),
105
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
105
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
106
106
  ] });
107
107
  }
108
108
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, Tabs, Tab, Box } from "@mui/material";
2
+ import { Stack, Grid2, 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";
@@ -78,9 +78,9 @@ function VoltageLevelCreationForm({
78
78
  VoltageLevelTab.SUBSTATION_TAB
79
79
  );
80
80
  const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
81
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
82
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
83
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
81
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
82
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
83
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
84
84
  TextInput,
85
85
  {
86
86
  name: FieldConstants.EQUIPMENT_ID,
@@ -88,9 +88,9 @@ function VoltageLevelCreationForm({
88
88
  formProps: { autoFocus: true, ...filledTextField }
89
89
  }
90
90
  ) }),
91
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
91
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
92
92
  ] }) }),
93
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(
93
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(
94
94
  Tabs,
95
95
  {
96
96
  value: tabIndex,
@@ -132,7 +132,7 @@ function VoltageLevelCreationForm({
132
132
  ]
133
133
  }
134
134
  ) }),
135
- /* @__PURE__ */ jsxs(Grid, { item: true, children: [
135
+ /* @__PURE__ */ jsxs(Grid2, { children: [
136
136
  /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(
137
137
  SubstationTab,
138
138
  {
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
- import { Grid } from "@mui/material";
4
- import GridSection from "../../../../../../components/composite/grid/grid-section.js";
3
+ import { Grid2 } from "@mui/material";
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";
7
7
  import "../../../../../../utils/conversionUtils.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(Grid, { container: true, spacing: 2, children: [
41
- !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
40
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
41
+ !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid2, { 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(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
49
+ /* @__PURE__ */ jsx(Grid2, { 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(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
57
+ /* @__PURE__ */ jsx(Grid2, { 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(Grid, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid2, { 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(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
76
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
77
77
  FloatInput,
78
78
  {
79
79
  name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -1,8 +1,8 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { useEffect } from "react";
4
4
  import { useFormContext, useWatch } from "react-hook-form";
5
- import GridSection from "../../../../../../components/composite/grid/grid-section.js";
5
+ import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
6
6
  import "@mui/icons-material";
7
7
  import "react-intl";
8
8
  import "../../../../../../components/ui/overflowableText/OverflowableText.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(Grid, { container: true, spacing: 2, children: [
48
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
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" }) })
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 { Grid } from "@mui/material";
4
+ import { Grid2 } 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(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid2, { 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(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
38
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
39
39
  AutocompleteInput,
40
40
  {
41
41
  allowNewValue: true,
@@ -32,7 +32,7 @@ import "../../../../../../../components/ui/snackbarProvider/SnackbarProvider.js"
32
32
  import "mui-nested-menu";
33
33
  import "react-resizable-panels";
34
34
  import "react-papaparse";
35
- import GridSection from "../../../../../../../components/composite/grid/grid-section.js";
35
+ import { GridSection } from "../../../../../../../components/composite/grid/grid-section.js";
36
36
  import { SWITCH_TYPE } from "../../../voltageLevelCreation.utils.js";
37
37
  import { MAX_SECTIONS_COUNT } from "../../../voltageLevel.constants.js";
38
38
  function SwitchesBetweenSections() {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useIntl } from "react-intl";
3
- import { Grid, IconButton } from "@mui/material";
3
+ import { Grid2, IconButton } from "@mui/material";
4
4
  import { Delete } from "@mui/icons-material";
5
5
  import { CustomTooltip } from "../../../../../../components/ui/tooltip/CustomTooltip.js";
6
6
  import "../../../../../../components/ui/overflowableText/OverflowableText.js";
@@ -33,7 +33,7 @@ import "../../../../../../components/ui/snackbarProvider/SnackbarProvider.js";
33
33
  import "mui-nested-menu";
34
34
  import "react-resizable-panels";
35
35
  import "react-papaparse";
36
- import GridSection from "../../../../../../components/composite/grid/grid-section.js";
36
+ import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
37
37
  import { PropertiesForm } from "../../../../common/properties/PropertiesForm.js";
38
38
  import "../../../../common/properties/propertyUtils.js";
39
39
  import "react-dom";
@@ -71,11 +71,11 @@ function SubstationCreationSection({
71
71
  const intl = useIntl();
72
72
  return /* @__PURE__ */ jsxs(Fragment, { children: [
73
73
  /* @__PURE__ */ jsx(GridSection, { title: "CreateSubstation" }),
74
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
75
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
76
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
77
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
78
- showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
74
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
75
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
76
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
77
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
78
+ showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
79
79
  ] }),
80
80
  /* @__PURE__ */ jsx(PropertiesForm, { id: FieldConstants.SUBSTATION_CREATION, networkElementType: "substation" })
81
81
  ] });
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useWatch, useFormContext } from "react-hook-form";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { Grid } from "@mui/material";
4
+ import { Grid2 } from "@mui/material";
5
5
  import { useCallback, useEffect } from "react";
6
6
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
7
7
  import "../../../../../../utils/conversionUtils.js";
@@ -56,8 +56,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
56
56
  });
57
57
  }
58
58
  }, [setValue, getValues, watchAddSubstationCreation]);
59
- return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 2, children: [
60
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: substationOptions ? /* @__PURE__ */ jsx(
59
+ return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, pt: 2, children: [
60
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: substationOptions ? /* @__PURE__ */ jsx(
61
61
  AutocompleteInput,
62
62
  {
63
63
  name: FieldConstants.SUBSTATION_ID,
@@ -70,8 +70,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
70
70
  noOptionsText: ""
71
71
  }
72
72
  ) : /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_ID, label: "SUBSTATION" }) }),
73
- /* @__PURE__ */ jsx(Grid, { item: true, mt: 0.75, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Or" }) }),
74
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(AddButton, { label: "CreateSubstation", onClick: handleCreateSubstation }) })
73
+ /* @__PURE__ */ jsx(Grid2, { mt: 0.75, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Or" }) }),
74
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(AddButton, { label: "CreateSubstation", onClick: handleCreateSubstation }) })
75
75
  ] });
76
76
  }
77
77
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { Grid2, TextField, Tabs, Tab, Box } from "@mui/material";
3
+ import { Stack, Grid2, TextField, Tabs, Tab, Box } from "@mui/material";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { useWatch } from "react-hook-form";
6
6
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../utils/constants/adornments.js";
@@ -37,7 +37,7 @@ import "mui-nested-menu";
37
37
  import "react-resizable-panels";
38
38
  import "react-papaparse";
39
39
  import "../../common/properties/propertyUtils.js";
40
- import GridSection from "../../../../components/composite/grid/grid-section.js";
40
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
41
41
  import { BusbarSectionVoltageMeasurementsForm } from "../../common/measurements/BusbarSectionVoltageMeasurementsForm.js";
42
42
  import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
43
43
  import { getTabStyle, getTabIndicatorStyle } from "../../../parameters/parameters-style.js";
@@ -78,7 +78,7 @@ function VoltageLevelModificationForm({
78
78
  0
79
79
  /* CHARACTERISTICS_TAB */
80
80
  );
81
- return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: "column", spacing: 2, children: [
81
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
82
82
  /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
83
83
  /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
84
84
  TextField,
@@ -55,8 +55,8 @@ export declare const voltageLevelModificationWithMeasurementsFormSchema: import(
55
55
  } & {
56
56
  busbarSectionVMeasurements: {
57
57
  value: number | null;
58
- busbarSectionId: string;
59
58
  validity: boolean | null;
59
+ busbarSectionId: string;
60
60
  }[] | null;
61
61
  }, import('yup').AnyObject, {
62
62
  equipmentID: undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { LineSeparator } from "./line-separator.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -41,11 +41,11 @@ const styles = {
41
41
  };
42
42
  function ProviderParam({ options }) {
43
43
  return /* @__PURE__ */ jsxs(Fragment, { children: [
44
- /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.providerParam, paddingRight: 1, children: [
45
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
46
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 2, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(MuiSelectInput, { name: PROVIDER, size: "small", fullWidth: true, options }) })
44
+ /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.providerParam, paddingRight: 1, size: 12, children: [
45
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
46
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: 2, children: /* @__PURE__ */ jsx(MuiSelectInput, { name: PROVIDER, size: "small", fullWidth: true, options }) })
47
47
  ] }),
48
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 1, paddingRight: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) })
48
+ /* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 1, paddingRight: 1, size: 12, children: /* @__PURE__ */ jsx(LineSeparator, {}) })
49
49
  ] });
50
50
  }
51
51
  export {
@@ -1,5 +1,5 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, Alert, CircularProgress } from "@mui/material";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Grid2, Stack, Alert, CircularProgress } from "@mui/material";
3
3
  import { forwardRef, useState, useImperativeHandle, useCallback, useEffect, useMemo } from "react";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { useFormContext } from "react-hook-form";
@@ -120,7 +120,7 @@ function ContingencyTableWithApiRef({ name, showContingencyCount = false, fetchC
120
120
  })
121
121
  );
122
122
  }, [intl]);
123
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", children: [
123
+ return /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsxs(Stack, { children: [
124
124
  /* @__PURE__ */ jsx(
125
125
  ParameterTableField,
126
126
  {
@@ -132,7 +132,7 @@ function ContingencyTableWithApiRef({ name, showContingencyCount = false, fetchC
132
132
  }
133
133
  ),
134
134
  showContingencyCount && renderContingencyCount()
135
- ] });
135
+ ] }) });
136
136
  }
137
137
  const ContingencyTable = forwardRef(ContingencyTableWithApiRef);
138
138
  export {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid, Divider } from "@mui/material";
2
+ import { Grid2, Divider } from "@mui/material";
3
3
  function LineSeparator() {
4
- return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Divider, {}) });
4
+ return /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(Divider, {}) });
5
5
  }
6
6
  export {
7
7
  LineSeparator