@gridsuite/commons-ui 0.259.0 → 0.261.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 (175) 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/expert/expertFilterConstants.js +3 -1
  13. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  14. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  15. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  16. package/dist/components/composite/grid/grid-item.js +2 -2
  17. package/dist/components/composite/grid/grid-section.js +2 -2
  18. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  19. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  20. package/dist/components/composite/report/QuickSearch.js +31 -29
  21. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  22. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  23. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  24. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  25. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  26. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  27. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  28. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  30. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  32. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  33. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  34. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  35. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  36. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  37. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  38. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  39. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  40. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  41. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  42. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  43. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  44. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  45. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  46. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  47. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  48. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  49. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  50. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  51. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  52. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  53. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +18 -8
  54. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  56. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  57. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  58. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.d.ts +1 -1
  59. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.js +4 -2
  60. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  61. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  62. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  63. package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +2 -1
  64. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  65. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  66. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  67. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  68. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  69. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  70. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  71. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  72. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  73. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  74. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  75. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  76. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  77. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  78. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  79. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  80. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  81. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  82. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  83. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  84. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  85. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  86. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  87. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  88. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  89. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  90. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  91. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  92. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  93. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  94. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  95. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  96. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  97. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  98. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  99. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  100. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  103. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  104. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  105. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  106. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  107. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  108. package/dist/features/parameters/common/line-separator.js +2 -2
  109. package/dist/features/parameters/common/parameter-field.js +6 -6
  110. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  111. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  112. package/dist/features/parameters/common/parameters.js +6 -4
  113. package/dist/features/parameters/common/provider-param.js +4 -4
  114. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  116. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  117. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  118. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  119. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  120. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  121. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  123. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  124. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  125. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  126. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  127. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  128. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  129. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  130. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  131. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  132. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  133. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  134. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  135. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  136. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  137. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  138. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  139. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  140. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  141. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  142. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  143. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  144. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  146. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  147. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  148. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  149. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  150. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  151. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  152. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  153. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  154. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  155. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  156. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  157. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  158. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  159. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  160. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  161. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  162. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  163. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  164. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  165. package/dist/features/topBar/AboutDialog.js +40 -28
  166. package/dist/features/topBar/TopBar.js +2 -2
  167. package/dist/features/topBar/UserInformationDialog.js +34 -34
  168. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  169. package/dist/translations/en/networkModificationsEn.d.ts +1 -1
  170. package/dist/translations/en/networkModificationsEn.js +1 -1
  171. package/dist/translations/fr/networkModificationsFr.d.ts +1 -1
  172. package/dist/translations/fr/networkModificationsFr.js +1 -1
  173. package/dist/utils/types/types.d.ts +1 -0
  174. package/dist/utils/types/types.js +1 -0
  175. package/package.json +7 -7
@@ -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 { FormattedMessage } from "react-intl";
4
4
  import { useState, useEffect } from "react";
5
5
  import { MAP_BASE_MAP, NetworkVisualizationTabValues, PARAM_MAP_BASEMAP, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, INTL_LINE_FLOW_MODE_OPTIONS, LINE_FLOW_MODE, PARAM_LINE_FLOW_MODE, MAP_MANUAL_REFRESH, PARAM_MAP_MANUAL_REFRESH } from "./constants.js";
@@ -52,12 +52,12 @@ function MapParameters() {
52
52
  });
53
53
  }, [setBaseMapOptions, snackError]);
54
54
  const lineSwitch = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
55
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
56
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.MAP}.${name}` }) })
55
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
56
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.MAP}.${name}` }) })
57
57
  ] });
58
58
  const lineFlow = (name, label, options) => /* @__PURE__ */ jsxs(Fragment, { children: [
59
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
60
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
59
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
60
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
61
61
  MuiSelectInput,
62
62
  {
63
63
  fullWidth: true,
@@ -68,8 +68,8 @@ function MapParameters() {
68
68
  ) })
69
69
  ] });
70
70
  const mapBaseMap = /* @__PURE__ */ jsxs(Fragment, { children: [
71
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: MAP_BASE_MAP }) }),
72
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
71
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: MAP_BASE_MAP }) }),
72
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
73
73
  MuiSelectInput,
74
74
  {
75
75
  fullWidth: true,
@@ -80,7 +80,7 @@ function MapParameters() {
80
80
  ) })
81
81
  ] });
82
82
  return /* @__PURE__ */ jsxs(
83
- Grid2,
83
+ Grid,
84
84
  {
85
85
  container: true,
86
86
  spacing: 1,
@@ -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 { NAD_POSITIONS_GENERATION_MODE_LABEL, NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE } from "./constants.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -34,7 +34,7 @@ import "react-resizable-panels";
34
34
  import "react-papaparse";
35
35
  function NetworkAreaDiagramParameters() {
36
36
  return /* @__PURE__ */ jsxs(
37
- Grid2,
37
+ Grid,
38
38
  {
39
39
  container: true,
40
40
  spacing: 1,
@@ -42,8 +42,8 @@ function NetworkAreaDiagramParameters() {
42
42
  marginTop: -3,
43
43
  justifyContent: "space-between",
44
44
  children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
46
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
45
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
46
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
47
47
  MuiSelectInput,
48
48
  {
49
49
  fullWidth: true,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -67,14 +67,16 @@ function NetworkVisualizationsParametersEditionDialog({
67
67
  },
68
68
  titleId,
69
69
  disabledSave: isDisabledValidationButton(errors),
70
- PaperProps: {
71
- sx: {
72
- height: "65vh"
73
- // we want the dialog height to be fixed even when switching tabs
70
+ slotProps: {
71
+ paper: {
72
+ sx: {
73
+ height: "65vh"
74
+ // we want the dialog height to be fixed even when switching tabs
75
+ }
74
76
  }
75
77
  },
76
78
  children: [
77
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
79
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
78
80
  NameElementEditorForm,
79
81
  {
80
82
  initialElementName: name,
@@ -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 { useMemo } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { INTL_SUBSTATION_LAYOUT_OPTIONS, SUBSTATION_LAYOUT, NetworkVisualizationTabValues, PARAM_SUBSTATION_LAYOUT, COMPONENT_LIBRARY, PARAM_COMPONENT_LIBRARY, DIAGONAL_LABEL, PARAM_DIAGONAL_LABEL, CENTER_LABEL, PARAM_CENTER_LABEL, CUSTOM_REAL_TIME_STATE_ESTIMATION, PARAM_STATE_ESTIMATION } from "./constants.js";
@@ -42,12 +42,12 @@ function SingleLineDiagramParameters({ componentLibraries }) {
42
42
  return INTL_SUBSTATION_LAYOUT_OPTIONS;
43
43
  }, []);
44
44
  const labelPosition = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
46
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
45
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
46
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
47
47
  ] });
48
48
  const substationLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
49
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
50
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
49
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
50
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
51
51
  MuiSelectInput,
52
52
  {
53
53
  fullWidth: true,
@@ -58,8 +58,8 @@ function SingleLineDiagramParameters({ componentLibraries }) {
58
58
  ) })
59
59
  ] });
60
60
  const componentLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
61
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
62
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
62
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
63
63
  MuiSelectInput,
64
64
  {
65
65
  fullWidth: true,
@@ -72,7 +72,7 @@ function SingleLineDiagramParameters({ componentLibraries }) {
72
72
  ) })
73
73
  ] });
74
74
  return /* @__PURE__ */ jsxs(
75
- Grid2,
75
+ Grid,
76
76
  {
77
77
  container: true,
78
78
  spacing: 1,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -65,14 +65,16 @@ function PccMinParametersEditionDialog({
65
65
  },
66
66
  titleId,
67
67
  disabledSave: isDisabledValidationButton(errors),
68
- PaperProps: {
69
- sx: {
70
- height: "90vh"
71
- // we want the dialog height to be fixed even when switching tabs
68
+ slotProps: {
69
+ paper: {
70
+ sx: {
71
+ height: "90vh"
72
+ // we want the dialog height to be fixed even when switching tabs
73
+ }
72
74
  }
73
75
  },
74
76
  children: [
75
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
77
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
76
78
  NameElementEditorForm,
77
79
  {
78
80
  initialElementName: name,
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { ParameterLineDirectoryItemsInput } from "../common/widget/parameter-line-directory-items-input.js";
4
4
  import { FILTERS } from "../../../utils/constants/filterConstant.js";
5
5
  import "../../../utils/conversionUtils.js";
@@ -8,7 +8,7 @@ import { EquipmentType } from "../../../utils/types/equipmentType.js";
8
8
  import "@mui/icons-material";
9
9
  import { parametersStyles } from "../parameters-style.js";
10
10
  function PccMinParametersForm() {
11
- return /* @__PURE__ */ jsx(Grid2, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
11
+ return /* @__PURE__ */ jsx(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
12
12
  ParameterLineDirectoryItemsInput,
13
13
  {
14
14
  name: FILTERS,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import "react";
4
4
  import "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -76,14 +76,16 @@ function SecurityAnalysisParametersDialog({
76
76
  },
77
77
  titleId,
78
78
  disabledSave: isDisabledValidationButton(errors),
79
- PaperProps: {
80
- sx: {
81
- height: "90vh"
82
- // we want the dialog height to be fixed even when switching tabs
79
+ slotProps: {
80
+ paper: {
81
+ sx: {
82
+ height: "90vh"
83
+ // we want the dialog height to be fixed even when switching tabs
84
+ }
83
85
  }
84
86
  },
85
87
  children: [
86
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
88
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
87
89
  NameElementEditorForm,
88
90
  {
89
91
  initialElementName: name,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2, Typography } from "@mui/material";
2
+ import { Grid, Typography } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { Info } from "@mui/icons-material";
5
5
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
@@ -41,10 +41,10 @@ function SecurityAnalysisFields({
41
41
  isSingleField
42
42
  }) {
43
43
  const intl = useIntl();
44
- return /* @__PURE__ */ jsxs(Grid2, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
44
+ return /* @__PURE__ */ jsxs(Grid, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
45
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
46
46
  /* @__PURE__ */ jsx(
47
- Grid2,
47
+ Grid,
48
48
  {
49
49
  container: true,
50
50
  size: isSingleField ? 8 : 4,
@@ -61,7 +61,7 @@ function SecurityAnalysisFields({
61
61
  )
62
62
  }
63
63
  ),
64
- !isSingleField && secondField && /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
64
+ !isSingleField && secondField && /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
65
65
  FloatInput,
66
66
  {
67
67
  name: secondField.name,
@@ -112,7 +112,7 @@ const fieldsToShow = [
112
112
  function ViolationsHidingParameters() {
113
113
  const intl = useIntl();
114
114
  return /* @__PURE__ */ jsxs(Fragment, { children: [
115
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid2, { size: 8, sx: parametersStyles.text, children: [
115
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid, { size: 8, sx: parametersStyles.text, children: [
116
116
  /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
117
117
  id: "securityAnalysis.violationsHiding"
118
118
  }) }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import "react";
4
4
  import "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -88,7 +88,7 @@ function SensitivityAnalysisParametersDialog({
88
88
  titleId,
89
89
  disabledSave: isDisabledValidationButton(errors),
90
90
  children: [
91
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
91
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
92
92
  NameElementEditorForm,
93
93
  {
94
94
  initialElementName: name,
@@ -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 { parametersStyles } from "../parameters-style.js";
4
4
  import "@mui/icons-material";
5
5
  import "react";
@@ -56,7 +56,7 @@ function SensitivityAnalysisParametersForm({
56
56
  ),
57
57
  /* @__PURE__ */ jsxs(Stack, { children: [
58
58
  /* @__PURE__ */ jsx(SensitivityAnalysisFields, {}),
59
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 12, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
59
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 12, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
60
60
  /* @__PURE__ */ jsx(
61
61
  SensitivityParametersSelector,
62
62
  {
@@ -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 { FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD } from "./constants.js";
5
5
  import "@mui/icons-material";
@@ -33,24 +33,24 @@ import "react-resizable-panels";
33
33
  import "react-papaparse";
34
34
  import { parametersStyles } from "../parameters-style.js";
35
35
  function SensitivityAnalysisFields() {
36
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, paddingTop: 1, children: [
37
- /* @__PURE__ */ jsx(Grid2, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
38
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, children: [
39
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
36
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, children: [
37
+ /* @__PURE__ */ jsx(Grid, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
38
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
39
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
40
40
  FloatInput,
41
41
  {
42
42
  name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
43
43
  label: "flowFlowSensitivityValueThreshold"
44
44
  }
45
45
  ) }),
46
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
46
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
47
47
  FloatInput,
48
48
  {
49
49
  name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
50
50
  label: "angleFlowSensitivityValueThreshold"
51
51
  }
52
52
  ) }),
53
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
53
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
54
54
  FloatInput,
55
55
  {
56
56
  name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useMemo, useEffect } from "react";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
- import { Grid2, Box, Tabs, Tab, Card, CardContent } from "@mui/material";
4
+ import { Grid, Box, Tabs, Tab, Card, CardContent } from "@mui/material";
5
5
  import { useFormContext } from "react-hook-form";
6
6
  import { SensiTabValues, SensiBranchesTabValues, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_PSTS, COLUMNS_DEFINITIONS_NODES } from "./columns-definitions.js";
7
7
  import "@mui/icons-material";
@@ -140,7 +140,7 @@ function SensitivityParametersSelector({
140
140
  setTabValue(SensiTabValues.SensitivityBranches);
141
141
  }
142
142
  }, [isDeveloperMode]);
143
- return /* @__PURE__ */ jsxs(Grid2, { sx: { width: "100%" }, children: [
143
+ return /* @__PURE__ */ jsxs(Grid, { sx: { width: "100%" }, children: [
144
144
  /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: "100%" }, children: [
145
145
  /* @__PURE__ */ jsx(Tabs, { value: tabValue, onChange: handleTabChange, children: tabInfo.map((tab, index) => /* @__PURE__ */ jsx(
146
146
  Tab,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useMemo, useEffect } from "react";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { green, red } from "@mui/material/colors";
5
5
  import { Lens } from "@mui/icons-material";
6
6
  import { useWatch } from "react-hook-form";
@@ -121,9 +121,9 @@ const ShortCircuitGeneralTabPanel = forwardRef(
121
121
  const newPredefinedParameters = event.target.value;
122
122
  resetAll(newPredefinedParameters);
123
123
  };
124
- const feederResult = /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
125
- /* @__PURE__ */ jsx(Grid2, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
126
- /* @__PURE__ */ jsx(Grid2, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
124
+ const feederResult = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
125
+ /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
126
+ /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
127
127
  ] });
128
128
  const predefinedParameters = /* @__PURE__ */ jsx(
129
129
  MuiSelectInput,
@@ -182,26 +182,26 @@ const ShortCircuitGeneralTabPanel = forwardRef(
182
182
  isIccMaxFeaturesDefaultConfiguration,
183
183
  isIccMinFeaturesDefaultConfiguration
184
184
  ]);
185
- return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid2, { container: true, paddingLeft: 2, children: [
186
- /* @__PURE__ */ jsx(Grid2, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
185
+ return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid, { container: true, paddingLeft: 2, children: [
186
+ /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
187
187
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
188
- /* @__PURE__ */ jsxs(Grid2, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
188
+ /* @__PURE__ */ jsxs(Grid, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
189
189
  /* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
190
190
  /* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
191
191
  ] }),
192
192
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
193
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 5, size: 12, children: [
194
- /* @__PURE__ */ jsxs(Grid2, { children: [
193
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 5, size: 12, children: [
194
+ /* @__PURE__ */ jsxs(Grid, { children: [
195
195
  /* @__PURE__ */ jsx(GridItem, { children: loads }),
196
196
  /* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
197
197
  ] }),
198
- /* @__PURE__ */ jsxs(Grid2, { size: 8, children: [
198
+ /* @__PURE__ */ jsxs(Grid, { size: 8, children: [
199
199
  /* @__PURE__ */ jsx(GridItem, { children: vsc }),
200
200
  /* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
201
201
  ] })
202
202
  ] }),
203
203
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
204
- /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
204
+ /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
205
205
  /* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
206
206
  ] }) });
207
207
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useWatch } from "react-hook-form";
4
- import { Grid2, Tabs, Tab, Box } from "@mui/material";
4
+ import { Grid, Tabs, Tab, Box } from "@mui/material";
5
5
  import { FormattedMessage } from "react-intl";
6
6
  import { getTabStyle, parametersStyles } from "../parameters-style.js";
7
7
  import { ShortCircuitParametersTabValues } from "./short-circuit-parameters-utils.js";
@@ -64,7 +64,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
64
64
  [watchSpecificParameters]
65
65
  );
66
66
  return /* @__PURE__ */ jsxs(Fragment, { children: [
67
- /* @__PURE__ */ jsx(Grid2, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
67
+ /* @__PURE__ */ jsx(Grid, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, onChange: handleTabChange, children: [
68
68
  /* @__PURE__ */ jsx(
69
69
  Tab,
70
70
  {
@@ -90,7 +90,7 @@ function ShortCircuitParametersContent({ shortCircuitMethods }) {
90
90
  }
91
91
  )
92
92
  ] }) }),
93
- /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid2, { sx: styles.maxWidth, children: [
93
+ /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid, { sx: styles.maxWidth, children: [
94
94
  /* @__PURE__ */ jsx(ShortCircuitGeneralTabPanel, { resetAll, value: selectedTab }),
95
95
  isThereSpecificParameters && /* @__PURE__ */ jsxs(Fragment, { children: [
96
96
  /* @__PURE__ */ jsx(ShortCircuitStudyAreaTabPanel, { value: selectedTab }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -82,7 +82,7 @@ function ShortCircuitParametersEditionDialog({
82
82
  disabledSave: isDisabledValidationButton(errors),
83
83
  maxWidth: "lg",
84
84
  children: [
85
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
85
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
86
86
  NameElementEditorForm,
87
87
  {
88
88
  initialElementName: name,
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import ShortCircuitParametersContent from "./short-circuit-parameters-content.js";
4
4
  import { parametersStyles } from "../parameters-style.js";
5
5
  function ShortCircuitParametersForm({ shortCircuitMethods }) {
6
- return /* @__PURE__ */ jsx(Grid2, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(ShortCircuitParametersContent, { shortCircuitMethods }) });
6
+ return /* @__PURE__ */ jsx(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(ShortCircuitParametersContent, { shortCircuitMethods }) });
7
7
  }
8
8
  export {
9
9
  ShortCircuitParametersForm
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { ShortCircuitIccMaterialTable } from "./short-circuit-icc-material-table.js";
6
6
  import "@mui/icons-material";
@@ -64,13 +64,13 @@ function createRows() {
64
64
  }
65
65
  const ShortCircuitPowerElectronicsTabPanel = forwardRef(
66
66
  ({ ...othersTabPanelProps }, ref) => {
67
- const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
68
- /* @__PURE__ */ jsx(Grid2, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
69
- /* @__PURE__ */ jsx(Grid2, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
67
+ const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
68
+ /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
69
+ /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
70
70
  ] });
71
71
  return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.POWER_ELECTRONICS, ref, ...othersTabPanelProps, children: [
72
72
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
73
- /* @__PURE__ */ jsx(Grid2, { container: true, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
73
+ /* @__PURE__ */ jsx(Grid, { container: true, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),
74
74
  /* @__PURE__ */ jsx(
75
75
  ShortCircuitIccMaterialTable,
76
76
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { Grid2, Box } from "@mui/material";
3
+ import { Grid, Box } from "@mui/material";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  import "@mui/icons-material";
6
6
  import "react-intl";
@@ -110,7 +110,7 @@ const ShortCircuitStudyAreaTabPanel = forwardRef(
110
110
  );
111
111
  return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.STUDY_AREA, ref, ...othersTabPanelProps, children: [
112
112
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitInClusterFilter", heading: 4 }),
113
- /* @__PURE__ */ jsx(Grid2, { size: "grow", sx: { paddingBottom: 4 }, children: /* @__PURE__ */ jsx(
113
+ /* @__PURE__ */ jsx(Grid, { size: "grow", sx: { paddingBottom: 4 }, children: /* @__PURE__ */ jsx(
114
114
  DirectoryItemsInput,
115
115
  {
116
116
  titleId: "FiltersListsSelection",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Alert, Grid2 } from "@mui/material";
2
+ import { Stack, Alert, Grid } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "@mui/icons-material";
5
5
  import "../../../components/ui/overflowableText/OverflowableText.js";
@@ -64,7 +64,7 @@ const initialEquipmentsSelectionType = {
64
64
  function EquipmentSelectionParameters() {
65
65
  return /* @__PURE__ */ jsxs(Stack, { children: [
66
66
  /* @__PURE__ */ jsx(Alert, { sx: equipmentsSelectionStyles.alert, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersEquipmentsSelectionAlert" }) }),
67
- /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
68
68
  RadioInput,
69
69
  {
70
70
  name: GENERATORS_SELECTION_TYPE,
@@ -81,7 +81,7 @@ function EquipmentSelectionParameters() {
81
81
  hideErrorMessage: true
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
84
+ /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
85
85
  RadioInput,
86
86
  {
87
87
  name: TRANSFORMERS_SELECTION_TYPE,
@@ -98,7 +98,7 @@ function EquipmentSelectionParameters() {
98
98
  hideErrorMessage: true
99
99
  }
100
100
  ),
101
- /* @__PURE__ */ jsx(Grid2, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid2, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
101
+ /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { size: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
102
102
  RadioInput,
103
103
  {
104
104
  name: SHUNT_COMPENSATORS_SELECTION_TYPE,
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useFormContext, useWatch } from "react-hook-form";
3
3
  import { useCallback } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
- import { Grid2, Alert, Box } from "@mui/material";
5
+ import { Grid, Alert, Box } from "@mui/material";
6
6
  import { GENERAL, GENERAL_APPLY_MODIFICATIONS, UPDATE_BUS_VOLTAGE, REACTIVE_SLACKS_THRESHOLD, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD } from "./constants.js";
7
7
  import "@mui/icons-material";
8
8
  import { parametersStyles } from "../parameters-style.js";
@@ -64,7 +64,7 @@ function GeneralParameters({ withApplyModifications }) {
64
64
  },
65
65
  [setValue]
66
66
  );
67
- return /* @__PURE__ */ jsxs(Grid2, { children: [
67
+ return /* @__PURE__ */ jsxs(Grid, { children: [
68
68
  withApplyModifications && /* @__PURE__ */ jsxs(Fragment, { children: [
69
69
  /* @__PURE__ */ jsx(Alert, { sx: parametersStyles.adjustExistingLimitsInfo, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersGeneralSaveInfo" }) }),
70
70
  /* @__PURE__ */ jsx(
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -66,14 +66,16 @@ function VoltageInitParametersEditionDialog({
66
66
  language
67
67
  },
68
68
  disabledSave: isDisabledValidationButton(errors),
69
- PaperProps: {
70
- sx: {
71
- height: "90vh"
72
- // we want the dialog height to be fixed even when switching tabs
69
+ slotProps: {
70
+ paper: {
71
+ sx: {
72
+ height: "90vh"
73
+ // we want the dialog height to be fixed even when switching tabs
74
+ }
73
75
  }
74
76
  },
75
77
  children: [
76
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
78
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
77
79
  NameElementEditorForm,
78
80
  {
79
81
  initialElementName: name,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Tabs, Tab, Grid2 } from "@mui/material";
2
+ import { Stack, Tabs, Tab, Grid } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { parametersStyles, getTabStyle } from "../parameters-style.js";
5
5
  import "@mui/icons-material";
@@ -72,7 +72,7 @@ function VoltageInitParametersForm({
72
72
  }
73
73
  )
74
74
  ] }),
75
- /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
75
+ /* @__PURE__ */ jsxs(Grid, { container: true, children: [
76
76
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.GENERAL, children: /* @__PURE__ */ jsx(GeneralParameters, { withApplyModifications: !!showActionsButtons }) }),
77
77
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.VOLTAGE_LIMITS, children: /* @__PURE__ */ jsx(VoltageLimitsParameters, {}) }),
78
78
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.EQUIPMENTS_SELECTION, children: /* @__PURE__ */ jsx(EquipmentSelectionParameters, {}) })