@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,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { FormattedMessage } from "react-intl";
3
- import { Grid, Box, LinearProgress } from "@mui/material";
3
+ import { Grid2, Box, LinearProgress } from "@mui/material";
4
4
  import "@mui/icons-material";
5
5
  import "../../../components/ui/overflowableText/OverflowableText.js";
6
6
  import "../../../utils/conversionUtils.js";
@@ -68,7 +68,7 @@ function SecurityAnalysisParametersForm({
68
68
  {
69
69
  validationSchema: securityAnalysisMethods.formSchema,
70
70
  ...securityAnalysisMethods.formMethods,
71
- children: /* @__PURE__ */ jsx(Grid, { item: true, sx: { height: "100%" }, children: /* @__PURE__ */ jsx(
71
+ children: /* @__PURE__ */ jsx(Grid2, { sx: { height: "100%" }, children: /* @__PURE__ */ jsx(
72
72
  Box,
73
73
  {
74
74
  sx: {
@@ -82,7 +82,7 @@ function SecurityAnalysisParametersForm({
82
82
  renderTitleFields?.(),
83
83
  securityAnalysisMethods.paramsFormInitialized ? /* @__PURE__ */ jsxs(Fragment, { children: [
84
84
  /* @__PURE__ */ jsxs(
85
- Grid,
85
+ Grid2,
86
86
  {
87
87
  container: true,
88
88
  spacing: 1,
@@ -93,8 +93,8 @@ function SecurityAnalysisParametersForm({
93
93
  },
94
94
  justifyContent: "space-between",
95
95
  children: [
96
- /* @__PURE__ */ jsx(Grid, { item: true, xs: "auto", sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
97
- /* @__PURE__ */ jsx(Grid, { item: true, xs: "auto", sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
96
+ /* @__PURE__ */ jsx(Grid2, { size: "auto", sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
97
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: "auto", sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
98
98
  MuiSelectInput,
99
99
  {
100
100
  name: PARAM_SA_PROVIDER,
@@ -115,7 +115,7 @@ function SecurityAnalysisParametersForm({
115
115
  paddingLeft: 1
116
116
  },
117
117
  children: /* @__PURE__ */ jsxs(
118
- Grid,
118
+ Grid2,
119
119
  {
120
120
  container: true,
121
121
  sx: mergeSx(parametersStyles.scrollableGrid, {
@@ -132,7 +132,7 @@ function SecurityAnalysisParametersForm({
132
132
  ref: contingencyTableApiRef
133
133
  }
134
134
  ),
135
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
135
+ /* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
136
136
  /* @__PURE__ */ jsx(
137
137
  SecurityAnalysisParametersSelector,
138
138
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useRef, useCallback, useEffect } from "react";
3
- import { Box, Grid } from "@mui/material";
3
+ import { Box, Grid2 } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
6
6
  import { snackWithFallback } from "../../../utils/error.js";
@@ -113,10 +113,9 @@ function SecurityAnalysisParametersInline({
113
113
  /* @__PURE__ */ jsxs(Box, { sx: { flexGrow: 0 }, children: [
114
114
  /* @__PURE__ */ jsx(LineSeparator, {}),
115
115
  /* @__PURE__ */ jsxs(
116
- Grid,
116
+ Grid2,
117
117
  {
118
118
  container: true,
119
- item: true,
120
119
  sx: mergeSx(parametersStyles.controlParametersItem, parametersStyles.marginTopButton, {
121
120
  paddingBottom: 0
122
121
  }),
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useMemo, useEffect } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { Grid, Tabs, Tab } from "@mui/material";
4
+ import { Grid2, Tabs, Tab } from "@mui/material";
5
5
  import "../../../utils/conversionUtils.js";
6
6
  import "../../../utils/types/equipmentType.js";
7
7
  import "@mui/icons-material";
@@ -59,7 +59,7 @@ function SecurityAnalysisParametersSelector({
59
59
  setTabSelected(TabValues.General);
60
60
  }
61
61
  }, [currentProvider]);
62
- return /* @__PURE__ */ jsxs(Grid, { sx: { width: "100%" }, children: [
62
+ return /* @__PURE__ */ jsxs(Grid2, { sx: { width: "100%" }, children: [
63
63
  /* @__PURE__ */ jsx(Tabs, { value: tabValue, onChange: handleTabChange, children: TAB_INFO.filter((t) => isDeveloperMode || !t.developerModeOnly).map(
64
64
  (tab, index) => (tab.label !== TabValues[TabValues.LimitReductions] || currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions) && /* @__PURE__ */ jsx(
65
65
  Tab,
@@ -76,7 +76,7 @@ function SecurityAnalysisParametersSelector({
76
76
  ) }),
77
77
  TAB_INFO.filter((t) => isDeveloperMode || !t.developerModeOnly).map((tab, index) => /* @__PURE__ */ jsxs(TabPanel, { value: tabValue, index, children: [
78
78
  tabValue === TabValues.General && /* @__PURE__ */ jsx(ViolationsHidingParameters, {}),
79
- tabValue === TabValues.LimitReductions && currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions && /* @__PURE__ */ jsx(Grid, { sx: { width: "100%" }, children: /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) })
79
+ tabValue === TabValues.LimitReductions && currentProvider === PARAM_PROVIDER_OPENLOADFLOW && params?.limitReductions && /* @__PURE__ */ jsx(Grid2, { sx: { width: "100%" }, children: /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) })
80
80
  ] }, tab.label))
81
81
  ] });
82
82
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid, Typography } from "@mui/material";
2
+ import { Grid2, Typography } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { Info } from "@mui/icons-material";
5
5
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
@@ -47,14 +47,13 @@ function SecurityAnalysisFields({
47
47
  isSingleField
48
48
  }) {
49
49
  const intl = useIntl();
50
- return /* @__PURE__ */ jsxs(Grid, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
51
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
50
+ return /* @__PURE__ */ jsxs(Grid2, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
51
+ /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
52
52
  /* @__PURE__ */ jsx(
53
- Grid,
53
+ Grid2,
54
54
  {
55
- item: true,
56
55
  container: true,
57
- xs: isSingleField ? 8 : 4,
56
+ size: isSingleField ? 8 : 4,
58
57
  sx: isSingleField ? parametersStyles.singleTextField : parametersStyles.firstTextField,
59
58
  children: /* @__PURE__ */ jsx(
60
59
  FloatInput,
@@ -68,7 +67,7 @@ function SecurityAnalysisFields({
68
67
  )
69
68
  }
70
69
  ),
71
- !isSingleField && secondField && /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
70
+ !isSingleField && secondField && /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
72
71
  FloatInput,
73
72
  {
74
73
  name: secondField.name,
@@ -119,7 +118,7 @@ const fieldsToShow = [
119
118
  function ViolationsHidingParameters() {
120
119
  const intl = useIntl();
121
120
  return /* @__PURE__ */ jsxs(Fragment, { children: [
122
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 8, sx: parametersStyles.text, children: [
121
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid2, { size: 8, sx: parametersStyles.text, children: [
123
122
  /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
124
123
  id: "securityAnalysis.violationsHiding"
125
124
  }) }),
@@ -132,9 +131,7 @@ function ViolationsHidingParameters() {
132
131
  }
133
132
  )
134
133
  ] }) }),
135
- fieldsToShow?.map((item) => {
136
- return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(SecurityAnalysisFields, { ...item }) }, item.label);
137
- })
134
+ fieldsToShow?.map((item) => /* @__PURE__ */ jsx(SecurityAnalysisFields, { ...item }, item.label))
138
135
  ] });
139
136
  }
140
137
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid, LinearProgress } from "@mui/material";
2
+ import { Box, Grid2, LinearProgress } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { parametersStyles } from "../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -73,7 +73,7 @@ function SensitivityAnalysisParametersForm({
73
73
  renderTitleFields?.(),
74
74
  sensitivityAnalysisMethods.paramsFormInitialized ? /* @__PURE__ */ jsxs(Box, { sx: mergeSx(parametersStyles.scrollableGrid, { paddingTop: 0, maxHeight: "100%" }), children: [
75
75
  /* @__PURE__ */ jsxs(
76
- Grid,
76
+ Grid2,
77
77
  {
78
78
  container: true,
79
79
  spacing: 1,
@@ -84,8 +84,8 @@ function SensitivityAnalysisParametersForm({
84
84
  },
85
85
  justifyContent: "space-between",
86
86
  children: [
87
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, xl: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
88
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, xl: 2, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
87
+ /* @__PURE__ */ jsx(Grid2, { size: { xs: 8, xl: 4 }, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
88
+ /* @__PURE__ */ jsx(Grid2, { size: { xs: 4, xl: 2 }, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
89
89
  MuiSelectInput,
90
90
  {
91
91
  name: PROVIDER,
@@ -104,12 +104,12 @@ function SensitivityAnalysisParametersForm({
104
104
  overflow: "auto",
105
105
  paddingLeft: 1
106
106
  },
107
- children: /* @__PURE__ */ jsxs(Grid, { container: true, children: [
108
- /* @__PURE__ */ jsxs(Grid, { xl: 6, children: [
109
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
107
+ children: /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
108
+ /* @__PURE__ */ jsxs(Grid2, { size: { xl: 6 }, children: [
109
+ /* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
110
110
  /* @__PURE__ */ jsx(SensitivityAnalysisFields, {})
111
111
  ] }),
112
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
112
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: 12, paddingTop: 4, paddingBottom: 2, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
113
113
  /* @__PURE__ */ jsx(
114
114
  SensitivityParametersSelector,
115
115
  {
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Grid, DialogActions, Button } from "@mui/material";
2
+ import { Grid2, DialogActions, Button } from "@mui/material";
3
3
  import { useState, useCallback, useEffect } from "react";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -121,7 +121,7 @@ function SensitivityAnalysisParametersInline({
121
121
  globalBuildStatus,
122
122
  renderActions: () => {
123
123
  return /* @__PURE__ */ jsxs(Fragment, { children: [
124
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, children: /* @__PURE__ */ jsxs(
124
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsxs(
125
125
  DialogActions,
126
126
  {
127
127
  sx: mergeSx(parametersStyles.controlParametersItem, {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, 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 { FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD } from "./constants.js";
5
5
  import "@mui/icons-material";
@@ -32,11 +32,10 @@ import "mui-nested-menu";
32
32
  import "react-resizable-panels";
33
33
  import "react-papaparse";
34
34
  function SensitivityAnalysisFields() {
35
- return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
35
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
36
36
  /* @__PURE__ */ jsx(
37
- Grid,
37
+ Grid2,
38
38
  {
39
- item: true,
40
39
  sx: {
41
40
  fontWeight: "bold",
42
41
  marginBottom: "10px"
@@ -44,22 +43,22 @@ function SensitivityAnalysisFields() {
44
43
  children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" })
45
44
  }
46
45
  ),
47
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
48
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
46
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, children: [
47
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
49
48
  FloatInput,
50
49
  {
51
50
  name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
52
51
  label: "flowFlowSensitivityValueThreshold"
53
52
  }
54
53
  ) }),
55
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
54
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
56
55
  FloatInput,
57
56
  {
58
57
  name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
59
58
  label: "angleFlowSensitivityValueThreshold"
60
59
  }
61
60
  ) }),
62
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
63
62
  FloatInput,
64
63
  {
65
64
  name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useMemo, useEffect } from "react";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
- import { Grid, Box, Tabs, Tab, Card, CardContent } from "@mui/material";
4
+ import { Grid2, Box, Tabs, Tab, Card, CardContent } from "@mui/material";
5
5
  import { useFormContext } from "react-hook-form";
6
6
  import { SensiTabValues, SensiBranchesTabValues, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_PSTS, COLUMNS_DEFINITIONS_NODES } from "./columns-definitions.js";
7
7
  import "../../../utils/conversionUtils.js";
@@ -139,7 +139,7 @@ function SensitivityParametersSelector({
139
139
  setTabValue(SensiTabValues.SensitivityBranches);
140
140
  }
141
141
  }, [isDeveloperMode]);
142
- return /* @__PURE__ */ jsxs(Grid, { sx: { width: "100%" }, children: [
142
+ return /* @__PURE__ */ jsxs(Grid2, { sx: { width: "100%" }, children: [
143
143
  /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: "100%" }, children: [
144
144
  /* @__PURE__ */ jsx(Tabs, { value: tabValue, onChange: handleTabChange, children: tabInfo.map((tab, index) => /* @__PURE__ */ jsx(
145
145
  Tab,
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useMemo, useEffect } from "react";
3
- import { Grid } from "@mui/material";
3
+ import { Grid2 } from "@mui/material";
4
4
  import { green, red } from "@mui/material/colors";
5
5
  import { Lens } from "@mui/icons-material";
6
6
  import { useWatch } from "react-hook-form";
7
7
  import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_WITH_FEEDER_RESULT } from "./constants.js";
8
8
  import { VoltageTable } from "./short-circuit-voltage-table.js";
9
- import GridItem from "../../../components/composite/grid/grid-item.js";
10
- import GridSection from "../../../components/composite/grid/grid-section.js";
9
+ import { GridItem } from "../../../components/composite/grid/grid-item.js";
10
+ import { GridSection } from "../../../components/composite/grid/grid-section.js";
11
11
  import "react-intl";
12
12
  import "../../../components/ui/overflowableText/OverflowableText.js";
13
13
  import "../../../utils/conversionUtils.js";
@@ -122,9 +122,9 @@ const ShortCircuitGeneralTabPanel = forwardRef(
122
122
  const newPredefinedParameters = event.target.value;
123
123
  resetAll(newPredefinedParameters);
124
124
  };
125
- const feederResult = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
126
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
127
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
125
+ const feederResult = /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
126
+ /* @__PURE__ */ jsx(Grid2, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
127
+ /* @__PURE__ */ jsx(Grid2, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
128
128
  ] });
129
129
  const predefinedParameters = /* @__PURE__ */ jsx(
130
130
  MuiSelectInput,
@@ -183,26 +183,26 @@ const ShortCircuitGeneralTabPanel = forwardRef(
183
183
  isIccMaxFeaturesDefaultConfiguration,
184
184
  isIccMinFeaturesDefaultConfiguration
185
185
  ]);
186
- return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingLeft: 2, children: [
187
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 2, xl: 6, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
186
+ return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid2, { container: true, paddingLeft: 2, children: [
187
+ /* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
188
188
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
189
- /* @__PURE__ */ jsxs(Grid, { xl: 6, container: true, spacing: 1, alignItems: "center", children: [
189
+ /* @__PURE__ */ jsxs(Grid2, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
190
190
  /* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
191
191
  /* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
192
192
  ] }),
193
193
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
194
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 5, children: [
195
- /* @__PURE__ */ jsxs(Grid, { item: true, children: [
194
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 5, size: 12, children: [
195
+ /* @__PURE__ */ jsxs(Grid2, { children: [
196
196
  /* @__PURE__ */ jsx(GridItem, { children: loads }),
197
197
  /* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
198
198
  ] }),
199
- /* @__PURE__ */ jsxs(Grid, { item: true, xs: 8, children: [
199
+ /* @__PURE__ */ jsxs(Grid2, { size: 8, children: [
200
200
  /* @__PURE__ */ jsx(GridItem, { children: vsc }),
201
201
  /* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
202
202
  ] })
203
203
  ] }),
204
204
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
205
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
205
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
206
206
  /* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
207
207
  ] }) });
208
208
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useWatch } from "react-hook-form";
4
- import { Grid, Tabs, Tab, Box } from "@mui/material";
4
+ import { Grid2, Tabs, Tab, Box } from "@mui/material";
5
5
  import { FormattedMessage } from "react-intl";
6
6
  import { getTabStyle, parametersStyles } from "../parameters-style.js";
7
7
  import { ShortCircuitParametersTabValues } from "./short-circuit-parameters-utils.js";
@@ -65,7 +65,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
65
65
  [watchSpecificParameters]
66
66
  );
67
67
  return /* @__PURE__ */ jsxs(Fragment, { children: [
68
- /* @__PURE__ */ jsx(Grid, { item: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
68
+ /* @__PURE__ */ jsx(Grid2, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
69
69
  /* @__PURE__ */ jsx(
70
70
  Tab,
71
71
  {
@@ -91,7 +91,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
91
91
  }
92
92
  )
93
93
  ] }) }),
94
- /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid, { item: true, sx: styles.maxWidth, children: [
94
+ /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid2, { sx: styles.maxWidth, children: [
95
95
  /* @__PURE__ */ jsx(ShortCircuitGeneralTabPanel, { resetAll, value: selectedTab }),
96
96
  isThereSpecificParameters && /* @__PURE__ */ jsxs(Fragment, { children: [
97
97
  /* @__PURE__ */ jsx(ShortCircuitStudyAreaTabPanel, { value: selectedTab }),
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid, LinearProgress } from "@mui/material";
2
+ import { Box, Stack, Grid2, LinearProgress } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../components/ui/overflowableText/OverflowableText.js";
@@ -46,14 +46,11 @@ function ShortCircuitParametersForm({
46
46
  }) {
47
47
  const { formMethods, formSchema, paramsLoaded } = shortCircuitMethods;
48
48
  return /* @__PURE__ */ jsx(CustomFormProvider, { validationSchema: formSchema, ...formMethods, removeOptional: true, children: /* @__PURE__ */ jsxs(Box, { sx: styles.shortCircuitParameters, children: [
49
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, direction: "column", children: renderTitleFields?.() }),
50
- paramsLoaded ? /* @__PURE__ */ jsx(Grid, { sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(ShortCircuitParametersContent, { shortCircuitMethods }) }) : /* @__PURE__ */ jsx(LinearProgress, {}),
49
+ /* @__PURE__ */ jsx(Stack, { children: renderTitleFields?.() }),
50
+ paramsLoaded ? /* @__PURE__ */ jsx(Grid2, { sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(ShortCircuitParametersContent, { shortCircuitMethods }) }) : /* @__PURE__ */ jsx(LinearProgress, {}),
51
51
  /* @__PURE__ */ jsx(
52
- Grid,
52
+ Stack,
53
53
  {
54
- item: true,
55
- container: true,
56
- direction: "column",
57
54
  sx: {
58
55
  position: "absolute",
59
56
  bottom: "15px"
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useEffect } from "react";
3
- import { Box, Grid } from "@mui/material";
3
+ import { Box, Grid2 } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
6
6
  import { snackWithFallback } from "../../../utils/error.js";
@@ -106,7 +106,7 @@ function ShortCircuitParametersInLine({
106
106
  shortCircuitMethods,
107
107
  renderActions: () => {
108
108
  return /* @__PURE__ */ jsxs(Box, { children: [
109
- /* @__PURE__ */ jsxs(Grid, { container: true, item: true, children: [
109
+ /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
110
110
  /* @__PURE__ */ jsx(
111
111
  LabelledButton,
112
112
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { Grid } from "@mui/material";
3
+ import { Grid2 } from "@mui/material";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { ShortCircuitIccMaterialTable } from "./short-circuit-icc-material-table.js";
6
6
  import "../../../utils/conversionUtils.js";
@@ -40,8 +40,8 @@ import "../common/contingency-table/contingency-table.js";
40
40
  import "../common/contingency-table/columns-definitions.js";
41
41
  import "@hookform/resolvers/yup";
42
42
  import "../../../components/composite/filter/HeaderFilterForm.js";
43
- import GridSection from "../../../components/composite/grid/grid-section.js";
44
- import GridItem from "../../../components/composite/grid/grid-item.js";
43
+ import { GridSection } from "../../../components/composite/grid/grid-section.js";
44
+ import { GridItem } from "../../../components/composite/grid/grid-item.js";
45
45
  import { SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS } from "./constants.js";
46
46
  import { ShortCircuitIccClusterTable } from "./short-circuit-icc-cluster-table.js";
47
47
  import { COLUMNS_DEFINITIONS_ICC_MATERIALS, COLUMNS_DEFINITIONS_ICC_CLUSTERS } from "./columns-definition.js";
@@ -65,13 +65,13 @@ function createRows() {
65
65
  }
66
66
  const ShortCircuitPowerElectronicsTabPanel = forwardRef(
67
67
  ({ ...othersTabPanelProps }, ref) => {
68
- const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
69
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
70
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
68
+ const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
69
+ /* @__PURE__ */ jsx(Grid2, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
70
+ /* @__PURE__ */ jsx(Grid2, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
71
71
  ] });
72
72
  return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.POWER_ELECTRONICS, ref, ...othersTabPanelProps, children: [
73
73
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
74
- /* @__PURE__ */ jsx(Grid, { container: true, xl: 6, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
74
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
75
75
  /* @__PURE__ */ jsx(
76
76
  ShortCircuitIccMaterialTable,
77
77
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { Grid, Box } from "@mui/material";
3
+ import { Grid2, Box } from "@mui/material";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  import { ActivePowerAdornment } from "../../../utils/constants/adornments.js";
6
6
  import "../../../utils/conversionUtils.js";
@@ -44,8 +44,8 @@ import "../common/contingency-table/contingency-table.js";
44
44
  import "../common/contingency-table/columns-definitions.js";
45
45
  import "@hookform/resolvers/yup";
46
46
  import "../../../components/composite/filter/HeaderFilterForm.js";
47
- import GridSection from "../../../components/composite/grid/grid-section.js";
48
- import GridItem from "../../../components/composite/grid/grid-item.js";
47
+ import { GridSection } from "../../../components/composite/grid/grid-section.js";
48
+ import { GridItem } from "../../../components/composite/grid/grid-item.js";
49
49
  import { NODE_CLUSTER_FILTER_IDS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, onlyStartedGeneratorsOptions, STARTED_GENERATORS_IN_CALCULATION_CLUSTER_THRESHOLD, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER, STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER_THRESHOLD } from "./constants.js";
50
50
  import { ShortCircuitParametersTabValues } from "./short-circuit-parameters-utils.js";
51
51
  const equipmentTypes = [EquipmentType.VOLTAGE_LEVEL];
@@ -111,7 +111,7 @@ const ShortCircuitStudyAreaTabPanel = forwardRef(
111
111
  );
112
112
  return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.STUDY_AREA, ref, ...othersTabPanelProps, children: [
113
113
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitInClusterFilter", heading: 4 }),
114
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, sx: { paddingBottom: 4 }, children: /* @__PURE__ */ jsx(
114
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", sx: { paddingBottom: 4 }, children: /* @__PURE__ */ jsx(
115
115
  DirectoryItemsInput,
116
116
  {
117
117
  titleId: "FiltersListsSelection",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, Alert } from "@mui/material";
2
+ import { Stack, Alert, Grid2 } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "@mui/icons-material";
5
5
  import "../../../components/ui/overflowableText/OverflowableText.js";
@@ -63,9 +63,9 @@ const initialEquipmentsSelectionType = {
63
63
  }
64
64
  };
65
65
  function EquipmentSelectionParameters() {
66
- return /* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", children: [
66
+ return /* @__PURE__ */ jsxs(Stack, { children: [
67
67
  /* @__PURE__ */ jsx(Alert, { sx: equipmentsSelectionStyles.alert, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersEquipmentsSelectionAlert" }) }),
68
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
68
+ /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
69
69
  RadioInput,
70
70
  {
71
71
  name: GENERATORS_SELECTION_TYPE,
@@ -82,7 +82,7 @@ function EquipmentSelectionParameters() {
82
82
  hideErrorMessage: true
83
83
  }
84
84
  ),
85
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
85
+ /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
86
86
  RadioInput,
87
87
  {
88
88
  name: TRANSFORMERS_SELECTION_TYPE,
@@ -99,7 +99,7 @@ function EquipmentSelectionParameters() {
99
99
  hideErrorMessage: true
100
100
  }
101
101
  ),
102
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
102
+ /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
103
103
  RadioInput,
104
104
  {
105
105
  name: SHUNT_COMPENSATORS_SELECTION_TYPE,
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useFormContext, useWatch } from "react-hook-form";
3
3
  import { useCallback } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
- import { Grid, Alert, Box } from "@mui/material";
5
+ import { Grid2, Alert, Box } from "@mui/material";
6
6
  import { GENERAL, GENERAL_APPLY_MODIFICATIONS, UPDATE_BUS_VOLTAGE, REACTIVE_SLACKS_THRESHOLD, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD } from "./constants.js";
7
7
  import { ReactivePowerAdornment } from "../../../utils/constants/adornments.js";
8
8
  import "../../../utils/conversionUtils.js";
@@ -65,7 +65,7 @@ function GeneralParameters({ withApplyModifications }) {
65
65
  },
66
66
  [setValue]
67
67
  );
68
- return /* @__PURE__ */ jsxs(Grid, { children: [
68
+ return /* @__PURE__ */ jsxs(Grid2, { children: [
69
69
  withApplyModifications && /* @__PURE__ */ jsxs(Fragment, { children: [
70
70
  /* @__PURE__ */ jsx(Alert, { sx: parametersStyles.adjustExistingLimitsInfo, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersGeneralSaveInfo" }) }),
71
71
  /* @__PURE__ */ jsx(
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid, LinearProgress, Tabs, Tab } from "@mui/material";
2
+ import { Box, Grid2, Stack, LinearProgress, Tabs, Tab } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { getTabStyle, getTabIndicatorStyle } from "../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -75,8 +75,8 @@ function VoltageInitParametersForm({
75
75
  position: "relative"
76
76
  },
77
77
  children: [
78
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, sx: renderActions ? styles.gridWithActions : styles.gridWithoutActions, children: [
79
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, direction: "column", children: renderTitleFields?.() }),
78
+ /* @__PURE__ */ jsxs(Grid2, { container: true, sx: renderActions ? styles.gridWithActions : styles.gridWithoutActions, children: [
79
+ /* @__PURE__ */ jsx(Stack, { children: renderTitleFields?.() }),
80
80
  paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsxs(
81
81
  Box,
82
82
  {
@@ -122,7 +122,7 @@ function VoltageInitParametersForm({
122
122
  ]
123
123
  }
124
124
  ),
125
- /* @__PURE__ */ jsxs(Grid, { container: true, children: [
125
+ /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
126
126
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.GENERAL, children: /* @__PURE__ */ jsx(GeneralParameters, { withApplyModifications: renderActions != null }) }),
127
127
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.VOLTAGE_LIMITS, children: /* @__PURE__ */ jsx(VoltageLimitsParameters, {}) }),
128
128
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.EQUIPMENTS_SELECTION, children: /* @__PURE__ */ jsx(EquipmentSelectionParameters, {}) })
@@ -132,11 +132,8 @@ function VoltageInitParametersForm({
132
132
  )
133
133
  ] }),
134
134
  renderActions && /* @__PURE__ */ jsx(
135
- Grid,
135
+ Stack,
136
136
  {
137
- item: true,
138
- container: true,
139
- direction: "column",
140
137
  sx: {
141
138
  position: "fixed",
142
139
  bottom: "15px"
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useEffect } from "react";
3
- import { Box, Grid } from "@mui/material";
3
+ import { Box, Grid2 } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
6
6
  import { snackWithFallback } from "../../../utils/error.js";
@@ -115,7 +115,7 @@ function VoltageInitParametersInLine({
115
115
  voltageInitMethods,
116
116
  renderActions: () => {
117
117
  return /* @__PURE__ */ jsxs(Box, { children: [
118
- /* @__PURE__ */ jsxs(Grid, { container: true, item: true, children: [
118
+ /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
119
119
  /* @__PURE__ */ jsx(
120
120
  LabelledButton,
121
121
  {