@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
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } 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 { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
5
5
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
@@ -37,8 +37,8 @@ function CharacteristicsTab() {
37
37
  const watchHideNominalVoltage = useWatch({ name: FieldConstants.HIDE_NOMINAL_VOLTAGE });
38
38
  return /* @__PURE__ */ jsxs(Fragment, { children: [
39
39
  /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
40
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
41
- !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
40
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
41
+ !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
42
42
  FloatInput,
43
43
  {
44
44
  name: FieldConstants.NOMINAL_V,
@@ -46,7 +46,7 @@ function CharacteristicsTab() {
46
46
  adornment: VoltageAdornment
47
47
  }
48
48
  ) }),
49
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
49
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
50
50
  FloatInput,
51
51
  {
52
52
  name: FieldConstants.LOW_VOLTAGE_LIMIT,
@@ -54,7 +54,7 @@ function CharacteristicsTab() {
54
54
  adornment: VoltageAdornment
55
55
  }
56
56
  ) }),
57
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
57
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
58
58
  FloatInput,
59
59
  {
60
60
  name: FieldConstants.HIGH_VOLTAGE_LIMIT,
@@ -64,8 +64,8 @@ function CharacteristicsTab() {
64
64
  ) })
65
65
  ] }),
66
66
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
67
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
69
69
  FloatInput,
70
70
  {
71
71
  name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -73,7 +73,7 @@ function CharacteristicsTab() {
73
73
  adornment: KiloAmpereAdornment
74
74
  }
75
75
  ) }),
76
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
76
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
77
77
  FloatInput,
78
78
  {
79
79
  name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -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 { useEffect } from "react";
4
4
  import { useFormContext, useWatch } from "react-hook-form";
5
5
  import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
@@ -44,9 +44,9 @@ function StructureTab() {
44
44
  const displayOmnibus = watchBusBarCount > 1 || watchSectionCount > 1;
45
45
  return /* @__PURE__ */ jsxs(Fragment, { children: [
46
46
  /* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
47
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
48
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
47
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
48
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
50
50
  ] }),
51
51
  /* @__PURE__ */ jsx(SwitchesBetweenSections, {}),
52
52
  displayOmnibus && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { useFormContext } from "react-hook-form";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { AutocompleteInput } from "../../../../../../../components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js";
6
6
  import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
7
7
  import "../../../../../../../utils/conversionUtils.js";
@@ -24,7 +24,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
24
24
  return () => unsubscribe();
25
25
  }, [subscribe, trigger, getValues, index]);
26
26
  return /* @__PURE__ */ jsxs(Fragment, { children: [
27
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
28
28
  AutocompleteInput,
29
29
  {
30
30
  allowNewValue: true,
@@ -35,7 +35,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
35
35
  size: "small"
36
36
  }
37
37
  ) }),
38
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
38
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
39
39
  AutocompleteInput,
40
40
  {
41
41
  allowNewValue: true,
@@ -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 { useCallback, useRef, useEffect } from "react";
4
4
  import { useFormContext, useFieldArray, useWatch } from "react-hook-form";
5
5
  import { useIntl } from "react-intl";
@@ -76,7 +76,7 @@ function SwitchesBetweenSections() {
76
76
  }
77
77
  return /* @__PURE__ */ jsxs(Fragment, { children: [
78
78
  /* @__PURE__ */ jsx(GridSection, { title: "SwitchesBetweenSections" }),
79
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
79
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
80
80
  EnumInput,
81
81
  {
82
82
  options: Object.values(SWITCH_TYPE),
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useIntl } from "react-intl";
3
- import { Grid2, IconButton } from "@mui/material";
3
+ import { Grid, IconButton } from "@mui/material";
4
4
  import { Delete } from "@mui/icons-material";
5
5
  import { CustomTooltip } from "../../../../../../components/ui/tooltip/CustomTooltip.js";
6
6
  import "../../../../../../components/ui/overflowableText/OverflowableText.js";
@@ -74,11 +74,11 @@ function SubstationCreationSection({
74
74
  const intl = useIntl();
75
75
  return /* @__PURE__ */ jsxs(Fragment, { children: [
76
76
  /* @__PURE__ */ jsx(GridSection, { title: "CreateSubstation" }),
77
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
78
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
79
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
80
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
81
- showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
77
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
78
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
79
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
80
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
81
+ showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
82
82
  ] }),
83
83
  /* @__PURE__ */ jsx(PropertiesForm, { id: FieldConstants.SUBSTATION_CREATION, networkElementType: "substation" })
84
84
  ] });
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useWatch, useFormContext } from "react-hook-form";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { useCallback, useEffect } from "react";
6
6
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
7
7
  import "../../../../../../utils/conversionUtils.js";
@@ -56,8 +56,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
56
56
  });
57
57
  }
58
58
  }, [setValue, getValues, watchAddSubstationCreation]);
59
- return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, pt: 2, children: [
60
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: substationOptions ? /* @__PURE__ */ jsx(
59
+ return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 2, children: [
60
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: substationOptions ? /* @__PURE__ */ jsx(
61
61
  AutocompleteInput,
62
62
  {
63
63
  name: FieldConstants.SUBSTATION_ID,
@@ -70,8 +70,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
70
70
  noOptionsText: ""
71
71
  }
72
72
  ) : /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_ID, label: "SUBSTATION" }) }),
73
- /* @__PURE__ */ jsx(Grid2, { mt: 0.75, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Or" }) }),
74
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(AddButton, { label: "CreateSubstation", onClick: handleCreateSubstation }) })
73
+ /* @__PURE__ */ jsx(Grid, { mt: 0.75, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Or" }) }),
74
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(AddButton, { label: "CreateSubstation", onClick: handleCreateSubstation }) })
75
75
  ] });
76
76
  }
77
77
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { Stack, Grid2, TextField, Tabs, Tab, Box } from "@mui/material";
3
+ import { Stack, Grid, TextField, Tabs, Tab, Box } from "@mui/material";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { useWatch } from "react-hook-form";
6
6
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../utils/constants/adornments.js";
@@ -82,22 +82,24 @@ function VoltageLevelModificationForm({
82
82
  /* CHARACTERISTICS_TAB */
83
83
  );
84
84
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
85
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
86
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
85
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
86
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
87
87
  TextField,
88
88
  {
89
89
  size: "small",
90
90
  fullWidth: true,
91
91
  label: "ID",
92
92
  value: equipmentId ?? "",
93
- InputProps: {
94
- readOnly: true
93
+ slotProps: {
94
+ input: {
95
+ readOnly: true
96
+ }
95
97
  },
96
98
  disabled: true,
97
99
  ...filledTextField
98
100
  }
99
101
  ) }),
100
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
102
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
101
103
  TextInput,
102
104
  {
103
105
  name: FieldConstants.EQUIPMENT_NAME,
@@ -107,7 +109,7 @@ function VoltageLevelModificationForm({
107
109
  previousValue: voltageLevelToModify?.name ?? void 0
108
110
  }
109
111
  ) }),
110
- !watchHideSubstationField && /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
112
+ !watchHideSubstationField && /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
111
113
  AutocompleteInput,
112
114
  {
113
115
  allowNewValue: true,
@@ -123,14 +125,16 @@ function VoltageLevelModificationForm({
123
125
  }
124
126
  ) })
125
127
  ] }) }),
126
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(
128
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
127
129
  Tabs,
128
130
  {
129
131
  value: tabIndex,
130
132
  variant: "scrollable",
131
133
  onChange: (_event, newValue) => setTabIndex(newValue),
132
- TabIndicatorProps: {
133
- sx: getTabIndicatorStyle([], tabIndex)
134
+ slotProps: {
135
+ indicator: {
136
+ sx: getTabIndicatorStyle([], tabIndex)
137
+ }
134
138
  },
135
139
  children: [
136
140
  /* @__PURE__ */ jsx(
@@ -158,11 +162,11 @@ function VoltageLevelModificationForm({
158
162
  ]
159
163
  }
160
164
  ) }),
161
- /* @__PURE__ */ jsxs(Grid2, { children: [
162
- /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== 0, children: /* @__PURE__ */ jsxs(Grid2, { children: [
165
+ /* @__PURE__ */ jsxs(Grid, { children: [
166
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== 0, children: /* @__PURE__ */ jsxs(Grid, { children: [
163
167
  /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
164
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
165
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
168
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
169
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
166
170
  FloatInput,
167
171
  {
168
172
  name: FieldConstants.NOMINAL_V,
@@ -172,7 +176,7 @@ function VoltageLevelModificationForm({
172
176
  previousValue: voltageLevelToModify?.nominalV
173
177
  }
174
178
  ) }),
175
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
179
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
176
180
  FloatInput,
177
181
  {
178
182
  name: FieldConstants.LOW_VOLTAGE_LIMIT,
@@ -182,7 +186,7 @@ function VoltageLevelModificationForm({
182
186
  previousValue: voltageLevelToModify?.lowVoltageLimit ?? void 0
183
187
  }
184
188
  ) }),
185
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
189
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
186
190
  FloatInput,
187
191
  {
188
192
  name: FieldConstants.HIGH_VOLTAGE_LIMIT,
@@ -194,8 +198,8 @@ function VoltageLevelModificationForm({
194
198
  ) })
195
199
  ] }),
196
200
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
197
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
198
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
201
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
202
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
199
203
  FloatInput,
200
204
  {
201
205
  name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -205,7 +209,7 @@ function VoltageLevelModificationForm({
205
209
  previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMin ?? void 0
206
210
  }
207
211
  ) }),
208
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
212
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
209
213
  FloatInput,
210
214
  {
211
215
  name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2, Divider } from "@mui/material";
2
+ import { Grid, Divider } from "@mui/material";
3
3
  function LineSeparator() {
4
- return /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(Divider, {}) });
4
+ return /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(Divider, {}) });
5
5
  }
6
6
  export {
7
7
  LineSeparator
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, Typography, Chip } from "@mui/material";
2
+ import { Grid, Typography, Chip } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -88,13 +88,13 @@ function ParameterField({
88
88
  fullWidth: true,
89
89
  multiple: true,
90
90
  size: "small",
91
- renderTags: (val, getTagsProps) => val.map((code, index) => /* @__PURE__ */ jsx(
91
+ renderValue: (val, getItemProps) => val.map((code, index) => /* @__PURE__ */ jsx(
92
92
  Chip,
93
93
  {
94
94
  "data-testid": `${id}.${name}.${code}`,
95
95
  size: "small",
96
96
  label: code,
97
- ...getTagsProps({ index })
97
+ ...getItemProps({ index })
98
98
  },
99
99
  code
100
100
  ))
@@ -108,9 +108,9 @@ function ParameterField({
108
108
  };
109
109
  const LABEL_GRID_SIZE = type !== ParameterType.COUNTRIES ? 8 : 3;
110
110
  const INPUT_GRID_SIZE = 12 - LABEL_GRID_SIZE;
111
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", sx: { width: "100%" }, children: [
112
- /* @__PURE__ */ jsx(Grid2, { size: LABEL_GRID_SIZE, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
113
- /* @__PURE__ */ jsx(Grid2, { container: true, size: INPUT_GRID_SIZE, sx: parametersStyles.controlItem, children: renderField() })
111
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", sx: { width: "100%" }, children: [
112
+ /* @__PURE__ */ jsx(Grid, { size: LABEL_GRID_SIZE, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
113
+ /* @__PURE__ */ jsx(Grid, { container: true, size: INPUT_GRID_SIZE, sx: parametersStyles.controlItem, children: renderField() })
114
114
  ] }, name);
115
115
  }
116
116
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, Typography, ButtonGroup, Tooltip, Box, LinearProgress } from "@mui/material";
2
+ import { Stack, Grid, Typography, ButtonGroup, Tooltip, Box, LinearProgress } from "@mui/material";
3
3
  import { Upload, RestartAlt } from "@mui/icons-material";
4
4
  import { useState, useCallback } from "react";
5
5
  import { useIntl, FormattedMessage } from "react-intl";
@@ -79,9 +79,9 @@ function ParameterLayout({
79
79
  const intl = useIntl();
80
80
  return /* @__PURE__ */ jsxs(Stack, { sx: styles.stack, children: [
81
81
  (title || selectParameterHandler || resetHandler) && /* @__PURE__ */ jsxs(Stack, { sx: styles.title, children: [
82
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: { alignItems: "center", justifyContent: "space-between" }, paddingBottom: 1, children: [
83
- /* @__PURE__ */ jsx(Grid2, { size: "auto", children: title && !isXsScreen && /* @__PURE__ */ jsx(Typography, { variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: title }) }) }),
84
- /* @__PURE__ */ jsx(Grid2, { size: "auto", children: /* @__PURE__ */ jsxs(ButtonGroup, { children: [
82
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: { alignItems: "center", justifyContent: "space-between" }, paddingBottom: 1, children: [
83
+ /* @__PURE__ */ jsx(Grid, { size: "auto", children: title && !isXsScreen && /* @__PURE__ */ jsx(Typography, { variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: title }) }) }),
84
+ /* @__PURE__ */ jsx(Grid, { size: "auto", children: /* @__PURE__ */ jsxs(ButtonGroup, { children: [
85
85
  selectParameterHandler && /* @__PURE__ */ jsx(
86
86
  LabelledButton,
87
87
  {
@@ -107,9 +107,9 @@ function ParameterLayout({
107
107
  /* @__PURE__ */ jsx(Box, { sx: styles.content, children: isLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : children }),
108
108
  /* @__PURE__ */ jsxs(Stack, { spacing: 1, children: [
109
109
  /* @__PURE__ */ jsx(LineSeparator, {}),
110
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, children: [
111
- createParameter && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(LabelledButton, { label: "save", "data-testid": "SaveButton", callback: handleSaveClick }) }),
112
- validateHandler && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
110
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
111
+ createParameter && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(LabelledButton, { label: "save", "data-testid": "SaveButton", callback: handleSaveClick }) }),
112
+ validateHandler && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
113
113
  SubmitButton,
114
114
  {
115
115
  variant: "contained",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, Typography } from "@mui/material";
2
+ import { Grid, Typography } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useFieldArray, useFormContext } from "react-hook-form";
5
5
  import { Info } from "@mui/icons-material";
@@ -84,8 +84,8 @@ function ParameterTableField({
84
84
  },
85
85
  [isValidRow, onChange]
86
86
  );
87
- return /* @__PURE__ */ jsxs(Grid2, { container: true, sx: sxContainerProps, size: 12, children: [
88
- label && /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
87
+ return /* @__PURE__ */ jsxs(Grid, { container: true, sx: sxContainerProps, size: 12, children: [
88
+ label && /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
89
89
  /* @__PURE__ */ jsx(Typography, { component: "span", variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
90
90
  tooltipProps && /* @__PURE__ */ jsx(
91
91
  CustomTooltip,
@@ -1,20 +1,22 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { FormattedMessage } from "react-intl";
3
- import { Typography, Box, Button, Grid2, Switch } from "@mui/material";
3
+ import { Typography, Box, Button, Grid, Switch } from "@mui/material";
4
4
  import { parametersStyles } from "../parameters-style.js";
5
5
  function LabelledButton({ callback, label, ...props }) {
6
6
  return /* @__PURE__ */ jsx(Button, { onClick: callback, ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) });
7
7
  }
8
8
  function SwitchWithLabel({ value, label, callback }) {
9
9
  return /* @__PURE__ */ jsxs(Fragment, { children: [
10
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
11
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
10
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
11
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
12
12
  Switch,
13
13
  {
14
14
  checked: value,
15
15
  onChange: callback,
16
16
  value,
17
- inputProps: { "aria-label": "primary checkbox" }
17
+ slotProps: {
18
+ input: { "aria-label": "primary checkbox" }
19
+ }
18
20
  }
19
21
  ) })
20
22
  ] });
@@ -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 { FormattedMessage } from "react-intl";
4
4
  import { LineSeparator } from "./line-separator.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -40,9 +40,9 @@ const styles = {
40
40
  }
41
41
  };
42
42
  function ProviderParam({ options, id, sx }) {
43
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, sx: mergeSx(styles.providerParam, sx), justifyContent: "space-between", children: [
44
- /* @__PURE__ */ jsx(Grid2, { size: "auto", sx: mergeSx(parametersStyles.parameterName, { paddingRight: 2 }), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
45
- /* @__PURE__ */ jsx(Grid2, { size: "auto", sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(MuiSelectInput, { name: PROVIDER, size: "small", options, "data-testid": `${id}Provider` }) }),
43
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, sx: mergeSx(styles.providerParam, sx), justifyContent: "space-between", children: [
44
+ /* @__PURE__ */ jsx(Grid, { size: "auto", sx: mergeSx(parametersStyles.parameterName, { paddingRight: 2 }), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
45
+ /* @__PURE__ */ jsx(Grid, { size: "auto", sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(MuiSelectInput, { name: PROVIDER, size: "small", options, "data-testid": `${id}Provider` }) }),
46
46
  /* @__PURE__ */ jsx(LineSeparator, {})
47
47
  ] });
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.js";
5
5
  import "@mui/icons-material";
@@ -40,9 +40,9 @@ function ParameterFloat({
40
40
  labelSize,
41
41
  inputSize
42
42
  }) {
43
- const content = /* @__PURE__ */ jsxs(Grid2, { container: true, direction: "row", spacing: 1, paddingTop: 3, sx: { width: "100%" }, children: [
44
- /* @__PURE__ */ jsx(Grid2, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
45
- /* @__PURE__ */ jsx(Grid2, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
43
+ const content = /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", spacing: 1, paddingTop: 3, sx: { width: "100%" }, children: [
44
+ /* @__PURE__ */ jsx(Grid, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
45
+ /* @__PURE__ */ jsx(Grid, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
46
46
  ] });
47
47
  if (tooltip) {
48
48
  return /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: tooltip }), children: content });
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Settings, ExpandCircleDown, ExpandMore } from "@mui/icons-material";
3
- import { Grid2, Accordion, AccordionSummary, Typography, AccordionDetails } from "@mui/material";
3
+ import { Grid, Accordion, AccordionSummary, Typography, AccordionDetails } from "@mui/material";
4
4
  import { useState } from "react";
5
5
  import { FormattedMessage } from "react-intl";
6
6
  import { parametersStyles } from "../../parameters-style.js";
@@ -14,7 +14,7 @@ function ParameterGroup({
14
14
  children
15
15
  }) {
16
16
  const [mouseHover, setMouseHover] = useState(false);
17
- return /* @__PURE__ */ jsx(Grid2, { size: 12, sx: parametersStyles.subgroupParameters, children: /* @__PURE__ */ jsxs(
17
+ return /* @__PURE__ */ jsx(Grid, { size: 12, sx: parametersStyles.subgroupParameters, children: /* @__PURE__ */ jsxs(
18
18
  Accordion,
19
19
  {
20
20
  sx: parametersStyles.subgroupParametersAccordion,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { parametersStyles } from "../../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -39,9 +39,9 @@ function ParameterLineDirectoryItemsInput({
39
39
  hideErrorMessage,
40
40
  allowMultiSelect = true
41
41
  }) {
42
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, sx: { width: "100%" }, children: [
43
- /* @__PURE__ */ jsx(Grid2, { size: 7, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
44
- /* @__PURE__ */ jsx(Grid2, { size: 5, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
42
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, sx: { width: "100%" }, children: [
43
+ /* @__PURE__ */ jsx(Grid, { size: 7, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
44
+ /* @__PURE__ */ jsx(Grid, { size: 5, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
45
45
  DirectoryItemsInput,
46
46
  {
47
47
  name,
@@ -1,12 +1,13 @@
1
- import { Mark } from '@mui/material/Slider/useSlider.types';
1
+ import { default as React } from 'react';
2
+ import { SliderProps } from '@mui/material/Slider';
2
3
  export declare function sanitizePercentageValue(value: number): number;
3
4
  type SliderParameterLineProps = {
4
5
  name: string;
5
6
  disabled?: boolean;
6
7
  label: string;
7
- marks: boolean | Mark[];
8
+ marks: NonNullable<SliderProps['marks']>;
8
9
  minValue?: number;
9
10
  maxValue?: number;
10
11
  };
11
- export declare function ParameterLineSlider({ name, label, marks, disabled, minValue, maxValue, }: Readonly<SliderParameterLineProps>): import("react").JSX.Element;
12
+ export declare function ParameterLineSlider({ name, label, marks, disabled, minValue, maxValue, }: Readonly<SliderParameterLineProps>): React.JSX.Element;
12
13
  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 { FormattedMessage } from "react-intl";
4
4
  import { parametersStyles } from "../../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -49,9 +49,9 @@ function ParameterLineSlider({
49
49
  minValue = 0,
50
50
  maxValue = 100
51
51
  }) {
52
- return /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.container, children: [
53
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
52
+ return /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.container, children: [
53
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
55
55
  SliderInput,
56
56
  {
57
57
  name,
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { SwitchWithLabel } from "../parameters.js";
4
4
  function ParameterSwitch({ label, value, onChange, key }) {
5
- return /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange }) }, key);
5
+ return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange }) }, key);
6
6
  }
7
7
  export {
8
8
  ParameterSwitch
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, Tabs, Tab } from "@mui/material";
2
+ import { Stack, Grid, Tabs, Tab } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "@mui/icons-material";
5
5
  import "react";
@@ -47,8 +47,8 @@ function DynamicMarginCalculationForm({
47
47
  const { formattedProviders } = dynamicMarginCalculationMethods;
48
48
  const { selectedTab, tabsWithError, onTabChange } = useTabsReturn;
49
49
  return /* @__PURE__ */ jsxs(Stack, { sx: parametersStyles.scrollableGrid, children: [
50
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders, id: "Dmc" }) }),
51
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
50
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders, id: "Dmc" }) }),
51
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
52
52
  /* @__PURE__ */ jsx(
53
53
  Tab,
54
54
  {
@@ -66,7 +66,7 @@ function DynamicMarginCalculationForm({
66
66
  }
67
67
  )
68
68
  ] }) }),
69
- /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, sx: { paddingTop: 0, width: "100%", maxHeight: "100%" }, children: [
69
+ /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, sx: { paddingTop: 0, width: "100%", maxHeight: "100%" }, children: [
70
70
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.TAB_TIME_DELAY, children: /* @__PURE__ */ jsx(TimeDelayParameters, { path: TabValues.TAB_TIME_DELAY }) }),
71
71
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.TAB_LOADS_VARIATIONS, children: /* @__PURE__ */ jsx(LoadsVariationsParameters, { path: TabValues.TAB_LOADS_VARIATIONS }) })
72
72
  ] }, "dmcParameters")
@@ -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 { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import * as yup from "yup";
6
6
  import { LOADS_VARIATIONS, VARIATION, LOAD_FILTERS, LOAD_MODELS_RULE, ACCURACY, CALCULATION_TYPE } from "./constants.js";
7
7
  import { ID } from "../../../utils/constants/filterConstant.js";
@@ -129,7 +129,7 @@ function LoadsVariationsParameters({ path }) {
129
129
  label: inlt.formatMessage({ id: colDef.label })
130
130
  }));
131
131
  }, [inlt]);
132
- return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
132
+ return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
133
133
  params.map((param) => {
134
134
  const { name, type, ...otherParams } = param;
135
135
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);