@gridsuite/commons-ui 0.260.0 → 0.262.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
  2. package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
  4. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
  5. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
  6. package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
  7. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  8. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  9. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  10. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
  11. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  12. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  13. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  14. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  15. package/dist/components/composite/grid/grid-item.js +2 -2
  16. package/dist/components/composite/grid/grid-section.js +2 -2
  17. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  18. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  19. package/dist/components/composite/report/QuickSearch.js +31 -29
  20. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  21. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  22. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  23. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  24. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  25. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  26. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  27. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  28. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  30. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  32. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  33. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  34. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  35. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  36. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  37. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  38. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  39. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  40. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  41. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  42. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  43. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  44. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  45. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  46. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  47. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  48. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  49. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  50. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  51. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  52. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
  53. package/dist/features/network-modifications/battery/creation/batteryCreation.types.d.ts +2 -2
  54. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -3
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  56. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  57. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  58. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  59. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  60. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  61. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  62. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  63. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  64. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  65. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  66. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  67. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  68. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  69. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  70. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  71. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  72. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  73. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  74. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  75. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  76. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  77. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  78. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  79. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  80. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  81. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  82. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  83. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  84. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  85. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  86. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  87. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  88. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  89. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  90. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  91. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  92. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  93. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  94. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  95. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  96. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  97. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  98. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  99. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  100. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  103. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  104. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  105. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  106. package/dist/features/parameters/common/line-separator.js +2 -2
  107. package/dist/features/parameters/common/parameter-field.js +6 -6
  108. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  109. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  110. package/dist/features/parameters/common/parameters.js +6 -4
  111. package/dist/features/parameters/common/provider-param.js +4 -4
  112. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  113. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  114. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  116. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  117. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  118. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  119. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  120. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  121. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  123. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  124. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  125. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  126. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  127. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  129. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  130. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  131. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  132. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  133. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  135. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  136. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  137. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  138. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  139. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  140. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  141. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  142. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  143. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  144. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  146. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  147. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  148. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  149. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  150. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  151. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  152. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  153. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  154. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  155. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  156. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  157. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  158. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  159. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  160. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  161. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  162. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  163. package/dist/features/topBar/AboutDialog.js +40 -28
  164. package/dist/features/topBar/TopBar.js +2 -2
  165. package/dist/features/topBar/UserInformationDialog.js +34 -34
  166. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  167. package/package.json +7 -7
@@ -1,6 +1,6 @@
1
1
  import { jsxs, 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
  ] }),
@@ -38,7 +38,9 @@ function UserSettingsDialog({ openDialog, onClose, developerMode, onDeveloperMod
38
38
  checked: developerMode ?? false,
39
39
  disabled: handleDeveloperModeClick === void 0,
40
40
  onChange: handleDeveloperModeClick,
41
- inputProps: { "aria-label": "developer mode checkbox" }
41
+ slotProps: {
42
+ input: { "aria-label": "developer mode checkbox" }
43
+ }
42
44
  }
43
45
  ) })
44
46
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.260.0",
3
+ "version": "0.262.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -78,9 +78,9 @@
78
78
  "@emotion/react": "^11.14.0",
79
79
  "@emotion/styled": "^11.14.0",
80
80
  "@hookform/resolvers": "^4.0.0",
81
- "@mui/icons-material": "^6.5.0",
82
- "@mui/lab": "6.0.1-beta.36",
83
- "@mui/material": "^6.5.0",
81
+ "@mui/icons-material": "^7.3.11",
82
+ "@mui/lab": "7.0.1-beta.25",
83
+ "@mui/material": "^7.3.11",
84
84
  "@mui/x-charts": "^8.21.0",
85
85
  "@mui/x-tree-view": "^8.21.0",
86
86
  "ag-grid-community": "^35.3.1",
@@ -105,9 +105,9 @@
105
105
  "@eslint/js": "^9.38.0",
106
106
  "@hookform/resolvers": "^4.1.3",
107
107
  "@jest/globals": "^30.1.2",
108
- "@mui/icons-material": "^6.5.0",
109
- "@mui/lab": "6.0.1-beta.36",
110
- "@mui/material": "^6.5.0",
108
+ "@mui/icons-material": "^7.3.11",
109
+ "@mui/lab": "7.0.1-beta.25",
110
+ "@mui/material": "^7.3.11",
111
111
  "@mui/x-charts": "^8.21.0",
112
112
  "@react-hook/window-size": "^3.1.1",
113
113
  "@storybook/addon-docs": "^10.4.2",