@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 { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2, Stack } from "@mui/material";
3
3
  import { DescriptionField } from "../../../../components/ui/reactHookForm/text/DescriptionField.js";
4
4
  import { UniqueNameInput } from "../../../../components/ui/reactHookForm/text/UniqueNameInput.js";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -12,8 +12,8 @@ function NameElementEditorForm({
12
12
  activeDirectory,
13
13
  elementType
14
14
  }) {
15
- return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, direction: "column", marginBottom: "8px", children: [
16
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
15
+ return /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, marginBottom: "8px", children: [
16
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
17
17
  UniqueNameInput,
18
18
  {
19
19
  name: FieldConstants.NAME,
@@ -25,7 +25,7 @@ function NameElementEditorForm({
25
25
  fullWidth: false
26
26
  }
27
27
  ) }),
28
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(DescriptionField, { expandingTextSx: filterStyles.description }) })
28
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(DescriptionField, { expandingTextSx: filterStyles.description }) })
29
29
  ] }) });
30
30
  }
31
31
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, Typography, Chip } from "@mui/material";
2
+ import { Grid2, Typography, Chip } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -96,9 +96,9 @@ function ParameterField({ id, name, type, label, description, possibleValues, sx
96
96
  return null;
97
97
  }
98
98
  };
99
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: [
100
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
101
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 4, sx: parametersStyles.controlItem, children: renderField() }),
99
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", size: 12, children: [
100
+ /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
101
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: renderField() }),
102
102
  /* @__PURE__ */ jsx(LineSeparator, {})
103
103
  ] }, name);
104
104
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, Typography } from "@mui/material";
2
+ import { Grid2, Typography } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useFieldArray, useFormContext } from "react-hook-form";
5
5
  import { Info } from "@mui/icons-material";
@@ -84,8 +84,8 @@ function ParameterTableField({
84
84
  },
85
85
  [isValidRow, onChange]
86
86
  );
87
- return /* @__PURE__ */ jsxs(Grid, { container: true, sx: sxContainerProps, children: [
88
- label && /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
87
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, sx: sxContainerProps, size: 12, children: [
88
+ label && /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
89
89
  /* @__PURE__ */ jsx(Typography, { component: "span", variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
90
90
  tooltipProps && /* @__PURE__ */ jsx(
91
91
  CustomTooltip,
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { FormattedMessage } from "react-intl";
3
- import { Typography, Box, Button, Grid, Switch } from "@mui/material";
3
+ import { Typography, Box, Button, Grid2, Switch } from "@mui/material";
4
4
  import { parametersStyles } from "../parameters-style.js";
5
5
  function LabelledButton({ callback, label, ...props }) {
6
6
  return /* @__PURE__ */ jsx(Button, { onClick: callback, ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) });
7
7
  }
8
8
  function SwitchWithLabel({ value, label, callback }) {
9
9
  return /* @__PURE__ */ jsxs(Fragment, { children: [
10
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
11
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
10
+ /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
11
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
12
12
  Switch,
13
13
  {
14
14
  checked: value,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } 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 { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.js";
5
5
  import "@mui/icons-material";
@@ -40,9 +40,9 @@ function ParameterFloat({
40
40
  labelSize,
41
41
  inputSize
42
42
  }) {
43
- const content = /* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "row", spacing: 1, paddingTop: 3, children: [
44
- /* @__PURE__ */ jsx(Grid, { item: true, xs: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
45
- /* @__PURE__ */ jsx(Grid, { item: true, xs: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
43
+ const content = /* @__PURE__ */ jsxs(Grid2, { container: true, direction: "row", spacing: 1, paddingTop: 3, size: 12, children: [
44
+ /* @__PURE__ */ jsx(Grid2, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
45
+ /* @__PURE__ */ jsx(Grid2, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
46
46
  ] });
47
47
  if (tooltip) {
48
48
  return /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: tooltip }), children: content });
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Settings, ExpandCircleDown, ExpandMore } from "@mui/icons-material";
3
- import { Grid, Accordion, AccordionSummary, Typography, AccordionDetails } from "@mui/material";
3
+ import { Grid2, Accordion, AccordionSummary, Typography, AccordionDetails } from "@mui/material";
4
4
  import { useState } from "react";
5
5
  import { FormattedMessage } from "react-intl";
6
6
  import { parametersStyles } from "../../parameters-style.js";
@@ -14,7 +14,7 @@ function ParameterGroup({
14
14
  children
15
15
  }) {
16
16
  const [mouseHover, setMouseHover] = useState(false);
17
- return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sx: parametersStyles.subgroupParameters, children: /* @__PURE__ */ jsxs(
17
+ return /* @__PURE__ */ jsx(Grid2, { size: 12, sx: parametersStyles.subgroupParameters, children: /* @__PURE__ */ jsxs(
18
18
  Accordion,
19
19
  {
20
20
  sx: parametersStyles.subgroupParametersAccordion,
@@ -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 { parametersStyles } from "../../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -39,9 +39,9 @@ function ParameterLineDirectoryItemsInput({
39
39
  hideErrorMessage,
40
40
  allowMultiSelect = true
41
41
  }) {
42
- return /* @__PURE__ */ jsxs(Grid, { item: true, container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, children: [
43
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 7, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
44
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
42
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, size: 12, children: [
43
+ /* @__PURE__ */ jsx(Grid2, { size: 7, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
44
+ /* @__PURE__ */ jsx(Grid2, { size: 5, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
45
45
  DirectoryItemsInput,
46
46
  {
47
47
  name,
@@ -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 { parametersStyles } from "../../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -49,9 +49,9 @@ function ParameterLineSlider({
49
49
  minValue = 0,
50
50
  maxValue = 100
51
51
  }) {
52
- return /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.container, children: [
53
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
52
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.container, children: [
53
+ /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
55
55
  SliderInput,
56
56
  {
57
57
  name,
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { SwitchWithLabel } from "../parameters.js";
4
4
  function ParameterSwitch({ label, value, onChange, key }) {
5
- return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange }) }, key);
5
+ return /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange }) }, key);
6
6
  }
7
7
  export {
8
8
  ParameterSwitch
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid, Tabs, Tab, LinearProgress } from "@mui/material";
2
+ import { Stack, Grid2, Tabs, Tab, LinearProgress } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "../../../utils/conversionUtils.js";
5
5
  import "../../../utils/types/equipmentType.js";
@@ -55,9 +55,9 @@ function DynamicMarginCalculationForm({
55
55
  });
56
56
  return /* @__PURE__ */ jsxs(Fragment, { children: [
57
57
  renderTitleFields?.(),
58
- paramsLoaded ? /* @__PURE__ */ jsxs(Grid, { container: true, sx: { height: "100%" }, direction: "column", children: [
59
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders }) }),
60
- /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
58
+ paramsLoaded ? /* @__PURE__ */ jsxs(Stack, { sx: { height: "100%" }, children: [
59
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders }) }),
60
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
61
61
  /* @__PURE__ */ jsx(
62
62
  Tab,
63
63
  {
@@ -76,10 +76,10 @@ function DynamicMarginCalculationForm({
76
76
  )
77
77
  ] }) }),
78
78
  /* @__PURE__ */ jsxs(
79
- Grid,
79
+ Grid2,
80
80
  {
81
81
  container: true,
82
- xs: true,
82
+ size: "grow",
83
83
  sx: mergeSx(parametersStyles.scrollableGrid, {
84
84
  paddingTop: 0,
85
85
  width: "100%"
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { useState, useCallback, useEffect } from "react";
5
5
  import "../../../utils/conversionUtils.js";
@@ -104,8 +104,8 @@ function DynamicMarginCalculationInline({
104
104
  }, [formState, setHaveDirtyFields]);
105
105
  const renderActions = (onSubmitError) => {
106
106
  return /* @__PURE__ */ jsxs(Fragment, { children: [
107
- /* @__PURE__ */ jsx(Grid, { container: true, item: true, children: /* @__PURE__ */ jsxs(
108
- Grid,
107
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsxs(
108
+ Grid2,
109
109
  {
110
110
  sx: mergeSx(parametersStyles.controlParametersItem, {
111
111
  paddingTop: 1,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { Grid } from "@mui/material";
4
+ import { Grid2 } from "@mui/material";
5
5
  import * as yup from "yup";
6
6
  import { LOADS_VARIATIONS, ACTIVE, VARIATION, LOAD_FILTERS, LOAD_MODELS_RULE, ACCURACY, CALCULATION_TYPE } from "./constants.js";
7
7
  import { ID } from "../../../utils/constants/filterConstant.js";
@@ -129,7 +129,7 @@ function LoadsVariationsParameters({ path }) {
129
129
  label: inlt.formatMessage({ id: colDef.label })
130
130
  }));
131
131
  }, [inlt]);
132
- return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
132
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
133
133
  params.map((param) => {
134
134
  const { name, type, ...otherParams } = param;
135
135
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import * as yup from "yup";
4
4
  import { LOAD_INCREASE_STOP_TIME, LOAD_INCREASE_START_TIME, MARGIN_CALCULATION_START_TIME, STOP_TIME, START_TIME } from "./constants.js";
5
5
  import "../../../utils/conversionUtils.js";
@@ -49,7 +49,7 @@ const params = [
49
49
  }
50
50
  ];
51
51
  function TimeDelayParameters({ path }) {
52
- return /* @__PURE__ */ jsx(Grid, { container: true, children: params.map((param) => {
52
+ return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
53
53
  const { name, type, ...otherParams } = param;
54
54
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
55
55
  }) });
@@ -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 "../../../utils/conversionUtils.js";
4
4
  import { ElementType } from "../../../utils/types/elementType.js";
5
5
  import "../../../utils/types/equipmentType.js";
@@ -48,7 +48,7 @@ const params = [
48
48
  }
49
49
  ];
50
50
  function ContingencyParameters({ path }) {
51
- return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
51
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
52
52
  params.map((param) => {
53
53
  const { name, type, ...otherParams } = param;
54
54
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } 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 { useState, useCallback, useEffect } from "react";
5
5
  import "../../../utils/conversionUtils.js";
@@ -81,8 +81,8 @@ function DynamicSecurityAnalysisInline({
81
81
  }, [formState, setHaveDirtyFields]);
82
82
  const renderActions = (onSubmitError) => {
83
83
  return /* @__PURE__ */ jsxs(Fragment, { children: [
84
- /* @__PURE__ */ jsx(Grid, { container: true, item: true, children: /* @__PURE__ */ jsxs(
85
- Grid,
84
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsxs(
85
+ Grid2,
86
86
  {
87
87
  sx: mergeSx(parametersStyles.controlParametersItem, {
88
88
  paddingTop: 1,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid, Tabs, Tab, LinearProgress } from "@mui/material";
2
+ import { Stack, Grid2, Tabs, Tab, LinearProgress } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import ScenarioParameters from "./scenario-parameters.js";
5
5
  import ContingencyParameters from "./contingency-parameters.js";
@@ -55,9 +55,9 @@ function DynamicSecurityAnalysisParametersForm({
55
55
  });
56
56
  return /* @__PURE__ */ jsxs(Fragment, { children: [
57
57
  renderTitleFields?.(),
58
- paramsLoaded ? /* @__PURE__ */ jsxs(Grid, { container: true, sx: { height: "100%" }, direction: "column", children: [
59
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders }) }),
60
- /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
58
+ paramsLoaded ? /* @__PURE__ */ jsxs(Stack, { sx: { height: "100%" }, children: [
59
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders }) }),
60
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
61
61
  /* @__PURE__ */ jsx(
62
62
  Tab,
63
63
  {
@@ -76,11 +76,10 @@ function DynamicSecurityAnalysisParametersForm({
76
76
  )
77
77
  ] }) }),
78
78
  /* @__PURE__ */ jsxs(
79
- Grid,
79
+ Grid2,
80
80
  {
81
81
  container: true,
82
- item: true,
83
- xs: true,
82
+ size: "grow",
84
83
  sx: mergeSx(parametersStyles.scrollableGrid, {
85
84
  paddingTop: 0,
86
85
  width: "100%"
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { SCENARIO_DURATION } from "./constants.js";
4
4
  import "../../../utils/conversionUtils.js";
5
5
  import "../../../utils/types/equipmentType.js";
@@ -14,7 +14,7 @@ const params = [
14
14
  }
15
15
  ];
16
16
  function ScenarioParameters({ path }) {
17
- return /* @__PURE__ */ jsx(Grid, { container: true, children: params.map((param) => {
17
+ return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
18
18
  const { name, type, ...otherParams } = param;
19
19
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
20
20
  }) });
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, IconButton } from "@mui/material";
2
+ import { Grid2, IconButton } from "@mui/material";
3
3
  import { AddCircle, Delete } from "@mui/icons-material";
4
4
  import { useCallback } from "react";
5
5
  import { useIntl } from "react-intl";
@@ -12,8 +12,8 @@ function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete
12
12
  const handleDeleteButton = useCallback(() => {
13
13
  onDeleteButton();
14
14
  }, [onDeleteButton]);
15
- return /* @__PURE__ */ jsxs(Grid, { container: true, item: true, xs: true, spacing: 1, sx: { justifyContent: "flex-end", alignItems: "flex-end" }, children: [
16
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
15
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, size: "grow", spacing: 1, sx: { justifyContent: "flex-end", alignItems: "flex-end" }, children: [
16
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
17
17
  CustomTooltip,
18
18
  {
19
19
  title: intl.formatMessage({
@@ -22,7 +22,7 @@ function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete
22
22
  children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => handleAddButton(), disabled: disabledAdd, children: /* @__PURE__ */ jsx(AddCircle, {}) }) })
23
23
  }
24
24
  ) }),
25
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
25
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
26
26
  CustomTooltip,
27
27
  {
28
28
  title: intl.formatMessage({
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useTheme, Grid, Typography, Box } from "@mui/material";
2
+ import { useTheme, Stack, Grid2, Typography, Box } from "@mui/material";
3
3
  import { useState, useRef, useCallback, useMemo } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { useFormContext, useFieldArray } from "react-hook-form";
@@ -121,15 +121,14 @@ function CurveParameters({
121
121
  return mapping?.id ? fetchDynamicSimulationModels(mapping) : void 0;
122
122
  }, [getValues, mappingPath]);
123
123
  return /* @__PURE__ */ jsxs(Fragment, { children: [
124
- /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", sx: { height: 600 }, children: [
125
- /* @__PURE__ */ jsxs(Grid, { container: true, item: true, sx: { marginBottom: theme.spacing(1) }, children: [
126
- /* @__PURE__ */ jsx(Grid, { container: true, item: true, xs: "auto", children: /* @__PURE__ */ jsx(GridSearch, { ref: quickFilterRef, gridRef }, "curve-quick-filter") }),
124
+ /* @__PURE__ */ jsxs(Stack, { sx: { height: 600 }, children: [
125
+ /* @__PURE__ */ jsxs(Grid2, { container: true, sx: { marginBottom: theme.spacing(1) }, children: [
126
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: "auto", children: /* @__PURE__ */ jsx(GridSearch, { ref: quickFilterRef, gridRef }, "curve-quick-filter") }),
127
127
  /* @__PURE__ */ jsx(
128
- Grid,
128
+ Grid2,
129
129
  {
130
130
  container: true,
131
- item: true,
132
- xs: "auto",
131
+ size: "auto",
133
132
  sx: {
134
133
  justifyContent: "flex-end",
135
134
  alignItems: "flex-end",
@@ -149,7 +148,7 @@ function CurveParameters({
149
148
  }
150
149
  )
151
150
  ] }),
152
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
151
+ /* @__PURE__ */ jsx(Grid2, { sx: { flexGrow: 1, minHeight: 0 }, children: /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
153
152
  CustomAGGrid,
154
153
  {
155
154
  ref: gridRef,
@@ -1,7 +1,7 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useRef, useState, useMemo, useCallback, useImperativeHandle } from "react";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
- import { Grid, Typography, Box } from "@mui/material";
4
+ import { Stack, Typography, Box } from "@mui/material";
5
5
  import { AGGRID_LOCALES } from "../../../../../translations/not-intl/aggrid-locales.js";
6
6
  import { CustomAGGrid } from "../../../../../components/composite/customAGGrid/customAggrid.js";
7
7
  import "../../../../../utils/conversionUtils.js";
@@ -104,12 +104,12 @@ const CurvePreview = forwardRef((props, ref) => {
104
104
  }),
105
105
  [addCurves, removeCurves, rowData]
106
106
  );
107
- return /* @__PURE__ */ jsxs(Fragment, { children: [
108
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Typography, { sx: styles.h6, variant: "h6", children: [
107
+ return /* @__PURE__ */ jsxs(Stack, { sx: { height: "100%", minHeight: 0 }, children: [
108
+ /* @__PURE__ */ jsxs(Typography, { sx: styles.h6, variant: "h6", children: [
109
109
  /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveToAdd" }),
110
110
  ` (${selectedRowsLength} / ${rowData.length})`
111
- ] }) }),
112
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
111
+ ] }),
112
+ /* @__PURE__ */ jsx(Box, { sx: [styles.grid, { flexGrow: 1, minHeight: 0 }], children: /* @__PURE__ */ jsx(
113
113
  CustomAGGrid,
114
114
  {
115
115
  ref: gridRef,
@@ -120,7 +120,7 @@ const CurvePreview = forwardRef((props, ref) => {
120
120
  onSelectionChanged,
121
121
  overrideLocales: AGGRID_LOCALES
122
122
  }
123
- ) }) })
123
+ ) })
124
124
  ] });
125
125
  });
126
126
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid, IconButton, DialogActions, Button } from "@mui/material";
2
+ import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid2, Stack, IconButton, DialogActions, Button } from "@mui/material";
3
3
  import { useRef, useCallback } from "react";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { ArrowCircleRight, ArrowCircleLeft } from "@mui/icons-material";
@@ -55,7 +55,7 @@ function CurveSelectorDialog({
55
55
  return /* @__PURE__ */ jsxs(Dialog, { open, "aria-labelledby": "curve-selector-dialog-title", maxWidth: "xl", fullWidth: true, children: [
56
56
  /* @__PURE__ */ jsx(DialogTitle, { id: "curve-selector-dialog-title", children: /* @__PURE__ */ jsx(Typography, { component: "span", variant: "h5", sx: parametersStyles.title, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveSelectorDialogTitle" }) }) }),
57
57
  /* @__PURE__ */ jsx(DialogContent, { style: { overflowY: "hidden", height: "60vh" }, children: /* @__PURE__ */ jsxs(
58
- Grid,
58
+ Grid2,
59
59
  {
60
60
  container: true,
61
61
  sx: mergeSx(parametersStyles.scrollableGrid, {
@@ -64,7 +64,7 @@ function CurveSelectorDialog({
64
64
  maxHeight: "100%"
65
65
  }),
66
66
  children: [
67
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 8, spacing: theme.spacing(1), children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsx(Grid2, { container: true, size: 8, spacing: theme.spacing(1), children: /* @__PURE__ */ jsx(
68
68
  CurveSelector,
69
69
  {
70
70
  ref: selectorRef,
@@ -74,8 +74,8 @@ function CurveSelectorDialog({
74
74
  modelsFetcher
75
75
  }
76
76
  ) }),
77
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", justifyContent: "center", alignItems: "center", xs: 0.5, children: [
78
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
77
+ /* @__PURE__ */ jsx(Grid2, { size: 0.5, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs(Stack, { children: [
78
+ /* @__PURE__ */ jsx(
79
79
  CustomTooltip,
80
80
  {
81
81
  title: intl.formatMessage({
@@ -91,8 +91,8 @@ function CurveSelectorDialog({
91
91
  }
92
92
  ) })
93
93
  }
94
- ) }),
95
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
94
+ ),
95
+ /* @__PURE__ */ jsx(
96
96
  CustomTooltip,
97
97
  {
98
98
  title: intl.formatMessage({
@@ -108,9 +108,9 @@ function CurveSelectorDialog({
108
108
  }
109
109
  ) })
110
110
  }
111
- ) })
112
- ] }),
113
- /* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: true, direction: "column", children: /* @__PURE__ */ jsx(CurvePreview, { ref: previewRef }) })
111
+ )
112
+ ] }) }),
113
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(CurvePreview, { ref: previewRef }) })
114
114
  ]
115
115
  }
116
116
  ) }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid, Typography } from "@mui/material";
2
+ import { Grid2, Stack, Typography } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { forwardRef, useRef, useState, useCallback, useImperativeHandle } from "react";
5
5
  import { getReferencedEquipmentTypeForModel } from "./curve-selector-utils.js";
@@ -39,55 +39,31 @@ const CurveSelector = forwardRef(
39
39
  []
40
40
  );
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
- /* @__PURE__ */ jsxs(
43
- Grid,
44
- {
45
- item: true,
46
- container: true,
47
- xs: 6,
48
- direction: "column",
49
- alignItems: "flex-start",
50
- justifyContent: "flex-start",
51
- spacing: 1,
52
- children: [
53
- /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentFilter" }) }),
54
- /* @__PURE__ */ jsx(
55
- EquipmentFilter,
56
- {
57
- ref: equipmentFilterRef,
58
- equipmentType,
59
- onChangeEquipmentType: handleChangeEquipmentType,
60
- voltageLevelsFetcher,
61
- countriesFetcher,
62
- evaluateFilterFetcher
63
- }
64
- )
65
- ]
66
- }
67
- ),
68
- /* @__PURE__ */ jsxs(
69
- Grid,
70
- {
71
- item: true,
72
- container: true,
73
- xs: 6,
74
- direction: "column",
75
- alignItems: "flex-start",
76
- justifyContent: "flex-start",
77
- spacing: 1,
78
- children: [
79
- /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCurveFilter" }) }),
80
- /* @__PURE__ */ jsx(
81
- ModelFilter,
82
- {
83
- ref: modelFilterRef,
84
- equipmentType: getReferencedEquipmentTypeForModel(equipmentType),
85
- modelsFetcher
86
- }
87
- )
88
- ]
89
- }
90
- )
42
+ /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
43
+ /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentFilter" }) }),
44
+ /* @__PURE__ */ jsx(
45
+ EquipmentFilter,
46
+ {
47
+ ref: equipmentFilterRef,
48
+ equipmentType,
49
+ onChangeEquipmentType: handleChangeEquipmentType,
50
+ voltageLevelsFetcher,
51
+ countriesFetcher,
52
+ evaluateFilterFetcher
53
+ }
54
+ )
55
+ ] }) }),
56
+ /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
57
+ /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCurveFilter" }) }),
58
+ /* @__PURE__ */ jsx(
59
+ ModelFilter,
60
+ {
61
+ ref: modelFilterRef,
62
+ equipmentType: getReferencedEquipmentTypeForModel(equipmentType),
63
+ modelsFetcher
64
+ }
65
+ )
66
+ ] }) })
91
67
  ] });
92
68
  }
93
69
  );