@gridsuite/commons-ui 0.279.0 → 0.281.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/customAGGrid/separatorCellRenderer.d.ts +7 -2
- package/dist/components/composite/customAGGrid/separatorCellRenderer.js +2 -2
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
- package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
- package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
- package/dist/features/index.js +93 -3
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +91 -3
- package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
- package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
- package/dist/features/network-modifications/tabular/index.d.ts +7 -0
- package/dist/features/network-modifications/tabular/index.js +65 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
- package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
- package/dist/features/network-modifications/tabular/properties/index.js +13 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
- package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
- package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
- package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
- package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
- package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
- package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
- package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +119 -0
- package/dist/features/network-modifications/voltageLevel/common/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/common/index.js +4 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +4 -1
- package/dist/features/network-modifications/voltageLevel/index.js +28 -3
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +387 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js +64 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +102 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.d.ts +2 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.js +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.d.ts +4 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.js +13 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.d.ts +36 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.d.ts +37 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js +86 -0
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
- package/dist/features/parameters/common/index.d.ts +1 -0
- package/dist/features/parameters/common/index.js +2 -0
- package/dist/features/parameters/common/parameter-field.d.ts +2 -2
- package/dist/features/parameters/common/parameter-field.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
- package/dist/features/parameters/index.js +2 -0
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
- package/dist/features/side-bar/AppSideBarHeader.js +20 -5
- package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
- package/dist/features/side-bar/EnvironmentChip.js +49 -0
- package/dist/index.js +97 -5
- package/dist/services/appsMetadata.d.ts +2 -0
- package/dist/services/directory.d.ts +1 -1
- package/dist/services/directory.js +6 -2
- package/dist/services/index.js +2 -1
- package/dist/services/userAdmin.d.ts +2 -1
- package/dist/services/userAdmin.js +9 -1
- package/dist/translations/en/businessErrorsEn.d.ts +1 -0
- package/dist/translations/en/businessErrorsEn.js +1 -0
- package/dist/translations/en/networkModificationsEn.d.ts +97 -0
- package/dist/translations/en/networkModificationsEn.js +103 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
- package/dist/translations/fr/businessErrorsFr.js +1 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +97 -0
- package/dist/translations/fr/networkModificationsFr.js +103 -1
- package/dist/utils/constants/fieldConstants.d.ts +7 -1
- package/dist/utils/constants/fieldConstants.js +6 -0
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/notificationsProvider.d.ts +1 -0
- package/dist/utils/constants/notificationsProvider.js +1 -0
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/index.js +2 -1
- package/dist/utils/types/types.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/features/network-modifications/voltageLevel/{topology/voltageLevelTopologyCreation.types.js → moveFeederBays/moveVoltageLevelFeederBays.type.js} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js
CHANGED
|
@@ -9,26 +9,26 @@ import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js"
|
|
|
9
9
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
10
10
|
import "@mui/material";
|
|
11
11
|
import "react-intl";
|
|
12
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
13
|
+
import "react-hook-form";
|
|
12
14
|
import "localized-countries";
|
|
13
15
|
import "localized-countries/data/fr";
|
|
14
16
|
import "localized-countries/data/en";
|
|
15
17
|
import "notistack";
|
|
16
|
-
import "react-hook-form";
|
|
17
18
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
18
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
19
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
20
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
21
|
-
import "@hello-pangea/dnd";
|
|
22
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
23
19
|
import "yup";
|
|
20
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
24
21
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
25
22
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
26
23
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
27
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
30
28
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
31
29
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
30
|
+
import "@hello-pangea/dnd";
|
|
31
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
32
32
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
33
33
|
import "mui-nested-menu";
|
|
34
34
|
import "react-resizable-panels";
|
|
@@ -33,8 +33,8 @@ import "mui-nested-menu";
|
|
|
33
33
|
import "react-resizable-panels";
|
|
34
34
|
import "react-papaparse";
|
|
35
35
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
36
|
-
import { ProviderParam } from "../common/provider-param.js";
|
|
37
36
|
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
37
|
+
import { ProviderParam } from "../common/provider-param.js";
|
|
38
38
|
import "../common/widget/parameter-line-slider.js";
|
|
39
39
|
import "../common/contingency-table/contingency-table.js";
|
|
40
40
|
import "../common/contingency-table/columns-definitions.js";
|
|
@@ -5,7 +5,7 @@ import "../../../utils/conversionUtils.js";
|
|
|
5
5
|
import "../../../utils/types/equipmentType.js";
|
|
6
6
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
|
-
import ParameterField from "../common/parameter-field.js";
|
|
8
|
+
import { ParameterField } from "../common/parameter-field.js";
|
|
9
9
|
const params = [
|
|
10
10
|
{
|
|
11
11
|
name: SCENARIO_DURATION,
|
|
@@ -10,27 +10,27 @@ import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js"
|
|
|
10
10
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
11
11
|
import "@mui/material";
|
|
12
12
|
import "react-intl";
|
|
13
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "react-hook-form";
|
|
13
15
|
import { fetchDynamicSimulationParameters } from "../../../services/dynamic-simulation.js";
|
|
14
16
|
import "localized-countries";
|
|
15
17
|
import "localized-countries/data/fr";
|
|
16
18
|
import "localized-countries/data/en";
|
|
17
19
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
18
|
-
import "react-hook-form";
|
|
19
20
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import "yup";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
26
23
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
32
|
+
import "@hello-pangea/dnd";
|
|
33
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
35
|
import "mui-nested-menu";
|
|
36
36
|
import "react-resizable-panels";
|
|
@@ -31,8 +31,8 @@ import "mui-nested-menu";
|
|
|
31
31
|
import "react-resizable-panels";
|
|
32
32
|
import "react-papaparse";
|
|
33
33
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
34
|
-
import { ProviderParam } from "../common/provider-param.js";
|
|
35
34
|
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
35
|
+
import { ProviderParam } from "../common/provider-param.js";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
37
|
import "../common/contingency-table/contingency-table.js";
|
|
38
38
|
import "../common/contingency-table/columns-definitions.js";
|
|
@@ -5,7 +5,7 @@ import "../../../../utils/conversionUtils.js";
|
|
|
5
5
|
import "../../../../utils/types/equipmentType.js";
|
|
6
6
|
import { ParameterType } from "../../../../utils/types/parameters.type.js";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
|
-
import ParameterField from "../../common/parameter-field.js";
|
|
8
|
+
import { ParameterField } from "../../common/parameter-field.js";
|
|
9
9
|
const params = [
|
|
10
10
|
{
|
|
11
11
|
name: Network.CAPACITOR_NO_RECLOSING_DELAY,
|
package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../../../../../utils/types/equipmentType.js";
|
|
|
4
4
|
import { ParameterType } from "../../../../../utils/types/parameters.type.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
6
|
import { CommonSolver } from "./common-solver-parameters-constants.js";
|
|
7
|
-
import ParameterField from "../../../common/parameter-field.js";
|
|
7
|
+
import { ParameterField } from "../../../common/parameter-field.js";
|
|
8
8
|
const params = [
|
|
9
9
|
{
|
|
10
10
|
name: CommonSolver.F_NORM_TOL_ALG,
|
package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js
CHANGED
|
@@ -5,7 +5,7 @@ import "../../../../../utils/conversionUtils.js";
|
|
|
5
5
|
import "../../../../../utils/types/equipmentType.js";
|
|
6
6
|
import { ParameterType } from "../../../../../utils/types/parameters.type.js";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
|
-
import ParameterField from "../../../common/parameter-field.js";
|
|
8
|
+
import { ParameterField } from "../../../common/parameter-field.js";
|
|
9
9
|
import { IdaSolver } from "./ida-solver-parameters-constants.js";
|
|
10
10
|
const params = [
|
|
11
11
|
{
|
|
@@ -3,7 +3,7 @@ import "../../../../../utils/conversionUtils.js";
|
|
|
3
3
|
import "../../../../../utils/types/equipmentType.js";
|
|
4
4
|
import { ParameterType } from "../../../../../utils/types/parameters.type.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
|
-
import ParameterField from "../../../common/parameter-field.js";
|
|
6
|
+
import { ParameterField } from "../../../common/parameter-field.js";
|
|
7
7
|
import { SimplifiedSolver } from "./simplified-solver-parameters-constant.js";
|
|
8
8
|
import "yup";
|
|
9
9
|
import { CommonSolverParameters } from "../common-solver/common-solver-parameters.js";
|
|
@@ -3,7 +3,7 @@ import { Grid } from "@mui/material";
|
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import { SolverType } from "../../../../utils/types/dynamic-simulation.type.js";
|
|
6
|
-
import ParameterField from "../../common/parameter-field.js";
|
|
6
|
+
import { ParameterField } from "../../common/parameter-field.js";
|
|
7
7
|
import { ParameterType } from "../../../../utils/types/parameters.type.js";
|
|
8
8
|
import { Solver } from "./solver-parameters-constants.js";
|
|
9
9
|
import "yup";
|
|
@@ -4,7 +4,7 @@ import "../../../../utils/conversionUtils.js";
|
|
|
4
4
|
import "../../../../utils/types/equipmentType.js";
|
|
5
5
|
import { ParameterType } from "../../../../utils/types/parameters.type.js";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
|
-
import ParameterField from "../../common/parameter-field.js";
|
|
7
|
+
import { ParameterField } from "../../common/parameter-field.js";
|
|
8
8
|
import { TimeDelay } from "./time-delay-parameters-constants.js";
|
|
9
9
|
const params = [
|
|
10
10
|
{
|
|
@@ -3,6 +3,7 @@ import { ParameterLayoutProvider, useParameterLayoutContext } from "./common/par
|
|
|
3
3
|
import { formatComputingTypeLabel, isValidComputingType } from "./common/computing-type.js";
|
|
4
4
|
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./common/constants.js";
|
|
5
5
|
import { LineSeparator } from "./common/line-separator.js";
|
|
6
|
+
import { ParameterField } from "./common/parameter-field.js";
|
|
6
7
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./common/parameters.js";
|
|
7
8
|
import { CreateParameterDialog } from "./common/parameters-creation-dialog.js";
|
|
8
9
|
import { ProviderParam } from "./common/provider-param.js";
|
|
@@ -164,6 +165,7 @@ export {
|
|
|
164
165
|
PRIORITY,
|
|
165
166
|
PROVIDER,
|
|
166
167
|
PSTS_EQUIPMENT_TYPES,
|
|
168
|
+
ParameterField,
|
|
167
169
|
ParameterFloat,
|
|
168
170
|
ParameterGroup,
|
|
169
171
|
ParameterLayout,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, createElement } from "react";
|
|
3
|
-
import ParameterField from "../common/parameter-field.js";
|
|
3
|
+
import { ParameterField } from "../common/parameter-field.js";
|
|
4
4
|
import { VOLTAGE_INIT_MODE, USE_REACTIVE_LIMITS, TWT_SPLIT_SHUNT_ADMITTANCE, READ_SLACK_BUS, WRITE_SLACK_BUS, DISTRIBUTED_SLACK, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DC_USE_TRANSFORMER_RATIO, DC_POWER_FACTOR } from "./constants.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
6
|
import "@mui/material";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, createElement } from "react";
|
|
3
|
-
import ParameterField from "../common/parameter-field.js";
|
|
3
|
+
import { ParameterField } from "../common/parameter-field.js";
|
|
4
4
|
import { PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE, CONNECTED_MODE, HVDC_AC_EMULATION } from "./constants.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
6
|
import "@mui/material";
|
|
@@ -17,22 +17,22 @@ import { useLoadFlowParametersForm } from "./use-load-flow-parameters-form.js";
|
|
|
17
17
|
import { LoadFlowParametersForm } from "./load-flow-parameters-form.js";
|
|
18
18
|
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
19
19
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
20
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
20
21
|
import "react-hook-form";
|
|
21
22
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
22
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
23
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
24
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
25
|
-
import "@hello-pangea/dnd";
|
|
26
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
27
23
|
import "yup";
|
|
24
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
28
25
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
32
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
33
30
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
31
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
32
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
35
33
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
34
|
+
import "@hello-pangea/dnd";
|
|
35
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
36
36
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
37
37
|
import "mui-nested-menu";
|
|
38
38
|
import "react-resizable-panels";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, createElement } from "react";
|
|
3
|
-
import ParameterField from "../common/parameter-field.js";
|
|
3
|
+
import { ParameterField } from "../common/parameter-field.js";
|
|
4
4
|
import "@mui/material";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
6
|
import "react-intl";
|
package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js
CHANGED
|
@@ -16,22 +16,22 @@ import { NetworkVisualizationParametersForm } from "./network-visualizations-for
|
|
|
16
16
|
import { useNetworkVisualizationParametersForm } from "./use-network-visualizations-parameters-form.js";
|
|
17
17
|
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
18
18
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
19
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
19
20
|
import "react-hook-form";
|
|
20
21
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
21
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
22
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
23
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
24
|
-
import "@hello-pangea/dnd";
|
|
25
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
26
22
|
import "yup";
|
|
23
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
27
24
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
29
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
30
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
34
32
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
33
|
+
import "@hello-pangea/dnd";
|
|
34
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
35
35
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
36
36
|
import "mui-nested-menu";
|
|
37
37
|
import "react-resizable-panels";
|
|
@@ -15,22 +15,22 @@ import "localized-countries/data/en";
|
|
|
15
15
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
16
16
|
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
17
17
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
18
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
18
19
|
import "react-hook-form";
|
|
19
20
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import "yup";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
26
23
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
32
|
+
import "@hello-pangea/dnd";
|
|
33
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
35
|
import "mui-nested-menu";
|
|
36
36
|
import "react-resizable-panels";
|
|
@@ -10,27 +10,27 @@ import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js"
|
|
|
10
10
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
11
11
|
import "@mui/material";
|
|
12
12
|
import "react-intl";
|
|
13
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "react-hook-form";
|
|
13
15
|
import { fetchSecurityAnalysisParameters } from "../../../services/security-analysis.js";
|
|
14
16
|
import "localized-countries";
|
|
15
17
|
import "localized-countries/data/fr";
|
|
16
18
|
import "localized-countries/data/en";
|
|
17
19
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
18
|
-
import "react-hook-form";
|
|
19
20
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import "yup";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
26
23
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
32
|
+
import "@hello-pangea/dnd";
|
|
33
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
35
|
import "mui-nested-menu";
|
|
36
36
|
import "react-resizable-panels";
|
|
@@ -10,27 +10,27 @@ import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js"
|
|
|
10
10
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
11
11
|
import "@mui/material";
|
|
12
12
|
import "react-intl";
|
|
13
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "react-hook-form";
|
|
13
15
|
import { fetchSensitivityAnalysisParameters, setSensitivityAnalysisParameters } from "../../../services/sensitivity-analysis.js";
|
|
14
16
|
import "localized-countries";
|
|
15
17
|
import "localized-countries/data/fr";
|
|
16
18
|
import "localized-countries/data/en";
|
|
17
19
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
18
|
-
import "react-hook-form";
|
|
19
20
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import "yup";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
26
23
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
32
|
+
import "@hello-pangea/dnd";
|
|
33
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
35
|
import "mui-nested-menu";
|
|
36
36
|
import "react-resizable-panels";
|
|
@@ -14,22 +14,22 @@ import "localized-countries/data/en";
|
|
|
14
14
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
15
15
|
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
16
16
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
17
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
17
18
|
import "react-hook-form";
|
|
18
19
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
19
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
20
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
21
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
22
|
-
import "@hello-pangea/dnd";
|
|
23
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
24
20
|
import "yup";
|
|
21
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
25
22
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
26
23
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
28
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
31
29
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
31
|
+
import "@hello-pangea/dnd";
|
|
32
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
33
33
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
34
34
|
import "mui-nested-menu";
|
|
35
35
|
import "react-resizable-panels";
|
|
@@ -15,22 +15,22 @@ import "localized-countries/data/en";
|
|
|
15
15
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
16
16
|
import { ParameterLayout } from "../common/parameter-layout/parameter-layout.js";
|
|
17
17
|
import "../common/parameter-layout/parameter-layout-provider.js";
|
|
18
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
18
19
|
import "react-hook-form";
|
|
19
20
|
import { CustomFormProvider } from "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
-
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
21
|
-
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
22
|
-
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
23
|
-
import "@hello-pangea/dnd";
|
|
24
|
-
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
25
21
|
import "yup";
|
|
22
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
26
23
|
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
27
24
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
28
|
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
32
|
+
import "@hello-pangea/dnd";
|
|
33
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
34
34
|
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
35
|
import "mui-nested-menu";
|
|
36
36
|
import "react-resizable-panels";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Box, Typography, Tooltip, IconButton, Divider } from "@mui/material";
|
|
3
3
|
import { Info } from "@mui/icons-material";
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
4
5
|
import { useAppSideBarDialogs, SideBarDialogType } from "./dialogs/AppSideBarDialogProvider.js";
|
|
6
|
+
import { fetchEnv } from "../../services/appsMetadata.js";
|
|
7
|
+
import "../../utils/conversionUtils.js";
|
|
8
|
+
import "../../utils/types/equipmentType.js";
|
|
9
|
+
import { EnvironmentChip } from "./EnvironmentChip.js";
|
|
5
10
|
function AppSideBarHeader({
|
|
6
11
|
isMinimized,
|
|
7
12
|
isLoggedIn,
|
|
@@ -11,6 +16,10 @@ function AppSideBarHeader({
|
|
|
11
16
|
appVersion
|
|
12
17
|
}) {
|
|
13
18
|
const { setOpenDialog } = useAppSideBarDialogs();
|
|
19
|
+
const [environment, setEnvironment] = useState("");
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
fetchEnv().then((env) => setEnvironment(env?.environment ?? ""));
|
|
22
|
+
}, []);
|
|
14
23
|
return /* @__PURE__ */ jsxs(
|
|
15
24
|
Stack,
|
|
16
25
|
{
|
|
@@ -21,10 +30,16 @@ function AppSideBarHeader({
|
|
|
21
30
|
spacing: 1,
|
|
22
31
|
children: [
|
|
23
32
|
/* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: isMinimized ? "center" : "flex-start", children: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
33
|
+
/* @__PURE__ */ jsxs(Box, { sx: { position: "relative", display: "inline-block" }, children: [
|
|
34
|
+
appLogo,
|
|
35
|
+
isMinimized && /* @__PURE__ */ jsx(EnvironmentChip, { environment, variant: "minimized" })
|
|
36
|
+
] }),
|
|
37
|
+
!isMinimized && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative", display: "inline-block" }, children: [
|
|
38
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "h6", children: [
|
|
39
|
+
"Grid",
|
|
40
|
+
/* @__PURE__ */ jsx(Box, { component: "span", sx: { color: appNameColor }, children: appName })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsx(EnvironmentChip, { environment, variant: "expanded" })
|
|
28
43
|
] })
|
|
29
44
|
] }),
|
|
30
45
|
/* @__PURE__ */ jsx(
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
type EnvironmentChipVariant = 'minimized' | 'expanded';
|
|
8
|
+
interface EnvironmentChipProps {
|
|
9
|
+
environment: string;
|
|
10
|
+
variant: EnvironmentChipVariant;
|
|
11
|
+
}
|
|
12
|
+
export declare function EnvironmentChip({ environment, variant }: Readonly<EnvironmentChipProps>): import("react").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Chip } from "@mui/material";
|
|
3
|
+
const envColors = {
|
|
4
|
+
REC: "#304FFE",
|
|
5
|
+
DEV: "#DD2C00",
|
|
6
|
+
PRE: "#AA00FF",
|
|
7
|
+
PRO: "#DD2C00",
|
|
8
|
+
DCH: "#2E7D32"
|
|
9
|
+
};
|
|
10
|
+
const variantStyles = {
|
|
11
|
+
minimized: {
|
|
12
|
+
transform: "translate(40%, -10%)",
|
|
13
|
+
height: "12px"
|
|
14
|
+
},
|
|
15
|
+
expanded: {
|
|
16
|
+
transform: "translate(120%, -10%)",
|
|
17
|
+
height: "15px"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function isEnvironment(value) {
|
|
21
|
+
return value in envColors;
|
|
22
|
+
}
|
|
23
|
+
function EnvironmentChip({ environment, variant }) {
|
|
24
|
+
if (!isEnvironment(environment)) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
Chip,
|
|
29
|
+
{
|
|
30
|
+
label: environment,
|
|
31
|
+
size: "small",
|
|
32
|
+
sx: {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
top: 0,
|
|
35
|
+
right: 5,
|
|
36
|
+
fontSize: "0.5rem",
|
|
37
|
+
backgroundColor: envColors[environment],
|
|
38
|
+
color: "#ffffff",
|
|
39
|
+
"& .MuiChip-label": {
|
|
40
|
+
padding: "0 4px"
|
|
41
|
+
},
|
|
42
|
+
...variantStyles[variant]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
EnvironmentChip
|
|
49
|
+
};
|