@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.
- package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
- package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
- package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
- package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
- package/dist/components/composite/dnd-table/dnd-table.js +4 -4
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
- package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
- package/dist/components/composite/grid/grid-item.d.ts +4 -4
- package/dist/components/composite/grid/grid-item.js +2 -2
- package/dist/components/composite/grid/grid-section.js +2 -2
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/composite/report/QuickSearch.js +31 -29
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
- package/dist/components/ui/csvPicker/csv-picker.js +4 -4
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/components/ui/inputs/SelectClearable.js +3 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
- package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
- package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
- package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
- package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
- package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
- package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
- package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
- package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
- package/dist/features/network-modifications/battery/creation/batteryCreation.types.d.ts +2 -2
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -3
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
- package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
- package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
- package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
- package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/parameter-field.js +6 -6
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +6 -4
- package/dist/features/parameters/common/provider-param.js +4 -4
- package/dist/features/parameters/common/widget/parameter-float.js +4 -4
- package/dist/features/parameters/common/widget/parameter-group.js +2 -2
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
- package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
- package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
- package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
- package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
- package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/topBar/AboutDialog.js +40 -28
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +34 -34
- package/dist/features/topBar/UserSettingsDialog.js +3 -1
- 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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
children: "
|
|
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
|
|
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,
|
|
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(
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
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(
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
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(
|
|
54
|
-
/* @__PURE__ */ jsx(
|
|
55
|
-
/* @__PURE__ */ jsx(
|
|
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(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
82
|
-
/* @__PURE__ */ jsx(
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
90
|
-
/* @__PURE__ */ jsx(
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
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
|
-
|
|
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.
|
|
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": "^
|
|
82
|
-
"@mui/lab": "
|
|
83
|
-
"@mui/material": "^
|
|
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": "^
|
|
109
|
-
"@mui/lab": "
|
|
110
|
-
"@mui/material": "^
|
|
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",
|