@gridsuite/commons-ui 0.204.0 → 0.206.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/announcement/AnnouncementBanner.d.ts +1 -1
- package/dist/components/announcement/AnnouncementBanner.js +3 -2
- package/dist/components/announcement/AnnouncementNotification.d.ts +1 -1
- package/dist/components/announcement/useGlobalAnnouncement.d.ts +1 -1
- package/dist/components/authentication/SignInCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/authenticationType.d.ts +1 -1
- package/dist/components/authentication/utils/authService.d.ts +1 -6
- package/dist/components/authentication/utils/authService.js +18 -9
- package/dist/components/authentication/utils/userManagerMock.d.ts +7 -9
- package/dist/components/authentication/utils/userManagerMock.js +23 -27
- package/dist/components/customAGGrid/cell-renderers.js +7 -6
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -0
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table/dnd-table.js +4 -3
- package/dist/components/dnd-table-v2/deletable-table-row.js +3 -2
- package/dist/components/dnd-table-v2/dnd-table-add-rows-dialog.js +1 -0
- package/dist/components/dnd-table-v2/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table-v2/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table-v2/dnd-table-row.js +3 -3
- package/dist/components/dnd-table-v2/dnd-table.js +4 -2
- package/dist/components/filter/HeaderFilterForm.js +1 -0
- package/dist/components/filter/expert/ExpertFilterForm.js +1 -0
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -0
- package/dist/components/flatParameters/FlatParameters.js +3 -3
- package/dist/components/grid/grid-item.d.ts +2 -2
- package/dist/components/grid/grid-item.js +3 -2
- package/dist/components/icons/ArrowsInputIcon.d.ts +2 -0
- package/dist/components/icons/ArrowsInputIcon.js +9 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/index.js +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +4 -0
- package/dist/components/inputs/ActivableChip.js +3 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +3 -2
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.js +3 -3
- package/dist/components/inputs/reactHookForm/expandableInput/DeletableRow.js +3 -2
- package/dist/components/inputs/reactHookForm/text/DescriptionInput.js +4 -2
- package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.js +3 -4
- package/dist/components/network-modification-table/renderers/name-cell.js +3 -2
- package/dist/components/network-modification-table/row/modification-row.js +7 -17
- package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -0
- package/dist/components/network-modifications/by-filter/assignment/modification-by-assignment-form.js +1 -0
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +1 -0
- package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js +4 -2
- package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +1 -0
- package/dist/components/network-modifications/common/connectivity/PositionForm.js +4 -2
- package/dist/components/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +1 -0
- package/dist/components/network-modifications/common/measurements/PowerWithValidityForm.js +1 -0
- package/dist/components/network-modifications/common/properties/PropertiesForm.js +1 -0
- package/dist/components/network-modifications/common/properties/PropertyForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -0
- package/dist/components/network-modifications/common/setpoints/SetPointsForm.js +1 -0
- package/dist/components/network-modifications/common/shortCircuit/ShortCircuitForm.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +1 -0
- package/dist/components/network-modifications/generator/generatorDialog.type.d.ts +9 -1
- package/dist/components/network-modifications/generator/modification/generatorModification.types.d.ts +4 -0
- package/dist/components/network-modifications/index.js +1 -0
- package/dist/components/network-modifications/load/common/LoadDialogHeader.js +1 -0
- package/dist/components/network-modifications/load/creation/loadCreation.utils.js +1 -0
- package/dist/components/network-modifications/load/modification/loadModification.utils.js +1 -0
- package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +1 -0
- package/dist/components/network-modifications/substation/modification/SubstationModificationForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +4 -2
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +1 -0
- package/dist/components/network-modifications/voltageLevel/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +1 -0
- package/dist/components/overflowableText/OverflowableText.js +3 -2
- package/dist/components/parameters/common/ProviderParam.js +1 -0
- package/dist/components/parameters/common/contingency-table/columns-definitions.js +1 -0
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +4 -2
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -0
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -0
- package/dist/components/parameters/common/parameter-field.js +4 -2
- package/dist/components/parameters/common/parameter-table/parameter-table.js +3 -2
- package/dist/components/parameters/common/parameter-table/table-row.js +3 -2
- package/dist/components/parameters/common/parameter-table-field/parameter-table-field.js +4 -3
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +1 -1
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -0
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +3 -2
- package/dist/components/parameters/common/widget/parameter-float.js +4 -2
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -0
- package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/contingency-parameters.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -5
- package/dist/components/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +4 -5
- package/dist/components/parameters/dynamic-simulation/dynamic-simulation-inline.js +1 -0
- package/dist/components/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -0
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/network-visualizations/map-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -0
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +1 -0
- package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/columns-definitions.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +5 -4
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/sensi/columns-definitions.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-fields.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +1 -0
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -0
- package/dist/components/parameters/sensi/utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +4 -3
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +4 -3
- package/dist/components/tooltip/CustomTooltip.d.ts +2 -0
- package/dist/components/tooltip/CustomTooltip.js +9 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/topBar/AboutDialog.d.ts +1 -1
- package/dist/components/topBar/AboutDialog.js +18 -12
- package/dist/components/topBar/TopBar.d.ts +1 -1
- package/dist/components/topBar/UserInformationDialog.d.ts +1 -1
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/index.js +6 -1
- package/dist/redux/actions/authActions.d.ts +1 -1
- package/dist/redux/commonStore.d.ts +1 -1
- package/dist/utils/constants/notificationsProvider.d.ts +3 -1
- package/dist/utils/constants/notificationsProvider.js +3 -0
- package/dist/utils/index.js +2 -1
- package/package.json +8 -8
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TableRow, TableCell,
|
|
2
|
+
import { TableRow, TableCell, IconButton } from "@mui/material";
|
|
3
3
|
import { Delete } from "@mui/icons-material";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { SHORT_CIRCUIT_ICC_CLUSTER_ACTIVE } from "./columns-definition.js";
|
|
8
9
|
import { ShortCircuitIccClusterTableCell } from "./short-circuit-icc-cluster-table-cell.js";
|
|
9
10
|
function ShortCircuitIccClusterTableRow({
|
|
@@ -27,7 +28,7 @@ function ShortCircuitIccClusterTableRow({
|
|
|
27
28
|
},
|
|
28
29
|
`${column.dataKey}`
|
|
29
30
|
)),
|
|
30
|
-
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(
|
|
31
|
+
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => onDeleteButton(index), children: /* @__PURE__ */ jsx(Delete, { fontSize: "small" }) }) }) })
|
|
31
32
|
] });
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, IconButton, TableBody } from "@mui/material";
|
|
3
3
|
import { AddCircle } from "@mui/icons-material";
|
|
4
4
|
import { useFieldArray } from "react-hook-form";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { useCallback } from "react";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { ShortCircuitIccClusterTableRow } from "./short-circuit-icc-cluster-table-row.js";
|
|
8
9
|
const styles = {
|
|
9
10
|
tableContainer: (theme) => ({
|
|
@@ -39,8 +40,8 @@ function ShortCircuitIccClusterTable({
|
|
|
39
40
|
);
|
|
40
41
|
return /* @__PURE__ */ jsx(TableContainer, { sx: styles.tableContainer, children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", sx: styles.table, children: [
|
|
41
42
|
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
42
|
-
columnsDefinition.map((column) => /* @__PURE__ */ jsx(
|
|
43
|
-
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: "5%" }, children: /* @__PURE__ */ jsx(
|
|
43
|
+
columnsDefinition.map((column) => /* @__PURE__ */ jsx(CustomTooltip, { title: column.tooltip, children: /* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: column.width }, children: column.label }) }, column.dataKey)),
|
|
44
|
+
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: "5%" }, children: /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddRows" }), children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", disabled: false, onClick: handleAddRowsButton, children: /* @__PURE__ */ jsx(AddCircle, { fontSize: "small" }) }) }) }) })
|
|
44
45
|
] }) }),
|
|
45
46
|
/* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => /* @__PURE__ */ jsx(
|
|
46
47
|
ShortCircuitIccClusterTableRow,
|
|
@@ -26,6 +26,7 @@ import { FloatInput } from "../../inputs/reactHookForm/numbers/FloatInput.js";
|
|
|
26
26
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
32
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, TableBody } from "@mui/material";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
4
5
|
import { ShortCircuitIccMaterialTableRow } from "./short-circuit-icc-material-table-row.js";
|
|
5
6
|
const styles = {
|
|
6
7
|
tableContainer: (theme) => ({
|
|
@@ -23,7 +24,7 @@ function ShortCircuitIccMaterialTable({
|
|
|
23
24
|
});
|
|
24
25
|
return /* @__PURE__ */ jsx(TableContainer, { sx: styles.tableContainer, children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", sx: styles.table, children: [
|
|
25
26
|
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
26
|
-
columnsDefinition.map((column) => /* @__PURE__ */ jsx(
|
|
27
|
+
columnsDefinition.map((column) => /* @__PURE__ */ jsx(CustomTooltip, { title: column.tooltip, children: /* @__PURE__ */ jsx(TableCell, { align: "center", sx: { width: column.width }, children: column.label }) }, column.dataKey)),
|
|
27
28
|
/* @__PURE__ */ jsx(TableCell, { align: "center", sx: { visibility: "hidden", width: "5%" } })
|
|
28
29
|
] }) }),
|
|
29
30
|
/* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => /* @__PURE__ */ jsx(
|
|
@@ -31,6 +31,7 @@ import "react-csv-downloader";
|
|
|
31
31
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
33
33
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
34
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
35
36
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
36
37
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -30,6 +30,7 @@ import "react-csv-downloader";
|
|
|
30
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
33
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
35
36
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -23,6 +23,7 @@ import "react-csv-downloader";
|
|
|
23
23
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
24
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
25
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
26
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
26
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
27
28
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
29
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -28,6 +28,7 @@ import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
28
28
|
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -30,6 +30,7 @@ import "react-csv-downloader";
|
|
|
30
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
33
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
35
36
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js
CHANGED
|
@@ -30,6 +30,7 @@ import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js"
|
|
|
30
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
33
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
35
36
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -34,6 +34,7 @@ import { FloatInput } from "../../inputs/reactHookForm/numbers/FloatInput.js";
|
|
|
34
34
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
35
35
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
36
36
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
37
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
37
38
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
38
39
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
39
40
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -28,6 +28,7 @@ import "react-csv-downloader";
|
|
|
28
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -25,6 +25,7 @@ import { RadioInput } from "../../inputs/reactHookForm/booleans/RadioInput.js";
|
|
|
25
25
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
26
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
28
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
28
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
29
30
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
30
31
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -29,6 +29,7 @@ import "react-csv-downloader";
|
|
|
29
29
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
32
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
34
35
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -31,6 +31,7 @@ import "react-csv-downloader";
|
|
|
31
31
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
33
33
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
34
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
35
36
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
36
37
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -27,6 +27,7 @@ import "react-csv-downloader";
|
|
|
27
27
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
33
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -28,6 +28,7 @@ import "react-csv-downloader";
|
|
|
28
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -24,6 +24,7 @@ import "react-csv-downloader";
|
|
|
24
24
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
25
25
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
26
26
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
27
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
27
28
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
28
29
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
29
30
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -29,6 +29,7 @@ import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
29
29
|
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
32
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
34
35
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
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 {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
6
7
|
import { LOW_VOLTAGE_LIMIT, HIGH_VOLTAGE_LIMIT, VOLTAGE_LIMITS_MODIFICATION, VOLTAGE_LIMITS_DEFAULT } from "./constants.js";
|
|
7
8
|
import { VoltageAdornment } from "../../../utils/constants/adornments.js";
|
|
8
9
|
import { FILTERS } from "../../../utils/constants/filterConstant.js";
|
|
@@ -30,6 +31,7 @@ import "react-csv-downloader";
|
|
|
30
31
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
34
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
33
35
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
34
36
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
35
37
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -45,12 +47,11 @@ function VoltageLimitsParameters() {
|
|
|
45
47
|
const intl = useIntl();
|
|
46
48
|
const VoltageLevelFilterTooltip = useMemo(() => {
|
|
47
49
|
return /* @__PURE__ */ jsx(
|
|
48
|
-
|
|
50
|
+
CustomTooltip,
|
|
49
51
|
{
|
|
50
52
|
title: intl.formatMessage({
|
|
51
53
|
id: "VoltageLevelFilterTooltip"
|
|
52
54
|
}),
|
|
53
|
-
placement: "right-start",
|
|
54
55
|
sx: { marginLeft: 1 },
|
|
55
56
|
children: /* @__PURE__ */ jsx(Info, {})
|
|
56
57
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from "@mui/material";
|
|
3
|
+
function CustomTooltip(props) {
|
|
4
|
+
const { children, ...tooltipProps } = props;
|
|
5
|
+
return /* @__PURE__ */ jsx(Tooltip, { arrow: true, enterDelay: 250, ...tooltipProps, children });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
CustomTooltip
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomTooltip';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useCallback } from "react";
|
|
3
|
-
import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button,
|
|
3
|
+
import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button, 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";
|
|
7
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
7
8
|
import { LogoText } from "./GridLogo.js";
|
|
9
|
+
import { mergeSx } from "../../utils/styles.js";
|
|
8
10
|
const styles = {
|
|
9
11
|
general: {
|
|
10
12
|
".MuiAccordion-root": {
|
|
@@ -58,7 +60,7 @@ function getGlobalVersion(fnPromise, type, setData, setLoader) {
|
|
|
58
60
|
return Promise.resolve(null);
|
|
59
61
|
}
|
|
60
62
|
const moduleTypeSort = {
|
|
61
|
-
|
|
63
|
+
apps: 1,
|
|
62
64
|
server: 10,
|
|
63
65
|
other: 20
|
|
64
66
|
};
|
|
@@ -100,7 +102,7 @@ const moduleStyles = {
|
|
|
100
102
|
}
|
|
101
103
|
};
|
|
102
104
|
const ModuleTypesIcons = {
|
|
103
|
-
|
|
105
|
+
apps: /* @__PURE__ */ jsx(WidgetsOutlined, { sx: moduleStyles.icons, fontSize: "small", color: "primary" }),
|
|
104
106
|
server: /* @__PURE__ */ jsx(DnsOutlined, { sx: moduleStyles.icons, fontSize: "small", color: "secondary" }),
|
|
105
107
|
other: /* @__PURE__ */ jsx(QuestionMark, { sx: moduleStyles.icons, fontSize: "small" })
|
|
106
108
|
};
|
|
@@ -110,7 +112,7 @@ function insensitiveCaseCompare(str, obj) {
|
|
|
110
112
|
});
|
|
111
113
|
}
|
|
112
114
|
function tooltipTypeLabel(type) {
|
|
113
|
-
if (insensitiveCaseCompare("
|
|
115
|
+
if (insensitiveCaseCompare("apps", type) === 0) {
|
|
114
116
|
return "about-dialog/module-tooltip-app";
|
|
115
117
|
}
|
|
116
118
|
if (insensitiveCaseCompare("server", type) === 0) {
|
|
@@ -132,14 +134,11 @@ function Module({ type, name, version, gitTag }) {
|
|
|
132
134
|
}
|
|
133
135
|
},
|
|
134
136
|
children: /* @__PURE__ */ jsx(
|
|
135
|
-
|
|
137
|
+
CustomTooltip,
|
|
136
138
|
{
|
|
137
139
|
TransitionComponent: Zoom,
|
|
138
|
-
enterDelay: 2500,
|
|
139
140
|
enterNextDelay: 350,
|
|
140
141
|
leaveDelay: 200,
|
|
141
|
-
placement: "bottom-start",
|
|
142
|
-
arrow: true,
|
|
143
142
|
sx: moduleStyles.tooltip,
|
|
144
143
|
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
145
144
|
/* @__PURE__ */ jsx(Typography, { variant: "body1", children: name || "<?>" }),
|
|
@@ -163,10 +162,11 @@ function Module({ type, name, version, gitTag }) {
|
|
|
163
162
|
Typography,
|
|
164
163
|
{
|
|
165
164
|
variant: "caption",
|
|
166
|
-
|
|
165
|
+
sx: mergeSx(moduleStyles.version, (theme) => ({
|
|
166
|
+
color: theme.palette.text.secondary
|
|
167
|
+
})),
|
|
167
168
|
display: "inline",
|
|
168
169
|
noWrap: true,
|
|
169
|
-
sx: moduleStyles.version,
|
|
170
170
|
children: gitTag || version || null
|
|
171
171
|
}
|
|
172
172
|
)
|
|
@@ -212,7 +212,7 @@ function AboutDialog({
|
|
|
212
212
|
if (open) {
|
|
213
213
|
const currentApp = {
|
|
214
214
|
name: `Grid${appName}`,
|
|
215
|
-
type: "
|
|
215
|
+
type: "apps",
|
|
216
216
|
version: appVersion,
|
|
217
217
|
gitTag: appGitTag
|
|
218
218
|
// license: appLicense,
|
|
@@ -330,7 +330,13 @@ function AboutDialog({
|
|
|
330
330
|
gitTag: module.gitTag
|
|
331
331
|
},
|
|
332
332
|
`module-${idx}`
|
|
333
|
-
)) }) || /* @__PURE__ */ jsx(
|
|
333
|
+
)) }) || /* @__PURE__ */ jsx(
|
|
334
|
+
Typography,
|
|
335
|
+
{
|
|
336
|
+
sx: { color: (selectedTheme) => selectedTheme.palette.error.main },
|
|
337
|
+
children: "Error"
|
|
338
|
+
}
|
|
339
|
+
) }) })
|
|
334
340
|
] })
|
|
335
341
|
] }) }),
|
|
336
342
|
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: handleClose, autoFocus: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "close" }) }) })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { GridLogoProps } from './GridLogo';
|
|
4
4
|
import { AboutDialogProps } from './AboutDialog';
|
|
5
5
|
import { LogoutProps } from '../authentication/Logout';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { ComputingType } from '../components/parameters/common/computing-type';
|
|
4
4
|
import { BackendFunctions, UseParametersBackendReturnProps } from '../utils/types/parameters.type';
|
|
5
5
|
export declare enum OptionalServicesStatus {
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/fil
|
|
|
56
56
|
import { FlatParameters, extractDefault } from "./components/flatParameters/FlatParameters.js";
|
|
57
57
|
import "react/jsx-runtime";
|
|
58
58
|
import "@mui/material";
|
|
59
|
+
import { CustomTooltip } from "./components/tooltip/CustomTooltip.js";
|
|
59
60
|
import "react-intl";
|
|
60
61
|
import { SelectClearable } from "./components/inputs/SelectClearable.js";
|
|
61
62
|
import { OverflowableChip } from "./components/inputs/reactHookForm/OverflowableChip.js";
|
|
@@ -139,6 +140,7 @@ import { useNotificationsListener } from "./components/notifications/hooks/useNo
|
|
|
139
140
|
import { useListenerManager } from "./components/notifications/hooks/useListenerManager.js";
|
|
140
141
|
import { LeftPanelOpenIcon } from "./components/icons/LeftPanelOpenIcon.js";
|
|
141
142
|
import { ArrowsOutputIcon } from "./components/icons/ArrowsOutputIcon.js";
|
|
143
|
+
import { ArrowsInputIcon } from "./components/icons/ArrowsInputIcon.js";
|
|
142
144
|
import { LeftPanelCloseIcon } from "./components/icons/LeftPanelCloseIcon.js";
|
|
143
145
|
import { EditNoteIcon } from "./components/icons/EditNoteIcon.js";
|
|
144
146
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./components/parameters/common/computing-type.js";
|
|
@@ -248,7 +250,7 @@ import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./utils/langs.js";
|
|
|
248
250
|
import { getFileIcon } from "./utils/mapper/getFileIcon.js";
|
|
249
251
|
import { equipmentTypesForPredefinedPropertiesMapper } from "./utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
250
252
|
import { copyToClipboard } from "./utils/navigator-clipboard.js";
|
|
251
|
-
import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./utils/constants/notificationsProvider.js";
|
|
253
|
+
import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_MONITOR_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./utils/constants/notificationsProvider.js";
|
|
252
254
|
import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./utils/styles.js";
|
|
253
255
|
import { CustomError } from "./utils/types/CustomError.js";
|
|
254
256
|
import { ProblemDetailError } from "./utils/types/ProblemDetailError.js";
|
|
@@ -414,6 +416,7 @@ export {
|
|
|
414
416
|
AnnouncementNotification,
|
|
415
417
|
AnnouncementSeverity,
|
|
416
418
|
ArrayAction,
|
|
419
|
+
ArrowsInputIcon,
|
|
417
420
|
ArrowsOutputIcon,
|
|
418
421
|
DataType2 as AssignmentDataType,
|
|
419
422
|
AuthenticationRouter,
|
|
@@ -490,6 +493,7 @@ export {
|
|
|
490
493
|
CustomMuiDialog,
|
|
491
494
|
CustomNestedMenuItem,
|
|
492
495
|
CustomReactQueryBuilder,
|
|
496
|
+
CustomTooltip,
|
|
493
497
|
CustomVoltageLevelTable,
|
|
494
498
|
CustomVoltageLevelTableCell,
|
|
495
499
|
CustomVoltageLevelTableRow,
|
|
@@ -745,6 +749,7 @@ export {
|
|
|
745
749
|
PHASE_SHIFTER_REGULATION_ON,
|
|
746
750
|
PREFIX_CONFIG_NOTIFICATION_WS,
|
|
747
751
|
PREFIX_DIRECTORY_NOTIFICATION_WS,
|
|
752
|
+
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
748
753
|
PREFIX_STUDY_NOTIFICATION_WS,
|
|
749
754
|
PREFIX_STUDY_QUERIES,
|
|
750
755
|
PRIORITY,
|
|
@@ -3,8 +3,10 @@ export declare enum NotificationsUrlKeys {
|
|
|
3
3
|
GLOBAL_CONFIG = "GLOBAL_CONFIG",
|
|
4
4
|
STUDY = "STUDY",
|
|
5
5
|
DIRECTORY = "DIRECTORY",
|
|
6
|
-
DIRECTORY_DELETE_STUDY = "DIRECTORY_DELETE_STUDY"
|
|
6
|
+
DIRECTORY_DELETE_STUDY = "DIRECTORY_DELETE_STUDY",
|
|
7
|
+
MONITOR = "MONITOR"
|
|
7
8
|
}
|
|
8
9
|
export declare const PREFIX_CONFIG_NOTIFICATION_WS: string;
|
|
9
10
|
export declare const PREFIX_STUDY_NOTIFICATION_WS: string;
|
|
10
11
|
export declare const PREFIX_DIRECTORY_NOTIFICATION_WS: string;
|
|
12
|
+
export declare const PREFIX_MONITOR_NOTIFICATION_WS: string;
|
|
@@ -4,14 +4,17 @@ var NotificationsUrlKeys = /* @__PURE__ */ ((NotificationsUrlKeys2) => {
|
|
|
4
4
|
NotificationsUrlKeys2["STUDY"] = "STUDY";
|
|
5
5
|
NotificationsUrlKeys2["DIRECTORY"] = "DIRECTORY";
|
|
6
6
|
NotificationsUrlKeys2["DIRECTORY_DELETE_STUDY"] = "DIRECTORY_DELETE_STUDY";
|
|
7
|
+
NotificationsUrlKeys2["MONITOR"] = "MONITOR";
|
|
7
8
|
return NotificationsUrlKeys2;
|
|
8
9
|
})(NotificationsUrlKeys || {});
|
|
9
10
|
const PREFIX_CONFIG_NOTIFICATION_WS = `${"ws/gateway"}/config-notification`;
|
|
10
11
|
const PREFIX_STUDY_NOTIFICATION_WS = `${"ws/gateway"}/study-notification`;
|
|
11
12
|
const PREFIX_DIRECTORY_NOTIFICATION_WS = `${"ws/gateway"}/directory-notification`;
|
|
13
|
+
const PREFIX_MONITOR_NOTIFICATION_WS = `${"ws/gateway"}/monitor-notification`;
|
|
12
14
|
export {
|
|
13
15
|
NotificationsUrlKeys,
|
|
14
16
|
PREFIX_CONFIG_NOTIFICATION_WS,
|
|
15
17
|
PREFIX_DIRECTORY_NOTIFICATION_WS,
|
|
18
|
+
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
16
19
|
PREFIX_STUDY_NOTIFICATION_WS
|
|
17
20
|
};
|
package/dist/utils/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./langs.js";
|
|
|
15
15
|
import { getFileIcon } from "./mapper/getFileIcon.js";
|
|
16
16
|
import { equipmentTypesForPredefinedPropertiesMapper } from "./mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
17
17
|
import { copyToClipboard } from "./navigator-clipboard.js";
|
|
18
|
-
import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./constants/notificationsProvider.js";
|
|
18
|
+
import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_MONITOR_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./constants/notificationsProvider.js";
|
|
19
19
|
import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./styles.js";
|
|
20
20
|
import { CustomError } from "./types/CustomError.js";
|
|
21
21
|
import { ProblemDetailError } from "./types/ProblemDetailError.js";
|
|
@@ -112,6 +112,7 @@ export {
|
|
|
112
112
|
PERCENTAGE,
|
|
113
113
|
PREFIX_CONFIG_NOTIFICATION_WS,
|
|
114
114
|
PREFIX_DIRECTORY_NOTIFICATION_WS,
|
|
115
|
+
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
115
116
|
PREFIX_STUDY_NOTIFICATION_WS,
|
|
116
117
|
ParameterType,
|
|
117
118
|
PercentageAdornment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.206.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"author": "gridsuite team",
|
|
6
6
|
"homepage": "https://github.com/gridsuite",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"jwt-decode": "^4.0.0",
|
|
48
48
|
"localized-countries": "^2.0.0",
|
|
49
49
|
"mui-nested-menu": "^4.0.1",
|
|
50
|
-
"oidc-client": "^
|
|
50
|
+
"oidc-client-ts": "^3.5.0",
|
|
51
51
|
"prop-types": "^15.8.1",
|
|
52
52
|
"react-csv-downloader": "^3.3.0",
|
|
53
53
|
"react-dnd": "^16.0.1",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"@emotion/react": "^11.14.0",
|
|
66
66
|
"@emotion/styled": "^11.14.0",
|
|
67
67
|
"@hookform/resolvers": "^4.0.0",
|
|
68
|
-
"@mui/icons-material": "^5.
|
|
69
|
-
"@mui/lab": "
|
|
70
|
-
"@mui/material": "^5.
|
|
68
|
+
"@mui/icons-material": "^6.5.0",
|
|
69
|
+
"@mui/lab": "6.0.1-beta.36",
|
|
70
|
+
"@mui/material": "^6.5.0",
|
|
71
71
|
"@mui/x-tree-view": "^8.21.0",
|
|
72
72
|
"ag-grid-community": "^33.0.3",
|
|
73
73
|
"ag-grid-react": "^33.0.4",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"@eslint/js": "^9.38.0",
|
|
92
92
|
"@hookform/resolvers": "^4.1.3",
|
|
93
93
|
"@jest/globals": "^30.1.2",
|
|
94
|
-
"@mui/icons-material": "^5.
|
|
95
|
-
"@mui/lab": "
|
|
96
|
-
"@mui/material": "^5.
|
|
94
|
+
"@mui/icons-material": "^6.5.0",
|
|
95
|
+
"@mui/lab": "6.0.1-beta.36",
|
|
96
|
+
"@mui/material": "^6.5.0",
|
|
97
97
|
"@react-hook/window-size": "^3.1.1",
|
|
98
98
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
99
99
|
"@testing-library/jest-dom": "^6.8.0",
|