@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
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useMemo } from "react";
5
- import { FormControl, InputLabel, Grid } from "@mui/material";
5
+ import { FormControl, InputLabel, Grid2 } from "@mui/material";
6
6
  import * as yup from "yup";
7
7
  import { FloatInput } from "./FloatInput.js";
8
8
  import { MuiSelectInput } from "../selectInputs/MuiSelectInput.js";
@@ -51,8 +51,8 @@ function RangeInput({ name, label }) {
51
51
  const isOperationTypeRange = useMemo(() => watchOperationType === RangeType.RANGE.id, [watchOperationType]);
52
52
  return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, children: [
53
53
  /* @__PURE__ */ jsx(InputLabel, { sx: style.inputLegend, shrink: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
55
- /* @__PURE__ */ jsx(Grid, { item: true, style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
54
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 0, children: [
55
+ /* @__PURE__ */ jsx(Grid2, { style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
56
56
  MuiSelectInput,
57
57
  {
58
58
  name: `${name}.${FieldConstants.OPERATION_TYPE}`,
@@ -60,7 +60,7 @@ function RangeInput({ name, label }) {
60
60
  fullWidth: true
61
61
  }
62
62
  ) }),
63
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
63
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
64
64
  FloatInput,
65
65
  {
66
66
  label: "",
@@ -72,7 +72,7 @@ function RangeInput({ name, label }) {
72
72
  }
73
73
  }
74
74
  ) }),
75
- isOperationTypeRange && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
75
+ isOperationTypeRange && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
76
76
  FloatInput,
77
77
  {
78
78
  name: `${name}.${FieldConstants.VALUE_2}`,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { FormattedMessage } from "react-intl";
3
3
  import { getIn } from "yup";
4
- import { Grid } from "@mui/material";
4
+ import { Grid2 } from "@mui/material";
5
5
  function genHelperError(...errors) {
6
6
  const inError = errors.find((e) => e);
7
7
  if (inError) {
@@ -20,7 +20,7 @@ const isFieldRequired = (fieldName, schema, values) => {
20
20
  return fieldSchema.describe({ parent: parentValues })?.optional === false;
21
21
  };
22
22
  const gridItem = (field, size = 6) => {
23
- return /* @__PURE__ */ jsx(Grid, { item: true, xs: size, alignItems: "start", children: field });
23
+ return /* @__PURE__ */ jsx(Grid2, { size, sx: { alignItems: "start" }, children: field });
24
24
  };
25
25
  const toFloatOrNullValue = (value) => {
26
26
  if (value === "-") {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid } from "@mui/material";
2
+ import { Stack } from "@mui/material";
3
3
  import { useCallback } from "react";
4
4
  import { Routes, Route, Navigate } from "react-router";
5
5
  import { Login } from "./Login.js";
@@ -26,7 +26,7 @@ function AuthenticationRouter({
26
26
  handleSilentRenewCallback(userManager.instance);
27
27
  }
28
28
  }, [userManager.instance]);
29
- return /* @__PURE__ */ jsxs(Grid, { container: true, alignContent: "center", alignItems: "center", direction: "column", children: [
29
+ return /* @__PURE__ */ jsxs(Stack, { alignItems: "center", sx: { width: "100%" }, children: [
30
30
  userManager.error !== null && /* @__PURE__ */ jsxs("h1", { children: [
31
31
  "Error : Getting userManager; ",
32
32
  userManager.error
@@ -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 { Logout } from "./Logout.js";
4
4
  import { logout } from "./utils/authService.js";
5
5
  import "./utils/userManagerMock.js";
@@ -8,8 +8,8 @@ import { ErrorInUserValidationAlert } from "./alert/ErrorInUserValidationAlert.j
8
8
  import { UnauthorizedAccessAlert } from "./alert/UnauthorizedAccessAlert.js";
9
9
  function AuthenticationRouterErrorDisplay({ errorState, instance, dispatch }) {
10
10
  return /* @__PURE__ */ jsxs(Fragment, { children: [
11
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
12
- /* @__PURE__ */ jsxs(Grid, { item: true, xs: 4, children: [
11
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
12
+ /* @__PURE__ */ jsxs(Grid2, { size: 4, children: [
13
13
  errorState.logoutError && /* @__PURE__ */ jsx(ErrorInLogoutAlert, { userName: errorState.userName, message: errorState.logoutError.error.message }),
14
14
  errorState.userValidationError && /* @__PURE__ */ jsx(
15
15
  ErrorInUserValidationAlert,
@@ -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 { filledTextField } from "../../common/form.utils.js";
4
4
  import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
5
5
  import "react";
@@ -36,7 +36,7 @@ import "mui-nested-menu";
36
36
  import "react-resizable-panels";
37
37
  import "react-papaparse";
38
38
  import "../../common/properties/propertyUtils.js";
39
- import GridSection from "../../../../components/composite/grid/grid-section.js";
39
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
40
40
  import "react-dom";
41
41
  import "autosuggest-highlight/match";
42
42
  import "autosuggest-highlight/parse";
@@ -51,7 +51,7 @@ import "react-querybuilder";
51
51
  import "uuid";
52
52
  import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
53
53
  import "../../../../components/composite/filter/utils/filterFormUtils.js";
54
- import GridItem from "../../../../components/composite/grid/grid-item.js";
54
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
55
55
  import "@react-querybuilder/material";
56
56
  import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
57
57
  import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
@@ -103,21 +103,21 @@ function BatteryCreationForm({
103
103
  }
104
104
  );
105
105
  return /* @__PURE__ */ jsxs(Fragment, { children: [
106
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
106
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
107
107
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryIdField }),
108
108
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryNameField })
109
109
  ] }),
110
110
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
111
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
111
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
112
112
  /* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
113
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
113
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
114
114
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
115
115
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField })
116
116
  ] }),
117
117
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
118
118
  /* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
119
119
  /* @__PURE__ */ jsx(SetPointsForm, {}),
120
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(ActivePowerControlForm, {}) }),
120
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(ActivePowerControlForm, {}) }),
121
121
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
122
122
  /* @__PURE__ */ jsx(ShortCircuitForm, {}),
123
123
  /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "battery" })
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, TextField } from "@mui/material";
2
+ import { Grid2, TextField } from "@mui/material";
3
3
  import { filledTextField } from "../../common/form.utils.js";
4
4
  import "react";
5
5
  import "react-hook-form";
@@ -62,8 +62,8 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
62
62
  import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
63
63
  import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
64
64
  function BatteryDialogHeader({ batteryToModify, equipmentId }) {
65
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
66
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
65
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
66
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
67
67
  TextField,
68
68
  {
69
69
  size: "small",
@@ -77,7 +77,7 @@ function BatteryDialogHeader({ batteryToModify, equipmentId }) {
77
77
  ...filledTextField
78
78
  }
79
79
  ) }),
80
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
80
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
81
81
  TextInput,
82
82
  {
83
83
  name: FieldConstants.EQUIPMENT_NAME,
@@ -1,9 +1,9 @@
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 { FormattedMessage } from "react-intl";
4
4
  import { BatteryDialogTab } from "./batteryTabs.utils.js";
5
- import GridSection from "../../../../components/composite/grid/grid-section.js";
6
- import GridItem from "../../../../components/composite/grid/grid-item.js";
5
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
6
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
7
7
  import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
8
8
  import "react";
9
9
  import "react-hook-form";
@@ -99,7 +99,7 @@ function BatteryDialogTabsContent({
99
99
  ] }),
100
100
  /* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== BatteryDialogTab.LIMITS_AND_SETPOINTS_TAB, children: [
101
101
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
102
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
102
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
103
103
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
104
104
  FloatInput,
105
105
  {
@@ -121,18 +121,18 @@ function BatteryDialogTabsContent({
121
121
  }
122
122
  ) })
123
123
  ] }),
124
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(
124
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(
125
125
  ActivePowerControlForm,
126
126
  {
127
127
  isEquipmentModification: true,
128
128
  previousValues: batteryToModify?.activePowerControl
129
129
  }
130
130
  ) }),
131
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, children: [
131
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
132
132
  /* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
133
133
  /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
134
134
  ] }) }),
135
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
135
+ /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
136
136
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
137
137
  FloatInput,
138
138
  {
@@ -154,7 +154,7 @@ function BatteryDialogTabsContent({
154
154
  }
155
155
  ) })
156
156
  ] }),
157
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
157
+ /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
158
158
  /* @__PURE__ */ jsx(
159
159
  ReactiveLimitsForm,
160
160
  {
@@ -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 { useWatch } from "react-hook-form";
4
4
  import { BatteryDialogHeader } from "./BatteryDialogHeader.js";
5
5
  import { BatteryDialogTabs } from "./BatteryDialogTabs.js";
@@ -22,9 +22,9 @@ function BatteryModificationForm({
22
22
  BatteryDialogTab.CONNECTIVITY_TAB
23
23
  );
24
24
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
25
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
26
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
27
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
25
+ return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
26
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
27
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
28
28
  BatteryDialogTabs,
29
29
  {
30
30
  tabIndex,
@@ -32,7 +32,7 @@ function BatteryModificationForm({
32
32
  setTabIndex
33
33
  }
34
34
  ) }),
35
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
35
+ /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
36
36
  BatteryDialogTabsContent,
37
37
  {
38
38
  tabIndex,
@@ -43,7 +43,7 @@ import "mui-nested-menu";
43
43
  import "react-resizable-panels";
44
44
  import "react-papaparse";
45
45
  import { DataType } from "./assignment.type.js";
46
- import GridItem from "../../../../../components/composite/grid/grid-item.js";
46
+ import { GridItem } from "../../../../../components/composite/grid/grid-item.js";
47
47
  import { EQUIPMENTS_FIELDS } from "./assignment-constants.js";
48
48
  import { EMPTY_FIELD_VALUE } from "./assignment-utils.js";
49
49
  const comparatorStrIgnoreCase = (str1, str2) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid } from "@mui/material";
2
+ import { Box, Grid2 } from "@mui/material";
3
3
  import { useFormContext } from "react-hook-form";
4
4
  import "@mui/icons-material";
5
5
  import "react-intl";
@@ -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 AssignmentForm from "./assignment/assignment-form.js";
39
39
  import { getAssignmentInitialValue } from "./assignment/assignment-utils.js";
40
40
  import { EQUIPMENTS_FIELDS } from "./assignment/assignment-constants.js";
@@ -75,8 +75,8 @@ function ModificationByAssignmentForm() {
75
75
  }
76
76
  );
77
77
  return /* @__PURE__ */ jsxs(Box, { sx: mergeSx(unscrollableDialogStyles.unscrollableContainer, { height: "100%" }), children: [
78
- /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 3.15, children: equipmentTypeField }) }),
79
- /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: assignmentsField }) })
78
+ /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 3.15, children: equipmentTypeField }) }),
79
+ /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: assignmentsField }) })
80
80
  ] });
81
81
  }
82
82
  export {
@@ -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 { useCallback } from "react";
4
4
  import { useWatch, useFormContext } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -45,8 +45,8 @@ function ByFilterDeletionForm() {
45
45
  const handleEquipmentTypeChange = useCallback(() => {
46
46
  setValue(FieldConstants.FILTERS, []);
47
47
  }, [setValue]);
48
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 1, children: [
49
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
48
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, pt: 1, children: [
49
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
50
50
  AutocompleteInput,
51
51
  {
52
52
  isOptionEqualToValue: richTypeEquals,
@@ -58,7 +58,7 @@ function ByFilterDeletionForm() {
58
58
  size: "small"
59
59
  }
60
60
  ) }),
61
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
62
62
  DirectoryItemsInput,
63
63
  {
64
64
  name: FieldConstants.FILTERS,
@@ -8,7 +8,7 @@ import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.j
8
8
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
9
9
  import "../../../../utils/conversionUtils.js";
10
10
  import "../../../../utils/types/equipmentType.js";
11
- import GridItem from "../../../../components/composite/grid/grid-item.js";
11
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
12
12
  import "../../../../components/ui/overflowableText/OverflowableText.js";
13
13
  import "localized-countries";
14
14
  import "localized-countries/data/fr";
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import GridSection from "../../../../components/composite/grid/grid-section.js";
2
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
3
3
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
4
4
  import "../../../../utils/conversionUtils.js";
5
5
  import "../../../../utils/types/equipmentType.js";
@@ -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 { useMemo } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -54,8 +54,8 @@ function ConnectivityForm({
54
54
  return previousValues.terminalConnected ? intl.formatMessage({ id: "connected" }) : intl.formatMessage({ id: "disconnected" });
55
55
  }, [intl, previousValues, isEquipmentModification]);
56
56
  const previousConnectionDirectionLabel = isEquipmentModification ? getConnectionDirectionLabel(previousValues?.connectablePosition?.connectionDirection) ?? null : null;
57
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
58
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(
57
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
58
+ /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
59
59
  VoltageLevelConnectivityForm,
60
60
  {
61
61
  id,
@@ -67,7 +67,7 @@ function ConnectivityForm({
67
67
  fetchBusesOrBusbarSections
68
68
  }
69
69
  ) }),
70
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
70
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
71
71
  CheckboxNullableInput,
72
72
  {
73
73
  name: `${id}.${FieldConstants.CONNECTED}`,
@@ -75,7 +75,7 @@ function ConnectivityForm({
75
75
  previousValue: previousConnectedField ?? void 0
76
76
  }
77
77
  ) : /* @__PURE__ */ jsx(SwitchInput, { name: `${id}.${FieldConstants.CONNECTED}`, label: "connected" }) }),
78
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
78
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
79
79
  TextInput,
80
80
  {
81
81
  name: `${id}.${FieldConstants.CONNECTION_NAME}`,
@@ -83,7 +83,7 @@ function ConnectivityForm({
83
83
  previousValue: isEquipmentModification ? previousValues?.connectablePosition?.connectionName ?? void 0 : void 0
84
84
  }
85
85
  ) }),
86
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
86
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
87
87
  SelectInput,
88
88
  {
89
89
  name: `${id}.${FieldConstants.CONNECTION_DIRECTION}`,
@@ -96,7 +96,7 @@ function ConnectivityForm({
96
96
  size: "small"
97
97
  }
98
98
  ) }),
99
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
99
+ /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
100
100
  PositionForm,
101
101
  {
102
102
  id,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { Grid, IconButton } from "@mui/material";
2
+ import { Grid2, IconButton } from "@mui/material";
3
3
  import { ExploreOutlined, ExploreOffOutlined } from "@mui/icons-material";
4
4
  import { useState, useCallback, useMemo } from "react";
5
5
  import { useWatch } from "react-hook-form";
@@ -64,8 +64,8 @@ function PositionForm({
64
64
  }
65
65
  return "NoVoltageLevelPositionMessage";
66
66
  }, [isNodeBuilt, voltageLevelForPositionIcon]);
67
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
67
+ return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
69
69
  IntegerInput,
70
70
  {
71
71
  name: `${id}.${FieldConstants.CONNECTION_POSITION}`,
@@ -75,7 +75,7 @@ function PositionForm({
75
75
  }
76
76
  ) }),
77
77
  PositionDiagramPane && /* @__PURE__ */ jsxs(Fragment, { children: [
78
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
78
+ /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
79
79
  IconButton,
80
80
  {
81
81
  ...isNodeBuilt && voltageLevelForPositionIcon && { onClick: handleClickOpenDiagramPane },
@@ -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,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { PowerMeasurementsForm } from "./PowerMeasurementsForm.js";
3
- import GridSection from "../../../../components/composite/grid/grid-section.js";
3
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
4
4
  function BranchActiveReactivePowerMeasurementsForm({
5
5
  equipmentToModify
6
6
  }) {
@@ -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,