@gridsuite/commons-ui 0.260.0 → 0.262.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 (167) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
  2. package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
  4. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
  5. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
  6. package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
  7. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  8. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  9. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  10. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
  11. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  12. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  13. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  14. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  15. package/dist/components/composite/grid/grid-item.js +2 -2
  16. package/dist/components/composite/grid/grid-section.js +2 -2
  17. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  18. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  19. package/dist/components/composite/report/QuickSearch.js +31 -29
  20. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  21. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  22. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  23. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  24. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  25. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  26. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  27. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  28. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  30. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  32. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  33. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  34. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  35. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  36. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  37. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  38. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  39. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  40. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  41. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  42. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  43. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  44. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  45. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  46. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  47. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  48. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  49. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  50. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  51. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  52. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
  53. package/dist/features/network-modifications/battery/creation/batteryCreation.types.d.ts +2 -2
  54. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -3
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  56. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  57. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  58. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  59. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  60. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  61. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  62. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  63. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  64. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  65. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  66. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  67. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  68. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  69. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  70. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  71. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  72. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  73. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  74. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  75. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  76. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  77. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  78. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  79. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  80. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  81. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  82. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  83. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  84. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  85. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  86. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  87. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  88. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  89. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  90. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  91. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  92. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  93. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  94. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  95. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  96. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  97. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  98. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  99. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  100. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  103. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  104. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  105. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  106. package/dist/features/parameters/common/line-separator.js +2 -2
  107. package/dist/features/parameters/common/parameter-field.js +6 -6
  108. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  109. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  110. package/dist/features/parameters/common/parameters.js +6 -4
  111. package/dist/features/parameters/common/provider-param.js +4 -4
  112. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  113. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  114. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  116. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  117. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  118. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  119. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  120. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  121. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  123. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  124. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  125. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  126. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  127. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  129. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  130. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  131. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  132. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  133. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  135. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  136. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  137. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  138. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  139. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  140. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  141. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  142. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  143. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  144. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  146. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  147. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  148. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  149. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  150. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  151. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  152. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  153. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  154. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  155. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  156. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  157. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  158. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  159. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  160. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  161. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  162. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  163. package/dist/features/topBar/AboutDialog.js +40 -28
  164. package/dist/features/topBar/TopBar.js +2 -2
  165. package/dist/features/topBar/UserInformationDialog.js +34 -34
  166. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  167. package/package.json +7 -7
@@ -67,11 +67,13 @@ function TextInput({
67
67
  value: transformedValue ?? "",
68
68
  onChange: handleValueChanged,
69
69
  disabled,
70
- InputProps: {
71
- endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
72
- clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }),
73
- customAdornment && { ...customAdornment }
74
- ] })
70
+ slotProps: {
71
+ input: {
72
+ endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
73
+ clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }),
74
+ customAdornment && { ...customAdornment }
75
+ ] })
76
+ }
75
77
  },
76
78
  inputRef: ref,
77
79
  ...clearable && adornment && {
@@ -58,10 +58,12 @@ function UniqueNameInput({
58
58
  fullWidth,
59
59
  error: !!error,
60
60
  helperText: translatedError,
61
- InputProps: {
62
- endAdornment,
63
- inputProps: {
64
- "data-testid": "NameInputField"
61
+ slotProps: {
62
+ input: {
63
+ endAdornment,
64
+ inputProps: {
65
+ "data-testid": "NameInputField"
66
+ }
65
67
  }
66
68
  },
67
69
  ...formProps
@@ -18,15 +18,17 @@ function HelperPreviousValue({
18
18
  CustomTooltip,
19
19
  {
20
20
  title: intl.formatMessage({ id: isNodeBuilt ? "builtNodeTooltip" : "notBuiltNodeTooltip" }),
21
- PopperProps: {
22
- modifiers: [
23
- {
24
- name: "offset",
25
- options: {
26
- offset: [0, -10]
21
+ slotProps: {
22
+ popper: {
23
+ modifiers: [
24
+ {
25
+ name: "offset",
26
+ options: {
27
+ offset: [0, -10]
28
+ }
27
29
  }
28
- }
29
- ]
30
+ ]
31
+ }
30
32
  },
31
33
  children: isNodeBuilt ? /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "small" }) : /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "small" })
32
34
  }
@@ -51,9 +51,11 @@ function TextFieldWithAdornment(props) {
51
51
  ...otherProps,
52
52
  variant,
53
53
  value,
54
- InputProps: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText(),
55
54
  onFocus: () => setIsFocused(true),
56
- onBlur: () => setIsFocused(false)
55
+ onBlur: () => setIsFocused(false),
56
+ slotProps: {
57
+ input: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText()
58
+ }
57
59
  }
58
60
  );
59
61
  }
@@ -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 { Grid2 } from "@mui/material";
4
+ import { Grid } 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(Grid2, { size, sx: { alignItems: "start" }, children: field });
23
+ return /* @__PURE__ */ jsx(Grid, { 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, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } 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(Grid2, { children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
12
- /* @__PURE__ */ jsxs(Grid2, { size: 4, children: [
11
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
12
+ /* @__PURE__ */ jsxs(Grid, { 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 { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { ClickAwayListener, Paper, Grid2, Typography, Button, List, ListItemButton, ListItemText, Box } from "@mui/material";
2
+ import { ClickAwayListener, Paper, Grid, Typography, Button, List, ListItemButton, ListItemText, Box } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { FileUpload } from "@mui/icons-material";
5
5
  import { useState, useMemo, useCallback } from "react";
@@ -159,16 +159,16 @@ function GlobalFilterDropdownPanel({
159
159
  setOpenedDropdown(false);
160
160
  }
161
161
  },
162
- children: /* @__PURE__ */ jsx(Paper, { sx: resultsGlobalFilterStyles.dropdown, children: /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
163
- /* @__PURE__ */ jsx(Grid2, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cellHeader, children: /* @__PURE__ */ jsx(
162
+ children: /* @__PURE__ */ jsx(Paper, { sx: resultsGlobalFilterStyles.dropdown, children: /* @__PURE__ */ jsxs(Grid, { container: true, children: [
163
+ /* @__PURE__ */ jsx(Grid, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cellHeader, children: /* @__PURE__ */ jsx(
164
164
  LabelWithInfoTooltip,
165
165
  {
166
166
  text: "results.globalFilter.categories",
167
167
  tooltipMessage: "results.globalFilter.categoriesHelp"
168
168
  }
169
169
  ) }),
170
- /* @__PURE__ */ jsx(Grid2, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cellHeader }),
171
- /* @__PURE__ */ jsxs(Grid2, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cellHeader, children: [
170
+ /* @__PURE__ */ jsx(Grid, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cellHeader }),
171
+ /* @__PURE__ */ jsxs(Grid, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cellHeader, children: [
172
172
  /* @__PURE__ */ jsx(Typography, { variant: "caption", children: filtersMsg }),
173
173
  /* @__PURE__ */ jsx(
174
174
  Button,
@@ -181,7 +181,7 @@ function GlobalFilterDropdownPanel({
181
181
  }
182
182
  )
183
183
  ] }),
184
- /* @__PURE__ */ jsx(Grid2, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(List, { sx: resultsGlobalFilterStyles.list, children: categories.map((category) => {
184
+ /* @__PURE__ */ jsx(Grid, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(List, { sx: resultsGlobalFilterStyles.list, children: categories.map((category) => {
185
185
  return /* @__PURE__ */ jsx(
186
186
  ListItemButton,
187
187
  {
@@ -206,7 +206,7 @@ function GlobalFilterDropdownPanel({
206
206
  category
207
207
  );
208
208
  }) }) }),
209
- /* @__PURE__ */ jsxs(Grid2, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cell, children: [
209
+ /* @__PURE__ */ jsxs(Grid, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cell, children: [
210
210
  /* @__PURE__ */ jsx(
211
211
  Box,
212
212
  {
@@ -229,7 +229,7 @@ function GlobalFilterDropdownPanel({
229
229
  }
230
230
  )
231
231
  ] }),
232
- /* @__PURE__ */ jsx(Grid2, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(SelectedGlobalFilters, { translateCountryCode }) })
232
+ /* @__PURE__ */ jsx(Grid, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(SelectedGlobalFilters, { translateCountryCode }) })
233
233
  ] }) })
234
234
  }
235
235
  ),
@@ -78,17 +78,19 @@ function RenderInput({
78
78
  id,
79
79
  size,
80
80
  fullWidth,
81
- inputProps,
82
81
  disabled,
83
82
  label: intl.formatMessage({
84
83
  id: "results.globalFilter.fillerText"
85
84
  }),
86
- InputProps: {
87
- ...otherInputProps,
88
- startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
89
- /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(FilterAlt, {}) }),
90
- startAdornment
91
- ] })
85
+ slotProps: {
86
+ htmlInput: inputProps,
87
+ input: {
88
+ ...otherInputProps,
89
+ startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
90
+ /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(FilterAlt, {}) }),
91
+ startAdornment
92
+ ] })
93
+ }
92
94
  }
93
95
  }
94
96
  );
@@ -146,15 +148,17 @@ function WarningTooltip({ warningEquipmentTypeMessage }) {
146
148
  title: warningEquipmentTypeMessage,
147
149
  placement: "right",
148
150
  arrow: true,
149
- PopperProps: {
150
- modifiers: [
151
- {
152
- name: "offset",
153
- options: {
154
- offset: [0, -15]
151
+ slotProps: {
152
+ popper: {
153
+ modifiers: [
154
+ {
155
+ name: "offset",
156
+ options: {
157
+ offset: [0, -15]
158
+ }
155
159
  }
156
- }
157
- ]
160
+ ]
161
+ }
158
162
  },
159
163
  children: /* @__PURE__ */ jsx(IconButton, { size: "small", sx: { cursor: "default" }, children: /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "medium" }) })
160
164
  }
@@ -251,7 +255,7 @@ function GlobalFilterPanel({
251
255
  ]
252
256
  );
253
257
  const inputFieldChip = useCallback(
254
- (element, index, getTagsProps, filtersNumber) => {
258
+ (element, index, getItemProps, filtersNumber) => {
255
259
  const label = getOptionLabel(element, translateCountryCode, intl);
256
260
  const key = `inputFieldChip_${element.label}`;
257
261
  if (index < TAG_LIMIT_NUMBER) {
@@ -259,7 +263,7 @@ function GlobalFilterPanel({
259
263
  OverflowableChip,
260
264
  {
261
265
  label,
262
- ...getTagsProps({ index }),
266
+ ...getItemProps({ index }),
263
267
  key,
264
268
  sx: getResultsGlobalFiltersChipStyle(element)
265
269
  }
@@ -336,7 +340,7 @@ function GlobalFilterPanel({
336
340
  options,
337
341
  onChange: handleOnChange,
338
342
  renderInput: RenderInput,
339
- renderTags: (filters, getTagsProps) => {
343
+ renderValue: (filters, getItemProps) => {
340
344
  return /* @__PURE__ */ jsx(
341
345
  Box,
342
346
  {
@@ -348,7 +352,7 @@ function GlobalFilterPanel({
348
352
  maxWidth: "90%"
349
353
  },
350
354
  children: filters.map((element, index) => {
351
- return inputFieldChip(element, index, getTagsProps, filters.length);
355
+ return inputFieldChip(element, index, getItemProps, filters.length);
352
356
  })
353
357
  }
354
358
  );
@@ -368,16 +372,18 @@ function GlobalFilterPanel({
368
372
  },
369
373
  isOptionEqualToValue,
370
374
  filterOptions: (autocompleteOptions, state) => filterOptions(autocompleteOptions, state),
371
- PaperComponent: PaperComponentMemo,
372
- ListboxProps: {
373
- sx: {
374
- "& .MuiAutocomplete-option": {
375
- paddingLeft: 0,
376
- paddingRight: 0
377
- },
378
- height: "100%",
379
- maxHeight: "100%",
380
- overflowY: "auto"
375
+ slots: { paper: PaperComponentMemo },
376
+ slotProps: {
377
+ listbox: {
378
+ sx: {
379
+ "& .MuiAutocomplete-option": {
380
+ paddingLeft: 0,
381
+ paddingRight: 0
382
+ },
383
+ height: "100%",
384
+ maxHeight: "100%",
385
+ overflowY: "auto"
386
+ }
381
387
  }
382
388
  },
383
389
  noOptionsText: ""
@@ -1,4 +1,3 @@
1
- import { lighten, alpha, darken } from "@mui/material";
2
1
  const HIGHLIGHT_COLOR_BASE = "rgba(144, 202, 249, 0.16)";
3
2
  const HIGHLIGHT_COLOR_HOVER = "rgba(144, 202, 249, 0.24)";
4
3
  const ROW_HOVER_COLOR = "rgba(144, 202, 249, 0.08)";
@@ -6,7 +5,7 @@ const DRAG_OPACITY = 0.5;
6
5
  const DEACTIVATED_OPACITY = 0.4;
7
6
  const MODIFICATION_ROW_HEIGHT = 41;
8
7
  const DEPTH_CELL_WIDTH = 32;
9
- const createCellBorderColor = (theme) => theme.palette.mode === "light" ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68);
8
+ const createCellBorderColor = (theme) => theme.palette.mode === "light" ? theme.lighten(theme.alpha(theme.palette.divider, 1), 0.88) : theme.darken(theme.alpha(theme.palette.divider, 1), 0.68);
10
9
  const networkModificationTableStyles = {
11
10
  tableWrapper: (theme) => ({
12
11
  display: "flex",
@@ -190,7 +189,7 @@ function getRowBackgroundColor(isHighlighted, isComposite, theme) {
190
189
  if (!isComposite) {
191
190
  return "transparent";
192
191
  }
193
- return theme.palette.mode === "light" ? darken(theme.palette.background.paper, 0.04) : lighten(theme.palette.background.paper, 0.08);
192
+ return theme.palette.mode === "light" ? theme.darken(theme.palette.background.paper, 0.04) : theme.lighten(theme.palette.background.paper, 0.08);
194
193
  }
195
194
  const createRowSx = (theme, isHighlighted, isDragging, virtualRow, depth, isComposite) => ({
196
195
  position: "absolute",
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Box, Grid2 } from "@mui/material";
2
+ import { Box, Grid } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { filledTextField } from "../../common/form.utils.js";
@@ -121,21 +121,21 @@ function BatteryCreationForm({
121
121
  name: FieldConstants.VOLTAGE_REGULATION
122
122
  });
123
123
  return /* @__PURE__ */ jsxs(Fragment, { children: [
124
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
124
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
125
125
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryIdField }),
126
126
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryNameField })
127
127
  ] }),
128
128
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
129
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
129
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
130
130
  /* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
131
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
131
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
132
132
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
133
133
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField })
134
134
  ] }),
135
135
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
136
136
  /* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
137
137
  /* @__PURE__ */ jsx(SetPointsForm, {}),
138
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
138
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
139
139
  /* @__PURE__ */ jsx(
140
140
  GridItem,
141
141
  {
@@ -7,8 +7,8 @@ export interface BatteryCreationDto {
7
7
  minP: number;
8
8
  maxP: number;
9
9
  reactiveCapabilityCurve?: boolean | null;
10
- targetP: number;
11
- targetQ: number;
10
+ targetP: number | null;
11
+ targetQ: number | null;
12
12
  targetV: number | null;
13
13
  voltageRegulationOn: boolean | null;
14
14
  regulatingTerminalId: string | null;
@@ -115,7 +115,7 @@ const batteryCreationDtoToForm = (dto) => {
115
115
  equipmentName: dto.equipmentName ?? "",
116
116
  maximumActivePower: dto.maxP,
117
117
  minimumActivePower: dto.minP,
118
- activePowerSetpoint: dto.targetP,
118
+ activePowerSetpoint: dto.targetP ?? void 0,
119
119
  reactivePowerSetpoint: dto.targetQ,
120
120
  frequencyRegulation: dto.participate,
121
121
  droop: dto.droop,
@@ -170,8 +170,8 @@ const batteryCreationFormToDto = (form) => {
170
170
  minQ: isReactiveCapabilityCurveOn ? null : form.reactiveLimits.minimumReactivePower ?? null,
171
171
  maxQ: isReactiveCapabilityCurveOn ? null : form.reactiveLimits.maximumReactivePower ?? null,
172
172
  reactiveCapabilityCurvePoints: isReactiveCapabilityCurveOn ? form.reactiveLimits.reactiveCapabilityCurveTable ?? null : null,
173
- targetP: form.activePowerSetpoint ?? 0,
174
- targetQ: form.reactivePowerSetpoint ?? 0,
173
+ targetP: form.activePowerSetpoint ?? null,
174
+ targetQ: form.reactivePowerSetpoint ?? null,
175
175
  targetV: form.voltageSetpoint ?? null,
176
176
  voltageRegulationOn: form.voltageRegulation ?? null,
177
177
  participate: form.frequencyRegulation ?? null,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, TextField } from "@mui/material";
2
+ import { Grid, TextField } from "@mui/material";
3
3
  import { filledTextField } from "../../common/form.utils.js";
4
4
  import "react";
5
5
  import "react-hook-form";
@@ -65,22 +65,24 @@ import "@mui/material/colors";
65
65
  import "@mui/x-charts";
66
66
  import "../../common/currentLimits/limitsPane.utils.js";
67
67
  function BatteryDialogHeader({ batteryToModify, equipmentId }) {
68
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
69
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
68
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
69
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
70
70
  TextField,
71
71
  {
72
72
  size: "small",
73
73
  fullWidth: true,
74
74
  label: "ID",
75
75
  value: equipmentId ?? "",
76
- InputProps: {
77
- readOnly: true
76
+ slotProps: {
77
+ input: {
78
+ readOnly: true
79
+ }
78
80
  },
79
81
  disabled: true,
80
82
  ...filledTextField
81
83
  }
82
84
  ) }),
83
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
85
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
84
86
  TextInput,
85
87
  {
86
88
  name: FieldConstants.EQUIPMENT_NAME,
@@ -10,8 +10,10 @@ function BatteryDialogTabs({ tabIndex, tabIndexesWithError, setTabIndex }) {
10
10
  value: tabIndex,
11
11
  variant: "scrollable",
12
12
  onChange: (_event, newValue) => setTabIndex(newValue),
13
- TabIndicatorProps: {
14
- sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
13
+ slotProps: {
14
+ indicator: {
15
+ sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
16
+ }
15
17
  },
16
18
  children: [
17
19
  /* @__PURE__ */ jsx(
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Box, Grid2 } from "@mui/material";
2
+ import { Box, Grid } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { BatteryDialogTab } from "./batteryTabs.utils.js";
5
5
  import { GridSection } from "../../../../components/composite/grid/grid-section.js";
@@ -138,7 +138,7 @@ function BatteryDialogTabsContent({
138
138
  ] }),
139
139
  /* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== BatteryDialogTab.LIMITS_AND_SETPOINTS_TAB, children: [
140
140
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
141
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
141
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
142
142
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
143
143
  FloatInput,
144
144
  {
@@ -160,7 +160,7 @@ function BatteryDialogTabsContent({
160
160
  }
161
161
  ) })
162
162
  ] }),
163
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
163
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
164
164
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationField }),
165
165
  voltageRegulationForm,
166
166
  /* @__PURE__ */ jsx(
@@ -171,11 +171,11 @@ function BatteryDialogTabsContent({
171
171
  }
172
172
  )
173
173
  ] }),
174
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
174
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
175
175
  /* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
176
176
  /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
177
177
  ] }) }),
178
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
178
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
179
179
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
180
180
  FloatInput,
181
181
  {
@@ -197,7 +197,7 @@ function BatteryDialogTabsContent({
197
197
  }
198
198
  ) })
199
199
  ] }),
200
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
200
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
201
201
  /* @__PURE__ */ jsx(
202
202
  ReactiveLimitsForm,
203
203
  {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } 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";
@@ -24,8 +24,8 @@ function BatteryModificationForm({
24
24
  );
25
25
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
26
26
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
27
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
28
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
28
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
29
29
  BatteryDialogTabs,
30
30
  {
31
31
  tabIndex,
@@ -33,7 +33,7 @@ function BatteryModificationForm({
33
33
  setTabIndex
34
34
  }
35
35
  ) }),
36
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
36
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
37
37
  BatteryDialogTabsContent,
38
38
  {
39
39
  tabIndex,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid2 } from "@mui/material";
2
+ import { Box, Grid } from "@mui/material";
3
3
  import { useFormContext } from "react-hook-form";
4
4
  import "@mui/icons-material";
5
5
  import "react-intl";
@@ -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(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 }) })
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 }) })
80
80
  ] });
81
81
  }
82
82
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } 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(Grid2, { container: true, spacing: 2, pt: 1, children: [
49
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
48
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 1, children: [
49
+ /* @__PURE__ */ jsx(Grid, { 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(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
62
62
  DirectoryItemsInput,
63
63
  {
64
64
  name: FieldConstants.FILTERS,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { DragHandle } from "@mui/icons-material";
5
5
  import { EQUIPMENTS_FIELDS } from "./formula-utils.js";
6
6
  import ReferenceAutocompleteInput from "./reference-autocomplete-input.js";
@@ -128,7 +128,7 @@ function FormulaForm({ name, index }) {
128
128
  return /* @__PURE__ */ jsxs(Fragment, { children: [
129
129
  /* @__PURE__ */ jsx(GridItem, { size: 2.25, children: filtersField }),
130
130
  /* @__PURE__ */ jsx(GridItem, { size: 2.25, children: editedField }),
131
- /* @__PURE__ */ jsx(Grid2, { size: 0.25, sx: { marginTop: 0.75 }, children: /* @__PURE__ */ jsx(DragHandle, {}) }),
131
+ /* @__PURE__ */ jsx(Grid, { size: 0.25, sx: { marginTop: 0.75 }, children: /* @__PURE__ */ jsx(DragHandle, {}) }),
132
132
  /* @__PURE__ */ jsx(GridItem, { size: 2.5, children: referenceField1 }),
133
133
  /* @__PURE__ */ jsx(GridItem, { size: 1.25, children: operatorField }),
134
134
  /* @__PURE__ */ jsx(GridItem, { size: 2.5, children: referenceField2 })
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useFormContext } from "react-hook-form";
3
- import { Box, Grid2 } from "@mui/material";
3
+ import { Box, Grid } from "@mui/material";
4
4
  import FormulaForm from "./formula/formula-form.js";
5
5
  import { getFormulaInitialValue } from "./formula/formula-utils.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -101,8 +101,8 @@ function ModificationByFormulaForm() {
101
101
  }
102
102
  );
103
103
  return /* @__PURE__ */ jsxs(Box, { sx: mergeSx(unscrollableDialogStyles.unscrollableContainer, { height: "100%" }), children: [
104
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 2.15, children: equipmentTypeField }) }),
105
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: formulasField }) })
104
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 2.15, children: equipmentTypeField }) }),
105
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: formulasField }) })
106
106
  ] });
107
107
  }
108
108
  export {