@gridsuite/commons-ui 0.239.0 → 0.241.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 (207) 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/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +2 -2
  5. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +4 -4
  6. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
  7. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +26 -13
  8. package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
  9. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  10. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  11. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  12. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  13. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
  14. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +2 -4
  15. package/dist/components/composite/grid/grid-item.d.ts +4 -3
  16. package/dist/components/composite/grid/grid-item.js +8 -4
  17. package/dist/components/composite/grid/grid-section.d.ts +1 -1
  18. package/dist/components/composite/grid/grid-section.js +3 -3
  19. package/dist/components/composite/grid/index.js +6 -3
  20. package/dist/components/composite/index.js +4 -3
  21. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  22. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
  23. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  24. package/dist/components/index.js +4 -3
  25. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +9 -9
  26. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  27. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  28. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +4 -4
  29. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  30. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  31. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  32. package/dist/features/authentication/AuthenticationRouter.js +2 -2
  33. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  34. package/dist/features/index.js +6 -1
  35. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +7 -7
  36. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +4 -4
  37. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +8 -8
  38. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +5 -5
  39. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -1
  40. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +4 -4
  41. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  42. package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -1
  43. package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +1 -1
  44. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  45. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  46. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  47. package/dist/features/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.js +4 -3
  48. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +2 -2
  49. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +4 -4
  50. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  51. package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -1
  52. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  53. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +3 -3
  54. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -1
  55. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  56. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +2 -2
  57. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +5 -5
  58. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +3 -3
  59. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +5 -5
  60. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +6 -6
  61. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -5
  62. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +5 -5
  63. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +9 -9
  64. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +5 -5
  65. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +9 -9
  66. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +5 -5
  67. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +5 -5
  68. package/dist/features/network-modifications/load/common/LoadDialogTabsContent.js +1 -1
  69. package/dist/features/network-modifications/load/common/LoadForm.js +5 -5
  70. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +12 -12
  71. package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts +8 -8
  72. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +11 -11
  73. package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.d.ts +12 -12
  74. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +3 -3
  75. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.d.ts +12 -12
  76. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +7 -7
  77. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +7 -7
  78. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +7 -7
  79. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +9 -9
  80. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +5 -5
  81. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  82. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -1
  83. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +7 -7
  84. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  85. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +3 -3
  86. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +1 -1
  87. package/dist/features/parameters/common/contingency-table/contingency-table.js +4 -4
  88. package/dist/features/parameters/common/hook/use-tabs.d.ts +3 -2
  89. package/dist/features/parameters/common/hook/use-tabs.js +2 -3
  90. package/dist/features/parameters/common/index.d.ts +2 -1
  91. package/dist/features/parameters/common/index.js +6 -1
  92. package/dist/features/parameters/common/line-separator.js +2 -2
  93. package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +4 -4
  94. package/dist/features/parameters/common/parameter-field.js +5 -4
  95. package/dist/features/parameters/common/parameter-layout/index.d.ts +8 -0
  96. package/dist/features/parameters/common/parameter-layout/index.js +7 -0
  97. package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.d.ts +10 -0
  98. package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.js +15 -0
  99. package/dist/features/parameters/common/parameter-layout/parameter-layout.d.ts +23 -0
  100. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +167 -0
  101. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  102. package/dist/features/parameters/common/parameters.js +3 -3
  103. package/dist/features/parameters/common/provider-param.d.ts +10 -0
  104. package/dist/features/parameters/common/{ProviderParam.js → provider-param.js} +9 -11
  105. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  106. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  107. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  108. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  109. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  110. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.d.ts +4 -5
  111. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +39 -60
  112. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +39 -101
  113. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  114. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  115. package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +8 -7
  116. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +12 -11
  117. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +38 -71
  118. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +4 -5
  119. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +39 -61
  120. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  121. package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +8 -7
  122. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  123. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +7 -8
  124. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +7 -7
  125. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +10 -10
  126. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +26 -50
  127. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +20 -20
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +11 -10
  129. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +42 -104
  130. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +4 -5
  131. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +75 -97
  132. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +10 -9
  133. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  135. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  136. package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +7 -6
  137. package/dist/features/parameters/index.js +6 -1
  138. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -0
  139. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +14 -13
  140. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +12 -18
  141. package/dist/features/parameters/loadflow/load-flow-parameters-form.d.ts +1 -6
  142. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +26 -91
  143. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +29 -53
  144. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +35 -128
  145. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +11 -10
  146. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +10 -9
  147. package/dist/features/parameters/network-visualizations/map-parameters.js +18 -17
  148. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  149. package/dist/features/parameters/network-visualizations/network-visualizations-form.d.ts +1 -4
  150. package/dist/features/parameters/network-visualizations/network-visualizations-form.js +19 -48
  151. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +13 -19
  152. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +34 -65
  153. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +18 -17
  154. package/dist/features/parameters/parameters-style.d.ts +0 -1
  155. package/dist/features/parameters/parameters-style.js +0 -2
  156. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +13 -18
  157. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.d.ts +7 -29
  158. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +16 -109
  159. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +27 -84
  160. package/dist/features/parameters/security-analysis/columns-definitions.js +11 -10
  161. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +20 -20
  162. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +2 -4
  163. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +44 -115
  164. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +40 -109
  165. package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +12 -11
  166. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +9 -11
  167. package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +7 -6
  168. package/dist/features/parameters/sensi/columns-definitions.js +9 -8
  169. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +21 -21
  170. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +3 -5
  171. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +33 -90
  172. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +40 -99
  173. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +8 -17
  174. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +10 -9
  175. package/dist/features/parameters/sensi/utils.js +8 -7
  176. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +15 -14
  177. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +11 -10
  178. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +13 -18
  179. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -4
  180. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +5 -63
  181. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +33 -101
  182. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +12 -11
  183. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +17 -16
  184. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +15 -14
  185. package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
  186. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +6 -5
  187. package/dist/features/parameters/voltage-init/general-parameters.js +11 -10
  188. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +13 -18
  189. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.d.ts +2 -24
  190. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +51 -108
  191. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +34 -90
  192. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  193. package/dist/features/process-configs/security-analysis/update-sa-process-config.js +7 -6
  194. package/dist/features/topBar/AboutDialog.js +4 -7
  195. package/dist/index.js +13 -4
  196. package/dist/translations/en/commonButtonEn.d.ts +2 -0
  197. package/dist/translations/en/commonButtonEn.js +2 -0
  198. package/dist/translations/en/parameters.d.ts +1 -0
  199. package/dist/translations/en/parameters.js +3 -1
  200. package/dist/translations/fr/commonButtonFr.d.ts +2 -0
  201. package/dist/translations/fr/commonButtonFr.js +2 -0
  202. package/dist/translations/fr/parameters.d.ts +1 -0
  203. package/dist/translations/fr/parameters.js +3 -1
  204. package/dist/utils/types/elementType.d.ts +1 -0
  205. package/dist/utils/types/elementType.js +1 -0
  206. package/package.json +3 -2
  207. package/dist/features/parameters/common/ProviderParam.d.ts +0 -7
@@ -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 { useState, useRef, useCallback, useMemo, useEffect } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -107,8 +107,8 @@ function VoltageLevelConnectivityForm({
107
107
  setBusOrBusbarSectionOptions([]);
108
108
  }
109
109
  }, [fetchBusesOrBusbarSections, voltageLevelOptions, watchVoltageLevelId]);
110
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
111
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
110
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
111
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
112
112
  AutocompleteInput,
113
113
  {
114
114
  isOptionEqualToValue: areIdsEqual,
@@ -131,7 +131,7 @@ function VoltageLevelConnectivityForm({
131
131
  size: "small"
132
132
  }
133
133
  ) }),
134
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
134
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
135
135
  AutocompleteInput,
136
136
  {
137
137
  allowNewValue: true,
@@ -1,10 +1,11 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Box } from "@mui/material";
2
3
  import { PowerMeasurementsForm } from "./PowerMeasurementsForm.js";
3
- import GridSection from "../../../../components/composite/grid/grid-section.js";
4
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
4
5
  function BranchActiveReactivePowerMeasurementsForm({
5
6
  equipmentToModify
6
7
  }) {
7
- return /* @__PURE__ */ jsxs(Fragment, { children: [
8
+ return /* @__PURE__ */ jsxs(Box, { sx: { width: "100%" }, children: [
8
9
  /* @__PURE__ */ jsx(GridSection, { title: "MeasurementsSection" }),
9
10
  /* @__PURE__ */ jsx(GridSection, { title: "Side1", heading: 4 }),
10
11
  /* @__PURE__ */ jsx(
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray } from "react-hook-form";
3
- import { Grid2 } from "@mui/material";
3
+ import { Stack, Grid2 } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { VoltageAdornment } from "../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -69,7 +69,7 @@ function BusbarSectionVoltageMeasurementsForm({
69
69
  });
70
70
  const intl = useIntl();
71
71
  const sortedFields = fields.map((field, i) => ({ ...field, originalIndex: i })).sort((a, b) => a.busbarSectionId.localeCompare(b.busbarSectionId));
72
- return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: "column", spacing: 1, children: [
72
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 1, children: [
73
73
  fields.length === 0 && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "NoBusbarSectionFound" }) }),
74
74
  sortedFields.map((field) => {
75
75
  const { busbarSectionId: bbsId, originalIndex } = field;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Stack, Grid2 } from "@mui/material";
3
3
  import { PowerWithValidityForm } from "./PowerWithValidityForm.js";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
@@ -31,8 +31,8 @@ function PowerMeasurementsForm({
31
31
  activePowerId = `${idPrefix}.${activePowerId}`;
32
32
  reactivePowerId = `${idPrefix}.${reactivePowerId}`;
33
33
  }
34
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
35
- !reactivePowerOnly && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
34
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
35
+ !reactivePowerOnly && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
36
36
  PowerWithValidityForm,
37
37
  {
38
38
  id: activePowerId,
@@ -40,7 +40,7 @@ function PowerMeasurementsForm({
40
40
  measurement: activePowerMeasurement
41
41
  }
42
42
  ) }),
43
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
43
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
44
44
  PowerWithValidityForm,
45
45
  {
46
46
  id: reactivePowerId,
@@ -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 { CheckboxNullableInput } from "../../../../components/ui/reactHookForm/CheckboxNullableInput.js";
6
6
  import "@mui/icons-material";
7
7
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -42,8 +42,8 @@ function PowerWithValidityForm({ id, field, measurement }) {
42
42
  }
43
43
  return measurement.validity ? intl.formatMessage({ id: "ValidMeasurement" }) : intl.formatMessage({ id: "InvalidMeasurement" });
44
44
  }, [intl, measurement?.validity]);
45
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
46
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
45
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
46
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
47
47
  FloatInput,
48
48
  {
49
49
  name: `${id}.${FieldConstants.VALUE}`,
@@ -53,7 +53,7 @@ function PowerWithValidityForm({ id, field, measurement }) {
53
53
  clearable: true
54
54
  }
55
55
  ) }),
56
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
56
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
57
57
  CheckboxNullableInput,
58
58
  {
59
59
  name: `${id}.${FieldConstants.VALIDITY}`,
@@ -3,7 +3,7 @@ import { useState, useEffect, useCallback } from "react";
3
3
  import { useWatch, useFormContext } from "react-hook-form";
4
4
  import { fetchPredefinedProperties, initializedProperty } from "./propertyUtils.js";
5
5
  import { PropertyForm } from "./PropertyForm.js";
6
- import GridSection from "../../../../components/composite/grid/grid-section.js";
6
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
7
7
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
8
8
  import "../../../../utils/conversionUtils.js";
9
9
  import "../../../../utils/types/equipmentType.js";
@@ -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 } from "@mui/material";
4
+ import { Grid2 } from "@mui/material";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
6
6
  import "../../../../utils/conversionUtils.js";
7
7
  import "../../../../utils/types/equipmentType.js";
@@ -53,14 +53,14 @@ function PropertyForm({ name, index, predefinedProperties }) {
53
53
  return values.sort((a, b) => a.localeCompare(b));
54
54
  }, [watchPropertyName, predefinedProperties]);
55
55
  return /* @__PURE__ */ jsxs(Fragment, { children: [
56
- watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
56
+ watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
57
57
  TextInput,
58
58
  {
59
59
  name: `${name}.${index}.${FieldConstants.NAME}`,
60
60
  label: "PropertyName",
61
61
  formProps: { disabled: true, ...italicFontTextField }
62
62
  }
63
- ) }) : /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
63
+ ) }) : /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
64
64
  AutocompleteInput,
65
65
  {
66
66
  name: `${name}.${index}.${FieldConstants.NAME}`,
@@ -70,7 +70,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
70
70
  allowNewValue: true
71
71
  }
72
72
  ) }),
73
- watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
73
+ watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
74
74
  TextInput,
75
75
  {
76
76
  name: `${name}.${index}.${FieldConstants.VALUE}`,
@@ -78,7 +78,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
78
78
  previousValue: watchPropertyPreviousValue,
79
79
  formProps: { disabled: true, ...italicFontTextField }
80
80
  }
81
- ) }) : /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
81
+ ) }) : /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
82
82
  AutocompleteInput,
83
83
  {
84
84
  name: `${name}.${index}.${FieldConstants.VALUE}`,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
- import { Grid } from "@mui/material";
3
+ import { Grid2 } from "@mui/material";
4
4
  import { ReactiveCapabilityCurveTableForm } from "./reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js";
5
5
  import { ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -34,7 +34,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
34
34
  import "mui-nested-menu";
35
35
  import "react-resizable-panels";
36
36
  import "react-papaparse";
37
- import GridItem from "../../../../components/composite/grid/grid-item.js";
37
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
38
38
  import { REACTIVE_LIMIT_TYPES } from "./reactiveLimits.utils.js";
39
39
  const headerIds = ["ActivePowerText", "MinimumReactivePower", "MaximumReactivePower"];
40
40
  function ReactiveLimitsForm({
@@ -85,7 +85,7 @@ function ReactiveLimitsForm({
85
85
  disabled: !isReactiveCapabilityCurveOn
86
86
  }
87
87
  );
88
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
88
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
89
89
  /* @__PURE__ */ jsx(GridItem, { size: 12, children: reactiveCapabilityCurveChoiceRadioField }),
90
90
  !isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumReactivePowerField }),
91
91
  !isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumReactivePowerField }),
@@ -32,7 +32,7 @@ import "../../../../../components/ui/snackbarProvider/SnackbarProvider.js";
32
32
  import "mui-nested-menu";
33
33
  import "react-resizable-panels";
34
34
  import "react-papaparse";
35
- import GridItem from "../../../../../components/composite/grid/grid-item.js";
35
+ import { GridItem } from "../../../../../components/composite/grid/grid-item.js";
36
36
  function ReactiveCapabilityCurveRowForm({
37
37
  id,
38
38
  index,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray } from "react-hook-form";
3
3
  import { useCallback, useEffect } from "react";
4
- import { Grid, IconButton } from "@mui/material";
4
+ import { Grid2, IconButton } from "@mui/material";
5
5
  import { Delete, ControlPoint } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
7
7
  import { INSERT, REMOVE } from "./reactiveCapability.utils.js";
@@ -72,9 +72,9 @@ function ReactiveCapabilityCurveTableForm({
72
72
  }
73
73
  }
74
74
  }, [insertRow, rows]);
75
- return /* @__PURE__ */ jsxs(Grid, { item: true, container: true, spacing: 2, children: [
76
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
77
- tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(FormattedMessage, { id: header }) }, header)),
75
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
76
+ /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
77
+ tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(FormattedMessage, { id: header }) }, header)),
78
78
  rows.map((value, index, displayedValues) => {
79
79
  let labelSuffix;
80
80
  if (index === 0) {
@@ -84,9 +84,9 @@ function ReactiveCapabilityCurveTableForm({
84
84
  } else {
85
85
  labelSuffix = index - 1;
86
86
  }
87
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, item: true, children: [
87
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 3, children: [
88
88
  /* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
89
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
89
+ /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
90
90
  IconButton,
91
91
  {
92
92
  onClick: () => handleRemoveRow(index),
@@ -95,7 +95,7 @@ function ReactiveCapabilityCurveTableForm({
95
95
  },
96
96
  value.id
97
97
  ) }),
98
- index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
98
+ index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
99
99
  IconButton,
100
100
  {
101
101
  onClick: () => handleInsertRow(),
@@ -78,7 +78,7 @@ function RegulatingTerminalForm({
78
78
  setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
79
79
  }, [id, setValue]);
80
80
  return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: direction ?? "row", spacing: 1, children: [
81
- /* @__PURE__ */ jsx(Grid2, { size: itemSize, sx: { align: "start" }, children: /* @__PURE__ */ jsx(
81
+ /* @__PURE__ */ jsx(Grid2, { size: itemSize, children: /* @__PURE__ */ jsx(
82
82
  AutocompleteInput,
83
83
  {
84
84
  name: `${id}.${FieldConstants.VOLTAGE_LEVEL}`,
@@ -110,7 +110,7 @@ function RegulatingTerminalForm({
110
110
  allowNewValue: true
111
111
  }
112
112
  ) }),
113
- /* @__PURE__ */ jsx(Grid2, { size: itemSize, sx: { align: "start" }, children: /* @__PURE__ */ jsx(
113
+ /* @__PURE__ */ jsx(Grid2, { size: itemSize, children: /* @__PURE__ */ jsx(
114
114
  AutocompleteInput,
115
115
  {
116
116
  name: `${id}.${FieldConstants.EQUIPMENT}`,
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
3
- import GridSection from "../../../../components/composite/grid/grid-section.js";
2
+ import { Grid2 } from "@mui/material";
3
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
4
4
  import { ActivePowerAdornment, ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
6
6
  import "../../../../utils/conversionUtils.js";
@@ -36,8 +36,8 @@ import "react-papaparse";
36
36
  function SetPointsForm({ previousValues, isModification = false }) {
37
37
  return /* @__PURE__ */ jsxs(Fragment, { children: [
38
38
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
39
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
40
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
39
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
40
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
41
41
  FloatInput,
42
42
  {
43
43
  name: FieldConstants.ACTIVE_POWER_SET_POINT,
@@ -47,7 +47,7 @@ function SetPointsForm({ previousValues, isModification = false }) {
47
47
  clearable: isModification
48
48
  }
49
49
  ) }),
50
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
50
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
51
51
  FloatInput,
52
52
  {
53
53
  name: FieldConstants.REACTIVE_POWER_SET_POINT,
@@ -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 "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -32,7 +32,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
32
32
  import "mui-nested-menu";
33
33
  import "react-resizable-panels";
34
34
  import "react-papaparse";
35
- import GridItem from "../../../../components/composite/grid/grid-item.js";
35
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
36
36
  function ShortCircuitForm({ previousValues }) {
37
37
  const transientReactanceField = /* @__PURE__ */ jsx(
38
38
  FloatInput,
@@ -54,7 +54,7 @@ function ShortCircuitForm({ previousValues }) {
54
54
  clearable: true
55
55
  }
56
56
  );
57
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
57
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
58
58
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: transientReactanceField }),
59
59
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: transformerReactanceField })
60
60
  ] });
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Box, Grid } from "@mui/material";
2
+ import { Box, Grid2 } from "@mui/material";
3
3
  import { useMemo } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { useIntl, FormattedMessage } from "react-intl";
@@ -33,7 +33,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
33
33
  import "mui-nested-menu";
34
34
  import "react-resizable-panels";
35
35
  import "react-papaparse";
36
- import GridItem from "../../../../components/composite/grid/grid-item.js";
36
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
37
37
  import { RegulatingTerminalForm } from "../regulatingTerminal/RegulatingTerminalForm.js";
38
38
  import { REGULATION_TYPES } from "./voltageRegulation.utils.js";
39
39
  function VoltageRegulationForm({
@@ -83,10 +83,10 @@ function VoltageRegulationForm({
83
83
  }
84
84
  ) }),
85
85
  /* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
86
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, justifySelf: "end" }),
86
+ /* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end" }),
87
87
  /* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
88
88
  isDistantRegulation && /* @__PURE__ */ jsxs(Fragment, { children: [
89
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, justifySelf: "end", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
89
+ /* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
90
90
  /* @__PURE__ */ jsx(GridItem, { size: 8, children: /* @__PURE__ */ jsx(
91
91
  RegulatingTerminalForm,
92
92
  {
@@ -98,7 +98,7 @@ function VoltageRegulationForm({
98
98
  equipmentSectionType: previousEquipmentSectionType
99
99
  }
100
100
  ) }),
101
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, justifySelf: "end" }),
101
+ /* @__PURE__ */ jsx(Grid2, { size: 4, justifySelf: "end" }),
102
102
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
103
103
  FloatInput,
104
104
  {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Stack, Grid2 } from "@mui/material";
3
3
  import { useRef, useState, useMemo, useEffect, useCallback } from "react";
4
4
  import { useWatch, useFormContext } from "react-hook-form";
5
5
  import { useHvdcLccDeletion } from "./hvdcLccDeletion/useHvdcLccDeletion.js";
@@ -154,9 +154,9 @@ function EquipmentDeletionForm({
154
154
  const handleTypeChange = useCallback(() => {
155
155
  setValue(FieldConstants.EQUIPMENT_ID, null);
156
156
  }, [setValue]);
157
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", children: [
158
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
159
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
157
+ return /* @__PURE__ */ jsxs(Stack, { children: [
158
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
159
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
160
160
  AutocompleteInput,
161
161
  {
162
162
  isOptionEqualToValue: richTypeEquals,
@@ -170,7 +170,7 @@ function EquipmentDeletionForm({
170
170
  formProps: filledTextField
171
171
  }
172
172
  ) }),
173
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
173
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
174
174
  AutocompleteInput,
175
175
  {
176
176
  isOptionEqualToValue: areIdsEqual,
@@ -187,7 +187,7 @@ function EquipmentDeletionForm({
187
187
  }
188
188
  ) })
189
189
  ] }) }),
190
- /* @__PURE__ */ jsx(Grid, { item: true, children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
190
+ /* @__PURE__ */ jsx(Grid2, { children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
191
191
  ] });
192
192
  }
193
193
  export {
@@ -1,11 +1,11 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { useFieldArray } from "react-hook-form";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
6
6
  import "../../../../utils/types/equipmentType.js";
7
7
  import "@mui/icons-material";
8
- import GridSection from "../../../../components/composite/grid/grid-section.js";
8
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
9
9
  import { ShuntCompensatorSelectionForm } from "./ShuntCompensatorSelectionForm.js";
10
10
  function HvdcLccDeletionSpecificForm() {
11
11
  const { fields: mcsRows1 } = useFieldArray({
@@ -16,8 +16,8 @@ function HvdcLccDeletionSpecificForm() {
16
16
  });
17
17
  return /* @__PURE__ */ jsxs(Fragment, { children: [
18
18
  /* @__PURE__ */ jsx(GridSection, { title: "LCCConverterStationShuntCompensators" }),
19
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
20
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
19
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
20
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
21
21
  ShuntCompensatorSelectionForm,
22
22
  {
23
23
  title: "Side1",
@@ -25,7 +25,7 @@ function HvdcLccDeletionSpecificForm() {
25
25
  mcsRows: mcsRows1
26
26
  }
27
27
  ) }),
28
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
28
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
29
29
  ShuntCompensatorSelectionForm,
30
30
  {
31
31
  title: "Side2",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Grid2 } from "@mui/material";
3
3
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
4
4
  import "../../../../utils/conversionUtils.js";
5
5
  import "../../../../utils/types/equipmentType.js";
@@ -32,7 +32,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
32
32
  import "mui-nested-menu";
33
33
  import "react-resizable-panels";
34
34
  import "react-papaparse";
35
- import GridSection from "../../../../components/composite/grid/grid-section.js";
35
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
36
36
  function ShuntCompensatorSelectionForm({
37
37
  title,
38
38
  arrayFormName,
@@ -40,14 +40,14 @@ function ShuntCompensatorSelectionForm({
40
40
  }) {
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
42
  /* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
43
- mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", children: [
44
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
43
+ mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, alignItems: "center", children: [
44
+ /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
45
45
  CheckboxInput,
46
46
  {
47
47
  name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
48
48
  }
49
49
  ) }),
50
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
50
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
51
51
  ] }, field.id))
52
52
  ] });
53
53
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Box, Grid } from "@mui/material";
2
+ import { Box, Grid2 } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { filledTextField, italicFontTextField } from "../../common/form.utils.js";
@@ -38,7 +38,7 @@ import "mui-nested-menu";
38
38
  import "react-resizable-panels";
39
39
  import "react-papaparse";
40
40
  import "../../common/properties/propertyUtils.js";
41
- import GridSection from "../../../../components/composite/grid/grid-section.js";
41
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
42
42
  import "react-dom";
43
43
  import "autosuggest-highlight/match";
44
44
  import "autosuggest-highlight/parse";
@@ -53,7 +53,7 @@ import "react-querybuilder";
53
53
  import "uuid";
54
54
  import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
55
55
  import "../../../../components/composite/filter/utils/filterFormUtils.js";
56
- import GridItem from "../../../../components/composite/grid/grid-item.js";
56
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
57
57
  import "@react-querybuilder/material";
58
58
  import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
59
59
  import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
@@ -149,15 +149,15 @@ function GeneratorCreationForm({
149
149
  }
150
150
  );
151
151
  return /* @__PURE__ */ jsxs(Fragment, { children: [
152
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
152
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
153
153
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorIdField }),
154
154
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorNameField }),
155
155
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: energySourceField })
156
156
  ] }),
157
157
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
158
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
158
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
159
159
  /* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
160
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
160
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
161
161
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
162
162
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
163
163
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
@@ -165,7 +165,7 @@ function GeneratorCreationForm({
165
165
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
166
166
  /* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
167
167
  /* @__PURE__ */ jsx(SetPointsForm, {}),
168
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
168
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
169
169
  /* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
170
170
  /* @__PURE__ */ jsx(
171
171
  GridItem,
@@ -182,10 +182,10 @@ function GeneratorCreationForm({
182
182
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
183
183
  /* @__PURE__ */ jsx(ShortCircuitForm, {}),
184
184
  /* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
185
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
185
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
186
186
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
187
187
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField }),
188
- /* @__PURE__ */ jsxs(Grid, { container: true, item: true, spacing: 2, children: [
188
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
189
189
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
190
190
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
191
191
  ] })
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { TextField, Grid } from "@mui/material";
2
+ import { TextField, Grid2 } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
@@ -104,10 +104,10 @@ function GeneratorDialogHeader({ generatorToModify, equipmentId }) {
104
104
  previousValue: previousEnergySourceLabel
105
105
  }
106
106
  );
107
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
108
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: generatorIdField }),
109
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: generatorNameField }),
110
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: energySourceField })
107
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
108
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorIdField }),
109
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorNameField }),
110
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: energySourceField })
111
111
  ] });
112
112
  }
113
113
  export {