@gridsuite/commons-ui 0.260.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 (165) 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/modification/BatteryDialogHeader.js +8 -6
  54. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  56. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  57. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  58. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  59. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  60. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  61. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  62. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  63. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  64. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  65. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  66. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  67. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  68. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  69. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  70. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  71. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  72. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  73. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  74. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  75. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  76. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  77. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  78. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  79. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  80. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  81. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  82. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  83. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  84. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  85. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  86. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  87. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  88. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  89. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  90. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  91. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  92. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  93. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  94. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  95. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  96. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  97. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  98. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  99. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  100. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  103. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  104. package/dist/features/parameters/common/line-separator.js +2 -2
  105. package/dist/features/parameters/common/parameter-field.js +6 -6
  106. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  107. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  108. package/dist/features/parameters/common/parameters.js +6 -4
  109. package/dist/features/parameters/common/provider-param.js +4 -4
  110. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  111. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  112. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  113. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  114. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  116. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  117. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  118. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  119. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  120. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  121. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  123. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  124. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  125. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  126. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  127. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  129. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  130. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  131. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  132. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  133. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  135. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  136. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  137. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  138. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  139. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  140. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  141. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  142. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  143. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  144. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  146. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  147. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  148. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  149. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  150. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  151. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  152. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  153. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  154. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  155. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  156. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  157. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  158. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  159. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  160. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  161. package/dist/features/topBar/AboutDialog.js +40 -28
  162. package/dist/features/topBar/TopBar.js +2 -2
  163. package/dist/features/topBar/UserInformationDialog.js +34 -34
  164. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  165. package/package.json +7 -7
@@ -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, {}) })
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { Info } from "@mui/icons-material";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { useIntl } from "react-intl";
6
6
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
7
7
  import { LOW_VOLTAGE_LIMIT, HIGH_VOLTAGE_LIMIT, VOLTAGE_LIMITS_MODIFICATION, VOLTAGE_LIMITS_DEFAULT } from "./constants.js";
@@ -141,7 +141,7 @@ function VoltageLimitsParameters() {
141
141
  return newRowData;
142
142
  }, [VOLTAGE_LIMITS_DEFAULT_COLUMNS_DEFINITIONS]);
143
143
  const createVoltageLimitDefaultRows = () => [newDefaultRowData];
144
- return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
144
+ return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
145
145
  /* @__PURE__ */ jsx(
146
146
  ParameterTableField,
147
147
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useCallback } from "react";
3
- import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid2, DialogActions, useMediaQuery, Zoom, Stack, tooltipClasses } from "@mui/material";
3
+ import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, useMediaQuery, Zoom, Stack, tooltipClasses } from "@mui/material";
4
4
  import { LoadingButton } from "@mui/lab";
5
5
  import { Refresh, Gavel, ExpandMore, Apps, QuestionMark, DnsOutlined, WidgetsOutlined } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
@@ -123,7 +123,7 @@ function tooltipTypeLabel(type) {
123
123
  }
124
124
  function Module({ type, name, version, gitTag }) {
125
125
  return /* @__PURE__ */ jsx(
126
- Grid2,
126
+ Grid,
127
127
  {
128
128
  size: { xs: 12, sm: 6, md: 4 },
129
129
  sx: {
@@ -134,7 +134,7 @@ function Module({ type, name, version, gitTag }) {
134
134
  children: /* @__PURE__ */ jsx(
135
135
  CustomTooltip,
136
136
  {
137
- TransitionComponent: Zoom,
137
+ slots: { transition: Zoom },
138
138
  enterNextDelay: 350,
139
139
  leaveDelay: 200,
140
140
  sx: moduleStyles.tooltip,
@@ -239,10 +239,12 @@ function AboutDialog({
239
239
  sx: styles.general,
240
240
  "aria-labelledby": "alert-dialog-title",
241
241
  "aria-describedby": "alert-dialog-description",
242
- TransitionProps: {
243
- onExited: () => {
244
- setModules(null);
245
- setActualGlobalVersion(null);
242
+ slotProps: {
243
+ transition: {
244
+ onExited: () => {
245
+ setModules(null);
246
+ setActualGlobalVersion(null);
247
+ }
246
248
  }
247
249
  },
248
250
  children: [
@@ -314,28 +316,38 @@ function AboutDialog({
314
316
  ] }),
315
317
  /* @__PURE__ */ jsx(AccordionDetails, { children: "license app summary text" })
316
318
  ] }),
317
- /* @__PURE__ */ jsxs(Accordion, { disableGutters: true, variant: "outlined", TransitionProps: { unmountOnExit: true }, children: [
318
- /* @__PURE__ */ jsxs(AccordionSummary, { expandIcon: /* @__PURE__ */ jsx(ExpandMore, {}), "aria-controls": "panel2-content", id: "panel2-header", children: [
319
- /* @__PURE__ */ jsx(Apps, { fontSize: "small" }),
320
- /* @__PURE__ */ jsx(FormattedMessage, { id: "about-dialog/modules-section" })
321
- ] }),
322
- /* @__PURE__ */ jsx(AccordionDetails, { children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: { pl: 2 }, spacing: 1, children: loadingAdditionalModules ? /* @__PURE__ */ jsx(Grid2, { size: "grow", display: "inline-flex", justifyContent: "center", children: /* @__PURE__ */ jsx(CircularProgress, { color: "inherit" }) }) : Array.isArray(modules) && /* @__PURE__ */ jsx(Fragment, { children: [...modules].sort(compareModules).map((module, idx) => /* @__PURE__ */ jsx(
323
- Module,
324
- {
325
- type: module.type,
326
- name: module.name,
327
- version: module.version,
328
- gitTag: module.gitTag
319
+ /* @__PURE__ */ jsxs(
320
+ Accordion,
321
+ {
322
+ disableGutters: true,
323
+ variant: "outlined",
324
+ slotProps: {
325
+ transition: { unmountOnExit: true }
329
326
  },
330
- `module-${idx}`
331
- )) }) || /* @__PURE__ */ jsx(
332
- Typography,
333
- {
334
- sx: { color: (selectedTheme) => selectedTheme.palette.error.main },
335
- children: "Error"
336
- }
337
- ) }) })
338
- ] })
327
+ children: [
328
+ /* @__PURE__ */ jsxs(AccordionSummary, { expandIcon: /* @__PURE__ */ jsx(ExpandMore, {}), "aria-controls": "panel2-content", id: "panel2-header", children: [
329
+ /* @__PURE__ */ jsx(Apps, { fontSize: "small" }),
330
+ /* @__PURE__ */ jsx(FormattedMessage, { id: "about-dialog/modules-section" })
331
+ ] }),
332
+ /* @__PURE__ */ jsx(AccordionDetails, { children: /* @__PURE__ */ jsx(Grid, { container: true, sx: { pl: 2 }, spacing: 1, children: loadingAdditionalModules ? /* @__PURE__ */ jsx(Grid, { size: "grow", display: "inline-flex", justifyContent: "center", children: /* @__PURE__ */ jsx(CircularProgress, { color: "inherit" }) }) : Array.isArray(modules) && /* @__PURE__ */ jsx(Fragment, { children: [...modules].sort(compareModules).map((module, idx) => /* @__PURE__ */ jsx(
333
+ Module,
334
+ {
335
+ type: module.type,
336
+ name: module.name,
337
+ version: module.version,
338
+ gitTag: module.gitTag
339
+ },
340
+ `module-${idx}`
341
+ )) }) || /* @__PURE__ */ jsx(
342
+ Typography,
343
+ {
344
+ sx: { color: (selectedTheme) => selectedTheme.palette.error.main },
345
+ children: "Error"
346
+ }
347
+ ) }) })
348
+ ]
349
+ }
350
+ )
339
351
  ] }) }),
340
352
  /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: handleClose, autoFocus: true }) })
341
353
  ]
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { styled, Menu, MenuItem, ListItemIcon, AppBar, Toolbar, Box, IconButton, ListItemText, Button, Popper, Paper, ClickAwayListener, MenuList, Typography, ToggleButtonGroup, ToggleButton, darken } from "@mui/material";
4
+ import { styled, Menu, MenuItem, ListItemIcon, AppBar, Toolbar, Box, IconButton, ListItemText, Button, Popper, Paper, ClickAwayListener, MenuList, Typography, ToggleButtonGroup, ToggleButton } from "@mui/material";
5
5
  import { Apps, ArrowDropUp, ArrowDropDown, Person, Badge, ManageAccounts, HelpOutline, WbSunny, Brightness3, Computer, ExitToApp } from "@mui/icons-material";
6
6
  import { GridLogo } from "./GridLogo.js";
7
7
  import { AboutDialog } from "./AboutDialog.js";
@@ -33,7 +33,7 @@ const getStyles = (dense = false) => {
33
33
  color: "inherit"
34
34
  },
35
35
  name: (theme) => ({
36
- backgroundColor: darken(theme.palette.background.paper, 0.1),
36
+ backgroundColor: theme.darken(theme.palette.background.paper, 0.1),
37
37
  paddingTop: theme.spacing(dense ? 0.625 : 1.25),
38
38
  borderRadius: "100%",
39
39
  fontWeight: "400",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Dialog, DialogTitle, DialogContent, Grid2, Typography, Box, DialogActions } from "@mui/material";
2
+ import { Dialog, DialogTitle, DialogContent, Grid, Typography, Box, DialogActions } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useState, useEffect, Fragment } from "react";
5
5
  import { fetchUserDetails } from "../../services/userAdmin.js";
@@ -33,9 +33,9 @@ function UserInformationDialog({ openDialog, userProfile, onClose }) {
33
33
  return /* @__PURE__ */ jsxs(Dialog, { open: openDialog && !!userProfile && !!userDetails, onClose, children: [
34
34
  /* @__PURE__ */ jsx(DialogTitle, { fontWeight: "bold", sx: styles.DialogTitle, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/title" }) }),
35
35
  /* @__PURE__ */ jsxs(DialogContent, { children: [
36
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, sx: styles.DialogContent, children: [
37
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/role" }) }) }),
38
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: rolesList.length > 0 ? /* @__PURE__ */ jsx(Typography, { children: rolesList.map((role, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
36
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, sx: styles.DialogContent, children: [
37
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/role" }) }) }),
38
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: rolesList.length > 0 ? /* @__PURE__ */ jsx(Typography, { children: rolesList.map((role, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
39
39
  index > 0 && " | ",
40
40
  /* @__PURE__ */ jsx(
41
41
  FormattedMessage,
@@ -45,14 +45,14 @@ function UserInformationDialog({ openDialog, userProfile, onClose }) {
45
45
  }
46
46
  )
47
47
  ] }, role)) }) : /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/no-roles" }) }) }),
48
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/profile" }) }) }),
49
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: userDetails?.profileName === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/no-profile" }) : /* @__PURE__ */ jsx(Typography, { children: userDetails?.profileName }) })
48
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/profile" }) }) }),
49
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: userDetails?.profileName === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/no-profile" }) : /* @__PURE__ */ jsx(Typography, { children: userDetails?.profileName }) })
50
50
  ] }),
51
51
  /* @__PURE__ */ jsxs(Box, { mt: 3, sx: styles.quotasBox, children: [
52
52
  /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", sx: styles.quotasTypography, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/quotas" }) }),
53
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
54
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-cases-or-studies" }) }) }),
55
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsxs(Typography, { children: [
53
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
54
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-cases-or-studies" }) }) }),
55
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(Typography, { children: [
56
56
  userDetails?.maxAllowedCases,
57
57
  /* @__PURE__ */ jsxs(Box, { component: "span", sx: styles.usedTopography, children: [
58
58
  "( ",
@@ -64,31 +64,31 @@ function UserInformationDialog({ openDialog, userProfile, onClose }) {
64
64
  ] }) })
65
65
  ] }),
66
66
  /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", sx: styles.quotasTypography, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/quotas-per-study" }) }),
67
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-builds-per-study" }) }) }),
69
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedBuilds }) }),
70
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-loadflow-per-study" }) }) }),
71
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedLoadflow }) }),
72
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-security-per-study" }) }) }),
73
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedSecurity }) }),
74
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-sensitivity-per-study" }) }) }),
75
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedSensitivity }) }),
76
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-shortCircuit-per-study" }) }) }),
77
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedShortCircuit }) }),
78
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-voltageInit-per-study" }) }) }),
79
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedVoltageInit }) }),
80
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-pccMin-per-study" }) }) }),
81
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedPccMin }) }),
82
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-stateEstimation-per-study" }) }) }),
83
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedStateEstimation }) }),
84
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-balanceAdjustement-per-study" }) }) }),
85
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedBalanceAdjustement }) }),
86
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicSimulation-per-study" }) }) }),
87
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicSimulation }) }),
88
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicSecurity-per-study" }) }) }),
89
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicSecurity }) }),
90
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicMargin-per-study" }) }) }),
91
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicMargin }) })
67
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-builds-per-study" }) }) }),
69
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedBuilds }) }),
70
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-loadflow-per-study" }) }) }),
71
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedLoadflow }) }),
72
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-security-per-study" }) }) }),
73
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedSecurity }) }),
74
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-sensitivity-per-study" }) }) }),
75
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedSensitivity }) }),
76
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-shortCircuit-per-study" }) }) }),
77
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedShortCircuit }) }),
78
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-voltageInit-per-study" }) }) }),
79
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedVoltageInit }) }),
80
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-pccMin-per-study" }) }) }),
81
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedPccMin }) }),
82
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-stateEstimation-per-study" }) }) }),
83
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedStateEstimation }) }),
84
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-balanceAdjustement-per-study" }) }) }),
85
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedBalanceAdjustement }) }),
86
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicSimulation-per-study" }) }) }),
87
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicSimulation }) }),
88
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicSecurity-per-study" }) }) }),
89
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicSecurity }) }),
90
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-information-dialog/number-of-dynamicMargin-per-study" }) }) }),
91
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: userDetails?.maxAllowedDynamicMargin }) })
92
92
  ] })
93
93
  ] })
94
94
  ] }),